/* Optional illustrated-room renderer. The shift UI and engine remain authoritative. */
.agency-live .stage { background:#d8cfb7; cursor:default; }
.agency-live .stage > .scene,
.agency-live .stage > .actor-labels,
.agency-live .stage > .speech,
.agency-live .stage > .map-wrap { visibility:hidden; pointer-events:none; }
.agency-live .stage > .map-wrap { display:none; }
.agency-live .viewer > .tools { display:none; }
.agency-live__scene { position:absolute;inset:0;z-index:3;overflow:hidden;touch-action:manipulation; }
.agency-live__canvas { display:block;width:100%;height:100%; }
.agency-live__people { position:absolute;inset:0;pointer-events:none; }
.agency-live__rooms { position:absolute;inset:0;pointer-events:none; }
.agency-live__room-pin { position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:5px;border:1px solid #fff8e8b0;border-radius:7px;background:#233b50b8;color:#fff8e8;pointer-events:auto;cursor:pointer;box-shadow:0 2px 0 #192e452a;opacity:0; }
.agency-live__scene[data-room-guides=true] .agency-live__room-pin,.agency-live__room-pin:hover,.agency-live__room-pin:focus-visible { opacity:1; }
.agency-live__room-pin svg { width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:miter; }
.agency-live__room-pin span { display:none;position:absolute;left:50%;top:calc(100% + 6px);transform:translateX(-50%);padding:4px 8px;background:#fff8e8;color:#23394d;border-radius:4px;white-space:nowrap;font-family:inherit;font-weight:500;font-size:12px;line-height:1.3; }
.agency-live__room-pin[hidden],.agency-live__bubble[hidden],.agency-live__activity[hidden] { display:none; }
.agency-live__room-pin:hover,.agency-live__room-pin:focus-visible { background:#0756ee;outline:2px solid #fff8e8;outline-offset:2px;z-index:2; }
.agency-live__room-pin:hover span,.agency-live__room-pin:focus-visible span { display:block; }
.agency-live__room-pin[data-reserved=true] { background:#414b51ad; }
.agency-live__activity { display:block;margin-top:3px;font-size:10px;font-weight:400;line-height:1.2;opacity:.85; }
.agency-live--moments #shift-moments { display:none; }
.agency-live__sound { min-width:85px; }
.agency-live__portrait { display:inline-block;flex-shrink:0;background-size:210% auto;background-position:50% 7%;background-repeat:no-repeat; }
.agency-live__person { position:absolute;transform:translate(-50%,-100%);pointer-events:auto;min-width:52px;max-width:180px;min-height:30px;border:1px solid #51604f;border-radius:5px;background:#fff8e8ed;color:#263e46;padding:4px 7px;font-family:inherit;font-weight:600;font-size:12px;line-height:1.2;box-shadow:0 2px 0 #152c3425;cursor:pointer;white-space:nowrap; }
.agency-live__person[aria-pressed=true] { color:#fff9ea;background:#0756ee;border-color:#003cb9; }
.agency-live__person[data-transit=true] { border-style:dashed;opacity:.95; }
.agency-live__person[data-transit=true]::before { content:'›';display:inline-block;margin-right:5px; }
.agency-live__stamina { display:block;height:3px;background:#bec5b7;margin-top:4px;overflow:hidden; }
.agency-live__stamina i { display:block;height:100%;background:#54744e; }
.agency-live__person[aria-pressed=true] .agency-live__stamina i { background:#fff7d9; }
.agency-live__person[data-stamina-band=low] .agency-live__stamina i { background:#be6345; }
.agency-live__bubble { position:absolute;transform:translate(-50%,-100%);box-sizing:border-box;width:min(245px,calc(100% - 16px));max-width:245px;padding:10px 13px;border-radius:10px;background:#fff8e8;color:#243d59;box-shadow:0 3px 0 #21344130;font-size:13px;line-height:1.4;pointer-events:none; }
.agency-live__bubble::after { content:'';position:absolute;bottom:-6px;left:var(--bubble-tail,50%);transform:translateX(-50%);border-top:7px solid #fff8e8;border-left:6px solid transparent;border-right:6px solid transparent; }
.agency-live__bubble strong { display:block;margin-bottom:3px;font-size:12px; }
.agency-live__navigation { position:absolute;left:16px;bottom:188px;z-index:11;display:flex;align-items:center;gap:8px;max-width:calc(100% - 425px);padding:6px 8px;background:#fff8e8;border:1px solid #667482;border-radius:8px;box-shadow:0 3px 0 #263d5426; }
.agency-live__navigation select { width:210px;min-width:0;max-width:35vw;min-height:38px;border:0;border-right:1px solid #bac1c7;border-radius:0;background:transparent;color:#253e60;padding:5px 12px 5px 2px;font-family:inherit;font-weight:600;font-size:14px;line-height:1.2; }
.agency-live__navigation button { min-height:38px;border:0;background:transparent;color:#0756ee;padding:5px 10px;font-family:inherit;font-weight:500;font-size:14px;line-height:1.2;border-radius:4px;cursor:pointer; }
.agency-live__navigation button:hover { background:#e8eefb; }
.agency-live__navigation button[aria-pressed=true] { background:#e8eefb;color:#0648c5; }
.agency-live__navigation button:disabled { color:#667482;cursor:default; }
.agency-live__navigation :focus-visible,.agency-live__person:focus-visible { outline:3px solid #0756ee;outline-offset:3px; }
.agency-live__place { position:absolute;left:18px;top:104px;z-index:9;background:#fff8e8ee;border-radius:5px;padding:7px 11px;max-width:calc(100% - 430px);pointer-events:none;color:#263e46;font-size:12px;line-height:1.4; }
.agency-live__place strong { display:block;font-size:14px;font-weight:600; }
.agency-live__place span:empty { display:none; }
.agency-live__loading { position:absolute;left:50%;bottom:16px;transform:translateX(-50%);max-width:calc(100% - 32px);margin:0;padding:7px 11px;border:1px solid #bac2cf;border-radius:6px;background:#fff8e5;color:#5d6470;font-size:12px;line-height:1.4;pointer-events:none;animation:none;transition:none; }
.agency-live__scene:not([data-loaded=true]) .agency-live__loading { top:50%;bottom:auto;transform:translate(-50%,-50%); }
.agency-live__loading button { pointer-events:auto;margin-left:8px;min-height:32px;padding:5px 8px;border:1px solid #bac2cf;border-radius:4px;background:#fff8e5;color:#0055ff;font-family:inherit;font-size:12px;line-height:1.4;cursor:pointer; }
.agency-live__loading[hidden],.agency-focus__loading[hidden] { display:none!important; }
.agency-live__hotspot { position:absolute;transform:translate(-50%,-50%);width:28px;height:28px;pointer-events:auto;border:1px solid #4f5f6a;border-radius:5px;background:#fff8e8d9;color:#244fbb;box-shadow:0 2px 0 #20364430;font-size:16px;cursor:pointer; }
.agency-live__hotspot:hover,.agency-live__hotspot:focus-visible { background:#0756ee;color:white;outline:2px solid white; }
.agency-live .play-grid > .incident { top:auto;bottom:246px;width:300px;max-height:235px; }
.agency-live #stage:focus-visible { outline:2px solid #0756ee;outline-offset:-2px; }
.agency-live #pocket-work:not([hidden]) { display:block;position:absolute;right:16px;top:64px;bottom:auto;left:auto;width:260px;z-index:12;padding:12px; }
.agency-live .pocket-heading { display:flex;flex-direction:column;gap:4px;font-size:12px;margin-bottom:10px; }
.agency-live .pocket-heading strong { font-size:16px;font-weight:600; }
.agency-live .pocket-heading>span { color:var(--muted); }
.agency-live .pocket-actions { display:flex;gap:8px; }
.agency-live .pocket-actions .button { flex:1;min-width:0;min-height:44px;display:block;font-size:12px;text-align:left;padding:8px;white-space:normal; }
.agency-live .pocket-actions .button>span { display:block;margin-top:4px;font-size:11px;font-weight:400;color:var(--muted); }
.agency-live .pocket-actions .button-primary>span { color:var(--paper); }
.agency-live .button-primary:disabled>span { color:var(--muted); }
.agency-live__handoff { display:block;margin-top:4px;font-size:11px;line-height:1.25;color:#0756ee;white-space:normal;max-width:145px; }
.agency-live__person[aria-pressed=true] .agency-live__handoff { color:#fff8e8; }
.agency-live__person[data-has-handoff=true] { border-color:#0756ee; }
.agency-live .board-toggle { display:flex;align-items:center;gap:8px;max-width:calc(100% - 32px); }
.agency-live #handoff-summary { color:var(--blue);font-weight:600;white-space:nowrap; }
.agency-live #handoff-tray { margin-bottom:12px;padding:14px 16px;background:var(--paper);border:1px solid var(--ink);border-radius:var(--corner);box-shadow:var(--shadow); }
.agency-live #handoff-tray>h2 { margin:0 0 10px;font-size:16px;line-height:1.3;font-weight:600; }
.agency-live .handoff-item+.handoff-item { border-top:1px solid var(--line);margin-top:12px;padding-top:12px; }
.agency-live .handoff-copy { font-size:14px;line-height:1.4; }
.agency-live .handoff-copy strong { display:block;font-weight:600; }
.agency-live .handoff-copy p { margin:4px 0;color:var(--muted);font-size:12px; }
.agency-live .handoff-actions { display:flex;flex-wrap:wrap;gap:8px;margin-top:10px; }
.agency-live .handoff-actions .button { flex:1;min-height:40px;font-size:12px;padding:8px; }
.agency-live .handoff-note { color:var(--muted);font-size:12px;line-height:1.4;margin:8px 0 0; }
.agency-live .account-quick { padding:0 16px 14px; }
.agency-live .account-quick .button { width:100%;min-height:42px; }
.agency-live .play-grid[data-shift-phase=ended] { z-index:40; }
.agency-live .play-grid[data-shift-phase=ended]::after { content:'';position:fixed;inset:0;z-index:35;background:#182b46a6; }
.agency-live .play-grid>#ending:not([hidden]) { position:fixed;z-index:40;left:50%;top:50%;transform:translate(-50%,-50%);width:min(560px,calc(100% - 40px));max-height:calc(100svh - 56px);overflow:auto;padding:28px;box-shadow:0 8px 0 #13264040; }
.agency-live #ending h2 { font-size:26px;line-height:1.2;letter-spacing:-.4px;margin:0 0 16px; }
.agency-live #ending p { font-size:15px;line-height:1.5;margin:12px 0; }
.agency-live #ending .ending-actions { position:sticky;bottom:-28px;display:flex;gap:12px;padding:16px 0 4px;background:var(--paper); }
.agency-live #ending .ending-actions .button { flex:1;width:auto;margin:0;min-height:46px;font-size:14px; }
.agency-live #ending .ending-details { margin-top:18px;padding-top:14px;border-top:1px solid var(--line);font-size:13px; }
.agency-live #ending .ending-details>summary { min-height:36px;display:flex;align-items:center;gap:8px;cursor:pointer;color:var(--blue); }
.agency-live #ending .ending-details>summary::before { content:'+';font-size:18px; }
.agency-live #ending .ending-details[open]>summary::before { content:'−'; }
.agency-live #ending .ending-details p { font-size:13px; }
@media(min-width:1800px) { .agency-live__navigation { left:24px; }.agency-live__place { left:26px; } }
@media(max-width:1100px) and (min-width:761px) { .agency-live__navigation { max-width:calc(100% - 370px); }.agency-live__navigation select{width:170px}.agency-live__place{max-width:calc(100% - 365px)} }
@media(max-width:760px) {
 .agency-live .play-grid { padding-top:0;padding-bottom:12px; }
 /* The scene and actionable work precede the optional room browser and team
    care on narrow screens. No duplicate fixed control strip covers a card. */
 .agency-live .viewer { display:contents; }
 .agency-live .hud { position:relative;inset:auto;order:0;margin:10px;gap:8px; }
 .agency-live .stage-shell { position:relative;top:auto;bottom:auto;left:auto;right:auto;height:56.25vw;order:1; }
 .agency-live .stage { width:100%; }
 .agency-live__navigation { position:relative;left:auto;right:auto;bottom:auto;max-width:none;gap:2px;padding:3px 6px;margin:10px;order:6; }
 .agency-live__navigation select { max-width:40vw;width:130px;min-height:36px;font-size:13px;flex:1; }
 .agency-live__navigation button { font-size:12px;padding:4px 8px;min-height:36px; }
 .agency-live .team-dock { position:relative;inset:auto;width:auto;margin:0 10px;order:5; }
 .agency-live .agency-moments { position:relative;inset:auto;width:auto;max-width:none;margin:0 10px;order:2; }
 .agency-live .agency-moments:has(.agency-moments__card:not([hidden])) { margin-top:8px; }
 .agency-live .board-toggle { order:3;padding:8px 12px 0;max-width:none;justify-content:space-between; }
 .agency-live .board { order:4;padding-top:8px; }
 .agency-live .office-caption { order:7;margin-top:0; }
 .agency-live .play-grid>.grow { order:8;margin:12px; }
 .agency-live .incident { padding:12px; }
 .agency-live .incident-stamp { width:34px;height:38px; }
 .agency-live .incident .account-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .agency-live .incident .account-actions .button { display:block;font-size:13px; }
 .agency-live .incident .account-actions .button>span { display:block;margin-top:4px;text-align:left; }
 .agency-live .incident p { margin:8px 0;font-size:13px; }
 .agency-live #pocket-work { display:none!important; }
 .agency-live__place { display:none; }
 .agency-live__person { min-width:34px;max-width:100px;min-height:24px;font-size:10px;padding:3px 5px; }
 .agency-live__person:not([aria-pressed=true]) .agency-live__activity { display:none; }
 .agency-live__bubble { display:none; }
 .agency-live__hotspot { width:24px;height:24px;font-size:13px; }
 .agency-live .opening { z-index:20;top:88px; }
 .agency-live .play-grid>#ending:not([hidden]) { width:calc(100% - 24px);max-height:calc(100svh - 24px);padding:20px; }
 .agency-live #ending h2 { font-size:23px; }
 .agency-live #ending .ending-actions { bottom:-20px;gap:8px; }
 .agency-live #ending .ending-actions .button { font-size:13px;padding:10px; }
}
/* Room inspection keeps the live floor and the work board in place. */
.agency-live__floor-label { padding:0 10px;font-size:13px;font-weight:600;color:var(--ink); }
.agency-live__room-pin[data-inspected=true] { opacity:1;background:var(--blue);outline:2px solid var(--paper);outline-offset:3px; }
.agency-focus { position:absolute;z-index:16;left:16px;top:152px;width:min(520px,calc(100% - 408px));max-height:calc(100% - 354px);overflow:auto;border:1px solid var(--ink);border-radius:var(--corner);background:var(--paper);box-shadow:0 5px 0 #26395830; }
.agency-focus__header { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px; }
.agency-focus__header span { display:block;font-size:11px;color:var(--muted); }
.agency-focus__header h2 { margin:2px 0 0;font-size:18px;font-weight:600;line-height:1.2; }
.agency-focus button { font-family:inherit;cursor:pointer; }
.agency-focus__header button { background:transparent;border:1px solid var(--line);border-radius:5px;min-height:38px;padding:7px 10px;font-size:13px;color:var(--blue); }
.agency-focus__frame { position:relative;aspect-ratio:16/9;background:#d8cfb7; }
.agency-focus__frame canvas { display:block;width:100%;height:100%; }
.agency-focus__loading { position:absolute;left:12px;bottom:12px;max-width:calc(100% - 24px);margin:0;padding:7px 11px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--muted);font-size:12px;line-height:1.4;pointer-events:none;animation:none;transition:none; }
.agency-focus__context { padding:10px 16px;display:flex;flex-wrap:wrap;gap:8px; }
.agency-focus__context p { margin:0;font-size:13px;color:var(--muted); }
.agency-focus__context button { display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;border:1px solid var(--line);border-radius:5px;background:transparent;padding:8px 10px;color:var(--ink);font-size:13px;max-width:100%; }
.agency-focus__context button[aria-pressed=true] { background:#e8eefb;border-color:var(--blue); }
.agency-focus__context strong { font-size:13px;font-weight:600; }
.agency-focus__context button span { font-size:12px;color:var(--muted); }
.agency-focus footer { border-top:1px solid var(--line);padding:8px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted); }
.agency-focus footer select { border:0;background:transparent;color:var(--ink);max-width:180px;padding:6px 0;font-family:inherit;font-size:13px; }
.agency-focus :focus-visible { outline:3px solid var(--blue);outline-offset:2px; }
.agency-live .board>.incident { margin:0 0 12px;max-height:none; }
.agency-live .board>.incident .incident-stamp { width:38px;height:40px; }
.agency-live .board>.incident p { font-size:13px;margin:8px 0; }
.agency-live .board>.incident .button { font-size:13px; }
@media(min-width:761px) and (max-height:760px){.agency-focus{top:104px;max-height:calc(100% - 206px);width:min(430px,calc(100% - 390px));}.agency-focus__context{padding:8px 12px}.agency-focus__header{padding:9px 12px}.agency-focus footer{padding:6px 12px}}
@media(max-width:760px){
 .agency-live__navigation { justify-content:space-between; }
 .agency-live__floor-label { padding:0 6px;font-size:12px; }
 .agency-focus { position:fixed;left:12px;right:12px;top:auto;bottom:12px;width:auto;max-height:70svh;z-index:25; }
 .agency-focus__header { padding:10px 12px; }
 .agency-focus__header h2 { font-size:17px; }
 .agency-focus__context { padding:8px 12px;max-height:100px;overflow:auto; }
 .agency-focus footer { padding:7px 12px; }
 .agency-focus__context button { padding:6px 8px; }
}
.agency-inspecting .agency-live__navigation { visibility:hidden;pointer-events:none; }
.agency-focus__header { position:sticky;top:0;z-index:1;background:var(--paper); }
.agency-live .board>.incident .button { display:block;text-align:left; }
.agency-live .board>.incident .button>span { display:block;margin-top:4px;font-size:12px;text-align:left; }
@media(min-width:761px) and (max-height:760px){
 .agency-focus { max-height:calc(100% - 318px);width:min(380px,calc(100% - 390px)); }
 .agency-focus__context { padding:6px 10px; }
 .agency-focus__context button { flex-direction:row;align-items:center;gap:8px;padding:6px 8px; }
 .agency-focus__context button span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
}
.agency-focus__context .agency-focus__visitor { display:flex;flex-direction:column;justify-content:center;gap:3px;padding:8px 10px;font-size:12px; }
/* Existing cast art, framed as faces so identity survives at ordinary play size. */
.agency-live__portrait { background-size:contain;background-position:center bottom;image-rendering:pixelated; }
.agency-live .person-portrait { width:40px;height:48px; }
.agency-live .person { gap:8px; }
.agency-live .staff-care { align-items:center; }
.agency-live #selected-staff { min-width:0;max-width:none;line-height:1.35; }
.agency-live .selected-activity { display:block;font-weight:600;font-size:13px; }
.agency-live .selected-summary { display:block;margin-top:3px;color:var(--muted);font-size:12px; }
/* Dialogue remains in the accessible transcript, without printing it twice. */
@media(min-width:761px){
 .agency-live.agency-has-speech #cue-line { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
 .agency-live.agency-has-speech .office-caption { justify-content:flex-end; }
 .agency-live.agency-has-speech .office-caption .toast { max-width:100%; }
}
@media(max-width:1200px) and (min-width:761px){
 .agency-live .person-portrait { width:34px;height:41px; }
 .agency-live .person { gap:5px; }
 .agency-live .person-place { max-width:80px; }
}
@media(max-width:760px){
 .agency-live .person { flex-direction:column;gap:3px;text-align:center;min-width:0; }
 .agency-live .person-portrait { width:37px;height:45px; }
 .agency-live .person-place { max-width:75px;font-size:11px; }
 .agency-live .staff-care { flex-wrap:wrap; }
 .agency-live #selected-staff { flex:1 1 100%; }
 .agency-live .staff-care>.button { flex:1;min-height:40px; }
}

/* Live office camera: modest enlargement; work remains in the pitch card. */
.agency-live .agency-live__navigation{gap:5px;align-items:center}
.agency-live .agency-live__navigation output{min-width:42px;text-align:center;font:600 12px/1.3 Arial,sans-serif;color:#243e65}
.agency-live .agency-live__navigation [data-zoom-in],.agency-live .agency-live__navigation [data-zoom-out]{min-width:32px;padding-inline:8px;font-size:18px}
.agency-live .agency-live__scene[data-zoomed="true"] .agency-live__canvas{cursor:grab;touch-action:none}
.agency-live .agency-live__scene[data-zoomed="true"] .agency-live__canvas:active{cursor:grabbing}
.agency-live .agency-live__rooms{display:none}
.agency-live .account[data-expanded="true"] .stage-title{display:none}
.agency-live .account[data-expanded="true"] .client-summary{display:none}
.agency-live .agency-live__navigation button:disabled{opacity:.42}
@media(max-width:760px){.agency-live .agency-live__navigation{max-width:calc(100% - 20px);flex-wrap:wrap;gap:3px}.agency-live .agency-live__navigation button{font-size:11px;padding:5px 8px}.agency-live .agency-live__navigation output{font-size:11px;min-width:34px}}
