/* A native-width mobile workbench instead of shrinking the whole studio. */
@media(max-width:700px),(pointer:coarse){
 #hollow90.mm61-active{padding:0 0 70px!important}
 #hollow90.mm61-active>.h90{width:100%!important;max-width:none!important;padding:6px!important;margin:0!important}
 #hollow90.mm61-active #h90body{width:100%!important;max-width:none!important;padding:0!important;overflow:auto!important;min-height:0!important}
 #hollow90.mm61-active #h90body.expand-full107{padding:6px max(6px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))!important;overflow:auto!important;display:block!important}
 #hollow90.mm61-active #h90body>.mm61{position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;transform:none!important;margin:0!important;padding:0!important;display:flex;flex-direction:column;gap:8px;font-size:13px}
 .mm61-header{order:0;flex-direction:row;gap:6px;align-items:center;margin:0;padding-right:42px}
 .mm61-header small{display:none}.mm61-header h2{font-size:22px!important;white-space:nowrap}
 .mm61-header-actions{gap:4px;justify-content:flex-end}.mm61-header-actions button{font-size:10px;padding:5px 7px!important;min-height:34px!important;border-radius:11px!important}
 .mm61-scoreheading{order:1;margin:0}.mm61-scoreheading small{display:none}
 .mm61-scoretabs{order:2;display:flex;overflow-x:auto;gap:5px;margin:0;padding:2px 0 4px;flex-shrink:0}
 .mm61-scoretab{flex:1 0 59px;min-height:58px;padding:5px 2px}.mm61-scoretab>span{font-size:19px}.mm61-scoretab strong{font-size:10px}.mm61-scoretab small{font-size:8px}
 .mm61-modebar{order:3;width:100%;margin:0;gap:5px}.mm61-modebar button{min-width:0;flex:1;min-height:40px;font-size:12px;padding:5px}
 .mm61-desk{order:4;display:grid;grid-template-columns:minmax(0,1fr)!important;gap:8px}
 .mm61-left,.mm61-side{padding:7px;border-radius:15px}.mm61-left{gap:8px}
 .mm61-stage{width:100%!important;max-width:none!important;margin:0!important;aspect-ratio:2.6;max-height:170px;min-height:100px}
 .mm61-stage>img{width:25%;left:5%}.mm61-stage-score{width:20%;left:28%;height:65%}.mm61-stage-badge{font-size:10px;padding:4px 7px}
 .mm61-score{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:4px;padding:2px}.mm61-slot{min-height:44px;padding:3px 0}.mm61-slot strong{font-size:11px}
 .mm61-keys,.mm61-keys-compose{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:4px}.mm61-key{min-height:66px;padding:5px 0}.mm61-key span{font-size:20px}.mm61-key strong{font-size:11px}.mm61-rest{grid-column:1/-1;min-height:34px;flex-direction:row}
 .mm61-playrow{display:grid;grid-template-columns:1fr 1fr;gap:5px}.mm61-playrow button{min-width:0;min-height:42px;font-size:12px;padding:5px}
 .mm61-instruments{grid-template-columns:repeat(3,minmax(0,1fr))!important}.mm61-instrument{min-height:58px}.mm61-side h3{font-size:17px}.mm61-side p{font-size:12px}
 .mm61-tip{display:none}.mm61-status{padding:7px;font-size:12px}
 .mm61-project{order:5;grid-template-columns:1fr 1fr!important;padding:9px;gap:8px;margin:0}.mm61-project input{min-height:40px;padding:6px}.mm61-project-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.mm61-project-actions button{white-space:normal;min-height:42px;font-size:12px;padding:5px}
 .mm61-library{order:4;width:100%}.mm61-songgrid{grid-template-columns:1fr}
}

/* Mobile landscape R1: responsive layout in the existing mobile stylesheet.
   Touch phones only. Portrait, desktop and larger tablets keep existing rules.
   Natural document scrolling preserves access on short screens and with keyboards. */
