/* Give the playable console priority; room/chat tools remain alongside or below it. */
html[data-hud-family="misc"] body:has(#emu) .wrap { width:min(1800px,calc(100% - 24px)); padding-top:12px; }
body:has(#emu) .hdr { margin-bottom:12px; }
body:has(#emu) .grid { grid-template-columns:minmax(0,1fr) 290px; gap:12px; align-items:start; }
body:has(#emu) .stage { height:clamp(740px,calc(100dvh - 126px),1200px); min-height:740px; }
body:has(#emu) .side { height:auto; min-height:0; gap:12px; }
body:has(#emu) .panel { min-width:0; }
body:has(#emu) .chatform { flex-wrap:wrap; }
body:has(#emu) .chatform input { flex:1 1 150px; }
@media(max-width:1200px) {
  body:has(#emu) .grid { grid-template-columns:1fr; }
  body:has(#emu) .side { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  body:has(#emu) .stage { height:clamp(740px,calc(100dvh - 100px),1100px); }
}
@media(max-width:700px) {
  html[data-hud-family="misc"] body:has(#emu) .wrap { width:calc(100% - 12px); }
  body:has(#emu) .hdr { flex-wrap:wrap; gap:6px; }
  body:has(#emu) .hdr h1 { font-size:16px; letter-spacing:.5px; }
  body:has(#emu) .hdr .pill { font-size:11px; }
  body:has(#emu) .roombar { gap:8px; }
  body:has(#emu) .roombar .btn { width:auto; margin-left:auto!important; min-height:44px; }
  body:has(#emu) .mechip { flex:1; }
  body:has(#emu) .stage { height:clamp(650px,calc(100dvh - 80px),940px); min-height:650px; border-radius:12px; }
  body:has(#emu) .side { display:flex; }
}
