@media(max-width:760px){
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog[open]{position:fixed;inset:0;display:flex;flex-direction:column;width:100%;max-width:100vw;height:100dvh;max-height:100dvh;min-height:0;margin:0!important;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)!important;border:0;border-radius:0;box-sizing:border-box;overflow:hidden;overscroll-behavior:none;background:#101010}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b90-focus-bar{position:relative;flex:0 0 40px;height:40px;min-height:40px;padding:0 8px;gap:8px;background:#101010;box-sizing:border-box}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b90-focus-bar span{min-width:0;font-size:9px;line-height:1.3;letter-spacing:.08em}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b90-focus-bar button{flex:0 0 40px;min-width:40px;min-height:40px;padding:0;font-size:23px}
 /* Movement: the canvas uses the space left by the fixed control rows. */
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b82-stage{position:relative;flex:1 1 0;display:flex;flex-direction:column;min-height:0;width:100%;max-width:none;margin:0!important;padding:0!important;border:0;border-radius:0;overflow:hidden;box-shadow:none}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b85-exercise-picker{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) 36px 36px;gap:4px;padding:4px 8px;margin:0;border-radius:0;min-height:44px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b85-exercise-picker select{height:36px;min-height:36px;max-width:100%;padding:4px 22px 4px 8px;font-size:12px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b85-exercise-picker>button{height:36px;min-height:36px;width:36px;min-width:36px;padding:0}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b82-toolbar{display:flex;flex:0 0 auto;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:6px;padding:2px 8px;min-height:40px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b80-role-controls{min-width:0;flex:0 0 auto!important;width:auto!important;max-width:46%}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b80-role-row label{font-size:9px;gap:4px;white-space:nowrap}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b80-role-controls select{height:32px;min-height:32px;min-width:0;max-width:70px;padding:3px 17px 3px 5px;font-size:11px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b82-pace{display:flex;flex:1 1 auto;width:auto;max-width:180px;min-width:0;padding:2px;gap:2px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b82-pace button{flex:1;min-width:0;min-height:32px;padding:4px 6px;font-size:10px;white-space:nowrap}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b82-stage-grid{display:flex;flex-direction:column;flex:1 1 0;min-height:0;gap:0;overflow:hidden}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b82-art{flex:1 1 0;min-height:0;height:auto!important;max-height:none;overflow:hidden}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b82-art canvas{display:block;width:100%!important;height:100%!important;min-height:0;max-height:100%!important;object-fit:contain}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b82-reading{display:grid;flex:0 0 auto;grid-template-columns:minmax(0,1fr);gap:4px;min-height:0;padding:5px 8px!important;justify-content:normal;border-radius:0}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b82-reading :is(h3,.b82-intro,.b82-help,.b82-direction,.b51-kicker){display:none}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b82-current{grid-template-columns:32px minmax(0,1fr);min-height:36px;margin:0;padding:3px 8px;gap:8px;border-radius:7px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog [data-b77-count]{font-size:25px;line-height:1.1}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog [data-b77-cue]{font-size:11px;line-height:1.3;margin:0}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b82-beats{gap:3px;margin:0}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b82-beats button{height:30px!important;min-height:30px;padding:2px;font-size:11px;border-radius:5px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b85-motion-scrub{height:12px;min-height:12px;margin:0}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b82-playback{display:flex;justify-content:center;gap:12px;margin:0}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b82-playback button{height:38px!important;min-height:38px!important;min-width:38px;padding:4px 10px;font-size:12px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b103-motion-transport{grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;min-height:44px;padding:3px 8px;margin:0;border-radius:7px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b103-tempo{font-size:10px;gap:0 8px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b103-tempo input{height:16px;min-height:16px;margin:0}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog [data-motion-music]{min-height:32px;padding:4px 8px;font-size:10px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b103-sync-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b100-appearance{flex:0 0 auto;padding:0 8px;margin:0;border-radius:0;background:#171717}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b100-appearance>summary{min-height:30px;padding:5px 0;font-size:11px;line-height:20px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b100-appearance[open]{position:absolute;inset:auto 0 0;z-index:9;max-height:65dvh;overflow:auto;background:#171717fa;border-top:1px solid #bfb19c77;box-shadow:0 -12px 35px #0005}
 /* Music: all primary controls remain on screen; setting tabs share one slot. */
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b91-player{display:flex;flex-direction:column;flex:1 1 0;width:100%;max-width:none;min-height:0;height:auto;margin:0!important;border:0;border-radius:0;overflow:hidden;box-shadow:none}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b91-mode{flex:0 0 auto;padding:4px 8px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b91-mode button{min-height:32px;padding:4px;font-size:10px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b91-mode .b90-mode-note{margin:3px 0 0;font-size:9px;line-height:13px;min-height:13px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b91-workspace{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;flex:1 1 0;min-height:0;overflow:hidden}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b91-workspace .b54-score{grid-row:1!important;display:flex;flex-direction:column;justify-content:center;height:auto!important;min-height:0;padding:4px 8px;gap:3px;overflow:hidden}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b54-score-word{font-size:clamp(28px,5.5dvh,42px);line-height:1.1;min-height:32px;padding:0}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b54-playing-label{padding:0;margin:0;min-height:12px;font-size:9px;line-height:1.3}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b54-music-tip{padding:2px 0;margin:0}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b54-score [data-part-text]{font-size:11px;line-height:1.4;margin:0;min-height:0}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b54-score .b51-beats{padding:0;margin-top:auto;gap:3px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b54-score .b51-beats>span{height:24px;min-height:24px;font-size:10px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b91-controls{grid-row:2!important;align-self:end;padding:4px 8px;min-height:0}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b100-panel-tabs{padding:2px;margin:0 0 3px;gap:3px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b100-panel-tabs button{min-height:32px;padding:4px;font-size:10px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b100-panel{height:112px;min-height:0;max-height:112px;padding:3px 0;overflow:auto}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b100-panel :is([data-choice],[data-instrument]){min-height:34px;padding:5px;font-size:10px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b100-panel .b54-tempo{margin-top:7px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b100-panel [data-bpm-output]{font-size:20px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b91-sections{flex:0 0 auto;padding:0}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b91-sections .b54-music-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b91-sections .b54-music-tabs button{height:34px!important;min-height:34px!important;padding:3px 6px!important;gap:1px!important;font-size:8px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b91-sections .b54-music-tabs button span{font-size:10px!important;line-height:1.2}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b100-transport{flex:0 0 auto;padding:5px 8px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b100-transport .b54-transport{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b100-transport button{height:38px!important;grid-column:auto;width:auto;min-height:36px;padding:5px 7px;font-size:10px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b100-transport [data-play]{grid-column:auto;width:auto;min-height:36px;padding:5px 7px;font-size:11px}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b91-player>:is(.b91-listen,.b91-credits){display:none}
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b100-composition{flex:0 0 auto;max-height:112px;padding:6px 8px;overflow:auto}
}
@media(max-width:760px) and (max-height:640px){
 .b51.b80.b90.b94.b539.b543 .b90-focus-dialog .b54-music-tip>:is(.b51-kicker,p){display:none}
}