@media (orientation:landscape) and (pointer:coarse) and (max-width:1100px) and (max-height:600px){
 html body #hollow90.mm61-active #h90body > .mm61{gap:6px;box-sizing:border-box;padding:0 max(6px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))!important}
 html body #hollow90.mm61-active #h90body .mm61-header{flex-direction:row!important;align-items:center!important;gap:8px!important;margin:0 0 4px!important}
 html body #hollow90.mm61-active #h90body .mm61-header h2{font-size:20px!important;text-align:left}
 html body #hollow90.mm61-active #h90body .mm61-header-actions{display:flex!important;width:auto;flex-wrap:wrap;justify-content:flex-end;gap:5px!important}
 html body #hollow90.mm61-active #h90body .mm61-header-actions button{min-height:40px!important;font-size:12px;overflow-wrap:normal}
 html body #hollow90.mm61-active #h90body .mm61-project{order:1;display:grid;grid-template-columns:minmax(120px,1fr) minmax(130px,1fr)!important;gap:6px;padding:7px}
 html body #hollow90.mm61-active #h90body .mm61-project label{min-width:0}
 html body #hollow90.mm61-active #h90body .mm61-project input{box-sizing:border-box;max-width:100%;font-size:16px}
 html body #hollow90.mm61-active #h90body .mm61-project-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 html body #hollow90.mm61-active #h90body .mm61-scoreheading{order:2}
 html body #hollow90.mm61-active #h90body .mm61-scoretabs{order:3;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));overflow:visible;padding:0;gap:5px}
 html body #hollow90.mm61-active #h90body .mm61-scoretab{min-width:0;min-height:48px;display:grid;grid-template-columns:auto 1fr;align-content:center;column-gap:5px;padding:4px}
 html body #hollow90.mm61-active #h90body .mm61-scoretab>span{grid-row:1/3;align-self:center;font-size:21px}
 html body #hollow90.mm61-active #h90body .mm61-scoretab strong{font-size:12px}
 html body #hollow90.mm61-active #h90body .mm61-scoretab small{font-size:10px}
 html body #hollow90.mm61-active #h90body .mm61-modebar{order:4;margin:0}
 html body #hollow90.mm61-active #h90body .mm61-modebar button{min-height:42px;flex:1;font-size:13px}
 html body #hollow90.mm61-active #h90body .mm61-desk{order:5;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:7px;align-items:start}
 html body #hollow90.mm61-active #h90body .mm61:not(.mm272-course) .mm61-left{display:contents}
 html body #hollow90.mm61-active #h90body .mm61:not(.mm272-course) .mm61-stage{grid-column:1;grid-row:1;width:100%!important;max-width:none!important;min-height:0!important;max-height:none!important;height:auto!important;aspect-ratio:1.65!important;box-sizing:border-box;align-self:start;margin:0!important}
 html body #hollow90.mm61-active #h90body .mm61-stage>img{position:absolute;width:auto!important;height:86%!important;max-width:47%;object-fit:contain;left:7%!important;bottom:5%!important}
 html body #hollow90.mm61-active #h90body .mm61-stage-score{position:absolute;left:54%!important;bottom:5%!important;width:29%!important;height:72%!important}
 html body #hollow90.mm61-active #h90body .mm61-stage-score svg{width:100%;height:100%;display:block}
 html body #hollow90.mm61-active #h90body .mm61-stage-badge{font-size:10px;padding:3px 6px;max-width:90%;right:3%;bottom:2%}
 html body #hollow90.mm61-active #h90body .mm61-side{grid-column:2;grid-row:1;min-width:0;padding:7px;box-sizing:border-box}
 html body #hollow90.mm61-active #h90body .mm61-side h3{font-size:16px;margin:2px 0 5px}
 html body #hollow90.mm61-active #h90body .mm61-side p{font-size:12px;line-height:1.35;margin:4px 0}
 html body #hollow90.mm61-active #h90body .mm61-instruments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px}
 html body #hollow90.mm61-active #h90body .mm61-instrument{min-width:0;min-height:44px;padding:4px;font-size:12px}
 html body #hollow90.mm61-active #h90body .mm61-instrument span{font-size:19px}
 html body #hollow90.mm61-active #h90body .mm69-repeat>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 html body #hollow90.mm61-active #h90body .mm69-repeat button{min-width:0;min-height:40px;padding:4px}
 html body #hollow90.mm61-active #h90body .mm61-status{min-height:0;font-size:12px;padding:5px;margin-top:5px}
 html body #hollow90.mm61-active #h90body .mm61-score{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(8,minmax(0,1fr))!important;margin:0;gap:4px}
 html body #hollow90.mm61-active #h90body .mm61-keys{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:4px}
 html body #hollow90.mm61-active #h90body .mm61-keys-compose{grid-template-columns:repeat(9,minmax(0,1fr))!important}
 html body #hollow90.mm61-active #h90body .mm61-key{min-width:0;min-height:54px;padding:4px 0}
 html body #hollow90.mm61-active #h90body .mm61-rest{grid-column:auto;flex-direction:column}
 html body #hollow90.mm61-active #h90body .mm61-playrow{grid-column:1/-1;grid-row:4;display:flex;flex-wrap:wrap;gap:5px;margin:0}
 html body #hollow90.mm61-active #h90body .mm61-playrow button{flex:1;min-height:44px;min-width:0}
 /* Lessons retain their own board, keyboard(s), instructions and progress. */
 html body #hollow90.mm61-active #h90body .mm272-course .mm61-desk{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)!important}
 html body #hollow90.mm61-active #h90body .mm272-course .mm61-left{display:block;min-width:0;padding:6px;grid-column:1;grid-row:1}
 html body #hollow90.mm61-active #h90body .mm272-board{min-height:140px;margin:0 0 6px}
 html body #hollow90.mm61-active #h90body .mm272-staff{height:125px}
 html body #hollow90.mm61-active #h90body .mm272-staff[viewBox="0 0 620 235"]{height:190px}
 html body #hollow90.mm61-active #h90body .mm272-keyboards{display:flex;flex-direction:column;gap:5px}
 html body #hollow90.mm61-active #h90body .mm272-piano{flex:none}
 html body #hollow90.mm61-active #h90body .mm272-course .mm61-side button{min-height:40px}
 html body #hollow90.mm61-active #h90body #mm272-own-dialog{max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box}
 html body #hollow90.mm61-active #h90body .mm61-songgrid{grid-template-columns:repeat(2,minmax(0,1fr))}

 /* R2: Compose repeat controls span the full workbench below the stage. */
 html body #hollow90.mm61-active #h90body .mm61-side:has(.mm69-instrument-panel){display:contents}
 html body #hollow90.mm61-active #h90body .mm69-instrument-panel{display:block!important;grid-column:2;grid-row:1;min-width:0;padding:7px;background:#fffdf8;border:1px solid #e0e6d9;border-radius:15px;box-sizing:border-box}
 html body #hollow90.mm61-active #h90body .mm61-side:has(.mm69-instrument-panel)>.mm69-repeat{grid-column:1/-1;grid-row:2;margin:0;padding:8px;background:#fffdf8;border:1px solid #e0e6d9;border-radius:15px;box-sizing:border-box}
 html body #hollow90.mm61-active #h90body .mm61-side:has(.mm69-instrument-panel)>.mm61-status{grid-column:1/-1;grid-row:3;margin:0}
 html body #hollow90.mm61-active #h90body .mm61-desk:has(.mm69-instrument-panel)>.mm61-left>.mm61-score{grid-row:4}
 html body #hollow90.mm61-active #h90body .mm61-desk:has(.mm69-instrument-panel)>.mm61-left>.mm61-keys{grid-row:5}
 html body #hollow90.mm61-active #h90body .mm61-desk:has(.mm69-instrument-panel)>.mm61-left>.mm61-playrow{grid-row:6}
}
