/* ==========================================================================
   GLISSO 1:1 STYLESHEET
   ========================================================================== */

:root {
    --sidebar-w: 168px;
    --color-primary: #ffbd11;
    --color-primary-hover: #ffca3a;
    --color-primary-dark: #d99b00;
    --color-bg: #22262c;
    --color-sidebar: #181b20;
    --color-elevated: #2b3038;
    --color-elevated-2: #363c46;
    --color-recess: #16191d;
    --color-text: #e4e6e8;
    --color-text-secondary: #8c929a;
    --color-border: rgba(228, 230, 232, 0.11);
    --color-success: #4caf50;
    --color-danger: #e5534b;
    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 14px;
    --shadow-modal: 0 18px 48px rgba(0, 0, 0, 0.65);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow: hidden;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

button, input, select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}

#app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* ==========================================================================
   LEFT NAVIGATION SIDEBAR (#nav-rail)
   ========================================================================== */
.game-sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    height: 100vh;
    background-color: var(--color-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    z-index: 50;
    padding: 10px 0;
}

.sidebar-brand {
    padding: 6px 18px 16px;
    cursor: pointer;
}

.brand-logo-text {
    font-size: 28px;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: -0.6px;
    line-height: 1;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px;
}

.rail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border-radius: 7px;
    color: var(--color-text-secondary);
    font-size: 13.5px;
    font-weight: 700;
    text-align: left;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.rail-item:hover {
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.04);
}

.rail-item.active {
    background-color: #2b3038;
    color: #ffffff;
}

.rail-item-icon {
    font-size: 17px;
    flex-shrink: 0;
}

.rail-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.07);
    margin: 10px 8px;
}

.sidebar-spacer {
    flex: 1;
}

.player-hud {
    padding: 6px 8px 4px;
}

.player-hud-card {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 6px 8px;
    border-radius: 8px;
    text-align: left;
    transition: background-color 0.12s ease;
}

.player-hud-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.player-hud-avatar {
    font-size: 20px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
}

.player-hud-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.player-hud-name {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--color-text);
}

.player-hud-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   MAIN STAGE & TOPBARS
   ========================================================================== */
#stage-area {
    flex: 1;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--color-bg);
}

/* Top-Right Global Action Icons */
.global-actions {
    position: absolute;
    top: 12px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 60;
}

.global-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b4bac2;
    font-size: 19px;
    text-decoration: none;
    transition: color 0.12s ease, background-color 0.12s ease;
}

.global-icon-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
}

/* Contextual Top Bar */
.mode-topbar {
    height: 54px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 45;
    position: relative;
}

.topbar-content {
    width: 100%;
    display: flex;
    align-items: center;
}

.topbar-center-cluster {
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-left-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
}

.daily-header-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 14px;
}

.daily-header-info strong {
    color: #ffffff;
    font-weight: 800;
}

.daily-next-label {
    color: var(--color-text-secondary);
    font-size: 12.5px;
    font-weight: 600;
}

.pill-group {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-elevated);
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.topbar-btn, .topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #b8bec6;
    transition: all 0.12s ease;
}

.topbar-btn:hover, .topbar-pill:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.topbar-btn.sub-pill {
    background-color: var(--color-elevated-2);
    color: #ffffff;
}

.topbar-pill.active {
    background-color: var(--color-elevated-2);
    color: var(--color-primary);
}

.topbar-btn.accent-text {
    color: var(--color-primary);
}

.muted-lead {
    color: #9ea4ac;
    font-weight: 600;
}

.caret-sm {
    font-size: 11px;
    opacity: 0.75;
}

.sr-quota-text {
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.sr-quota-text strong {
    color: #ffffff;
    font-weight: 800;
}

.subtle-reroll-btn {
    background-color: rgba(255, 189, 17, 0.12);
    color: var(--color-primary);
    border: 1px solid rgba(255, 189, 17, 0.25);
}

.subtle-reroll-btn:hover {
    background-color: rgba(255, 189, 17, 0.22);
    color: #ffd24c;
}

.topbar-select {
    background-color: var(--color-elevated-2);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.topbar-select option {
    background-color: #262a31;
    color: #ffffff;
}

/* Dropdown Menus */
.dropdown-wrap {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    background-color: #262b33;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 6px;
    box-shadow: var(--shadow-modal);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 100;
}

.dd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-text);
    text-align: left;
}

