:root{
  --bg:#f4f4f6; --card:#fff; --text:#18181b; --muted:#6b7280;
  --good:#15803d; --bad:#b91c1c; --border:#d4d4d8; --button:#27272a;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
body{display:flex;justify-content:center}
.app{width:min(100%,520px);padding:7px 9px 10px}
.top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin-bottom:4px}
h1{grid-column:2;font-size:20px;text-align:center;margin:0}
.iconbtn{grid-column:3;justify-self:end;border:1px solid var(--border);background:#fff;color:var(--text);font-size:19px;min-height:35px;width:42px;border-radius:10px}
.modebar{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:5px}
.modebtn{min-height:36px;border:1px solid var(--border);border-radius:10px;background:#e4e4e7;color:var(--text);font-size:13px;font-weight:800}
.modebtn.active{background:var(--button);color:#fff}
.score{display:flex;gap:5px;justify-content:center;margin-bottom:5px;font-weight:800;font-size:13px;flex-wrap:wrap}
.score span{background:var(--card);border:1px solid var(--border);border-radius:999px;padding:4px 8px}
.correct{color:var(--good)} .wrong{color:var(--bad)}
.card{background:var(--card);border:1px solid var(--border);border-radius:13px;padding:4px 7px;box-shadow:0 2px 9px rgba(0,0,0,.05);margin-bottom:4px}
.label{text-align:center;color:var(--muted);font-size:12px}
svg{width:100%;display:block}
#staffSvg{height:115px}
#guitarSvg{height:130px;touch-action:manipulation}
.answers{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
button{border:0;border-radius:10px;background:var(--button);color:#fff;font-size:19px;font-weight:800;min-height:43px;touch-action:manipulation;cursor:pointer}
button:active{transform:scale(.97)}
button.good{background:var(--good)} button.bad{background:var(--bad)}
.message{height:18px;display:flex;justify-content:center;align-items:center;font-size:14px;font-weight:800}
.micbox{background:#fff;border:1px solid var(--border);border-radius:12px;padding:7px 10px;text-align:center;margin-bottom:4px}
.micmain{font-size:16px;font-weight:900}
.micsub{font-size:11px;color:var(--muted);margin-top:2px}
#micBtn{width:100%;min-height:36px;font-size:14px;margin-top:6px}
.instruction{text-align:center;color:var(--muted);font-size:12px;margin:0 0 2px}
#hintNow{width:100%;min-height:32px;background:#e4e4e7;color:var(--text);font-size:13px;margin-bottom:4px}
.start-wrap{display:flex;justify-content:center;margin-top:2px}
#startBtn{width:100%;max-width:280px;min-height:40px}
.hidden{display:none!important}
.tap-zone{fill:transparent;cursor:pointer}.tap-zone:active{fill:rgba(0,0,0,.06)}
#tapMarker,#anchorMarker{pointer-events:none}
#answerTag{font-weight:900;font-size:22px;fill:#111}
.roundText{color:var(--muted)!important}
.songbar{display:flex;gap:7px;align-items:center;margin-bottom:5px}
.songbar select{flex:1;min-width:0}
.songprogress{white-space:nowrap;background:#fff;border:1px solid var(--border);border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800;color:var(--muted)}
.tempoBar{display:flex;gap:6px;align-items:center;margin-bottom:5px;flex-wrap:wrap}
.tempoRange{display:flex;align-items:center;gap:6px;flex:1;min-width:180px}
.tempoRange input{min-width:100px;flex:1}
.tempoValue{font-size:12px;font-weight:900;min-width:58px;text-align:center}
.playOptions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;width:100%}
.playOptions select,.playOptions button{min-width:0;width:100%;min-height:36px;font-size:12px}
.nextLabel{fill:#9ca3af;font-size:11px;font-weight:800}
.timingBadge{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:999px;padding:3px 8px;font-size:12px;font-weight:800;background:#fff;color:var(--muted)}
.nowCue{font-size:25px;font-weight:1000;letter-spacing:.05em}
.waitCue{color:var(--muted);font-weight:800}

.tempoBar label{font-size:12px;color:var(--muted);font-weight:800}
.tempoBar select{min-height:36px}
.tempoBar button{min-height:36px;font-size:14px;flex:1}
.beatDots{display:flex;gap:7px;justify-content:center;align-items:center;min-height:24px;margin:2px 0 4px}
.beatDot{width:12px;height:12px;border-radius:50%;background:#d4d4d8;border:1px solid #a1a1aa}
.beatDot.on{background:var(--text)}
.rhythmBox{background:#fff;border:1px solid var(--border);border-radius:13px;padding:8px;margin-bottom:5px;text-align:center}
.rhythmBig{font-size:24px;font-weight:900}
.rhythmSub{font-size:12px;color:var(--muted);margin-top:2px}
.progressTrack{height:9px;background:#e4e4e7;border-radius:999px;overflow:hidden;margin-top:7px}
.progressFill{height:100%;width:0;background:var(--text);transition:width .08s linear}


/* settings */
.backdrop{
  position:fixed;inset:0;background:rgba(0,0,0,.38);display:flex;align-items:flex-end;
  justify-content:center;z-index:20;padding:10px;
}
.panel{
  width:min(100%,520px);max-height:88dvh;overflow:auto;background:#fff;border-radius:18px 18px 12px 12px;
  padding:14px;box-shadow:0 10px 30px rgba(0,0,0,.25)
}
.panelHead{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.panelHead h2{font-size:20px;margin:0}
.closeBtn{background:#e4e4e7;color:#111;width:38px;min-height:38px;font-size:20px}
.setting{padding:10px 0;border-top:1px solid #ececf0}
.setting:first-of-type{border-top:0}
.settingRow{display:flex;justify-content:space-between;gap:12px;align-items:center}
.settingTitle{font-weight:800;font-size:15px}
.settingHelp{font-size:12px;color:var(--muted);margin-top:2px}
.switch{position:relative;width:50px;height:29px;flex:0 0 auto}
.switch input{display:none}
.slider{position:absolute;inset:0;background:#d4d4d8;border-radius:999px}
.slider:before{content:"";position:absolute;width:23px;height:23px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.15s}
.switch input:checked + .slider{background:#27272a}
.switch input:checked + .slider:before{transform:translateX(21px)}
select{
  border:1px solid var(--border);border-radius:9px;padding:8px;background:#fff;color:#111;font-weight:700
}
.summary{
  position:fixed;inset:0;background:rgba(0,0,0,.42);display:flex;align-items:center;justify-content:center;
  z-index:30;padding:18px
}
.summaryCard{width:min(100%,430px);background:white;border-radius:18px;padding:20px;text-align:center}
.summaryCard h2{margin:0 0 8px}
.summaryCard p{margin:7px 0}
.summaryCard button{margin-top:10px;width:100%}
.anchor-note{fill:#9ca3af}
.anchor-label{fill:#6b7280;font-size:15px;font-weight:800}

/* ===== Modern learning app refresh ===== */
:root{
  --bg:#f6f7fb; --card:#fff; --text:#172033; --muted:#727b8d;
  --good:#168a5b; --bad:#d44b4b; --border:#e6e9f0; --button:#20283a;
  --soft:#eef1f7; --accent:#5368e6; --accent-soft:#eef0ff;
}
html,body{background:var(--bg)}
body{color:var(--text)}
.app{width:min(100%,560px);padding:12px 12px 18px}
.top{display:grid;grid-template-columns:auto 1fr auto;align-items:center;margin:2px 2px 10px;gap:8px}
h1{grid-column:2;font-size:21px;letter-spacing:-.035em;font-weight:850;margin:0;text-align:center;white-space:nowrap}
.topTools{grid-column:1;display:flex;gap:6px;align-items:center}
.topToolsRight{grid-column:3;justify-content:flex-end}
.iconbtn{
  grid-column:auto;justify-self:auto;width:42px;min-height:42px;border-radius:13px;
  border:1px solid var(--border);background:var(--card);
  box-shadow:0 2px 8px rgba(25,35,55,.04)
}
.iconbtn.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.helpbtn{font-size:20px}
#settingsBtn{grid-column:auto}
.chordIcon{width:27px;height:27px;display:block}
.chordIcon line{stroke:currentColor;stroke-width:1.35}
.chordIcon circle{fill:currentColor}
@media (max-width:430px){
  .top{gap:5px}
  .iconbtn{width:37px;min-height:37px;border-radius:11px;padding:5px}
  .topTools{gap:4px}
  h1{font-size:16px}
  .speedometerIcon,.metronomeIcon,.chordIcon{width:24px;height:24px}
}
@media (max-width:360px){
  h1{font-size:14px}
}
.modebar{padding:4px;background:#e9edf4;border-radius:15px;gap:3px;margin-bottom:9px}
.modebtn{
  min-height:39px;border:0;background:transparent;border-radius:11px;
  color:#667085;font-size:12.5px;box-shadow:none
}
.modebtn.active{background:#fff;color:var(--text);box-shadow:0 2px 7px rgba(25,35,55,.10)}
.score{margin:0 0 8px;gap:7px;justify-content:flex-start}
.score span{border:0;background:transparent;padding:3px 2px;font-size:12px}
.card{
  border:1px solid var(--border);border-radius:20px;
  box-shadow:0 5px 18px rgba(32,40,58,.055);
  padding:10px 12px;margin-bottom:8px
}
.label{
  font-size:11px;text-transform:uppercase;letter-spacing:.08em;
  font-weight:800;color:#8a93a5;margin:1px 0 4px
}
#staffSvg{
  height:158px;background:linear-gradient(180deg,#fff 0%,#fcfcfe 100%);
  border-radius:14px
}
#guitarSvg{height:145px;border-radius:14px}
.instruction{font-size:14px;font-weight:750;color:var(--text);margin:2px 0 7px}
.answers{gap:7px}
.answers button{
  background:#fff;color:var(--text);border:1px solid var(--border);
  min-height:48px;box-shadow:0 2px 7px rgba(25,35,55,.035)
}
.answers button.good{background:#e9f7f0;color:var(--good);border-color:#bfe7d3}
.answers button.bad{background:#fff0f0;color:var(--bad);border-color:#f1c4c4}
.message{min-height:28px;height:auto;font-size:14px;margin:3px 0}
.quickTools{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px}
.quickTools button{min-height:36px;padding:6px 10px;border-radius:11px;border:1px solid var(--border);background:#fff;color:var(--text);font-size:12px;font-weight:750}
.quickTools button.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.quickTools button:disabled{opacity:.45}
body.large-note #staffSvg{height:220px}
body.hide-string-names .guitar-open-label{display:none}
body.focus-training .top,
body.focus-training .modebar{display:none}
.speedometerIcon,.metronomeIcon{width:25px;height:25px;display:block}
.toolChoice{display:flex;align-items:center;justify-content:center;gap:9px;min-height:54px!important;font-size:14px!important}
.toolIcon{width:28px;height:28px;display:block;flex:0 0 auto}
.chordToolIcon line{stroke:currentColor;stroke-width:1.25}
.chordToolIcon circle{fill:currentColor}
.topToolsRight{justify-content:flex-end}
.quickHelp{font-size:12px;line-height:1.35;color:var(--muted);background:#f7f8fb;border:1px solid var(--border);border-radius:11px;padding:7px 9px;margin:4px 0 7px}
.appHelpContent{font-size:14px;line-height:1.45}
.appHelpContent p{margin:0 0 11px}
.chordHelpCard{max-width:700px}
.chordLegend{font-size:12px;color:var(--muted);margin:0 0 10px}
.chordGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}
.chordItem{border:1px solid var(--border);border-radius:14px;background:#fff;padding:8px;text-align:center}
.chordName{font-size:18px;font-weight:900;margin-bottom:4px}
.chordDiagram{width:100%;max-width:150px;height:auto}
.chordFinger{fill:var(--accent)}
.chordFingerText{fill:#fff;font-size:8px;font-weight:900}
.chordOpen,.chordMute{fill:var(--text);font-size:12px;font-weight:900}
.chordString,.chordFret{stroke:#7b8491;stroke-width:1.3}
.chordNut{stroke:var(--text);stroke-width:4}

.chordTrainingPanel{
  background:#fff;border:1px solid var(--border);border-radius:20px;
  padding:13px;margin-bottom:8px;box-shadow:0 5px 18px rgba(32,40,58,.055)
}
.chordTrainingHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.chordTrainingTitle{font-size:18px;font-weight:900}
.chordTrainingSub{font-size:12px;color:var(--muted);margin-top:2px}
.chordTrainingCount{font-size:12px;color:var(--muted);background:var(--soft);padding:6px 9px;border-radius:999px;white-space:nowrap}
.chordTrainingCount b{color:var(--accent);font-size:15px}
.chordModeSwitch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;background:#eef1f7;padding:4px;border-radius:13px;margin-bottom:12px}
.chordModeSwitch button{min-height:38px;background:transparent;color:var(--muted);font-size:12px;border-radius:10px}
.chordModeSwitch button.active{background:#fff;color:var(--accent);box-shadow:0 2px 7px rgba(25,35,55,.10)}
.chordPrompt{text-align:center;font-size:12px;color:var(--muted);font-weight:800}
.trainingChordName{text-align:center;font-size:54px;line-height:1;font-weight:950;color:var(--accent);margin:7px 0 2px}
.trainingChordDiagram{display:flex;justify-content:center;min-height:215px}
.trainingChordDiagram .chordDiagram{width:205px;max-width:205px}
.trainingChordDiagram.diagramHidden{min-height:215px;background:linear-gradient(180deg,#fafbfe,#f6f7fb);border:1px dashed var(--border);border-radius:15px}
.chordIdentifyAnswers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0}
.chordIdentifyAnswers button{min-height:42px;background:#f4f6fa;color:var(--text);border:1px solid var(--border);border-radius:10px;font-weight:900;font-size:14px}
.chordIdentifyAnswers button.good{background:#dcf4e6;border-color:#48a868;color:#176c36}
.chordIdentifyAnswers button.bad{background:#fde5e5;border-color:#d86b6b;color:#a22626}
.chordTrainingActions{display:grid;grid-template-columns:1fr 1.25fr;gap:7px;margin-top:7px}
.chordTrainingActions button{min-height:44px;font-size:13px}
.chordTrainingActions button:not(.primaryChordBtn){background:#fff;color:var(--text);border:1px solid var(--border)}
.primaryChordBtn{background:var(--accent)!important;color:#fff!important;box-shadow:0 4px 12px rgba(83,104,230,.22)}
.chordSequence{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.chordSequenceLabel{font-size:11px;font-weight:900;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.chordSequenceChips{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.chordSeqChip{min-width:31px;text-align:center;padding:5px 7px;border-radius:9px;background:var(--soft);font-weight:900;font-size:13px}
.chordSeqChip.active{background:var(--accent);color:#fff}
.chordSeqArrow{color:var(--muted);font-size:12px}
.chordSwitchNow{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;background:var(--accent-soft);border:1px solid #cfd5ff;border-radius:16px;padding:10px 14px}
.chordSwitchNow>div:first-child,.nextChordBox{text-align:center}
.chordSwitchNow span{display:block;font-size:10px;font-weight:900;color:var(--muted);letter-spacing:.07em}
.chordSwitchNow b{display:block;font-size:42px;line-height:1.1;color:var(--accent)}
.nextChordBox b{font-size:30px;color:var(--text)}
.chordSwitchArrow{font-size:25px;color:var(--muted)}
.switchDiagram{min-height:185px;margin:6px 0}
.switchDiagram .chordDiagram{width:175px;max-width:175px}
.chordSwitchSettings{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;margin:7px 0}
.chordSwitchSettings label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:900;color:var(--muted)}
.chordSwitchSettings select{min-height:38px;border:1px solid var(--border);border-radius:10px;background:#fff;padding:0 8px}
.chordBpmControl{display:flex;align-items:center;gap:8px;min-height:38px}
.chordBpmControl input{flex:1;min-width:0;accent-color:var(--accent)}
.chordBpmControl b{font-size:12px;color:var(--text);white-space:nowrap}
.chordSwitchBeatDots{display:flex;justify-content:center;gap:8px;min-height:39px;align-items:center;margin:5px 0}
.chordBeatDot{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e8ebf2;color:var(--muted);font-size:11px;font-weight:900;border:2px solid transparent}
.chordBeatDot.first{border-color:var(--accent)}
.chordBeatDot.on{background:var(--accent);color:#fff;transform:scale(1.1)}
#chordSwitchStartBtn{width:100%;min-height:45px;font-size:14px}

.strumSettings{display:grid;grid-template-columns:1.4fr .8fr;gap:8px;margin-bottom:8px}
.strumSettings label,.chordSongSelectLabel{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:900;color:var(--muted)}
.strumSettings select,.chordSongSelect{min-height:40px;border:1px solid var(--border);border-radius:10px;background:#fff;padding:0 9px;color:var(--text);font-weight:800}
.strumTempoRow{display:flex;align-items:center;gap:10px;margin:4px 0 10px}
.strumTempoRow input{flex:1;accent-color:var(--accent)}
.strumTempoRow b{font-size:13px;white-space:nowrap}
.strumSteps{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;margin:8px 0 6px}
.strumStep{min-height:58px;border-radius:12px;background:#f3f5f9;border:1px solid var(--border);display:flex;flex-direction:column;align-items:center;justify-content:center;transition:.08s ease}
.strumStep b{font-size:27px;line-height:1}
.strumStep small{font-size:10px;color:var(--muted);font-weight:900;margin-top:4px}
.strumStep.ghost b{color:#b7bdc9;font-size:20px}
.strumStep.active{background:var(--accent);border-color:var(--accent);transform:translateY(-2px);box-shadow:0 4px 12px rgba(83,104,230,.24)}
.strumStep.active b,.strumStep.active small{color:#fff}
.compactStrums .strumStep{min-height:48px}
.compactStrums .strumStep b{font-size:23px}
#strumStartBtn,#chordSongStartBtn,#chordBackingStartBtn{width:100%;min-height:45px;font-size:14px}
.chordBackingOptions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:7px 0 10px}
.chordBackingOptions button{min-height:40px;background:#fff;color:var(--text);border:1px solid var(--border);font-size:12px}
.chordBackingOptions button.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.chordBackingNow{margin-top:4px}
.chordSongSelectLabel{margin-bottom:9px}
.chordSongSelect{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.chordSongProgression{justify-content:flex-start;background:#f7f8fb;border:1px solid var(--border);border-radius:13px;padding:8px;margin-bottom:9px;max-height:94px;overflow:auto}
.chordSongProgression .chordSeqArrow{color:#a2a8b4}

@media(max-width:430px){
  .strumSettings{grid-template-columns:1fr 1fr}
  .strumSteps{gap:3px}
  .strumStep{min-height:52px;border-radius:9px}
  .strumStep b{font-size:23px}
  .strumStep small{font-size:9px}

  .chordSwitchSettings{grid-template-columns:1fr}
  .trainingChordName{font-size:48px}
  .trainingChordDiagram .chordDiagram{width:190px}
}

.beginnerPanel{
  background:#fff;border:1px solid var(--border);border-radius:20px;
  padding:13px;margin-bottom:8px;box-shadow:0 5px 18px rgba(32,40,58,.055)
}
.beginnerHead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.beginnerTitle{font-size:18px;font-weight:900}
.beginnerSub{font-size:12px;color:var(--muted);margin-top:2px}
.courseBadge{font-size:11px;font-weight:900;color:var(--accent);background:var(--accent-soft);padding:6px 9px;border-radius:999px;white-space:nowrap}
.courseProgressTrack{height:9px;background:#edf0f5;border-radius:999px;overflow:hidden;margin:5px 0 11px}
.courseProgressFill{height:100%;width:0;background:var(--accent);border-radius:999px;transition:width .2s ease}
.courseCurrentCard{display:grid;grid-template-columns:54px 1fr;gap:10px;align-items:center;background:#f7f8fb;border:1px solid var(--border);border-radius:15px;padding:11px}
.courseCurrentIcon{width:50px;height:50px;border-radius:14px;background:var(--accent-soft);display:flex;align-items:center;justify-content:center;font-size:25px}
.courseCurrentText b{display:block;font-size:16px}
.courseCurrentText span{display:block;font-size:12px;color:var(--muted);margin-top:3px;line-height:1.35}
.courseActions{display:grid;grid-template-columns:1.3fr 1fr;gap:7px;margin:8px 0}
.courseActions button{min-height:42px;font-size:12px}
.courseActions button:not(.primaryChordBtn){background:#fff;color:var(--text);border:1px solid var(--border)}
.courseSteps{display:grid;gap:6px}
.courseStep{display:grid;grid-template-columns:32px 1fr auto;gap:8px;align-items:center;padding:8px;border:1px solid var(--border);border-radius:12px;background:#fafbfc}
.courseStep.active{border-color:var(--accent);background:var(--accent-soft)}
.courseStep.done{opacity:.72}
.courseStepNo{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e9edf4;font-size:11px;font-weight:900}
.courseStep.done .courseStepNo{background:#dcf4e6;color:#198754}
.courseStepText b{display:block;font-size:12px}
.courseStepText span{display:block;font-size:10px;color:var(--muted);margin-top:2px}
.courseStep button{min-height:30px;padding:4px 8px;font-size:10px;background:#fff;color:var(--text);border:1px solid var(--border);border-radius:9px}
.fretboardControls{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#eef1f7;padding:4px;border-radius:13px;margin-bottom:10px}
.fretboardControls button{min-height:36px;background:transparent;color:var(--muted);font-size:12px;border-radius:10px}
.fretboardControls button.active{background:#fff;color:var(--accent);box-shadow:0 2px 7px rgba(25,35,55,.10)}
.fretboardPromptCard{text-align:center;background:var(--accent-soft);border:1px solid #cfd5ff;border-radius:16px;padding:10px;margin-bottom:7px}
.fretboardPromptCard span,.fretboardPromptCard small{display:block;color:var(--muted);font-size:11px}
.fretboardPromptCard b{display:block;font-size:34px;color:var(--accent);line-height:1.1;margin:3px 0}
.moduleFeedback{min-height:24px;text-align:center;font-size:12px;font-weight:800;margin:4px 0}
.secondaryModuleBtn{width:100%;min-height:40px;background:#fff;color:var(--text);border:1px solid var(--border);border-radius:11px}
.dangerLite{color:var(--bad);margin-top:9px}
.earHero{display:grid;grid-template-columns:64px 1fr;gap:11px;align-items:center;background:#f7f8fb;border:1px solid var(--border);border-radius:15px;padding:10px}
.earPlayBtn{width:60px;height:60px;border-radius:50%;font-size:24px;background:var(--accent);color:#fff;box-shadow:0 5px 14px rgba(83,104,230,.24)}
.earHero b{display:block;font-size:15px}
.earHero span{display:block;font-size:11px;color:var(--muted);margin-top:3px;line-height:1.35}
.earAnswers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:9px 0}
.earAnswers button{min-height:40px;background:#f4f6fa;color:var(--text);border:1px solid var(--border);border-radius:10px;font-weight:900}
.earAnswers button.good{background:#dcf4e6;border-color:#48a868;color:#176c36}
.earAnswers button.bad{background:#fde5e5;border-color:#d86b6b;color:#a22626}
.progressSection{margin-top:9px}
.progressSectionTitle{font-size:11px;font-weight:900;color:var(--muted);margin-bottom:5px;text-transform:uppercase;letter-spacing:.04em}
.progressList{display:grid;gap:5px}
.progressRow{display:grid;grid-template-columns:38px 1fr 48px;gap:8px;align-items:center;font-size:12px}
.progressRow>span:first-child{font-weight:900}
.progressBar{height:8px;background:#edf0f5;border-radius:999px;overflow:hidden}
.progressBar>i{display:block;height:100%;background:var(--accent);border-radius:999px}
.progressRow>span:last-child{text-align:right;color:var(--muted);font-size:11px}
.progressMiniGrid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
.progressMiniGrid>div{background:#f7f8fb;border:1px solid var(--border);border-radius:12px;padding:9px;text-align:center}
.progressMiniGrid span{display:block;font-size:10px;color:var(--muted)}
.progressMiniGrid b{display:block;font-size:18px;color:var(--accent);margin-top:2px}
.introCard{text-align:center;max-width:430px}
.introHero{font-size:46px;margin-bottom:5px}
.introSteps{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:14px 0}
.introSteps>div{display:flex;align-items:center;gap:8px;background:#f7f8fb;border:1px solid var(--border);border-radius:12px;padding:9px;text-align:left}
.introSteps b{width:25px;height:25px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--accent);color:#fff;font-size:11px}
.introSteps span{font-size:11px;font-weight:800}
.introActions{display:grid;gap:7px}
.introActions button{min-height:42px}
.introActions button:last-child{background:#fff;color:var(--text);border:1px solid var(--border)}

@media(max-width:430px){
  .courseActions{grid-template-columns:1fr}
  .earAnswers{grid-template-columns:repeat(4,minmax(0,1fr))}
}

#startBtn,#transportBtn{
  background:var(--accent);color:white;border-radius:14px;
  box-shadow:0 4px 12px rgba(83,104,230,.23)
}
.songbar{
  background:#fff;border:1px solid var(--border);border-radius:14px;
  padding:6px;margin-bottom:7px
}
.songReadModeBar{
  display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
  background:#fff;border:1px solid var(--border);border-radius:14px;
  padding:7px 9px;margin-bottom:7px;font-size:12px;font-weight:800;color:var(--muted)
}
.songReadModeBar select{min-height:34px;font-size:13px}
.songReadModeBar button{min-height:34px;padding:6px 10px;border-radius:10px;border:1px solid var(--border);background:#fff;color:var(--text);font-size:12px;font-weight:800}
.songReadModeBar button.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.choicePanel{background:#fff;border:1px solid var(--border);border-radius:16px;padding:9px;margin-bottom:8px}
.choiceTitle{font-size:12px;font-weight:900;color:var(--muted);margin-bottom:7px}
.choiceGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.choiceGrid button{min-height:42px;padding:6px 5px;background:#f4f6fa;color:var(--text);border:1px solid var(--border);font-size:12px;border-radius:11px;box-shadow:none}
.choiceGrid button.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.timingChoiceGrid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:7px}
.twoChoices{grid-template-columns:repeat(2,minmax(0,1fr))}
#metronomeBtn{width:100%;min-height:36px;font-size:12px;background:#fff;color:var(--text);border:1px solid var(--border)}
.metronomeCard{max-width:430px}
.metroTempo{display:grid;grid-template-columns:54px 1fr 54px;gap:10px;align-items:center;margin:12px 0}
.metroTempo button{min-height:48px;font-size:26px}
.metroBpmBox{text-align:center}
.metroBpmBox b{display:block;font-size:42px;line-height:1}
.metroBpmBox span{font-size:12px;color:var(--muted);font-weight:800}
.metroBpmRange{width:100%;accent-color:var(--accent)}
.metroSettings{display:flex;justify-content:center;margin:14px 0}
.metroSettings label{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:800;color:var(--muted)}
.metroSettings select{min-height:38px}
.metroBeatDisplay{display:flex;justify-content:center;gap:9px;min-height:42px;align-items:center;margin:8px 0 14px}
.metroBeat{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e8ebf2;color:var(--muted);font-size:12px;font-weight:900;border:2px solid transparent}
.metroBeat.first{border-color:var(--accent)}
.metroBeat.on{background:var(--accent);color:#fff;transform:scale(1.12)}
.metroBeat.first.on{box-shadow:0 0 0 4px var(--accent-soft)}
.metroActions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.metroActions button{font-size:14px}
.metroTapHint{text-align:center;font-size:11px;color:var(--muted);margin-top:8px}
#metronomeBtn.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.songbar{background:var(--accent-soft);border-color:var(--accent)}
.songSelectors{display:grid;grid-template-columns:minmax(120px,.85fr) minmax(150px,1.4fr);gap:7px;flex:1}
.songSelectors select{width:100%;min-width:0}
.languageSelect{min-height:34px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--text);font-size:11px;font-weight:900;padding:0 5px}
@media(max-width:430px){.songSelectors{grid-template-columns:1fr}.languageSelect{max-width:48px}}
.songbar select{background:var(--accent-soft);color:var(--accent);border:1px solid var(--accent);border-radius:10px;font-size:14px;font-weight:900;min-height:38px;padding:0 10px}
.songbar .songprogress{background:#fff;color:var(--accent)}
.songprogress,.timingBadge{border:0;background:var(--soft)}
.tempoBar{
  background:#fff;border:1px solid var(--border);border-radius:16px;padding:8px
}
.tempoRange input{accent-color:var(--accent)}
.beatDots{min-height:28px}
.beatDot{width:10px;height:10px;border:0;background:#d9dde7}
.beatDot.on{background:var(--accent);transform:scale(1.25)}
.rhythmBox{
  border:1px solid var(--border);border-radius:18px;
  box-shadow:0 4px 14px rgba(32,40,58,.04)
}
.backingLane{padding:10px 10px 6px;overflow:hidden}
.backingLaneHead{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px;font-weight:800;color:var(--muted);margin:0 4px 4px}
#backingLaneSvg{width:100%;height:auto;display:block;overflow:hidden}
.laneStaff{color:#c8ced9}
.hitLine{stroke:var(--accent);stroke-width:4;stroke-linecap:round}
.hitLabel{fill:var(--accent);font-size:14px;font-weight:900}
.flowNote .head{fill:var(--text)}
.flowNote .openHead{fill:#fff;stroke:var(--text);stroke-width:2.5}
.flowNote .stem,.flowNote .flag{stroke:var(--text);stroke-width:2.5;fill:none;stroke-linecap:round}
.flowNote .ledger{stroke:var(--text);stroke-width:1.5}
.flowNote .accidental{fill:var(--text);font-size:18px;font-weight:800}
.flowNote .noteDot{fill:var(--text)}
.flowLabelBg{fill:#fff;stroke:var(--border);stroke-width:1}
.flowNoteLabel{fill:var(--text);font-size:14px;font-weight:900}
.flowNote.hit .head:not(.openHead){fill:var(--good)}
.flowNote.hit .openHead{stroke:var(--good)}
.flowNote.hit .stem,.flowNote.hit .flag{stroke:var(--good)}
.flowNote.hit .noteDot,.flowNote.hit .flowNoteLabel{fill:var(--good)}
.flowNote.past{opacity:.28}
.flowRestPath{fill:var(--text)}
.flowRestStroke{fill:none;stroke:var(--text);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.flowRest.hit .flowRestPath{fill:var(--accent)}
.flowRest.hit .flowRestStroke{stroke:var(--accent)}
.flowRest.past{opacity:.28}
.flowBarLine{stroke:#707785;stroke-width:2}
.flowBarLine.past{opacity:.28}
.progressTrack{background:#edf0f5}
.progressFill{background:var(--accent)}
#micBox{
  border:1px solid var(--border);background:#fff;border-radius:16px;padding:8px 10px
}
#micStatus{font-weight:800}
.panel{border-radius:24px 24px 16px 16px;padding:18px}
.setting{padding:12px 0}
.settingTitle{font-size:14px}
.settingHelp{line-height:1.35}
.slider{background:#dfe3eb}
.switch input:checked + .slider{background:var(--accent)}
.summaryCard{border-radius:24px;box-shadow:0 18px 40px rgba(25,35,55,.16)}
.nextLabel{fill:#98a1b3}
.helpBackdrop,.tunerBackdrop{position:fixed;inset:0;background:rgba(12,18,30,.55);display:flex;align-items:center;justify-content:center;z-index:40;padding:12px}
.helpCard{width:min(100%,560px);max-height:94dvh;overflow:auto;background:#fff;border-radius:24px;padding:16px;box-shadow:0 20px 55px rgba(12,18,30,.28)}
.helpHead{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.helpTitle{font-size:20px;font-weight:900}
.helpSub{font-size:12px;color:var(--muted)}
.noteReference{display:grid;gap:10px}
.refStaff{background:#fbfcff;border:1px solid var(--border);border-radius:16px;padding:8px}
.refStaffTitle{font-size:12px;font-weight:850;color:var(--muted);margin:0 0 2px 4px}
.refStaff svg{width:100%;height:auto;display:block}
.refNoteLabel{font-size:16px;font-weight:900;fill:var(--text);text-anchor:middle}
.refPitchLabel{font-size:10px;font-weight:700;fill:var(--muted);text-anchor:middle}
.tunerBackdrop{position:fixed;inset:0;background:rgba(12,18,30,.55);display:flex;align-items:center;justify-content:center;z-index:40;padding:18px}
.tunerCard{width:min(100%,420px);background:#fff;border-radius:24px;padding:18px 18px 22px;box-shadow:0 20px 55px rgba(12,18,30,.28)}
.tunerHead{display:flex;align-items:center;justify-content:space-between}
.tunerTitle{font-size:20px;font-weight:900}
.tunerHelp,.tunerHz,.tunerStatus{font-size:12px;color:var(--muted)}
.tunerNote{text-align:center;font-size:64px;font-weight:950;line-height:1;margin-top:10px}
.tunerHz{text-align:center;margin-top:3px}
.tunerGauge{position:relative;height:92px;margin:15px 8px 0;overflow:hidden}
.tunerScale{position:absolute;left:0;right:0;bottom:8px;height:4px;background:linear-gradient(90deg,#e5e7eb 0 47%,#b7e4ce 47% 53%,#e5e7eb 53% 100%);border-radius:99px}
.tunerCenter{position:absolute;left:50%;bottom:3px;width:3px;height:22px;background:var(--good);transform:translateX(-50%);border-radius:3px}
.tunerNeedle{position:absolute;left:50%;bottom:8px;width:3px;height:76px;background:var(--text);transform-origin:50% 100%;transform:translateX(-50%) rotate(0deg);border-radius:3px;transition:transform .09s linear}
.tunerMarks{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);padding:0 6px}
.tunerCents{text-align:center;font-size:22px;font-weight:900;margin-top:8px}
.tunerStatus{text-align:center;margin-top:3px;min-height:18px}
.tunerCard.inTune .tunerNote,.tunerCard.inTune .tunerCents{color:var(--good)}
.guitar-open-label{font-size:12px;fill:#7a5b39;font-weight:800}
.guitar-fret-number{font-size:11px;fill:#8b7359;font-weight:800}
.guitar-caption{font-size:11px;fill:#9a8164;font-weight:700}
@media (max-width:600px){
  html,body{height:auto;overflow:auto}
  body{min-height:100%}
  .app{height:auto;min-height:100vh;padding:9px 10px 14px;gap:0;overflow:visible}
  h1{font-size:21px}
  .modebar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
  .modebtn{font-size:12px;min-height:38px}
  #staffSvg{height:145px}
  #guitarSvg{height:138px}
  button{min-height:44px}
}

/* Blazor migration additions */
.loadingCard{margin-top:40px;text-align:center;padding:28px;font-weight:800}
.choicePanel{background:#fff;border:1px solid var(--border);border-radius:18px;padding:10px;margin-bottom:8px}
.choiceTitle{font-weight:850;font-size:14px;margin:0 0 8px}
.choiceGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.choiceGrid.four{grid-template-columns:repeat(2,1fr)}
.choiceGrid button{min-height:44px;background:#fff;color:var(--text);border:1px solid var(--border);font-size:13px}
.choiceGrid button:hover{background:var(--accent-soft);border-color:#cfd5ff}
.songMeta{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);margin:-1px 2px 8px}
.songMeta b{color:var(--text)}
.helpBackdrop{position:fixed;inset:0;background:rgba(0,0,0,.42);display:flex;align-items:center;justify-content:center;z-index:50;padding:14px}
.helpCard{width:min(100%,500px);max-height:90dvh;overflow:auto;background:#fff;border-radius:20px;padding:18px;box-shadow:0 18px 50px rgba(0,0,0,.24)}
.introCard{text-align:center}
.introHero{font-size:42px;margin-bottom:6px}
.helpTitle{font-weight:900;font-size:20px}
.helpSub{color:var(--muted);font-size:13px;margin:5px 0 14px}
.introActions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.introActions button{font-size:14px}
.primaryChordBtn{background:var(--accent)!important}
@media(max-width:430px){.choiceGrid{grid-template-columns:repeat(2,1fr)}.songSelectors{grid-template-columns:1fr}}
.app.large-note #staffSvg{height:220px}
.choiceGrid button.activeChoice{
  background:var(--accent-soft);
  border-color:var(--accent);
  color:var(--accent);
}
.answers button:disabled{opacity:.48;cursor:default}
.message.correct{color:var(--good)}
.message.wrong{color:var(--bad)}
.songActions{display:flex;gap:7px;margin:-2px 0 8px}
.songActions button{flex:1;min-height:38px;font-size:13px}
.courseHeader{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.courseCurrent{text-align:center;padding:12px}
.courseSteps{display:grid;gap:6px;margin-top:10px}
.courseStep{display:flex;align-items:center;gap:10px;text-align:left;background:#fff;color:var(--text);border:1px solid var(--border)}
.courseStep.done{border-color:var(--good)}
.courseStep.active{background:var(--accent-soft);border-color:var(--accent)}
.progressStats{display:flex;gap:12px;justify-content:space-between;margin:12px 0;font-weight:800}
.chordDiagramCss{width:150px;margin:8px auto;text-align:center}
.chordDiagramName{font-size:24px;font-weight:900}
.chordNeck{height:152px;position:relative;margin:0 20px}
.chordStringCss{position:absolute;top:8px;height:96px;width:1px;background:#555}
.chordFretCss{position:absolute;left:0;right:0;height:1px;background:#777}.chordFretCss.nut{height:4px;background:#222}
.chordDot{position:absolute;width:18px;height:18px;border-radius:50%;background:#222;color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center}
.chordTopMark{position:absolute;top:-14px;transform:translateX(-50%);font-weight:900}.chordStringName{position:absolute;top:112px;transform:translateX(-50%);font-size:10px}
.chordOverview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.chordTrainerMain{text-align:center}.chordSwitchLine{display:flex;gap:6px;justify-content:center;align-items:center;margin:10px 0}.chordSwitchLine span{padding:6px 9px;border:1px solid var(--border);border-radius:9px}
.strumPattern{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;margin:12px 0}.strumStep{text-align:center;padding:8px 2px;border:1px solid var(--border);border-radius:8px}.strumStep.active{background:var(--accent-soft);border-color:var(--accent)}
.noteReferenceGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.noteReferenceItem{border:1px solid var(--border);border-radius:10px;padding:9px;display:flex;flex-direction:column}
.tunerPanel{text-align:center}.tunerNote{font-size:56px;font-weight:950}.tunerMeter{height:70px;position:relative;margin:10px auto;width:220px;border-bottom:4px solid #bbb}.tunerNeedle{position:absolute;left:50%;bottom:0;width:3px;height:62px;background:var(--accent);transform-origin:bottom center}.tunerCents{font-weight:900}
@media(max-width:430px){.chordOverview{grid-template-columns:1fr 1fr}.noteReferenceGrid{grid-template-columns:1fr}}
.blazorFlowLane{padding:7px 8px 2px;overflow:hidden}
.blazorFlowLane .backingLaneHead{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:850}
.blazorFlowLane svg{width:100%;height:auto;display:block;overflow:hidden}
.blazorFlowLane .hitLine{stroke:var(--accent);stroke-width:3}.blazorFlowLane .hitLabel{fill:var(--accent);font-size:11px;font-weight:900}
.blazorFlowLane .head{fill:#172033}.blazorFlowLane .stem,.blazorFlowLane .ledger{stroke:#172033;stroke-width:2}
.blazorFlowLane .flowNote.past{opacity:.2}.blazorFlowLane .flowNote.hit .head{fill:var(--accent)}
.blazorFlowLane .flowLabelBg{fill:#fff;stroke:#d7dce6}.blazorFlowLane .flowNoteLabel{font-size:11px;font-weight:900;fill:#172033}
.blazorFlowLane .flowBarLine{stroke:#64748b;stroke-width:1.5}.blazorFlowLane .flowBarLine.past{opacity:.2}

/* Compact mobile workspace: keep the active exercise on one screen where possible */
.app.focus-training .top,
.app.focus-training .modebar{display:none}

@media(max-width:600px){
  html,body{height:100%;min-height:100%;overscroll-behavior:none}
  body{overflow:hidden}
  .app{height:100dvh;min-height:0;box-sizing:border-box;overflow:auto;padding:5px 7px 8px}
  .app.compactScreen{overflow:hidden;display:flex;flex-direction:column}
  .compactScreen .top{margin:0 1px 3px;gap:4px}
  .compactScreen .top h1{font-size:14px}
  .compactScreen .iconbtn{width:31px;height:31px;min-height:31px;font-size:14px}
  .compactScreen .modebar{margin-bottom:4px;padding:3px;border-radius:12px}
  .compactScreen .modebtn{min-height:32px;font-size:10px;padding:4px 2px}
  .compactScreen .score{min-height:24px;margin-bottom:3px;padding:2px 7px}
  .compactScreen .choicePanel{padding:5px;margin-bottom:4px;border-radius:12px}
  .compactScreen .choiceTitle{font-size:11px;margin-bottom:4px}
  .compactScreen .choiceGrid{gap:3px}
  .compactScreen .choiceGrid button{min-height:31px;font-size:10px;padding:3px 4px;border-radius:8px}
  .compactScreen .songbar{padding:4px 5px;margin-bottom:3px}
  .compactScreen .songMeta{margin-bottom:3px;font-size:10px}
  .compactScreen #staffCard{padding:3px 6px;margin-bottom:3px;min-height:0}
  .compactScreen #staffCard .label{font-size:10px}
  .compactScreen #staffSvg{height:min(19dvh,150px)}
  .compactScreen #guitarCard{padding:3px 5px;margin-bottom:3px}
  .compactScreen #guitarSvg{height:min(19dvh,155px)}
  .compactScreen .quickHelp{font-size:10px;line-height:1.2;padding:5px 7px;margin:2px 0}
  .compactScreen .instruction{font-size:15px;line-height:1.1;margin:3px 0}
  .compactScreen .message{min-height:18px;font-size:11px;margin:2px 0}
  .compactScreen .quickTools{gap:3px;margin:2px 0}
  .compactScreen .quickTools button{min-height:29px;font-size:10px;padding:3px}
  .compactScreen .answers{gap:3px;margin:3px 0}
  .compactScreen .answers button{min-height:32px;font-size:13px;padding:3px 5px}
  .compactScreen .micbox{padding:5px 7px;margin:3px 0}
  .compactScreen .micmain{font-size:12px}.compactScreen .micsub{font-size:9px}
  .compactScreen .micbox button{min-height:30px;margin-top:3px}
  .compactScreen .start-wrap{margin-top:2px}
  .compactScreen #startBtn{min-height:38px;font-size:15px}
  .compactScreen .blazorFlowLane{padding:3px 5px;margin-bottom:4px}
  .compactScreen .blazorFlowLane svg{height:min(28dvh,210px)}
  .compactScreen .settingRow{min-height:30px;margin:2px 0}
  .compactScreen .rhythmBig{font-size:13px;margin:4px 0}
  .compactScreen .beatDots{margin:4px 0}
}

.choiceHeaderRow{display:flex;align-items:center;justify-content:space-between;gap:8px}
.collapseChoiceBtn{min-width:34px!important;width:34px!important;min-height:28px!important;padding:2px!important;background:transparent!important;color:var(--muted)!important;border:0!important}
.choiceSummary{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;
  min-height:38px;padding:7px 11px;margin:0 0 5px;border:1px solid var(--border);
  border-radius:12px;background:#fff;color:var(--text);font-weight:850;text-align:left
}
.choiceSummary small{font-size:10px;color:var(--accent);font-weight:900}
.compactScreen .choiceSummary{min-height:32px;padding:4px 8px;margin-bottom:3px;font-size:11px}
.compactScreen .choiceSummary small{font-size:9px}

/* Never clip controls on short mobile viewports */
@media(max-width:600px){
  .app.compactScreen{overflow-y:auto;overflow-x:hidden}
  .compactScreen #staffCard{flex:0 0 auto;overflow:hidden}
  .compactScreen #staffSvg{display:block;width:100%;height:132px;max-height:132px}
  .compactScreen .blazorFlowLane{flex:0 0 auto}
  .compactScreen .blazorFlowLane svg{display:block;width:100%;height:190px;max-height:190px}
  .compactScreen .primaryChordBtn{flex:0 0 auto;position:relative;z-index:2}
}
@media(max-height:760px) and (max-width:600px){
  .compactScreen #staffSvg{height:112px;max-height:112px}
  .compactScreen .blazorFlowLane svg{height:155px;max-height:155px}
}

.clearChoices .choiceCard{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;
  min-height:62px;padding:8px 10px;gap:3px
}
.clearChoices .choiceMain{font-size:13px;font-weight:900;line-height:1.15}
.clearChoices .choiceCard small{font-size:9px;line-height:1.25;color:var(--muted);font-weight:650}
.clearChoices .choiceCard.activeChoice small{color:inherit;opacity:.8}
.rhythmModeHeading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:2px 0 6px}
.rhythmModeHeading b{font-size:14px}.rhythmModeHeading small{font-size:10px;color:var(--muted);text-align:right}
@media(max-width:600px){
  .clearChoices .choiceCard{min-height:54px;padding:6px 8px}
  .clearChoices .choiceMain{font-size:11px}
  .clearChoices .choiceCard small{font-size:8px}
}
.blazorFlowLane .head.hollow{fill:#fff;stroke:#172033;stroke-width:2}
.blazorFlowLane .flag{fill:none;stroke:#172033;stroke-width:2.2}
.blazorFlowLane .dot{fill:#172033}
.blazorFlowLane .restGlyph{font-size:32px;fill:#172033;font-family:"Noto Music","Segoe UI Symbol",serif}
.blazorFlowLane .flowRest.past{opacity:.2}.blazorFlowLane .flowRest.hit .restGlyph{fill:var(--accent)}

.tunerPanel{
  border-radius:18px;
  padding:12px 10px;
  transition:background .2s ease,box-shadow .2s ease;
  background:linear-gradient(180deg,#f8fafc,#fff);
}
.tunerPanel.inTune{
  background:linear-gradient(180deg,#dcfce7,#f0fdf4);
  box-shadow:inset 0 0 0 2px #22c55e,0 6px 20px rgba(34,197,94,.12);
}
.tunerGauge{
  position:relative;
  width:min(330px,88vw);
  height:168px;
  margin:2px auto 0;
  overflow:hidden;
}
.tunerArc{
  position:absolute;
  left:50%;
  bottom:-132px;
  transform:translateX(-50%);
  width:290px;
  height:290px;
  border-radius:50%;
  border:18px solid #e2e8f0;
  border-top-color:#22c55e;
  border-left-color:#f59e0b;
  border-right-color:#f59e0b;
}
.tunerNeedleGauge{
  position:absolute;
  left:50%;
  bottom:14px;
  width:3px;
  height:122px;
  background:#172033;
  transform-origin:50% 100%;
  border-radius:3px;
  transition:transform .09s linear;
}
.tunerHub{
  position:absolute;
  left:50%;
  bottom:7px;
  transform:translateX(-50%);
  width:17px;
  height:17px;
  border-radius:50%;
  background:#172033;
  border:3px solid #fff;
  box-shadow:0 0 0 1px #172033;
}
.gaugeMark{position:absolute;font-size:10px;font-weight:800;color:#64748b}
.gaugeMark.m50{left:12px;bottom:20px}
.gaugeMark.m25{left:65px;top:47px}
.gaugeMark.m0{left:50%;top:12px;transform:translateX(-50%);color:#16a34a}
.gaugeMark.p25{right:65px;top:47px}
.gaugeMark.p50{right:12px;bottom:20px}
.tunerDirection{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  font-size:11px;
  color:#94a3b8;
  margin:2px 0 8px;
}
.tunerDirection span:first-child{text-align:right}
.tunerDirection span:last-child{text-align:left}
.tunerDirection span.active{color:#dc2626;font-weight:900}
.tunerDirection strong{color:#94a3b8}
.tunerDirection strong.ok{color:#16a34a;font-size:14px}
.tunerPanel.inTune .tunerNote{color:#15803d}
.drumLegend{
  display:flex;
  flex-wrap:wrap;
  gap:6px 12px;
  margin:4px 0 8px;
  padding:6px 8px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#f8fafc;
  color:var(--muted);
  font-size:10px;
  font-weight:750;
}

.holdProgress{
  height:8px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin:0 20px 5px
}
.holdProgress i{
  display:block;width:0;height:100%;background:linear-gradient(90deg,var(--accent),#22c55e);
  border-radius:inherit;transition:width .06s linear
}
.holdValue{text-align:center;font-size:11px;color:var(--muted);font-weight:750;margin-bottom:3px}
.holdValue b{color:var(--text);font-size:13px}

/* Larger, clearer fretboard */
#guitarCard{padding:7px 9px}
#guitarSvg{height:190px;max-height:none}
.guitar-open-label{
  font-size:15px!important;
  fill:#52371f!important;
  font-weight:950!important;
  paint-order:stroke;
  stroke:#f8ead5;
  stroke-width:3px;
  stroke-linejoin:round
}
.guitar-fret-number{font-size:12px!important;fill:#6f563e!important;font-weight:900!important}

@media(max-width:600px){
  .compactScreen #guitarCard{padding:4px 5px;margin-bottom:4px}
  .compactScreen #guitarSvg{
    height:min(27dvh,210px)!important;
    max-height:210px!important;
    min-height:175px
  }
}
@media(max-height:760px) and (max-width:600px){
  .compactScreen #guitarSvg{
    height:165px!important;
    min-height:155px
  }
}

/* ===== Visual polish pass ===== */
body{
  background:
    radial-gradient(circle at top left,rgba(83,104,230,.06),transparent 28%),
    radial-gradient(circle at top right,rgba(22,138,91,.045),transparent 24%),
    var(--bg);
}
.app{position:relative}
.top{
  padding:2px 2px 4px;
}
h1{
  font-weight:900;
  letter-spacing:-.045em;
}
.iconbtn{
  transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease;
}
.iconbtn:active{transform:translateY(1px) scale(.97)}
.modebar{
  background:linear-gradient(180deg,#edf1f7,#e7ebf2);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
.modebtn{
  transition:background .15s ease,color .15s ease,box-shadow .15s ease,transform .1s ease;
}
.modebtn.active{
  box-shadow:0 4px 12px rgba(32,40,58,.11);
}
.card,.choicePanel,.micbox{
  backdrop-filter:blur(6px);
  background:rgba(255,255,255,.96);
}
.card{
  box-shadow:0 9px 24px rgba(32,40,58,.06);
}
.choicePanel{
  box-shadow:0 6px 18px rgba(32,40,58,.045);
}
.choiceCard{
  transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease,background .12s ease;
}
.choiceCard:hover{
  box-shadow:0 5px 14px rgba(32,40,58,.07);
}
.choiceCard:active{transform:scale(.985)}
.choiceCard.activeChoice{
  background:linear-gradient(180deg,#f2f4ff,#eef0ff)!important;
  border-color:#aeb8ff!important;
  box-shadow:0 5px 14px rgba(83,104,230,.10);
}
.choiceSummary{
  background:linear-gradient(180deg,#fff,#fafbfe);
  box-shadow:0 4px 12px rgba(32,40,58,.045);
}
.quickHelp{
  border-left:3px solid #c8cffb;
  background:linear-gradient(90deg,#f6f7ff,#fafbfe);
}
#staffCard{
  background:linear-gradient(180deg,#fff,#fbfcff);
}
#staffSvg{
  background:
    linear-gradient(180deg,rgba(255,255,255,.92),rgba(249,250,253,.96)),
    repeating-linear-gradient(90deg,transparent 0 18px,rgba(23,32,51,.01) 18px 19px);
}
#guitarCard{
  background:linear-gradient(180deg,#fffdf8,#fffaf1);
  border-color:#eadfce;
  box-shadow:0 9px 24px rgba(92,62,31,.07);
}
#guitarSvg{
  filter:drop-shadow(0 5px 8px rgba(75,48,26,.09));
}
.answers button{
  transition:transform .1s ease,box-shadow .12s ease,border-color .12s ease,background .12s ease;
}
.answers button:active{transform:scale(.965)}
.primaryChordBtn,#startBtn,#learnSongStartBtn{
  background:linear-gradient(180deg,#2d3650,#20283a);
  box-shadow:0 6px 14px rgba(32,40,58,.17);
}
.primaryChordBtn:active,#startBtn:active,#learnSongStartBtn:active{
  box-shadow:0 2px 7px rgba(32,40,58,.14);
}
.blazorFlowLane{
  background:linear-gradient(180deg,#fff,#fafbfe);
  border-color:#dfe4ee;
}
.blazorFlowLane .hitLine{
  filter:drop-shadow(0 0 4px rgba(83,104,230,.23));
}
.blazorFlowLane .flowNote.hit .head{
  filter:drop-shadow(0 0 5px rgba(83,104,230,.25));
}
.tunerPanel{
  box-shadow:0 10px 28px rgba(32,40,58,.07);
}
.drumLegend{
  background:linear-gradient(180deg,#fbfcfe,#f6f8fb);
}
.strumStep{
  transition:background .1s ease,border-color .1s ease,transform .1s ease;
}
.strumStep.active{
  transform:translateY(-2px);
  box-shadow:0 4px 10px rgba(83,104,230,.12);
}
.chordDiagramCss{
  background:#fff;
  border-radius:14px;
  padding:6px 4px 2px;
  box-shadow:0 5px 14px rgba(32,40,58,.05);
}
.settingRow{
  border-radius:10px;
}
select,input[type="range"]{
  accent-color:var(--accent);
}
@media(max-width:600px){
  .app{padding-left:8px;padding-right:8px}
  .card,.choicePanel{border-radius:15px}
  .clearChoices .choiceCard{
    border-radius:11px;
  }
  .blazorFlowLane{
    border-radius:15px;
  }
}

.pickupBadge{display:inline-block;margin-left:6px;padding:2px 6px;border-radius:999px;background:#fff4d6;color:#8a6500;font-size:9px;font-style:normal;font-weight:900;vertical-align:1px}

.blazorFlowLane .flowNoteLabel{font-size:8.5px!important;font-weight:850}
.blazorFlowLane .accidental{font-size:16px!important}
.blazorFlowLane .stem{stroke-width:1.8!important}
.blazorFlowLane .head{stroke-width:1.7!important}

/* Unified mobile scale for all Practice + Play screens */
@media(max-width:600px){
  .app.compactScreen{padding:5px 7px 8px;overflow-y:auto;overflow-x:hidden}
  .compactScreen .blazorFlowLane{width:100%;box-sizing:border-box}
  .compactScreen .blazorFlowLane svg{
    width:100%!important;
    height:190px!important;
    max-height:190px!important;
  }
  .compactScreen #staffSvg{
    width:100%!important;
    height:132px!important;
    max-height:132px!important;
  }
}
@media(max-height:760px) and (max-width:600px){
  .compactScreen .blazorFlowLane svg{
    height:165px!important;
    max-height:165px!important;
  }
  .compactScreen #staffSvg{
    height:118px!important;
    max-height:118px!important;
  }
}

/* =======================================================================
   2026-10 Premium mobile redesign
   Visual-only layer. Existing component logic stays untouched.
   ======================================================================= */
:root{
  --bg:#f5f7fb;
  --surface:#ffffff;
  --surface-2:#f9fbff;
  --surface-3:#eef3fb;
  --text:#172033;
  --text-2:#344054;
  --muted:#7a8599;
  --line:#e4e9f2;
  --line-strong:#d6deeb;
  --accent:#5668e8;
  --accent-2:#7a86f4;
  --accent-soft:#eef1ff;
  --good:#159a68;
  --good-soft:#eaf8f2;
  --bad:#d94b5b;
  --bad-soft:#fff0f2;
  --warning:#e9a23b;
  --shadow-sm:0 3px 10px rgba(33,45,78,.05);
  --shadow-md:0 10px 30px rgba(33,45,78,.08);
  --shadow-lg:0 18px 42px rgba(33,45,78,.12);
  --radius-sm:12px;
  --radius-md:17px;
  --radius-lg:22px;
}
html,body{
  background:
    radial-gradient(circle at 15% -10%,rgba(86,104,232,.08),transparent 34%),
    radial-gradient(circle at 100% 0%,rgba(116,134,255,.05),transparent 28%),
    var(--bg);
  color:var(--text);
}
body{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:-.005em;
}
.app{
  width:min(100%,620px);
  padding:10px 12px 22px;
}

/* Header */
.top{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
  margin:0 0 10px;
  padding:3px 2px;
}
.top h1,h1{
  font-size:19px;
  font-weight:900;
  line-height:1.05;
  letter-spacing:-.045em;
  color:var(--text);
}
.topTools{gap:7px}
.iconbtn{
  width:42px;
  min-width:42px;
  min-height:42px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.9);
  color:var(--text-2);
  box-shadow:var(--shadow-sm);
  backdrop-filter:blur(10px);
  transition:transform .12s ease,box-shadow .15s ease,background .15s ease,border-color .15s ease;
}
.iconbtn:hover{background:#fff;border-color:var(--line-strong);box-shadow:0 6px 16px rgba(33,45,78,.08)}
.iconbtn:active{transform:scale(.96)}
.iconbtn.active{background:var(--accent-soft);border-color:#cdd4ff;color:var(--accent)}

/* Primary nav */
.modebar{
  position:sticky;
  top:4px;
  z-index:8;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:5px;
  margin:0 0 11px;
  padding:5px;
  border:1px solid rgba(224,229,239,.92);
  border-radius:18px;
  background:rgba(235,239,247,.86);
  box-shadow:0 7px 18px rgba(33,45,78,.055),inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter:blur(14px);
}
.modebtn{
  min-height:44px;
  border:0;
  border-radius:13px;
  background:transparent;
  color:#68748a;
  font-size:13px;
  font-weight:850;
  box-shadow:none;
  transition:all .15s ease;
}
.modebtn.active{
  background:#fff;
  color:var(--text);
  box-shadow:0 5px 14px rgba(33,45,78,.10);
}
.modebtn:active{transform:scale(.98)}

/* Progress strip */
.score{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:12px;
  min-height:26px;
  margin:0 4px 9px;
  color:var(--muted);
}
.score span{
  padding:0;
  border:0;
  background:transparent;
  font-size:13px;
  font-weight:850;
}
.score .correct{color:var(--good)}
.score .wrong{color:var(--bad)}
.score .roundText{color:#7f8a9f!important}

/* Panels / cards */
.card,.choicePanel,.micbox,.rhythmBox,.chordTrainingPanel{
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:rgba(255,255,255,.96);
  box-shadow:var(--shadow-md);
}
.card{padding:12px 13px;margin-bottom:10px}
.choicePanel{padding:12px;margin-bottom:10px}
.choiceTitle{
  color:var(--text);
  font-size:15px;
  font-weight:900;
  letter-spacing:-.02em;
}
.choiceHeaderRow{margin-bottom:9px}
.collapseChoiceBtn{
  width:34px!important;
  min-width:34px!important;
  min-height:34px!important;
  border-radius:11px!important;
  background:var(--surface-3)!important;
  color:#667085!important;
}
.choiceSummary{
  min-height:50px;
  padding:0 14px;
  margin:0 0 10px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  color:var(--text);
  box-shadow:var(--shadow-sm);
  font-size:15px;
}
.choiceSummary small{font-size:11px;color:var(--accent);font-weight:900}

/* Choice cards */
.choiceGrid{gap:8px}
.clearChoices .choiceCard,
.choiceGrid button{
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(180deg,#fff,#fbfcff);
  color:var(--text);
  box-shadow:0 2px 8px rgba(33,45,78,.035);
}
.clearChoices .choiceCard{
  min-height:72px;
  padding:11px 12px;
}
.clearChoices .choiceMain{
  font-size:14px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:-.015em;
}
.clearChoices .choiceCard small{
  margin-top:2px;
  font-size:10px;
  line-height:1.3;
  color:var(--muted);
  font-weight:650;
}
.choiceCard.activeChoice,
.choiceGrid button.activeChoice{
  border-color:#c5ceff!important;
  background:linear-gradient(180deg,#f7f8ff,#eef1ff)!important;
  color:var(--accent)!important;
  box-shadow:0 7px 18px rgba(86,104,232,.10)!important;
}

/* Song picker */
.songbar{
  display:block;
  padding:0;
  margin:0 0 10px;
}
.songSelectors{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px;
  align-items:center;
  padding:8px;
  border:1px solid #cfd6ff;
  border-radius:18px;
  background:linear-gradient(180deg,#f7f8ff,#f0f3ff);
  box-shadow:0 5px 14px rgba(86,104,232,.07);
}
.songSelectors select{
  min-height:50px;
  padding:0 14px;
  border:1px solid #bdc7ff;
  border-radius:14px;
  background:#fff;
  color:var(--accent);
  font-size:15px;
  font-weight:900;
  box-shadow:0 2px 7px rgba(86,104,232,.05);
}
.songSelectors select + select{grid-column:1}
.songprogress{
  grid-column:2;
  grid-row:1 / span 2;
  align-self:center;
  padding:8px 10px;
  border:0;
  background:#fff;
  color:var(--accent);
  font-size:13px;
  font-weight:900;
  box-shadow:0 2px 7px rgba(86,104,232,.05);
}
.songMeta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin:7px 3px 0;
  color:var(--text-2);
  font-size:12px;
}
.songMeta strong{font-size:14px;color:var(--text);font-weight:900}

/* Form controls */
.settingRow{
  min-height:48px;
  margin:5px 0;
  padding:6px 9px;
  border:1px solid transparent;
  border-radius:14px;
  color:var(--text-2);
}
.settingRow>span:first-child{font-weight:800}
.settingRow b{color:var(--text);font-size:14px}
select{
  min-height:42px;
  padding:0 36px 0 11px;
  border:1px solid var(--line-strong);
  border-radius:13px;
  background-color:#fff;
  color:var(--text);
  font-weight:800;
  box-shadow:0 2px 7px rgba(33,45,78,.035);
}
input[type="range"]{
  accent-color:var(--accent);
  height:28px;
}

/* Main action buttons */
button{
  border-radius:14px;
  font-weight:850;
  letter-spacing:-.01em;
}
.songActions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin:8px 0 0;
}
.songActions button,
#startBtn,#learnSongStartBtn,
.primaryChordBtn{
  min-height:50px;
  border-radius:16px;
  background:linear-gradient(180deg,#2a344b,#20283a);
  color:#fff;
  box-shadow:0 8px 18px rgba(32,40,58,.17);
  font-size:14px;
}
.songActions button:active,
#startBtn:active,#learnSongStartBtn:active,
.primaryChordBtn:active{
  transform:translateY(1px) scale(.99);
  box-shadow:0 3px 9px rgba(32,40,58,.14);
}

/* Notation / instrument surfaces */
.blazorFlowLane{
  overflow:hidden;
  padding:10px 10px 8px;
  border:1px solid var(--line);
  border-radius:22px;
  background:
    radial-gradient(circle at 50% -20%,rgba(86,104,232,.055),transparent 42%),
    linear-gradient(180deg,#fff,#fbfcff);
  box-shadow:var(--shadow-md);
}
.backingLaneHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  min-height:24px;
  margin:0 2px 4px;
  color:var(--muted);
  font-size:11px;
  font-weight:850;
}
.blazorFlowLane svg{
  border-radius:16px;
  background:linear-gradient(180deg,#fff,#fcfdff);
}
.blazorFlowLane .hitLine{
  stroke:var(--accent);
  stroke-width:2.2;
  filter:drop-shadow(0 0 4px rgba(86,104,232,.22));
}
.blazorFlowLane .hitLabel{fill:var(--accent);font-weight:950}
.blazorFlowLane .flowBarLine{stroke:#8f99ac;stroke-width:1.35}
.blazorFlowLane .flowBarLine.past{opacity:.28}
.blazorFlowLane .flowNote.past{opacity:.18}
.blazorFlowLane .flowNote.hit .head{
  fill:var(--accent);
  stroke:var(--accent);
  filter:drop-shadow(0 1px 4px rgba(86,104,232,.28));
}
.blazorFlowLane .flowLabelBg{
  fill:#fff;
  stroke:#e0e5ee;
  stroke-width:1;
}
.blazorFlowLane .flowNoteLabel{fill:var(--text-2)}

#staffCard{
  overflow:hidden;
  padding:9px 10px;
  border-radius:22px;
}
#staffSvg{
  border-radius:16px;
  background:
    radial-gradient(circle at 50% 0%,rgba(86,104,232,.04),transparent 40%),
    #fff;
}
#guitarCard{
  padding:10px;
  border-radius:22px;
  background:linear-gradient(180deg,#fffdf8,#fff9ef);
  border-color:#eadfce;
}
#guitarSvg{border-radius:15px}

/* Microphone */
.micbox{
  padding:12px;
  margin:10px 0;
}
.micmain{
  font-size:16px;
  font-weight:950;
  color:var(--text);
}
.micsub{margin-top:2px;color:var(--muted);font-size:11px}
.micbox button{
  width:100%;
  min-height:44px;
  margin-top:8px;
  border-radius:14px;
  background:var(--accent);
  color:#fff;
  font-size:13px;
  box-shadow:0 6px 14px rgba(86,104,232,.18);
}

/* Settings modal */
.backdrop{
  background:rgba(17,24,39,.42);
  backdrop-filter:blur(8px);
}
.panel{
  width:min(100%,600px);
  max-height:90dvh;
  padding:16px;
  border:1px solid rgba(255,255,255,.65);
  border-radius:26px 26px 18px 18px;
  background:rgba(255,255,255,.98);
  box-shadow:0 26px 65px rgba(22,32,55,.24);
}
.panelHead{
  padding-bottom:9px;
  margin-bottom:4px;
  border-bottom:1px solid var(--line);
}
.panelHead h2{font-size:20px;font-weight:950}
.closeBtn{
  width:38px;
  min-height:38px;
  border-radius:12px;
  background:var(--surface-3);
  color:var(--text);
}
.setting{padding:13px 2px;border-top:1px solid var(--line)}
.settingTitle{font-size:14px;font-weight:900}
.settingHelp{font-size:11px;line-height:1.35;color:var(--muted)}
.switch{width:48px;height:28px}
.slider{background:#d9dfeb}
.switch input:checked + .slider{background:var(--accent)}

/* Helpers */
.quickHelp{
  margin:7px 0;
  padding:9px 11px;
  border:1px solid var(--line);
  border-left:3px solid #cbd2ff;
  border-radius:13px;
  background:#f8f9ff;
  color:#6f7890;
}
.message{min-height:25px;font-weight:850}
.pickupBadge{
  background:#fff7df;
  color:#8b6605;
  border:1px solid #f3df9f;
}

/* Mobile tuning */
@media(max-width:600px){
  .app{
    padding:8px 9px 18px;
  }
  .top{margin-bottom:8px}
  .top h1,h1{font-size:16px}
  .iconbtn{
    width:38px;
    min-width:38px;
    min-height:38px;
    border-radius:12px;
  }
  .modebar{
    top:3px;
    margin-bottom:9px;
    border-radius:16px;
  }
  .modebtn{min-height:42px;font-size:12px}
  .card,.choicePanel,.micbox,.blazorFlowLane{
    border-radius:18px;
  }
  .clearChoices .choiceCard{
    min-height:66px;
    padding:9px 10px;
    border-radius:14px;
  }
  .clearChoices .choiceMain{font-size:13px}
  .choiceSummary{min-height:47px;border-radius:15px}
  .songSelectors{border-radius:17px}
  .songSelectors select{min-height:48px;border-radius:13px}
  .settingRow{
    min-height:45px;
    margin:3px 0;
    padding:4px 6px;
  }
  .songActions button,#startBtn,#learnSongStartBtn{min-height:50px}
  .compactScreen .blazorFlowLane svg{
    height:184px!important;
    max-height:184px!important;
  }
  .compactScreen #staffSvg{
    height:130px!important;
    max-height:130px!important;
  }
}
@media(max-width:380px){
  .top h1,h1{font-size:14px}
  .modebtn{font-size:11px}
  .clearChoices .choiceCard{min-height:62px}
}

/* Song UX refinements */
.hearSongLane{margin-top:12px!important}
.hearSongActions{grid-template-columns:1fr auto 1fr!important;margin-top:10px!important}
.hearSongActions .repeatActive{
  background:var(--accent-soft)!important;
  color:var(--accent)!important;
  border:1px solid #c7d0ff!important;
  box-shadow:none!important;
}
@media(max-width:430px){
  .hearSongActions{grid-template-columns:1fr 1fr 1fr!important}
  .hearSongActions button{font-size:11px!important;padding:6px!important}
}

/* Chord workflow refinements */
.strumChordControls{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.strumChordDiagram{display:flex;justify-content:center;margin:4px 0 8px}
.strumChordDiagram .chordDiagramCss{width:140px;max-width:140px}
.chordDiagramPair{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start;margin:8px 0 10px
}
.chordDiagramPair>div{
  min-width:0;border:1px solid var(--line);border-radius:16px;background:#fff;padding:8px;text-align:center
}
.chordDiagramPair small{
  display:block;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.06em;margin-bottom:2px
}
.chordDiagramPair .chordDiagramCss{width:130px;max-width:100%;margin:3px auto}
.nextChordDiagram{background:var(--accent-soft)!important;border-color:#ccd3ff!important}
.endChordCard{
  min-height:150px;display:flex;align-items:center;justify-content:center;
  font-size:22px;font-weight:950;color:var(--muted)
}
@media(max-width:430px){
  .strumChordControls{grid-template-columns:1fr}
  .chordDiagramPair{gap:6px}
  .chordDiagramPair .chordDiagramCss{width:115px}
}

/* Node + guitar: compact two-stage workspace */
@media(max-width:600px){
  .bothPractice #guitarCard{
    order:1;
    padding:3px 5px!important;
    margin-bottom:3px!important;
  }
  .bothPractice #guitarSvg{
    height:112px!important;
    max-height:112px!important;
  }
  .bothPractice #staffCard{
    order:0;
    padding:3px 6px!important;
    margin-bottom:3px!important;
  }
  .bothPractice #staffSvg{
    height:96px!important;
    max-height:96px!important;
  }
  .bothPractice .quickHelp{
    padding:4px 6px!important;
    margin:2px 0!important;
    font-size:9px!important;
  }
  .bothPractice .instruction{
    margin:2px 0!important;
    font-size:13px!important;
  }
  .bothPractice .quickTools{
    margin:2px 0!important;
  }
  .bothPractice .quickTools button{
    min-height:27px!important;
    font-size:9px!important;
  }
  .bothPractice .answers button{
    min-height:30px!important;
    font-size:12px!important;
  }
}
