:root{--font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;--font-body: "DM Sans", system-ui, -apple-system, sans-serif;--bg-deep: #0c0b10;--bg-surface: rgba(20, 18, 26, .72);--bg-elevated: rgba(30, 26, 38, .88);--bg-card: rgba(24, 22, 32, .65);--border: rgba(255, 255, 255, .07);--border-strong: rgba(255, 255, 255, .12);--border-accent: rgba(201, 169, 98, .28);--text: #ece8e3;--text-muted: #9a9488;--text-faint: #6b655c;--accent: #c9a962;--accent-bright: #e0c078;--accent-dim: rgba(201, 169, 98, .15);--accent-glow: rgba(201, 169, 98, .22);--primary: #3d6f8f;--primary-bright: #4f8fb5;--primary-dim: rgba(61, 111, 143, .2);--success: #6dbf7a;--warning: #e8a54b;--danger: #d45a5a;--danger-dim: rgba(212, 90, 90, .12);--radius-sm: 8px;--radius-md: 12px;--radius-lg: 16px;--radius-pill: 999px;--shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);--shadow-md: 0 8px 32px rgba(0, 0, 0, .35);--shadow-glow: 0 0 24px var(--accent-glow);--score-paper: #fffef0;--score-paper-shadow: #8a4d0f;--score-paper-radius: 6px;--score-paper-inset: 2.5rem;--score-ink: #2a2520;--score-ink-muted: #4a4035;--nav-height: 3.75rem;--practice-sidebar-width: 19.5rem;font-family:var(--font-body);line-height:1.55;color:var(--text);background:var(--bg-deep);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-height:100vh}a{color:var(--accent-bright);text-decoration:none;transition:color .15s ease}a:hover{color:#f0d898}.app{min-height:100vh;display:flex;flex-direction:column;position:relative}.app-bg{position:fixed;top:0;right:0;bottom:0;left:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse 80% 60% at 15% -10%,rgba(61,111,143,.18),transparent 55%),radial-gradient(ellipse 70% 50% at 85% 5%,rgba(201,169,98,.1),transparent 50%),radial-gradient(ellipse 60% 40% at 50% 100%,rgba(61,111,143,.08),transparent 55%),var(--bg-deep)}.app-bg:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;opacity:.35;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");background-size:180px 180px}.page-loading{display:flex;align-items:center;justify-content:center;min-height:12rem}.nav{display:flex;gap:1.25rem;align-items:center;padding:.85rem 1.5rem;background:var(--bg-surface);backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100}.brand{display:inline-flex;align-items:center;gap:.65rem;margin-right:auto;color:var(--text)!important;font-family:var(--font-display);font-weight:600;font-size:1.35rem;letter-spacing:.02em;transition:opacity .15s ease}.brand:hover{color:var(--text)!important;opacity:.85}.brand-mark{display:block;flex-shrink:0;width:2.5rem;height:2.5rem;color:var(--primary-bright)}.brand-mark svg{display:block;width:100%;height:100%}.nav-links{display:flex;gap:.25rem}.nav a:not(.brand){padding:.4rem .85rem;border-radius:var(--radius-pill);color:var(--text-muted);font-size:.9rem;font-weight:500;transition:color .15s ease,background .15s ease}.nav a:not(.brand):hover{color:var(--text);background:#ffffff0d}.nav a.active:not(.brand){color:var(--accent-bright);background:var(--accent-dim);font-weight:600}.midi-status{display:flex;align-items:center;gap:.45rem;padding:.35rem .75rem;border-radius:var(--radius-pill);background:#ffffff0a;border:1px solid var(--border);font-size:.75rem;color:var(--text-muted);max-width:180px}.midi-dot{flex-shrink:0;width:7px;height:7px;border-radius:50%;background:var(--text-faint);transition:background .2s ease,box-shadow .2s ease}.midi-status.connected .midi-dot{background:var(--success);box-shadow:0 0 8px #6dbf7a99}.midi-status.connected{border-color:#6dbf7a40;color:var(--success)}.midi-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.main{flex:1;padding:2rem 1.5rem 3rem;max-width:960px;width:100%;margin:0 auto;position:relative;z-index:1}.page h1{font-family:var(--font-display);font-weight:600;font-size:clamp(2rem,5vw,2.75rem);line-height:1.15;margin:0 0 .75rem;letter-spacing:-.01em}.page h2{font-family:var(--font-display);font-weight:600;font-size:1.5rem;margin:2rem 0 .75rem}.muted{color:var(--text-muted)}.empty{margin-top:2rem;color:var(--text-muted)}.error{color:var(--danger)}.pass{color:var(--success)}.fail{color:var(--warning)}.hero{margin-bottom:2.5rem;padding:1.25rem 0 .25rem}.hero-eyebrow{margin:0 0 .35rem;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.12em;color:var(--accent)}.hero-title{display:flex;align-items:center;gap:.45em;line-height:1}.page .hero-title{margin-bottom:.5rem}.hero-mark{flex-shrink:0;width:2em;height:2em;margin-block:-.35em;color:var(--primary-bright)}.hero-sub{margin:0 0 1.75rem;max-width:36rem;font-size:1.05rem;color:var(--text-muted);line-height:1.65}.section-heading{font-family:var(--font-display);font-size:1.25rem;font-weight:600;color:var(--text-muted);margin:0 0 1rem;letter-spacing:.04em;text-transform:uppercase}.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:3rem 1.5rem;margin-top:1rem;border-radius:var(--radius-lg);background:var(--bg-card);border:1px dashed var(--border-strong)}.empty-icon{font-size:2.5rem;color:var(--accent);opacity:.5;margin-bottom:.75rem}.empty-state p{margin:.25rem 0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.55rem 1.15rem;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--bg-elevated);color:var(--text);cursor:pointer;font:inherit;font-size:.9rem;font-weight:500;transition:background .15s ease,border-color .15s ease,transform .1s ease,box-shadow .15s ease}.btn:hover{background:#ffffff14;border-color:#ffffff2e}.btn:active{transform:scale(.98)}.btn.primary{background:linear-gradient(135deg,var(--primary) 0%,#2d5570 100%);border-color:#4f8fb566;color:#fff;box-shadow:0 2px 12px #3d6f8f4d}.btn.primary:hover{background:linear-gradient(135deg,var(--primary-bright) 0%,var(--primary) 100%);border-color:#4f8fb58c;box-shadow:0 4px 20px #3d6f8f66}.btn-lg{padding:.75rem 1.5rem;font-size:1rem;border-radius:var(--radius-md)}.file-label{margin-top:1rem}.song-list,.device-list,.section-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.65rem}.device-list{margin-top:1.25rem}.song-list a,.section-list a{display:flex;flex-direction:column;padding:1rem 1.15rem;background:var(--bg-card);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:var(--radius-md);border:1px solid var(--border);color:inherit;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .15s ease}.song-list a:hover,.section-list a:hover{border-color:var(--border-accent);background:#1e1a26d9;box-shadow:var(--shadow-sm);transform:translateY(-1px);color:inherit}.song-row{display:flex;align-items:stretch;gap:.5rem}.song-row .song-link{flex:1;min-width:0}.btn-danger{background:var(--danger-dim);border-color:#d45a5a59;color:var(--danger);flex-shrink:0;align-self:center}.btn-danger:hover{background:#d45a5a33;border-color:#d45a5a80}.btn-icon{padding:.5rem .75rem;font-size:.875rem}.song-list strong{font-family:var(--font-display);font-size:1.15rem;font-weight:600}.song-list span,.section-list span{font-size:.85rem;color:var(--text-muted);margin-top:.2rem}.section-list .locked{opacity:.45;padding:1rem 1.15rem;background:var(--bg-card);border-radius:var(--radius-md);border:1px solid var(--border)}.section-card{display:flex;flex-direction:column;gap:.75rem;padding:1rem 1.15rem;background:var(--bg-card);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:var(--radius-md);border:1px solid var(--border);transition:border-color .2s ease}.section-card:hover{border-color:var(--border-strong)}.section-list .lock{font-size:.85rem;color:var(--text-faint)}.section-card strong{font-family:var(--font-display);font-size:1.1rem;font-weight:600}.step-chips{display:flex;flex-wrap:wrap;gap:.45rem}.step-chip{display:inline-flex;align-items:center;justify-content:center;padding:.35rem .85rem;background:#ffffff0a;border:1px solid var(--border);border-radius:var(--radius-pill);color:inherit;font:inherit;font-size:.82rem;font-weight:500;cursor:pointer;text-decoration:none;transition:background .15s ease,border-color .15s ease,color .15s ease}.step-chip:hover{background:#ffffff14;border-color:var(--border-accent)}.step-chip.active{background:linear-gradient(135deg,var(--accent-dim),var(--primary-dim));border-color:var(--border-accent);color:var(--accent-bright)}.step-chip--icon{padding:.4rem .65rem}.hand-phase-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1}.hand-phase-icon--both{gap:.1rem}.hand-phase-icon__glyph{font-family:Material Symbols Outlined;font-weight:400;font-style:normal;font-size:1.15rem;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 20;-webkit-font-smoothing:antialiased}.hand-phase-icon__glyph--left{transform:scaleX(-1)}.practice-picker{display:flex;flex-direction:column;gap:.75rem;margin-bottom:.75rem;padding:1rem 1.15rem;background:var(--bg-card);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--border);border-radius:var(--radius-md)}.picker-field{display:flex;flex-direction:column;gap:.35rem}.picker-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;color:var(--text-faint);font-weight:600}.picker-select{padding:.55rem .85rem;background-color:#1a1722;color:var(--text);border:1px solid var(--border-strong);border-radius:var(--radius-sm);font:inherit;color-scheme:dark;transition:border-color .15s ease}.picker-select:focus{outline:none;border-color:var(--border-accent)}.picker-select option{background-color:#1a1722;color:var(--text)}.card-btn{width:100%;text-align:left;padding:1rem 1.15rem;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md);color:inherit;cursor:pointer;font:inherit;transition:border-color .2s ease,background .2s ease,transform .15s ease}.card-btn:hover{border-color:var(--border-accent);background:#1e1a26d9;transform:translateY(-1px)}.card-btn strong{font-family:var(--font-display);font-size:1.05rem}.card-btn span{display:block;font-size:.85rem;color:var(--text-muted);margin-top:.15rem}.field{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1.5rem}.field.checkbox{flex-direction:row;align-items:center;gap:.65rem}.field input[type=range]{accent-color:var(--accent)}.field input[type=checkbox]{width:1.1rem;height:1.1rem;accent-color:var(--accent)}.field select{padding:.55rem .85rem;background-color:#1a1722;color:var(--text);border:1px solid var(--border-strong);border-radius:var(--radius-sm);font:inherit;color-scheme:dark}.field select option{background-color:#1a1722;color:var(--text)}.field select:focus{outline:none;border-color:var(--border-accent)}.dialog{padding:1.25rem;background:var(--bg-elevated);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid var(--border-strong);border-radius:var(--radius-md);margin-bottom:1rem;box-shadow:var(--shadow-md)}.dialog h2{margin-top:0}.row{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center;margin-top:1rem}.track-list{display:flex;flex-direction:column;gap:.5rem;margin-top:.75rem}.track-row{margin-top:0;gap:.5rem;justify-content:flex-start}.progress-bar{height:6px;background:#ffffff0f;border-radius:var(--radius-pill);overflow:hidden;margin:.5rem 0}.progress-fill{height:100%;background:linear-gradient(90deg,var(--primary),var(--accent));border-radius:var(--radius-pill);transition:width .2s ease;box-shadow:0 0 12px var(--accent-glow)}.osmd{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background:transparent;position:relative}.osmd-surface{width:100%;min-height:100%;overflow-x:hidden}.osmd svg{display:block}.osmd .vf-measure.dimmed{opacity:.22}.osmd .vf-measure.section-active{opacity:1}.osmd .vf-measure.hand-dimmed{opacity:.22}.osmd #cursorImg-0,.osmd .cursor,.osmd .osmdCursor{display:none!important}.osmd .vf-notehead.practice-note-highlight path,.osmd .vf-flag.practice-note-highlight path,.osmd .vf-accidental.practice-note-highlight path,.osmd .vf-articulation.practice-note-highlight path{fill:#22c55e!important;stroke:none!important}.osmd .vf-stem.practice-note-highlight path{stroke:#22c55e!important}.practice{max-width:none;flex:1;min-height:0;display:flex;flex-direction:column}html:has(.practice),body:has(.practice){overflow:hidden;height:100%}.app:has(.practice){height:100dvh;max-height:100dvh;overflow:hidden}.main:has(.practice){max-width:none;flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:1.25rem 1.25rem 1rem}.practice-layout{flex:1;min-height:0;display:flex;gap:1.25rem;align-items:stretch}.practice-sidebar{flex:0 0 var(--practice-sidebar-width);width:var(--practice-sidebar-width);min-height:0;max-height:100%;display:flex;flex-direction:column;gap:.75rem;overflow-y:auto;overscroll-behavior:contain;padding-bottom:.5rem;z-index:5;background:transparent;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.practice-title{font-family:var(--font-display);font-weight:600;font-size:1.45rem;line-height:1.2;margin:0;letter-spacing:-.01em}.practice-key{margin:.2rem 0 0;font-size:.85rem;color:var(--text-muted)}.practice-score{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:visible;padding:1rem 1rem 1.35rem;background:transparent}.practice-score-paper{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;position:relative;overflow:visible;border-radius:var(--score-paper-radius);padding:var(--score-paper-inset)}.practice-score-paper:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;border-radius:var(--score-paper-radius);box-shadow:0 0 30px var(--score-paper-shadow) inset;background:var(--score-paper) url(/textures/noise.svg);filter:url(#wavy2) drop-shadow(0 4px 6px rgba(0,0,0,.65))}.practice-score-paper .osmd{position:relative;z-index:2;scrollbar-width:thin;scrollbar-color:rgba(60,50,38,.3) transparent;scrollbar-gutter:stable}.practice-score-paper .osmd::-webkit-scrollbar{width:6px}.practice-score-paper .osmd::-webkit-scrollbar-track{background:transparent}.practice-score-paper .osmd::-webkit-scrollbar-thumb{background-color:#3c32264d;border-radius:999px;border:2px solid transparent;background-clip:padding-box}.practice-score-paper .osmd::-webkit-scrollbar-corner{background:transparent}.practice-instrument{flex:0 0 auto;margin-top:.85rem;padding:.35rem .5rem .15rem;display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box}.instrument-piano{overflow-x:auto;padding-bottom:.15rem;width:100%}.instrument-piano-keys{--white-key-count: 20;position:relative;display:flex;gap:2px;width:100%;height:4.25rem}.instrument-piano-keys .instrument-key--white.instrument-key--pad{flex:1 1 0;width:auto;min-width:0;height:100%;aspect-ratio:auto}.instrument-piano-keys .instrument-key--black.instrument-key--pad{position:absolute;top:0;flex:none;width:calc(100% / var(--white-key-count) * .65);height:62%;min-width:0;max-width:none;transform:translate(-50%);z-index:1;aspect-ratio:auto}.instrument-linn{width:100%;min-width:0;overflow:visible;padding-bottom:.15rem}.instrument-linn-canvas{display:block;width:100%;max-width:100%}.instrument-key--pad{flex:0 0 auto;width:.72rem;height:.72rem;border-radius:2px;background:#ffffff0f;border:1px solid var(--border);transition:background .08s ease,box-shadow .08s ease,border-color .08s ease}.instrument-key--pad.instrument-key--expected{background:var(--accent-dim);border-color:var(--accent);box-shadow:0 0 6px var(--accent-glow)}.instrument-key--pad.instrument-key--pressed{background:var(--primary-dim);border-color:var(--primary-bright)}.instrument-key--pad.instrument-key--expected.instrument-key--pressed{background:#6dbf7a59;border-color:var(--success)}.practice-sidebar .practice-picker,.practice-sidebar .guided-banner{margin-bottom:0}.practice-sidebar .progress-bar,.practice-sidebar .practice-prompt,.practice-sidebar .practice-transition{margin:0}.practice-sidebar .practice-instrument{margin-top:.65rem;margin-bottom:.5rem;width:100%;align-items:stretch;padding:0}.practice-sidebar .instrument-piano-keys{width:100%;height:4.25rem}.practice-sidebar .instrument-piano-keys .instrument-key--white.instrument-key--pad{flex:1 1 0;width:auto;min-width:0;height:100%;aspect-ratio:auto}.practice-sidebar .instrument-linn,.practice-sidebar .instrument-linn-canvas{width:100%}.practice-sidebar .practice-actions{margin-top:auto;flex-direction:column;align-items:stretch}.practice-sidebar .practice-actions .btn{width:100%;text-align:center;justify-content:center}.practice-sidebar .step-chips{flex-wrap:wrap}.practice-sidebar .practice-transition .row{flex-direction:column;align-items:stretch;margin-top:.75rem}.practice-sidebar .practice-transition .btn{width:100%}.practice-prompt{margin:.75rem 0 1rem;padding:1rem 1.15rem;background:linear-gradient(135deg,var(--primary-dim),var(--accent-dim));border:1px solid var(--border-accent);border-radius:var(--radius-md);display:flex;flex-direction:column;gap:.25rem}.practice-prompt strong{font-family:var(--font-display);font-size:1.25rem;color:var(--accent-bright)}.practice-prompt .muted{font-size:.85rem}.guided-banner{display:flex;flex-direction:column;gap:.2rem;margin-bottom:.5rem;font-size:.88rem;color:var(--text-muted)}.practice-transition{margin:.75rem 0;padding:1rem 1.15rem;background:var(--bg-card);border-radius:var(--radius-md);border:1px solid var(--border)}.practice-transition p{margin:0}.continue-btn{margin-bottom:1.25rem}.full-song-btn{display:flex;flex-direction:column;align-items:flex-start;gap:.2rem;width:100%;margin-bottom:1.5rem;text-align:left}.full-song-meta{font-size:.8125rem;font-weight:400;color:var(--text-muted)}.btn.muted-link{background:transparent;border-color:transparent;color:var(--text-faint);font-size:.875rem}.btn.muted-link:hover{color:var(--text-muted);background:transparent}@media(max-width:640px){.nav{flex-wrap:wrap;gap:.75rem;padding:.75rem 1rem}.brand{font-size:1.2rem}.nav-links{order:3;width:100%;justify-content:center}.midi-status{max-width:120px}.main{padding:1.25rem 1rem 2.5rem}.hero{padding-top:.5rem}.practice-layout{flex-direction:column;min-height:auto}html:has(.practice),body:has(.practice){overflow:auto;height:auto}.app:has(.practice){height:auto;max-height:none;overflow:visible}.main:has(.practice){overflow:visible}.practice-sidebar{width:100%;flex:none;max-height:none;overflow-y:visible}.practice-score{min-height:55vh;overflow:visible;padding:.75rem .5rem 1rem}.practice-score-paper{min-height:55vh;overflow:visible}.practice-score-paper .osmd,.osmd{min-height:280px;max-height:none}.practice-sidebar .practice-actions{flex-direction:row;flex-wrap:wrap}.practice-sidebar .practice-actions .btn{width:auto}}
