/* 271/14. Rhythm practice layout only; scoring, audio timing and input are retained. */
.hk-rhythm-preview .tool-header{padding:.35rem 0 .8rem;margin-bottom:1rem}
.hk-rhythm-preview .tool-header h1{font-size:clamp(2rem,3.5vw,3rem);line-height:1.2;margin:.3rem 0 .6rem}
.hk-rhythm-preview .tool-intro{max-width:72ch;font-size:1rem;line-height:1.6}
.hk-rhythm-preview .rt-workspace{padding:1.25rem}
.hk-rhythm-preview .rt-workspace h2{font-family:inherit;font-size:1.1rem;font-weight:600;line-height:1.4;margin:0 0 1rem}
.hk-rhythm-preview .rt-setup{padding:1.15rem;border:1px solid #3c515c;border-top:3px solid #d8ad79;border-radius:12px;background:#101a21;margin-bottom:1rem}
.hk-rhythm-preview .rt-controls{gap:1rem;margin:0;grid-template-columns:repeat(3,minmax(0,1fr))}
.hk-rhythm-preview .rt-controls label{font-size:.82rem;font-weight:400;line-height:1.5}
.hk-rhythm-preview .rt-controls input[type=number],.hk-rhythm-preview .rt-controls select{min-height:44px;box-sizing:border-box;font-size:.9rem;margin-top:.4rem}
.hk-rhythm-preview .rt-volume-label>span{margin-top:.4rem}
.hk-rhythm-preview .rt-controls input[type=range]{min-height:36px}
.hk-rhythm-preview .rt-bench{gap:1rem;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:start}
.hk-rhythm-preview .rt-workspace .rt-stage,.hk-rhythm-preview .rt-workspace .rt-result{padding:1.15rem;border-color:#3c515c;background:#101a21;min-height:0}
.hk-rhythm-preview .rt-stage{border-top:3px solid #6accc0}
.hk-rhythm-preview .rt-transport{gap:.5rem}
.hk-rhythm-preview .rt-workspace .btn{margin:0;min-height:44px;font-size:.85rem}
.hk-rhythm-preview #rt-start{background:#6accc0;color:#092420;border-color:#6accc0;font-weight:600}
.hk-rhythm-preview .rt-stage-label{margin:.8rem 0 .4rem;font-size:.82rem;min-height:1.5em}
.hk-rhythm-preview .rt-count-row{min-height:48px}
.hk-rhythm-preview .rt-count-row output{font-size:2.2rem;line-height:1.2}
.hk-rhythm-preview .rt-workspace .rt-status{font-size:.85rem;line-height:1.55;min-height:3.1em;margin:.6rem 0}
.hk-rhythm-preview .rt-workspace .rt-pad{box-sizing:border-box;min-height:158px;padding:1rem;background:#132c30}
.hk-rhythm-preview .rt-pad strong{font-family:inherit;font-size:1.25rem}
.hk-rhythm-preview .rt-pad small{font-size:.8rem}
.hk-rhythm-preview .rt-workspace .rt-live{min-height:2.8em;font-size:.82rem;line-height:1.5;margin:.6rem 0 .2rem;font-variant-numeric:tabular-nums}
.hk-rhythm-preview .rt-workspace #rt-progress{width:100%;display:block;height:8px;margin:.5rem 0 0}
.hk-rhythm-preview .rt-muted{color:#b9cbd1;font-size:.82rem;line-height:1.65}
.hk-rhythm-preview .rt-stats{gap:.6rem;grid-template-columns:repeat(2,minmax(0,1fr))}
.hk-rhythm-preview .rt-stats>div{padding:.7rem;background:#152630;border-color:#415a66;min-width:0}
.hk-rhythm-preview .rt-stats strong{font-size:1.4rem;line-height:1.3}
.hk-rhythm-preview .rt-stats span{font-size:.75rem;line-height:1.5}
.hk-rhythm-preview .rt-report-actions{padding:0;margin-top:1rem;display:grid;grid-template-columns:minmax(0,1fr);gap:.5rem}
.hk-rhythm-preview .rt-report-actions #rt-clear{background:transparent;font-size:.78rem}
.hk-rhythm-preview .rt-details{margin-top:1rem}
.hk-rhythm-preview .rt-details summary{min-height:44px;align-content:center;box-sizing:border-box}
.hk-rhythm-preview .rt-instructions>summary{min-height:44px;align-content:center;font-size:1rem;font-weight:600;cursor:pointer}
.hk-rhythm-preview .rt-instructions[open]>summary{margin-bottom:1rem}
@media(max-width:850px){.hk-rhythm-preview .rt-bench{grid-template-columns:minmax(0,1fr)}}
@media(max-width:540px){
 .hk-rhythm-preview .studio-toolbar{min-height:44px;margin:0;padding:.2rem 0;gap:.6rem}
 .hk-rhythm-preview .studio-toolbar>a{font-size:.8rem}
 .hk-rhythm-preview .studio-toolbar .tool-favorite{width:44px;min-width:44px;max-width:44px;min-height:44px;padding:0;font-size:0}
 .hk-rhythm-preview .studio-toolbar .tool-favorite:before{content:'☆' / '';font-size:1.3rem}
 .hk-rhythm-preview .studio-toolbar .tool-favorite[aria-pressed=true]:before{content:'★' / ''}
 .hk-rhythm-preview .tool-header h1{font-size:2rem}
 .hk-rhythm-preview .tool-intro{font-size:.9rem;line-height:1.55}
 .hk-rhythm-preview .rt-workspace{padding:.85rem}
 .hk-rhythm-preview .rt-setup,.hk-rhythm-preview .rt-workspace .rt-stage,.hk-rhythm-preview .rt-workspace .rt-result{padding:.85rem}
 .hk-rhythm-preview .rt-workspace h2{font-size:1.05rem;margin-bottom:.8rem}
 .hk-rhythm-preview .rt-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
 .hk-rhythm-preview .rt-volume-label{grid-column:1/-1}
 .hk-rhythm-preview .rt-count-row output{font-size:2rem;min-width:3.6em}
 .hk-rhythm-preview .rt-workspace .rt-pad{min-height:142px}
 .hk-rhythm-preview .rt-transport{flex-wrap:nowrap}
 .hk-rhythm-preview .rt-transport .btn{font-size:.8rem;flex:1 1 0;padding:.5rem}
}
