.practice-panel{padding:clamp(18px,3vw,32px);text-align:left;overflow:hidden}.practice-controls{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(180px,1.3fr);gap:14px 22px;align-items:center;max-width:700px;margin:0 auto 24px}.practice-controls label{margin:0;font-weight:600}.practice-controls input,.practice-controls select{width:100%;min-width:0;min-height:44px}.practice-controls input[type=range]{accent-color:var(--accent-cyan)}.practice-stage{background:var(--bg);border:1px solid var(--border);border-radius:16px;text-align:center;padding:clamp(20px,4vw,36px)}.practice-caption{font-size:.75rem;letter-spacing:.16em;color:var(--accent-cyan);font-weight:600}.practice-readout{font-family:var(--font-mono,monospace);font-size:clamp(48px,9vw,84px);font-weight:500;line-height:1.2;margin:20px 0;color:var(--text);font-variant-numeric:tabular-nums}.practice-readout small{font-family:inherit;display:block;font-size:16px;color:var(--text-muted);margin-top:8px}.practice-pad{display:block;width:min(100%,400px);min-height:108px;padding:24px;margin:20px auto;background:rgba(87,196,192,.1);color:var(--text);border:2px solid var(--accent-cyan);border-radius:16px;font-size:1.2rem;font-weight:600;cursor:pointer;touch-action:manipulation;user-select:none}.practice-pad small{display:block;margin-top:8px;font-size:.8rem;color:var(--text-muted);font-weight:400}.practice-pad:disabled{cursor:default;opacity:.4;border-color:var(--border)}.practice-pad:focus-visible,.practice-controls :focus-visible{outline:3px solid var(--accent-cyan);outline-offset:4px}.practice-pad.is-hit{animation:practice-hit .16s ease-out}.practice-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin:20px 0}.practice-feedback{min-height:2.5em;line-height:1.6;color:var(--accent-cyan)}.practice-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:22px 0}.practice-stat{padding:18px;border:1px solid var(--border);border-radius:12px;display:flex;flex-direction:column;gap:8px;background:var(--surface)}.practice-stat strong{font-size:1.65rem;font-variant-numeric:tabular-nums}.practice-stat span{font-size:.82rem;line-height:1.45;color:var(--text-muted)}.pulse-dots{display:flex;justify-content:center;gap:14px;margin:18px 0}.pulse-dots span{width:16px;height:16px;background:var(--border);border-radius:50%}.pulse-dots .is-current{background:var(--accent-cyan);box-shadow:0 0 0 5px rgba(87,196,192,.12)}#rt-progress{display:block;width:100%;height:10px;accent-color:var(--accent-cyan);margin:20px 0}.rhythm-details{display:flex;gap:8px;flex-wrap:wrap}.rt-tap{padding:8px 10px;border:1px solid var(--border);border-radius:8px;font-size:.8rem;font-family:monospace}.rt-tap-perfect{color:var(--accent-cyan)}.rt-tap-early,.rt-tap-late{color:#edc17f}.rt-tap-very-early,.rt-tap-very-late{color:#efa0a0}.ear-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px;margin:20px 0}.ear-options button{white-space:normal;min-height:50px}.ear-options .is-answer{border-color:var(--accent-cyan);color:var(--accent-cyan);opacity:1}.ear-options .is-wrong{border-color:#efa0a0;color:#efa0a0;opacity:1}.ear-feedback{min-height:3em;line-height:1.6}.ear-feedback.is-correct{color:var(--accent-cyan)}.ear-feedback.is-wrong{color:#edc17f}.mic-panel{border:1px solid var(--border);border-radius:14px;padding:20px;margin:20px 0;background:var(--surface);text-align:left}.mic-panel h2{font-size:1.2rem;margin-top:0}.mic-panel .practice-controls{margin:16px 0}.mic-panel select{overflow:hidden;text-overflow:ellipsis}.mic-panel p{overflow-wrap:anywhere}.mic-panel button{grid-column:2}#record-meter{display:block;width:100%;height:22px;margin:12px 0;accent-color:var(--accent-cyan)}#record-audio{width:100%;margin:16px 0}.record-result{margin-top:26px}.noise-visual{display:flex;align-items:center;justify-content:center;height:100px;gap:10px;margin:10px 0 24px}.noise-visual span{width:12px;height:30px;background:var(--accent-cyan);opacity:.35;border-radius:6px}.noise-visual span:nth-child(2),.noise-visual span:nth-child(6){height:50px}.noise-visual span:nth-child(3),.noise-visual span:nth-child(5){height:70px}.noise-visual span:nth-child(4){height:90px}.noise-visual.is-playing span{opacity:.85;animation:noise-pulse 1.7s ease-in-out infinite alternate}.noise-visual.is-playing span:nth-child(even){animation-delay:-.7s}.noise-visual.is-playing span:nth-child(3n){animation-delay:-1.2s}@keyframes practice-hit{from{background:rgba(87,196,192,.4);transform:scale(.985)}to{background:rgba(87,196,192,.1);transform:scale(1)}}@keyframes noise-pulse{to{transform:scaleY(.5)}}@media(max-width:600px){.practice-controls{grid-template-columns:1fr;gap:8px}.practice-controls label:not(:first-child){margin-top:10px}.mic-panel button{grid-column:1}.practice-actions .btn{flex:1 1 130px}.practice-stage{padding:20px 14px}.practice-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.practice-stat{padding:14px}.practice-stat strong{font-size:1.4rem}.practice-stat span{overflow-wrap:anywhere}.ear-options{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){.practice-pad.is-hit,.noise-visual.is-playing span{animation:none}}

