:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#f6f4ef;--surface:#fff;--text:#2b2620;--muted:#7a736a;--border:#ddd6cc;--accent:#b3611f;--accent-dark:#8f4c15;--success-bg:#e5f3e5;--success-text:#1e6b2e;--failure-bg:#fbe7e7;--failure-text:#a02828;--wood:#7a4a26;--wood-dark:#5e3719;--note-root:#c2410c;--note-root-text:#fff;--note-tone:#f3ead9;--note-tone-text:#2b2620;--fb-correct:#2f8a43;--fb-wrong:#c23030;--fb-correct-ring:#7fdc8f;--fb-tint-0:#4fa3ff;--fb-tint-1:#3ccf8e;--fb-tint-2:#e868c9;font-family:Segoe UI,system-ui,Avenir,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.5}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#1d1a16;--surface:#29241f;--text:#ece7df;--muted:#a39a8d;--border:#423a31;--accent:#d98a3d;--accent-dark:#b3611f;--success-bg:#1f3a24;--success-text:#8fd49b;--failure-bg:#452123;--failure-text:#f2a0a0}}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);min-height:100vh;margin:0}#root{max-width:960px;margin:0 auto;padding:1rem}button{font:inherit;cursor:pointer}h1,h2{margin:0}.trainer{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-direction:column;align-items:center;gap:1rem;padding:1.5rem;display:flex}@media (width<=600px){.trainer>h2{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}.instructions{color:var(--muted);margin:0}.note-btn{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;padding:.6rem 0;font-size:1rem;font-weight:600;transition:background .1s,border-color .1s}.note-btn:hover:not(:disabled){border-color:var(--accent)}.note-btn.selected{background:var(--accent);border-color:var(--accent);color:#fff}.note-btn:disabled{cursor:default;opacity:.85}.note-btn.correct{background:var(--success-bg);border-color:var(--success-text);color:var(--success-text);opacity:1}.note-btn.wrong{background:var(--failure-bg);border-color:var(--failure-text);color:var(--failure-text);opacity:1}.chord-prompt{flex-direction:column;align-items:center;gap:.5rem;display:flex}.prompt-caption{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:-.4rem;font-size:.75rem;font-weight:600}.prompt-question{text-align:center;font-size:1.2rem}.prompt-subtitle{color:var(--muted);margin-top:-.35rem;font-size:.85rem}.chord-name{font-size:1.75rem;font-weight:700}.tone-slots{gap:.75rem;display:flex}.tone-slot{text-align:center;border:1px solid var(--border);background:var(--bg);border-radius:8px;min-width:3rem;padding:.5rem .75rem;font-size:1.25rem;font-weight:600}.tone-slot.hidden-tone{border-style:dashed;border-color:var(--accent);color:var(--accent)}.check-label{color:var(--muted);cursor:pointer;align-items:center;gap:.4rem;font-size:.9rem;display:flex}.check-label input{accent-color:var(--accent);width:1rem;height:1rem}.flashcard{aspect-ratio:5/3;background:var(--bg);border:1px solid var(--border);border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:.25rem;width:min(100%,20rem);display:flex;box-shadow:0 6px 16px #0000001f}.flashcard-note{font-size:4rem;font-weight:700;line-height:1}.flashcard-quality{color:var(--muted);font-size:1.1rem}.tone-slot-wrap{flex-direction:column;align-items:center;gap:.2rem;display:flex}.tone-role{color:var(--muted);font-size:.75rem}.tone-slot.correct{background:var(--success-bg);border-color:var(--success-text);color:var(--success-text)}.tone-slot.wrong{background:var(--failure-bg);border-color:var(--failure-text);color:var(--failure-text)}.toggle-row{flex-wrap:wrap;justify-content:center;gap:1.25rem;display:flex}.toggle-group{flex-direction:column;align-items:center;gap:.35rem;display:flex}.toggle-label{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-size:.75rem;font-weight:700}.field-label{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-top:-.25rem;font-size:.8rem;font-weight:700}.chip-row{flex-wrap:wrap;justify-content:center;gap:.5rem;display:flex}.chip-btn{min-width:3.25rem;padding:.6rem 1rem}.key-label{font-size:1.25rem;font-weight:700}.interval-picker{grid-template-columns:repeat(4,minmax(90px,1fr));gap:.5rem;width:100%;max-width:540px;display:grid}@media (width<=520px){.interval-picker{grid-template-columns:repeat(3,1fr)}}.interval-btn{flex-direction:column;align-items:center;gap:.1rem;padding:.5rem .25rem;display:flex}.interval-name{font-size:.85rem}.interval-short{opacity:.65;font-size:.75rem;font-weight:500}.fretboard-area{max-width:100%;display:flex}.fretboard-labels{flex-shrink:0}.fretboard-scroll{min-width:0;overflow-x:auto}.fb-wood{fill:var(--wood)}.fb-nut{fill:#e8dcc8}.fb-fret{stroke:#c9c2b4;stroke-width:2px}.fb-inlay{fill:#e8dcc8;opacity:.55}.fb-string{stroke:#d8d3c8}.fb-label{fill:var(--text);text-anchor:middle;font-size:13px;font-weight:600}.fb-string.dimmed,.fb-label.dimmed{opacity:.25}.fb-fretnum{fill:var(--muted);text-anchor:middle;font-size:11px}.fb-marker{fill:var(--accent)}.fb-marker-ring{fill:none;stroke:#fff;stroke-width:2px}.fb-note circle{fill:var(--note-tone)}.fb-note text{fill:var(--note-tone-text);text-anchor:middle;font-size:10.5px;font-weight:700}.fb-note.root circle{fill:var(--note-root);stroke:var(--note-root-text);stroke-width:1.5px}.fb-note.root text{fill:var(--note-root-text)}.fb-note.correct circle{fill:var(--fb-correct);stroke:#fff;stroke-width:1.5px}.fb-note.wrong circle{fill:var(--fb-wrong);stroke:#fff;stroke-width:1.5px}.fb-note.correct text,.fb-note.wrong text{fill:#fff}.fb-hit{fill:#0000;cursor:pointer;outline:none}.fb-hit:hover{fill:#ffffff1f}.fb-hit:focus-visible{fill:#ffffff2e;stroke:#fff;stroke-width:2px}.fb-note.selected circle{fill:var(--accent);stroke:#fff;stroke-width:2px}.fb-note.missed circle{fill:var(--wood-dark);stroke:var(--fb-correct-ring);stroke-width:2.5px;stroke-dasharray:3 2.5}.fb-note.selected text,.fb-note.missed text{fill:#fff}.fb-note[class*=tint-] circle{stroke-width:3px}.fb-note.tint-0 circle{stroke:var(--fb-tint-0)}.fb-note.tint-1 circle{stroke:var(--fb-tint-1)}.fb-note.tint-2 circle{stroke:var(--fb-tint-2)}.note-picker{grid-template-columns:repeat(6,minmax(48px,1fr));gap:.5rem;width:100%;max-width:480px;display:grid}@media (width<=480px){.note-picker{grid-template-columns:repeat(4,1fr)}}.primary-btn{background:var(--accent);color:#fff;border:none;border-radius:8px;padding:.6rem 2.5rem;font-size:1rem;font-weight:600}.primary-btn:hover:not(:disabled){background:var(--accent-dark)}.primary-btn:disabled{opacity:.45;cursor:default}.result{border-radius:8px;padding:.75rem 1.25rem;font-size:1.05rem}.result.success{background:var(--success-bg);color:var(--success-text)}.result.failure{background:var(--failure-bg);color:var(--failure-text)}.mode-toggle{border:1px solid var(--border);border-radius:999px;display:flex;overflow:hidden}.mode-btn{white-space:nowrap;background:var(--surface);color:var(--text);border:none;padding:.4rem 1.5rem;font-weight:600}.mode-btn.active{background:var(--accent);color:#fff}@media (width<=480px){.mode-toggle{max-width:100%}.mode-btn{padding:.4rem clamp(.4rem,3.5vw - .4rem,.9rem)}.mode-toggle.wrap{border-radius:12px;grid-template-columns:1fr 1fr;width:min(100%,20rem);display:grid}.mode-toggle.wrap .mode-btn{min-width:0;padding-inline:.25rem}}.chip-row.string-row{flex-wrap:nowrap;gap:.3rem;width:min(100%,24rem)}.string-btn{flex-direction:column;flex:1;justify-content:center;align-items:center;min-width:0;line-height:1.1;display:flex}.string-num{opacity:.8;font-size:.7rem;font-weight:500}.dropdown{letter-spacing:.08em;text-transform:uppercase;min-width:0;max-width:100%;color:var(--muted);align-items:center;gap:.5rem;font-size:.75rem;font-weight:600;display:flex}.dropdown-select{appearance:none;text-overflow:ellipsis;width:100%;min-width:0;font:inherit;letter-spacing:normal;text-transform:none;border:1px solid var(--accent);color:var(--text);background:var(--surface);cursor:pointer;border-radius:999px;padding:.4rem 2.2rem .4rem 1.1rem;font-size:1rem;font-weight:600}.dropdown-select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.dropdown-wrap{min-width:0;display:inline-flex;position:relative}.dropdown-wrap:after{content:"";border-right:2px solid var(--accent);border-bottom:2px solid var(--accent);pointer-events:none;width:.4rem;height:.4rem;position:absolute;top:50%;right:1rem;transform:translateY(-70%)rotate(45deg)}.secondary-btn{border:2px solid var(--accent);color:var(--accent);background:0 0;border-radius:8px;padding:.6rem 2rem;font-size:1rem;font-weight:600}.secondary-btn:hover:not(:disabled){background:var(--accent);color:#fff}.secondary-btn:disabled{opacity:.55;cursor:default}.chip-row.triad-set-row{flex-wrap:nowrap;gap:.3rem;width:min(100%,26rem)}.triad-set-btn{white-space:nowrap;flex:1;min-width:0;padding:.5rem .2rem;font-size:.85rem}.staff-wrap{border:1px solid var(--border);background:#fdfcf8;border-radius:8px;max-width:100%;overflow-x:auto}.staff-line{stroke:#4a443c;stroke-width:1.2px}.staff-line.ledger{stroke-width:1.6px}.staff-clef,.staff-sig,.staff-accidental,.note-head{fill:#2b2620}.note-head.hollow{fill:none;stroke:#2b2620;stroke-width:2.2px}.note-stem{stroke:#2b2620;stroke-width:1.8px}.note-flag{fill:none;stroke:#2b2620;stroke-width:2.4px;stroke-linecap:round}.duration-picker{flex-wrap:wrap;justify-content:center;gap:.5rem;display:flex}.duration-btn{padding:.6rem .9rem;font-size:.9rem}.drone-key-notice{border:1px solid var(--accent);color:var(--accent);text-align:center;border-radius:8px;margin:0;padding:.4rem .8rem;font-size:.9rem}.scale-steps{letter-spacing:.04em;color:var(--accent);white-space:nowrap;margin-top:.35rem;font-size:.9rem;font-weight:600}.scale-slots{width:min(100%, calc(var(--slots,7) * 4.3rem));gap:.35rem}.scale-slots .tone-slot-wrap{flex:1;min-width:0}.scale-slots .tone-slot{flex-direction:column;justify-content:center;width:100%;min-width:0;min-height:3.2rem;padding:.3rem .1rem;font-size:1.05rem;line-height:1.15;display:flex}@media (width<=480px){.scale-slots{gap:.25rem}.scale-slots .tone-slot{font-size:.95rem}}.quality-chip{text-transform:capitalize}.progression-slots{gap:.5rem}.progression-slot,.progression-given{min-width:3.5rem;font-family:inherit}.progression-given{color:var(--muted)}.progression-slot:not(:disabled){cursor:pointer;color:var(--text)}.numeral-chip{min-width:3.5rem;font-family:Georgia,Times New Roman,serif}.ear-settings{align-items:center;gap:.75rem;display:flex}.ear-settings-label{color:var(--muted);font-weight:600}.key-select{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;padding:.35rem .5rem;font-weight:600}.ear-game{flex-direction:column;align-items:center;gap:1rem;width:100%;display:flex}.degree-name{color:var(--accent);font-weight:600}.degree-num{color:var(--muted);font-size:.85em;font-weight:500}.degree-info{border:1px solid var(--border);border-left:3px solid var(--accent);background:var(--bg);border-radius:8px;max-width:480px;padding:.9rem 1.15rem}.degree-info-title{margin-bottom:.35rem;font-weight:700}.degree-info p{color:var(--muted);margin:0;font-size:.95rem;line-height:1.55}.capitalize{text-transform:capitalize}.numeral-display{color:var(--accent);letter-spacing:.03em;font-weight:700}.numeral-btn{font-variant-numeric:normal;letter-spacing:.02em}.nowrap{white-space:nowrap}.transport-btn{border:2px solid var(--border);background:var(--bg);width:3.5rem;height:3.5rem;color:var(--muted);border-radius:50%;flex-shrink:0;place-items:center;transition:background .15s,border-color .15s,color .15s;display:grid;box-shadow:0 3px 8px #0000001f}.transport-btn.playing{background:var(--accent);border-color:var(--accent);color:#fff}@media (hover:hover){.transport-btn:hover{border-color:var(--accent)}.transport-btn.playing:hover{background:var(--accent-dark)}}.transport-icon{fill:currentColor;width:1.75rem;height:1.75rem}.tool-panel{flex-direction:column;align-items:center;gap:.75rem;width:100%;max-width:28rem;display:flex}.tool-panel+.tool-panel{border-top:1px solid var(--border);padding-top:1rem}.tool-header{justify-content:space-between;align-items:baseline;gap:.75rem;width:100%;display:flex}.tool-title{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;align-self:flex-start;margin:0;font-size:.8rem;font-weight:600}.tool-main{align-items:center;gap:.75rem;width:100%;display:flex}.bpm-stepper{flex:1;justify-content:center;align-items:center;gap:.25rem;min-width:0;display:flex}.bpm-step,.tap-btn{border:1px solid var(--border);background:var(--surface);height:2.75rem;color:var(--text);touch-action:manipulation;border-radius:8px;flex-shrink:0;font-weight:600}.bpm-step{width:2.75rem;font-size:1.25rem}.bpm-step:disabled{opacity:.4}.tap-btn{padding:0 .85rem}.tap-btn:active,.bpm-step:active:not(:disabled){border-color:var(--accent);color:var(--accent)}@media (hover:hover){.tap-btn:hover,.bpm-step:hover:not(:disabled){border-color:var(--accent)}}.bpm-value{text-align:center;min-width:3.25rem;line-height:1.1}.bpm-value strong{font-variant-numeric:tabular-nums;font-size:1.5rem;display:block}.bpm-value span{color:var(--muted);letter-spacing:.04em;font-size:.7rem}.bpm-slider{width:100%;height:1.75rem;accent-color:var(--accent);margin:0}.meter-row{flex-wrap:wrap;justify-content:center;align-items:center;gap:.6rem .9rem;width:100%;display:flex}.beat-dots{align-items:center;gap:.35rem;display:flex}.beat-dot{background:var(--border);border-radius:50%;width:.55rem;height:.55rem}.beat-dot.strong{width:.8rem;height:.8rem}.beat-dot.medium{width:.65rem;height:.65rem}.beat-dot.current{background:var(--accent)}.metronome-failed{color:var(--failure-text);text-align:center;margin:0;font-size:.9rem}.drone-controls{flex-wrap:wrap;justify-content:space-between}.drone-key{font-weight:600}.drone-notes{color:var(--muted);font-weight:400}@media (width<=380px){.tool-main{gap:.4rem}.tool-main .transport-btn{width:3rem;height:3rem}.bpm-stepper{gap:.1rem}.bpm-step{width:2.25rem}.bpm-value{min-width:2.6rem}.tap-btn{padding:0 .5rem}.drone-controls{justify-content:center}}.explorer-summary{flex-direction:column;align-items:center;gap:.5rem;width:100%;display:flex}.explorer-name{text-align:center;font-size:1.15rem;font-weight:700}.explorer-tones{justify-content:center;gap:.25rem;width:100%;margin:0;padding:0;list-style:none;display:flex}.explorer-tone{border:1px solid var(--border);border-radius:8px;flex-direction:column;flex:0 2.5rem;align-items:center;min-width:0;padding:.2rem 0;display:flex}.explorer-tone.root{border-color:var(--note-root);background:var(--note-root);color:var(--note-root-text)}.explorer-tone-note{font-weight:700}.explorer-tone-degree{opacity:.8;font-size:.75rem}@media (width<=340px){.explorer-name{font-size:1rem}}.triad-list{grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:.4rem 1rem;width:100%;max-width:44rem;margin:0;padding:0;list-style:none;display:grid}.triad-item{border:1px solid var(--border);border-radius:8px;grid-template-columns:auto 1fr;grid-template-areas:"swatch inversion""swatch detail";align-items:center;column-gap:.5rem;padding:.35rem .6rem;display:grid}.triad-swatch{border:3px solid;border-radius:50%;grid-area:swatch;width:.9rem;height:.9rem}.triad-item.tint-0 .triad-swatch{border-color:var(--fb-tint-0)}.triad-item.tint-1 .triad-swatch{border-color:var(--fb-tint-1)}.triad-item.tint-2 .triad-swatch{border-color:var(--fb-tint-2)}.triad-inversion{white-space:nowrap;grid-area:inversion;font-weight:600}.triad-inversion:first-letter{text-transform:uppercase}.triad-detail{color:var(--muted);font-variant-numeric:tabular-nums;grid-area:detail;font-size:.85rem}.practice-indicator{border:1px solid var(--accent);background:var(--surface);color:var(--accent);white-space:nowrap;border-radius:999px;flex-shrink:0;align-items:center;gap:.45rem;margin-left:auto;padding:.35rem .5rem .35rem .8rem;font-size:.9rem;font-weight:600;display:inline-flex}.practice-indicator.paused{border-color:var(--border);color:var(--muted)}.practice-indicator-paused{font-weight:400}.practice-indicator-stop{background:var(--accent);fill:#fff;border-radius:50%;width:1.4rem;height:1.4rem;padding:.25rem}.practice-indicator.paused .practice-indicator-stop{background:var(--muted)}@media (width<=600px){.practice-indicator{order:1;align-self:center;gap:0;padding:.2rem}.practice-indicator-label{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.practice-indicator-stop{width:1.75rem;height:1.75rem;padding:.4rem}}.audio-interrupted{border:1px solid var(--accent);color:var(--accent);text-align:center;border-radius:8px;margin:0 0 .75rem;padding:.4rem .8rem;font-size:.9rem}.app-header{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:1.5rem;padding-bottom:1rem;display:flex}.app-header h1{font-size:1.5rem}.title-short{display:none}.tabs{flex-wrap:wrap;flex-basis:100%;gap:.4rem;display:flex}.tab{white-space:nowrap;border:1px solid var(--border);background:var(--surface);max-width:100%;color:var(--text);border-radius:999px;padding:.45rem .8rem;font-size:.95rem;display:inline-flex}.tab-label{text-overflow:ellipsis;min-width:0;overflow:hidden}.tab.active{background:var(--accent);border-color:var(--accent);color:#fff}@media (width<=600px){.app-header{flex-wrap:nowrap;justify-content:flex-start;align-items:baseline;margin-bottom:.75rem}.app-header h1{flex-shrink:0}.title-full{display:none}.title-short{display:inline}.tabs{flex:1;min-width:0}.tabs:not(.expanded) .tab:not(.active){display:none}.tab.active:after{content:"▾";margin-left:.3em}.tabs.expanded .tab.active:after{content:"▴"}}
