/* ZILOURD STUDIO — MOBILE CONTROL DOCK + BOTTOM SHEETS (2026-11-21).
   Linked after studio-modes.css. The dock and the backdrop are
   built by chunk inline-studio-29 on the owner's Studio road only
   (guests never get them), and every rule that shows or moves
   anything lives inside the phone-width block below — the desktop
   face is exactly as it was. On phone widths: the dock stands
   fixed at the foot of the screen; the bottom dock's three real
   sections (Scenes | Sources stack | Audio Mixer) rest out of
   flow and open as bottom sheets — the same nodes under a .zsheet
   class, never cloned; the right panel, summoned through its own
   door (#panelBtn), is presented as a bottom sheet too. */

/* ---- the dock and the backdrop rest everywhere else ---- */
.zmobdock{display:none}
.zsheetback{display:none}

@media (max-width:900px){
 /* ---- the dock: the performer's essentials, always at hand ---- */
 .zmobdock{position:fixed;left:0;right:0;bottom:0;z-index:70;display:flex;gap:4px;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));background:var(--panel2);border-top:1px solid var(--line)}
 .zmobdock button{flex:1 1 0;min-width:44px;min-height:48px;padding:6px 2px;border-radius:10px;background:var(--panel);border:1px solid var(--line);color:var(--text);font-size:11px;line-height:1.15;cursor:pointer}
 .zmobdock button[aria-pressed="true"]{border-color:var(--gold);color:var(--gold)}
 .zmobdock button[aria-expanded="true"]{border-color:var(--gold);color:var(--gold)}
 .zmobdock button.zd-go{flex:1.5 1 0;background:var(--gold);border-color:var(--gold);color:#1a1405;font-weight:800;letter-spacing:.3px}
 .zmobdock button.zd-go.zd-live{background:#B3352B;border-color:#B3352B;color:#fff}
 .zmobdock button:disabled{opacity:.5;cursor:default}
 /* room at the foot of the stage so the fixed dock never covers
    the action bar when the stage is scrolled to its end */
 main.obs.zarch2>section.stage{padding-bottom:72px}
 /* ---- the backdrop behind an open sheet ---- */
 body.zsheet-open .zsheetback{display:block;position:fixed;inset:0;z-index:55;background:rgba(2,10,8,.5)}
 /* ---- the three real sections rest out of flow on the phone ---- */
 main.obs.zarch2 .zdocka2{height:0;min-height:0}
 main.obs.zarch2 .zdocka2>.dcol{display:none}
 main.obs.zarch2 .zdocka2>.zdockstack{display:none}
 /* ---- ... and open as bottom sheets: the same node, lifted ---- */
 main.obs.zarch2 .zdocka2>.dcol.zsheet{display:block;position:fixed;left:6px;right:6px;bottom:calc(70px + env(safe-area-inset-bottom,0px));z-index:60;max-height:68vh;height:auto;overflow-y:auto;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:8px;box-shadow:0 12px 32px rgba(0,0,0,.5)}
 main.obs.zarch2 .zdocka2>.zdockstack.zsheet{display:flex;position:fixed;left:6px;right:6px;bottom:calc(70px + env(safe-area-inset-bottom,0px));z-index:60;max-height:68vh;height:auto;overflow-y:auto;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:8px;box-shadow:0 12px 32px rgba(0,0,0,.5)}
 /* ---- the right panel as a bottom sheet when its door opens it ---- */
 main.obs.zarch2>aside.right.show{left:6px;right:6px;top:auto;bottom:calc(70px + env(safe-area-inset-bottom,0px));width:auto;height:74vh;max-height:74vh;z-index:60;border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px rgba(0,0,0,.5)}
}