#record-meter::-webkit-meter-bar{background:var(--surface-raised);border:1px solid var(--border);border-radius:8px;height:14px}#record-meter::-webkit-meter-optimum-value{background:var(--accent-cyan);border-radius:8px}#record-meter::-moz-meter-bar{background:var(--accent-cyan)}#rt-progress::-webkit-progress-bar{background:var(--surface-raised);border-radius:8px}#rt-progress::-webkit-progress-value{background:var(--accent-cyan);border-radius:8px}
/* Rhythm workspace: no changes to other practice tools. */
.rt-workspace{padding:18px;text-align:left}.rt-workspace [hidden]{display:none!important}.rt-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.rt-controls label{display:block;font-size:.9rem;font-weight:600;min-width:0}.rt-controls input[type=number],.rt-controls select{display:block;width:100%;min-width:0;min-height:44px;margin-top:7px}.rt-volume-label>span{display:flex;align-items:center;gap:10px;min-height:44px;margin-top:7px}.rt-controls input[type=range]{width:100%;min-width:60px;accent-color:#57c4c0;min-height:30px}.rt-volume-label output{min-width:3em;font-variant-numeric:tabular-nums}.rt-bench{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:16px;align-items:stretch}.rt-stage,.rt-result{border:1px solid var(--border);border-radius:12px;padding:16px;background:#10161a;min-width:0;min-height:440px}.rt-workspace .btn{min-height:44px;line-height:1.4;white-space:normal;max-width:100%}.rt-workspace :focus-visible{outline:3px solid #57c4c0;outline-offset:3px}.rt-transport{display:flex;flex-wrap:wrap;gap:10px}.rt-transport .btn{flex:1 1 140px}.rt-stage-label{font-size:.85rem;color:#57c4c0;margin:16px 0 6px}.rt-count-row{display:flex;align-items:center;gap:20px;justify-content:space-between}.rt-count-row output{font-size:2rem;font-variant-numeric:tabular-nums;min-width:4em;line-height:1.3}.rt-count-row .pulse-dots{margin:0;gap:10px}.rt-count-row .pulse-dots span{width:12px;height:12px}.rt-status{min-height:3em;font-size:.9rem;line-height:1.45;margin:10px 0}.rt-status[data-state=error]{color:#f2be87}.rt-pad{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;min-height:140px;border:2px solid #57c4c0;border-radius:12px;background:#57c4c014;color:var(--text);padding:18px;touch-action:manipulation;user-select:none;cursor:pointer}.rt-pad strong{font-size:1.2rem;font-weight:600}.rt-pad small{font-size:.85rem;color:var(--text-muted)}.rt-pad:disabled{opacity:.5;border-color:var(--border);cursor:default}.rt-pad:hover:not(:disabled){background:#57c4c02a}.rt-pad.is-hit{animation:rt-pad-hit .14s ease-out forwards}@keyframes rt-pad-hit{from{background:#57c4c046}to{background:#57c4c014}}@media(prefers-reduced-motion:reduce){.rt-pad.is-hit{animation:none;background:#57c4c014}}.rt-live{min-height:2.6em;font-size:.9rem;line-height:1.45;color:#78dfce;margin:10px 0 4px}.rt-workspace #rt-progress{height:8px;margin:8px 0 0}.rt-result h2{font-size:1.05rem;margin:0 0 12px}.rt-muted{font-size:.85rem;line-height:1.55;color:var(--text-muted)}.rt-result #rt-result-meta{margin:0 0 10px}.rt-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rt-stats>div{padding:10px;border:1px solid var(--border);border-radius:10px}.rt-stats strong{display:block;font-size:1.3rem;font-variant-numeric:tabular-nums}.rt-stats span{display:block;font-size:.78rem;line-height:1.5;color:var(--text-muted);margin-top:4px}.rt-result #rt-reading{font-size:.9rem;line-height:1.5}.rt-result #rt-missing{font-size:.9rem}.rt-details{border:1px solid var(--border);border-radius:10px;margin-top:12px}.rt-details summary{font-size:.9rem;font-weight:600;padding:12px;cursor:pointer}.rt-details>p{margin:12px}.rt-table-wrap{overflow-x:auto;padding:0 12px 10px}.rt-table-wrap table{border-collapse:collapse;width:100%;font-size:.85rem}.rt-table-wrap th,.rt-table-wrap td{border-bottom:1px solid var(--border);padding:8px;text-align:left}.rt-report-actions{display:flex;gap:10px;flex-wrap:wrap;padding:0 12px}.rt-workspace .btn:hover:not(:disabled){color:#10161a;background:#83dfda;border-color:#83dfda}body:has(.rt-workspace)>.skip-link:not(:focus){left:-10000px;transform:none}@media(max-width:900px){.rt-bench{grid-template-columns:1fr}.rt-stage,.rt-result{min-height:0}.rt-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:600px){.rt-workspace{padding:14px}.rt-controls{grid-template-columns:1fr;gap:12px}.rt-stage,.rt-result{padding:12px}.rt-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.rt-count-row{gap:10px}.rt-count-row output{font-size:1.8rem}.rt-pad{min-height:132px}.rt-report-actions .btn{flex:1 1 160px}}

/* Rhythm input feedback and compact review. */
.rt-workspace .rt-stage,.rt-workspace .rt-result{min-height:380px}
.rt-workspace .rt-pad{position:relative;min-height:138px;gap:7px;isolation:isolate}
.rt-pad-target{display:block;width:30px;height:30px;border:2px solid #77dad4;border-radius:50%;background:#57c4c014;box-shadow:inset 0 0 0 7px #10161a}
.rt-pad[data-phase=counting]{border-style:dashed}
.rt-pad.is-beat .rt-pad-target{background:#a0f3ed;box-shadow:0 0 0 5px #57c4c033,inset 0 0 0 5px #10161a}
.rt-pad.is-pressed{background:#57c4c04d!important;border-color:#bcfffa!important;box-shadow:inset 0 0 0 2px #bcfffa}
.rt-pad.is-pressed .rt-pad-target{background:#d9fffc;box-shadow:0 0 0 8px #57c4c033}
.rt-pad.is-pressed[data-feedback=outside]{border-color:#efc18a!important;box-shadow:inset 0 0 0 2px #efc18a}
.rt-workspace .rt-table-wrap{max-height:240px;overflow:auto;overscroll-behavior:contain}
.rt-table-wrap thead{position:sticky;top:0;background:#18242c;z-index:1}
.rt-workspace .rt-status{min-height:3em}
.rt-workspace .rt-live{min-height:2.6em}
@media(max-width:900px){.rt-workspace .rt-stage,.rt-workspace .rt-result{min-height:0}}
@media(max-width:600px){.rt-workspace .rt-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rt-workspace .rt-volume-label{grid-column:1/-1}.rt-workspace .rt-pad{min-height:132px}.rt-workspace .rt-transport{flex-wrap:nowrap}.rt-workspace .rt-transport .btn{flex:1 1 0;padding-left:8px;padding-right:8px}}
/* Keep rhythm review compact without hiding timing context. */
.rt-workspace .rt-result #rt-missing,.rt-workspace .rt-result #rt-reading{margin:10px 0}
.rt-workspace .rt-result #rt-result-content>.rt-muted:last-child{margin-bottom:0}
