/* MSP DAW on phones: a short, simple layout. Everything extra sits behind tap-to-open headers. Desktop is untouched. */
.mhd,.mobonly{display:none}
@media (max-width:820px){
  html,body{overflow-x:hidden}
  body{padding-inline:10px!important}
  .main{gap:12px;padding-block:8px 40px}
  .logo img{width:44px;height:44px}
  .main{min-width:0}
  .shell .main > *{max-width:100%}
  .hint,.mobhide{display:none!important}
  /* tap-to-open headers */
  .mhd{display:flex;width:100%;justify-content:space-between;align-items:center;gap:8px;padding:12px 4px;border:0;background:none;color:var(--gold-hi,#F3D98B);font:600 12px var(--f-body,inherit);letter-spacing:.18em;text-transform:uppercase;cursor:pointer;min-height:44px}
  .mhd i{font-style:normal;transition:transform .15s;color:var(--gold,#D4AF37)}
  .mhd[aria-expanded=true] i{transform:rotate(90deg)}
  .mcol>*:not(.mhd){display:none!important}
  .mcol{padding-top:0;padding-bottom:0}
  /* menu bar and view tabs */
  .ptmenu{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .dhead .row{flex-wrap:wrap;gap:6px}
  .dhead .inv,.dhead #tpchip{display:none}
  /* transport: big, thumb sized, always shown */
  .cbar .tp{gap:10px}
  .cbar .btn,.cbar button{min-height:42px}
  .cbar .clk{font-size:26px}
  .cbar.mless .tp>.grp:nth-of-type(n+4){display:none}
  .mobonly{display:inline-flex}
  .cbar .mmore{align-self:flex-start}
  .tbar.mless .tp>.grp:nth-of-type(n+2){display:none}
  .tbar .btn{min-height:40px}
  /* timeline: slim track heads (name, M, S, R), no sliders or automation rows */
  .work{gap:10px}
  .th .r3,.th .r4,.th .r5,.th .r6,.th .r7,.th .r2 .el,.th .r2 .tb,.th .r2 .lv,.th .r1 .gr,.th .r1 .sw{display:none!important}
  .th{padding:4px 6px;gap:6px}
  .th .r1 .tn{min-width:0;font-size:13px}
  .th .sb{min-width:0;width:20px;min-height:28px;padding:0;font-size:10px}
  .th .r1 .x{display:none!important}
  .tlw{grid-template-columns:96px minmax(0,1fr)!important}
  .heads .sp{padding-left:6px}
  .tbar .grp,.cbar .grp{flex-wrap:wrap}
  .th .r1{gap:2px}.th .r1 .tn{width:100%;padding:4px 6px}.th .r2{gap:2px;flex-wrap:nowrap;justify-content:flex-start}.th .r1 .x{padding:0 2px}
  .tlc .row.between{flex-wrap:wrap;gap:6px}
  /* other cards */
  .btm{gap:10px}
  .btn.sm{min-height:36px}
  .card{padding:12px}
  .fxw{max-width:calc(100vw - 8px)!important}
  /* Mix and MIDI views scroll sideways inside their own box, never the page */
  .mixer,.mixc,.midtop,.pvc,.kbc{max-width:100%}
  .mixer{overflow-x:auto}
}