/* Preserve the accepted painted world; simplify only the control hierarchy. */
.steps{list-style:none;display:flex;justify-content:center;gap:8px;margin:0 0 9px;padding:0;font-size:14px;font-weight:800}.steps li{padding:6px 22px;border-radius:30px;background:#fff8e5dc;color:#405747}.steps li.current{background:#24584a;color:#fff8df}.steps li.done{background:#d3e8d7;color:#173f35}.blueprint{min-height:118px}.task-copy .eyebrow,.task-copy p:last-child{display:none}.task-copy h1{font-size:27px;margin:0}.listen .primary{background:#f5cf75;color:#293b2b}.world-caption{font-size:13px}#build-intro{text-align:center;font-size:17px;font-weight:750;margin:14px 0 12px}.workbench{padding:14px 22px 6px}.construction{gap:24px}.direction{order:2}.plank-control{order:1}.accidentals{order:3}.plank-control strong{font-size:30px}.plank-control small{font-size:12px}.feedback{margin:6px 0 10px;min-height:24px}.actions{gap:12px}.actions button{max-width:340px;min-height:50px}.tools{justify-content:center;gap:24px}.tools span{display:none}.tools button{font-size:13px}.dialog-actions a{min-height:44px;display:inline-flex;align-items:center}#setup h2{margin-bottom:8px}#setup .setup-lead{margin:0 0 16px}#setup .fields{margin:18px 0}#custom-panel,.sound-panel{border-top:1px solid #cbd6c3;padding:6px 0;margin:8px 0}#custom-panel>summary,.sound-panel>summary{cursor:pointer;padding:12px 0;font-weight:800;min-height:44px}fieldset{border:0;padding:0;margin:15px 0}legend{font-weight:750;margin-bottom:10px}.check-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.check-grid label{display:flex;align-items:center;justify-content:center;gap:5px;min-height:46px;border-radius:12px;background:#e5ebdc;color:#193d35;font-weight:700;font-size:14px;cursor:pointer}.check-grid label:has(input:checked){background:#24584a;color:#fff8df}.check-grid input{accent-color:#24584a;width:17px;height:17px}.check-grid input:focus-visible{outline:3px solid #287f90;outline-offset:3px}.custom-note{font-size:13px;line-height:1.6}.setting-guide{font-size:14px;padding:10px 14px;margin-bottom:8px}#setup-note{font-size:13px;margin:8px 0}.help-tools{display:flex;gap:10px;flex-wrap:wrap}.help-tools button{flex:1;white-space:nowrap}#help-dialog ol{padding-left:22px;line-height:1.9}#help-dialog small{display:block;margin-top:12px;font-size:12px}body[data-stage=listen] .world-caption{display:none}body[data-stage=success] .feedback{font-size:18px;font-weight:800}body[data-stage=success] .workbench{background:#173f3bec}
@media(max-width:760px){.steps{gap:6px;margin-bottom:6px;font-size:12px}.steps li{padding:5px 17px}.blueprint{min-height:135px}.task-copy h1{font-size:20px}.workbench{padding:10px 12px 4px}.construction{gap:10px}.direction{order:2;flex-basis:100%}.plank-control{order:1;flex-basis:100%;gap:16px}.accidentals{order:3;flex-basis:100%}.plank-control button{width:48px;height:48px}.plank-control strong{font-size:27px}.direction button{min-width:115px;white-space:nowrap}.feedback{font-size:13px;min-height:20px;margin:5px 0 8px}.actions{display:flex}.actions button{font-size:15px;min-height:48px}.tools{gap:30px;padding-top:2px}.tools button{font-size:12px}.world-caption{font-size:11px;padding:5px 10px}#build-intro{font-size:15px;margin:8px 0}.check-grid{grid-template-columns:repeat(5,1fr);gap:5px}.check-grid label{font-size:12px;gap:3px}.check-grid input{width:15px;height:15px}body[data-stage=success] .feedback{font-size:15px}}
@media(max-width:640px) and (min-height:601px){.blueprint{min-height:174px}.score{height:85px}.notation{max-height:94px}.listen button{min-height:44px}.world{min-height:120px}}
@media(max-width:360px){.construction{gap:6px}.workbench{padding:8px 10px 4px}.plank-control small{font-size:10px}.feedback{font-size:12px}.steps li{padding:5px 13px}.world{min-height:95px}.help-tools{gap:6px}.help-tools button{font-size:12px;padding:8px}.check-grid{grid-template-columns:repeat(3,1fr)}.check-grid label{font-size:13px}}
@media(max-height:600px) and (min-width:650px){main{grid-template-columns:54% 46%;grid-template-rows:18px 31px 120px minmax(80px,1fr);gap:0 10px}.topline{grid-row:1}.steps{grid-column:1;grid-row:2;height:27px}.steps li{padding:3px 16px}.blueprint{grid-row:3;height:118px}.world{grid-row:4;min-height:0}.workbench{grid-row:2/5;justify-content:center}.construction{gap:8px}.direction,.plank-control{flex-basis:100%}.plank-control strong{font-size:23px}.direction button{min-height:44px}.actions{display:flex}.actions button{font-size:13px;min-height:44px}.tools{gap:20px;justify-content:center}.tools button{font-size:11px}.feedback{font-size:12px}.task-copy h1{font-size:18px}.score .notation{max-height:64px}.listen{flex-basis:100%;flex-direction:row;max-width:none}#build-intro{font-size:14px}}

.workbench{max-height:45dvh;overflow:auto;flex-shrink:0}.actions:empty{display:none}
@media(max-height:600px) and (min-width:650px){.workbench{max-height:none}.blueprint .listen button{min-height:44px}}

body[data-stage=listen] #build-intro{display:none}body[data-stage=listen] .workbench{width:min(440px,100%);padding:4px 18px;background:#173f3be8}.brand small{display:none}
@media(max-height:600px) and (min-width:650px){body[data-stage=listen] .workbench{width:100%;align-self:end;height:auto;min-height:52px}}

/* Teacher controls stay usable at every level; explanations sit beside the mode. */
#setup select{min-height:48px;font-size:16px;background:#edf0e1;color:#193d35;border-radius:12px;padding:8px 12px;border:1px solid #a5bbaa;-webkit-appearance:auto;appearance:auto}#mode-guide{font-size:14px;line-height:1.6;margin:0 0 16px;color:#244b40}.answer-name{margin:4px 0;text-align:center;font-size:18px;font-weight:800;color:#fff4ca}.accidentals{flex-wrap:wrap}.accidentals button{min-height:44px;min-width:52px}.check-grid{grid-template-columns:repeat(5,minmax(0,1fr))}#qualities{grid-template-columns:repeat(auto-fit,minmax(64px,1fr))}.keyboard-help{font-size:14px}.task-copy p:last-child{display:block;font-size:12px;margin:4px 0 0}.task-copy .eyebrow{display:block;margin:0 0 4px;font-size:11px}.review-row p{line-height:1.6}.review-score{min-height:110px}dialog:focus{outline:none}button:disabled{color:#40564d}.accidentals button[aria-pressed=true]{background:#f5cf75;color:#243c30}#answer-name[hidden]{display:none}
@media(max-width:760px){.answer-name{font-size:16px}.accidentals{gap:6px}.accidentals button{padding:6px 10px}.task-copy p:last-child{font-size:11px}.workbench{max-height:50dvh}.construction{gap:8px}}

#count-current{display:flex;align-items:center;min-height:48px;color:#355449;font-weight:700}#count-current[hidden]{display:none}@media(max-width:600px){#custom-panel .fields{grid-template-columns:1fr}.check-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}

@media(max-height:600px) and (min-width:650px){.workbench{justify-content:flex-start;overscroll-behavior:contain}.workbench>.construction,.workbench>.actions,.workbench>.tools,.workbench>.feedback,.workbench>.answer-name{flex-shrink:0}}
