
#ztQrWrap{position:fixed;inset:0;background:rgba(6,20,16,.72);display:none;align-items:center;justify-content:center;z-index:99990}
#ztQrWrap.open{display:flex}
#ztQrCard{background:#fff;color:#152e27;border-radius:16px;padding:22px 22px 16px;max-width:340px;width:calc(100vw - 40px);text-align:center;box-shadow:0 18px 60px rgba(0,0,0,.45)}
#ztQrCard h3{margin:0 0 6px;font-size:19px}
#ztQrCard p{margin:6px 0;font-size:14px;line-height:1.45}
#ztQrCanvas{display:block;margin:10px auto;background:#fff}
#ztQrStatus{min-height:40px;font-weight:600}
#ztQrCard .ztqr-row{display:flex;gap:10px;justify-content:center;margin-top:8px}
#ztQrCard button{border:1px solid #152e27;background:#fff;color:#152e27;border-radius:999px;padding:8px 18px;font-size:14px;cursor:pointer}
#ztQrCard button.gold{background:#c9a227;border-color:#c9a227;color:#152e27;font-weight:700}


/* ZILOURD STUDIO GRID-PLACEMENT FIX (2026-11-14): main.obs is a 3-column
   grid whose children carried no explicit placement, so every late
   insertion into <main> (the tool rail, the guest banner) re-flowed the
   whole layout one cell — stage crushed into the 360px column, right
   panel dropped to a 76px strip. These rules pin the structural children
   to their cells; DOM order no longer matters. The guest banner, when
   present, takes its own full-width row on top (its designed bar shape);
   without it, nothing changes. Placement only — no styling change. */