.dd-item:hover {
    background-color: rgba(255, 255, 255, 0.07);
}

.dd-item.active {
    background-color: rgba(255, 189, 17, 0.15);
    color: var(--color-primary);
}

.dd-sub {
    font-size: 11px;
    color: var(--color-text-secondary);
    font-weight: 600;
}

/* ==========================================================================
   PRACTICE STAGE (Score Title, Notation Band, Playhead, BPM Chip)
   ========================================================================== */
.stage-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.play-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 72px;
    position: relative;
}

.score-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 25px;
    font-weight: 700;
    color: #e4e6e8;
    letter-spacing: 0.2px;
    text-align: center;
    margin-bottom: 24px;
}

.notation-band {
    width: 78%;
    max-width: 1080px;
    min-width: 620px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Measure range selector chip ("mm. 1-16") */
.measure-range-wrap {
    position: relative;
    margin-bottom: 4px;
    align-self: flex-start;
}

.card-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--color-elevated);
    color: var(--color-text);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.12s ease;
}

.card-chip:hover {
    background-color: var(--color-elevated-2);
}

.measure-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background-color: #262b33;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px;
    box-shadow: var(--shadow-modal);
    z-index: 80;
    min-width: 210px;
}

.mp-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.mp-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 10px;
}

.mp-inputs input {
    width: 54px;
    background-color: var(--color-recess);
    border: 1px solid var(--color-border);
    border-radius: 5px;
    padding: 4px 6px;
    text-align: center;
    font-weight: 700;
}

.mp-whole-btn {
    width: 100%;
    padding: 6px;
    border-radius: 6px;
    background-color: var(--color-elevated-2);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

/* Horizontal Scrolling Staff Container */
.notation-viewport {
    width: 100%;
    height: 195px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.notation-scroll {
    will-change: transform;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Fixed Golden Playhead Bar */
.playhead-bar {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 118px;
    width: 4px;
    background-color: rgba(212, 160, 28, 0.76);
    border-radius: 99px;
    pointer-events: none;
    z-index: 15;
    transition: background-color 0.1s ease, box-shadow 0.1s ease;
}

.playhead-bar.pulse-hit {
    background-color: #ffbd11;
    box-shadow: 0 0 12px rgba(255, 189, 17, 0.75);
}

/* Live Status Row (Count-in dots + Early/Late feedback) */
.live-status-row {
    height: 34px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 2px;
}

.countin-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ci-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.18);
    transition: transform 0.1s ease, background-color 0.1s ease;
}

.ci-dot.lit {
    background-color: var(--color-primary);
    transform: scale(1.25);
}

/* Instant Early / Late / Wrong-fingering feedback, anchored right under the playhead */
.live-timing-feedback {
    position: absolute;
    left: 118px;
    top: 4px;
    transform: translateX(-12%);
    font-size: 16px;
    font-weight: 800;
    min-height: 22px;
    white-space: nowrap;
    padding: 2px 0;
    pointer-events: none;
}

.live-timing-feedback.pop {
    animation: feedbackPop 0.22s cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes feedbackPop {
    0%   { transform: translateX(-12%) scale(0.7); opacity: 0.2; }
    100% { transform: translateX(-12%) scale(1); opacity: 1; }
}

/* ===== Fingering Practice coach (pause & redo) ===== */
.fingering-coach-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 8px;
    padding: 12px 16px;
    background-color: rgba(229, 83, 75, 0.1);
    border: 1px solid rgba(229, 83, 75, 0.45);
    border-radius: 10px;
}

.fc-coach-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.6px;
    color: #ff8a83;
    margin-bottom: 4px;
}

.fc-coach-main {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
}

.fc-coach-main strong {
    color: var(--color-primary);
    font-weight: 900;
}

