:root{--paper:#f6f0e3;--card:#fbf7ee;--ink:#2a2118;--muted:#7d6f5c;--rule:#d9ccb4;--accent:#9c3b22;--active:#c2571a;--good:#4f7a3a;--miss:#c0392b;--playing:#2f6db3;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--paper:#1d1914;--card:#26211b;--ink:#ece3d2;--muted:#a39580;--rule:#4a4034;--accent:#e08a5f;--active:#f0a24a;--good:#8cbf6c;--miss:#ef6b5b;--playing:#7fb0ef}}*{box-sizing:border-box}body{background:var(--paper);color:var(--ink);margin:0;font-family:EB Garamond,Georgia,serif;font-size:18px;line-height:1.45}#app{max-width:1040px;margin:0 auto;padding:24px 16px 64px}header{border-bottom:2px solid var(--ink);justify-content:space-between;align-items:end;gap:16px;padding-bottom:8px;display:flex}h1{letter-spacing:.02em;font-variant:small-caps;margin:0;font-size:2.2rem}.subtitle{color:var(--muted);margin:0;font-style:italic}h2{margin:0 0 4px;font-size:1.4rem;font-weight:600}h3{font-variant:small-caps;letter-spacing:.05em;color:var(--muted);margin:0 0 8px;font-size:1rem}.muted{color:var(--muted)}.pickers{flex-wrap:wrap;justify-content:flex-end;gap:6px 16px;display:flex}.level-pick{font-variant:small-caps}select,button{font:inherit;color:inherit}select{background:var(--card);border:1px solid var(--rule);border-radius:4px;padding:2px 6px}.lesson{margin:20px 0 12px}.lesson p{margin:0}.stage{background:var(--card);border:1px solid var(--rule);border-radius:6px;padding:8px 0 4px;position:relative}#score-wrap{overflow-x:auto}body[data-phase=running] #score-wrap{overflow:hidden}.hud{align-items:center;gap:14px;min-height:44px;padding:0 16px;display:flex}#hand{text-align:center;width:1.2em;color:var(--accent);font-size:1.8rem}#hand.pulse{animation:.35s ease-out pulse}@keyframes pulse{0%{transform:scale(1.5)}to{transform:scale(1)}}#status{color:var(--muted);flex:1;font-style:italic}#mic-readout{font-variant-numeric:tabular-nums;color:var(--playing);text-align:right;min-width:7em}.score{display:block}.staff-line{stroke:var(--ink);stroke-width:1px;opacity:.75}.barline{stroke:var(--ink);stroke-width:1.2px}.final-bar{fill:var(--ink)}.header-bg{fill:var(--card)}.clef{fill:var(--ink);font-family:Noto Music,Apple Symbols,Segoe UI Symbol,Bravura,serif;font-size:48px}.accidental{fill:var(--ink);dominant-baseline:central;text-anchor:middle;font-size:24px}.timesig{fill:var(--ink);dominant-baseline:central;text-anchor:middle;font-size:27px;font-weight:600}.playhead{stroke:var(--accent);stroke-width:2px;opacity:.55;stroke-dasharray:4 3}.note .head{stroke:var(--ink);stroke-width:1.5px;stroke-linejoin:round}.note .head.filled{fill:var(--ink)}.note .head.hollow{fill:var(--card)}.note .stem{stroke:var(--ink);stroke-width:1.4px}.note .flag,.note .dot{fill:var(--ink)}.note .hit-area{fill:#0000}.note .syl{text-anchor:middle;fill:var(--muted);font-size:15px;font-style:italic}.note.passed{opacity:.35}.note.active .head,.note.active .stem{stroke:var(--active)}.note.active .head.filled,.note.active .flag,.note.active .dot{fill:var(--active)}.note.active .syl{fill:var(--active);font-weight:600}.note.focus .syl{fill:var(--accent);font-weight:600}.note.passed.hit{opacity:.6}.note.hit .head,.note.hit .stem{stroke:var(--good)}.note.hit .head.filled,.note.hit .flag,.note.hit .dot{fill:var(--good)}.note.miss .head,.note.miss .stem{stroke:var(--miss)}.note.miss .head.filled,.note.miss .flag,.note.miss .dot{fill:var(--miss)}.trace{fill:none;stroke:var(--playing);stroke-width:2.5px;stroke-linecap:round;stroke-linejoin:round;opacity:.75}body[data-phase=review] .note{cursor:pointer}body[data-phase=review] .note:hover .hit-area{fill:var(--rule);opacity:.35}.note.missed .head,.note.missed .stem{stroke:var(--miss)}.note.missed .head.filled,.note.missed .flag,.note.missed .dot{fill:var(--miss)}.note.missed .syl{fill:var(--miss);text-decoration:line-through}.note.playing .head,.note.playing .stem{stroke:var(--playing)}.note.playing .head.filled,.note.playing .flag{fill:var(--playing)}#controls{flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 6px;display:flex}button{background:var(--card);border:1px solid var(--rule);cursor:pointer;border-radius:5px;padding:6px 14px}button:hover{border-color:var(--ink)}button.primary{background:var(--ink);color:var(--paper);border-color:var(--ink)}button.subtle{color:var(--muted);padding:3px 10px;font-size:.85rem}kbd{opacity:.65;margin-left:4px;font-family:ui-monospace,monospace;font-size:.7em}#tally{color:var(--muted);margin-left:auto}#teacher{border-left:3px solid var(--rule);min-height:1.5em;margin:6px 0 24px;padding-left:12px;font-style:italic}#teacher[data-change=introduce]{border-color:var(--good)}.pair-grid{grid-template-columns:auto repeat(4,1fr);gap:4px;margin:4px 0 8px;display:grid}.pair-grid .axis{place-self:end center;padding:0 6px;font-size:.85rem;font-weight:600}.pair-grid .axis:first-child{color:var(--muted);font-size:.7rem;font-style:italic;font-weight:400}.pair-grid .axis:nth-child(5n+1){place-self:center end}.cell{background:color-mix(in srgb, var(--rule) 25%, transparent);border-radius:4px;flex-wrap:wrap;align-content:flex-start;gap:4px;min-height:38px;padding:4px;display:flex}.cell>.muted{margin:auto}.chip{border:1px solid var(--rule);background:var(--card);border-radius:4px;flex:none;align-items:flex-start;gap:5px;min-width:54px;padding:2px 5px;font-size:.8rem;line-height:1.2;display:flex}.chip b{font-weight:600}.chip.new{border-color:var(--accent)}.chip.next{border-style:dashed;border-color:var(--accent);color:var(--muted)}.chip.locked{opacity:.4;border-style:dotted}.bands{width:38px;color:var(--muted);text-align:center;grid-template-columns:1fr 1fr;gap:2px 3px;font-size:.6rem;line-height:1;display:grid}.bands i{background:var(--rule);border-radius:2px;height:4px;position:relative;overflow:hidden}.bands i:after{content:"";width:var(--w);background:var(--good);position:absolute;inset:0}.bands i.off{border-top:1px dotted var(--rule);background:0 0;border-radius:0;height:0;margin-top:2px}body[data-range=open] .lesson,body[data-range=open] .stage,body[data-range=open] #controls,#range:empty{display:none}.range-card{background:var(--card);border:1px solid var(--rule);border-radius:6px;margin:20px 0 12px;padding:16px 20px}.range-card h2{margin-top:0}.range-card p{max-width:60ch;margin:6px 0 12px}.range-card .row{flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0;display:flex}.range-card .live{font-size:1.15rem}.range-card .live b,.range-card .pitch{text-align:center;min-width:3ch;color:var(--accent);display:inline-block}.range-card .nudge{gap:6px}.range-card .nudge .label{width:4.5em}.range-card .nudge button{min-width:2.2em}.range-row{margin:8px 0}.panels{grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px;display:grid}.panel{background:var(--card);border:1px solid var(--rule);border-radius:6px;padding:14px 16px;font-size:.95rem}.panel.wide{grid-column:1/-1}.panel p{margin:6px 0}.panel label{margin:4px 0;display:block}.panel h3:not(:first-child){margin-top:16px}.ladder{gap:3px;margin-bottom:12px;display:flex}.rung{background:var(--rule);border-radius:2px;flex:1;height:8px}.rung.done{background:var(--good)}.rung.here{background:var(--accent)}.recent{align-items:end;gap:12px;display:flex}.bars{flex:none;align-items:end;gap:4px;height:44px;display:flex}.bar{width:14px;height:var(--h);background:var(--muted);border-radius:2px 2px 0 0}.bar.good{background:var(--good)}.bar.empty{border:1px dashed var(--rule);background:0 0;height:100%}.recent p{margin:0}table{border-collapse:collapse;width:100%;max-width:460px;margin-bottom:8px}td{white-space:nowrap;padding:1px 4px}td.meter{width:100%}td.meter span{height:6px;width:var(--w);background:var(--good);border-radius:3px;display:block}td.meter span.weak{background:var(--miss)}.legend{flex-wrap:wrap;gap:14px;display:flex}.legend span{align-items:center;gap:4px;font-style:italic;display:inline-flex}.legend svg{width:20px;height:16px;fill:var(--ink)}
