/* Neutral actions/pulses: blue does not claim correctness or a passing score. */
@media screen and (min-width:761px){.workspace-app .workspace-tabs button{font-size:14px;line-height:1.4}}
.metronome-panel{min-width:0}
.metronome-tool{max-width:700px;margin:0 auto;padding:18px;border:1px solid #c9d6df;border-radius:14px;background:#fff;color:#243b4a;line-height:1.5}
.metronome-tool label{display:grid;gap:5px;min-width:0;font-size:14px;font-weight:650}
.workspace-app .metro-preset-context{font-size:13px;line-height:1.5;font-weight:700;margin:0 0 8px;color:#39566a}
.metronome-tool select,.metronome-tool input[type=number]{min-width:0;min-height:44px;border:1px solid #93a7b4;border-radius:7px;background:#fff;color:#243b4a;font:inherit;padding:7px;width:100%}
.metro-top-controls{display:grid;grid-template-columns:minmax(0,1fr) 125px;gap:12px}
.metro-tempo{display:flex;align-items:center;justify-content:center;gap:10px;margin:14px 0}
.metronome-tool .metro-tempo label{text-align:center;gap:0}
.metronome-tool .metro-tempo input{width:100px;text-align:center;font-size:30px;font-weight:750;padding:3px}
.metro-tempo label span{font-size:12px}
.metro-tempo [data-metro-tap] :is(span,small){display:block;line-height:1.35}
.metro-tempo [data-metro-tap] small{font-size:11px;font-weight:400}
.metronome-tool .metro-tempo button{min-height:44px;min-width:44px;border:1px solid #93a7b4;border-radius:7px;background:#f5f8fb;color:#294f69;padding:8px;font:inherit;font-weight:650;cursor:pointer}
.metro-beats{display:flex;justify-content:center;gap:12px;margin:12px 0}
.metro-beats span{display:grid;place-items:center;width:50px;height:50px;border:2px solid #95a9b8;border-radius:50%;font-size:24px;font-weight:750;background:#fff;color:#39566a}
.metro-beats .is-beat{background:#275875;border-color:#275875;color:#fff}
.metro-beats .is-strong{outline:3px solid #9e712c;outline-offset:3px}
.metro-cue{text-align:center;border-block:1px solid #dbe3e9;margin:12px 0;padding:12px 4px;min-height:112px}
.workspace-app .metro-cue p{margin:0;font-size:13px;line-height:1.5;color:#506575}
.metro-cue strong{display:block;font-size:20px;line-height:1.45;margin:6px 0;color:#243b4a}
.metro-settings{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:8px 12px}
.metro-settings .metro-volume{grid-column:1/-1;grid-template-columns:auto 1fr;align-items:center}
.metronome-tool .metro-sound{display:flex;gap:7px;align-items:center;min-height:44px}
.metro-sound input{width:20px;height:20px;accent-color:#275875}
.metro-settings input[type=range]{width:100%;min-height:44px;accent-color:#275875;margin:0}
.metro-actions{display:flex;gap:10px;margin:12px 0 8px}
.metro-actions button{flex:1}
.metronome-tool button:disabled{opacity:.5;cursor:default}
.workspace-app .metro-status{font-size:13px;min-height:40px;line-height:1.5;margin:0 0 4px;color:#4c6271}
.workspace-app .metro-help-link{margin:0;font-size:14px}
.metro-help-link a{display:inline-flex;align-items:center;min-height:44px;color:#275875}
.metronome-tool .workspace-help{margin:0}
.workspace-app .metro-note-safety{font-size:13px;line-height:1.5;margin:6px 0;color:#4c6271}
.metronome-tool summary{min-height:44px;color:#275875}
.metronome-tool :is(button,input,select):focus-visible{outline:3px solid #ae771f;outline-offset:3px}
.rhythm-basics,.rhythm-lessons>article,.rhythm-limit{padding:20px;border:1px solid #d7dfe4;border-radius:12px;margin:18px 0;background:#fff}
.rhythm-basics dl{display:grid;gap:12px;margin:12px 0 0}
.rhythm-basics dl>div{display:grid;grid-template-columns:100px 1fr;gap:14px}
.rhythm-basics dt{font-weight:750;color:#294f69}.rhythm-basics dd{margin:0}
.rhythm-step{font-size:13px;letter-spacing:.08em;color:#566e7c;font-weight:750}
.rhythm-lessons h3{margin-top:5px}
.rhythm-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #c9d8e2;border-radius:8px;overflow:hidden;margin:16px 0;background:#f4f8fb}
.rhythm-strip>*{text-align:center;padding:12px 6px;font-size:15px;color:#294f69;border-right:1px solid #c9d8e2}
.rhythm-strip>:last-child{border:0}
.rhythm-check{border-left:3px solid #7699af;padding-left:12px}
.rhythm-lessons .button{min-height:44px;white-space:normal}
.rhythm-limit{background:#f3f6f8}
@media(max-width:760px){
 body.tool-workspace-open .mobile-pager{display:none}
 .workspace-app .workspace-tabs{flex-wrap:wrap}
 .workspace-app .workspace-tabs button{flex:1 1 40%;min-height:44px}
 .metronome-tool{padding:12px;display:flex;flex-direction:column}
 .metro-preset-context{order:-1}.metro-top-controls{order:0}.metro-tempo{order:1}.metro-beats{order:2}.metro-cue{order:3}
 .metro-actions{order:4}.metro-status{order:5}.metro-settings{order:6}.metro-help-link{order:7}.metro-note-safety{order:8}.metronome-tool>.workspace-help{order:9}
 .metro-top-controls{grid-template-columns:minmax(0,1fr) 95px;gap:8px}
 .metro-tempo{gap:7px;margin:10px 0}
 .metronome-tool .metro-tempo input{width:78px;font-size:28px}
 .metronome-tool .metro-tempo button{font-size:13px}
 .metro-tempo [data-metro-tap] small{max-width:95px}
 .metro-settings{grid-template-columns:1fr 1fr;gap:6px 12px}
 .metro-settings .metro-sound{grid-column:1/-1}
 .metro-cue strong{font-size:18px}
 .rhythm-basics,.rhythm-lessons>article,.rhythm-limit{padding:16px}
 .rhythm-basics dl>div{grid-template-columns:1fr;gap:3px}
 .rhythm-strip>*{font-size:13px;padding:10px 3px;overflow-wrap:anywhere}
}
@media screen and (min-width:761px) and (min-height:720px){
 .metronome-tool{padding:12px 16px}
 .metro-tempo{margin:8px 0}.metro-beats{margin:8px 0}
 .metro-cue{margin:8px 0;padding:8px 4px;min-height:104px}
 .metro-actions{margin:8px 0}.workspace-app .metro-status{min-height:36px}
}
@media(max-width:389px){
 .metro-tempo{display:grid;grid-template-columns:44px auto 44px;justify-content:center}
 .metro-tempo [data-metro-tap]{grid-column:1/-1;display:flex;gap:8px;align-items:center;justify-content:center}
 .metro-tempo [data-metro-tap] small{max-width:none}
 .metro-beats{gap:8px}.metro-beats span{width:46px;height:46px}
}
@media print{.metronome-panel,.sidebar-metronome-entry{display:none!important}.rhythm-lessons .button{display:none}.rhythm-lessons>article{break-inside:avoid}.rhythm-page .chapter-body-title{display:block!important}}