.fc-coach-sub {
    font-size: 12.5px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

.fc-coach-sub span {
    color: #ff8a83;
    font-weight: 800;
}

.fc-coach-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.valve-assembly {
    position: relative;
}

.valve-target-badge {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.4px;
    padding: 4px 10px;
    border-radius: 999px;
    pointer-events: none;
}

.valve-target-badge.need { background-color: var(--color-primary); color: #16181c; }
.valve-target-badge.ok   { background-color: #4caf50; color: #ffffff; }
.valve-target-badge.bad  { background-color: #e5534b; color: #ffffff; }

.valve-assembly.target-glow {
    filter: drop-shadow(0 0 16px rgba(255, 189, 17, 0.75));
}

/* Below-staff controls (BPM chip on left, hints on right) */
.below-staff-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.bpm-chip {
    padding: 5px 10px;
    gap: 5px;
}

.bpm-chip i {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.bpm-unit {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--color-text-secondary);
    letter-spacing: 0.3px;
}

.play-hint-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

kbd {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--color-text);
    background-color: var(--color-elevated);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
    margin: 0 2px;
}

.mini-action-btn {
    background-color: var(--color-elevated);
    color: var(--color-text);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.mini-action-btn:hover {
    background-color: var(--color-elevated-2);
    color: var(--color-primary);
}

/* ==========================================================================
   3D ISOMETRIC BRASS VALVES (J, K, L) AT BOTTOM OF STAGE
   Matches Screenshots 1, 6, 7, 8
   ========================================================================== */
.valves-stage {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scale(1.34);
    transform-origin: bottom center;
    display: flex;
    align-items: flex-end;
    gap: 34px;
    z-index: 25;
    pointer-events: auto;
}

.valve-assembly {
    width: 138px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.valve-piston {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
    transition: transform 0.055s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.valve-assembly.pressed .valve-piston {
    transform: translateY(36px);
}

.valve-cap {
    width: 116px;
    position: relative;
}

.valve-cap-top {
    width: 116px;
    height: 46px;
    background-color: #dcdfe2;
    border-radius: 50%;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

/* Specular white curved shine on bottom-left of cap top */
.valve-cap-shine {
    position: absolute;
    bottom: 6px;
    left: 16px;
    width: 34px;
    height: 12px;
    border-bottom: 5px solid #ffffff;
    border-left: 4px solid #ffffff;
    border-radius: 0 0 0 24px;
    transform: rotate(-8deg);
    opacity: 0.95;
}

.valve-cap-side {
    width: 116px;
    height: 44px;
    margin-top: -23px;
    background: linear-gradient(90deg, #b8bcc2 0%, #c4c8ce 28%, #b4b8be 100%);
    border-radius: 0 0 58px 58px / 0 0 24px 24px;
    position: relative;
    z-index: 2;
}

.valve-stem {
    width: 36px;
    height: 54px;
    margin-top: -6px;
    background: linear-gradient(90deg, #8e9298 0%, #a7abb1 26%, #8c9096 42%, #8c9096 100%);
    border-radius: 0 0 18px 18px / 0 0 8px 8px;
    position: relative;
    z-index: 1;
    transition: height 0.055s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.valve-assembly.pressed .valve-stem {
    height: 20px;
}

.valve-casing {
    width: 132px;
    margin-top: -21px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.valve-collar {
    width: 132px;
    position: relative;
    z-index: 3;
}

.valve-collar-top {
    width: 132px;
    height: 54px;
    background-color: #ffbd11;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.valve-hole {
    width: 96px;
    height: 38px;
    background-color: #050608;
    border-radius: 50%;
}

.valve-collar-side {
    width: 132px;
    height: 46px;
    margin-top: -27px;
    background: linear-gradient(90deg, #df9c00 0%, #f5b300 28%, #e5a200 72%, #d18f00 100%);
    border-radius: 0 0 66px 66px / 0 0 27px 27px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 0 #c58600;
}

.valve-body {
    width: 114px;
    height: 124px;
    margin-top: -12px;
    background: linear-gradient(
        90deg,
        #e5a300 0%,
        #e5a300 14%,
        #ffca2c 14%,
        #ffca2c 36%,
        #f5b300 36%,
        #f5b300 78%,
        #d99600 78%,
        #d99600 100%
    );
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
}

.valve-body::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    right: -3px;
    height: 52px;
    background: linear-gradient(
        90deg,
        #df9c00 0%,
        #df9c00 14%,
        #ffc41f 14%,
        #ffc41f 36%,
        #eea900 36%,
        #eea900 78%,
        #cf8d00 78%,
        #cf8d00 100%
    );
    border-radius: 6px 6px 0 0;
    z-index: 0;
}

.valve-key-label {
    position: relative;
    z-index: 2;
    font-size: 38px;
    font-weight: 800;
    color: #c58600;
    line-height: 1;
}

/* ==========================================================================
   RESULTS & TAKE REVIEW VIEW (Matches Screenshot 5: 085024.png)
   ========================================================================== */
.results-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 58px 24px 60px;
    overflow-y: auto;
}

.results-rings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-bottom: 18px;
}

.ring-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ring-svg-wrap {
    width: 102px;
    height: 102px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-track {
    fill: none;
    stroke: #2f343d;
    stroke-width: 8;
}

.ring-fill {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ring-value {
    position: absolute;
    font-size: 21px;
    font-weight: 800;
    color: #ffffff;
}

.ring-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-secondary);
}

.results-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.results-meta-line {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-secondary);
}

.results-offset-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.pill-btn-secondary {
    background-color: var(--color-elevated);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
}

.pill-btn-secondary:hover {
    background-color: var(--color-elevated-2);
}

.results-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}

.btn-primary-gold {
    background-color: var(--color-primary);
    color: #16181c;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 18px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.12s ease, transform 0.1s ease;
}

.btn-primary-gold:hover {
    background-color: var(--color-primary-hover);
}

.btn-secondary-dark {
    background-color: var(--color-elevated);
    color: #e4e6e8;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color 0.12s ease;
}

.btn-secondary-dark:hover {
    background-color: var(--color-elevated-2);
    color: #ffffff;
}

.take-review-container {
    width: 86%;
    max-width: 1040px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ==========================================================================
   CALIBRATE MODAL (1:1 Match with Screenshots 2 & 3)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(12, 14, 18, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal-dialog {
    background-color: #22262c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 24px 24px 22px;
    position: relative;
    box-shadow: var(--shadow-modal);
}

.calibrate-dialog {
    width: 396px;
    text-align: center;
}

.modal-close-x {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--color-primary);
    font-size: 18px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.modal-close-x:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.cal-copy {
    font-size: 12.5px;
    color: var(--color-text-secondary);
    line-height: 1.45;
    margin-bottom: 16px;
    padding: 0 12px;
}

.cal-copy strong {
    color: #ffffff;
}

.cal-stage-box {
    width: 100%;
    height: 162px;
    background-color: #16191d;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.cal-speaker-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.cal-speaker-icon {
    font-size: 24px;
    color: var(--color-text-secondary);
    transition: color 0.08s ease, transform 0.08s ease;
}

.cal-speaker-icon.pulse {
    color: var(--color-primary);
    transform: scale(1.22);
}

/* Step 2 Bouncing Ball & Floor (Screenshot 3: 084934.png) */
.cal-ball-wrap {
    width: 170px;
    height: 100px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.cal-ball {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-primary);
    position: absolute;
    bottom: 6px;
    will-change: transform;
}

.cal-floor {
    width: 168px;
    height: 3px;
    background-color: #363b44;
    border-radius: 2px;
}

.cal-status-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #b4bac2;
}

/* Scatter Strip for Tap Readings */
.cal-strip {
    width: 100%;
    height: 14px;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.cal-strip::before {
    content: '';
    position: absolute;
    left: 6px;
    right: 6px;
    height: 2px;
    background-color: #2f343c;
}

.cal-strip-center {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 10px;
    background-color: #555c66;
    transform: translateX(-50%);
}

#cal-strip-ticks {
    position: absolute;
    inset: 0;
}

.cal-tick {
    position: absolute;
    top: 2px;
    width: 3px;
    height: 10px;
    border-radius: 2px;
    background-color: var(--color-primary);
    transform: translateX(-50%);
}

.cal-result-text {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.cal-verdict-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.cal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cal-btn-secondary {
    background-color: #363b44;
    color: #b8bec6;
    font-size: 12.5px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 7px;
}

.cal-btn-secondary:hover {
    background-color: #424852;
    color: #ffffff;
}

.cal-btn-primary {
    background-color: var(--color-primary);
    color: #16181c;
    font-size: 12.5px;
    font-weight: 800;
    padding: 9px 20px;
    border-radius: 7px;
}

.cal-btn-primary:hover {
    background-color: var(--color-primary-hover);
}

/* ==========================================================================
   METRONOME & CUSTOMIZE MODALS
   ========================================================================== */
.tempo-dialog, .customize-dialog {
    width: 380px;
}

.modal-set-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.modal-set-row:last-of-type {
    border-bottom: none;
}

.modal-row-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

.modal-row-sub {
    font-size: 11.5px;
    color: var(--color-text-secondary);
}

.text-link-gold {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    padding: 0;
}

.tempo-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-btn {
    background-color: var(--color-elevated);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 6px;
}

.step-btn:hover {
    background-color: var(--color-elevated-2);
}

.bpm-input {
    width: 64px;
    background-color: var(--color-recess);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 6px 8px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 800;
}

.unit-label {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.gold-slider {
    accent-color: var(--color-primary);
    width: 140px;
    cursor: pointer;
}

.cust-checks {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
}

.cust-checks label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.cust-checks input {
    accent-color: var(--color-primary);
}

.help-content {
    font-size: 13px;
    line-height: 1.55;
    color: #cfd4da;
}

.help-content ul {
    padding-left: 18px;
    margin-top: 4px;
}

/* ==========================================================================
   CUSTOM SHEET MUSIC STUDIO & SUBPAGES
   ========================================================================== */
.app-subpage {
    padding: 20px 36px 48px;
    overflow-y: auto;
}

.subpage-container {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.subpage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.subpage-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
}

.subpage-subtitle {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.editor-header-actions, .subpage-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.editor-meta-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background-color: var(--color-elevated);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ed-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--color-text-secondary);
}

.ed-field input, .ed-field select {
    background-color: var(--color-recess);
    border: 1px solid var(--color-border);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background-color: #1c2026;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ed-tool-group {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ed-tool-group:last-child {
    border-right: none;
}

.ed-group-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    margin-right: 4px;
}

.ed-tool-btn {
    background-color: var(--color-elevated);
    color: #d0d5dd;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.12s ease;
}

.ed-tool-btn:hover {
    background-color: var(--color-elevated-2);
    color: #ffffff;
}

.ed-tool-btn.active {
    background-color: var(--color-primary);
    color: #16181c;
    font-weight: 800;
}

.ed-tool-btn.danger-hover:hover {
    background-color: rgba(229, 83, 75, 0.2);
    color: #ff7b74;
}

.editor-canvas-card {
    background-color: #1b1f25;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px 24px;
    min-height: 290px;
}

.editor-instructions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-secondary);
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.editor-svg-host {
    width: 100%;
    overflow-x: auto;
    padding: 8px 0;
}

.editor-io-card {
    background-color: var(--color-elevated);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.editor-io-left {
    flex: 1;
    min-width: 320px;
}

.editor-io-left h3 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}

.editor-io-left p {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

.quick-text-row {
    display: flex;
    gap: 8px;
}

.quick-text-input {
    flex: 1;
    background-color: var(--color-recess);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: monospace;
    font-size: 12.5px;
    color: #ffffff;
}

.editor-io-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.file-upload-label {
    cursor: pointer;
}

/* ==========================================================================
   LIBRARY, FLASHCARDS, LEADERBOARDS, SETTINGS
   ========================================================================== */
.library-pane, .settings-card, .lb-table-card {
    background-color: #1b1f25;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
}

.library-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.lib-tab {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-secondary);
}

.lib-tab.active {
    background-color: var(--color-elevated);
    color: var(--color-primary);
}

.library-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lib-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-elevated);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.lib-row:hover {
    border-color: rgba(255, 189, 17, 0.35);
}

.lib-row-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
}

.lib-row-meta {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.lib-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flashcard-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 64px;
}

.fc-hud-row {
    display: flex;
    gap: 28px;
    font-size: 16px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.fc-staff-box {
    width: 360px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-feedback {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-secondary);
    margin-top: 10px;
}

.set-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.set-row:last-child {
    border-bottom: none;
}

.set-row-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
}

.set-row-desc {
    font-size: 12.5px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.set-row-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.offset-readout-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    background-color: rgba(255, 189, 17, 0.12);
    padding: 5px 10px;
    border-radius: 6px;
}

.glisso-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.lb-row {
    display: grid;
    grid-template-columns: 50px 1fr 140px 120px;
    align-items: center;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13.5px;
    font-weight: 700;
}

.lb-row.head {
    color: var(--color-text-secondary);
    font-size: 12px;
    text-transform: uppercase;
}

/* ==========================================================================
   PDF SHEET MUSIC IMPORTER & OPTICAL TRANSCRIBER MODAL
   ========================================================================== */
.pdf-modal-dialog {
    width: 980px;
    max-width: 94vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 24px 28px 20px;
}

.pdf-modal-body {
    display: grid;
    grid-template-columns: 46% 54%;
    gap: 20px;
    margin-bottom: 18px;
    overflow-y: auto;
    max-height: 62vh;
    padding-right: 4px;
}

.pdf-left-pane, .pdf-right-pane {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdf-pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdf-pane-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pdf-page-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #cfd4da;
}

.btn-mini {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.btn-mini:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.pdf-canvas-container {
    background-color: #1a1c22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    max-height: 480px;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.pdf-canvas-container canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    background-color: #ffffff;
    border-radius: 4px;
}

.pdf-status-card {
    background-color: rgba(255, 189, 17, 0.09);
    border: 1px solid rgba(255, 189, 17, 0.28);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #f1f4f8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pdf-form-grid .ed-field:first-child {
    grid-column: span 2;
}

.pdf-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.pdf-score-preview-box {
    background-color: #1a1c22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    min-height: 140px;
    max-height: 200px;
    overflow-x: auto;
    overflow-y: hidden;
}

.pdf-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}


/* ==========================================================================
   TROMBONE SLIDE CONTROLLER & STAGE
   ========================================================================== */
.trombone-stage {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 94vw);
    z-index: 25;
    pointer-events: auto;
}

.trombone-slide-assembly {
    background: linear-gradient(180deg, rgba(34, 38, 44, 0.95), rgba(26, 29, 34, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    padding: 14px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(8px);
}

.slide-position-readout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
}

.slide-pos-badge {
    background: rgba(255, 189, 17, 0.15);
    color: #ffbd11;
    border: 1px solid rgba(255, 189, 17, 0.35);
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: monospace;
    font-size: 13px;
}

.slide-target-badge {
    background: rgba(255, 92, 92, 0.2);
    color: #ff7575;
    border: 1px solid rgba(255, 92, 92, 0.4);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    animation: pulseBadge 1.2s infinite;
}

@keyframes pulseBadge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.04); }
}

.trombone-graphic-wrap {
    position: relative;
    height: 64px;
    background: #14161a;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 10px;
}

.tb-bell-flare {
    position: absolute;
    left: 8px;
    width: 32px;
    height: 48px;
    background: radial-gradient(ellipse at right, #ffd359 0%, #b8860b 60%, #4a3605 100%);
    border-radius: 4px 50% 50% 4px;
    box-shadow: 0 0 12px rgba(255, 189, 17, 0.35);
    z-index: 2;
}

.tb-inner-slide {
    position: absolute;
    left: 44px;
    right: 20px;
    height: 18px;
    border-top: 3px solid #b0b8c2;
    border-bottom: 3px solid #b0b8c2;
    background: rgba(176, 184, 194, 0.08);
    display: flex;
    align-items: center;
}

.slide-position-notch {
    position: absolute;
    top: -12px;
    bottom: -12px;
    width: 2px;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.slide-position-notch span {
    position: absolute;
    top: -8px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
}

.tb-outer-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 32px;
    transition: left 0.12s cubic-bezier(0.2, 0.8, 0.3, 1);
    z-index: 5;
    pointer-events: none;
}

.tb-handgrip {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    width: 14px;
    background: linear-gradient(180deg, #ffe082, #ffb300, #ff8f00);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(255, 189, 17, 0.6);
}

.tb-outer-tubes {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 12px;
    width: 38px;
    border-top: 4px solid #ffca28;
    border-bottom: 4px solid #ffca28;
}

.tb-slide-crook {
    position: absolute;
    right: 0;
    top: 6px;
    bottom: 6px;
    width: 12px;
    border-right: 4px solid #ffca28;
    border-radius: 0 8px 8px 0;
}

.slide-buttons-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.slide-btn {
    background: #2a2f38;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #e6ebf2;
    cursor: pointer;
    transition: all 0.15s ease;
}

.slide-btn:hover {
    background: #343b46;
    border-color: rgba(255, 255, 255, 0.25);
}

.slide-btn.active {
    background: linear-gradient(180deg, #ffbd11, #e6a800);
    color: #17191e;
    border-color: #ffbd11;
    box-shadow: 0 4px 14px rgba(255, 189, 17, 0.45);
    font-weight: 800;
}

.slide-btn.suggest-target {
    border-color: #ff5c5c;
    box-shadow: 0 0 12px rgba(255, 92, 92, 0.6);
    animation: targetPulse 1s infinite alternate;
}

@keyframes targetPulse {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

.slide-btn .sb-pos {
    font-size: 13px;
    font-weight: 700;
}

.slide-btn .sb-key {
    font-size: 10px;
    opacity: 0.7;
    font-family: monospace;
}

/* ==========================================================================
   LIBRARY SEARCH CARD, FILTERS & PUBLIC SONG BROWSER
   ========================================================================== */
.library-search-card {
    background-color: #262a33;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 14px;
    color: var(--color-text-secondary);
    font-size: 18px;
    pointer-events: none;
}

.search-input-wrap input {
    width: 100%;
    padding: 10px 36px 10px 42px;
    background: #1a1c22;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease;
}

.search-input-wrap input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(255, 189, 17, 0.2);
}

.search-filters-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-filters-row .topbar-select {
    padding: 8px 12px;
    background: #1a1c22;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e6ebf2;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.genre-tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: #a0a8b4;
}

.genre-tag.theme {
    background: rgba(255, 189, 17, 0.15);
    color: #ffbd11;
}

.genre-tag.jazz {
    background: rgba(147, 112, 219, 0.2);
    color: #b19ffb;
}

.genre-tag.etude {
    background: rgba(38, 166, 154, 0.2);
    color: #4dd0e1;
}

.diff-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    font-family: monospace;
    background: rgba(255, 255, 255, 0.08);
    color: #ccd2db;
}

.diff-badge.easy { color: #5cd68a; background: rgba(92, 214, 138, 0.15); }
.diff-badge.med  { color: #ffbd11; background: rgba(255, 189, 17, 0.15); }
.diff-badge.hard { color: #ff6b6b; background: rgba(255, 107, 107, 0.15); }

/* ==========================================================================
   ONLINE SHEET MUSIC SEARCH ENGINE MODAL
   ========================================================================== */
.online-sheet-dialog {
    max-width: 760px;
    width: 92vw;
    background: #22262c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 88vh;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.online-search-input-group {
    display: flex;
    gap: 8px;
}

.online-search-input-group input {
    flex: 1;
    background: #17191e;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

.online-search-input-group input:focus {
    border-color: #ffbd11;
}

.online-results-container {
    overflow-y: auto;
    max-height: 52vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.online-result-card {
    background: #2a2e37;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.online-result-card:hover {
    border-color: rgba(255, 189, 17, 0.4);
    background: #2f343e;
}

.online-empty-hint {
    text-align: center;
    padding: 36px 20px;
    color: var(--color-text-secondary);
    font-size: 14px;
}