main.obs > #zRail { grid-column: 1; grid-row: 1; }
main.obs > section.stage { grid-column: 2; grid-row: 1; }
main.obs > aside.right { grid-column: 3; grid-row: 1; }
main.obs > #zGuestBanner { grid-column: 1 / -1; grid-row: 1; }
main.obs:has(> #zGuestBanner) > #zRail { grid-row: 2; }
main.obs:has(> #zGuestBanner) > section.stage { grid-row: 2; }
main.obs:has(> #zGuestBanner) > aside.right { grid-row: 2; }


/* ZILOURD BUTTON READABILITY (2026-11-14, owner's order: "nan switcher
   mete bouton yo plis nwa pou moun ka li yo" — make the buttons darker
   so people can read them; widened the same day to every button added by
   today's builds). The Switcher take row lost its Lens-card chip styles
   when the organization pass moved it into the Scenes block: it fell back
   to the browser's light-grey buttons (rgb(239,239,239)) carrying the
   page's near-white text — white on white, and the pressed take was
   indistinguishable. The Lens Plus chips/buttons added today sat on
   transparent grounds. This block gives the Switcher row and today's
   .zlplus buttons one standard, in the settled face's own palette:
   near-black ground (#17181b, the face's --bg), bright white labels,
   and the active/pressed button in the face's gold (#d4a72c) with dark
   text. The take row also gets back its own designed chip metrics
   (flex, padding, pill radius) from the Lens-card rule it left behind.
   Scoped to the Switcher row + today's .zlplus sections + the Save
   button only — no pre-existing face button is restyled. The .zlplus
   switches already meet the standard (dark #2a3d37 ground, gold when
   checked) and are not touched. */
.lz-looks > button[data-take]{flex:1 1 auto;font-size:11px;padding:5px 6px;border-radius:20px;background:#17181b;color:#fff;border:1px solid #4a4e55;font-weight:600}
.lz-looks > button[data-take].on{background:#d4a72c;border-color:#d4a72c;color:#17181b;font-weight:700}
.zlplus .lz-looks > button{background:#17181b;color:#fff;border:1px solid #4a4e55;font-weight:600}
.zlplus .lz-looks > button.on{background:#d4a72c;border-color:#d4a72c;color:#17181b;font-weight:700}
#zlpLookSave{background:#17181b !important;border-color:#4a4e55 !important;color:#fff;font-weight:600}



/* zilourd.ai+ button beside GO LIVE (2026-11-14, owner's order "TOUT 2").
   One labeled door to the Studio's existing zilourd.ai+ panel, seated
   immediately after the GO LIVE button inside the one controls frame.
   House identity: deep dark green ground with a dark-gold edge, bold
   white label — readable at a glance, per the dark-button standard.
   In the settled dock grid (GO LIVE spans the full row) the button
   takes the full row directly under GO LIVE; in the classic flex
   controls it sits in the same row, right beside it. Scoped to this
   one new button only — no pre-existing button is restyled. */
.z-ai-btn{grid-column:1/-1;order:-1;margin:2px 0 4px;padding:12px 26px;border-radius:5px;border:1px solid #a8842a;background:linear-gradient(160deg,#11402e,#0a2a1f);color:#fff;font-weight:800;font-size:14px;letter-spacing:.4px;cursor:pointer;font-family:inherit}
.z-ai-btn:hover{background:linear-gradient(160deg,#17573d,#0d3524)}


/* ZILOURD TAB-FIT (2026-11-17): the right-panel tab strip (Chat, Camera,
   Comments, Schedule, Destinations, Overlays, Script, TV Apps) was held
   on one nowrap row whose labels total 476px inside a 299-389px panel,
   pushing the last tabs 87-177px past the panel's right edge. Closing-in:
   the strip wraps inside the panel; every label keeps its full size and
   stays on one line — nothing hidden, nothing crushed. */
aside.right .tabs{flex-wrap:wrap!important}


/* ZILOURD LEFT-CLOSE (2026-11-17): the Studio's left side — the #zRail
   tool rail in the first column of main.obs — closes in a little, on
   the owner's order. Desktop: column 76px -> 66px, rail buttons
   68px -> 60px (the widest rail label needs 58px of min-content, so
   60px keeps every label whole, with the design's own 3px-a-side
   slack). At <=1100px the buttons already sit at that 58px label
   floor, so only the column closes there: 64px -> 60px. Nothing
   moved, renamed or re-functioned. */
main.obs{grid-template-columns:66px minmax(0,1fr) 360px!important}
@media (min-width:1101px){#zRail button{width:60px}}
@media (max-width:1100px){main.obs{grid-template-columns:60px minmax(0,1fr)!important}}

 /* ZILOURD STAGE WIDEN (2026-11-19): on the owner's order (widen the screen more), the Studio right panel gives room to the stage on desktop: main.obs right column 360px -> 300px, so the live stage (middle column) gains 60px at every desktop width. The rail keeps the owner's 2026-11-17 close (66px). Nothing moved, renamed, removed or re-functioned; the right panel's tabs already wrap by design. At <=1100px the layout is already two columns with the stage full width, so this block is desktop-only. */ @media (min-width:1101px){main.obs{grid-template-columns:66px minmax(0,1fr) 300px!important}} 
 /* ZILOURD SCREEN SIZE (2026-11-19): on the owner's order (put the screen at its proper size), the live screen takes the FULL WIDTH of the stage column on desktop, sat the way the Studio's own small-width rules already sit it (at <=760px the wrap is flex:none with the preview at width:100%). Before this block, the desktop wrap was flex:1 with container sizing and the preview width was min(100%, wrap-height x 16/9); the scene bar and the dock inside the same column left the wrap only 426/250/204px tall at 1920/1440/1280, so the screen rendered 757/444/363px wide with 773/606/527px of empty margin beside it. Now the wrap sizes to the screen, the screen fills the column width, its height follows its own 16/9 aspect, and the scene bar and dock sit below it in the same column (the stage column scrolls, as it already could). The rail keeps the owner's 2026-11-17 close (66px) and the right panel keeps the widen pass's 300px. Nothing moved, renamed, removed or re-functioned; the picture is never cropped - the canvas still fills the 16/9 frame exactly as before. Desktop-only: below 1101px the Studio's own rules already sit the screen at full width. */ @media (min-width:1101px){.preview-wrap{flex:none!important;container-type:normal!important;min-height:0!important}.preview-wrap .preview{width:100%!important}} 

/* ZILOURD DIAGNOSTIC FIX (2026-11-18): the + Video / + Image row is a
   .lz-looks row; once the organization pass moves it into the Sources
   block, no scoped rule covers its buttons and they fall back to the
   browser's light default face under near-white inherited text
   (white-on-white, verified by computed style). This base rule gives
   every .lz-looks button the house dark chip; the scoped rules
   (.lenscard, .zlplus, [data-take]) are more specific and keep
   winning where they apply. */
.lz-looks>button{background:#17181b;color:#fff;border:1px solid #4a4e55;border-radius:20px}


/* ZILOURD LAYOUT FIX (2026-11-18): three measured defects, CSS only.
   (1) Desktop: the bottom dock was 243px tall while its columns' own
   content needs up to ~400px (mixer) — the mixer's Output row, the
   music row and the Controls tail were reachable only by scrolling
   inside a column, i.e. cut in the one whole pass. The dock now takes
   the height its content needs (the program picture, flex:1 with
   container sizing, gives the space back), and the Backgrounds grid
   inside the dock runs 3-across so the Scenes column also fits:
   measured Scenes content ~697px -> ~440px. Nothing moved, nothing
   renamed; every panel stays in its own system.
   (2) Phone (<=600px): the header .status bar is flex:none and
   411px wide, forcing a 423px page on a 390px screen. It now takes
   its own full row and wraps its pills. The dock panels stack
   one-per-row at full width instead of sitting side-by-side at
   180px, which also un-truncates the mixer labels ("Scr...", "M...").
   (3) /favicon.ico is served as a real file from this deploy. */
@media (min-width:901px){
  .obsdock{height:clamp(402px,54vh,490px)!important}
  .obsdock .scenes{grid-template-columns:repeat(3,1fr);gap:6px}
  .obsdock .set span{padding:8px 5px 3px;font-size:9.5px;line-height:1.2}
}
@media (max-width:600px){
  header .status{flex:1 1 100%!important;min-width:0;flex-wrap:wrap;row-gap:6px}
  .obsdock{grid-template-columns:1fr!important;height:auto!important}
  .obsdock .dcol{max-height:none!important}
}


.zl-aio-top{flex-wrap:wrap}
.zl-aio-top #selCam{flex:1 1 150px;max-width:240px;min-width:120px}


/* ZILOURD STUDIO PRESENTATION PASS (2026-11-21): the organisation the
   owner ordered — a skip link, finger-size targets on touch layouts,
   visible focus, the readiness lines. Presentation only; every
   control keeps its own handler and its own behaviour. (The
   workspace modes, phone dock and scene-delete Undo an early draft
   carried were cut on the owner's correction of 2026-11-21 15:43 —
   prototype ideas, not his words.) */
.zskip{position:fixed;left:10px;top:-70px;z-index:100000;background:var(--gold);color:#171205;font-weight:700;padding:10px 16px;border-radius:8px;transition:top .15s;text-decoration:none}
.zskip:focus{top:10px}
.zflash{outline:2px solid var(--gold)!important;outline-offset:2px}
.zready-lines{display:flex;flex-direction:column;gap:8px;padding:14px 18px 4px}
.zr-line{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;line-height:1.35}
.zr-ic{flex:none;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:12px;margin-top:1px}
.zr-line.ok .zr-ic{background:#173b2a;color:#3DD68C}
.zr-line.warn .zr-ic{background:#3d2f10;color:#E2B545}
.zr-line.bad .zr-ic{background:#3d1618;color:#E5484D}
.zr-line.info .zr-ic{background:#26282c;color:#9BA1A6}
dialog#zReady{width:min(520px,94vw)}
@media (max-width:900px){
  .btn,.ctl,.ez-chip{min-height:40px}
  .ib{min-width:40px;min-height:40px}
  #rightPanel .tabs button{min-height:44px}
  .zl-tabs button{min-height:44px}
  .setnav button{min-height:44px}
  .src{min-height:40px}
  .switch{width:44px;height:26px}
  .switch::after{width:20px;height:20px}
  .switch[aria-checked="true"]::after{left:21px}
}
