@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:600;font-display:swap;src:url('./fonts/barlow-condensed-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:700;font-display:swap;src:url('./fonts/barlow-condensed-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:800;font-display:swap;src:url('./fonts/barlow-condensed-800-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/ibm-plex-mono-400-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/ibm-plex-mono-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('./fonts/ibm-plex-mono-500-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('./fonts/ibm-plex-mono-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url('./fonts/ibm-plex-mono-600-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url('./fonts/ibm-plex-mono-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('./fonts/manrope-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('./fonts/manrope-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* style.css */

:root{--bg:#151716;--panel:#1d201e;--line:#363a35;--muted:#969d91;--ink:#eef0e6;--lime:#d6fd65;--red:#ff775b}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Manrope,Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer}header{height:85px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:28px;padding:0 5vw}.brand{font-size:32px;font-weight:800;text-decoration:none;color:var(--ink);letter-spacing:-4px}.brand span{color:var(--lime);margin:0 3px}.edition,.badge,.eyebrow,.topline,.stats>div>span,.mic,footer>span{font:11px 'IBM Plex Mono',monospace;letter-spacing:1.4px}.edition b{color:var(--muted);margin-left:15px;font-weight:400}.badge{margin-left:auto;color:var(--lime);border:1px solid var(--line);border-radius:20px;padding:9px 13px}main{max-width:1240px;margin:auto;padding:38px 40px}.intro{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:34px}.eyebrow{color:var(--muted);margin-bottom:17px}h1{font:800 clamp(55px,7.5vw,96px)/.87 'Barlow Condensed',Impact,sans-serif;letter-spacing:-2px;margin:0}h1 span{color:var(--lime)}.intro p{line-height:1.8;font-size:16px;margin-bottom:0}.intro p span{color:var(--muted);font-size:13px}.workspace{display:grid;grid-template-columns:1.48fr 1fr;gap:20px}.console,.panel{border:1px solid var(--line);background:var(--panel);padding:24px;border-radius:5px}.console{background:radial-gradient(ellipse at 50% 20%,#2b3024,transparent 75%),var(--panel)}.topline{display:flex;justify-content:space-between;color:var(--muted);gap:10px}.tempo{display:flex;align-items:center;justify-content:center;gap:30px;margin:17px 0 8px}.tempo>div{text-align:center}.tempo input{display:block;background:none;border:0;width:230px;text-align:center;color:var(--ink);font:700 120px/1 'Barlow Condensed',Impact,sans-serif;appearance:textfield;outline:none}.tempo input::-webkit-inner-spin-button{appearance:none}.tempo span{font:12px 'IBM Plex Mono',monospace;color:var(--lime);letter-spacing:5px}.tempo button{border:1px solid var(--line);color:var(--ink);border-radius:50%;background:transparent;width:42px;height:42px;font-size:25px}input[type=range]{accent-color:var(--lime);width:100%;height:15px}.beats{display:flex;justify-content:center;gap:12px;margin:22px 0}.beats i{font:12px 'IBM Plex Mono',monospace;width:45px;height:36px;border:1px solid #565e4b;border-radius:3px;text-align:center;padding:10px;color:var(--muted);transition:background .06s}.beats i.active{background:var(--lime);color:#151716}.coach{text-align:center;min-height:79px}.coach>span{font:700 27px 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px}.coach p{color:var(--muted);font-size:12px;margin:8px 0}.coach.angry>span{color:var(--red)}.transport{display:flex;gap:10px}button{border-radius:3px;padding:15px;border:1px solid var(--line);background:#292d28;color:var(--ink);font-size:12px;font-weight:800}.primary{flex:1;background:var(--lime);color:#1a2010;border-color:var(--lime)}button:hover{filter:brightness(1.12)}button:disabled{opacity:.4;cursor:default}.mic{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:var(--muted);margin-top:18px;gap:12px}.mic>div{width:95px;height:5px;background:#3e4437}.mic i{display:block;width:0;height:100%;background:var(--lime)}label{display:block;font-size:12px;color:#c2c8bb;margin-bottom:17px}select,input[type=number]:not(#bpm){display:block;width:100%;margin-top:8px;border:1px solid #42483c;border-radius:3px;color:var(--ink);background:#252923;padding:11px;font-size:12px}select{min-width:0}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sliderlabel input{display:block;margin-top:10px}.sliderlabel span{float:right;color:var(--muted)}.check{display:flex;align-items:center;gap:8px;margin-top:15px;font-size:12px}.check input{accent-color:var(--lime)}details{color:var(--muted);font-size:11px;line-height:1.8}summary{cursor:pointer}details label{margin-top:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);margin:20px 0;border:1px solid var(--line);border-radius:4px}.stats>div{padding:23px;border-right:1px solid var(--line)}.stats>div:last-child{border:0}.stats>div>span{display:block;color:var(--muted);font-size:9px}.stats strong{font:600 42px 'Barlow Condensed',Impact,sans-serif;display:block;margin-top:8px}.stats small{font:12px 'IBM Plex Mono',monospace;color:var(--muted);margin-left:7px}.bottom{display:grid;grid-template-columns:1.15fr 1fr;gap:20px}.bottom p{font-size:11px;color:var(--muted)}canvas{width:100%;height:130px;margin-top:10px}.stages{display:flex;gap:6px;margin:26px 0 15px}.stages div{height:35px;flex:1;border:1px solid var(--line);display:grid;place-items:center;color:var(--muted);font:12px 'IBM Plex Mono',monospace}.stages .selected{background:var(--lime);color:#151716}.log{font-size:11px;border-top:1px solid var(--line);padding-top:15px;color:var(--ink);line-height:1.6}footer{display:flex;justify-content:space-between;gap:30px;border-top:1px solid var(--line);margin-top:35px;padding:23px 0;color:var(--muted)}footer>span{max-width:220px;line-height:1.8;color:var(--lime)}footer p{max-width:590px;font-size:10px;line-height:1.8;margin:0}:focus-visible{outline:2px solid var(--lime);outline-offset:4px}@media(max-width:760px){header{padding:0 20px;height:65px}.edition{display:none}.badge{font-size:8px}main{padding:28px 18px}.intro{align-items:flex-start;gap:15px}.intro p{font-size:12px;max-width:150px}.intro p span{font-size:11px}.eyebrow{font-size:8px;letter-spacing:1px}h1{font-size:58px}.workspace,.bottom{grid-template-columns:1fr}.console,.panel{padding:20px}.stats{grid-template-columns:1fr 1fr}.stats>div{padding:18px}.stats>div:nth-child(2){border-right:0}.stats>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.tempo input{font-size:110px;width:200px}.tempo{gap:20px}footer{flex-direction:column;gap:12px}}

.soundchecks{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.soundchecks button{padding:13px 8px;font-size:10px;border-color:#69774d;color:var(--lime)}.clickonly{width:100%;margin-top:8px;background:transparent;font-size:10px;color:var(--muted);padding:11px}.audio-status{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:14px;font-size:10px;line-height:1.6;color:var(--muted)}.audio-status button{font-size:10px;padding:7px 9px;white-space:nowrap}.console{align-self:start}.soundchecks button:disabled{opacity:.4}

[hidden]{display:none!important}.help{font-size:11px;line-height:1.6;color:var(--lime);margin:-5px 0 18px}.pause-actions{display:flex;gap:8px;margin-top:12px}.pause-actions button{flex:1;font-size:10px;padding:13px 8px}.reading{position:relative}.silent-data .readouts{visibility:hidden}#silenceCover{position:absolute;inset:20px 0 0;display:flex;flex-direction:column;justify-content:center;align-items:center;border:1px solid var(--line);border-radius:5px;background:var(--panel);text-align:center}#silenceCover strong{font:700 30px 'Barlow Condensed',Impact,sans-serif;color:var(--lime)}#silenceCover p{font-size:12px;color:var(--muted);line-height:1.9}.silent .beats{visibility:hidden}.diagnostics{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin:-5px 0 20px}.diagnostics>div{padding:12px 15px;border:1px solid var(--line);border-radius:3px}.diagnostics span,.record-grid span{display:block;font:9px 'IBM Plex Mono',monospace;color:var(--muted);letter-spacing:1px;margin-bottom:8px}.diagnostics b{font:15px 'IBM Plex Mono',monospace}.records{margin-top:20px}.record-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-top:22px}.record-grid strong{display:block;font-size:16px;line-height:1.6}#recordsNote{font-size:10px;color:var(--muted);margin:20px 0 0}#streak{color:var(--lime)}.stages div{font-size:10px}.coach{min-height:95px}.coach p{line-height:1.6}body .log{max-height:180px;overflow:auto}@media(max-width:760px){.diagnostics{grid-template-columns:1fr 1fr}.diagnostics>div:last-child{grid-column:1 / -1}.record-grid{grid-template-columns:1fr}.record-grid strong{font-size:14px}.records>.topline{font-size:9px}.pause-actions{flex-wrap:wrap}}

.sound-deck{border-top:1px solid #455038;border-bottom:1px solid #455038;margin:5px 0 20px;padding:17px 0}.sound-deck .topline{font-size:9px;letter-spacing:1px}.sound-modes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:13px 0 10px}.sound-modes button{text-align:left;background:#22271f;border:1px solid #4d5840;padding:13px 16px;transition:border-color .1s,background .1s}.sound-modes button[aria-pressed=true]{background:var(--lime);border-color:var(--lime);color:#19210c}.sound-modes strong{display:block;font:800 29px 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px}.sound-modes span{display:block;font-size:10px;margin-top:3px;font-weight:500;line-height:1.4}.accent-toggle{width:100%;display:flex;align-items:center;gap:11px;padding:10px 12px;background:transparent;font-weight:500;font-size:12px}.accent-toggle b{display:grid;place-items:center;width:27px;height:27px;background:#3c4533;border-radius:3px;color:var(--ink);font-family:'IBM Plex Mono',monospace}.accent-toggle[aria-pressed=true] b{background:var(--lime);color:#19210c}.switch-mark{margin-left:auto;width:31px;height:18px;border-radius:10px;background:#4a5143;position:relative}.switch-mark:after{content:'';position:absolute;width:12px;height:12px;left:3px;top:3px;border-radius:50%;background:#e5e9de}.accent-toggle[aria-pressed=true] .switch-mark{background:#7e993f}.accent-toggle[aria-pressed=true] .switch-mark:after{left:16px;background:var(--lime)}.click-volume{margin:17px 0 13px}.click-volume #volumeVal{color:var(--lime);font:600 15px 'IBM Plex Mono',monospace}.sound-profile{font-size:10px;margin-bottom:0}.sound-profile select{padding:9px 11px}.output-hint{font-size:10px;line-height:1.6;color:var(--muted);margin:10px 0 0}.beats i.downbeat{border-color:var(--lime);color:var(--lime)}.beats i.active.downbeat{color:#151716}@media(max-width:760px){.sound-modes button{padding:11px}.sound-modes span{font-size:9px}.sound-deck .topline{font-size:8px}.accent-toggle{font-size:11px}}

.echo-status{padding:11px 12px;border:1px solid #52633b;border-radius:3px;background:#d6fd6507;color:var(--lime);font-size:11px;line-height:1.6;margin-bottom:20px}.sound-modes button:disabled,.accent-toggle:disabled{cursor:default;opacity:.65}#listenHelp{color:var(--muted)}
/* Keep the first mobile screen focused on starting and the current instruction. */
.transport{grid-template-columns:1fr}.sound-extra{margin:12px 0}.sound-extra summary,.session-extra>summary{cursor:pointer;color:#d6fd65;padding:12px 0;font-weight:600}.session-extra[open]>summary{margin-bottom:20px}.echo-status{font-size:15px;line-height:1.5;padding:12px 14px;margin:12px 0;border:1px solid #5f7140;border-radius:5px}.coach{scroll-margin-top:20px}.sound-extra #demo{width:100%;margin-bottom:12px}.workspace{grid-template-columns:minmax(0,1fr) minmax(260px,.6fr)}
@media(max-width:800px){.workspace{grid-template-columns:1fr}.intro{padding-bottom:16px}.sound-deck{padding-bottom:8px}.coach{margin-top:16px}.console{padding:22px}.tempo{margin:14px 0}.session-extra{margin-top:0}}
.beats i{width:64px;height:48px;font-size:19px;padding:12px;font-style:normal}.beats i.active{box-shadow:0 0 18px #d6fd6544;transform:translateY(-2px)}.play-hint{font-size:16px;text-align:center;color:var(--lime);min-height:24px}.hit-strip{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;margin:12px 0}.hit-strip span{display:grid;place-items:center;min-height:34px;border:1px solid #42483c;border-radius:4px;color:#969d91;font:10px 'IBM Plex Mono',monospace}.hit-strip .hit-good{background:#d6fd65;color:#172009;border-color:#d6fd65}.hit-strip .hit-early{background:#c86925;color:white}.hit-strip .hit-late{background:#e1bf4d;color:#211d0b}.hit-strip .hit-miss{background:#623529;color:#ffb5a4}.hit-legend{font-size:10px;color:var(--muted);line-height:1.7}.tempo-plan{color:var(--lime);font-size:13px;line-height:1.7;text-align:center}.silent .hit-strip,.silent .play-hint,.silent .hit-legend{visibility:hidden}
@media(max-width:500px){.hit-strip{gap:3px}.hit-strip span{font-size:9px}.beats i{flex:1;max-width:70px}}

.console.training .sound-deck{display:none}.console.training .tempo input{font-size:88px}.console.training .tempo{margin:10px 0}.console.training .beats{margin:14px 0}.console{scroll-margin-top:10px}

.lesson-progress{border:1px solid #586c38;border-radius:6px;padding:13px;margin:12px 0;background:#20291b}.lesson-progress strong{color:var(--lime);font-size:14px}.lesson-numbers{display:flex;justify-content:space-between;gap:10px;margin:12px 0;font-size:11px}.lesson-track{height:7px;background:#414838;border-radius:5px;overflow:hidden}.lesson-track i{display:block;height:100%;width:0;background:var(--lime);transition:width .3s}.lesson-progress p{font-size:11px;line-height:1.6;margin:10px 0}.lesson-progress small{font-size:9px;color:var(--muted)}

.goal-picker{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.goal-picker select{width:auto;margin-top:0;padding:7px 10px}

.block-status{display:block;font:600 12px Manrope,Arial,sans-serif;color:var(--lime);line-height:1.6;margin:14px 0 5px}.last-block{border-left:3px solid var(--lime);padding:8px 12px;font-size:11px;line-height:1.6;color:var(--ink);background:#252d20}.silent .block-status{color:var(--muted)}

/* v13: the live hit grid is the primary practice surface. */
.intro{padding:20px 0;align-items:center}.intro h1{font-size:clamp(28px,5vw,52px);line-height:1}.intro h1 br{display:none}.intro h1 span{margin-left:.2em}.intro .eyebrow,.intro>p{display:none}
.workspace{display:block;max-width:820px;margin:auto}.console{padding:22px}.tempo,.console.training .tempo{margin:8px 0}.tempo input,.console.training .tempo input{font-size:76px}.beats{margin:16px 0 10px}.beats i{height:44px}.tempo-plan{display:none}.play-hint{font-size:18px;margin:12px 0}.block-status{font-size:12px;letter-spacing:.06em;margin:14px 0 8px}.hit-strip{gap:6px;margin:8px 0}.hit-strip span{min-height:44px;font-size:14px}.hit-legend{font-size:12px;line-height:1.6;margin:8px 0 16px;color:#aab19f}
.lesson-progress{padding:14px;margin:12px 0;border-color:#596347}.lesson-progress strong{font-size:17px}.lesson-numbers{font-size:13px;gap:8px;margin:10px 0}.lesson-progress small{font-size:12px}.lesson-track{margin:10px 0}.coach{padding:12px 0;margin:10px 0;border-top:1px solid #3c4237}.coach>span{font-size:24px}.coach p{font-size:14px;line-height:1.5;margin:6px 0}.transport{margin:12px 0}.transport button{padding:16px 10px;font-size:16px}.last-block{font-size:13px;line-height:1.6}.session-extra{margin-top:16px}.secondary-data{max-width:820px;margin:24px auto}.secondary-data>summary{padding:16px;border:1px solid #3c4237;border-radius:8px}.sound-extra{margin-top:14px}.reading{margin-top:18px}footer{max-width:820px;margin:24px auto}header{padding-top:16px;padding-bottom:16px}.edition{display:none}
@media(max-width:600px){main{padding:0 14px}.console{padding:16px}.intro{padding:14px 0}.intro h1{font-size:29px}.hit-strip{gap:4px}.hit-strip span{font-size:11px;min-height:40px}.lesson-numbers{display:flex;flex-wrap:wrap}.coach>span{font-size:22px}.sound-modes button strong{font-size:32px}}

.hit-strip span.hit-uncertain{outline:2px dashed #f1e7db;outline-offset:-3px;background:#4e4755;color:#fff}

#calibrationDone{width:100%;padding:16px;font-size:16px;margin:8px 0}#calibrationFeedback{color:var(--lime);line-height:1.5}

#downloadDiagnostic{display:block;text-align:center;border:1px solid var(--lime);border-radius:4px;color:var(--lime);font-weight:700;text-decoration:none;font-size:13px;padding:16px}#shareDiagnostic{color:var(--lime);border-color:var(--lime);font-size:13px}

.hit-strip.sixteenths{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}.hit-strip.sixteenths>span:nth-child(4n+1){border-left:3px solid var(--lime)}.hit-strip.sixteenths>span:nth-child(8n){margin-right:0}.hit-strip.sixteenths>span{font-size:10px;min-width:0;padding:8px 1px}.stages{grid-template-columns:repeat(auto-fit,minmax(70px,1fr))}

.calibration-panel{margin-bottom:18px;scroll-margin-top:12px}.calibration-panel h2{font:700 27px 'Barlow Condensed',Impact,sans-serif;margin:18px 0 8px}.calibration-panel>p{font-size:14px;line-height:1.6;color:var(--muted)}.calibration-panel .topline{flex-wrap:wrap}.calibration-panel[hidden]{display:none}#calibrationDone{width:100%;margin-bottom:12px}#beginTraining{width:100%;margin-bottom:18px}#trainingGate{font-size:14px;line-height:1.5}

.console.calibrating .coach{display:none}

.progress-dashboard{margin-top:24px}.progress-dashboard h2{font-size:clamp(28px,5vw,46px);margin:18px 0}.practice-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0}.practice-totals strong{padding:16px;background:#d6fd650c;border:1px solid #414738;font-size:18px;color:#d6fd65}.progress-chart{min-height:140px;margin:20px 0}.progress-chart svg{display:block;width:100%;height:auto}.progress-table{overflow:auto}.progress-table table{width:100%;border-collapse:collapse;text-align:left}.progress-table th,.progress-table td{padding:12px 8px;border-bottom:1px solid #414738;white-space:nowrap}.progress-dashboard select{max-width:100%}.progress-dashboard .row>*{min-width:0}.history-import input{max-width:100%;font-size:14px}#sessionHistory p{padding:12px 0;border-bottom:1px solid #414738}#progressChange{color:#d6fd65}@media(max-width:600px){.progress-dashboard .row{display:grid;grid-template-columns:1fr}.practice-totals strong{font-size:15px;padding:12px}}

.progress-link{display:inline-block;color:#d6fd65;margin:0 0 18px;font-size:16px}#progressDashboard{scroll-margin-top:20px}

.mode-nav{display:flex;gap:8px;margin:20px 0}.mode-nav a{flex:1;text-align:center;padding:14px 8px;color:#d6fd65;border:1px solid #414738;text-decoration:none;border-radius:6px}.mode-nav a.selected{background:#d6fd65;color:#171a13;font-weight:800}

/* Keep touch controls responsive without disabling pinch-to-zoom. */
button,a,input[type=range],select{touch-action:manipulation}
.brand{letter-spacing:0;line-height:1.15}
.intro h1{letter-spacing:.015em;line-height:1.15;display:flex;flex-wrap:wrap;gap:0 .22em;font-size:clamp(25px,4.5vw,52px)}
.intro h1 span{margin-left:0}

/* ui.css */
/* Shared shell and controls for all three screens. */
body .app-header{height:62px;padding:0 20px;gap:12px;max-width:850px;margin:auto;border-bottom:1px solid var(--line)}
body .app-header .brand{font:800 17px/1.2 Manrope,Arial,sans-serif;letter-spacing:0;white-space:nowrap}
body .app-header .brand span{margin:0;color:var(--lime)}body .app-header .badge{font-size:10px;padding:6px 9px;letter-spacing:0;border:0}
body main,body main.metro-main{max-width:850px;padding:0 16px 24px;margin:auto}
body .mode-nav{display:flex;gap:6px;margin:16px 0}
body .mode-nav a{padding:12px 4px;font:600 14px/1.25 Manrope,Arial,sans-serif;color:var(--muted);border:1px solid var(--line);border-radius:7px}
body .mode-nav a.selected{background:var(--lime);color:#172009;border-color:var(--lime)}
body .panel,body .console{padding:18px;border-radius:10px;background:var(--panel);margin-bottom:14px}
body .intro,body .edition,body .progress-link{display:none}
body .topline{font-size:10px;letter-spacing:.08em;align-items:center}
body label{font-size:13px;margin-bottom:12px}body select{font-size:16px;padding:10px;border-radius:6px;margin-top:6px}
body .primary{min-height:52px;font-size:16px;border-radius:7px;padding:14px}
body .tempo{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:8px;margin:12px 0}
body .tempo>div{min-width:0}body .tempo button{width:48px;height:48px;display:grid;place-items:center;padding:0;font-size:30px;line-height:1}
body .tempo input#metroBpm,body .tempo input#bpm,body .console.training .tempo input#bpm{font:700 clamp(64px,17vw,100px)/1.1 Manrope,Arial,sans-serif;letter-spacing:-.04em;color:var(--ink);display:block;width:100%;max-width:none;margin:0;padding:0;background:transparent;border:0;box-shadow:none;text-align:center;height:115px;appearance:textfield}
body .tempo span{font-size:11px;letter-spacing:.12em}body input[type=range]{height:22px;margin:5px 0}
body .metro-top-sound{margin-top:14px}body .metro-top-sound label{margin:0}body .metro-top-sound select{margin-top:4px}
body .metro-quick{grid-template-columns:1fr 2fr 1fr;gap:8px;margin:10px 0 6px}body .metro-quick button{min-height:44px;padding:8px;font-size:14px}
body .tap-hint{min-height:0;font-size:12px;line-height:1.4;margin:8px 0;color:var(--muted)}
body .metro-beats{gap:7px;margin:18px 0 8px}body .metro-beats button{height:76px;font:700 32px/1 Manrope,Arial,sans-serif}
body .beat-tip{font-size:11px;color:var(--muted);text-align:center;margin:8px 0}body .metro-parts{min-height:12px;margin:10px 0 16px;gap:8px}body .metro-parts i{width:9px;height:9px}
body #metroStart{min-height:54px;font-size:18px}body .compact-status:empty{display:none}body .compact-status{font-size:12px;color:var(--muted)}
body .metro-panel>.row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}body .metro-panel>.row label{margin:0}
body .metro-options{margin-top:14px;border-top:1px solid var(--line);padding-top:12px;font-size:13px}body .metro-options summary{font-size:13px}body .metro-foot{font-size:11px;line-height:1.5}
body .calibration-panel h2{font:700 20px/1.3 Manrope,Arial,sans-serif;margin:12px 0 8px}body .calibration-panel>p{font-size:13px;line-height:1.45;margin:8px 0 12px}body .calibration-panel .transport{margin:0}
body #trainingGate{font-size:12px;color:var(--muted);margin:10px 0}body #beginTraining:disabled{opacity:.5}body .training-pickers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}body .training-pickers select{font-size:13px}body .inline-help{font-size:11px;margin-top:-5px}body .inline-help .help{margin:8px 0;color:var(--muted)}
body .beats{gap:7px;margin:16px 0}body .beats i{flex:1;max-width:none;height:65px;padding:17px 0;font:600 24px/1 Manrope,Arial,sans-serif;border-radius:7px}
body .console .coach{min-height:0}body .console .coach>span{font-size:20px}body .console .coach p{font-size:13px}body .hit-legend{font-size:11px}
body .progress-dashboard{margin-top:0}body .progress-dashboard h2{font-size:26px;line-height:1.25;margin:16px 0 8px}body .progress-dashboard p{font-size:13px;line-height:1.5}body .progress-dashboard .row{grid-template-columns:1fr}body .practice-totals{margin:18px 0}
@media(min-width:600px){body .metro-beats button{height:100px;font-size:40px}body .panel,body .console{padding:24px}body .mode-nav a{font-size:16px}}
/* Direct rhythm choices; no native popup menus on the main metronome. */
body .rhythm-controls{display:grid;gap:10px;margin:16px 0;padding-bottom:16px;border-bottom:1px solid var(--line)}body .rhythm-row>span{display:block;color:var(--muted);font-size:11px;margin-bottom:6px}.choice-strip{display:flex;gap:5px}.choice-strip button{flex:1;min-width:0;min-height:43px;padding:8px 4px;border-radius:7px;background:#272c24;border:1px solid transparent;color:#bcc4b3}.choice-strip button strong{display:block;font-size:15px;font-weight:700}.choice-strip button small{display:block;font-size:9px;font-weight:500;margin-top:3px}.choice-strip button[aria-pressed=true]{background:#d6fd651a;color:var(--lime);border-color:#d6fd65}.meter-choices{display:grid;grid-template-columns:repeat(4,1fr)}.meter-choices button{min-height:36px}.rhythm-controls + .tempo{margin-top:0}body .metro-panel>.row:has(>select[hidden]){display:none}
body .practice-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.practice-totals>div{padding:12px 4px;text-align:center;background:#252b21;border-radius:8px}body .practice-totals strong{display:block;font-size:24px;line-height:1.2;padding:0;border:0;background:none;color:var(--lime)}.practice-totals span{display:block;font-size:9px;color:var(--muted);margin-top:6px}.progress-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:18px 0}.progress-metrics>div{padding:14px 5px;text-align:center;border:1px solid var(--line);border-radius:8px}.progress-metrics strong{display:block;font-size:20px;color:var(--lime)}.progress-metrics span{display:block;font-size:10px;color:var(--muted);margin-top:5px}body .progress-dashboard h3{font-size:14px;margin:22px 0 12px}.stats-explanation{font-size:12px;margin:14px 0}.tempo-bar-row{display:grid;grid-template-columns:68px 1fr 40px;align-items:center;gap:10px;margin:13px 0;font-size:12px}.tempo-bar-row b{text-align:right;color:var(--lime)}.tempo-bar-track{height:13px;background:#343c2e;border-radius:8px;overflow:hidden}.tempo-bar-track i{display:block;height:100%;background:var(--lime);border-radius:8px}.activity-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.activity-day{padding:10px 0;text-align:center;font:11px Manrope,Arial,sans-serif;border-radius:5px}.activity-legend{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin:10px 0 24px;color:var(--muted);font-size:10px}.activity-legend i{width:12px;height:12px;background:#d6fd65;border-radius:2px}.activity-legend i:nth-of-type(1){opacity:.2}.activity-legend i:nth-of-type(2){opacity:.4}.activity-legend i:nth-of-type(3){opacity:.7}body .progress-chart{margin:8px 0}body #progressChange{font-size:12px}

/* Training choices and quiet technical drawer */
.rare-options{display:grid;grid-template-columns:1fr 2fr;gap:12px;align-items:center;margin:16px 0}.rare-options label{margin:0}.rare-options small{grid-column:1/-1;color:var(--muted,#969b90);font-size:12px}.rare-options select{min-height:44px}.technical-tools{margin:24px 0;color:#969b90}.technical-tools>summary{padding:16px 0}.technical-tools[open]{border-top:1px solid #343a31}footer details>summary{cursor:pointer}.rare-options .check{font-size:14px}

.anchor-beats{display:flex;gap:6px;margin-top:8px}.anchor-beats button{min-width:40px;min-height:44px;padding:8px;border:1px solid #4b543c;background:#242820;border-radius:8px;color:#d4d8cc}.anchor-beats button[aria-pressed="true"]{background:#d6ff62;color:#161a13}.rare-options{grid-template-columns:1fr}.rare-options small{margin-top:-6px}

.lesson-picker{margin:16px 0 24px}.lesson-choices{display:flex;gap:6px}.lesson-choices button{flex:1;padding:12px 5px;font-size:13px;border:1px solid #465039;border-radius:9px;background:#242820;color:#d4d8cc}.lesson-choices button[aria-pressed="true"]{background:#d6ff62;color:#161a13}.lesson-picker p{font-size:13px;color:#9fa596;line-height:1.5}

#trainingPickers[hidden],#rareOptions[hidden]{display:none}#skillProgress{border-left:3px solid #d6ff62;padding-left:12px;color:#d6ff62;font-size:12px}

.switch-editor{padding:16px;border:1px solid #424b36;border-radius:12px;margin-bottom:24px}.switch-editor[hidden]{display:none}.switch-sequence{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 14px}.switch-sequence button{font-size:13px;padding:10px;background:#29311f;border:1px solid #5a693d;color:#d6ff62;border-radius:8px}.switch-palette{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin:12px 0}.switch-palette button{padding:12px;font-size:14px;background:#252a21;color:#e3e8db;border:1px solid #49533b;border-radius:8px}.switch-palette small{display:block;font-size:11px;opacity:.65;margin-top:4px}.switch-editor>label{display:block;margin:12px 0 8px}.switch-editor .help{font-size:12px;line-height:1.5}

/* Mobile rotary tempo control: only the ring captures gestures. */
.tempo-wheel{position:relative;width:min(100%,310px);aspect-ratio:1;margin:22px auto 0}.tempo-dial{position:absolute;inset:0;border-radius:50%;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab;background:radial-gradient(circle,#23291f 0 56%,#1a1e18 57% 66%,transparent 67%);box-shadow:inset 0 0 28px #0003}.tempo-dial.dragging{cursor:grabbing}.tempo-dial svg{width:100%;height:100%;pointer-events:none}.tempo-dial circle{fill:none;stroke-width:9;stroke-linecap:round;transform:rotate(120deg);transform-origin:130px 130px}.dial-track{stroke:#414937;stroke-dasharray:575.96 691.15}.dial-arc{stroke:#d6fd65}.dial-arm{position:absolute;inset:7.7%;pointer-events:none}.dial-arm i{display:block;position:absolute;left:50%;top:0;width:24px;height:24px;border:4px solid #edfbc8;border-radius:50%;background:#d6fd65;transform:translate(-50%,-50%);box-shadow:0 0 18px #d6fd6566}.dial-center{position:absolute;inset:27% 20%;display:flex;flex-direction:column;justify-content:center;align-items:center;pointer-events:none}.dial-center input{pointer-events:auto;touch-action:manipulation}.dial-center span{font:12px Manrope,Arial,sans-serif;letter-spacing:3px;color:#d6fd65;margin-top:4px}body .metro-panel input#metroBpm{font:700 clamp(54px,16vw,80px)/1.15 Manrope,Arial,sans-serif;width:100%;min-width:0;height:96px;padding:0;margin:0;text-align:center;letter-spacing:-.04em;background:transparent;color:#eef0e6;border:0;box-shadow:none;appearance:textfield}#metroBpm::-webkit-inner-spin-button,#metroBpm::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.dial-help{text-align:center;font-size:12px;color:#969d91;margin:4px 0 15px}.metro-quick{display:flex;justify-content:center;margin:10px 0}.metro-quick #metroTap{width:100%;max-width:310px;min-height:50px;font-size:14px}.tempo-dial:focus-visible{outline:2px solid #d6fd65;outline-offset:4px}

.sound-modes{grid-template-columns:repeat(3,minmax(0,1fr))}.sound-modes button{min-width:0}.sound-modes button strong{font-size:clamp(24px,6vw,38px)}.sound-modes button span{font-size:11px}

/* Compact regular metronome; training layout is unchanged. */
body.compact-metro .app-header{height:38px;padding:0 12px}body.compact-metro .app-header .brand{font-size:14px}body.compact-metro main.metro-main{padding:0 10px 12px}body.compact-metro .mode-nav{margin:7px 0;gap:5px}body.compact-metro .mode-nav a{padding:9px 3px;font-size:13px}body.compact-metro .metro-panel{padding:12px;margin-bottom:0}body.compact-metro .rhythm-controls{margin:8px 0;gap:6px}body.compact-metro .rhythm-row{display:grid;grid-template-columns:48px minmax(0,1fr);gap:6px;margin:0}body.compact-metro .rhythm-row>span{font-size:10px}body.compact-metro .choice-strip{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px;scrollbar-width:none}body.compact-metro .choice-strip button{min-height:36px;min-width:42px;padding:6px 8px;flex:1}body.compact-metro .choice-strip strong{font-size:13px}body.compact-metro .choice-strip small{display:none}body.compact-metro .meter-choices button{flex:0 0 42px}body.compact-metro .dial-row{display:flex;align-items:center;justify-content:center;gap:10px}body.compact-metro .tempo-wheel{width:clamp(145px,26svh,220px);flex-shrink:0;margin:4px 0}body.compact-metro .tempo-nudge{width:44px;height:48px;flex-shrink:0;border:1px solid #4c583a;border-radius:12px;background:#252c20;color:#d6fd65;padding:0;font-size:28px;touch-action:manipulation}body.compact-metro input#metroBpm{font-size:clamp(44px,8svh,62px);height:70px}body.compact-metro .dial-center span{font-size:10px}body.compact-metro .dial-help{display:none}body.compact-metro .metro-quick{margin:3px 0}body.compact-metro #metroTap{min-height:36px;max-width:none;padding:6px;font-size:12px}body.compact-metro .tap-hint{font-size:10px;margin:3px 0}body.compact-metro .tap-hint:empty{display:none}body.compact-metro .metro-beats{margin:9px 0 4px;gap:5px}body.compact-metro .metro-beats button,body.compact-metro .metro-beats.many button{height:48px;font-size:26px}body.compact-metro .metro-beats.many{grid-template-columns:repeat(var(--beats),minmax(0,1fr))}body.compact-metro .metro-beats button.accent:after{font-size:6px;bottom:4px}body.compact-metro .beat-tip{font-size:10px;margin:4px 0}body.compact-metro .metro-parts{margin:5px 0 8px;min-height:8px}body.compact-metro #metroStart{min-height:46px;font-size:16px;padding:10px}body.compact-metro .metro-options{margin-top:8px;padding-top:7px}body.compact-metro .metro-options>summary{font-size:12px}body.compact-metro .compact-status:empty{display:none}@media(max-height:620px){body.compact-metro .tempo-wheel{width:145px}body.compact-metro .beat-tip{display:none}body.compact-metro .app-header{height:30px}}
@media(max-height:740px){body.compact-metro .metro-panel{padding:8px 10px}body.compact-metro .rhythm-controls{padding-bottom:4px;margin:4px 0;gap:4px}body.compact-metro .choice-strip button{min-height:32px;padding:4px 7px}body.compact-metro .tempo-wheel{width:140px;margin:0}body.compact-metro .rhythm-row>span{margin:0;align-self:center}body.compact-metro .topline{margin-bottom:4px}body.compact-metro .beat-tip{display:none}body.compact-metro .metro-beats{margin-top:6px}body.compact-metro .metro-options{margin-top:5px;padding-top:5px}body.compact-metro .dial-center span{margin:0}body.compact-metro input#metroBpm{font-size:44px;height:56px}}

body.compact-metro .tempo-nudge{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}body.compact-metro .tempo-nudge.held{background:#d6fd65;color:#172009;box-shadow:0 0 15px #d6fd6533}

.listen-picker{margin:14px 0}.listen-picker .help{font-size:12px;line-height:1.5;margin:9px 0}.listen-picker details{font-size:12px;color:#a7af9c}.listen-picker details p{font-size:12px;line-height:1.5}.listen-picker button{min-height:44px}

/* v44: a clear setup → calibration → play flow. */
body .workspace{display:flex;flex-direction:column;gap:16px}
body .session-setup .topline{margin-bottom:14px}
body .setup-tempo{display:flex;align-items:center;gap:12px;margin-top:16px}
body .setup-tempo input{width:100px;font-size:26px;text-align:center}
body .calibration-panel .transport{display:flex;flex-direction:column;align-items:stretch}
body .calibration-panel #trainingGate{margin:0;text-align:center}
body .console:not(.playing){display:none}
body .console.playing .coach{display:none}
body .console.playing .tempo-plan,body .console.playing #stageRoad,body .console.playing #lessonRule{display:none}
body .console.playing .hit-legend{font-size:11px;line-height:1.5}
body .console.playing .tempo{margin:4px 0}
body .console.playing .transport{position:sticky;bottom:8px;z-index:3;background:var(--bg,#151716);padding:8px 0}
body .next-cue{font-size:13px;color:var(--accent,#d6fd65);margin:10px 0;line-height:1.5}
body .session-summary{margin-bottom:16px;border-color:#d6fd65}
body .session-summary .progress-metrics strong{font-family:inherit;font-size:clamp(18px,4vw,28px)}
body .session-summary .lesson-choices a{display:flex;align-items:center;justify-content:center;text-decoration:none;color:var(--accent,#d6fd65);padding:12px}
body .presets{margin:10px 0}
body .presets button{min-height:44px;font-size:13px}
body .comparison-caption{font-size:13px;color:var(--muted);margin:16px 0}
body .practice-totals{grid-template-columns:repeat(3,minmax(0,1fr))}

body .console.playing.paused .coach{display:block}
body .console.review{display:block}
body .console.review>.tempo,body .console.review>#tempoRange,body .console.review>#beats,body .console.review>#nextCue,body .console.review>#tempoPlan,body .console.review>#lessonProgress,body .console.review>.coach{display:none}
body .console.silent #nextCue{visibility:hidden}
body [hidden]{display:none!important}

.session-comparisons h3{font-size:14px;margin:20px 0 10px}.session-comparisons p{font-size:12px;color:var(--muted);line-height:1.6}.session-comparisons .tempo-bar-row{grid-template-columns:90px 1fr 42px}#sessionHistory details{padding:10px 0;border-bottom:1px solid var(--line)}

body .tempo-dial{cursor:ns-resize;touch-action:none}body .tempo-dial.dragging{filter:brightness(1.12)}body .dial-center input{touch-action:none}

/* Switch training: one prominent, musical-time cue above the hit grid. */
.switch-board{position:sticky;top:8px;z-index:5;background:#20271b;border:2px solid #72834e;border-radius:14px;padding:14px 16px;margin:12px 0;color:#edf1e7;box-shadow:0 6px 24px #0005;text-align:left}
.switch-board[hidden]{display:none}.switch-board-label{font-size:11px;letter-spacing:1.4px;font-weight:700}.switch-board>strong{display:block;font-family:system-ui,sans-serif;font-size:clamp(24px,7vw,40px);line-height:1.15;letter-spacing:0;margin:5px 0;overflow-wrap:anywhere}.switch-board-pattern{font-size:12px;letter-spacing:2px;opacity:.75}.switch-board-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;margin-top:8px;border-top:1px solid #ffffff25;padding-top:6px}.switch-board-bottom span{font-size:14px;font-weight:650}.switch-board-bottom b{font:800 34px/1 system-ui;min-width:34px;text-align:center}.switch-board.prepare{border-color:#d6fd65}.switch-board.change{background:#d6fd65;color:#151716;border-color:#d6fd65;box-shadow:0 0 25px #d6fd6533}

.switch-round-result{font-size:12px;line-height:1.3;margin-top:7px;opacity:.8}

/* The live switch console fits the actual visible viewport, including browser chrome. */
body .console.playing.switch-focus{position:fixed;left:0;right:0;top:0;z-index:1000;width:100%;max-width:760px;margin:0 auto;height:100dvh;box-sizing:border-box;border:0;border-radius:0;background:#151716;padding:8px max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:44px auto 40px 30px 18px minmax(0,1fr);gap:6px;overflow:hidden;overscroll-behavior:contain}
body .console.switch-focus>*{display:none!important}
body .console.switch-focus>.tempo{display:flex!important;grid-area:1/1;margin:0;gap:4px;justify-content:flex-start;align-items:center;min-height:0}
body .console.switch-focus .tempo button{display:none}body .console.switch-focus .tempo>div{display:flex;align-items:center;gap:5px}
body .console.switch-focus .tempo input#bpm{font:700 28px/1 Manrope,Arial,sans-serif;height:38px;width:70px;padding:0;pointer-events:none}body .console.switch-focus .tempo span{font-size:10px}
body .console.switch-focus>.transport{display:flex!important;grid-area:1/2;position:static;margin:0;padding:0;gap:5px;align-items:stretch;background:none}
body .console.switch-focus>.transport button{min-height:44px;padding:4px 7px;font-size:11px;flex:1;min-width:0;margin:0}
body .console.switch-focus>#switchBoard{display:block!important;grid-area:2/1/3/3;position:static;margin:0;padding:9px 12px;min-width:0;border-radius:10px;box-shadow:none}
body .console.switch-focus .switch-board-label{font-size:10px}body .console.switch-focus .switch-board>strong{font-size:clamp(22px,6vw,32px);margin:3px 0;line-height:1.1}body .console.switch-focus .switch-board-pattern{display:none}body .console.switch-focus .switch-round-result{font-size:11px;margin-top:3px}body .console.switch-focus .switch-board-bottom{margin-top:4px;padding-top:4px;min-height:28px}body .console.switch-focus .switch-board-bottom span{font-size:12px}body .console.switch-focus .switch-board-bottom b{font-size:28px}
body .console.switch-focus>#beats{display:flex!important;grid-area:3/1/4/3;margin:0;gap:6px;min-height:0}body .console.switch-focus>#beats i{height:40px;min-height:0;max-width:none;flex:1;padding:0;display:grid;place-items:center;font-size:23px;box-sizing:border-box}
body .console.switch-focus>#playHint{display:block!important;grid-area:4/1/5/3;margin:0;font-size:12px;line-height:15px;min-height:0;overflow:hidden}
body .console.switch-focus>#blockStatus{display:block!important;grid-area:5/1/6/3;margin:0;font-size:10px;line-height:18px;white-space:nowrap;overflow:hidden}
body .console.switch-focus>#hitStrip{display:grid!important;grid-area:6/1/7/3;margin:0;min-height:0;min-width:0;gap:3px;align-items:stretch}
body .console.switch-focus>#hitStrip>span{min-height:0;min-width:0;padding:1px;border-radius:4px;font-size:clamp(8px,2.6vw,12px);line-height:1.05;overflow:hidden;overflow-wrap:anywhere;box-sizing:border-box}
@media(max-height:440px){body .console.playing.switch-focus{grid-template-rows:44px auto 30px 20px 14px minmax(0,1fr);gap:3px;padding-top:3px}body .console.switch-focus>#switchBoard{padding:4px 10px}body .console.switch-focus .switch-board-label,body .console.switch-focus .switch-round-result{display:none}body .console.switch-focus .switch-board>strong{font-size:22px}body .console.switch-focus .switch-board-bottom{margin:0;min-height:22px;padding:0}body .console.switch-focus .switch-board-bottom b{font-size:22px}body .console.switch-focus>#beats i{height:30px;font-size:20px}body .console.switch-focus>#blockStatus{font-size:9px;line-height:14px}}

/* Incremental accelerando / ritardando controls. */
body .tempo-ramp-options{margin:7px 0 0;padding:11px;border:1px solid #303832;border-radius:12px;background:#191d1a}
body .tempo-ramp-options[hidden],body .tempo-ramp-state[hidden]{display:none!important}
body .tempo-ramp-sliders{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body .tempo-ramp-sliders label{margin:0!important;color:#aeb6b0}
body .tempo-ramp-sliders label>span{display:flex;justify-content:space-between;gap:8px}
body .tempo-ramp-sliders output{color:#eef2ef;font-weight:700}
body .tempo-ramp-sliders input{width:100%;margin:8px 0 0}
body .tempo-ramp-options p{margin:9px 0 0;font-size:11px;color:#929c95}
body .tempo-ramp-state{margin:2px 0 5px;text-align:center;font-size:11px;color:#a8b6ac}
@media(max-width:480px){body .tempo-ramp-sliders{grid-template-columns:1fr}}

/* redesign.css */
body.redesign{--lime:#32c85b;--ink:#f5f5f7;--muted:#777b78;--line:#282b29;background:#101110;color:var(--ink);margin:0;overflow:hidden;font-family:Manrope,Arial,sans-serif}body.redesign>[hidden]{display:none!important}body.redesign button{touch-action:manipulation}body.redesign button:focus-visible{outline:2px solid #32c85b;outline-offset:3px}
#newShell{height:var(--new-height,100dvh);max-width:600px;margin:auto;padding:12px 18px max(10px,env(safe-area-inset-bottom));box-sizing:border-box;display:grid;grid-template-rows:44px 38px minmax(0,1fr) 48px;gap:8px;background:#101110}.new-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.new-brand{display:flex;align-items:center;gap:10px;font-weight:750;font-size:12px;letter-spacing:3px;text-decoration:none;color:#fff}.new-brand img{width:28px;height:35px}.new-header button{display:flex;align-items:center;gap:8px;padding:0;background:none;border:0}.new-header button span{font-size:10px;letter-spacing:2px;color:#858985}.new-header i{width:44px;height:26px;border-radius:20px;background:#333;position:relative}.new-header i:after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;background:#fff;border-radius:50%}.new-header [aria-checked=true] i{background:#32c85b}.new-header [aria-checked=true] i:after{left:21px}.new-titlebar{display:flex;gap:5px;align-items:center}.new-titlebar button{min-height:34px;padding:5px 9px;background:#1c1e1c;border:0;border-radius:9px;font-size:12px}.new-titlebar #chooseLesson{margin-right:auto}.preview-tag{font:8px monospace;letter-spacing:1px;color:#656a65}.new-titlebar #openStats,.new-titlebar #openSettings{font-size:20px;width:36px}
#newStage{min-height:0;overflow:hidden}body.redesign #newStage .console{position:static!important;display:grid!important;width:100%;max-width:none;height:100%!important;min-height:0;grid-template-columns:1fr;grid-template-rows:40px auto 18px minmax(70px,1fr) minmax(50px,1fr) 66px 22px 44px;gap:5px;margin:0;padding:0;border:0;background:none;overflow:hidden;box-shadow:none;border-radius:0}
body.redesign #newStage .console>*{display:none!important}body.redesign #newStage .console>#beats{display:flex!important;grid-area:1/1;margin:0;gap:5px;min-height:0}body.redesign #newStage #beats i{display:grid;place-items:center;flex:1;max-width:none;height:40px;min-height:0;padding:0;border:0;border-radius:13px;background:#1d201d;color:#737973;font-size:20px;box-shadow:none}body.redesign #newStage #beats i.active{background:#32c85b;color:#09290f}
body.redesign #newStage .console>#nextCue{display:block!important;grid-area:2/1;min-height:16px;font-size:11px;line-height:1.3;margin:0;color:#969d96;text-align:center}
body.redesign #newStage .console>#switchBoard:not([hidden]){display:block!important;grid-area:2/1;position:static;margin:0;padding:5px 9px;border:1px solid #303a30;border-radius:10px;background:#151915;box-shadow:none}body.redesign #newStage .switch-board-label,body.redesign #newStage .switch-board-pattern{display:none}body.redesign #newStage .switch-board>strong{font-size:20px;margin:0;line-height:1.1}body.redesign #newStage .switch-board-bottom{margin:2px 0 0;padding:0;min-height:24px;border:0}body.redesign #newStage .switch-board-bottom span{font-size:11px}body.redesign #newStage .switch-board-bottom b{font-size:24px}body.redesign #newStage .switch-round-result{font-size:10px;margin:2px 0}body.redesign #newStage .switch-board.change{background:#32c85b;color:#071a0b}body.redesign #newStage .console:has(#switchBoard:not([hidden]))>#nextCue{visibility:hidden}
body.redesign #newStage .console>#blockStatus{display:block!important;grid-area:3/1;font-size:9px;line-height:18px;letter-spacing:1px;color:#828982;margin:0;overflow:hidden;white-space:nowrap}
body.redesign #newStage .console>#hitStrip{display:grid!important;grid-area:4/1;min-height:0;gap:4px;margin:0;grid-auto-rows:minmax(0,1fr)}body.redesign #newStage #hitStrip span{min-height:0;min-width:0;box-sizing:border-box;padding:2px 0;font:11px/1.1 Manrope,Arial,sans-serif;border:1px solid transparent;border-radius:12px;background:#1d201d;color:#737973;overflow:hidden;overflow-wrap:anywhere}body.redesign #newStage #hitStrip .hit-good{background:#143d22;color:#4bd87b}body.redesign #newStage #hitStrip .hit-early{background:#481a1a;color:#ff7373}body.redesign #newStage #hitStrip .hit-late{background:#453217;color:#e8bd69}body.redesign #newStage #hitStrip .hit-miss{background:#29191b;color:#bd7171}body.redesign #newStage #hitStrip .hit-uncertain{background:#38333e;color:#d0c3d9;outline:1px dashed #93859e}
body.redesign #newStage .console>#character{display:flex!important;grid-area:5/1;flex-direction:column;align-items:center;justify-content:end;min-height:0;overflow:hidden}#characterImg{display:block;max-height:calc(100% - 18px);width:auto;max-width:90%;object-fit:contain;image-rendering:pixelated}#characterLine{font-size:10px;color:#878e87;height:16px;text-align:center;flex-shrink:0}
body.redesign #newStage .console>.tempo{display:flex!important;grid-area:6/1;margin:0;min-height:0;align-items:center;justify-content:space-between;gap:10px}body.redesign #newStage .tempo>div{display:flex;flex-direction:column;align-items:center}body.redesign #newStage .tempo input#bpm{font:700 48px/1 Manrope,Arial,sans-serif;width:110px;height:49px;pointer-events:auto}body.redesign #newStage .tempo span{font-size:10px;letter-spacing:2px;color:#848884}body.redesign #newStage .tempo button{display:grid;width:72px;height:44px;min-height:44px;border:1px solid #272a27;border-radius:14px;background:transparent;font-size:22px;color:#aaa}
body.redesign #newStage .console>#tempoRange{display:block!important;grid-area:7/1;width:100%;height:18px;margin:0;accent-color:#32c85b}body.redesign #newStage .console>.transport{display:flex!important;grid-area:8/1;position:static;padding:0;margin:0;gap:9px;background:none}body.redesign #newStage .transport button{flex:1;min-height:44px;margin:0;padding:8px;font-size:12px;border:0;border-radius:13px;background:#eeeef3;color:#111}
#idleActions{display:flex;gap:8px;min-height:0}#idleActions button{border-radius:13px;font-size:12px;padding:8px 12px;min-height:44px;margin:0}#idleActions #mainStart{flex:1;background:#32c85b;color:#05210d;border:0}#idleActions #openCalibration{background:#191d19;color:#999;border:1px solid #282d28}#newShell.is-playing{grid-template-rows:44px 38px minmax(0,1fr)}#newShell.is-playing #idleActions{display:none}#newShell.dense #newStage .console{grid-template-rows:36px auto 16px minmax(100px,2fr) minmax(35px,.6fr) 60px 20px 44px}#newShell.dense #hitStrip span{font-size:9px;border-radius:7px}
.new-dialog{color:#eee;background:#151815;border:1px solid #343a34;border-radius:22px 22px 0 0;padding:0;width:min(600px,100%);max-width:100%;max-height:92dvh;margin:auto auto 0;box-sizing:border-box}.new-dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}.new-dialog>header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#151815;padding:14px 18px;z-index:10;border-bottom:1px solid #2a302a}.new-dialog h2{font:700 18px Manrope,Arial,sans-serif;margin:0}.new-dialog header button{width:42px;min-height:42px;padding:4px;border-radius:50%;background:#252b25;border:0;color:#fff}.dialog-content{padding:14px;overflow:auto}.new-dialog .panel{padding:10px;border:0;background:none;margin:0}.new-dialog .topline{font-size:10px}.new-dialog .lesson-choices{flex-wrap:wrap}.new-dialog button{min-height:44px}.new-dialog .mode-card{width:100%;text-align:left;margin-top:16px;padding:16px;background:#202720}.new-dialog .calibration-panel h2{font-size:23px;line-height:1.1}.new-dialog details{margin:12px 0}.new-dialog details[open]>summary{margin-bottom:12px}.new-dialog iframe{display:block;border:0;width:100%;height:calc(88dvh - 78px);background:#151716}#statsDialog,#metroDialog{height:94dvh}#statsDialog .dialog-content,#metroDialog .dialog-content{padding:0}.new-dialog .session-extra{display:block!important}
@media(max-height:620px){#newShell{padding-top:5px;gap:4px;grid-template-rows:36px 32px minmax(0,1fr) 44px}#newShell.is-playing{grid-template-rows:36px 32px minmax(0,1fr)}body.redesign #newStage .console{grid-template-rows:30px auto 15px minmax(48px,1fr) minmax(25px,.7fr) 54px 18px 44px;gap:3px}body.redesign #newStage #beats i{height:30px}body.redesign #newStage .tempo input#bpm{font-size:38px;height:39px}#characterLine{display:none}#newShell.dense #newStage .console{grid-template-rows:30px auto 14px minmax(72px,2fr) 25px 48px 16px 44px}}
@media(prefers-reduced-motion:reduce){body.redesign *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Notes outside the live window retain their absolute scoring indices. */
body.redesign #newStage #hitStrip > [hidden]{display:none!important}

/* surfaces.css */
/* Shared visual system for every surface. Audio and scoring modules are unchanged. */
body.redesign,:is(body[data-surface],.embedded-metro){--bg:#101110;--panel:#191b19;--lime:#32c85b;--accent:#32c85b;--ink:#f5f5f7;--muted:#979c98;--line:#2c302d;color:var(--ink);background:var(--bg);font-family:Manrope,Arial,sans-serif;-webkit-font-smoothing:antialiased}
.new-dialog{background:#151715;border-color:#303431;border-radius:26px 26px 0 0;overscroll-behavior:contain;padding-bottom:env(safe-area-inset-bottom)}
.new-dialog>header{padding:18px 20px;background:#151715;border-bottom:0}.new-dialog>header h2{font-size:20px;letter-spacing:-.3px}.new-dialog>header button{width:34px;height:34px;min-height:34px;background:#252825;font-size:16px}.new-dialog .dialog-content{padding:0 20px 22px}.new-dialog .panel{padding:0;border:0;background:none}.new-dialog .topline,.new-dialog .eyebrow{display:none}
.new-dialog p,.new-dialog .help,.new-dialog small{font:400 12px/1.5 Manrope,Arial,sans-serif;color:var(--muted);letter-spacing:0}.new-dialog label,:is(body[data-surface],.embedded-metro) label{display:block;font-size:12px;color:#aeb3af;line-height:1.4}.new-dialog button,.new-dialog a,:is(body[data-surface],.embedded-metro) button{font-family:Manrope,Arial,sans-serif;letter-spacing:0;text-transform:none;touch-action:manipulation}
.new-dialog button:not([hidden]),:is(body[data-surface],.embedded-metro) button{border-radius:13px;border:1px solid transparent;background:#242724;color:#e5e8e5;font-size:13px;min-height:44px;padding:10px 12px;box-shadow:none}
.new-dialog button.primary,:is(body[data-surface],.embedded-metro) button.primary{background:#32c85b;color:#092b13;font-weight:750}.new-dialog button[aria-pressed=true],:is(body[data-surface],.embedded-metro) button[aria-pressed=true]{background:#193c24;color:#64e187;border-color:#338c49}.new-dialog button:disabled{opacity:.4}.new-dialog .lesson-choices{gap:5px}.new-dialog .lesson-choices button{padding:10px 7px;font-size:12px}.new-dialog .lesson-picker{margin:0 0 20px}.new-dialog .lesson-picker>p{margin:10px 0}.new-dialog select,:is(body[data-surface],.embedded-metro) select{appearance:none;background:#242724 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23979c98' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;color:#ecefec;border:1px solid #353a35;border-radius:12px;padding:13px 36px 13px 12px;font:14px Manrope,Arial,sans-serif;width:100%;margin-top:7px;min-height:46px}
.new-dialog input[type=number]{border:1px solid #343a35;background:#232723;color:#fff;border-radius:12px;font-size:20px;padding:10px}.new-dialog input[type=range],:is(body[data-surface],.embedded-metro) input[type=range]{accent-color:#32c85b}.new-dialog input[type=checkbox]{accent-color:#32c85b;width:19px;height:19px;flex-shrink:0}.new-dialog label.check{display:flex;align-items:center;gap:10px;padding:12px 0;font-size:13px;color:#e1e5e1}
.new-dialog details,:is(body[data-surface],.embedded-metro) details{padding:0;border:0;margin:12px 0}.new-dialog summary,:is(body[data-surface],.embedded-metro) summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid #2a302a;color:#b6bdb7;font:500 12px/1.4 Manrope,Arial,sans-serif}.new-dialog summary::-webkit-details-marker,:is(body[data-surface],.embedded-metro) summary::-webkit-details-marker{display:none}.new-dialog summary:after,:is(body[data-surface],.embedded-metro) summary:after{content:'+';font-size:19px;margin-left:12px;color:#707a72}.new-dialog details[open]>summary:after,:is(body[data-surface],.embedded-metro) details[open]>summary:after{content:'−'}.new-dialog details[open]>summary{margin-bottom:12px}
.new-dialog .segment-control{display:flex;gap:5px;margin:8px 0 16px}.new-dialog .segment-control button{flex:1;min-width:0;padding:9px 4px;font-size:13px}.new-dialog .training-pickers{grid-template-columns:1fr;margin-top:12px;gap:4px}.new-dialog .inline-help{display:none}.new-dialog .rare-options{border-top:1px solid #2c302d;padding-top:16px;margin-top:8px;gap:6px}.new-dialog .anchor-beats{margin:8px 0}.new-dialog .anchor-beats button{flex:1}.new-dialog .setup-tempo{display:flex;justify-content:space-between;padding-top:15px;border-top:1px solid #2c302d;color:#c6cdc7}.new-dialog .switch-editor{border:0;border-radius:0;padding:0;margin:0}.new-dialog .switch-sequence button{background:#173322;color:#6dd88a;border:0}.new-dialog .switch-palette button small{font-size:10px}.new-dialog .mode-card{border:1px solid #333a34;background:#1d241e;margin:12px 0 0;text-align:left;color:#dce5de}.new-dialog .calibration-link{margin:0 0 20px;background:#1b271e;color:#67dc89}
.new-dialog .settings-group{padding:0 0 18px;margin:0 0 18px;border-bottom:1px solid #292f2a}.new-dialog .settings-group h3{font:650 13px Manrope,Arial,sans-serif;margin:3px 0 14px;color:#f1f4f1}.new-dialog .sound-deck{border:0;margin:0;padding:0}.new-dialog .sound-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 12px}.new-dialog .sound-modes button{padding:16px 8px;min-height:64px}.new-dialog .sound-modes button strong{font:650 16px Manrope,Arial,sans-serif}.new-dialog .sound-modes button span{display:none}.new-dialog .accent-toggle{border:0;min-height:48px;padding:10px;background:#202520;font-size:12px}.new-dialog .accent-toggle b{display:none}.new-dialog .accent-toggle .switch-mark{background:#444b44}.new-dialog .accent-toggle[aria-pressed=true] .switch-mark{background:#32c85b}.new-dialog .accent-toggle .switch-mark:after{background:#fff}.new-dialog .sound-extra:has(#volume)>summary{display:none}.new-dialog .sound-extra:has(#volume){margin:16px 0 0}.new-dialog .output-hint{font-size:11px;margin:8px 0 0}.new-dialog .settings-advanced>.technical-tools{margin:8px 0}.new-dialog .settings-advanced label{margin-top:16px}.new-dialog .settings-advanced p{font-size:11px}.new-dialog .settings-advanced .stats{display:grid;grid-template-columns:1fr 1fr}.new-dialog .settings-advanced .stats strong{font-size:24px}
/* Calibration remains the original three-stage process, with a compact status rail. */
.new-dialog .listen-picker{margin:0 0 20px}.new-dialog .listen-picker .help{font-size:12px;margin:10px 0}.new-dialog .calibration-steps{display:flex;gap:5px;margin:20px 0}.new-dialog .calibration-steps span{flex:1;border-top:3px solid #333a34;padding-top:9px;font-size:11px;color:#717b73}.new-dialog .calibration-steps .current{border-color:#32c85b;color:#6ee88f}.new-dialog .calibration-steps .complete{border-color:#25703b;color:#a4b5a8}.new-dialog #calibrationTitle{font:700 23px/1.2 Manrope,Arial,sans-serif;letter-spacing:-.4px;margin:12px 0}.new-dialog #calibrationText{font-size:14px;line-height:1.5}.new-dialog #calibrationFeedback{color:#68dc89;background:#1b2920;border-radius:12px;padding:12px}.new-dialog .calibration-panel .transport{gap:8px}.new-dialog #trainingGate{font-size:11px}.new-dialog #calibrationDone{width:100%;margin:12px 0}.new-dialog #beginTraining:disabled{display:none}.new-dialog #calibrationCancel{margin-top:8px}
/* Embedded screens receive the same controls, typography and green palette. */
:is(body[data-surface],.embedded-metro) main,:is(body[data-surface],.embedded-metro).compact-metro main.metro-main{max-width:600px;padding:0 20px 20px!important}:is(body[data-surface],.embedded-metro) .panel{background:none;border:0;padding:0!important;border-radius:0}:is(body[data-surface],.embedded-metro) .topline{display:none}:is(body[data-surface],.embedded-metro) h2{font:700 23px Manrope,Arial,sans-serif}:is(body[data-surface],.embedded-metro) p{color:var(--muted)}:is(body[data-surface],.embedded-metro) .rhythm-controls{border:0;margin:8px 0 14px;gap:12px;padding:0}:is(body[data-surface],.embedded-metro) .rhythm-row{grid-template-columns:1fr;gap:5px}:is(body[data-surface],.embedded-metro) .rhythm-row>span{font-size:11px;color:#a0a9a1}:is(body[data-surface],.embedded-metro) .choice-strip{gap:5px}:is(body[data-surface],.embedded-metro) .choice-strip button{border-radius:11px;min-height:38px;background:#242724;color:#aeb6b0;border:1px solid transparent}:is(body[data-surface],.embedded-metro) .choice-strip button[aria-pressed=true]{background:#193c24;color:#64e187;border-color:#338c49}:is(body[data-surface],.embedded-metro) .tempo-dial{background:radial-gradient(circle,#171e18 0 56%,#131714 57% 66%,transparent 67%);box-shadow:none}:is(body[data-surface],.embedded-metro) .dial-track{stroke:#303a32}:is(body[data-surface],.embedded-metro) .dial-arc{stroke:#32c85b}:is(body[data-surface],.embedded-metro) .dial-arm i{background:#f2f5f2;border:0;box-shadow:none;width:18px;height:18px}:is(body[data-surface],.embedded-metro) .dial-center span{color:#8e9990}:is(body[data-surface],.embedded-metro) .tempo-nudge{background:#202520;color:#d9e2db;border:0;border-radius:14px}:is(body[data-surface],.embedded-metro) .tempo-nudge.held{background:#32c85b;color:#08260e;box-shadow:none}:is(body[data-surface],.embedded-metro) #metroTap{background:#202520;color:#a9b5ad;border-radius:12px}:is(body[data-surface],.embedded-metro) .metro-beats button{border-radius:14px;background:#202520;border:1px solid transparent;color:#8e9a92;box-shadow:none}:is(body[data-surface],.embedded-metro) .metro-beats button.accent{border-color:#748a79;color:#ebf0ec}:is(body[data-surface],.embedded-metro) .metro-beats button.active{background:#32c85b;color:#08260e;border-color:#32c85b;box-shadow:none}:is(body[data-surface],.embedded-metro) .metro-parts i.on{background:#32c85b}:is(body[data-surface],.embedded-metro) #metroStart{background:#eeeef3;color:#101510;border-radius:15px}
:is(body[data-surface=stats],#statsDialog) .progress-dashboard>h2{display:none}:is(body[data-surface=stats],#statsDialog) .practice-totals{margin:8px 0 16px;gap:8px}:is(body[data-surface=stats],#statsDialog) .practice-totals>div,:is(body[data-surface=stats],#statsDialog) .progress-metrics>div{background:#1e251f;border:0;border-radius:16px;padding:18px 5px}:is(body[data-surface=stats],#statsDialog) .practice-totals strong{font-size:28px;color:#f0f5f1}:is(body[data-surface=stats],#statsDialog) .practice-totals span{font-size:10px;color:#91a094}:is(body[data-surface=stats],#statsDialog) .progress-metrics strong{color:#5ed67e;font-size:25px}:is(body[data-surface=stats],#statsDialog) .progress-dashboard h3{font-weight:600;font-size:13px;margin:26px 0 14px}:is(body[data-surface=stats],#statsDialog) .tempo-bar-track{background:#253428;height:10px}:is(body[data-surface=stats],#statsDialog) .tempo-bar-track i{background:#32c85b}:is(body[data-surface=stats],#statsDialog) .activity-day{border-radius:8px}:is(body[data-surface=stats],#statsDialog) .activity-legend i{background:#32c85b}:is(body[data-surface=stats],#statsDialog) .comparison-caption{font-size:11px}:is(body[data-surface=stats],#statsDialog) .progress-chart{background:#161e18;border-radius:16px;padding:8px}#statsDialog .records{padding:18px 20px;border-top:1px solid #303730;margin:0}#statsDialog .records .record-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}#statsDialog .records .record-grid>div{background:#1e251f;border-radius:14px;padding:14px}#statsDialog .records span{font-size:10px;color:#8f9c92}#statsDialog .records strong{font:600 22px Manrope,Arial,sans-serif;color:#e7efe9}.new-dialog .lesson-progress{background:#1e251f;border:0;border-radius:14px;padding:14px}.new-dialog .lesson-track{background:#2b3a2e}.new-dialog .lesson-track i{background:#32c85b}
@media(max-height:740px){:is(body[data-surface],.embedded-metro) .rhythm-controls{gap:7px;margin-bottom:8px}:is(body[data-surface],.embedded-metro) .rhythm-row{grid-template-columns:46px 1fr;gap:5px}:is(body[data-surface],.embedded-metro) .choice-strip button{min-height:34px}}

:is(body[data-surface=stats],#statsDialog) .progress-chart polyline{stroke:#32c85b}:is(body[data-surface=stats],#statsDialog) .progress-chart circle{fill:#32c85b}:is(body[data-surface=stats],#statsDialog) .activity-day{filter:hue-rotate(48deg)}.new-dialog .settings-group .sound-extra:empty{display:none}.new-dialog .settings-group .sound-extra:not(:has(label)){display:none}

/* v70: progress uses the same neutral graphite and sage palette as the instrument. */
:is(body[data-surface=stats],#statsDialog) .practice-totals>div,
:is(body[data-surface=stats],#statsDialog) .progress-metrics>div,
#statsDialog .records .record-grid>div,
:is(body[data-surface=stats],#statsDialog) .progress-chart{
 background:#202520;border:1px solid transparent;border-radius:15px
}
:is(body[data-surface=stats],#statsDialog) .practice-totals strong,
:is(body[data-surface=stats],#statsDialog) .progress-metrics strong,
:is(body[data-surface=stats],#statsDialog) .tempo-bar-row b{color:#eff4f0}
:is(body[data-surface=stats],#statsDialog) #progressChange,
:is(body[data-surface=stats],#statsDialog) .stats-explanation,
:is(body[data-surface=stats],#statsDialog) .comparison-caption{color:#8fa094}
:is(body[data-surface=stats],#statsDialog) .tempo-bar-track{background:#354239}
:is(body[data-surface=stats],#statsDialog) .tempo-bar-track i{background:#748a79}
:is(body[data-surface=stats],#statsDialog) .progress-chart polyline{stroke:#748a79}
:is(body[data-surface=stats],#statsDialog) .progress-chart circle{fill:#748a79}
:is(body[data-surface=stats],#statsDialog) .activity-day{filter:none}
:is(body[data-surface=stats],#statsDialog) .activity-legend i{background:#748a79}
#statsDialog :focus-visible{outline-color:#748a79}

/* navigation.css */
/* Navigation and touch targets for preview 3. */
.new-titlebar{display:grid;grid-template-columns:minmax(0,1.2fr) 1fr 1fr 40px;gap:5px}.new-titlebar button{min-height:40px;font-size:12px;padding:7px 5px;white-space:nowrap}.new-titlebar #chooseLesson{margin:0}.new-titlebar #openStats{font-size:12px;width:auto}.new-titlebar #openSettings{width:40px}.new-header .new-brand{font-size:11px;letter-spacing:2px}
#newShell{grid-template-rows:44px 40px minmax(0,1fr) 48px}#newShell.is-playing{grid-template-rows:44px 40px minmax(0,1fr)}
body.redesign #newStage .console{grid-template-rows:40px auto 18px minmax(50px,1fr) minmax(36px,.8fr) 66px 48px 44px}#newShell.dense #newStage .console{grid-template-rows:36px auto 16px minmax(80px,2fr) minmax(25px,.5fr) 60px 48px 44px}
body.redesign #newStage .console>#tempoRange{height:48px;min-height:48px;padding:0 5px;box-sizing:border-box;touch-action:pan-y;cursor:pointer;-webkit-appearance:none;appearance:none;background:transparent}#tempoRange::-webkit-slider-runnable-track{height:6px;border-radius:8px;background:#354239}#tempoRange::-webkit-slider-thumb{-webkit-appearance:none;width:30px;height:30px;margin-top:-12px;border-radius:50%;background:#f5f5f7;border:0;box-shadow:0 0 0 7px #ffffff09}#tempoRange::-moz-range-track{height:6px;border-radius:8px;background:#354239}#tempoRange::-moz-range-thumb{width:30px;height:30px;border:0;border-radius:50%;background:#f5f5f7}
#lessonDialog .lesson-picker>.lesson-choices{display:grid;grid-template-columns:1fr;gap:8px}#lessonDialog .lesson-picker>.lesson-choices button{text-align:left;padding:15px;font-size:14px}#lessonDialog .lesson-map{font-size:12px;margin:0 0 16px}#lessonDialog .dialog-content>.primary{width:100%;margin:15px 0 0}#lessonChangeHint{color:#dec082}#finishToChoose{width:100%;margin:8px 0 16px}
#statsDialog,#metroDialog{height:auto;max-height:92dvh}#statsDialog .dialog-content,#metroDialog .dialog-content{padding:0 20px 22px}#statsDialog #progressDashboard{display:block;margin:0}#statsDialog #progressDashboard>h2{display:none}#statsDialog .records{padding:18px 0}#statsDialog .progress-chart{min-height:80px;font-size:13px}#statsDialog .progress-chart svg{width:100%}#statsDialog .practice-totals{margin:8px 0 16px}
.embedded-metro .metro-panel{border:0;padding:0;background:none}.embedded-metro .topline{display:none}.embedded-metro .dial-row{display:flex;align-items:center;justify-content:center;gap:12px}.embedded-metro .tempo-wheel{width:180px;margin:8px 0;flex-shrink:0}.embedded-metro .tempo-nudge{width:48px;height:52px;font-size:26px}.embedded-metro .metro-panel input#metroBpm{font-size:48px;height:62px}.embedded-metro .dial-help{display:none}.embedded-metro .metro-quick{display:flex;margin:5px 0}.embedded-metro #metroTap{width:100%;min-height:44px}.embedded-metro .choice-strip{overflow-x:auto;display:flex}.embedded-metro .meter-choices button{min-width:42px}.embedded-metro .metro-beats{display:grid;grid-template-columns:repeat(var(--beats,4),minmax(0,1fr));gap:5px;margin:10px 0}.embedded-metro .metro-beats button{height:52px;min-width:0;padding:0;font-size:24px;position:relative}.embedded-metro .metro-beats button.muted{opacity:.4;border-style:dashed}.embedded-metro .metro-beats button.accent:after{content:'•';position:absolute;font-size:9px;bottom:2px;left:0;right:0}.embedded-metro .metro-parts{display:flex;justify-content:center;gap:8px}.embedded-metro .metro-parts i{width:8px;height:8px;background:#354239;border-radius:50%}.embedded-metro .metro-parts i.active{background:#32c85b}.embedded-metro #metroStart{width:100%;min-height:48px}.embedded-metro .beat-tip{font-size:10px;text-align:center}.embedded-metro .rhythm-row{display:grid;grid-template-columns:45px 1fr}.embedded-metro .choice-strip small{display:none}
@media(max-height:620px){body.redesign #newStage .console{grid-template-rows:30px auto 15px minmax(45px,1fr) 25px 50px 44px 44px;gap:3px}#newShell.dense #newStage .console{grid-template-rows:30px auto 14px minmax(60px,2fr) 20px 48px 44px 44px}body.redesign #newStage .console>#tempoRange{height:44px;min-height:44px}}
/* Restore the original task, feedback and progression alongside the new artwork. */
body.redesign #newStage .console{grid-template-rows:36px auto 38px 16px minmax(50px,1.5fr) 30px 38px minmax(24px,.65fr) 58px 48px 44px;gap:4px}
#newShell.dense #newStage .console{grid-template-rows:30px auto 34px 14px minmax(72px,2fr) 28px 36px minmax(18px,.3fr) 50px 44px 44px}
body.redesign #newStage .console>#taskBrief{display:flex!important;grid-area:3/1;flex-direction:column;justify-content:center;gap:3px;min-width:0}#handsBrief{font:600 12px/1.2 Manrope,Arial,sans-serif;color:#e9f2eb}#clickBrief{font:400 10px/1.2 Manrope,Arial,sans-serif;color:#8fa694}
body.redesign #newStage .console>#blockStatus{grid-area:4/1}
body.redesign #newStage .console>#hitStrip{grid-area:5/1}
body.redesign #newStage .console>#playHint{display:block!important;grid-area:6/1;margin:0;font:500 11px/1.2 Manrope,Arial,sans-serif;color:#b9c8be;overflow:hidden}
body.redesign #newStage .console>#lessonProgress{display:block!important;grid-area:7/1;margin:0;padding:0;border:0;background:none;min-height:0;overflow:hidden}
body.redesign #newStage #lessonProgress #stageRoad,body.redesign #newStage #lessonProgress #lessonRule{display:none}body.redesign #newStage #lessonProgress .lesson-numbers{font-size:9px;line-height:13px;margin:0;gap:6px}body.redesign #newStage #lessonProgress .lesson-track{margin:4px 0;height:4px;background:#2c392f}body.redesign #newStage #lessonProgress .lesson-track i{background:#32c85b}
body.redesign #newStage .console>#character{grid-area:8/1}body.redesign #newStage .console>.tempo{grid-area:9/1}body.redesign #newStage .console>#tempoRange{grid-area:10/1}body.redesign #newStage .console>.transport{grid-area:11/1}#characterLine{display:none}#characterImg{max-height:100%}
body.redesign #newStage #beats i{height:100%;transition:none;animation:none}
body.redesign #newStage .console.silent>#beats,body.redesign #newStage .console.silent>#hitStrip,body.redesign #newStage .console.silent>#playHint,body.redesign #newStage .console.silent>#lessonProgress{visibility:hidden}
@media(max-height:650px){body.redesign #newStage .console,#newShell.dense #newStage .console{grid-template-rows:28px auto 30px 14px minmax(50px,1fr) 26px 28px 20px 44px 44px 44px;gap:2px}body.redesign #newStage .tempo input#bpm{font-size:36px;height:38px}#handsBrief{font-size:11px}#clickBrief{font-size:9px}}

/* unified.css */
/* One instrument surface. Engine-owned controls are re-used, not duplicated. */
#newShell.metro-mode{grid-template-rows:44px 40px minmax(0,1fr)}#newShell.metro-mode #idleActions{display:none}body.redesign #newStage .console[hidden],#metroStage[hidden]{display:none!important}#metroStage{height:100%;min-height:0}#metroStage .embedded-metro{height:100%}
#metroStage .metro-panel{display:grid;height:100%;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(54px,.7fr) 20px 22px minmax(70px,1.3fr) 66px 48px 44px 44px;gap:6px;margin:0;padding:0!important;border:0;background:none}
#metroStage .metro-panel>*{display:none!important}#metroStage .metro-panel>#metroBeats{display:grid!important;grid-area:1/1;grid-template-columns:repeat(var(--beats,4),minmax(0,1fr));min-height:0;margin:0;gap:5px;align-items:stretch}#metroStage #metroBeats button{height:100%;min-height:44px;border-radius:15px;font-size:clamp(18px,6vw,32px)}#metroStage #metroBeats.dense{gap:3px}#metroStage #metroBeats.dense button{border-radius:10px;font-size:clamp(12px,3.8vw,20px)}#metroStage #metroBeats button.group-start{box-shadow:inset 2px 0 0 #586b5d}#metroStage .metro-panel>#metroParts{display:flex!important;grid-area:2/1;min-height:0;margin:0;align-items:center}#metroStage .metro-panel>.beat-tip{display:block!important;grid-area:3/1;margin:0;font-size:10px;text-align:center;color:#8fa694}
#metroStage .metro-panel>#character{display:flex!important;grid-area:4/1;min-height:0;flex-direction:column;align-items:center;justify-content:end;overflow:hidden}#metroStage #characterImg{height:100%;width:auto;max-height:100%;object-fit:contain}
#metroStage .metro-panel>.dial-row{display:flex!important;grid-area:5/1;margin:0;justify-content:space-between;min-height:0;gap:10px}#metroStage .tempo-wheel{width:110px;height:66px;margin:0;aspect-ratio:auto}#metroStage #metroDial{display:none}#metroStage .dial-center{position:static;height:100%;display:flex;justify-content:center;align-items:center}#metroStage .dial-center input#metroBpm{width:110px;height:49px;font:700 48px/1 Manrope,Arial,sans-serif;color:#f5f5f7;background:none;margin:0;padding:0;border:0;pointer-events:auto}#metroStage .dial-center span{font-size:10px;margin:0;color:#848884}#metroStage .tempo-nudge{width:72px;min-height:44px;height:44px;border:1px solid #272a27;border-radius:14px;background:transparent;font-size:22px;color:#aaa}
#metroStage .metro-panel>#metroRange{display:block!important;grid-area:6/1}#metroRange{appearance:none;-webkit-appearance:none;background:transparent;width:100%;height:48px;margin:0;padding:0 5px;touch-action:pan-y}#metroRange::-webkit-slider-runnable-track{height:6px;background:#354239;border-radius:8px}#metroRange::-webkit-slider-thumb{-webkit-appearance:none;height:30px;width:30px;border-radius:50%;background:#f5f5f7;margin-top:-12px;border:0}#metroRange::-moz-range-track{height:6px;background:#354239;border-radius:8px}#metroRange::-moz-range-thumb{width:30px;height:30px;border:0;border-radius:50%;background:#f5f5f7}
#metroStage .metro-panel>.metro-quick{display:flex!important;grid-area:7/1;margin:0}#metroStage #metroTap{min-height:44px;height:44px;padding:8px;width:100%;border-radius:13px;font-size:12px;margin:0;max-width:none}
#metroStage .metro-panel>.unified-transport{display:flex!important;grid-area:8/1;gap:8px;min-height:0}#metroStage .unified-transport button{flex:1;background:#eeeef3;color:#111;border:0;border-radius:13px;min-height:44px;height:44px;padding:8px;font-size:12px;margin:0}
#metroSettings .rhythm-controls{display:grid;gap:16px;margin:0;border:0}#metroSettings .rhythm-row>span{display:block;font-size:12px;color:#a8b0aa;margin-bottom:7px}#metroSettings .choice-strip{display:flex;gap:5px;flex-wrap:wrap}#metroSettings .choice-strip button{min-width:44px;flex:1}#metroSettings .choice-strip small{display:none}#metroSettings .metro-options{margin:14px 0 0}#metroSettings .metro-options>summary{font-size:13px}#metroSettings p{font-size:12px}
/* Complete musical groups stay together. Grid rows grow before the character does. */
body.redesign #newStage #hitStrip span{display:flex;align-items:center;justify-content:center;text-align:center;border-radius:9px;font-size:clamp(9px,2.7vw,13px);white-space:nowrap;overflow-wrap:normal;padding:2px;min-height:0}
body.redesign #newStage #hitStrip span.group-start{border-left:2px solid #688c71}body.redesign #newStage #hitStrip{gap:4px}
#newShell[data-grid='2'] #newStage .console{grid-template-rows:32px auto 34px 14px minmax(100px,2fr) 26px 32px minmax(20px,.5fr) 54px 48px 44px}
#newShell[data-grid='3'] #newStage .console,#newShell[data-grid='4'] #newStage .console{grid-template-rows:30px auto 34px 14px minmax(110px,2fr) 24px 30px minmax(18px,.4fr) 50px 48px 44px}
#newShell[data-grid='5'] #newStage .console,#newShell[data-grid='6'] #newStage .console,#newShell[data-grid='7'] #newStage .console,#newShell[data-grid='8'] #newStage .console{grid-template-rows:28px auto 30px 14px minmax(144px,3fr) 24px 28px minmax(0px,.15fr) 48px 44px 44px;gap:3px}
#newShell.pattern-mode #newStage .switch-board-label{display:block;font-size:9px;letter-spacing:1px;color:inherit}#newShell.pattern-mode #newStage .switch-board>strong{font-size:clamp(22px,6vw,30px)}#newShell.pattern-mode #newStage .switch-board-bottom b{font-size:28px}#newShell.pattern-mode #newStage .switch-board.prepare{border-color:#68de8a}#newShell.pattern-mode #newStage .switch-board.change{background:#32c85b;color:#071a0b}
#newShell.rudiment-mode #newStage .switch-board-pattern{display:block;font:750 clamp(17px,5vw,26px)/1.25 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.11em;color:#edf2ee;word-spacing:.2em;margin:7px 0 5px}
#nextRudiment[hidden]{display:none!important}body.redesign #newShell.rudiment-mode.session-active #newStage .console>.transport{gap:6px}body.redesign #newShell.rudiment-mode.session-active #newStage .console>.transport button{min-width:0;padding:7px 5px;font-size:11px}
#reportProblem[hidden]{display:none!important}body.redesign #newShell.switch-mode.session-active #newStage .console>.transport{gap:6px}body.redesign #newShell.switch-mode.session-active #newStage .console>.transport button{min-width:0;padding:7px 4px;font-size:10px}
/* Pauses/errors show the existing engine explanation and recovery actions. */
body.redesign #newStage .console>#statePanel{display:none!important}body.redesign #newShell.paused-state #newStage .console>#statePanel{display:block!important;grid-area:5/1/9/2;z-index:4;align-self:stretch;overflow:auto;background:#171e19;border:1px solid #3b5041;border-radius:14px;padding:14px}body.redesign #statePanel .coach{display:block!important;text-align:left;min-height:0}body.redesign #statePanel .coach>span{font:650 16px Manrope,Arial,sans-serif}body.redesign #statePanel .coach p{font-size:13px;line-height:1.5}body.redesign #statePanel .pause-actions{gap:6px;flex-wrap:wrap}body.redesign #statePanel .pause-actions button{font-size:12px;border-radius:12px;min-height:44px;padding:10px;flex:1}body.redesign #statePanel [hidden]{display:none!important}body.redesign #newStage .console>#lessonProgress[hidden]{display:none!important}
@media(max-height:640px){#newShell{padding:4px 12px 8px;gap:4px;grid-template-rows:36px 38px minmax(0,1fr) 44px}#newShell.is-playing,#newShell.metro-mode{grid-template-rows:36px 38px minmax(0,1fr)}#newShell .new-header{height:36px}#metroStage .metro-panel{grid-template-rows:minmax(44px,.7fr) 12px 18px minmax(24px,.7fr) 52px 44px 44px 44px;gap:4px}#metroStage .tempo-wheel{height:52px}#metroStage .dial-center input#metroBpm{font-size:38px;height:39px}body.redesign #newShell #newStage .console{grid-template-rows:24px auto 28px 12px minmax(64px,1fr) 22px 24px 16px 42px 44px 44px;gap:2px}body.redesign #newShell.dense #newStage .console{grid-template-rows:24px auto 28px 12px minmax(100px,2fr) 22px 24px 0px 42px 44px 44px}body.redesign #newStage #hitStrip span{font-size:9px;border-radius:5px}#newShell.pattern-mode #newStage .switch-board>strong{font-size:21px}#newShell.pattern-mode #newStage .switch-board-bottom{min-height:22px;padding:0;margin:0}#newShell.pattern-mode #newStage .switch-round-result{display:none}}
#metroStage .metro-panel>.beat-tip{display:none!important}#metroStage .metro-panel>#metroFeedback{display:block!important;grid-area:3/1;margin:0;font-size:10px;line-height:1.2;text-align:center;color:#a2b7a9;overflow:hidden}

/* One mode chooser, one sound/settings entry, one progress entry. */
#newShell .new-titlebar{grid-template-columns:minmax(0,1fr) auto 44px;gap:8px}
#configureMode{display:none!important}
#newShell .new-titlebar #chooseLesson{text-align:left;padding-left:12px}
#newShell .new-titlebar #openStats{padding:8px 12px}
#newShell .new-titlebar #openSettings{width:44px}
#lessonDialog .lesson-picker>.lesson-choices button{position:relative;padding:12px 38px 12px 14px;min-height:64px;border:1px solid transparent;border-radius:16px}
#lessonDialog .lesson-picker>.lesson-choices button strong{display:block;font-size:15px;line-height:1.35}
#lessonDialog .lesson-picker>.lesson-choices button small{display:block;font-size:12px;font-weight:400;line-height:1.4;color:#a8b0aa;margin-top:4px}
#lessonDialog .lesson-picker>.lesson-choices button[aria-pressed=true]{border-color:#32c85b;background:#193c24;color:#64e187}
#lessonDialog .lesson-picker>.lesson-choices button[aria-pressed=true]::after{content:'✓';position:absolute;right:14px;top:14px;font-size:18px}
#lessonDialog.metro-selection #sessionSetup>:not(.lesson-picker),#lessonDialog.metro-selection #lessonStatus{display:none!important}
#skillProgress{color:#a8b0aa!important;border-left:3px solid #32c85b!important;font-size:12px!important;padding-left:12px}
#lessonDialog #lessonStatus{font-size:12px;line-height:1.5;color:#a8b0aa}
.new-dialog input:focus-visible,.new-dialog button:focus-visible{outline:2px solid #32c85b;outline-offset:3px}

/* Discoverable modes on the same instrument screen. */
body.redesign #newShell{grid-template-rows:44px auto minmax(0,1fr) 48px}
body.redesign #newShell.is-playing,body.redesign #newShell.metro-mode{grid-template-rows:44px auto minmax(0,1fr)}
#newShell .new-titlebar{grid-template-columns:minmax(0,1fr) auto 40px;gap:6px;align-items:center}
.surface-tabs{display:flex;min-width:0;border-radius:12px;padding:3px;background:#1c201d;gap:2px}
#newShell .surface-tabs button{flex:1;min-width:0;padding:8px 5px;font-size:12px;min-height:38px;background:transparent;color:#929c95;border-radius:9px}
#newShell .surface-tabs button[aria-pressed=true]{background:#35443a;color:#fff;font-weight:750}

/* v79: compact professional accelerando / ritardando settings. */
#metroSettings .tempo-ramp-row{margin-top:2px;padding-top:14px;border-top:1px solid #292f2a}
#metroSettings #metroRampChoices button{font-size:12px}
#metroSettings .tempo-ramp-options{margin:8px 0 2px;padding:12px;border:1px solid #303832;border-radius:12px;background:#191d1a}
#metroSettings .tempo-ramp-options[hidden],
.embedded-metro .tempo-ramp-state[hidden]{display:none!important}
#metroSettings .tempo-ramp-sliders{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#metroSettings .tempo-ramp-sliders label{margin:0;color:#aeb6b0}
#metroSettings .tempo-ramp-sliders label>span{display:flex;justify-content:space-between;gap:8px}
#metroSettings .tempo-ramp-sliders output{color:#eef2ef;font-weight:700}
#metroSettings .tempo-ramp-sliders input{width:100%;margin:8px 0 0}
#metroSettings .tempo-ramp-options p{margin:9px 0 0;color:#929c95}
.embedded-metro .tempo-ramp-state{margin:2px 0 5px;text-align:center;font-size:11px;color:#a8b6ac}
@media(max-width:480px){#metroSettings .tempo-ramp-sliders{grid-template-columns:1fr}}
#newShell .new-titlebar #openStats{font-size:11px;padding:8px 6px;min-height:44px}
#newShell .new-titlebar #openSettings{width:40px;min-height:44px}
#exerciseTabs{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:2px}
#newShell #exerciseTabs button{min-height:44px;font-size:12px;line-height:1.2;border:1px solid #303832;background:#1a201c;color:#a6afa9;border-radius:12px}
#newShell #exerciseTabs button[aria-pressed=true]{background:#193c24;border-color:#32c85b;color:#79e69a}
#newShell .new-titlebar #chooseLesson{grid-column:1/-1;width:100%;text-align:left;background:transparent;color:#a5afa8;padding:5px 8px;min-height:32px;font-size:12px;white-space:normal}
#newShell.metro-mode #exerciseTabs,#newShell.metro-mode #chooseLesson{display:none}
#lessonDialog .lesson-picker{display:none!important}
#trainingInvite{width:100%;max-width:340px;padding:10px 12px;box-sizing:border-box;border:1px solid #2d4936;border-radius:14px;background:#17231b;margin-top:5px;flex-shrink:0;text-align:left}
#trainingInvite strong{font-size:13px;color:#edf3ee}#trainingInvite p{font-size:11px;line-height:1.35;color:#a4b2a9;margin:4px 0 8px}
#trainingInvite button{min-height:40px;width:100%;padding:7px;border-radius:10px;background:#32c85b;color:#092b13;border:0;font-size:12px;font-weight:700}
#trainingInvite[hidden]{display:none!important}
#metroStage #character:has(#trainingInvite:not([hidden])) #characterImg{min-height:0;flex:1;height:0;max-height:100%;width:auto}
#metroStage #character:has(#trainingInvite:not([hidden])) #characterLine{display:none}
body.redesign #newShell:not(.session-active) #newStage .console>.transport{visibility:hidden}
#newShell .new-titlebar button:disabled{opacity:.45}
@media(max-height:700px){body.redesign #newShell,body.redesign #newShell.is-playing,body.redesign #newShell.metro-mode{grid-template-rows:36px auto minmax(0,1fr)}body.redesign #newShell:not(.is-playing):not(.metro-mode){grid-template-rows:36px auto minmax(0,1fr) 44px}#newShell .new-titlebar{gap:3px}#newShell #exerciseTabs button{min-height:40px;font-size:11px}#newShell .new-titlebar #chooseLesson{min-height:28px;font-size:11px}#trainingInvite{padding:7px 10px}#trainingInvite p{margin:3px 0 5px}}

/* Reserve space for visible exercise selection; hit rows take priority over the mascot. */
body.redesign #newShell #newStage .console{grid-template-rows:28px auto 28px 12px minmax(0,2fr) 22px 0px minmax(0,.4fr) 48px 44px 44px;gap:4px}
body.redesign #newShell #newStage .console>#playHint{display:none!important}
body.redesign #newShell #newStage .console>#taskBrief{overflow:hidden}
@media(max-height:700px){body.redesign #newShell #newStage .console{grid-template-rows:26px auto 24px 12px minmax(0,2fr) 20px 0px minmax(0,.2fr) 44px 44px 44px;gap:3px}body.redesign #newShell.dense #newStage .console{grid-template-rows:24px auto 22px 12px minmax(0,2fr) 20px 0px 0px 42px 44px 44px}}

/* Keep the invitation outside the character; no scoring field before training. */
#newShell .new-titlebar #trainingInvite{grid-column:1/-1;max-width:none;width:100%;padding:0;margin:0;border:0;background:none}
#newShell #trainingInvite button{min-height:36px;width:100%;margin:0;padding:6px 10px;background:transparent;color:#84ca96;font-size:11px;font-weight:500;text-align:left}
.surface-error{grid-column:1/-1;font-size:12px;color:#f4bba8;margin:0}
.surface-error[hidden]{display:none}
body.redesign #newShell:not(.session-active) #newStage .console>#hitStrip,body.redesign #newShell:not(.session-active) #newStage .console>#blockStatus,body.redesign #newShell:not(.session-active) #newStage .console>#nextCue,body.redesign #newShell:not(.session-active) #newStage .console>#lessonProgress{display:none!important}
body.redesign #newShell:not(.session-active) #newStage .console>#character{grid-area:4/1/9/2;justify-content:center}
body.redesign #newShell:not(.session-active) #newStage #characterImg{height:100%;max-height:calc(100% - 20px);max-width:85%;width:auto;min-height:0}
#metroStage .metro-panel>#character{justify-content:center}
#metroStage #characterImg{min-height:0;height:calc(100% - 18px);max-height:calc(100% - 18px);max-width:85%;width:auto;flex:0 1 auto}

/* v66: one hierarchy for setup, accounts and instrument controls. */
#newShell .new-header{height:100%;min-height:0;padding:0;border:0}
.new-header .header-actions{display:flex;align-items:center;gap:10px;min-width:0}
.new-header #accountButton{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;min-height:38px;padding:0;border:1px solid #303932;border-radius:50%;background:#181c19;overflow:hidden}
.new-header #accountButton img,.new-header #accountButton .account-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;object-fit:cover;image-rendering:auto;font-size:14px;line-height:1;letter-spacing:0;color:#fff;background:#8f36bd}
.new-header #accountButton.signed-in{border-color:#3c784c;background:#17231a}
.new-header #accountButton:hover{border-color:#64d782;background:#1b261e}
.new-header #accountButton:focus-visible{outline:2px solid #64d782;outline-offset:3px}

#newShell .new-titlebar #chooseLesson{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 18px;grid-template-rows:auto auto;column-gap:8px;align-items:center;min-height:58px;padding:9px 12px;border:1px solid #355840;border-radius:14px;background:#17231a;color:#eff4f0}
#newShell.metro-mode .new-titlebar #chooseLesson{display:none}
#newShell #chooseLesson .setup-kicker{grid-column:1/2;font-size:10px;line-height:1.2;letter-spacing:.7px;text-transform:uppercase;color:#64d782;font-weight:700}
#newShell #chooseLesson strong{grid-column:1/2;display:block;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:1.35;color:#e5ebe6;font-weight:620;white-space:nowrap}
#newShell #chooseLesson i{grid-column:2;grid-row:1/3;align-self:center;justify-self:end;font-style:normal;font-size:23px;color:#73d98c}

#newShell .surface-tabs button,#newShell .new-titlebar #openStats,#newShell .new-titlebar #openSettings,#newShell #exerciseTabs button{min-height:44px}
#idleActions{min-height:52px}
#idleActions button,#metroStage .unified-transport button{min-height:52px;height:52px}

/* The same mascot scale is used before either instrument starts. */
body.redesign #newShell:not(.session-active) #newStage #characterImg,#metroStage #characterImg{height:clamp(180px,31vh,280px);max-height:100%;max-width:78%;width:auto;flex:0 1 auto}

.new-dialog .account-panel{display:grid;gap:12px}
.new-dialog .account-panel h3{font:700 21px/1.2 Manrope,Arial,sans-serif;margin:4px 0 0;color:#f3f6f3}
.new-dialog .account-panel p{margin:0}
.new-dialog .account-panel small{display:block;margin-top:8px;padding-top:14px;border-top:1px solid #293029}
.new-dialog .account-panel .account-sync-status{padding:11px 12px;border-radius:12px;background:#1d251f;color:#9fb5a5}
.new-dialog .account-action{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;border-radius:13px;text-decoration:none;font-size:13px;font-weight:750}
.new-dialog .google-action{background:#f5f7f5;color:#202420}
.new-dialog .google-action .google-mark{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:conic-gradient(from -45deg,#4285f4 0 25%,#34a853 0 50%,#fbbc05 0 75%,#ea4335 0);color:#fff;font-weight:800;font-size:13px}
.new-dialog .account-action.primary{background:#32c85b;color:#092b13}

.account-save-card{display:grid;gap:8px;margin-top:18px;padding:16px;border:1px solid #366344;border-radius:15px;background:#17241b}
.account-save-card strong{font-size:16px;color:#edf5ef}
.account-save-card p{margin:0;color:#aab5ac;font-size:12px;line-height:1.45}
.account-save-card .account-action{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:13px;text-decoration:none;font-size:13px;font-weight:750}
.account-save-card .google-action{background:#f5f7f5;color:#202420}
.account-save-card .google-mark{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:conic-gradient(from -45deg,#4285f4 0 25%,#34a853 0 50%,#fbbc05 0 75%,#ea4335 0);color:#fff}

@media(max-width:420px){
 .new-header .new-brand{font-size:10px;letter-spacing:1.4px;gap:7px}.new-brand img{width:24px;height:30px}
 .new-header .header-actions{gap:8px}.new-header #accountButton{flex-basis:36px;width:36px;height:36px;min-height:36px}.new-header #accountButton img,.new-header #accountButton .account-avatar{width:28px;height:28px;font-size:13px}
 #newShell .new-titlebar #chooseLesson{min-height:56px}
 body.redesign #newShell:not(.session-active) #newStage #characterImg,#metroStage #characterImg{height:clamp(170px,29vh,250px)}
}

@media(max-height:700px){
 #newShell .new-titlebar #chooseLesson{min-height:48px;padding:6px 10px}
 #newShell #chooseLesson .setup-kicker{font-size:9px}
 #newShell #chooseLesson strong{font-size:11px}
 #idleActions{min-height:46px}#idleActions button,#metroStage .unified-transport button{min-height:46px;height:46px}
 body.redesign #newShell:not(.session-active) #newStage #characterImg,#metroStage #characterImg{height:clamp(130px,25vh,210px)}
}

/* v69: both surfaces keep the same two-row header, mascot scale and tempo geometry. */
#newShell #exerciseTabs{display:none}
#newShell .new-titlebar #chooseLesson{grid-template-rows:1fr;min-height:36px;height:36px;padding:5px 10px;border-radius:12px}
#newShell #chooseLesson .setup-kicker{display:none}
#newShell #chooseLesson strong{grid-row:1;font-size:11px}
#newShell #chooseLesson i{grid-row:1}
#newShell #trainingInvite button{height:36px;min-height:36px;border:1px solid #355840;border-radius:12px;background:#17231a;color:#84ca96}
body.redesign #newShell:not(.session-active) #newStage #characterImg,#metroStage #characterImg{height:clamp(130px,min(25dvh,calc(100dvh - 505px)),210px);max-height:100%;max-width:78%;width:auto;flex:0 1 auto}
@media(min-height:701px){
 body.redesign #newShell:not(.session-active) #newStage #characterImg,#metroStage #characterImg{height:clamp(150px,min(26dvh,calc(100dvh - 556px)),235px)}
 body.redesign #newShell:not(.session-active) #newStage .console{grid-template-rows:28px auto 28px 12px minmax(0,2fr) 22px 0 minmax(0,.4fr) 66px 48px 44px}
 #metroStage .metro-panel{grid-template-rows:minmax(54px,.7fr) 20px 22px minmax(70px,1.3fr) 66px 48px 44px 52px}
}

/* v70: the designer-built metronome is the visual source of truth. */
#newShell .new-titlebar #chooseLesson{font-weight:500}
#newShell #chooseLesson strong{color:#84ca96;font-weight:500}
#newShell #chooseLesson i{color:#84ca96}

body.redesign #newShell:not(.session-active) #newStage .console{
 grid-template-rows:minmax(44px,.7fr) 16px 18px minmax(24px,1.3fr) 52px 44px 44px;
 gap:4px
}
body.redesign #newShell:not(.session-active) #newStage .console>#beats{
 display:flex!important;grid-area:1/1;height:100%;gap:5px;margin:0
}
body.redesign #newShell:not(.session-active) #newStage #beats i{
 display:grid;place-items:center;flex:1;max-width:none;height:100%;min-height:44px;padding:0;
 border:1px solid transparent;border-radius:15px;background:#202520;color:#8e9a92;
 font:700 clamp(18px,6vw,32px)/1 Manrope,Arial,sans-serif;box-shadow:none;transform:none
}
body.redesign #newShell:not(.session-active) #newStage #beats i.downbeat{
 border-color:#748a79;color:#ebf0ec
}
body.redesign #newShell:not(.session-active) #newStage #beats i.active{
 border-color:#748a79;background:#202520;color:#ebf0ec;box-shadow:none;transform:none
}
body.redesign #newShell:not(.session-active) #newStage .console>#nextCue{
 display:flex!important;grid-area:2/1;align-items:center;justify-content:center;
 min-height:0;margin:0;font-size:0;color:transparent
}
body.redesign #newShell:not(.session-active) #newStage .console>#nextCue::after{
 content:'';width:8px;height:8px;border-radius:50%;background:#35443a
}
body.redesign #newShell:not(.session-active) #newStage .console>#taskBrief{
 display:flex!important;grid-area:3/1;align-items:center;justify-content:center;min-height:0;text-align:center
}
body.redesign #newShell:not(.session-active) #newStage #handsBrief{
 font:500 10px/1.2 Manrope,Arial,sans-serif;color:#a2b7a9
}
body.redesign #newShell:not(.session-active) #newStage #clickBrief{display:none}
body.redesign #newShell:not(.session-active) #newStage .console>#character{grid-area:4/1;justify-content:center}
body.redesign #newShell:not(.session-active) #newStage .console>.tempo{grid-area:5/1}
body.redesign #newShell:not(.session-active) #newStage .console>#tempoRange{grid-area:6/1}
body.redesign #newShell:not(.session-active) #newStage .console>.transport{grid-area:7/1}

#idleActions{gap:8px}
#idleActions #mainStart,#idleActions #openCalibration{
 flex:1;min-width:0;background:#eeeef3;color:#111;border:0;font-weight:700
}

@media(min-height:701px){
 body.redesign #newShell:not(.session-active) #newStage .console{
  grid-template-rows:minmax(54px,.7fr) 20px 22px minmax(70px,1.3fr) 66px 48px 44px;
  gap:6px
 }
}

/* v71: training restores its real per-hit field; metronome beat buttons stay in metronome. */
body.redesign #newShell:not(.session-active) #newStage .console{
 grid-template-rows:16px minmax(44px,.7fr) 18px minmax(24px,1.3fr) 52px 44px 44px;
 gap:4px
}
body.redesign #newShell:not(.session-active) #newStage .console>#beats,
body.redesign #newShell:not(.session-active) #newStage .console>#nextCue{display:none!important}
body.redesign #newShell:not(.session-active) #newStage .console>#blockStatus{
 display:flex!important;grid-area:1/1;align-items:center;margin:0;min-height:0;
 color:#8fa094;font:600 9px/1 Manrope,Arial,sans-serif;letter-spacing:1px
}
body.redesign #newShell:not(.session-active) #newStage .console>#hitStrip{
 display:grid!important;grid-area:2/1;min-height:0;margin:0;gap:4px
}
body.redesign #newShell:not(.session-active) #newStage #hitStrip span{
 display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;padding:2px;
 border:1px solid transparent;border-radius:10px;background:#202520;color:#8e9a92;
 font:600 10px/1 Manrope,Arial,sans-serif
}
body.redesign #newShell:not(.session-active) #newStage #hitStrip span.group-start{
 border-left-color:#526458
}
body.redesign #newShell[data-grid='1']:not(.session-active) #newStage #hitStrip span:nth-child(4n+1),
body.redesign #newShell[data-grid='2']:not(.session-active) #newStage #hitStrip span:nth-child(8n+1),
body.redesign #newShell[data-grid='3']:not(.session-active) #newStage #hitStrip span:nth-child(12n+1),
body.redesign #newShell[data-grid='4']:not(.session-active) #newStage #hitStrip span:nth-child(16n+1){
 border-left-color:#748a79
}

@media(min-height:701px){
 body.redesign #newShell:not(.session-active) #newStage .console{
  grid-template-rows:20px minmax(54px,.7fr) 22px minmax(70px,1.3fr) 66px 48px 44px;
  gap:6px
 }
}

/* v75: the click ladder stays out of setup; restore the separate duration exercise. */
#newShell:not(.metro-mode) #exerciseTabs{display:grid}

/* v76: the only setup ladder is the selected duration route. */
body.redesign #newShell.switch-mode:not(.session-active) #newStage .console{
 grid-template-rows:16px minmax(44px,.7fr) 50px minmax(24px,1.3fr) 52px 44px 44px
}
body.redesign #newShell.switch-mode:not(.session-active) #newStage .console>#taskBrief{display:none!important}
body.redesign #newShell.switch-mode:not(.session-active) #newStage .console>#durationLadder:not([hidden]){
 display:grid!important;grid-area:2/1;grid-auto-flow:column;grid-auto-columns:minmax(76px,1fr);gap:4px;
 min-width:0;min-height:0;margin:0;padding:0;overflow-x:auto;scrollbar-width:none
}
body.redesign #newShell.switch-mode:not(.session-active) #newStage .console>#hitStrip{display:none!important}
body.redesign #newShell.switch-mode #durationLadder::-webkit-scrollbar{display:none}
body.redesign #newShell.switch-mode #durationLadder>div{
 position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-rows:1fr 1fr;
 min-width:0;padding:5px 7px;border:1px solid #303a33;border-radius:10px;background:#1b201d;color:#89938c
}
body.redesign #newShell.switch-mode #durationLadder small{grid-row:1/3;align-self:center;font-size:9px;color:#5f6a62}
body.redesign #newShell.switch-mode #durationLadder b{align-self:end;font:700 14px/1 Manrope,Arial,sans-serif;color:#edf2ee}
body.redesign #newShell.switch-mode #durationLadder span{align-self:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 8px/1.2 Manrope,Arial,sans-serif}
body.redesign #newShell.switch-mode #durationLadder>div.selected{border-color:#748a79;background:#35443a;color:#dfe8e1}
body.redesign #newShell.switch-mode #durationLadder>div.selected small{color:#a9b8ad}
@media(min-height:701px){
 body.redesign #newShell.switch-mode:not(.session-active) #newStage .console{
  grid-template-rows:20px minmax(54px,.7fr) 56px minmax(70px,1.3fr) 66px 48px 44px
 }
}

/* v77: one neutral control language; green is reserved for live status signals. */
#newShell #exerciseTabs button[aria-pressed=true],
.new-dialog button[aria-pressed=true],
#metroSettings .choice-strip button[aria-pressed=true],
#lessonDialog .lesson-picker>.lesson-choices button[aria-pressed=true]{
 background:#35443a;color:#f5f5f7;border-color:#748a79
}
#lessonDialog .lesson-picker>.lesson-choices button[aria-pressed=true]::after{color:#f5f5f7}
.new-dialog button.primary,
.new-dialog .account-action.primary{
 background:#eeeef3;color:#111;border-color:transparent;font-weight:750
}
.new-dialog .switch-sequence button,
.new-dialog .calibration-link{
 background:#242724;color:#e5e8e5;border:1px solid #303832
}
#newShell .new-titlebar #chooseLesson{
 border-color:#303832;background:#171a18;color:#eff4f0
}
#newShell #chooseLesson .setup-kicker,
#newShell #chooseLesson i{color:#a6afa9}
#newShell #trainingInvite button{
 border-color:#303832;background:#171a18;color:#a6afa9
}
.new-dialog input[type=range],
#metroSettings input[type=range]{accent-color:#748a79}
.new-dialog input:focus-visible,
.new-dialog button:focus-visible{outline-color:#748a79}
#skillProgress{border-left-color:#748a79!important;color:#a8b0aa!important}
:is(body[data-surface=stats],#statsDialog) .progress-metrics strong{color:#eff4f0}
:is(body[data-surface=stats],#statsDialog) .tempo-bar-track{background:#2a322c}
:is(body[data-surface=stats],#statsDialog) .tempo-bar-track i,
:is(body[data-surface=stats],#statsDialog) .activity-legend i{background:#748a79}
:is(body[data-surface=stats],#statsDialog) .progress-chart{background:#171c18}
:is(body[data-surface=stats],#statsDialog) .progress-chart polyline{stroke:#748a79}
:is(body[data-surface=stats],#statsDialog) .progress-chart circle{fill:#748a79}
:is(body[data-surface=stats],#statsDialog) .activity-day{filter:none}
.new-dialog .lesson-track i{background:#748a79}

/* v77: four equal controls in the primary navigation row. */
#newShell .new-titlebar{grid-template-columns:repeat(4,minmax(0,1fr))}
#newShell .surface-tabs{display:contents}
#newShell .surface-tabs button,
#newShell .new-titlebar #openStats,
#newShell .new-titlebar #openSettings{
 width:100%;min-width:0;height:44px;min-height:44px;padding:7px 5px;border-radius:12px;
 background:#1c201d;color:#929c95;font-size:12px
}
#newShell .new-titlebar #openSettings{font-size:18px}
#newShell .surface-tabs button[aria-pressed=true]{background:#35443a;color:#fff;font-weight:750}

/* v80: one fixed mascot stage; menus and exercise layouts change behind it, never its geometry. */
#newShell{
 --character-stage-size:clamp(150px,min(26dvh,235px),235px);
 --character-stage-bottom:230px;
 position:relative
}
#newShell>#characterStage{
 position:absolute;z-index:3;left:18px;right:18px;bottom:var(--character-stage-bottom);
 height:var(--character-stage-size);min-height:var(--character-stage-size);max-height:var(--character-stage-size);
 display:grid;place-items:center;overflow:visible;pointer-events:none
}
#newShell>#characterStage>#character{
 display:grid!important;place-items:end center;width:100%;height:100%;min-height:0;overflow:visible
}
#newShell>#characterStage #characterImg{
 display:block!important;width:var(--character-stage-size)!important;height:var(--character-stage-size)!important;
 min-width:var(--character-stage-size);min-height:var(--character-stage-size);
 max-width:var(--character-stage-size)!important;max-height:var(--character-stage-size)!important;
 object-fit:contain;object-position:center center;image-rendering:pixelated;transform-origin:center center
}
#newShell>#characterStage #characterLine{display:none!important}
#newShell>#characterStage[data-pose='listening'] #characterImg{transform:translateY(-2px)}
#newShell>#characterStage[data-pose='approval'] #characterImg{transform:translateY(-4px)}
#newShell>#characterStage[data-pose='displeased'] #characterImg{transform:translateY(-11px)}
#newShell>#characterStage[data-pose='angry'] #characterImg{transform:translateY(-22px)}
@media(max-height:700px){
 #newShell{--character-stage-size:clamp(130px,25dvh,180px);--character-stage-bottom:190px}
}

/* v82: the fourth training entry is a complete first rudiment route. */
#newShell #exerciseTabs{grid-template-columns:repeat(4,minmax(0,1fr))}
#rudimentRoute{display:none}
body.redesign #newShell.rudiment-mode:not(.session-active) #newStage .console{grid-template-rows:16px minmax(44px,.7fr) 94px minmax(24px,1.3fr) 52px 44px 44px}
body.redesign #newShell.rudiment-mode:not(.session-active) #newStage .console>#taskBrief{display:none!important}
body.redesign #newShell.rudiment-mode:not(.session-active) #newStage .console>#hitStrip{display:none!important}
body.redesign #newShell.rudiment-mode:not(.session-active) #newStage .console>#rudimentRoute:not([hidden]){
 display:grid!important;grid-area:2/1;grid-template-columns:repeat(4,minmax(104px,1fr));grid-template-rows:repeat(2,minmax(25px,1fr));gap:4px;
 min-width:0;min-height:0;margin:0;padding:0;overflow-x:auto;scrollbar-width:none
}
body.redesign #newShell.rudiment-mode #rudimentRoute::-webkit-scrollbar{display:none}
body.redesign #newShell.rudiment-mode #rudimentRoute>div{display:grid;grid-template-columns:18px minmax(0,1fr);grid-template-rows:1fr 1fr;min-width:104px;padding:4px 6px;border:1px solid #303a33;border-radius:9px;background:#1b201d;color:#89938c}
body.redesign #newShell.rudiment-mode #rudimentRoute small{grid-row:1/3;align-self:center;color:#69746c;font-size:9px}
body.redesign #newShell.rudiment-mode #rudimentRoute b{align-self:end;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e9eeea;font-size:9px}
body.redesign #newShell.rudiment-mode #rudimentRoute span{align-self:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:650 8px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.05em}
@media(max-width:420px){#newShell #exerciseTabs button{padding-inline:3px;font-size:10px}}

/* v83: rudiment setup has real content; the coach gets a reserved dock while data is live. */
#lessonDialog{overflow:hidden}
#lessonDialog .dialog-content{max-height:calc(92dvh - 78px);overflow:auto;overscroll-behavior:contain}
#lessonDialog .rudiment-settings{margin:0 0 16px}
#lessonDialog .rudiment-settings[hidden]{display:none!important}
#lessonDialog .rudiment-settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
#lessonDialog .rudiment-settings-head strong{font-size:14px;line-height:1.35;color:#eff3f0}
#lessonDialog .rudiment-settings-head span{font:650 10px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;color:#9ba69e;white-space:nowrap}
#lessonDialog .rudiment-settings-rules{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:10px}
#lessonDialog .rudiment-settings-rules span{display:grid;place-items:center;min-height:42px;padding:6px;border:1px solid #303832;border-radius:10px;background:#1b201d;color:#abb5ae;font-size:10px;line-height:1.3;text-align:center}
#lessonDialog .rudiment-settings-route{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#lessonDialog .rudiment-settings-route>div{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;min-width:0;padding:8px;border:1px solid #303832;border-radius:11px;background:#202420}
#lessonDialog .rudiment-settings-route small{font:700 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;color:#7c8880}
#lessonDialog .rudiment-settings-route span{display:grid;min-width:0;gap:2px}
#lessonDialog .rudiment-settings-route b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#e9eeea}
#lessonDialog .rudiment-settings-route i{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:650 10px/1.25 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.05em;color:#9ca8a0;font-style:normal}
#lessonDialog:has(#rudimentSettings:not([hidden])) .setup-tempo{margin-top:0}

body .console.switch-focus>#switchBoard:has(>#characterStage){position:relative!important;padding-right:96px!important;min-height:92px}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#taskBrief,
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#nextCue{display:none!important}
#switchBoard>#characterStage{position:absolute;z-index:2;top:8px;right:8px;width:78px;height:78px;display:grid;place-items:center;overflow:hidden;pointer-events:none;border-left:1px solid #3a443d}
#switchBoard>#characterStage>#character{display:grid!important;place-items:end center;width:100%;height:100%;min-height:0;overflow:hidden}
#switchBoard>#characterStage #characterImg{display:block!important;width:78px!important;height:78px!important;min-width:78px;min-height:78px;max-width:78px!important;max-height:78px!important;object-fit:contain;object-position:center bottom;image-rendering:pixelated;transform:none!important}
#switchBoard>#characterStage #characterLine{display:none!important}
@media(max-width:380px){
 body .console.switch-focus>#switchBoard:has(>#characterStage){padding-right:78px!important;min-height:78px}
 #switchBoard>#characterStage{width:62px;height:62px}
 #switchBoard>#characterStage #characterImg{width:62px!important;height:62px!important;min-width:62px;min-height:62px;max-width:62px!important;max-height:62px!important}
}

/* v85: live accuracy data owns the grid; the coach has a separate compact dock. */
body.redesign #newShell.session-active.coach-task-docked #newStage .console{grid-template-rows:28px auto 62px 12px minmax(0,2fr) 20px 0 minmax(0,.2fr) 44px 44px 44px}
body.redesign #newShell.session-active.coach-task-docked #newStage .console>#taskBrief{position:relative!important;box-sizing:border-box;padding-right:66px!important;overflow:hidden}
#taskBrief>#characterStage{position:absolute;z-index:2;top:1px;right:0;width:60px;height:60px;display:grid;place-items:center;overflow:hidden;pointer-events:none;border-left:1px solid #303832}
#taskBrief>#characterStage>#character{display:grid!important;place-items:end center;width:100%;height:100%;min-height:0;overflow:hidden}
#taskBrief>#characterStage #characterImg{display:block!important;width:60px!important;height:60px!important;min-width:60px;min-height:60px;max-width:60px!important;max-height:60px!important;object-fit:contain;object-position:center bottom;image-rendering:pixelated;transform:none!important}
#taskBrief>#characterStage #characterLine{display:none!important}
@media(max-height:700px){
 body.redesign #newShell.session-active.coach-task-docked #newStage .console{grid-template-rows:26px auto 52px 12px minmax(0,2fr) 20px 0 0 42px 44px 44px}
 body.redesign #newShell.session-active.coach-task-docked #newStage .console>#taskBrief{padding-right:56px!important}
 #taskBrief>#characterStage,#taskBrief>#characterStage #characterImg{width:50px!important;height:50px!important;min-width:50px;min-height:50px;max-width:50px!important;max-height:50px!important}
}

/* v87: the fixed idle stage must fit between the exercise caption and tempo. */
#newShell{--character-stage-size:clamp(130px,calc(65dvh - 326px),229px);--character-stage-bottom:236px}
@media(max-height:700px){
 #newShell{--character-stage-size:clamp(125px,20dvh,140px);--character-stage-bottom:210px}
}

/* v101: character speech is a compact animated bubble, not a full-width status bar. */
#abuserBanner[hidden],#reportReviewDock[hidden]{display:none!important}
body.redesign #characterStage>#abuserBanner:not([hidden]){
 --bubble-bg:#efeee9;--bubble-line:#cbcfc8;--bubble-ink:#171917;
 display:block!important;position:absolute;z-index:5;top:7px;left:calc(50% + clamp(36px,11vw,62px));
 width:max-content;max-width:min(42%,190px);min-width:0;min-height:0;box-sizing:border-box;margin:0;padding:8px 12px;
 overflow:visible;border:1px solid var(--bubble-line);border-radius:17px 17px 17px 5px;
 background:var(--bubble-bg);color:var(--bubble-ink);box-shadow:0 8px 22px #0007;
 font:750 10px/1.28 Manrope,Arial,sans-serif;letter-spacing:0;text-align:left;pointer-events:none;transform-origin:-10% 55%
}
body.redesign #characterStage>#abuserBanner>span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3}
body.redesign #characterStage>#abuserBanner:not([hidden])::after{
 content:'';position:absolute;left:-6px;top:25px;width:11px;height:11px;background:var(--bubble-bg);
 border-left:1px solid var(--bubble-line);border-bottom:1px solid var(--bubble-line);transform:rotate(45deg)
}
body.redesign #characterStage>#abuserBanner.speaking{animation:abuserBubble 8s cubic-bezier(.2,.75,.2,1) both}
body.redesign #characterStage>#abuserBanner[data-pose='approval']{--bubble-bg:#edf3ee;--bubble-line:#8ca092;--bubble-ink:#172119}
body.redesign #characterStage>#abuserBanner[data-pose='angry']{--bubble-bg:#f1e8e6;--bubble-line:#a87872;--bubble-ink:#311917}
#taskBrief>#characterStage>#abuserBanner,#switchBoard>#characterStage>#abuserBanner{display:none!important}
@media(max-width:380px){body.redesign #characterStage>#abuserBanner:not([hidden]){left:calc(50% + 31px);max-width:44%;font-size:9px;padding:7px 9px}}
@keyframes abuserBubble{
 0%{opacity:0;transform:translate(8px,5px) scale(.94)}
 7%,82%{opacity:1;transform:translateY(0) scale(1)}
 100%{opacity:0;transform:translate(3px,-4px) scale(.98)}
}
.report-review-dock{display:grid;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid #303832}
.report-review-dock p{margin:0;color:#aab4ad;font-size:11px;line-height:1.4}
.report-review-dock #reportProblem{width:100%;min-height:48px;background:#eeeef3;color:#111;border:0;border-radius:13px;font-weight:750}
.course-debrief{display:grid;gap:10px;margin:12px 0;padding:13px;border:1px solid #536448;border-radius:12px;background:#172019}
.course-debrief[hidden]{display:none}.course-debrief>small{color:#d9ff69;font:850 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em}.course-debrief h3{margin:0;color:#f1f5f2;font-size:19px;line-height:1.15;text-transform:uppercase}.course-debrief[data-status="earned"]{border-color:#9ab551;background:#1b2719}.course-debrief[data-status="uncertain"]{border-color:#82634e;background:#251d18}.course-debrief-measured{margin:0;color:#aab6ae;font:700 9px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace}.course-debrief-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.course-debrief-grid article{display:grid;align-content:start;gap:6px;min-width:0;padding:10px;border:1px solid #35433a;border-radius:9px;background:#111713}.course-debrief-grid b{color:#d9ff69;font:850 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.07em}.course-debrief-grid span{color:#c3cdc6;font-size:10px;line-height:1.45}.course-debrief-proof{margin:0;padding:9px 10px;border-left:3px solid #ffb36b;background:#211b15;color:#cbbbab;font-size:9px;line-height:1.45}@media(max-width:520px){.course-debrief-grid{grid-template-columns:1fr}.course-debrief-grid article{grid-template-columns:100px minmax(0,1fr)}}
#idleActions>#reportProblem{flex:1;min-width:0;background:#eeeef3;color:#111;border:0;font-size:10px;font-weight:750}

/* v103: the final spoken line stays visible in the review sheet. */
#resultAbuser[hidden]{display:none!important}
#resultAbuser{position:relative;margin:0 0 12px;padding:12px 15px;border:1px solid #69786e;border-radius:16px 16px 16px 5px;background:#eef1ed;color:#161a17;box-shadow:0 8px 24px #0005;font:750 13px/1.35 Manrope,Arial,sans-serif}
#resultAbuser::before{content:'ABUSER';display:block;margin-bottom:4px;color:#56645a;font:800 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.14em}
#resultAbuser::after{content:'';position:absolute;left:22px;bottom:-6px;width:11px;height:11px;border-right:1px solid #69786e;border-bottom:1px solid #69786e;background:#eef1ed;transform:rotate(45deg)}

/* v102: the progress surface leads with the pad course, not raw telemetry. */
.course-overview{display:grid;gap:12px;padding:12px 0 4px}
.course-overview>h3{margin:10px 0 0!important;color:#aab4ad!important;font-size:10px!important;letter-spacing:.12em;text-transform:uppercase}
.course-current{display:grid;gap:7px;padding:18px;border:1px solid #3a443d;border-radius:18px;background:linear-gradient(145deg,#222824,#191d1a)}
.course-current small,.course-next small{color:#8f9b93;font:750 9px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.11em}
.course-current h2{margin:0!important;color:#f1f4f2;font-size:25px!important;line-height:1.1!important}
.course-current p{min-height:38px;margin:0!important;color:#abb5ae;font-size:12px!important;line-height:1.45!important}
.course-progress-track{height:8px;margin-top:3px;overflow:hidden;border-radius:999px;background:#303832}
.course-progress-track i{display:block;width:0;height:100%;border-radius:inherit;background:#82988a;transition:width .35s ease}
.course-current>span{color:#8f9b93;font-size:10px}
.course-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.course-totals>div{display:grid;place-items:center;gap:5px;min-width:0;padding:13px 5px;border-radius:14px;background:#1e231f;text-align:center}
.course-totals strong{color:#eef2ef;font-size:22px;line-height:1}
.course-totals span{color:#8f9b93;font-size:9px}
.course-next{display:grid;gap:5px;padding:14px 15px;border-left:3px solid #82988a;border-radius:4px 14px 14px 4px;background:#232a25}
.course-next strong{color:#eef2ef;font-size:14px;line-height:1.3}
.course-next span{color:#aab4ad;font-size:10px;line-height:1.45}
.course-skills{display:grid;gap:10px}
.course-skills>div{display:grid;gap:5px}
.course-skills>div>span{display:flex;justify-content:space-between;gap:10px;color:#c8cfca;font-size:10px}
.course-skills b{font-weight:650}.course-skills i{color:#8f9b93;font-style:normal}
.course-skills>div>div{height:6px;overflow:hidden;border-radius:999px;background:#2a302c}
.course-skills u{display:block;width:0;height:100%;border-radius:inherit;background:#748a79;text-decoration:none;transition:width .35s ease}
.course-path{display:grid;gap:6px}
.course-path>div{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:10px;padding:10px;border:1px solid #303832;border-radius:12px;background:#1b1f1c}
.course-path>div>small{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#282e2a;color:#aab4ad;font:750 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace}
.course-path>div>span{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.course-path b{overflow:hidden;color:#dce2dd;font-size:11px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.course-path i{flex:0 0 auto;color:#8f9b93;font-size:9px;font-style:normal}
.course-path>div.complete{border-color:#46564b;background:#202822}
.course-path>div.complete>small{background:#35443a;color:#f2f5f3}
.course-path>div.current{border-color:#82988a;background:#29332c}
.course-path>div.locked{opacity:.46}
.progress-technical{margin-top:18px!important;padding-top:14px;border-top:1px solid #303832}
.progress-technical>summary{color:#9da8a0;font-size:11px;cursor:pointer}
@media(max-width:420px){
 .course-current{padding:15px}.course-current h2{font-size:22px!important}
 .course-totals strong{font-size:19px}.course-path>div{grid-template-columns:27px minmax(0,1fr);padding:9px}
 .course-path>div>small{width:25px;height:25px}
 #lessonDialog .rudiment-settings-head{display:grid;gap:5px}
 #lessonDialog .rudiment-settings-head strong{font-size:13px}
 #lessonDialog .rudiment-settings-head span{white-space:normal;font-size:9px;line-height:1.45}
}

/* v105: "Дальше" is a visible course journey, not another manual exercise screen. */
#courseJourney[hidden]{display:none!important}
body.redesign #newShell.course-mode:not(.session-active) #newStage .console{display:grid;grid-template-rows:minmax(0,1fr);gap:0}
body.redesign #newShell.course-mode:not(.session-active) #newStage .console>:not(#courseJourney){display:none!important}
body.redesign #newShell.course-mode:not(.session-active)>#characterStage{display:none!important}
body.redesign #newShell.course-mode:not(.session-active) #newStage .console>#courseJourney{
 display:grid!important;grid-area:1/1;grid-template-rows:auto auto auto auto auto;align-content:center;gap:10px;
 min-width:0;min-height:0;padding:12px 14px;border:1px solid #3b463f;border-radius:18px;
 background:radial-gradient(circle at 86% 12%,#334039 0,transparent 32%),linear-gradient(145deg,#222824,#171b18);overflow:hidden
}
.course-journey-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.course-journey-head>span{color:#9eaaa2;font:750 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.13em}
#newShell .course-journey-head>button{min-height:30px;padding:5px 9px;border:1px solid #55635a;border-radius:9px;background:#252c27;color:#e9eeea;font-size:9px;font-weight:700}
.course-journey-copy{display:grid;gap:3px}
.course-journey-copy h2{margin:0;color:#f2f5f3;font-size:clamp(19px,5vw,27px);line-height:1.05}
.course-journey-copy strong{color:#d6ded8;font-size:12px;line-height:1.25}
.course-journey-copy p{margin:0;color:#9faaa3;font-size:10px;line-height:1.35}
.course-journey-progress{display:grid;grid-template-columns:minmax(0,1fr) 82px;align-items:center;gap:10px;color:#aeb8b1;font-size:9px}
.course-journey-progress>b{display:block;height:7px;overflow:hidden;border-radius:999px;background:#303832}
.course-journey-progress i{display:block;width:0;height:100%;border-radius:inherit;background:#9aada0;transition:width .35s ease}
.course-mini-path{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.course-mini-path>div{display:grid;grid-template-columns:25px minmax(0,1fr);align-items:center;gap:6px;min-width:0;padding:7px;border:1px solid #303832;border-radius:11px;background:#1b201d}
.course-mini-path small{display:grid;place-items:center;width:23px;height:23px;border-radius:8px;background:#292f2b;color:#aab4ad;font:750 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace}
.course-mini-path span{display:grid;gap:2px;min-width:0}.course-mini-path b{overflow:hidden;color:#e0e6e1;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.course-mini-path i{color:#8e9a92;font-size:8px;font-style:normal}
.course-mini-path>div.current{border-color:#95a89b;background:#303a33}.course-mini-path>div.current small{background:#eef1ef;color:#181b19}.course-mini-path>div.complete small{background:#3d4c42;color:#eef3ef}.course-mini-path>div.locked{opacity:.58}
#courseJourneyNext{margin:0;color:#9aa79f;font-size:9px;text-align:center}

#courseDialog .dialog-content{display:grid;gap:13px;max-height:calc(92dvh - 78px);overflow:auto;overscroll-behavior:contain}
#courseDialog .course-map-intro{margin:0;color:#aab4ad;font-size:11px;line-height:1.45}
.course-map-current{display:grid;gap:6px;padding:16px;border:1px solid #63746a;border-radius:16px;background:linear-gradient(145deg,#2d3731,#202622)}
.course-map-current>small{color:#adbab1;font:750 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em}
.course-map-current h3{margin:0;color:#f3f6f4;font-size:19px;line-height:1.15}.course-map-current p{margin:0;color:#b1bbb4;font-size:11px;line-height:1.4}
.course-map-current>div{display:flex;justify-content:space-between;gap:12px;padding-top:5px;color:#9faaa3;font-size:10px}.course-map-current>div b{color:#e4e9e5;font-weight:700}
.course-map-path{display:grid;gap:0;padding:1px 0}
.course-map-path>div{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start;gap:11px;min-height:70px;padding:6px 0}
.course-map-path>div:not(:last-child)::after{content:'';position:absolute;left:19px;top:45px;bottom:-3px;width:2px;background:#343c37}
.course-map-path>div>small{position:relative;z-index:1;display:grid;place-items:center;width:38px;height:38px;border:1px solid #3b443e;border-radius:14px;background:#242a26;color:#aab4ad;font:750 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace}
.course-map-path>div>span{display:grid;gap:3px;min-width:0;padding:3px 10px 8px 0}.course-map-path b{color:#dce3de;font-size:12px}.course-map-path p{margin:0;color:#8f9a93;font-size:9px;line-height:1.35}.course-map-path i{color:#9ba79f;font-size:9px;font-style:normal}
.course-map-path>div.current>small{border-color:#d8dfda;background:#eef1ef;color:#181b19;box-shadow:0 0 0 5px #58685e44}.course-map-path>div.current b{color:#fff}.course-map-path>div.complete>small{border-color:#66786c;background:#3d4c42;color:#f2f6f3}.course-map-path>div.complete:not(:last-child)::after{background:#65776b}.course-map-path>div.locked{opacity:.62}
.course-map-rule{margin:0;padding:11px 12px;border-radius:11px;background:#1d231f;color:#9da9a1;font-size:10px;line-height:1.45}
#courseDialog #courseMapStart{position:sticky;z-index:5;bottom:0;width:100%;min-height:50px;background:#eeeef3;color:#111;opacity:1;box-shadow:0 -10px 22px #161916}
#courseDialog #courseMapStart:disabled{background:#b9bbbf;color:#3b3c3e;opacity:1}

.course-path{gap:0;padding-left:2px}
.course-path>div{position:relative;grid-template-columns:38px minmax(0,1fr);gap:11px;min-height:72px;padding:7px 0;border:0;border-radius:0;background:transparent}
.course-path>div:not(:last-child)::after{content:'';position:absolute;left:18px;top:47px;bottom:-3px;width:2px;background:#343c37}
.course-path>div>small{position:relative;z-index:1;width:36px;height:36px;border:1px solid #3b443e;border-radius:13px;background:#242a26}
.course-path>div>span{display:grid;align-content:start;justify-content:stretch;gap:3px;padding:3px 8px 8px 0}
.course-path b{white-space:normal}.course-path p{margin:0;color:#8f9a93;font-size:9px;line-height:1.35}.course-path i{justify-self:start}
.course-path>div.current{border:0;background:transparent}.course-path>div.current>small{border-color:#d8dfda;background:#eef1ef;color:#181b19;box-shadow:0 0 0 5px #58685e44}.course-path>div.complete{border:0;background:transparent}.course-path>div.complete:not(:last-child)::after{background:#65776b}.course-path>div.locked{opacity:.62}
@media(max-height:700px){
 body.redesign #newShell.course-mode:not(.session-active) #newStage .console>#courseJourney{gap:6px;padding:8px 11px}
 .course-journey-copy p{display:none}.course-mini-path>div{padding:5px}.course-journey-copy h2{font-size:18px}.course-map-path>div{min-height:64px}
}
@media(max-width:380px){
 .course-journey-progress{grid-template-columns:1fr}.course-journey-progress>b{height:5px}.course-mini-path>div{grid-template-columns:1fr;text-align:center}.course-mini-path small{justify-self:center}.course-mini-path span{display:none}
 .course-map-current>div{display:grid;gap:4px}
}

/* v107: the pad course is a campaign — 80 visible nodes, bosses and earned trophies. */
body.redesign #newShell.course-mode:not(.session-active) #newStage .console>#courseJourney{
 grid-template-rows:auto auto auto auto auto auto;align-content:stretch;gap:8px;padding:10px 12px;
 border:2px solid #64786a;border-radius:6px;clip-path:polygon(0 8px,8px 8px,8px 0,calc(100% - 8px) 0,calc(100% - 8px) 8px,100% 8px,100% calc(100% - 8px),calc(100% - 8px) calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,8px calc(100% - 8px),0 calc(100% - 8px));
 background:linear-gradient(90deg,#ffffff06 1px,transparent 1px),linear-gradient(#ffffff06 1px,transparent 1px),radial-gradient(circle at 85% 9%,#506357 0,transparent 30%),linear-gradient(145deg,#253029,#131814);background-size:16px 16px,16px 16px,auto,auto;box-shadow:inset 0 0 0 3px #141815,0 12px 34px #0008
}
.campaign-hud{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;border:1px solid #667a6d;background:#0f1511cc;box-shadow:inset 0 0 0 2px #28352d}
.campaign-coach{display:flex;align-items:center;gap:8px;min-width:0}.pixel-frame{display:grid;place-items:center;overflow:hidden;border:2px solid #9eb29f;background:linear-gradient(#52665a,#26332b);box-shadow:3px 3px 0 #0a0d0b}
.campaign-coach .pixel-frame{width:52px;height:52px}.pixel-frame img{width:118%;height:118%;object-fit:cover;object-position:center 20%;image-rendering:pixelated;filter:contrast(1.06) saturate(.82)}
.campaign-coach>span:last-child{display:grid;gap:3px;min-width:0}.campaign-coach small,.campaign-score small{color:#91a396;font:800 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.14em}.campaign-coach b{overflow:hidden;color:#eef5ef;font:850 13px/1.1 ui-monospace,SFMono-Regular,Menlo,monospace;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}
.campaign-score{display:flex;gap:5px}.campaign-score>span{display:grid;place-items:center;gap:3px;min-width:48px;padding:7px 5px;border-left:1px solid #445248}.campaign-score b{color:#dce9df;font:900 12px/1 ui-monospace,SFMono-Regular,Menlo,monospace}
.course-journey-head>span{color:#becbbf;font-size:8px}.course-journey-copy h2{text-transform:uppercase;letter-spacing:-.03em}.course-journey-copy strong{color:#e7ede8}.course-journey-progress{grid-template-columns:minmax(0,1fr) 105px}.course-journey-progress>b{border:1px solid #4a5a50;border-radius:0;background:#101511}.course-journey-progress i{border-radius:0;background:repeating-linear-gradient(90deg,#9fb49f 0 9px,#79907f 9px 11px)}
.course-mini-path{position:relative;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;padding:7px 0}.course-mini-path::before{content:'';position:absolute;left:5%;right:5%;top:50%;height:3px;background:#39483e;transform:translateY(-50%)}
.course-mini-path>div{position:relative;z-index:1;display:grid;grid-template-columns:1fr;place-items:center;min-height:35px;padding:0;border:0;background:transparent}.course-mini-path>div span{display:none}.course-mini-path small{display:grid;place-items:center;width:31px;height:31px;border:2px solid #46564b;border-radius:4px;background:#1a211c;color:#89978d;box-shadow:2px 2px 0 #0b0e0c;font:900 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace}
.course-mini-path>div.complete small{border-color:#809984;background:#425849;color:#fff}.course-mini-path>div.current small{border-color:#e1eade;background:#d7e4d7;color:#152018;box-shadow:0 0 0 3px #8faa92,3px 3px 0 #0a0e0b;animation:campaign-pulse 1.5s steps(2,end) infinite}.course-mini-path>div.locked{opacity:.42}
@keyframes campaign-pulse{50%{box-shadow:0 0 0 6px #8faa9244,3px 3px 0 #0a0e0b}}
#courseJourneyNext{padding:5px;border-top:1px dashed #526158;color:#b6c2b9;font:750 8px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;text-transform:uppercase}

#courseDialog{width:min(680px,94vw);border-radius:8px}#courseDialog .dialog-content{gap:12px;padding-bottom:4px;background:linear-gradient(90deg,#ffffff04 1px,transparent 1px),linear-gradient(#ffffff04 1px,transparent 1px);background-size:20px 20px}
.campaign-map-hero{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:13px;padding:12px;border:2px solid #607567;background:radial-gradient(circle at 15% 0,#405448,transparent 40%),#121814;box-shadow:inset 0 0 0 3px #263129}
.campaign-map-hero .pixel-frame{width:84px;height:84px}.campaign-map-hero>div{display:grid;gap:5px}.campaign-map-hero small{color:#8fa092;font:800 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em}.campaign-map-hero h3{margin:0;color:#f0f5f1;font-size:18px;line-height:1.05;text-transform:uppercase}.campaign-map-hero p{margin:0;color:#aebbb1;font-size:10px;line-height:1.35}
.course-map-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;border:1px solid #39463e;background:#131814}.course-map-tabs button{min-height:38px;border:0!important;border-radius:2px!important;background:transparent!important;color:#819087!important;font:850 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace!important;text-transform:uppercase}.course-map-tabs button[aria-selected=true]{background:#d8e4d9!important;color:#182019!important;box-shadow:2px 2px 0 #5f7365}.course-map-tabs span{margin-left:5px;font-size:8px}
#courseMapPanel,#courseAchievementPanel{display:grid;gap:12px}#courseMapPanel[hidden],#courseAchievementPanel[hidden],#courseMapStart[hidden]{display:none!important}
.course-map-current{border:2px solid #82988a;border-radius:4px;background:linear-gradient(135deg,#314038,#1c251f);box-shadow:inset 0 0 0 3px #1a211c}.course-map-current>small{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.course-map-path{display:grid;gap:10px;padding:0}.course-world{display:grid;gap:10px;padding:12px;border:1px solid #39463e;background:#151b17}.course-world>header{display:flex;align-items:start;justify-content:space-between;gap:12px}.course-world>header>span{display:grid;gap:3px}.course-world>header small{color:#7f9185;font:800 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em}.course-world>header b{color:#dce5de;font-size:14px}.course-world>header p{margin:0;color:#8e9c92;font-size:9px;line-height:1.35}.course-world>header i{flex:0 0 auto;color:#77867d;font:800 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;font-style:normal}.course-world.current{border-color:#819889;background:#1c2821;box-shadow:inset 3px 0 0 #9db39f}.course-world.complete{border-color:#506356;background:#172019}.course-world.locked{opacity:.48}
.course-world-road{position:relative;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.course-world-road::before{content:'';position:absolute;left:4%;right:4%;top:19px;height:3px;background:#334138}.course-world-road>div{position:relative;z-index:1;display:grid;place-items:center;gap:5px;min-width:0;text-align:center}.course-world-road b{display:grid;place-items:center;width:37px;height:37px;border:2px solid #415047;border-radius:5px;background:#161d18;color:#77867d;box-shadow:2px 2px 0 #090c0a;font:900 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.course-world-road span{display:none}.course-world-road .complete b{border-color:#6f8a76;background:#3a5141;color:#eff7f0}.course-world-road .current b{border-color:#eef6ef;background:#d9e7da;color:#152018;box-shadow:0 0 0 4px #89a08e55,2px 2px 0 #090c0a;animation:campaign-pulse 1.5s steps(2,end) infinite}.course-world-road .locked{opacity:.4}
.course-world-tasks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding-top:3px;border-top:1px dashed #3d4c42}.course-world-tasks>span{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:5px;min-width:0;padding:4px;color:#7f8d83;font-size:8px}.course-world-tasks b{display:grid;place-items:center;width:18px;height:18px;border:1px solid #435147;border-radius:3px;font:800 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.course-world-tasks i{overflow:hidden;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.course-world-tasks .current{background:#d8e4d9;color:#172019}.course-world-tasks .current b{border-color:#172019}.course-world-tasks .complete{color:#c7d6ca}.course-world-tasks .locked{opacity:.5}
.achievement-intro{display:grid;gap:3px;padding:12px;border-left:4px solid #82998a;background:#18211b}.achievement-intro b{color:#eef5ef;font-size:16px}.achievement-intro span{color:#98a79c;font-size:9px}
.achievement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.achievement-grid>article{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:9px;min-height:65px;padding:9px;border:1px solid #364239;background:#151b17}.achievement-grid>article>b{display:grid;place-items:center;width:43px;height:43px;border:2px solid #48594e;background:#202922;color:#91a097;box-shadow:2px 2px 0 #090c0a;font:900 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.achievement-grid>article>span{display:grid;gap:3px}.achievement-grid strong{color:#cdd8d0;font-size:10px}.achievement-grid small{color:#7e8c82;font-size:8px;line-height:1.3}.achievement-grid>article.earned{border-color:#708675;background:#202c24}.achievement-grid>article.earned>b{border-color:#b4c7b7;background:#536c59;color:#fff}.achievement-grid>article.locked{opacity:.5;filter:saturate(.35)}

.course-totals{grid-template-columns:repeat(4,minmax(0,1fr))}.course-path>div{min-height:98px}.course-path>div>span{gap:5px}.progress-node-road{position:relative;display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;padding:4px 0;font-style:normal}.progress-node-road::before{content:'';position:absolute;left:4%;right:4%;top:14px;height:2px;background:#354139}.progress-node-road u{position:relative;z-index:1;display:grid;place-items:center;width:24px;height:24px;border:1px solid #445248;border-radius:4px;background:#1b221d;color:#77847b;font:800 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace;text-decoration:none}.progress-node-road u.complete{background:#415747;color:#fff}.progress-node-road u.current{border-color:#dce8de;background:#cddbcf;color:#172019;box-shadow:0 0 0 3px #78907f44}.progress-node-road u.locked{opacity:.42}.achievement-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.achievement-grid.compact>article{min-height:56px}.achievement-grid.compact>article>b{width:36px;height:36px}
@media(max-width:480px){
 .campaign-map-hero{grid-template-columns:66px minmax(0,1fr)}.campaign-map-hero .pixel-frame{width:62px;height:62px}.campaign-map-hero h3{font-size:15px}
 .campaign-score>span{min-width:42px}.course-world-road{gap:3px}.course-world-road b{width:30px;height:30px}.course-world-road::before{top:15px}.course-world-tasks{grid-template-columns:1fr}.achievement-grid{grid-template-columns:1fr}.course-totals{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-height:700px){
 .campaign-hud{padding:4px 7px}.campaign-coach .pixel-frame{width:38px;height:38px}.campaign-score>span{padding:4px}.course-mini-path{padding:3px 0}.course-mini-path small{width:25px;height:25px}.course-journey-copy p{display:none}
}

/* v109: the student visibly grows from uncertain beginner to confident pad master. */
.campaign-duo{position:relative;display:block;flex:0 0 84px;width:84px;height:54px}.campaign-duo .pixel-frame{position:absolute;top:1px;width:48px!important;height:48px!important}.campaign-duo .trainer-frame{left:0;z-index:1;opacity:.74;transform:scale(.88);transform-origin:left bottom}.campaign-duo .student-frame{right:0;z-index:2;border-color:#d9ff69;background:radial-gradient(circle at 50% 25%,#53665a,#202b24);box-shadow:3px 3px 0 #0a0d0b,0 0 0 2px #d9ff6922}.campaign-duo .student-frame img{width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:none}
.campaign-rank-avatar{border-color:#d9ff69;background:radial-gradient(circle at 50% 25%,#53665a,#202b24);box-shadow:3px 3px 0 #0a0d0b,0 0 0 2px #d9ff6922}.campaign-rank-avatar img{width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:none}
.campaign-duo-large{flex-basis:116px;width:116px;height:88px}.campaign-duo-large .pixel-frame{top:4px;width:76px!important;height:76px!important}.campaign-duo-large .trainer-frame{left:0}.campaign-duo-large .student-frame{right:0}
.campaign-map-hero{grid-template-columns:124px minmax(0,1fr)}
.course-avatar-stage{display:block!important;margin-top:3px;color:#d9ff69!important}.course-avatar-evolution{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:5px}.course-avatar-evolution>span{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:1fr 1fr;align-items:center;gap:0 4px;min-width:0;padding:3px;border:1px solid #38483e;background:#101612}.course-avatar-evolution img{grid-row:1/3;width:30px;height:30px;object-fit:contain;object-position:center bottom;image-rendering:pixelated}.course-avatar-evolution i,.course-avatar-evolution b{overflow:hidden;font:800 6px/1 ui-monospace,SFMono-Regular,Menlo,monospace;font-style:normal;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.course-avatar-evolution i{align-self:end;color:#bac9bd}.course-avatar-evolution b{align-self:start;color:#6f7f74}.course-avatar-evolution>span.current{border-color:#d9ff69;background:#273428;box-shadow:inset 0 -2px 0 #d9ff69}.course-avatar-evolution>span.earned{border-color:#617768}.course-avatar-evolution>span.locked{opacity:.32;filter:grayscale(1)}
.campaign-mastered .student-frame{border-color:#f1d36d;box-shadow:3px 3px 0 #0a0d0b,0 0 14px #f1d36d66}.campaign-mastered .course-avatar-evolution>span.current{border-color:#f1d36d;box-shadow:inset 0 -2px 0 #f1d36d}
@media(max-width:480px){.campaign-duo{flex-basis:70px;width:70px;height:46px}.campaign-duo .pixel-frame{width:41px!important;height:41px!important}.campaign-map-hero{grid-template-columns:94px minmax(0,1fr)}.campaign-duo-large{flex-basis:88px;width:88px;height:68px}.campaign-duo-large .pixel-frame{width:58px!important;height:58px!important}.course-avatar-evolution{grid-template-columns:repeat(4,1fr)}.course-avatar-evolution>span{grid-template-columns:1fr;place-items:center}.course-avatar-evolution img{grid-row:auto;width:28px;height:28px}.course-avatar-evolution b{display:none}}

/* v108: academy map — five disciplines, selectable missions, mastery seals and spaced reviews. */
#courseDialog{width:min(780px,96vw)}
.course-map-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
#courseMapPanel,#courseReviewPanel,#courseAchievementPanel{display:grid;gap:12px}
#courseMapPanel[hidden],#courseReviewPanel[hidden],#courseAchievementPanel[hidden],#courseMapStart[hidden]{display:none!important}
.course-mission-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.course-mission-title h3{min-width:0}
#courseMapDiscipline{flex:0 0 auto;padding:5px 7px;border:1px solid currentColor;background:#111712;color:#d9ff69;font:850 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em}
#courseMapDiscipline[data-discipline=control]{color:#9fd6ff}#courseMapDiscipline[data-discipline=motion]{color:#ffb36b}#courseMapDiscipline[data-discipline=time]{color:#d9ff69}#courseMapDiscipline[data-discipline=form]{color:#d7a8ff}#courseMapDiscipline[data-discipline=music]{color:#ff7f9f}
.course-map-cue{padding:8px 10px;border-left:3px solid #d9ff69;background:#101712!important;color:#cbd6ce!important;font-size:9px!important}
.course-legend{display:flex;flex-wrap:wrap;gap:5px}.course-legend>span{padding:6px 8px;border:1px solid #344239;background:#121814;color:#8d9d92;font:750 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace;text-transform:uppercase}.course-legend i{margin-right:4px;color:#d9ff69;font-style:normal;letter-spacing:.05em}
.course-world{--track:#82988a;position:relative;overflow:hidden;border-left:3px solid var(--track)}
.course-world::before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,color-mix(in srgb,var(--track) 10%,transparent),transparent 44%)}
.course-world[data-discipline=control]{--track:#70acd3}.course-world[data-discipline=motion]{--track:#d99250}.course-world[data-discipline=time]{--track:#a8cc55}.course-world[data-discipline=form]{--track:#a77ad0}.course-world[data-discipline=music]{--track:#cb6680}
.course-world>*{position:relative}.course-world.current{border-color:var(--track);box-shadow:inset 3px 0 0 var(--track),0 0 24px color-mix(in srgb,var(--track) 12%,transparent)}
.course-world-road>div[role=button]{cursor:pointer}.course-world-road>div[role=button]:focus-visible{outline:2px solid var(--track);outline-offset:3px}.course-world-road>div span{display:block;overflow:hidden;width:100%;color:#6f7d74;font:800 6px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:-.06em;white-space:nowrap}.course-world-road>div.complete span{color:#b9cabb}.course-world-road>div.mastered b{border-color:#eed77b;background:#765f22;color:#fff4bb;box-shadow:0 0 0 3px #eed77b22,2px 2px 0 #090c0a}.course-world-road>div.mastered span{color:#eed77b}
.course-world-tasks{position:relative}.course-world-tasks>button{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:6px;min-width:0;padding:6px;border:1px solid transparent;border-radius:2px;background:transparent;color:#839087;font:inherit;text-align:left}.course-world-tasks>button:hover:not(:disabled){border-color:#526157;background:#1d2721}.course-world-tasks>button b{display:grid;place-items:center;width:18px;height:18px;border:1px solid #435147;border-radius:3px;font:800 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.course-world-tasks>button i{overflow:hidden;font:normal 8px/1.2 Manrope,Arial,sans-serif;text-overflow:ellipsis;white-space:nowrap}.course-world-tasks>button u{color:#78877d;font:800 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace;text-decoration:none}.course-world-tasks>button.current{border-color:var(--track);background:color-mix(in srgb,var(--track) 23%,#141a16);color:#f3f7f4}.course-world-tasks>button.current u{color:#fff}.course-world-tasks>button.complete{color:#c7d6ca}.course-world-tasks>button.mastered u{color:#eed77b}.course-world-tasks>button:disabled{opacity:.42}
.course-review-list{display:grid;gap:7px}.course-review-list>button{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:10px;min-height:62px;padding:9px 11px;border:1px solid #405047;background:#151d18;text-align:left}.course-review-list>button>i{display:grid;place-items:center;width:38px;height:38px;border:2px solid #849a8b;background:#29372e;color:#eaf2ec;font:900 18px/1 ui-monospace,SFMono-Regular,Menlo,monospace;font-style:normal}.course-review-list>button>span{display:grid;gap:4px}.course-review-list b{color:#e6ece7;font-size:11px}.course-review-list small{color:#89978d;font-size:8px}.course-review-empty{margin:0;padding:22px;border:1px dashed #3b483f;color:#8c9990;font-size:10px;line-height:1.55;text-align:center}
.course-mini-path>div[tabindex]{cursor:pointer}.course-mini-path>div.mastered small{border-color:#e9d272;background:#705a20;color:#fff4b3}.course-mini-path>div i{letter-spacing:-.08em}
.progress-node-road u.mastered{border-color:#e9d272;background:#705a20;color:#fff4b3}
@media(max-width:540px){
 .course-map-tabs button{padding:9px 3px;font-size:8px!important}.course-mission-title{align-items:flex-start;flex-direction:column}.course-world{padding:10px}.course-world>header{display:grid}.course-world>header i{justify-self:start}.course-world-road b{width:29px;height:29px}.course-world-road::before{top:15px}.course-world-road>div span{font-size:5px}.course-world-tasks{grid-template-columns:1fr}.campaign-map-hero p{font-size:9px}
}

/* v110: the Control tab is the complete library, not a hidden first pack. */
#rudimentLibraryNav{display:none}
body.redesign #newShell.rudiment-mode:not(.session-active) #newStage .console>#rudimentLibraryNav:not([hidden]){display:grid!important;grid-area:3/1;align-self:stretch;gap:7px;width:min(100%,688px);min-height:0;margin:0 auto 4px;overflow:hidden}
body.redesign #newShell.rudiment-mode:not(.session-active){--character-stage-size:clamp(112px,18dvh,142px);--character-stage-bottom:220px}
.rudiment-library-title{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;align-items:stretch;gap:6px}
.rudiment-library-title>button{min-height:52px;padding:0;border:1px solid #3c4b41;border-radius:10px;background:#18201a;color:#d9ff69;font-size:24px}
.rudiment-library-title>span{display:grid;gap:2px;min-width:0;padding:7px 10px;border:1px solid #3c4b41;border-radius:10px;background:#151c17}
.rudiment-library-title small{color:#809087;font:800 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em}.rudiment-library-title b{overflow:hidden;color:#eef4ef;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.rudiment-library-title i{overflow:hidden;color:#9bab9f;font:normal 8px/1.25 Manrope,Arial,sans-serif;text-overflow:ellipsis;white-space:nowrap}
.rudiment-family-tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}.rudiment-family-tabs::-webkit-scrollbar{display:none}.rudiment-family-tabs button{flex:0 0 auto;min-height:28px;padding:5px 8px;border:1px solid #344239;border-radius:999px;background:#141a16;color:#839188;font:750 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace;text-transform:uppercase}.rudiment-family-tabs button[aria-selected=true]{border-color:#8ca694;background:#2d4033;color:#eff7f0}
#lessonDialog .rudiment-settings-route>button{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;min-width:0;padding:8px;border:1px solid #303832;border-radius:11px;background:#202420;text-align:left}
.course-world-road{grid-template-columns:repeat(7,minmax(0,1fr));row-gap:10px}.course-world-road::before{display:none}
@media(max-width:480px){body.redesign #newShell.rudiment-mode:not(.session-active) #newStage .console>#rudimentLibraryNav:not([hidden]){width:100%}.rudiment-library-title i{white-space:normal}.rudiment-family-tabs button{font-size:6px}}

/* v110: flexible mastery school — one current student avatar, no calendar or time gates. */
.campaign-map-hero{grid-template-columns:92px minmax(0,1fr)}
.campaign-current-avatar{width:84px!important;height:84px!important;border-color:#d9ff69;background:radial-gradient(circle at 50% 25%,#53665a,#202b24);box-shadow:3px 3px 0 #0a0d0b,0 0 0 2px #d9ff6922}
.campaign-current-avatar img{width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:none}
.course-mini-path{grid-template-columns:repeat(5,minmax(0,1fr))}
.course-world-road{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:480px){.campaign-map-hero{grid-template-columns:70px minmax(0,1fr)}.campaign-current-avatar{width:62px!important;height:62px!important}}

/* v111: Control patterns are readable cards, never a clipped horizontal ribbon. */
body.redesign #newShell.rudiment-mode:not(.session-active) #newStage .console{
 grid-template-rows:18px 100px minmax(164px,1.6fr) 68px 56px 34px 0;
 gap:4px
}
body.redesign #newShell.rudiment-mode:not(.session-active)>#characterStage{display:none!important}
body.redesign #newShell.rudiment-mode:not(.session-active) #newStage .console>#blockStatus{
 font-size:10px;line-height:1.2;letter-spacing:.12em
}
body.redesign #newShell.rudiment-mode:not(.session-active) #newStage .console>#rudimentRoute:not([hidden]){
 grid-area:3/1;
 grid-template-columns:repeat(2,minmax(0,1fr));
 grid-template-rows:repeat(4,minmax(0,1fr));
 gap:7px;width:min(100%,688px);overflow:visible
}
body.redesign #newShell.rudiment-mode #rudimentRoute>div{
 grid-template-columns:18px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;
 min-width:0;min-height:0;padding:6px 8px;column-gap:5px;border-radius:10px
}
body.redesign #newShell.rudiment-mode #rudimentRoute small{
 grid-row:1/3;font-size:10px
}
body.redesign #newShell.rudiment-mode #rudimentRoute b{
 align-self:end;overflow:visible;color:#f1f5f2;font-size:12px;line-height:1.18;text-overflow:clip;white-space:normal
}
body.redesign #newShell.rudiment-mode #rudimentRoute span{
 align-self:start;overflow:visible;color:#aab7ae;font:700 10px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;
 letter-spacing:.035em;word-spacing:.05em;text-overflow:clip;white-space:normal
}
body.redesign #newShell.rudiment-mode:not(.session-active) #newStage .console>#rudimentRoute.long-patterns:not([hidden]){
 grid-template-columns:1fr;grid-template-rows:none;grid-auto-rows:minmax(62px,auto);
 padding-right:4px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#526157 transparent
}
body.redesign #newShell.rudiment-mode #rudimentRoute.long-patterns>div{min-height:62px;padding-block:8px}
body.redesign #newShell.rudiment-mode:not(.session-active) #newStage .console>#rudimentLibraryNav:not([hidden]){
 grid-area:2/1;gap:4px;margin-bottom:0;overflow:visible
}
.rudiment-library-title{grid-template-columns:42px minmax(0,1fr) 42px;gap:7px}
.rudiment-library-title>button{min-height:50px;font-size:27px}
.rudiment-library-title>span{align-content:center;padding:5px 9px}
.rudiment-library-title small{font-size:8px;line-height:1.2}
.rudiment-library-title b{overflow:hidden;font-size:14px;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}
.rudiment-library-title i{display:-webkit-box;overflow:hidden;font-size:9px;line-height:1.25;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.rudiment-family-tabs{gap:5px;min-height:26px;overflow-y:visible}
.rudiment-family-tabs button{min-height:26px;padding:4px 9px;font-size:8px}
#rudimentClickPanel{display:none}
body.redesign #newShell.rudiment-mode:not(.session-active) #newStage .console>#rudimentClickPanel:not([hidden]){display:grid!important;grid-area:4/1;gap:4px;width:min(100%,688px);min-height:0;margin:2px auto;padding:5px 7px;border:1px solid #344239;border-radius:10px;background:#141a16}
#rudimentClickPanel small{color:#7f8f84;font:800 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em}
.rudiment-support-row{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:5px}.rudiment-support-row>div{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}
.rudiment-control-row{display:grid;grid-template-columns:.9fr 1.1fr;gap:7px}.rudiment-control-row>span{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:5px}.rudiment-control-row>span>span{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:3px}
#rudimentClickPanel button{min-width:0;min-height:23px;padding:3px 2px;border:1px solid #344239;border-radius:6px;background:#1b231d;color:#aeb9b1;font:800 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:nowrap}
#rudimentClickPanel button[aria-pressed=true]{border-color:#9ab09f;background:#35483b;color:#f5f8f5;box-shadow:inset 0 -2px 0 #94aa99}
#rudimentClickPanel button:disabled{opacity:.32}
body.redesign #newShell.rudiment-mode:not(.session-active){
 --character-stage-size:clamp(84px,13dvh,106px);--character-stage-bottom:202px
}
@media(max-height:700px){
 body.redesign #newShell.rudiment-mode:not(.session-active) #newStage .console{
  grid-template-rows:16px 90px minmax(135px,1fr) 62px 54px 32px 0;gap:4px
 }
 body.redesign #newShell.rudiment-mode #rudimentRoute>div{padding:5px 6px;column-gap:4px}
 body.redesign #newShell.rudiment-mode #rudimentRoute b{font-size:11px}
 body.redesign #newShell.rudiment-mode #rudimentRoute span{font-size:9.5px;line-height:1.25;letter-spacing:.02em}
 .rudiment-library-title{grid-template-columns:38px minmax(0,1fr) 38px;gap:6px}
 .rudiment-library-title>button{min-height:48px;font-size:25px}
 .rudiment-library-title>span{padding:6px 9px}
 .rudiment-library-title small{font-size:8px}.rudiment-library-title b{font-size:13px}.rudiment-library-title i{font-size:9px}
 .rudiment-family-tabs button{min-height:26px;padding:4px 8px;font-size:8px}
 body.redesign #newShell.rudiment-mode:not(.session-active){--character-stage-size:72px;--character-stage-bottom:198px}
}
@media(max-width:360px){
 body.redesign #newShell.rudiment-mode:not(.session-active) #newStage .console>#rudimentRoute:not([hidden]){
  grid-template-columns:1fr;grid-template-rows:none;grid-auto-rows:minmax(52px,auto);overflow-y:auto;overscroll-behavior:contain
 }
 .rudiment-support-row,.rudiment-control-row>span{grid-template-columns:34px minmax(0,1fr)}
 #rudimentClickPanel button{font-size:7px}
}
@media(max-width:540px){#lessonDialog .rudiment-settings-rules{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v112: Academy First — authored four-act chapters, large student identity and illustrated achievements. */
#newShell .surface-tabs #surfaceTraining[aria-pressed=true]{background:#d9ff69;color:#172018;box-shadow:inset 0 -2px 0 #7c983a}
body.redesign #newShell.course-mode:not(.session-active) #newStage .console>#courseJourney{padding:12px 14px;gap:10px}
.campaign-coach .pixel-frame{width:72px;height:72px}.campaign-coach b{font-size:15px}.campaign-coach small{font-size:8px}
.campaign-map-hero{grid-template-columns:144px minmax(0,1fr);gap:18px;padding:16px}.campaign-current-avatar{width:128px!important;height:128px!important}.campaign-map-hero h3{font-size:23px}.campaign-map-hero p{font-size:11px;line-height:1.45}
.course-world-acts{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.course-world-act{display:grid;gap:7px;padding:9px;border:1px solid #303c34;background:#111713}.course-world-act>div:first-child{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px}.course-world-act>div:first-child small{color:#75857a;font:800 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em}.course-world-act>div:first-child b{overflow:hidden;color:#b7c4bb;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.course-world-act>div:first-child i{color:#6e7c72;font:800 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace;font-style:normal}.course-world-act.current{border-color:var(--track);background:color-mix(in srgb,var(--track) 13%,#111713);box-shadow:inset 0 3px 0 var(--track)}.course-world-act.current>div:first-child b{color:#f1f5f2}.course-world-act.complete{border-color:#4e6254}.course-world-act.locked{opacity:.42}.course-world-act .course-world-road{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.course-world-act .course-world-road b{width:32px;height:32px}.course-world-act .course-world-road span{font-size:6px}.course-world-act .course-world-tasks{grid-template-columns:1fr;padding-top:7px}.course-world-act .course-world-tasks>button{min-height:30px}
.achievement-grid>article>b.achievement-art{background-color:#101612;background-image:url('assets/achievement-atlas-v2.webp');background-repeat:no-repeat;background-size:400% 300%;background-position:var(--atlas-x) var(--atlas-y);image-rendering:pixelated;color:transparent}.achievement-grid>article.earned>b.achievement-art{background-color:#27372d;filter:saturate(1.05) brightness(1.08)}.achievement-grid>article.locked>b.achievement-art{filter:grayscale(.85) brightness(.48)}
.progress-identity{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:14px;margin:10px 0 14px;padding:12px;border:2px solid #617669;background:radial-gradient(circle at 10% 0,#405448,transparent 42%),#121814;box-shadow:inset 0 0 0 3px #263129}.progress-avatar{width:88px;height:88px;border-color:#d9ff69}.progress-avatar img{width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:none}.progress-identity>span:last-child{display:grid;gap:4px}.progress-identity small{color:#8fa092;font:800 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em}.progress-identity strong{color:#f1f6f2;font:900 23px/1 Manrope,Arial,sans-serif;text-transform:uppercase}.progress-identity b{color:#a8b7ac;font-size:10px;font-weight:600}.progress-technical{margin-top:14px!important;border:1px solid #303b34!important;background:#111713!important}.progress-technical>summary{color:#8f9e94!important;font-size:10px!important;text-transform:uppercase;letter-spacing:.08em}
@media(max-width:600px){.course-world-acts{grid-template-columns:1fr}.campaign-map-hero{grid-template-columns:106px minmax(0,1fr);gap:11px;padding:12px}.campaign-current-avatar{width:96px!important;height:96px!important}.campaign-map-hero h3{font-size:17px}.campaign-coach .pixel-frame{width:60px;height:60px}.campaign-score>span{min-width:42px}.progress-identity{grid-template-columns:76px minmax(0,1fr)}.progress-avatar{width:68px;height:68px}.progress-identity strong{font-size:19px}}
@media(max-height:700px){.campaign-coach .pixel-frame{width:48px;height:48px}body.redesign #newShell.course-mode:not(.session-active) #newStage .console>#courseJourney{padding:8px 10px;gap:6px}.campaign-coach b{font-size:12px}}

/* v113: four-app shell — immediate taps, one primary action and no cockpit duplication. */
button,[role=button],a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button:not(:disabled),[role=button]:not([aria-disabled=true]){cursor:pointer}
button.tap-active,[role=button].tap-active{filter:brightness(1.18);transform:scale(.97)!important;transition:none!important}
#newShell .new-header .header-actions{gap:6px}
#newShell .new-header #openSettings{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #303932;border-radius:50%;background:#181c19;color:#aeb8b0;font-size:17px}
#newShell .new-header #accountButton{flex-basis:44px;width:44px;height:44px;min-height:44px}
#newShell .new-header #openSettings:active,#newShell .new-header #openSettings.tap-active{border-color:#82988a;background:#2d3931;color:#fff}
#newShell .new-titlebar{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;align-items:stretch}
#appDock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;min-width:0}
#newShell #appDock>button{display:grid;grid-template-rows:22px auto;place-items:center;gap:3px;min-width:0;min-height:58px!important;height:58px!important;padding:7px 3px;border:1px solid #2f3932;border-radius:14px;background:#171c18;color:#8e9b92;box-shadow:inset 0 -2px 0 #101311}
#appDock>button i{font:700 20px/1 ui-monospace,SFMono-Regular,Menlo,monospace;font-style:normal;color:#a9b4ac}
#appDock>button span{overflow:hidden;width:100%;font:750 9px/1.1 Manrope,Arial,sans-serif;text-align:center;text-overflow:ellipsis;white-space:nowrap}
#appDock>button[aria-pressed=true]{border-color:#778d7f;background:#35443a;color:#f7faf7;box-shadow:inset 0 -3px 0 #9bae9f}
#appDock>button[aria-pressed=true] i{color:#d9ff69}
#appDock>#surfaceTraining[aria-pressed=true]{border-color:#8ca44c;background:#34422d;color:#fff;box-shadow:inset 0 -3px 0 #d9ff69}
#newShell #exerciseTabs{display:none!important}
#newShell .new-titlebar #chooseLesson{display:grid;grid-column:auto;width:100%;min-height:46px;height:auto;padding:7px 12px;border:1px solid #303a33;border-radius:12px;background:#151a16;color:#eff4f0}
#newShell.course-mode:not(.session-active) .new-titlebar #chooseLesson,#newShell.metro-mode .new-titlebar #chooseLesson{display:none}
#newShell #chooseLesson .setup-kicker{display:block;font-size:8px;color:#7f8e84}
#newShell #chooseLesson strong{font-size:11px;color:#dce5de}
#trainingInvite{display:none!important}
#idleActions{display:block;min-height:54px}
#idleActions #mainStart{width:100%;min-height:54px;height:54px;border-radius:16px;background:#eeeef3;color:#111;font-weight:780;box-shadow:0 2px 0 #a8a8ad}
#idleActions #openCalibration{display:none!important}
#openCourseMap{display:none!important}
#courseJourney[role=button]{cursor:pointer;outline:none}
#courseJourney[role=button]:focus-visible{outline:2px solid #d9ff69;outline-offset:3px}
#courseJourney[role=button].tap-active{filter:brightness(1.08);transform:scale(.995)!important}
#lessonDialog.training-hub .lesson-picker{display:block!important}
#lessonDialog.training-hub .lesson-choices{display:grid;gap:8px}
#lessonDialog.training-hub #lessonMetroChoice,#lessonDialog.training-hub #lessonToday{display:none!important}
#lessonDialog.training-hub #lessonStatus{display:none!important}
#lessonDialog.training-hub .lesson-choices button{min-height:68px}
.course-world-road>div[role=button],.course-mini-path>div[tabindex]{min-height:44px;touch-action:manipulation}
.course-world-tasks>button,.course-review-list>button{min-height:44px}
.new-dialog>header button{min-width:44px;min-height:44px}
@media(max-width:420px){
 #appDock{gap:5px}
 #newShell #appDock>button{min-height:56px!important;height:56px!important;border-radius:13px;padding-inline:2px}
 #appDock>button span{font-size:8px;letter-spacing:-.01em}
 #appDock>button i{font-size:19px}
}
@media(max-height:700px){
 #newShell .new-titlebar{gap:4px}
 #newShell #appDock>button{grid-template-rows:18px auto;min-height:48px!important;height:48px!important;padding:4px 2px}
 #appDock>button i{font-size:16px}
 #idleActions,#idleActions #mainStart{min-height:48px;height:48px}
}

/* v114: the coach belongs to the metronome; Progress reports results instead of duplicating Course. */
body.redesign #newShell.metro-mode:not(.session-active)>#characterStage{
 display:grid!important;--character-stage-size:clamp(150px,23dvh,220px);--character-stage-bottom:222px
}
.course-method{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.course-method>span{display:grid;gap:3px;min-width:0;padding:7px 8px;border:1px solid #334039;border-radius:8px;background:#141a16;color:#9eaaa2;font:650 7px/1.25 Manrope,Arial,sans-serif;text-align:center}
.course-method b{color:#d7e0da;font:800 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em}
.course-mirror-check{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:4px 0!important}
.course-mirror-check>span{display:grid;align-content:start;gap:4px;min-width:0;padding:9px;border:1px solid #344239;border-radius:9px;background:#131915}
.course-mirror-check b{color:#dce6df;font:800 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em}
.course-mirror-check i{color:#9aa79f;font:600 9px/1.35 Manrope,Arial,sans-serif;font-style:normal}
.progress-report{padding-top:0}
.progress-report-intro{display:grid;gap:6px;padding:15px 16px;border:1px solid #344038;border-radius:15px;background:linear-gradient(145deg,#222a24,#151a17)}
.progress-report-intro small{color:#91a096;font:800 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em}
.progress-report-intro h2{margin:0!important;color:#f0f5f1!important;font-size:21px!important;line-height:1.15!important}
.progress-report-intro p{margin:0!important;color:#a8b4ac!important;font-size:11px!important;line-height:1.45!important}
#statsDialog .progress-report>.practice-totals{grid-template-columns:repeat(3,minmax(0,1fr));margin:0}
#statsDialog .progress-report>.practice-totals>div{padding:13px 4px;border:1px solid #303a33;border-radius:12px;background:#191f1b}
#statsDialog .progress-report>.practice-totals strong{font-size:21px}
.progress-focus{border-left-color:#d9ff69;background:#202820}
.progress-focus small{color:#a9b49f}.progress-focus strong{font-size:16px}.progress-focus span{font-size:11px}
#statsDialog .progress-report .course-totals{grid-template-columns:repeat(4,minmax(0,1fr))}
#statsDialog .progress-report .course-totals>div{border:1px solid #303a33;background:#171d19}
#statsDialog .progress-report .course-totals strong{font-size:18px}
#statsDialog .progress-technical{margin-top:16px!important;padding:0 12px 8px!important;border-radius:13px!important}
@media(max-width:480px){
 .course-mirror-check{grid-template-columns:1fr}.course-mirror-check>span{grid-template-columns:72px minmax(0,1fr);align-items:center}
 #statsDialog .progress-report .course-totals{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-height:700px){body.redesign #newShell.metro-mode:not(.session-active)>#characterStage{--character-stage-size:clamp(125px,19dvh,150px);--character-stage-bottom:200px}.course-method{display:none}}

/* v115: Course is one canonical home screen — no preview card and no duplicate modal map. */
body.redesign #newShell.course-mode:not(.session-active){grid-template-rows:44px auto minmax(0,1fr)!important}
body.redesign #newShell.course-mode:not(.session-active) #idleActions{display:none!important}
body.redesign #newShell.course-mode:not(.session-active) #newStage .console>#courseJourney{
 display:grid!important;grid-template-rows:none;align-content:start;gap:12px;
 min-width:0;min-height:0;padding:12px 14px 18px;border:2px solid #64786a;border-radius:8px;
 background:linear-gradient(90deg,#ffffff04 1px,transparent 1px),linear-gradient(#ffffff04 1px,transparent 1px),radial-gradient(circle at 85% 5%,#405448 0,transparent 24%),#111713;
 background-size:20px 20px,20px 20px,auto,auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:100px;scrollbar-width:thin;scrollbar-color:#617669 transparent
}
#courseJourney .course-map-tabs{position:sticky;z-index:8;top:0;grid-template-columns:repeat(3,minmax(0,1fr));box-shadow:0 9px 20px #0d110edd}
#courseJourney #courseMapStart{position:sticky;z-index:7;top:50px;width:100%;min-height:54px;border:0;border-radius:12px;background:#eeeef3;color:#111;font-size:13px;font-weight:800;opacity:1;box-shadow:0 8px 20px #0b0e0bbb,0 2px 0 #a8a8ad}
#courseJourney #courseMapStart:disabled{background:#b9bbbf;color:#3b3c3e;opacity:1}
#courseJourney #courseMapPanel,#courseJourney #courseReviewPanel,#courseJourney #courseAchievementPanel{min-width:0}
#courseJourney .campaign-map-hero{margin:0}
#courseJourney .course-map-current{scroll-margin-top:100px}
@media(max-height:700px){
 body.redesign #newShell.course-mode:not(.session-active){grid-template-rows:36px auto minmax(0,1fr)!important}
 body.redesign #newShell.course-mode:not(.session-active) #newStage .console>#courseJourney{padding:9px 10px 14px;gap:9px}
 #courseJourney #courseMapStart{top:46px;min-height:48px}
}
@media(max-width:480px){
 #courseJourney .campaign-map-hero{grid-template-columns:76px minmax(0,1fr);gap:10px;padding:10px}
 #courseJourney .campaign-current-avatar{width:68px!important;height:68px!important}
 #courseJourney .campaign-map-hero h3{font-size:15px}
 #courseJourney .campaign-map-hero p{font-size:9px;line-height:1.35}
 #courseJourney .course-map-tabs button{padding-inline:3px;font-size:8px!important}
 #courseJourney #courseMapStart{font-size:12px}
}

/* v116: the authored path stays fixed; Coach turns measured weaknesses into a short corrective microcycle. */
.coach-intro{border-left-color:#d9ff69;background:linear-gradient(135deg,#273120,#172019)}
.coach-intro>small,.coach-prescription>small{color:#d9ff69;font:850 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em}
.coach-weakness-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.coach-weakness-list>article{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;min-width:0;padding:10px;border:1px solid #3b493f;border-radius:10px;background:#151c17}
.coach-weakness-list>article[role=button]{cursor:pointer;touch-action:manipulation;transition:border-color .15s ease,background .15s ease,transform .15s ease}.coach-weakness-list>article[role=button]:hover,.coach-weakness-list>article[role=button]:focus-visible{border-color:#8fa56d;background:#1d271f;outline:none}.coach-weakness-list>article[role=button]:active{transform:scale(.985)}.coach-weakness-list>article.primary{grid-column:1/-1;border-color:#c9f35e;background:linear-gradient(135deg,#26321f,#172019);box-shadow:0 0 0 1px #566b3a inset}
.coach-weakness-list>article>b{display:grid;place-items:center;width:30px;height:30px;border:1px solid #6c806f;border-radius:7px;background:#28352c;color:#d9ff69;font:900 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace}
.coach-weakness-list>article>span{display:grid;gap:4px;min-width:0}.coach-weakness-list strong{color:#e9efeb;font-size:11px}.coach-weakness-list small{color:#91a096;font-size:8px;line-height:1.3}
.coach-weakness-list i{position:relative;display:block;height:3px;overflow:hidden;border-radius:2px;background:#303a33}.coach-weakness-list i::before{content:'';position:absolute;inset:0 auto 0 0;width:var(--severity);background:#d9ff69}
.coach-prescription{display:grid;gap:8px;padding:12px;border:1px solid #4b5d50;border-radius:12px;background:#101612}
.coach-memory{display:grid;gap:9px;padding:12px;border:1px solid #46544a;border-radius:12px;background:linear-gradient(145deg,#111713,#171f19)}
.coach-memory>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.coach-memory>header span{display:grid;gap:4px}.coach-memory>header small{color:#9aa79e;font:800 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.13em}.coach-memory>header b{color:#e8eee9;font-size:11px}.coach-memory>header>strong{min-width:54px;padding:7px 8px;border:1px solid #657367;border-radius:8px;color:#d9ff69;text-align:center;font:900 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace}
.coach-treatment-history{display:grid;gap:6px}.coach-treatment-history>article{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px;border:1px solid #344039;border-radius:9px;background:#101512}.coach-treatment-history>article>b{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#263128;color:#d9ff69;font:900 13px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.coach-treatment-history>article>span{display:grid;gap:3px;min-width:0}.coach-treatment-history strong{color:#e6ece8;font-size:10px}.coach-treatment-history small{color:#8f9c94;font-size:8px;line-height:1.35}.coach-treatment-history i{color:#9ba79f;font:850 7px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;text-align:right}.coach-treatment-history article.resolved{border-color:#53694f}.coach-treatment-history article.resolved>i{color:#b8da83}.coach-treatment-history article.needs-work{border-color:#806348}.coach-treatment-history article.needs-work>i{color:#efb66d}.coach-treatment-history>p{margin:0;padding:10px;border:1px dashed #39443d;border-radius:8px;color:#849188;font-size:9px;line-height:1.5}
#courseCoachSteps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#courseCoachSteps>article{min-width:0;padding:9px;border:1px solid #35433a;border-radius:9px;background:#19211c}#courseCoachSteps span{display:grid;gap:4px}#courseCoachSteps b{color:#d9ff69;font:850 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace}#courseCoachSteps strong{color:#edf3ee;font-size:10px;line-height:1.25}#courseCoachSteps small{color:#8f9d93;font-size:8px;line-height:1.35}
.course-review-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;padding-top:6px;border-top:1px dashed #415046}.course-review-heading b{color:#d7e0da;font-size:11px}.course-review-heading span{color:#829087;font-size:8px;text-align:right}
.progress-weaknesses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.progress-weaknesses>article{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:8px;padding:8px;border:1px solid #303d34;border-radius:9px;background:#151b17}.progress-weaknesses>article>b{display:grid;place-items:center;width:25px;height:25px;border-radius:6px;background:#2e3a31;color:#d9ff69;font:850 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.progress-weaknesses>article>span{display:grid;gap:2px;min-width:0}.progress-weaknesses strong{color:#dce4de;font-size:10px}.progress-weaknesses small{color:#87958b;font-size:8px}
@media(max-width:540px){.coach-weakness-list,.progress-weaknesses{grid-template-columns:1fr}#courseCoachSteps{grid-template-columns:1fr}.course-review-heading{align-items:start;flex-direction:column}.course-review-heading span{text-align:left}.coach-treatment-history>article{grid-template-columns:30px minmax(0,1fr)}.coach-treatment-history i{grid-column:2;text-align:left}}

/* v119: teach before testing; keep the map focused on the chapter in hand. */
#courseJourney .course-world:not(.current) .course-world-acts{display:none}
#courseJourney .course-world:not(.current)>header{margin:0}
#courseJourney .course-world:not(.current){padding-block:9px}
#courseBriefDialog{width:min(620px,96vw)}
#courseBriefDialog .dialog-content{padding:14px 16px 18px}
.course-brief{display:grid;gap:13px}
.course-brief>small{color:#d9ff69;font:850 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.13em}
.course-brief h2{margin:0;color:#f3f6f4;font:850 24px/1.08 Manrope,Arial,sans-serif;letter-spacing:-.035em}
.course-brief>p{margin:0;color:#aab5ad;font-size:12px;line-height:1.5}
.course-brief-contract{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.course-brief-contract>span{display:grid;gap:5px;padding:10px 11px;border:1px solid #35433a;border-radius:10px;background:#151d18}.course-brief-contract small{color:#829188;font:800 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.09em}.course-brief-contract b{color:#dce5de;font-size:10px;line-height:1.4}.course-brief-contract>span:last-child{border-color:#64785f;background:#1d281c}.course-brief-contract>span:last-child small{color:#d9ff69}
.course-brief-preflight{display:grid;gap:8px;padding:11px 12px;border:1px solid #708263;border-radius:10px;background:#202b1d}
.course-brief-preflight[hidden]{display:none}
.course-brief-preflight>b{color:#d9ff69;font:850 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em}
.course-brief-preflight ul{display:grid;gap:5px;margin:0;padding:0;list-style:none;counter-reset:preflight}
.course-brief-preflight li{display:grid;grid-template-columns:20px minmax(0,1fr);gap:7px;color:#dce5de;font-size:11px;line-height:1.4;counter-increment:preflight}
.course-brief-preflight li:before{content:counter(preflight);display:grid;place-items:center;width:18px;height:18px;border-radius:5px;background:#d9ff69;color:#172016;font:900 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace}
.course-brief-preflight>small{color:#8f9d93;font-size:9px;line-height:1.4}
.course-brief>.course-brief-tempo{padding:10px 11px;border:1px solid #526245;border-radius:10px;background:#1d261a;color:#d9ff69;font:750 10px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.025em}
.course-brief-route{display:flex;gap:6px;overflow-x:auto;padding:1px 0 4px;scrollbar-width:thin}.course-brief-route span{display:grid;grid-template-columns:20px max-content;align-items:center;gap:6px;flex:none;padding:6px 9px 6px 6px;border:1px solid #35433a;border-radius:9px;background:#151d18}.course-brief-route b{display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:#35443a;color:#eff4f0;font:850 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.course-brief-route i{max-width:160px;color:#aab5ad;font-size:9px;font-style:normal;line-height:1.2;white-space:normal}
.course-brief-patterns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.course-brief-patterns>span{display:grid;gap:8px;min-width:0;padding:11px;border:1px solid #46584b;border-radius:10px;background:#111713}
.course-brief-patterns small{color:#829188;font:800 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em}
.course-score{display:flex;flex-wrap:wrap;align-items:flex-start;gap:5px;min-width:0}
.course-score>.score-copy{color:#eef3ef;font:800 12px/1.4 Manrope,Arial,sans-serif}
.course-score>.score-token{display:grid;grid-template-rows:9px 23px 9px;place-items:center;min-width:23px;padding:2px;border:1px solid #334138;border-radius:5px;background:#18201b;color:#eef3ef}
.course-score>.score-token i{color:#6f7d74;font:900 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.course-score>.score-token b{font:900 15px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.course-score>.score-token small{color:#9eaca3;font:800 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace}
.course-score>.score-token.accent{border-color:#d9ff69;background:#23301e}.course-score>.score-token.accent i{color:#d9ff69}.course-score>.score-token.level-full,.course-score>.score-token.level-down{box-shadow:inset 0 2px #d9ff69}.course-score>p{flex:1 0 100%;margin:2px 0 0;color:#85938a;font:650 8px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace}
.course-brief-coaching{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.course-brief-coaching article{display:grid;gap:6px;padding:10px 11px;border:1px solid #35433a;border-radius:10px;background:#151d18}.course-brief-coaching b{color:#d9ff69;font:850 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em}.course-brief-coaching span{color:#b3beb6;font-size:10px;line-height:1.45}.course-brief-coaching .stop{border-color:#6d4936;background:#211914}.course-brief-coaching .stop b{color:#ffb36b}
.course-brief-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.course-brief-checks article{display:grid;align-content:start;gap:7px;min-width:0;padding:11px;border:1px solid #35433a;border-radius:10px;background:#19211c}
.course-brief-checks b{color:#d9ff69;font:850 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em}
.course-brief-checks span{color:#b3beb6;font-size:10px;line-height:1.4}
.course-brief-honesty{padding:10px 11px;border-left:3px solid #ffb36b;background:#211b15!important;color:#d1c0ad!important;font-size:10px!important}
.course-brief-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.course-brief-actions button{min-height:52px;border-radius:12px}
.course-brief-actions .primary{background:#eeeef3;color:#111;font-weight:800}
@media(max-width:520px){.course-brief-contract,.course-brief-patterns,.course-brief-coaching,.course-brief-checks,.course-brief-actions{grid-template-columns:1fr}.course-brief h2{font-size:21px}.course-brief-checks article{grid-template-columns:100px minmax(0,1fr);align-items:start}}
.progress-evidence{display:grid;gap:5px;padding:13px 14px;border:1px solid #425449;border-radius:12px;background:#172019}.progress-evidence small{color:#d9ff69;font:850 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em}.progress-evidence strong{color:#eef3ef;font-size:15px}.progress-evidence span{color:#9ca9a1;font-size:10px;line-height:1.45}

/* v129: 48 complete lessons, a playable placement check, and progressive disclosure. */
.course-placement{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px;border:1px solid #64785f;border-radius:12px;background:linear-gradient(135deg,#263321,#171f19)}
.course-placement>div{display:grid;gap:4px}.course-placement small{color:#d9ff69;font:850 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em}.course-placement b{color:#eff5f0;font-size:15px}.course-placement span{color:#99a79d;font-size:9px;line-height:1.4}.course-placement button{min-height:42px;padding:8px 13px;border-color:#9db084;background:#d9ff69;color:#152014;font-weight:850;touch-action:manipulation}
.course-world-act .course-world-road{grid-template-columns:1fr}.course-world-act .course-world-road::before{display:none}.course-world-act .course-world-road>div{grid-template-columns:38px minmax(0,1fr);justify-items:start;text-align:left}.course-world-act .course-world-road>div span{display:block;width:auto;font-size:7px;letter-spacing:.02em}
.course-brief-details{display:grid;gap:10px;padding:10px 11px;border:1px solid #35433a;border-radius:10px;background:#111713}.course-brief-details>summary{cursor:pointer;color:#b8c4bc;font:800 9px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.04em}.course-brief-details[open]>summary{margin-bottom:10px;color:#d9ff69}.course-brief-details .course-brief-tempo{margin:0 0 9px;padding:9px 10px;border-left:3px solid #708263;background:#1b241d;color:#c4d0c7;font-size:10px;line-height:1.45}.course-brief-details .course-brief-coaching,.course-brief-details .course-brief-checks{margin-top:8px}
#placementDialog{width:min(480px,94vw)}.placement-intro{display:grid;gap:14px}.placement-intro>small{color:#d9ff69;font:850 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em}.placement-intro h2{margin:0;color:#f1f5f2;font-size:24px;line-height:1.08}.placement-intro p{margin:0;color:#aab6ae;font-size:12px;line-height:1.55}.placement-intro ul{display:grid;gap:7px;margin:0;padding-left:20px;color:#9eaaa2;font-size:10px;line-height:1.4}.placement-intro button{min-height:54px;border-radius:12px;background:#eeeef3;color:#111;font-weight:850}

/* v131: a student-facing progress summary and an explicit two-step reset gate. */
#statsDialog{width:min(640px,96vw)}
#statsDialog .dialog-content{padding:12px 16px 18px}
#statsDialog .progress-dashboard>.topline{display:none}
#statsDialog .progress-identity{grid-template-columns:86px minmax(0,1fr);margin:0 0 10px;padding:13px;border:1px solid #617669;border-radius:14px;background:radial-gradient(circle at 8% 0,#405448,transparent 44%),#121814;box-shadow:none}
#statsDialog .progress-avatar{width:78px;height:78px}
.progress-rank-track{display:block;height:6px;margin-top:5px;overflow:hidden;border:1px solid #3e4c43;border-radius:999px;background:#0f1411}.progress-rank-track i{display:block;width:0;height:100%;border-radius:inherit;background:#d9ff69;transition:width .35s ease}
#statsDialog .progress-report{gap:10px}
#statsDialog .progress-report-intro{padding:12px 14px;border-radius:12px;background:#171e19}
#statsDialog .progress-report-intro h2{font-size:19px!important}
#statsDialog .progress-report-intro p{font-size:10px!important}
.progress-scoreboard{display:grid;gap:8px;padding:12px;border:1px solid #38473d;border-radius:13px;background:#101612}.progress-scoreboard>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.progress-scoreboard>header small{color:#84928a;font:800 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em}.progress-scoreboard>header b{color:#cdd7d0;font-size:9px;font-weight:700;text-align:right}
#statsDialog .progress-scoreboard>.practice-totals{grid-template-columns:repeat(3,minmax(0,1fr));margin:0}
#statsDialog .progress-scoreboard>.practice-totals>div{padding:13px 4px;border:1px solid #36423a;border-radius:10px;background:#1b231d}
#statsDialog .progress-scoreboard>.practice-totals strong{font-size:22px}
#statsDialog .progress-scoreboard>.course-totals{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
#statsDialog .progress-scoreboard>.course-totals>div{padding:9px 3px;border:0;border-radius:8px;background:#151b17}
#statsDialog .progress-scoreboard>.course-totals strong{font-size:15px}
#statsDialog .progress-scoreboard>.course-totals span{font-size:7px}
#statsDialog .progress-evidence{padding:11px 12px}
.progress-coach-card{display:grid;gap:7px}.progress-coach-card .progress-focus{padding:13px 14px;border-left-width:3px;border-radius:4px 11px 11px 4px}.progress-coach-card .progress-focus strong{font-size:15px}.progress-coach-card .progress-focus span{font-size:10px}
.progress-weakness-details{padding:8px 10px;border:1px solid #344038;border-radius:10px;background:#111713}.progress-weakness-details[hidden]{display:none}.progress-weakness-details>summary{cursor:pointer;color:#9ba89f;font:800 8px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.06em}.progress-weakness-details[open]>summary{margin-bottom:8px;color:#d9ff69}
#statsDialog .progress-weaknesses{grid-template-columns:1fr;gap:5px}
#statsDialog .course-skills{gap:8px;padding:12px;border:1px solid #344038;border-radius:12px;background:#111713}
#statsDialog .achievement-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#statsDialog .achievement-grid.compact>article{min-height:62px}
#statsDialog .progress-data-tools{margin-top:10px;padding:10px 12px;border:1px solid #303b34;border-radius:12px;background:#111713}
.account-reset{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin-top:4px;padding:13px;border:1px solid #5a4038;border-radius:13px;background:#201714}.account-reset>span,.account-reset>div{display:grid;gap:4px}.account-reset strong{color:#f0e8e4;font-size:12px}.account-reset p{margin:0!important;color:#ae9c94!important;font-size:9px!important;line-height:1.45}.account-reset button{min-height:40px;padding:8px 12px;border-color:#795248;background:#2a1b17;color:#e9c4b8;font-size:10px;font-weight:800}.account-reset.confirming{grid-template-columns:1fr;background:#261815}.account-reset.confirming>div:nth-child(2){grid-template-columns:1fr 1fr}.account-reset .account-reset-confirm{border-color:#a45d4a;background:#833f31;color:#fff}.account-reset-status{min-height:14px;color:#ffc1ad!important}.account-reset.complete{display:grid;grid-template-columns:1fr;border-color:#557052;background:#182119}.account-reset.complete strong{color:#d9ff69}
@media(max-width:520px){#statsDialog .dialog-content{padding-inline:10px}#statsDialog .progress-identity{grid-template-columns:70px minmax(0,1fr)}#statsDialog .progress-avatar{width:62px;height:62px}#statsDialog .progress-identity strong{font-size:18px}#statsDialog .progress-scoreboard>.practice-totals strong{font-size:18px}#statsDialog .progress-scoreboard>.course-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.progress-scoreboard>header{align-items:flex-start;flex-direction:column}.progress-scoreboard>header b{text-align:left}.account-reset{grid-template-columns:1fr}.account-reset>button{width:100%}}
@media(max-width:520px){.course-placement{grid-template-columns:1fr}.course-placement button{width:100%}.course-world-act .course-world-road>div{grid-template-columns:32px minmax(0,1fr)}}

/* v132: cold start is already the Course surface; never flash the free trainer underneath it. */
#newShell.course-boot #newStage{position:relative}
#newShell.course-boot #newStage>.console{visibility:hidden!important;pointer-events:none}
#newShell.course-boot #idleActions,#newShell.course-boot>#characterStage{display:none!important}
#courseBoot{display:none}
#newShell.course-boot #courseBoot{
 display:grid;grid-template-columns:82px minmax(0,1fr);align-items:center;gap:14px;
 position:absolute;inset:0;z-index:20;min-width:0;padding:16px;border:2px solid #64786a;border-radius:8px;
 background:linear-gradient(90deg,#ffffff04 1px,transparent 1px),linear-gradient(#ffffff04 1px,transparent 1px),radial-gradient(circle at 85% 5%,#405448 0,transparent 24%),#111713;
 background-size:20px 20px,20px 20px,auto,auto;color:#eef5ef
}
#courseBoot>.pixel-frame{width:76px;height:76px}
#courseBoot>div{display:grid;gap:7px;min-width:0}
#courseBoot small{color:#d9ff69;font:850 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.13em}
#courseBoot strong{font:850 clamp(17px,4.8vw,23px)/1.12 Manrope,Arial,sans-serif;letter-spacing:-.025em}
#courseBoot i{display:block;width:100%;height:5px;overflow:hidden;border:1px solid #44554a;background:#0d120f}
#courseBoot i::after{content:'';display:block;width:38%;height:100%;background:#d9ff69;animation:course-boot-progress .9s steps(6,end) infinite}
@keyframes course-boot-progress{from{transform:translateX(-110%)}to{transform:translateX(300%)}}
@media(max-width:420px){#newShell.course-boot #courseBoot{grid-template-columns:64px minmax(0,1fr);gap:10px;padding:12px}#courseBoot>.pixel-frame{width:58px;height:58px}}

/* v133: progress data stays compact; reset is visible and deliberate. */
#statsDialog .progress-data-tools>summary{color:#d5ded7;font-size:10px;font-weight:800}
#statsDialog .progress-data-tools>.row{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0}
#statsDialog .progress-data-tools>.row>*{display:grid;place-items:center;min-height:42px;margin:0;padding:8px;border:1px solid #39463e;border-radius:9px;background:#181f1a;color:#c4cec7;font-size:9px;text-align:center}
#statsDialog .progress-data-tools input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.progress-reset{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px;border:1px solid #68483e;border-radius:10px;background:#211815}
.progress-reset>span{display:grid;gap:3px}.progress-reset strong{color:#eee7e3;font-size:11px}.progress-reset p{grid-column:1/-1;margin:0!important;color:#ad9b94!important;font-size:8px!important;line-height:1.45}.progress-reset>button{min-height:40px;padding:7px 11px;border:1px solid #85584c;background:#301d18;color:#efc5b8;font-size:9px;font-weight:850}
.progress-reset>#progressResetConfirm{grid-column:1/-1;display:grid;gap:8px;padding-top:9px;border-top:1px solid #5b3c34}.progress-reset>#progressResetConfirm[hidden]{display:none}.progress-reset>#progressResetConfirm>span{display:grid;grid-template-columns:1fr 1fr;gap:7px}.progress-reset>#progressResetConfirm button{min-height:42px}.progress-reset #progressResetApply{border-color:#a45d4a;background:#833f31;color:#fff;font-weight:850}.progress-reset.confirming>span,.progress-reset.confirming>#progressResetOpen{display:none}.progress-reset.complete{grid-template-columns:1fr;border-color:#557052;background:#182119}.progress-reset.complete strong{color:#d9ff69}.progress-reset.complete>#progressResetOpen{display:none}
#progressResetStatus:empty{display:none}.progress-session-list{margin-top:9px!important;padding:9px 10px;border:1px solid #303b34;border-radius:9px;background:#0f1511}.progress-session-list>summary{color:#919f96;font-size:9px;cursor:pointer}.progress-session-list #sessionHistory{display:grid;gap:5px;margin-top:8px}.progress-session-list #sessionHistory>details{margin:0;padding:7px 8px;border:1px solid #303b34;border-radius:7px;background:#151b17}.progress-session-list #sessionHistory summary{font-size:8px}.progress-session-list #sessionHistory p{font-size:8px!important}.progress-data-tools>#historyStorage{margin:9px 0 0!important;color:#7f8d84!important;font-size:8px!important;line-height:1.45}
@media(max-width:520px){#statsDialog .progress-data-tools>.row,.progress-reset{grid-template-columns:1fr}.progress-reset>button{width:100%}}

/* v134: Progress is a drummer profile; it owns avatar and rank while Course owns the path. */
#statsDialog{width:min(620px,100vw);max-width:none;height:100dvh;max-height:100dvh;margin:0 auto;border:0;border-inline:1px solid #303a33;border-radius:0;background:#0d120f}
#statsDialog::backdrop{background:#090b0a}
#statsDialog>header{padding:13px 16px;border-color:#2e3831;background:#0d120fee;backdrop-filter:blur(12px)}
#statsDialog>header h2{font-size:17px}
#statsDialog .dialog-content{height:calc(100dvh - 69px);max-height:none;padding:12px 14px 26px;overflow-y:auto;overscroll-behavior:contain;background:radial-gradient(circle at 15% 0,#34493b55,transparent 280px),linear-gradient(90deg,#ffffff03 1px,transparent 1px),linear-gradient(#ffffff03 1px,transparent 1px),#0d120f;background-size:auto,20px 20px,20px 20px,auto}
#statsDialog .progress-dashboard{padding:0}
#statsDialog #skillProgress,#statsDialog .records{display:none!important}
#statsDialog .progress-identity{grid-template-columns:112px minmax(0,1fr);gap:16px;margin:0 0 13px;padding:16px;border:1px solid #6a8070;border-radius:16px;background:radial-gradient(circle at 13% 0,#4b6654,transparent 43%),linear-gradient(145deg,#17231b,#101612);box-shadow:inset 0 0 0 3px #223128}
#statsDialog .progress-avatar{width:104px;height:104px;border-color:#d9ff69;background:#18211b}
#statsDialog .progress-profile-copy{align-content:center;gap:6px}
#statsDialog .progress-profile-copy small{color:#b0c0b4}
#statsDialog .progress-profile-copy strong{font-size:25px}
#statsDialog .progress-profile-copy b{font-size:11px}
#statsDialog .progress-rank-track{height:8px;margin-top:2px}
#statsDialog .progress-report{gap:13px}
#statsDialog .progress-report>h3{margin:3px 2px -5px;color:#aab8ae;font:850 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em;text-transform:uppercase}
#statsDialog .progress-coach-card{gap:8px;padding:0;border:1px solid #52685a;border-radius:14px;background:#111913;overflow:hidden}
#statsDialog .progress-coach-card .progress-focus{padding:15px 15px 8px;border:0;border-radius:0;background:transparent}
#statsDialog .progress-coach-card .progress-focus small{color:#d9ff69}
#statsDialog .progress-coach-card .progress-focus strong{font-size:17px}
#statsDialog .progress-coach-card .progress-focus span{font-size:11px;line-height:1.5}
#statsDialog .progress-coach-start{width:calc(100% - 20px);min-height:48px;margin:0 10px 10px;border:0;border-radius:11px;background:#eeeef3;color:#111;font-size:12px;font-weight:850;box-shadow:0 2px 0 #a8a8ad}
#statsDialog .progress-weakness-details{margin:0 10px 10px}
#statsDialog .progress-scoreboard{gap:10px;padding:12px 13px;border-color:#344239;background:#101612}
#statsDialog .progress-scoreboard>header{display:block}
#statsDialog .progress-scoreboard>.practice-totals>div{padding:14px 4px;border-color:#334139;background:#19211b}
#statsDialog .progress-scoreboard>.practice-totals strong{font-size:23px}
#statsDialog .progress-evidence{padding:13px 14px;border-color:#3d5144;background:#151e18}
#statsDialog .course-skills{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(134px,1fr);gap:7px;padding:0;border:0;background:transparent;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:thin}
#statsDialog .course-skills>div{align-content:space-between;min-height:78px;padding:11px;border:1px solid #344239;border-radius:11px;background:#121914;scroll-snap-align:start}
#statsDialog .course-skills>div>span{align-items:flex-start;flex-direction:column;gap:5px;font-size:9px;line-height:1.25}
#statsDialog .course-skills b{color:#dbe4de}
#statsDialog .course-skills i{font-size:8px}
#statsDialog .course-skills>div>div{height:7px}
#statsDialog .achievement-grid.compact{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:thin}
#statsDialog .achievement-grid.compact>article{flex:0 0 min(220px,72vw);min-height:68px;scroll-snap-align:start}
#statsDialog .progress-technical,#statsDialog .progress-data-tools{margin:10px 0 0!important;padding:10px 12px!important;border:1px solid #2d3831!important;border-radius:11px!important;background:#0f1511!important}
#statsDialog .progress-technical>summary,#statsDialog .progress-data-tools>summary{color:#94a198!important;font-size:9px!important;letter-spacing:.04em;text-transform:none}
@media(max-width:520px){#statsDialog .dialog-content{padding:10px 10px 24px}#statsDialog .progress-identity{grid-template-columns:90px minmax(0,1fr);gap:12px;padding:13px}#statsDialog .progress-avatar{width:84px;height:84px}#statsDialog .progress-profile-copy strong{font-size:21px}#statsDialog .progress-scoreboard>.practice-totals strong{font-size:19px}}
@media(max-width:370px){#statsDialog .progress-identity{grid-template-columns:74px minmax(0,1fr)}#statsDialog .progress-avatar{width:68px;height:68px}#statsDialog .progress-profile-copy strong{font-size:18px}}

/* v135: one visual language. Course is the curriculum; Progress is the student profile. */
body.redesign{
 --ui-bg:#0d120f;--ui-panel:#151a16;--ui-panel-raised:#1b211c;--ui-line:#303a33;--ui-line-strong:#617066;
 --ui-accent:#8fa094;--ui-accent-soft:#35443a;--ui-text:#eef2ef;--ui-muted:#909a93;--ui-radius:12px;--ui-radius-small:8px
}
body.redesign #newShell .new-header button,body.redesign #newShell #appDock>button,body.redesign #newShell #exerciseTabs>button,
body.redesign #newShell #chooseLesson,body.redesign #newShell #idleActions>button,body.redesign .new-dialog>header>button,
body.redesign .new-dialog .primary,body.redesign .new-dialog details,body.redesign .new-dialog article,body.redesign .new-dialog section{
 border-radius:var(--ui-radius)
}
body.redesign #newShell #appDock>button,body.redesign #newShell #exerciseTabs>button,body.redesign #newShell #chooseLesson{
 border-color:var(--ui-line);background:var(--ui-panel);box-shadow:none
}
body.redesign #newShell #appDock>button[aria-pressed=true],body.redesign #newShell #exerciseTabs>button[aria-pressed=true]{
 border-color:var(--ui-accent);background:var(--ui-accent-soft);color:var(--ui-text);box-shadow:none
}
body.redesign #newShell #appDock>button[aria-pressed=true] i,body.redesign #newShell #exerciseTabs>button[aria-pressed=true]{color:var(--ui-text)}
body.redesign .new-dialog{border-color:var(--ui-line);background:var(--ui-bg)}
body.redesign .new-dialog>header{border-color:var(--ui-line);background:var(--ui-bg)}
body.redesign .new-dialog .dialog-content{background-color:var(--ui-bg)}

/* The course no longer repeats avatar, rank, coach, achievements or the current-lesson synopsis. */
#courseJourney .campaign-map-hero,#courseJourney .course-map-tabs,#courseJourney #courseMapCurrent,
#courseJourney #courseReviewPanel,#courseJourney #courseAchievementPanel{display:none!important}
body.redesign #newShell.course-mode:not(.session-active) #newStage .console>#courseJourney{
 gap:8px;padding:10px 12px 18px;border:1px solid var(--ui-line);border-radius:var(--ui-radius);clip-path:none;
 background:var(--ui-bg);box-shadow:none
}
#courseJourney #courseMapPanel{display:grid!important;gap:8px}
#courseJourney #courseMapStart{order:0;position:sticky;top:0;z-index:5;min-height:50px;border:0;border-radius:var(--ui-radius);background:#eeeef3;color:#111;box-shadow:0 2px 0 #a7aaa8;font-size:13px;font-weight:850}
#courseJourney .course-placement{order:1;display:block;padding:0;border:0;border-radius:0;background:none}
#courseJourney .course-placement>div{display:none}
#courseJourney .course-placement button{width:100%;min-height:42px;padding:8px 12px;border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:var(--ui-panel);color:var(--ui-muted);font-weight:750;box-shadow:none}
#courseJourney .course-map-path{order:2;gap:7px;padding:0}
#courseJourney .course-world,#courseJourney .course-world[data-discipline]{
 --track:var(--ui-accent);gap:0;padding:0!important;overflow:hidden;border:1px solid var(--ui-line);border-left:1px solid var(--ui-line);border-radius:var(--ui-radius);background:var(--ui-panel);box-shadow:none
}
#courseJourney .course-world::before{display:none}
#courseJourney .course-world.current,#courseJourney .course-world.complete{border-color:var(--ui-line-strong);background:var(--ui-panel);box-shadow:none}
#courseJourney .course-world.locked{opacity:.52}
#courseJourney .course-world>header,#courseJourney .course-world:not(.current)>header{align-items:center;margin:0;padding:12px 13px}
#courseJourney .course-world>header>span{gap:4px}
#courseJourney .course-world>header small{color:var(--ui-muted);font-size:8px}
#courseJourney .course-world>header b{color:var(--ui-text);font-size:14px}
#courseJourney .course-world>header p{display:none}
#courseJourney .course-world>header i{color:var(--ui-muted);font-size:7px}
#courseJourney .course-world:not(.current) .course-world-acts{display:none}
#courseJourney .course-world-acts{grid-template-columns:1fr;gap:0;padding:0 8px 8px;border-top:1px solid var(--ui-line)}
#courseJourney .course-world-act,#courseJourney .course-world-act.current,#courseJourney .course-world-act.complete{
 gap:0;padding:10px 5px;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;background:transparent;box-shadow:none
}
#courseJourney .course-world-act:last-child{border-bottom:0}
#courseJourney .course-world-act>div:first-child{grid-template-columns:auto minmax(0,1fr) auto;gap:7px}
#courseJourney .course-world-act>div:first-child small,#courseJourney .course-world-act>div:first-child i{color:var(--ui-muted)}
#courseJourney .course-world-act>div:first-child b,#courseJourney .course-world-act.current>div:first-child b{color:var(--ui-text);font-size:11px}
#courseJourney .course-world-act .course-world-road{display:none}
#courseJourney .course-world-tasks{grid-template-columns:1fr;margin-top:8px;padding-top:8px;border-top:1px solid var(--ui-line)}
#courseJourney .course-world-tasks>button{min-height:40px;border:1px solid var(--ui-line);border-radius:var(--ui-radius-small);background:var(--ui-panel-raised);color:var(--ui-text)}
#courseJourney .course-world-tasks>button.current,#courseJourney .course-world-tasks>button.complete,#courseJourney .course-world-tasks>button.mastered{border-color:var(--ui-accent);background:var(--ui-accent-soft);color:var(--ui-text)}
#courseJourney .course-world-tasks>button.current u,#courseJourney .course-world-tasks>button.mastered u{color:var(--ui-text)}

/* The loading surface is text-only; the evolving portrait belongs to Progress. */
#newShell.course-boot #courseBoot{grid-template-columns:1fr;gap:9px;padding:16px;border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:var(--ui-panel);box-shadow:none}
#courseBoot>div{gap:9px}
#courseBoot strong{font-size:18px}
#courseBoot i{border-color:var(--ui-line);border-radius:var(--ui-radius-small);background:var(--ui-bg)}
#courseBoot i::after{background:var(--ui-accent)}

/* Progress keeps the avatar and uses the same panels, lines and radii as the metronome. */
#statsDialog,#statsDialog>header,#statsDialog .dialog-content{background:var(--ui-bg)}
#statsDialog .dialog-content{background-image:none}
#statsDialog .progress-identity{border-color:var(--ui-line-strong);border-radius:var(--ui-radius);background:var(--ui-panel);box-shadow:none}
#statsDialog .progress-avatar{border-color:var(--ui-accent);background:var(--ui-panel-raised);box-shadow:none}
#statsDialog .progress-rank-track{border-color:var(--ui-line);background:var(--ui-bg)}
#statsDialog .progress-rank-track i{background:var(--ui-accent)}
#statsDialog .progress-coach-card,#statsDialog .progress-scoreboard,#statsDialog .progress-evidence,
#statsDialog .course-skills>div,#statsDialog .achievement-grid.compact>article,#statsDialog .progress-weakness-details,
#statsDialog .progress-technical,#statsDialog .progress-data-tools{border-color:var(--ui-line)!important;border-radius:var(--ui-radius)!important;background:var(--ui-panel)!important;box-shadow:none}
#statsDialog .progress-coach-card .progress-focus small,#statsDialog .progress-evidence small,#statsDialog .progress-weakness-details[open]>summary{color:var(--ui-accent)}
#statsDialog .progress-coach-start{border-radius:var(--ui-radius);box-shadow:0 2px 0 #a7aaa8}
#statsDialog .progress-scoreboard>.practice-totals>div,#statsDialog .progress-scoreboard>.course-totals>div{border-color:var(--ui-line);border-radius:var(--ui-radius-small);background:var(--ui-panel-raised)}
#statsDialog .achievement-grid.compact>article{filter:grayscale(1) saturate(0)}
#statsDialog .achievement-grid.compact>article.earned{filter:grayscale(.25) saturate(.5)}

/* Lesson brief follows the same restrained palette; teaching content remains available after opening a lesson. */
#courseBriefDialog .course-brief>small,#courseBriefDialog .course-brief-contract>span:last-child small,
#courseBriefDialog .course-brief-preflight>b,#courseBriefDialog .course-brief-tempo,#courseBriefDialog .course-brief-coaching b,
#courseBriefDialog .course-brief-checks b,#courseBriefDialog .course-brief-details[open]>summary{color:var(--ui-accent)}
#courseBriefDialog .course-brief-contract>span,#courseBriefDialog .course-brief-preflight,#courseBriefDialog .course-brief-patterns>span,
#courseBriefDialog .course-brief-coaching article,#courseBriefDialog .course-brief-checks article,#courseBriefDialog .course-brief-details{
 border-color:var(--ui-line);border-radius:var(--ui-radius);background:var(--ui-panel)
}
#courseBriefDialog .course-brief-preflight li:before,#courseBriefDialog .course-score>.score-token.accent{border-color:var(--ui-accent);background:var(--ui-accent-soft);color:var(--ui-text)}
#courseBriefDialog .course-brief-coaching .stop,#courseBriefDialog .course-brief-honesty{border-color:var(--ui-line);background:var(--ui-panel)!important;color:#b3beb6!important}
#courseBriefDialog .course-brief-coaching .stop b{color:var(--ui-accent)}
@media(max-width:520px){
 body.redesign #newShell.course-mode:not(.session-active) #newStage .console>#courseJourney{padding:8px 9px 16px}
 #courseJourney .course-world>header,#courseJourney .course-world:not(.current)>header{display:flex;padding:11px}
 #courseJourney .course-world-acts{grid-template-columns:1fr;padding-inline:7px}
 #newShell.course-boot #courseBoot{grid-template-columns:1fr;padding:13px}
}

/* v136: fast start, three text scales and no sideways mobile carousels. */
html,body,body.redesign,#newShell{max-width:100%;overflow-x:hidden}
body.redesign{--type-caption:9px;--type-body:12px;--type-title:20px}
#newShell #appDock>button{
 display:flex;align-items:center;justify-content:center;min-height:50px!important;height:50px!important;padding:8px 4px
}
#newShell #appDock>button i{display:none!important}
#newShell #appDock>button span{font:750 var(--type-body)/1.1 Manrope,Arial,sans-serif;letter-spacing:0}
#newShell.course-boot #courseBoot{place-content:center;min-height:0}
#courseBoot>div{justify-items:start}
#courseBoot strong{font-size:var(--type-title)}
#courseBoot i{display:none}

#courseJourney #courseMapStart,#courseJourney .course-placement button{
 min-height:50px;height:50px;padding:8px 12px;border-radius:var(--ui-radius);font-size:var(--type-body);line-height:1.1
}
#courseJourney .course-world>header small,#courseJourney .course-world>header i,
#courseJourney .course-world-act>div:first-child small,#courseJourney .course-world-act>div:first-child i{font-size:var(--type-caption)}
#courseJourney .course-world>header b,#courseJourney .course-world-act>div:first-child b,
#courseJourney .course-world-act.current>div:first-child b,#courseJourney .course-world-tasks>button{font-size:var(--type-body)}

.new-dialog,.new-dialog .dialog-content,.new-dialog .dialog-content>*{min-width:0;max-width:100%;box-sizing:border-box}
.new-dialog>header h2,.new-dialog .course-brief h2{font-size:var(--type-title)!important}
.new-dialog .dialog-content button,.new-dialog .dialog-content summary{font-size:var(--type-body)}
.new-dialog .dialog-content small,.new-dialog .course-brief>small,.new-dialog .course-brief b{font-size:var(--type-caption)}
.new-dialog .course-brief>p,.new-dialog .course-brief span{font-size:var(--type-body)}

#statsDialog .progress-report{gap:9px}
#statsDialog .progress-scoreboard{gap:7px;padding:9px 10px}
#statsDialog .progress-scoreboard>header{display:block;height:auto!important;min-height:0;margin:0;padding:0;border:0}
#statsDialog .progress-scoreboard>header small,#statsDialog .progress-report>h3{font-size:var(--type-caption)}
#statsDialog .progress-scoreboard>.practice-totals{gap:6px}
#statsDialog .progress-scoreboard>.practice-totals>div{padding:10px 4px}
#statsDialog .progress-scoreboard>.practice-totals strong{font-size:var(--type-title)}
#statsDialog .progress-scoreboard>.practice-totals span{font-size:var(--type-caption)}
#statsDialog .progress-profile-copy small,#statsDialog .progress-profile-copy b{font-size:var(--type-caption)}
#statsDialog .progress-profile-copy strong,#statsDialog .progress-coach-card .progress-focus strong{font-size:var(--type-title)}
#statsDialog .progress-coach-card .progress-focus span,#statsDialog .progress-evidence span{font-size:var(--type-body)}
#statsDialog .course-skills{
 display:grid;grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:visible;scroll-snap-type:none
}
#statsDialog .course-skills>div{min-height:62px;padding:9px;scroll-snap-align:none}
#statsDialog .course-skills>div>span{gap:4px;font-size:var(--type-caption)}
#statsDialog .course-skills b,#statsDialog .course-skills i{font-size:var(--type-caption)}
#statsDialog .achievement-grid.compact{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:visible;scroll-snap-type:none
}
#statsDialog .achievement-grid.compact>article{min-width:0;min-height:64px;scroll-snap-align:none}

#courseBriefDialog .course-brief-route{display:grid;grid-template-columns:1fr;gap:5px;overflow-x:hidden;padding:0}
#courseBriefDialog .course-brief-route span{grid-template-columns:22px minmax(0,1fr);width:100%;padding:7px}
#courseBriefDialog .course-brief-route i{max-width:none;white-space:normal}
.rudiment-family-tabs{flex-wrap:wrap;overflow-x:hidden}
@media(max-width:520px){
 #statsDialog .course-skills,#statsDialog .achievement-grid.compact{grid-template-columns:1fr 1fr}
 #statsDialog .achievement-grid.compact>article{grid-template-columns:40px minmax(0,1fr);padding:8px}
 #statsDialog .achievement-grid.compact>article>b{width:36px;height:36px}
}
@media(max-width:350px){#statsDialog .course-skills,#statsDialog .achievement-grid.compact{grid-template-columns:1fr}}

/* v137: a lesson is a focused practice room, not another navigation screen. */
#practiceGuide{display:none}
#newShell.session-active:not(.metro-mode){
 grid-template-rows:minmax(0,1fr)!important;
 padding-top:max(8px,env(safe-area-inset-top));gap:0
}
#newShell.session-active:not(.metro-mode)>.new-header,
#newShell.session-active:not(.metro-mode)>.new-titlebar,
#newShell.session-active:not(.metro-mode)>#idleActions{display:none!important}
#newShell.session-active:not(.metro-mode)>#newStage{grid-row:1;min-height:0}

body.redesign #newShell.guided-session #newStage .console{
 display:grid!important;
 grid-template-rows:minmax(176px,1.65fr) minmax(70px,.58fr) 18px minmax(28px,.28fr) 27px 48px 54px!important;
 gap:7px!important;height:100%!important;min-height:0;overflow:hidden
}
body.redesign #newShell.guided-session #newStage .console>#practiceGuide{
 display:grid!important;grid-area:1/1;grid-template-rows:auto auto minmax(58px,1fr) auto auto auto;gap:6px;
 position:relative;min-height:0;margin:0;padding:11px 82px 10px 12px;box-sizing:border-box;overflow:hidden;
 border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:var(--ui-panel)
}
#practiceGuide>header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
#practiceGuide>header small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ui-muted);font:750 9px/1.1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.09em}
#practiceGuide>header b{flex:0 0 auto;padding:4px 7px;border:1px solid #667a6c;border-radius:7px;color:#e8efe9;font:800 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em}
.practice-guide-copy{display:grid;gap:1px;min-width:0}
.practice-guide-copy>small{color:var(--ui-accent);font:800 9px/1.1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em}
.practice-guide-copy>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ui-text);font:780 clamp(20px,6vw,27px)/1.08 Manrope,Arial,sans-serif}
.practice-guide-copy>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#aab5ad;font:650 11px/1.25 Manrope,Arial,sans-serif}
.practice-guide-pattern{display:flex;align-items:stretch;justify-content:center;gap:5px;min-width:0;min-height:58px}
.practice-hand{position:relative;display:grid;grid-template-rows:1fr auto;place-items:center;flex:1 1 0;max-width:64px;min-width:0;min-height:58px;padding:8px 2px 5px;box-sizing:border-box;border:1px solid #3a463e;border-radius:11px;background:#1b211d;color:#dce5de}
.practice-hand>b{font:800 clamp(23px,7vw,32px)/1 Manrope,Arial,sans-serif}
.practice-hand>small{color:#77857b;font:800 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace}
.practice-hand>i{position:absolute;top:3px;left:2px;right:2px;overflow:hidden;color:#a8b5ac;font:800 6px/1 ui-monospace,SFMono-Regular,Menlo,monospace;font-style:normal;text-align:center;letter-spacing:.02em}
.practice-hand.active{border-color:var(--ui-accent);background:var(--ui-accent-soft);color:#fff;box-shadow:inset 0 -2px 0 #0d110e}
.practice-hand.neutral>b{font-size:30px;color:#9caaa0}
.practice-guide-legend{display:flex;align-items:center;gap:11px;min-width:0;color:#87948b;font:650 9px/1.1 Manrope,Arial,sans-serif}
.practice-guide-legend b{color:#dbe4dd}.practice-guide-legend #practiceGuidePage{margin-left:auto;color:#aeb9b1;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
#practiceGuideSupport,#practiceGuideInstruction{min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#practiceGuideSupport{color:#cbd5ce;font:700 10px/1.2 Manrope,Arial,sans-serif}
#practiceGuideInstruction{color:#98a59c;font:500 10px/1.25 Manrope,Arial,sans-serif}

body.redesign #newShell.guided-session #newStage .console>#beats{
 display:grid!important;grid-area:2/1;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:13px minmax(0,1fr);gap:5px;height:auto;min-height:0;margin:0
}
body.redesign #newShell.guided-session #newStage .console>#beats::before{content:'ДОЛИ ТАКТА · ОДИН УДАР НА КАЖДУЮ ДОЛЮ';grid-column:1/-1;color:#87948b;font:750 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em}
body.redesign #newShell.guided-session #newStage #beats i{height:100%;min-height:0;border:1px solid #303a33;border-radius:12px;background:#1a1f1b;color:#7e8981;font-size:clamp(22px,7vw,31px)}
body.redesign #newShell.guided-session #newStage #beats i.active{border-color:var(--ui-accent);background:var(--ui-accent-soft);color:#fff}
body.redesign #newShell.guided-session #newStage .console>#blockStatus{display:flex!important;grid-area:3/1;align-items:center;min-height:0;margin:0;color:#8f9c93;font-size:8px;line-height:1;letter-spacing:.08em}
body.redesign #newShell.guided-session #newStage .console>#hitStrip{display:grid!important;grid-area:4/1;min-height:0;height:auto;margin:0;gap:3px;overflow:hidden}
body.redesign #newShell.guided-session #newStage #hitStrip span{min-height:4px;padding:0;border-radius:4px;font-size:0!important;color:transparent!important}
body.redesign #newShell.guided-session #newStage .console>#lessonProgress{display:block!important;grid-area:5/1;min-height:0;margin:0;padding:0;border:0;background:none;overflow:hidden}
body.redesign #newShell.guided-session #newStage .console>.tempo{display:flex!important;grid-area:6/1;position:relative;align-items:center;justify-content:center;min-height:0;margin:0;padding-top:8px}
body.redesign #newShell.guided-session #newStage .console>.tempo::before{content:'ЗАДАННЫЙ ТЕМП';position:absolute;top:0;left:0;right:0;color:#7f8c83;font:750 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;text-align:center}
body.redesign #newShell.guided-session #newStage .tempo>button{display:none!important}
body.redesign #newShell.guided-session #newStage .tempo input#bpm{height:35px;font-size:38px;pointer-events:none}
body.redesign #newShell.guided-session #newStage .tempo span{font-size:8px}
body.redesign #newShell.guided-session #newStage .console>.transport{display:flex!important;grid-area:7/1;min-height:0;margin:0;gap:8px}
body.redesign #newShell.guided-session #newStage .transport button{height:54px;min-height:54px;border-radius:var(--ui-radius);font-size:12px}
body.redesign #newShell.guided-session #newStage .console>#nextCue,
body.redesign #newShell.guided-session #newStage .console>#taskBrief,
body.redesign #newShell.guided-session #newStage .console>#playHint,
body.redesign #newShell.guided-session #newStage .console>#tempoRange,
body.redesign #newShell.guided-session #newStage .console>#character{display:none!important}

#practiceGuide>#characterStage{position:absolute;z-index:2;right:7px;bottom:8px;width:68px;height:82px;display:grid;place-items:end center;overflow:hidden;pointer-events:none;border-left:1px solid #303832}
#practiceGuide>#characterStage>#character{display:grid!important;place-items:end center;width:100%;height:100%;min-height:0;overflow:hidden}
#practiceGuide>#characterStage #characterImg{display:block!important;width:72px!important;height:72px!important;min-width:72px;min-height:72px;max-width:72px!important;max-height:72px!important;object-fit:contain;object-position:center bottom;image-rendering:pixelated;transform:none!important}
#practiceGuide>#characterStage #characterLine,#practiceGuide>#characterStage>#abuserBanner{display:none!important}
body.redesign #newShell.guided-session.paused-state #newStage .console>#statePanel{grid-area:1/1/7/2!important;z-index:8}

@media(max-height:680px){
 body.redesign #newShell.guided-session #newStage .console{grid-template-rows:minmax(150px,1.5fr) minmax(58px,.5fr) 15px minmax(22px,.22fr) 22px 42px 48px!important;gap:4px!important}
 body.redesign #newShell.guided-session #newStage .console>#practiceGuide{padding:8px 68px 7px 9px;gap:4px;grid-template-rows:auto auto minmax(48px,1fr) auto auto auto}
 .practice-hand{min-height:48px;padding-block:6px 4px}.practice-hand>b{font-size:22px}
 #practiceGuide>#characterStage{right:5px;bottom:5px;width:58px;height:68px}#practiceGuide>#characterStage #characterImg{width:60px!important;height:60px!important;min-width:60px;min-height:60px;max-width:60px!important;max-height:60px!important}
 body.redesign #newShell.guided-session #newStage .transport button{height:48px;min-height:48px}
}

/* Spoken reactions stay on top of the uninterrupted exercise. */
#practiceGuide>#abuserBanner[hidden],#switchBoard>#abuserBanner[hidden]{display:none!important}
body.redesign #practiceGuide>#abuserBanner:not([hidden]),
body.redesign #switchBoard>#abuserBanner:not([hidden]){
 --bubble-bg:#efeee9;--bubble-line:#cbcfc8;--bubble-ink:#171917;
 display:block!important;position:absolute;z-index:7;top:42px;right:70px;width:max-content;max-width:min(52%,190px);
 box-sizing:border-box;margin:0;padding:8px 11px;border:1px solid var(--bubble-line);border-radius:15px 15px 5px 15px;
 background:var(--bubble-bg);color:var(--bubble-ink);box-shadow:0 7px 18px #0007;
 font:750 10px/1.28 Manrope,Arial,sans-serif;text-align:left;pointer-events:none;transform-origin:110% 50%
}
body.redesign #practiceGuide>#abuserBanner>span,body.redesign #switchBoard>#abuserBanner>span{
 display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3
}
body.redesign #practiceGuide>#abuserBanner:not([hidden])::after,
body.redesign #switchBoard>#abuserBanner:not([hidden])::after{
 content:'';position:absolute;right:-6px;top:21px;width:11px;height:11px;background:var(--bubble-bg);
 border-right:1px solid var(--bubble-line);border-top:1px solid var(--bubble-line);transform:rotate(45deg)
}
body.redesign #practiceGuide>#abuserBanner.speaking,body.redesign #switchBoard>#abuserBanner.speaking{animation:abuserBubble 8s cubic-bezier(.2,.75,.2,1) both}
body.redesign #practiceGuide>#abuserBanner[data-pose='approval'],body.redesign #switchBoard>#abuserBanner[data-pose='approval']{--bubble-bg:#edf3ee;--bubble-line:#8ca092;--bubble-ink:#172119}
body.redesign #practiceGuide>#abuserBanner[data-pose='angry'],body.redesign #switchBoard>#abuserBanner[data-pose='angry']{--bubble-bg:#f1e8e6;--bubble-line:#a87872;--bubble-ink:#311917}
#switchBoard{position:relative}
body.redesign #switchBoard>#abuserBanner:not([hidden]){top:8px;right:78px}

@media(max-height:680px){
 body.redesign #practiceGuide>#abuserBanner:not([hidden]){top:34px;right:60px;max-width:55%;padding:7px 9px;font-size:9px}
}
@media(max-width:360px){
 body.redesign #newShell.guided-session #newStage .console>#practiceGuide{padding-right:62px}
 .practice-guide-legend{gap:7px}.practice-guide-copy>strong{font-size:19px}.practice-hand{border-radius:8px}
}

/* v138: one score lane. Hand, count and technique live on the same note. */
body.training-focus{overflow:hidden!important;overscroll-behavior:none}
body.training-focus #newShell{
 position:fixed!important;inset:var(--new-top,0px) 0 auto!important;z-index:1000;width:min(100%,600px)!important;height:var(--new-height,100dvh)!important;
 margin:0 auto!important;box-sizing:border-box
}
body.redesign #newShell.guided-session #newStage .console{
 grid-template-rows:minmax(360px,440px) 14px 48px 56px!important;align-content:center;gap:9px!important
}
body.redesign #newShell.guided-session #newStage .console>#practiceGuide{
 grid-area:1/1;grid-template-rows:auto auto minmax(116px,170px) auto auto;align-content:center;gap:9px;
 padding:13px 72px 13px 14px
}
.practice-guide-copy>small{display:none}
.practice-guide-copy>strong{font-size:clamp(22px,7vw,30px)}
.practice-guide-copy>span{display:none!important}
.practice-guide-pattern{align-items:stretch;min-height:116px;gap:5px}
.practice-hand{
 grid-template-rows:1fr 18px;max-width:76px;min-height:116px;padding:16px 2px 5px;
 border-radius:12px
}
.practice-hand>b{font-size:clamp(25px,8vw,36px)}
.practice-hand>small{color:#9ba79e;font:800 11px/18px ui-monospace,SFMono-Regular,Menlo,monospace}
.practice-hand>i{top:7px;font-size:15px;line-height:1;color:#dce5de}
.practice-hand.marked>b{transform:translateY(-2px)}
.practice-hand.active{box-shadow:inset 0 -3px 0 var(--ui-accent),0 0 0 1px var(--ui-accent)}
.practice-guide-legend{min-height:12px;font-size:9px}
.practice-guide-legend>span:empty{display:none}
.practice-guide-legend #practiceGuidePage{margin-left:auto}
#practiceGuideSupport{font-size:11px;white-space:nowrap}
#practiceGuideInstruction{
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;
 font-size:11px;line-height:1.3
}
body.redesign #newShell.guided-session #newStage .console>#beats,
body.redesign #newShell.guided-session #newStage .console>#blockStatus,
body.redesign #newShell.guided-session #newStage .console>#hitStrip{display:none!important}
body.redesign #newShell.guided-session #newStage .console>#lessonProgress{
 display:block!important;grid-area:2/1;height:14px;min-height:14px;overflow:hidden
}
body.redesign #newShell.guided-session #lessonProgress>#stageRoad,
body.redesign #newShell.guided-session #lessonProgress>.lesson-numbers,
body.redesign #newShell.guided-session #lessonProgress>#lessonRule{display:none!important}
body.redesign #newShell.guided-session #lessonProgress>.lesson-track{height:5px;margin:4px 0;border-radius:99px}
body.redesign #newShell.guided-session #newStage .console>.tempo{grid-area:3/1;padding:0}
body.redesign #newShell.guided-session #newStage .console>.tempo::before{display:none}
body.redesign #newShell.guided-session #newStage .tempo input#bpm{height:40px;font-size:42px}
body.redesign #newShell.guided-session #newStage .console>.transport{grid-area:4/1}
body.redesign #newShell.guided-session #newStage .transport button{height:56px;min-height:56px}
#practiceGuide>#characterStage{
 top:43px;right:7px;bottom:auto;width:57px;height:68px;border-left:0
}
#practiceGuide>#characterStage #characterImg{
 width:60px!important;height:60px!important;min-width:60px;min-height:60px;max-width:60px!important;max-height:60px!important
}
body.redesign #newShell.guided-session.paused-state #newStage .console>#statePanel{grid-area:1/1/5/2!important}

@media(max-height:680px){
 body.redesign #newShell.guided-session #newStage .console{grid-template-rows:minmax(300px,350px) 12px 42px 48px!important;gap:6px!important}
 body.redesign #newShell.guided-session #newStage .console>#practiceGuide{grid-template-rows:auto auto minmax(90px,135px) auto auto;align-content:center;padding:9px 62px 9px 10px;gap:6px}
 .practice-guide-pattern,.practice-hand{min-height:90px}.practice-hand{padding-top:13px}.practice-hand>i{top:4px;font-size:12px}
 #practiceGuide>#characterStage{top:34px;right:4px;width:52px;height:58px}
 #practiceGuide>#characterStage #characterImg{width:54px!important;height:54px!important;min-width:54px;min-height:54px;max-width:54px!important;max-height:54px!important}
 body.redesign #newShell.guided-session #newStage .tempo input#bpm{height:36px;font-size:37px}
 body.redesign #newShell.guided-session #newStage .transport button{height:48px;min-height:48px}
}

/* v140: the lesson is one playable score with visible microphone feedback. */
#courseBriefDialog{width:min(520px,94vw)}
#courseBriefDialog .dialog-content{padding:12px 16px 16px}
#courseBriefDialog .course-brief-simple{gap:11px}
#courseBriefDialog .course-brief-simple>p{font-size:12px!important;line-height:1.45}
#courseBriefDialog .course-brief-patterns{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#courseBriefDialog .course-brief-patterns>span{padding:10px;gap:7px}
#courseBriefDialog .course-score{justify-content:flex-start;gap:4px}
#courseBriefDialog .course-score>.score-token{min-width:28px;grid-template-rows:8px 25px 8px}
#courseBriefDialog .course-score>.score-token b{font-size:17px}
#courseBriefDialog .course-score>p{font-size:8px;line-height:1.35}
.course-brief-flow{display:grid;gap:4px;padding:10px 11px;border:1px solid var(--ui-line);border-radius:var(--ui-radius-sm);background:var(--ui-panel)}
.course-brief-flow b{color:var(--ui-text);font-size:12px!important;line-height:1.25}
.course-brief-flow span{color:var(--ui-muted);font-size:10px!important;line-height:1.4}
#courseBriefDialog .course-brief-mic{padding:9px 11px;border-left:3px solid var(--ui-accent);background:var(--ui-accent-soft);color:#cbd5ce!important;font-size:10px!important;line-height:1.45!important}
#courseBriefDialog .course-brief-actions{grid-template-columns:1fr;gap:7px}
#courseBriefDialog .course-brief-actions button{min-height:50px}
#courseBriefDialog #courseBriefAssess{order:0}
#courseBriefDialog #courseBriefPractice{order:1;min-height:44px;background:transparent;color:#c4cec7}
#courseBriefDialog .course-brief-practice-note{display:block;color:#7f8c83!important;font:600 9px/1.45 Manrope,Arial,sans-serif!important;letter-spacing:0!important}

.practice-hand.hit-good{border-color:#4f9b68;background:#173421;color:#f1f8f3}
.practice-hand.hit-early{border-color:#b1724d;background:#39251b;color:#fff2e9}
.practice-hand.hit-late{border-color:#b19a55;background:#352f1d;color:#fff8dc}
.practice-hand.hit-miss{border-color:#89585d;background:#302022;color:#edd6d8}
.practice-hand.hit-uncertain{outline:1px dashed #a99ab0;outline-offset:-4px}
.practice-hand.active{border-color:var(--ui-accent);box-shadow:inset 0 -3px 0 var(--ui-accent),0 0 0 1px var(--ui-accent)}
#practiceGuide.practice-only>header b{border-color:#58645c;color:#aeb9b1}
#practiceGuide.practice-only .practice-hand.active{border-color:#9eaaa1;box-shadow:inset 0 -3px 0 #9eaaa1,0 0 0 1px #9eaaa1}
#practiceGuide .practice-guide-legend{flex-wrap:wrap;row-gap:3px;line-height:1.25}
#practiceGuide .practice-guide-legend>span:first-child{min-width:0}
@media(max-width:380px){
 #courseBriefDialog .course-score>.score-token{min-width:24px}
 #courseBriefDialog .course-score>.score-token b{font-size:15px}
 #courseBriefDialog .course-brief-patterns>span{padding:8px}
}

/* Transition and rudiment sessions use the shell viewport, without a second fixed layer. */
body.redesign #newShell.session-active.pattern-mode #newStage .console.playing.switch-focus{
 position:relative!important;inset:auto!important;top:0!important;width:100%!important;height:100%!important;
 grid-template-rows:minmax(112px,auto) 48px 42px 22px 16px minmax(0,1fr)!important;
 padding:8px 10px max(8px,env(safe-area-inset-bottom))!important;gap:6px!important
}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#switchBoard{grid-area:1/1/2/3!important;min-height:112px;padding:12px 88px 10px 12px!important;overflow:visible}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>.tempo{grid-area:2/1!important}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>.transport{grid-area:2/2!important}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#beats{grid-area:3/1/4/3!important}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#playHint{grid-area:4/1/5/3!important}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#blockStatus{grid-area:5/1/6/3!important}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#hitStrip{grid-area:6/1/7/3!important}
body.redesign #newShell.session-active.pattern-mode #switchBoard>#characterStage{top:12px;right:8px}

/* v142: finite lessons, the next sticking is always visible, and the room fits the viewport. */
body.redesign #newShell.guided-session #newStage .console{
 grid-template-rows:minmax(0,1fr) 10px 44px 54px!important;align-content:stretch;padding:8px 10px max(8px,env(safe-area-inset-bottom));gap:6px!important
}
body.redesign #newShell.guided-session #newStage .console>#practiceGuide{
 grid-template-rows:auto auto minmax(92px,1fr) auto 40px auto;align-content:stretch;padding:10px 70px 10px 12px;gap:6px
}
.practice-guide-pattern,.practice-hand{min-height:92px}
.practice-guide-next{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px;min-width:0;padding:5px 7px;border:1px solid #354139;border-radius:9px;background:#151b17}
.practice-guide-next[hidden]{display:none!important}
.practice-guide-next>small{color:#819087;font:850 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.09em}
.practice-guide-next>strong{overflow:hidden;color:#b8c4bc;font-size:9px;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}
.practice-guide-next>span{display:flex;gap:3px}
.practice-guide-next>span b{display:grid;place-items:center;width:22px;height:25px;border:1px solid #3c4940;border-radius:6px;background:#1c231e;color:#c8d2cb;font:850 10px/1 Manrope,Arial,sans-serif}
#practiceGuide.next-up .practice-guide-next{border-color:#819889;background:#263229;box-shadow:0 0 0 2px #81988922}
#practiceGuide.next-up .practice-guide-next>small{color:#eef4ef}
.practice-guide-meta{display:grid;align-content:end;gap:3px;min-width:0}
#practiceGuideSupport,#practiceGuideInstruction{overflow:visible;text-overflow:clip;white-space:normal}
#practiceGuideSupport{font-size:10px;line-height:1.25}
#practiceGuideInstruction{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:10px;line-height:1.28}
#practiceGuide.count-in .practice-hand.active{animation:campaign-pulse 1s steps(2,end) infinite}
#courseJourney .course-world-tasks>button.current{border-color:#a6b7aa;background:#405146;box-shadow:0 0 0 3px #81988933,inset 0 -2px 0 #a6b7aa;animation:campaign-pulse 1.6s steps(2,end) infinite}
#courseJourney .course-world-act.locked .course-world-tasks{opacity:.58}
@media(max-height:680px){
 body.redesign #newShell.guided-session #newStage .console{grid-template-rows:minmax(0,1fr) 8px 38px 48px!important;gap:4px!important}
 body.redesign #newShell.guided-session #newStage .console>#practiceGuide{grid-template-rows:auto auto minmax(72px,1fr) auto 34px auto;padding:7px 60px 7px 9px;gap:4px}
 .practice-guide-pattern,.practice-hand{min-height:72px}.practice-guide-next{padding:3px 5px}.practice-guide-next>span b{width:19px;height:21px}
 #practiceGuideInstruction{-webkit-line-clamp:1}
}

/* v146: narrow phones must never inherit a desktop-sized minimum track. */
#newShell>.new-header,
#newShell>.new-titlebar,
#newShell>#newStage,
#newShell>#idleActions{
 width:100%;max-width:100%;min-width:0;box-sizing:border-box
}
#newShell .new-header .new-brand,
#newShell .new-header .header-actions,
#newShell #appDock{
 max-width:100%;min-width:0
}

@media(max-width:360px){
 #newShell{padding-left:8px!important;padding-right:8px!important}
 #newShell .new-header{gap:5px}
 #newShell .new-header .new-brand{flex:0 1 auto;gap:5px;min-width:0;font-size:0;letter-spacing:0}
 #newShell .new-header .new-brand img{width:24px;height:30px}
 #newShell .new-header .header-actions{flex:0 0 auto;gap:4px}
 #newShell .new-header #openSettings{flex:0 0 34px;width:34px;height:34px;min-height:34px;font-size:14px}
 #newShell .new-header #accountButton{flex:0 0 34px;width:34px;height:34px;min-height:34px}
 #newShell .new-header #accountButton img,
 #newShell .new-header #accountButton .account-avatar{width:26px;height:26px}
 #newShell .new-header #abuserToggle{flex:0 0 auto;gap:0}
 #newShell .new-header #abuserToggle>span{display:none}
 #newShell .new-header #abuserToggle>i{width:38px;height:24px}
 #newShell .new-header #abuserToggle>i::after{width:18px;height:18px}
 #newShell .new-header #abuserToggle[aria-checked="true"]>i::after{left:17px}
 #newShell #appDock{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;width:100%;overflow:hidden}
 #newShell #appDock>button{min-width:0!important;padding-inline:2px}
 #newShell #appDock>button span{overflow:hidden;font-size:9px;letter-spacing:-.03em;text-overflow:ellipsis;white-space:nowrap}
}

/* v147: the duration ladder is one phone-wide score. The upcoming value is a primary cue. */
body.redesign #newShell.session-active.pattern-mode,
body.redesign #newShell.session-active.pattern-mode>#newStage,
body.redesign #newShell.session-active.pattern-mode #newStage .console.playing.switch-focus{
 min-width:0!important;max-width:100%!important;overflow:hidden!important
}
body.redesign #newShell.session-active.pattern-mode #newStage .console.playing.switch-focus{
 position:relative!important;inset:auto!important;top:0!important;width:100%!important;height:100%!important;
 grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:minmax(150px,auto) 52px 42px 16px minmax(92px,1fr) 24px 30px 54px!important;
 align-content:stretch;padding:7px 8px max(7px,env(safe-area-inset-bottom))!important;gap:5px!important
}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>*{min-width:0;max-width:100%;box-sizing:border-box}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#switchBoard{
 display:grid!important;grid-area:1/1!important;grid-template-rows:auto auto auto minmax(52px,auto);align-content:start;gap:4px;
 width:100%;min-height:0;margin:0;padding:10px 68px 9px 10px!important;overflow:hidden!important
}
body.redesign #newShell.session-active.pattern-mode #newStage .switch-board-label{display:block;font-size:9px;line-height:1.1;letter-spacing:.12em}
body.redesign #newShell.session-active.pattern-mode #newStage .switch-board>strong{
 overflow:hidden;font-size:clamp(25px,8vw,34px);line-height:1.02;text-overflow:ellipsis;white-space:nowrap
}
body.redesign #newShell.session-active.pattern-mode #newStage .switch-round-result{
 overflow:hidden;margin:0;color:#a9b5ad;font-size:10px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap
}
body.redesign #newShell.session-active.pattern-mode #newStage .switch-board-bottom{
 position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;
 min-height:52px;margin:2px -58px 0 0;padding:18px 9px 6px;border:1px solid #46584b;border-radius:10px;background:#1b241e
}
body.redesign #newShell.session-active.pattern-mode #newStage .switch-board-bottom::before{
 content:'СЛЕДУЮЩЕЕ';position:absolute;top:6px;left:9px;
 color:#8fa096;font:850 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.13em
}
body.redesign #newShell.session-active.pattern-mode #newStage #switchBoardNext{
 display:block;overflow:hidden;color:#f0f5f1;font:780 clamp(15px,4.8vw,19px)/1.14 Manrope,Arial,sans-serif;text-overflow:ellipsis;white-space:nowrap
}
body.redesign #newShell.session-active.pattern-mode #newStage #switchBoardCount{
 position:relative;display:grid;place-items:center;min-width:35px;height:30px;border-radius:8px;background:#334039;
 color:#fff;font:850 20px/1 Manrope,Arial,sans-serif
}
body.redesign #newShell.session-active.pattern-mode #newStage #switchBoardCount:empty{display:none}
body.redesign #newShell.session-active.pattern-mode #newStage #switchBoardCount:not(:empty)::before{
 content:'ЧЕРЕЗ';position:absolute;top:-12px;color:#8fa096;font:850 6px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em
}
body.redesign #newShell.session-active.pattern-mode #newStage .switch-board.prepare .switch-board-bottom{
 border-color:#91b19b;background:#26352b;box-shadow:0 0 0 2px #91b19b22
}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>.tempo{
 display:flex!important;grid-area:2/1!important;width:100%;height:52px;margin:0;gap:8px
}
body.redesign #newShell.session-active.pattern-mode #newStage .tempo input#bpm{width:92px;height:38px;font-size:40px}
body.redesign #newShell.session-active.pattern-mode #newStage .tempo button{width:64px;height:42px;min-height:42px}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#beats{
 display:flex!important;grid-area:3/1!important;width:100%;height:42px;margin:0;gap:5px;overflow:hidden
}
body.redesign #newShell.session-active.pattern-mode #newStage #beats i{height:42px;min-width:0}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#blockStatus{
 display:block!important;grid-area:4/1!important;overflow:hidden;margin:0;font-size:8px;line-height:16px;text-overflow:ellipsis;white-space:nowrap
}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#hitStrip{
 display:grid!important;grid-area:5/1!important;width:100%;height:auto;min-height:0;margin:0;gap:3px;overflow:hidden
}
body.redesign #newShell.session-active.pattern-mode #newStage #hitStrip span{min-width:0;min-height:0;padding:0;border-radius:7px;font-size:clamp(8px,2.6vw,11px)}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#lessonProgress{
 display:block!important;grid-area:6/1!important;width:100%;height:24px;min-height:0;margin:0;padding:0;border:0;background:none;overflow:hidden
}
body.redesign #newShell.session-active.pattern-mode #lessonProgress>#stageRoad,
body.redesign #newShell.session-active.pattern-mode #lessonProgress>#lessonRule{display:none!important}
body.redesign #newShell.session-active.pattern-mode #lessonProgress>.lesson-numbers{margin:0;font-size:8px;line-height:12px;white-space:nowrap}
body.redesign #newShell.session-active.pattern-mode #lessonProgress>.lesson-track{height:4px;margin:3px 0}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#tempoRange{
 display:block!important;grid-area:7/1!important;width:100%;height:30px;min-height:30px;margin:0;padding:0 4px
}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>.transport{
 display:flex!important;grid-area:8/1!important;width:100%;height:54px;margin:0;padding:0;gap:6px;overflow:hidden
}
body.redesign #newShell.session-active.pattern-mode #newStage .transport button{
 flex:1 1 0;min-width:0;height:54px;min-height:54px;padding:5px 3px;border-radius:12px;font-size:clamp(9px,2.8vw,12px);line-height:1.08;white-space:normal
}
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#playHint,
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#tempoPlan,
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#nextCue,
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>.hit-legend,
body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>.coach,
body.redesign #newShell.session-active.pattern-mode #switchBoard>#abuserBanner{display:none!important}
body.redesign #newShell.session-active.pattern-mode #switchBoard>#characterStage{top:8px;right:6px;width:56px;height:56px;border-left:0}
body.redesign #newShell.session-active.pattern-mode #switchBoard>#characterStage #characterImg{
 width:56px!important;height:56px!important;min-width:56px;min-height:56px;max-width:56px!important;max-height:56px!important
}
@media(max-height:680px){
 body.redesign #newShell.session-active.pattern-mode #newStage .console.playing.switch-focus{
  grid-template-rows:minmax(126px,auto) 46px 36px 14px minmax(72px,1fr) 21px 26px 48px!important;gap:4px!important
 }
 body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#switchBoard{padding-top:7px!important;padding-bottom:6px!important}
 body.redesign #newShell.session-active.pattern-mode #newStage .switch-board-bottom{min-height:46px;padding-top:16px;padding-bottom:4px}
 body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>.tempo{height:46px}
 body.redesign #newShell.session-active.pattern-mode #newStage .tempo input#bpm{height:34px;font-size:35px}
 body.redesign #newShell.session-active.pattern-mode #newStage .tempo button{height:38px;min-height:38px}
 body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>#beats,
 body.redesign #newShell.session-active.pattern-mode #newStage #beats i{height:36px}
 body.redesign #newShell.session-active.pattern-mode #newStage .console.switch-focus>.transport,
 body.redesign #newShell.session-active.pattern-mode #newStage .transport button{height:48px;min-height:48px}
}


/* profile.css */
/* The profile is a fixed sheet with one vertical scroller. */
body:has(#statsDialog[open]){overflow:hidden!important;overscroll-behavior:none}
#statsDialog{position:fixed;inset:0;width:min(620px,100%);height:100dvh;overflow:hidden;overscroll-behavior:none;box-sizing:border-box;touch-action:pan-y pinch-zoom}
#statsDialog>header{position:relative;flex-shrink:0;margin:0;height:64px;box-sizing:border-box}
#statsDialog .dialog-content{height:calc(100dvh - 64px);overflow-x:hidden;overflow-y:auto;overscroll-behavior-x:none;touch-action:pan-y pinch-zoom;padding:12px 14px max(24px,env(safe-area-inset-bottom));box-sizing:border-box}
#statsDialog .dialog-content *{min-width:0;box-sizing:border-box}
#statsDialog .row{flex-wrap:wrap;max-width:100%}
#statsDialog .row>label{width:100%;flex:1 1 180px;min-width:0}
#statsDialog select{width:100%;min-width:0;max-width:100%;text-overflow:ellipsis}
#statsDialog table{width:100%;table-layout:fixed}
#statsDialog .progress-table{overflow:hidden}
#statsDialog td,#statsDialog th{overflow-wrap:anywhere;white-space:normal}
#statsDialog .progress-identity{margin:0 0 12px}
#statsDialog .profile-month{display:grid;gap:14px;margin:0 0 20px;padding:0;color:#f2f4ef;font-variant-numeric:tabular-nums}
#statsDialog .profile-month [hidden]{display:none!important}
#statsDialog .profile-month h3{margin:0;font-size:16px;font-weight:750;line-height:1.35;text-transform:none;letter-spacing:0}
#statsDialog .profile-month p{margin:0;font-size:12px;line-height:1.55;color:#b6c0b9;overflow-wrap:anywhere}
#statsDialog .profile-month button{font-family:inherit;touch-action:manipulation}
#statsDialog .profile-month-nav{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:6px}
#statsDialog .profile-month-nav button,#statsDialog .profile-chart-pages button{height:44px;min-height:44px;font-size:25px;padding:0;background:#1b231e;border:1px solid #3d4940;border-radius:10px;color:#f2f4ef}
#statsDialog .profile-month-nav select{height:44px;font-size:17px;font-weight:750;text-align:center;text-transform:capitalize;background:#1b231e;border:1px solid #3d4940;border-radius:10px;color:#f2f4ef;padding:6px}
#statsDialog .profile-month button:disabled{opacity:.35}
#statsDialog .profile-segments{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:4px;border:1px solid #354039;border-radius:12px;background:#151c17}
#statsDialog #profileMetrics{grid-template-columns:repeat(3,minmax(0,1fr))}
#statsDialog .profile-segments button{min-height:40px;border:0;background:transparent;border-radius:8px;color:#b6c0b9;font-size:13px;padding:8px 3px;white-space:nowrap}
#statsDialog .profile-segments button[aria-pressed=true]{background:#e0e9de;color:#142018;font-weight:800}
#statsDialog .profile-filter{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:14px;font-size:13px;color:#b6c0b9}
#statsDialog .profile-filter select,#statsDialog #profileGrouping{height:42px;padding:6px 10px;border:1px solid #354039;border-radius:9px;background:#151c17;color:#f2f4ef;font-size:14px}
#statsDialog .profile-month #practiceTotals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
#statsDialog .profile-month #practiceTotals>div{display:grid;gap:6px;min-height:81px;padding:12px;border:1px solid #354039;border-radius:12px;background:#1b231e;text-align:left}
#statsDialog .profile-month #practiceTotals strong{font-size:25px;font-weight:800;line-height:1.2;color:#f2f4ef;letter-spacing:-.6px}
#statsDialog .profile-month #practiceTotals span{font-size:12px;line-height:1.4;letter-spacing:0;text-transform:none;color:#b6c0b9}
#statsDialog #profileSummary{color:#cad3cb;font-size:13px}
#statsDialog #profileMonthNote{padding:12px;border:1px dashed #506556;border-radius:10px}
#statsDialog .profile-chart-section{display:grid;gap:12px;margin-top:6px}
#statsDialog .profile-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
#statsDialog #profileGrouping{width:145px;flex-shrink:0}
#statsDialog #profileChart{display:grid;gap:5px;width:100%;line-height:normal}
#statsDialog .profile-bar{display:grid;gap:8px;padding:9px 12px;min-height:55px;width:100%;background:transparent;border:1px solid transparent;border-radius:10px;color:#edf1eb;text-align:left}
#statsDialog .profile-bar[aria-pressed=true]{border-color:#b9d5c0;background:#1e2b22}
#statsDialog .profile-bar-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:13px;line-height:1.3}
#statsDialog .profile-bar-head>span{text-transform:capitalize}
#statsDialog .profile-bar-head>strong{white-space:nowrap;font-size:15px}
#statsDialog .profile-bar[aria-pressed=true] .profile-bar-head>span:before{content:'✓ ';color:#c1e4c8;font-weight:800}
#statsDialog .profile-bar-track{display:block;height:7px;border-radius:4px;background:#2a342d;overflow:hidden}
#statsDialog .profile-bar-track i{display:block;height:100%;min-width:0;border-radius:4px;background:#9bbea5}
#statsDialog .profile-chart-pages{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:6px}
#statsDialog .profile-chart-pages span{text-align:center;font-size:12px;color:#c5cec7}
#statsDialog #profileChartNote{font-size:11px;color:#aab7ad}
#statsDialog .profile-day{display:grid;gap:12px;padding:14px;border:1px solid #46564b;border-radius:12px;background:#1b231e}
#statsDialog .profile-detail-heading{display:grid;gap:5px}
#statsDialog .profile-detail-heading>span{font-size:10px;letter-spacing:1.5px;color:#b4cdbb}
#statsDialog #profileDayTitle{text-transform:capitalize}
#statsDialog #profileDayTotals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#statsDialog #profileDayTotals>div{display:grid;gap:3px}
#statsDialog #profileDayTotals strong{font-size:20px}
#statsDialog #profileDayTotals span{font-size:12px;color:#b6c0b9}
#statsDialog #profileDrill,#statsDialog #profileToday{min-height:44px;padding:10px;border:1px solid #556c5d;border-radius:9px;background:#263b2d;color:#edf1eb;font-size:14px;font-weight:700}
#statsDialog .profile-breakdown{display:grid;gap:8px;padding:12px 0;border-top:1px solid #354039}
#statsDialog .profile-section-row{display:grid;grid-template-columns:minmax(0,1fr) auto 38px;align-items:baseline;gap:8px;padding:11px 0;border-bottom:1px solid #29342d;font-size:14px}
#statsDialog .profile-section-row strong{font-size:15px;white-space:nowrap}
#statsDialog .profile-section-row small{font-size:11px;text-align:right;color:#aab7ad}
#statsDialog #profileCalendarWrap{display:grid;gap:10px;padding:12px 0;border-top:1px solid #354039}
#statsDialog .profile-weekdays,#statsDialog #profileCalendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
#statsDialog .profile-weekdays{font-size:11px;color:#b6c0b9;text-align:center}
#statsDialog #profileCalendar button{display:grid;align-content:center;justify-items:center;gap:5px;height:58px;min-height:58px;padding:3px 0;border:1px solid transparent;border-radius:8px;background:#17201a;color:#adb8b0;font-size:13px;position:relative}
#statsDialog #profileCalendar small{font-size:10px;font-weight:700;line-height:1}
#statsDialog [data-intensity="1"]{background:#253e2d!important;color:#eef5ef!important}
#statsDialog [data-intensity="2"]{background:#35563f!important;color:#eef5ef!important}
#statsDialog [data-intensity="3"]{background:#4c7558!important;color:#fff!important}
#statsDialog [data-intensity="4"]{background:#a2c5aa!important;color:#112119!important}
#statsDialog #profileCalendar button[aria-pressed=true]{outline:2px solid #edf1eb;outline-offset:1px}
#statsDialog #profileCalendar button[aria-current=date]>span{text-decoration:underline;text-underline-offset:3px;font-weight:800}
#statsDialog #profileCalendar button:disabled{opacity:.3}
#statsDialog .profile-intensity{display:flex;flex-wrap:wrap;align-items:center;gap:5px;font-size:10px;color:#b6c0b9}
#statsDialog .profile-intensity span{flex:1 1 auto;text-align:center;padding:5px;border-radius:4px;background:#17201a}
#statsDialog #profileCalendarSelection{padding:12px;border:1px solid #46564b;border-radius:10px;color:#edf1eb}
#statsDialog .profile-method{padding:12px 0;border-top:1px solid #354039;color:#b6c0b9}
#statsDialog .profile-method summary{font-size:13px;cursor:pointer}
#statsDialog .profile-method p{margin-top:10px}
#statsDialog .profile-more{border:1px solid #354039;border-radius:12px;padding:12px;margin:0 0 12px;background:#151c17}
#statsDialog .profile-more>summary{font-size:13px;cursor:pointer}
#statsDialog .profile-more[open]>summary{margin-bottom:12px}
#statsDialog .profile-month button:focus-visible,#statsDialog .profile-month select:focus-visible{outline:2px solid #edf1eb;outline-offset:2px}
@media(max-width:350px){#statsDialog .dialog-content{padding-inline:8px}#statsDialog .profile-month #practiceTotals strong{font-size:22px}#statsDialog .profile-bar{padding-inline:6px}#statsDialog .profile-bar-head{font-size:12px}#statsDialog .profile-bar-head>strong{font-size:13px}#statsDialog .profile-month h3{font-size:14px}#statsDialog #profileGrouping{width:132px}}

/* The overview stays small; measurements open on demand. */
#statsDialog .profile-month{gap:12px;margin-bottom:0}
#statsDialog .profile-month #practiceTotals{grid-template-columns:1.35fr 1fr 1fr;gap:8px;padding:8px 0 10px}
#statsDialog .profile-month #practiceTotals>div{border:0;background:none;border-radius:0;padding:0 6px;min-height:0;gap:5px;text-align:left}
#statsDialog .profile-month #practiceTotals strong{font-size:19px;letter-spacing:-.4px;white-space:nowrap}
#statsDialog .profile-month #practiceTotals span{font-size:11px}
#statsDialog .profile-month-nav select{font-size:15px;font-weight:600}
#statsDialog .profile-segments button[aria-pressed=true]{background:#35443a;color:#f5f5f7;font-weight:650}
#statsDialog .profile-chart-section{gap:7px;margin-top:0}
#statsDialog .profile-chart-heading h3{font-size:13px;font-weight:600}
#statsDialog #profileGrouping{font-size:12px;width:128px;height:38px}
#statsDialog .profile-bar{min-height:46px;padding:8px 5px;gap:6px}
#statsDialog .profile-bar-head{font-size:12px}
#statsDialog .profile-bar-head>strong{font-size:12px;font-weight:600}
#statsDialog .profile-bar-track{height:5px;background:#242c26}
#statsDialog .profile-bar-track i{background:#748a79}
#statsDialog .profile-bar[aria-pressed=true]{border-color:#748a79;background:#242e27}
#statsDialog .profile-bar[aria-pressed=true] .profile-bar-head>span:before{content:''}
#statsDialog #profileExtras{margin:6px 0 0;padding:0;border:0;border-top:1px solid #303a33;background:none}
#statsDialog #profileExtras>summary{display:flex;align-items:center;min-height:48px;font-size:13px;color:#b7c1ba;cursor:pointer}
#statsDialog #profileExtras>summary:after{content:'＋';margin-left:auto}
#statsDialog #profileExtras[open]>summary:after{content:'−'}
#statsDialog #profileExtras>p,#statsDialog #profileExtras>.profile-filter,#statsDialog #profileExtras>#profileMetrics{margin:12px 0}
#statsDialog .profile-day{padding:12px;gap:10px}
#statsDialog #profileDayTotals strong{font-size:17px}
#statsDialog #profileCalendar button{height:48px;min-height:48px}

/* Practice time and timing error share dates, with explicit separate units. */
#statsDialog .profile-chart-legend{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#bac3bd;padding:8px 0 2px}
#statsDialog .profile-chart-legend span{display:flex;align-items:center;gap:5px;white-space:nowrap}
#statsDialog .legend-time:before{content:'';width:8px;height:10px;background:#748a79;border-radius:2px}
#statsDialog .legend-error:before{content:'';width:15px;height:2px;background:#eeeef3}
#statsDialog .profile-timeline svg{display:block;width:100%;height:auto;overflow:visible}
#statsDialog .profile-timeline text{font:10px Manrope,sans-serif;fill:#aeb9b1}
#statsDialog .chart-rule{stroke:#303a33;stroke-width:1}
#statsDialog .chart-time{fill:#748a79}
#statsDialog .chart-error{fill:none;stroke:#eeeef3;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#statsDialog .chart-point{fill:#eeeef3;stroke:#101712;stroke-width:1.5}
#statsDialog .profile-chart-dates{display:grid;padding:0 9.375% 0 8.75%;gap:0;margin-top:-14px}
#statsDialog .profile-chart-dates button{min-height:44px;padding:6px 0;background:none;border:0;border-bottom:2px solid transparent;border-radius:5px 5px 0 0;color:#abb7ae;font-size:12px}
#statsDialog .profile-chart-dates button[aria-pressed=true]{color:#f5f5f7;border-bottom-color:#eeeef3;background:#242e27}
#statsDialog .profile-chart-reading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:12px 0 6px;font-size:12px;color:#b7c1ba}
#statsDialog .profile-chart-reading strong{font-size:12px;font-weight:600;color:#eeeef3;text-align:right}
@media(max-width:350px){#statsDialog .profile-chart-legend{font-size:9px}#statsDialog .profile-chart-reading{font-size:11px}#statsDialog .profile-chart-reading strong{font-size:11px}}

/* A full period, one scrubbable chart and two clear readings. */
#statsDialog .profile-chart-section{padding:16px 12px;border:1px solid #303a33;border-radius:18px;background:#171e19;gap:12px}
#statsDialog .profile-chart-heading h3{font-size:16px;font-weight:650}
#statsDialog .profile-month #practiceTotals{padding:12px 2px 16px}
#statsDialog .profile-month #practiceTotals strong{font-size:22px}
#statsDialog .profile-month #practiceTotals>div:first-child strong{font-size:26px}
#statsDialog .profile-month #practiceTotals span{font-size:12px}
#statsDialog .profile-view-modes{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:3px;background:#101712;border-radius:10px}
#statsDialog .profile-view-modes button{background:none;border:0;border-radius:8px;color:#aeb9b1;font-size:13px;min-height:40px;padding:6px}
#statsDialog .profile-view-modes button[aria-pressed=true]{background:#35443a;color:#f5f5f7}
#statsDialog .profile-chart-legend{font-size:11px;gap:6px;padding:12px 0 0}
#statsDialog .profile-timeline svg{width:100%;height:auto;max-height:290px}
#statsDialog .chart-volume{fill:#748a79;fill-opacity:.2}
#statsDialog .chart-time-line{stroke:#91a696;stroke-width:2;fill:none;stroke-linejoin:round}
#statsDialog .chart-cursor{stroke:#7b8d80;stroke-width:1;stroke-dasharray:3 4}
#statsDialog #profilePoint{width:100%;height:30px;min-height:30px;margin:0;padding:0;accent-color:#c6d1c8;cursor:pointer;touch-action:pan-y}
#statsDialog .profile-date-range{display:flex;justify-content:space-between;color:#aeb9b1;font-size:12px;padding:0 2px}
#statsDialog .profile-chart-reading{display:grid;gap:10px;padding:15px 0 2px;border-top:1px solid #303a33;margin-top:12px;font-size:14px;color:#e2e8e3}
#statsDialog .profile-selected-values{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#statsDialog .profile-selected-values>div{display:grid;gap:5px}
#statsDialog .profile-chart-reading strong{font-size:22px;line-height:1.2;text-align:left;white-space:nowrap}
#statsDialog .profile-selected-values span{font-size:12px;color:#aeb9b1}
#statsDialog #profileChartNote{font-size:12px;line-height:1.4}
@media(max-width:350px){#statsDialog .profile-month #practiceTotals strong,#statsDialog .profile-month #practiceTotals>div:first-child strong{font-size:20px}#statsDialog .profile-chart-section{padding:12px 8px}#statsDialog .profile-chart-reading strong{font-size:20px}#statsDialog .profile-chart-legend{font-size:10px}}

/* Session results stay readable outside the data-management tools. */
body.redesign .progress-session-list>summary{font-size:14px;line-height:1.5;padding:8px 0}
body.redesign .progress-session-list #sessionHistory summary{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
body.redesign .progress-session-list #sessionHistory p{font-size:12px!important;line-height:1.6}
body.redesign .progress-session-list #sessionHistory h3{font-size:14px;margin:16px 0 10px}
body.redesign .progress-session-list .tempo-bar-row{grid-template-columns:minmax(105px,1.3fr) minmax(35px,1fr) 38px;font-size:12px;gap:8px}
body.redesign .progress-session-list .tempo-bar-row>span{white-space:normal;overflow-wrap:anywhere}

/* daily.css */
/* Daily planning wraps the existing training surfaces. */
body.redesign #lessonRudiments,body.redesign #exerciseTabs [data-lesson="rudiments"]{display:none!important}
body.redesign #newShell.daily-home #newStage>.console,body.redesign #newShell.daily-home #idleActions,body.redesign #newShell.daily-home #chooseLesson,body.redesign #newShell.daily-home #characterStage{display:none!important}
body.redesign #newShell.daily-home #newStage{display:block!important;min-height:0;overflow:visible;padding:0}
body.redesign #newShell.daily-home{height:auto;min-height:100dvh;overflow:visible}
#appBoot{padding:24px;color:#a4ada6;font-size:14px}
body.redesign #dailyHome{width:100%;max-width:520px;margin:0 auto;padding:18px 16px 24px;color:#eee;font-family:Manrope,Arial,sans-serif;text-align:left;box-sizing:border-box}
#dailyHome[hidden],#dailyAbuser[hidden],#dailyResult[hidden],#dailyError[hidden]{display:none!important}
#dailyHome *{box-sizing:border-box;min-width:0}
body.redesign #dailyHome>.daily-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;height:auto;min-height:0;padding:0;margin:0 0 16px;border:0;background:none}
body.redesign #dailyHome h1{font:650 20px/1.3 Manrope,Arial,sans-serif;letter-spacing:-.3px;margin:0}
#dailyDate,.daily-meta{font-size:12px;color:#a4ada6}
#dailyTasks{list-style:none;margin:0;padding:0;display:grid;gap:8px}
#dailyTasks li{display:flex;align-items:center;gap:12px;padding:14px 12px;border:1px solid #303a33;border-radius:14px;background:#242724}
#dailyTasks li.next{border-color:#748a79;background:#35443a}
#dailyTasks li.done{background:#1b211d;color:#b4bdb7}
.daily-number{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid #66766a;border-radius:50%;color:#e5e8e5;font-size:12px}
#dailyTasks li>div{flex:1}
#dailyTasks strong{display:block;font-size:14px;line-height:1.4;font-weight:650}
#dailyTasks li>div>span{display:block;font-size:12px;color:#b7c1ba;margin-top:4px}
#dailyTasks small{font-size:11px;color:#b7c1ba;white-space:nowrap}
.daily-meta{display:flex;justify-content:space-between;margin:12px 2px 18px}
body.redesign #dailyStart{display:block;width:100%!important;max-width:none;min-height:46px;border:0;border-radius:12px;background:#eeeef3;color:#111;font:650 14px/1.3 Manrope,Arial,sans-serif;text-transform:none;letter-spacing:0;padding:12px}
#dailyResult{margin:0 0 12px;color:#dce3de;font-size:13px}
#dailyAbuser{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #303a33;border-radius:12px;background:#1b211d;margin:0 0 14px;font-size:13px}
#dailyReplay{flex-shrink:0;min-width:44px;min-height:44px;background:none;color:#ddd;border:0;border-radius:50%}
#dailyError{color:#ffb59f;font-size:13px;line-height:1.5}

body.redesign #newShell.app-boot #newStage>.console,body.redesign #newShell.app-boot #idleActions,body.redesign #newShell.app-boot>#characterStage{visibility:hidden!important;pointer-events:none}

/* Daily sessions have one visible endpoint, driven by actual playing time. */
#dailySessionProgress[hidden],#dailySaved[hidden]{display:none!important}
#dailySessionProgress{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px 14px;padding:10px 12px 12px;border:1px solid #35443a;border-radius:14px;background:#1b211d;color:#eeeef3;font-variant-numeric:tabular-nums}
.daily-timer-copy{display:grid;gap:5px;min-width:0}
#dailyStage{font-size:16px;font-weight:650;line-height:1.25}
#dailyTimerLabel{font-size:15px;line-height:1.2;color:#b7c1ba}
#dailyRemaining{font-size:38px;font-weight:700;line-height:1;letter-spacing:-1px}
#dailyTimeProgress{grid-column:1/-1;height:8px;border-radius:8px;background:#354039;overflow:hidden}
#dailyTimeProgress>i{display:block;height:100%;background:#eeeef3;border-radius:inherit;transition:width .15s linear}
#dailySessionProgress.paused #dailyTimerLabel{color:#eeeef3}
#dailyResult{font-size:22px;font-weight:650;line-height:1.25;margin-bottom:8px}
#dailySaved{font-size:15px;color:#b7c1ba;line-height:1.4;margin:0 0 18px}
body.redesign #newShell.daily-playing #chooseLesson,
body.redesign #newShell.daily-playing #newStage .console>#blockStatus,
body.redesign #newShell.daily-playing #newStage .console>#playHint,
body.redesign #newShell.daily-playing #newStage .console>#lessonProgress,
body.redesign #newShell.daily-playing #switchRoundResult,
body.redesign #newShell.daily-playing #reportProblem{display:none!important}
body.redesign #newShell.daily-playing #newStage .console>.transport button{font-size:15px!important;min-height:48px;height:48px}
body.redesign #newShell.daily-playing.session-active{grid-template-rows:auto minmax(0,1fr)!important;gap:10px!important}
body.redesign #newShell.daily-playing>#dailySessionProgress{grid-row:1}
body.redesign #newShell.daily-playing>#newStage{grid-row:2!important;min-height:0}
body.redesign #newShell.daily-playing.session-active.pattern-mode #newStage .console.playing.switch-focus{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto 46px 36px minmax(90px,1fr) 50px!important;padding:0!important;gap:7px!important}
body.redesign #newShell.daily-playing.session-active.pattern-mode #newStage .console.switch-focus>#switchBoard{grid-area:1/1!important;grid-template-rows:auto auto auto!important}
body.redesign #newShell.daily-playing.session-active.pattern-mode #newStage .console.switch-focus>.tempo{grid-area:2/1!important;height:46px}
body.redesign #newShell.daily-playing.session-active.pattern-mode #newStage .console.switch-focus>#beats{grid-area:3/1!important;height:36px}
body.redesign #newShell.daily-playing.session-active.pattern-mode #newStage .console.switch-focus>#hitStrip{grid-area:4/1!important}
body.redesign #newShell.daily-playing.session-active.pattern-mode #newStage .console.switch-focus>.transport{grid-area:5/1!important;height:50px}
body.redesign #newShell.daily-playing.session-active.pattern-mode #newStage .console.switch-focus>#blockStatus,
body.redesign #newShell.daily-playing.session-active.pattern-mode #newStage .console.switch-focus>#lessonProgress,
body.redesign #newShell.daily-playing.session-active.pattern-mode #newStage .console.switch-focus>#tempoRange{display:none!important}
body.redesign #newShell.daily-playing.session-active.pattern-mode #newStage .switch-board-label{font-size:14px;letter-spacing:0}
body.redesign #newShell.daily-playing.session-active.pattern-mode #newStage .switch-board-bottom::before{font-size:11px;letter-spacing:0}
body.redesign #newShell.daily-playing.session-active.pattern-mode #newStage #switchBoardCount:not(:empty)::before{font-size:10px;letter-spacing:0}
body.redesign #newShell.daily-playing #switchBoardLabel{font-size:14px;letter-spacing:0}
body.redesign #newShell.daily-playing #switchBoardNext{font-size:17px;line-height:1.25}
body.redesign #newShell.daily-playing:not(.pattern-mode) #newStage .console{grid-template-rows:80px minmax(32px,auto) 40px minmax(80px,1fr) 48px 48px!important;gap:7px!important}
body.redesign #newShell.daily-playing:not(.pattern-mode) #newStage .console>#taskBrief{grid-area:1/1!important;display:flex!important;flex-direction:column;justify-content:center;gap:5px}
body.redesign #newShell.daily-playing:not(.pattern-mode) #handsBrief{font-size:17px;line-height:1.25}
body.redesign #newShell.daily-playing:not(.pattern-mode) #clickBrief{font-size:14px;line-height:1.3}
body.redesign #newShell.daily-playing:not(.pattern-mode) #newStage .console>#nextCue{grid-area:2/1!important;font-size:14px;line-height:1.3;align-self:center;white-space:normal}
body.redesign #newShell.daily-playing:not(.pattern-mode) #newStage .console>#beats{grid-area:3/1!important}
body.redesign #newShell.daily-playing:not(.pattern-mode) #newStage .console>#hitStrip{grid-area:4/1!important}
body.redesign #newShell.daily-playing:not(.pattern-mode) #newStage .console>.tempo{grid-area:5/1!important}
body.redesign #newShell.daily-playing:not(.pattern-mode) #newStage .console>.transport{grid-area:6/1!important}
body.redesign #newShell.daily-playing:not(.pattern-mode) #newStage .console>#tempoRange{display:none!important}
body.redesign #newShell.daily-playing.paused-state #newStage .console>#statePanel{grid-area:1/1/-1/-1!important;align-self:stretch}
@media(max-height:700px){
 #dailySessionProgress{padding:8px 10px;gap:7px 12px}#dailyRemaining{font-size:34px}
 body.redesign #newShell.daily-playing:not(.pattern-mode) #newStage .console{grid-template-rows:72px minmax(32px,auto) 34px minmax(60px,1fr) 44px 48px!important;gap:4px!important}
}
@media(prefers-reduced-motion:reduce){#dailyTimeProgress>i{transition:none}}
/* The pause explanation must leave the persistent transport reachable. */
body.redesign #newShell.daily-playing.paused-state #newStage .console{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) 50px!important;gap:8px!important}
body.redesign #newShell.daily-playing.paused-state #newStage .console>:not(#statePanel):not(.transport){display:none!important}
body.redesign #newShell.daily-playing.paused-state #newStage .console>#statePanel{grid-area:1/1!important}
body.redesign #newShell.daily-playing.paused-state #newStage .console>.transport{display:flex!important;grid-area:2/1!important;height:50px}
body.redesign #newShell.daily-playing #statePanel button{background:#eeeef3;color:#111;font-size:15px;min-height:48px}
body.redesign #newShell.daily-playing #statePanel .coach p{font-size:15px;line-height:1.4;color:#bbc5be}

.audio-consent-dialog{max-width:min(440px,calc(100% - 32px));border:1px solid #46534a;border-radius:18px;background:#171e19;color:#eeeef3;padding:24px}.audio-consent-dialog::backdrop{background:#000b}.audio-consent-dialog h2{font-size:22px;line-height:1.25;margin:0 0 16px}.audio-consent-dialog p{font-size:15px;line-height:1.5;color:#b7c1ba}.audio-consent-dialog a,.mic-privacy-note a{color:inherit}.audio-consent-dialog>div{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.audio-consent-dialog button{min-height:48px;border:1px solid #46534a;border-radius:10px;background:#29382e;color:#eeeef3;font-size:14px}.audio-consent-dialog [data-send]{background:#eeeef3;color:#111}.diagnostic-choice{display:flex;align-items:center;gap:10px;font-size:15px}.diagnostic-choice input{width:22px;height:22px;accent-color:#8caa95}.mic-privacy-note{font-size:13px;line-height:1.5;color:#b7c1ba}
#idleActions:has(>#openRecording:not([hidden])){display:flex;gap:10px}
#idleActions:has(>#openRecording:not([hidden])) #mainStart{flex:1;min-width:0;width:auto}
#openRecording{min-height:48px;padding:12px 16px;border:1px solid #65766a;border-radius:13px;background:#253129;color:#edf1ea;font:650 14px Manrope,Arial,sans-serif}
#idleActions>#openRecording{flex:0 0 auto;min-width:100px}
#recordingDialog .sound-details{margin:18px 0;border:0;padding:0}
#recordingDialog .sound-details>summary{display:none}
#recordingDialog .recording-hint,#recordingDialog .help{font-size:14px;line-height:1.5;color:#b7c1ba;margin:12px 0}
#recordingDialog .diagnostic-choice{font-size:16px;line-height:1.5;margin:16px 0}
#recordingDialog .diagnostic-choice input{flex:0 0 24px;width:24px;height:24px}
#recordingDialog .dialog-content button,#recordingDialog .clickonly{display:block;width:100%;box-sizing:border-box;min-height:48px;margin:10px 0;padding:13px;border:1px solid #65766a;border-radius:12px;background:#253129;color:#edf1ea;text-align:center;font:650 14px Manrope,Arial,sans-serif;text-decoration:none}
#recordingDialog [hidden]{display:none!important}
#recordingDialog button:disabled{opacity:.45}

/* Coaching is optional to read; the four-task launch surface stays compact. */
#dailyRoute{margin-top:18px;border-top:1px solid #303a33;padding-top:12px;color:#b7c1ba;font-size:14px;line-height:1.6}
#dailyRoute summary{cursor:pointer;min-height:44px;padding:8px 0;color:#e5e8e5;font-size:14px;font-weight:600}
#dailyRoute summary:focus-visible{outline:2px solid #b7c1ba;outline-offset:4px}
#dailyRouteTasks{list-style:none;padding:0;margin:0}
#dailyRouteTasks li{padding:16px 0;border-top:1px solid #303a33}
#dailyRouteTasks strong{display:block;color:#eeeef3;font-size:16px}
#dailyRouteTasks p{margin:8px 0;overflow-wrap:anywhere}
.daily-route-intro{margin:4px 0 16px}

/* Optional recommendation appears only after the unchanged four daily tasks. */
#dailyNextStep[hidden],#dailyNextOpen[hidden],#dailyNextError[hidden]{display:none!important}
#dailyNextStep{margin:0 0 12px;padding:18px;border:1px solid #46534a;border-radius:16px;background:#1b211d}
#dailyNextStep .daily-next-kicker{font-size:11px;letter-spacing:.08em;color:#b7c1ba}
#dailyNextStep h2{font-size:21px;line-height:1.3;margin:10px 0;font-weight:650;letter-spacing:-.3px}
#dailyNextStep p{font-size:14px;line-height:1.5;margin:8px 0;color:#c7cec9;overflow-wrap:anywhere}
#dailyNextStep #dailyNextGoal{color:#eeeef3}
#dailyNextMeta{display:block;font-size:12px;color:#b7c1ba;margin:12px 0}
#dailyNextOpen{display:block;width:100%;min-height:48px;border:0;border-radius:12px;background:#eeeef3;color:#111;font:650 14px/1.3 Manrope,Arial,sans-serif;padding:12px;cursor:pointer}
#dailyNextOpen:disabled{opacity:.6;cursor:wait}
#dailyNextOpen:focus-visible{outline:2px solid #b7c1ba;outline-offset:4px}
#dailyNextStep #dailyNextError{color:#ffb59f}
body.redesign #dailyHome.daily-complete #dailyStart{background:transparent;color:#c7cec9;border:1px solid #46534a}

#dailyNextRoutes[hidden]{display:none!important}
#dailyNextRoutes{margin-top:16px;border-top:1px solid #46534a;padding-top:12px}
#dailyNextRoutes>summary{font-size:14px;line-height:1.5;cursor:pointer;color:#c7cec9;min-height:28px}
#dailyNextRouteList>section{padding:12px 0 16px}
#dailyNextRouteList>section+section{border-top:1px solid #46534a}
#dailyNextRouteList h3{font-size:17px;line-height:1.4;margin:8px 0}
#dailyNextRouteList ol{list-style:none;padding:0;margin:14px 0;display:grid;gap:6px}
#dailyNextRouteList li{display:flex;justify-content:space-between;gap:12px;font-size:13px;line-height:1.5;padding:8px 10px;border:1px solid transparent;border-radius:8px;color:#aab5ae}
#dailyNextRouteList li.current{border-color:#748a79;background:#242d26;color:#f0f1ef}
#dailyNextRouteList li.passed{color:#c2d4c7}
#dailyNextRouteList li>span:last-child{white-space:nowrap}
#dailyNextRouteList .daily-route-goal{color:#eeeef3}
#dailyNextRouteList .daily-route-rules,#dailyNextRouteList .daily-route-conditions{font-size:12px;line-height:1.6;color:#abb7af}
.daily-route-open{width:100%;min-height:44px;margin-top:10px;padding:10px;border:1px solid #738477;border-radius:10px;background:transparent;color:#eeeef3;font:600 14px/1.4 Manrope,Arial,sans-serif;cursor:pointer}
.daily-route-open:disabled{opacity:.6;cursor:wait}
.daily-route-open:focus-visible{outline:2px solid #b7c1ba;outline-offset:3px}

/* metronome-session.css */
.metro-session{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;font:12px/1.3 Arial,sans-serif;color:#9eaaa2;margin:8px 0}
.metro-session output{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;color:#d9e1dc;margin-left:5px}
.metro-session #metroSessionNote{font-size:12px;text-align:right}
.metro-transport{display:flex;gap:8px}.metro-transport button{flex:1}.metro-transport:empty{display:none}
#metroStage .metro-panel>.metro-session{display:flex!important;grid-area:3/1;margin:0;padding:0 2px;align-self:center}
#metroStage .metro-panel>.beat-tip{display:none!important}
#metroStage .unified-transport #metroStop:disabled{opacity:.38;cursor:default}

/* desktop.css */
/* Desktop keeps the same controls and musical cues within a readable width. */
@media (min-width: 900px) {
  body.redesign #newShell {
    width:calc(100% - 64px);max-width:1040px;margin-inline:auto;
    padding:16px 0 20px;gap:12px;
  }
  body.redesign #newShell:not(.session-active) {grid-template-rows:48px auto minmax(0,1fr) 56px}
  body.redesign #newShell.metro-mode:not(.session-active) {grid-template-rows:48px auto minmax(0,1fr)}
  body.redesign #newShell.daily-home {grid-template-rows:48px auto auto;align-content:start}
  #newShell .new-header .new-brand {font-size:14px;letter-spacing:2px}
  #newShell #appDock {gap:8px}
  #newShell #appDock>button {font-size:15px;min-height:48px}
  #newShell #appDock>button span {font-size:15px}
  #newShell .new-titlebar {gap:10px}
  #newShell .new-titlebar #chooseLesson {padding:10px 16px;min-height:56px;height:auto}
  #newShell #chooseLesson strong {font-size:16px}
  #newShell #chooseLesson .setup-kicker {font-size:11px}
  body.redesign #newStage .tempo, #metroStage .metro-panel>.dial-row {justify-content:center!important;gap:40px!important}
  body.redesign #newShell #newStage .tempo input#bpm,
  #metroStage .dial-center input#metroBpm {font-size:52px;height:58px}
  body.redesign #newShell #newStage #hitStrip span {font-size:16px!important}
  body.redesign #newShell #newStage .console>#blockStatus {font-size:12px;line-height:20px}
  body.redesign #newShell #handsBrief {font-size:16px!important;line-height:1.35!important}
  body.redesign #newShell #clickBrief {font-size:14px!important;line-height:1.35!important}
  #idleActions {display:flex;justify-content:center}
  #idleActions #mainStart {max-width:520px;font-size:16px;height:52px}
  body.redesign #newShell #newStage .transport button,
  #metroStage .unified-transport button, #metroStage #metroTap {font-size:16px}
  #metroStage .metro-panel>.metro-session {font-size:15px;justify-content:center;gap:18px}
  #metroStage .metro-session output {font-size:20px}
  body.redesign #dailyHome {max-width:680px;padding:32px 0}
  body.redesign #dailyHome h1 {font-size:30px}
  #dailyTasks {gap:12px}
  #dailyTasks li {padding:20px;gap:16px}
  #dailyTasks strong {font-size:18px}
  #dailyTasks li>div>span {font-size:15px}
  #dailyTasks small,#dailyDate,.daily-meta {font-size:14px}
  .daily-number {width:32px;height:32px;font-size:15px}
  body.redesign #dailyStart {font-size:16px;min-height:52px}
  .new-dialog {width:620px;max-width:calc(100% - 64px);max-height:calc(100dvh - 48px);margin:auto;border-radius:20px;overflow:auto}
  .new-dialog>header {padding:18px 24px}
  .new-dialog h2 {font-size:22px}
  .new-dialog .dialog-content {padding:20px 24px}
  .new-dialog button,.new-dialog label,.new-dialog select,.new-dialog input {font-size:15px}
  .new-dialog .mode-card small {font-size:13px;line-height:1.4}
  #statsDialog {width:860px;height:calc(100dvh - 64px);max-height:860px;margin:auto;border-radius:20px}
  #statsDialog .dialog-content {height:calc(100% - 64px);padding:20px 28px 28px}
  #statsDialog .profile-month {gap:20px}
  #statsDialog .profile-chart-section {padding:20px}
  #statsDialog .profile-timeline svg {max-height:260px}
  body.redesign #newShell.session-active.pattern-mode #newStage #switchBoardNext {font-size:22px}
  body.redesign #newShell.session-active.pattern-mode #newStage .switch-board-label {font-size:14px}
  body.redesign #newShell:not(.session-active):not(.rudiment-mode) #newStage .console {grid-template-rows:24px minmax(100px,1fr) 52px minmax(100px,1.2fr) 64px 48px 0!important;gap:8px!important}
  body.redesign #newStage .console>#characterStage,
  #metroStage .metro-panel>#characterStage {display:grid!important;grid-area:4/1!important;position:relative!important;inset:auto!important;width:100%!important;height:100%!important;min-height:0;place-items:center;overflow:hidden;pointer-events:none}
  body.redesign #newShell:not(.session-active) #newStage #characterStage #character {height:100%;min-height:0;display:grid;place-items:center}
  body.redesign #newShell:not(.session-active) #newStage #characterStage #characterImg {width:auto!important;height:auto!important;max-height:180px!important;max-width:100%!important;min-height:0;object-fit:contain}
  body.redesign #newShell #durationLadder>div {display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;grid-template-rows:1fr 1fr!important;gap:6px 10px;padding:20px!important;align-content:center}
  body.redesign #newShell #durationLadder>div small {grid-area:1/1/3/2;font-size:13px!important;align-self:center}
  body.redesign #newShell #durationLadder>div b {grid-area:1/2;font-size:32px!important;align-self:end;line-height:1.1}
  body.redesign #newShell #durationLadder>div span {grid-area:2/2;font-size:15px!important;align-self:start;line-height:1.3}
  body.redesign #newShell.daily-playing #dailyStage {font-size:20px}
}

/* phrases-embed.css */
/* These rules apply only while the new exercise owns the instrument area. */
body.redesign #newShell.phrases-mode{grid-template-rows:44px auto minmax(0,1fr)!important;height:var(--new-height,100dvh);overflow:hidden}
body.redesign #newShell.phrases-mode #newStage{display:block!important;overflow:auto;min-width:0;overscroll-behavior-y:contain}
body.redesign #newShell.phrases-mode #newStage>.console,
body.redesign #newShell.phrases-mode #idleActions,
body.redesign #newShell.phrases-mode #characterStage{display:none!important}
#phrasesStage[hidden]{display:none!important}
#phrasesStage{min-width:0;max-width:700px;margin-inline:auto}
#lessonDialog.phrases-selection #sessionSetup>:not(.lesson-picker),
#lessonDialog.phrases-selection #lessonStatus{display:none!important}
@media(min-width:900px){body.redesign #newShell.phrases-mode{grid-template-rows:48px auto minmax(0,1fr)!important}}

/* Keep both bars in view instead of letting the sticky controls cover the preview. */
body.redesign #newShell.phrases-mode.phrases-playing #chooseLesson{display:none!important}

@media(max-height:700px){body.redesign #newShell.phrases-mode{grid-template-rows:36px auto minmax(0,1fr)!important}}

/* The return stays visible until the next return; silence gives no moving cue. */
#randomPulseStatus{padding:18px;border:1px solid #526355;border-radius:18px;margin:14px 0;background:#18211b;line-height:1.5}#randomPulseStatus strong{font-size:1.2rem}#randomPulseStatus p{margin:8px 0}#randomPulseStatus small{color:#b6c5b9}.random-quiet #hitStrip,.random-quiet .beats{visibility:hidden}

body.redesign #newShell.random-mode.session-active:not(.paused-state):not(.is-calibrating) #newStage .console{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:28px auto minmax(100px,1fr) 50px 48px!important;gap:10px!important}
body.redesign #newShell.random-mode.session-active:not(.paused-state):not(.is-calibrating) #newStage #randomPulseStatus:not([hidden]){display:block!important;grid-area:2/1!important;margin:0;padding:12px;min-width:0}
body.redesign #newShell.random-mode.session-active:not(.paused-state):not(.is-calibrating) #newStage #beats{grid-area:1/1!important}
body.redesign #newShell.random-mode.session-active:not(.paused-state):not(.is-calibrating) #newStage #hitStrip{grid-area:3/1!important;min-height:0!important}
body.redesign #newShell.random-mode.session-active:not(.paused-state):not(.is-calibrating) #newStage .tempo{grid-area:4/1!important}
body.redesign #newShell.random-mode.session-active:not(.paused-state):not(.is-calibrating) #newStage .transport{grid-area:5/1!important}
body.redesign #newShell.random-mode.session-active:not(.paused-state):not(.is-calibrating) #newStage :is(#taskBrief,#nextCue,#blockStatus,#tempoRange){display:none!important}

/* Sixteenths: a clock cursor is independent of delayed hit assessment. */
body.redesign #hitStrip > [data-current="true"]{box-shadow:inset 0 0 0 2px #f0f3eb;transition:none}

body.redesign #hitStrip > [data-bar-label]{position:relative}
body.redesign #hitStrip > [data-bar-label]:not([data-bar-label=""])::before{content:attr(data-bar-label);position:absolute;top:4px;left:3px;font:8px/1.1 Manrope,Arial,sans-serif;color:#b1c3b6;white-space:nowrap;pointer-events:none}

/* Training chooser: primary practice, additional exercises and experiments. */
#lessonDialog #lessonCombined{display:none!important}
#lessonDialog .training-group-title{margin:28px 0 12px;padding-top:20px;border-top:1px solid #353e36;font-size:16px;line-height:1.4;color:#abb4ad}
#lessonDialog #mainTrainingTitle{margin-top:0;padding-top:0;border-top:0}
#lessonDialog #combinedOptions>.check{margin-top:8px}
#lessonDialog #combinedHint{margin:6px 0 12px;line-height:1.5}

/* Mobile browser panels can leave less room than the layout viewport. */
@media(max-width:899px){
 .new-dialog[open]{
  top:var(--new-top,0px);bottom:auto;margin:0 auto;
  max-height:var(--new-height,100dvh);overflow-y:auto
 }
}

/* Status and elapsed time share a row container, never the same grid cell. */
#metroStage .metro-panel{grid-template-rows:minmax(44px,.7fr) 20px auto minmax(24px,1.3fr) 66px 48px 44px 52px}
#metroStage .metro-panel>.metro-feedback-row{display:grid!important;grid-area:3/1;gap:4px;min-width:0}
#metroStage .metro-feedback-row .metro-session{margin:0;flex-wrap:wrap}
#metroStage .metro-feedback-row #metroFeedback{margin:0;font-size:12px;line-height:1.4;overflow-wrap:anywhere;text-align:center}
#metroStage .metro-feedback-row #metroFeedback:empty{display:none}
#calibrationInput{display:grid;gap:6px;margin:12px 0;padding:10px;border:1px solid #46564a;border-radius:12px}
#calibrationInput[hidden]{display:none}
#calibrationInput label,#calibrationInputText{font-size:13px;line-height:1.4;margin:0}
#calibrationInputMeter{display:block;width:100%;height:16px}
@media(max-height:640px){#metroStage .metro-panel{grid-template-rows:minmax(44px,.7fr) 12px auto minmax(24px,.7fr) 52px 44px 44px 44px}}
