/* REQ-126: the Office page: the 3D building, its HUD, overlays, LED walls, minimap, rooms, Locate and the design wall. The colour tokens (:root) and shared components are in ../styles.css; this file never defines :root variables. */

/* Office: isometric scene + questions panel (goes full screen together). */
.office { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }
@media (max-width: 860px) { .office { grid-template-columns: minmax(0, 1fr); } }
.office:fullscreen { background: var(--bg); padding: 16px; height: 100vh; box-sizing: border-box; grid-template-rows: minmax(0, 1fr); }
.office:-webkit-full-screen { background: var(--bg); padding: 16px; height: 100vh; box-sizing: border-box; }
.office:fullscreen .office-stage, .office:-webkit-full-screen .office-stage { height: 100%; }
.office:fullscreen .office-questions, .office:-webkit-full-screen .office-questions { max-height: none; }
.office-stage { position: relative; height: clamp(320px, 56vw, 640px); border-radius: 20px; overflow: hidden; background: var(--office-bg, #14111e); border: 1px solid var(--line); }
.office-stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.office-stage canvas:active { cursor: grabbing; }
.office-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--office-hud-ink, #c4c1d2); font-size: 14px; text-align: center; padding: 24px; }

/* Office overlays: "started a new job" bubbles and the agent pop-over. */
.ofx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.office-stage canvas.over-agent { cursor: pointer; }
.obubble { position: absolute; left: 0; top: 0; max-width: 280px; padding: 7px 12px; border-radius: 14px; background: #fff; color: #17131f; border-left: 4px solid var(--c); font: 600 12.5px/1.3 var(--font-body); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; will-change: transform; opacity: 0; transition: opacity .35s; }
.obubble.on { opacity: 1; }
.obubble b { font-weight: 800; }
/* REQ-58: the letter box's button, over the box on Steven's desk. */
.lb-btn { position: absolute; left: 0; top: 0; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 999px; border: 2px solid var(--office-king-gold, #fbbf24); background: var(--office-king-velvet, #9f1239); color: #fff; font: 800 13px/1 var(--font-mono); pointer-events: auto; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); will-change: transform; }
.lb-btn.empty { background: var(--office-hud, #17131f); color: var(--office-hud-ink, #fff); }
.lb-btn:focus-visible { outline: 3px solid var(--office-king-gold, #fbbf24); outline-offset: 3px; }
/* REQ-78.1 (Pablo): at 600 px and less the box's count is a HUD chip pinned to it ('✉ 3 letters'). */
.lb-btn.lb-chip { border: 1px solid var(--office-line, rgba(23, 21, 31, 0.14)); background: var(--office-hud, rgba(255, 255, 255, 0.88)); color: var(--office-hud-ink, #17151f); font: 800 12px/1 var(--font-body); padding: 0 12px; white-space: nowrap; }
.lb-btn.lb-chip.empty { font-weight: 700; }
.lb-btn[hidden] { display: none; }
/* REQ-156.1.5: the L3 bridge stub on a phone, pinned to the building's edge towards the other building. */
.bridge-stub { position: absolute; left: 0; top: 0; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px 10px 10px 999px; border: 1px solid var(--office-line, rgba(23, 21, 31, 0.14)); background: var(--office-hud, rgba(255, 255, 255, 0.88)); color: var(--office-hud-ink, #17151f); font: 800 12px/1 var(--font-body); white-space: nowrap; pointer-events: auto; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); will-change: transform; }
.bridge-stub:not(.left) { border-radius: 10px 999px 999px 10px; }
.bridge-stub:focus-visible { outline: 3px solid var(--office-accent, #a78bfa); outline-offset: 3px; }
.bridge-stub[hidden] { display: none; }
.opop { position: absolute; left: 0; top: 0; width: 300px; max-width: calc(100% - 16px); max-height: calc(100% - 16px); overflow: auto; box-sizing: border-box; padding: 14px 16px; border-radius: 16px; background: var(--office-pop-card); color: var(--office-pop-ink); border-top: 5px solid var(--c); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); pointer-events: auto; font: 500 13px/1.45 var(--font-body); will-change: transform; }
.opop[hidden] { display: none; }
.opop h3 { margin: 0 24px 0 0; font: 800 19px/1.2 var(--font-display); }
.opop .role { color: #6b6880; margin: 2px 0 8px; }
.opop .st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--s) 18%, var(--office-pop-card)); color: var(--office-pop-ink); font-weight: 800; font-size: 12px; }
.opop .chip.rank-badge { display: inline-flex; margin: 0 0 8px; background: color-mix(in srgb, var(--c) 14%, var(--office-pop-card)); color: var(--office-pop-ink); box-shadow: inset 0 0 0 1px var(--c); }   /* REQ-137.2.1: the rank badge on the popover's light card */
.opop a.chip.rank-badge:hover { background: color-mix(in srgb, var(--c) 26%, var(--office-pop-card)); }
.opop .st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--s); }
.opop .asleep { margin-left: 6px; font-size: 12px; color: #6b6880; }
.opop .item { display: inline-block; margin-left: 6px; padding: 3px 9px; border-radius: 999px; background: #fef3c7; color: #92400e; font: 800 12px/1.2 var(--font-mono); }
.opop .now { margin: 10px 0 4px; font-weight: 700; }
.opop .sec { margin-top: 10px; font: 700 10.5px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #8c899c; }
.opop ul { margin: 4px 0 0; padding-left: 18px; }
.opop ul.needs li { color: #9a3412; }
.opop .ago { color: #8c899c; font-family: var(--font-mono); font-size: 11.5px; }
.opop .prs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.opop .pr { padding: 2px 8px; border-radius: 8px; background: #f3f0ff; color: #6d28d9; font: 700 11.5px/1.4 var(--font-mono); }
.opop .pr.merged { background: #ede9fe; } 
.opop .pr.closed { background: #f4f4f5; color: #52525b; }
.opop .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; color: #8c899c; font-size: 12px; }
.opop .open { border: 0; border-radius: 999px; padding: 6px 12px; background: #17131f; color: #fff; font: 700 12px/1 var(--font-body); cursor: pointer; }
/* REQ-36: the session link, last row of the pop-over (the pop-over stays light: fixed light inks). */
.opop .psession { display: flex; align-items: center; min-height: 44px; margin-top: 4px; border-top: 1px solid #ece9f3; }
.opop .session-link { display: inline-flex; align-items: center; min-height: 44px; color: #7C3AED; font-weight: 700; text-decoration: none; }
.opop .session-link:hover, .opop .session-link:focus-visible { text-decoration: underline; }
.opop .session-link:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; border-radius: 4px; }
.opop .nosession { color: #6B6880; }
.opop .x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #8c899c; font-size: 15px; cursor: pointer; }
.opop button:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }

.hud-top { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.hud-live { position: relative; background: #ef4444; color: #fff; font: 800 12px/1 var(--font-mono); letter-spacing: .16em; padding: 8px 12px 8px 24px; border-radius: 999px; }
.hud-live::before { content: ""; position: absolute; left: 11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #fecaca; }
.hud-live.off { background: #3f3a55; color: #c4c1d2; }
.hud-live.replay { background: #f59e0b; color: #1a1020; }
.hud-btn { border: 1px solid var(--office-line, rgba(255, 255, 255, 0.22)); background: var(--office-hud, rgba(20, 17, 30, 0.82)); color: var(--office-hud-ink, #fff); font: 700 12.5px/1 var(--font-body); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.hud-btn:hover { background: rgba(60, 50, 90, 0.9); }
.hud-seg { display: inline-flex; pointer-events: auto; border: 1px solid var(--office-line, rgba(255, 255, 255, 0.22)); border-radius: 999px; overflow: hidden; background: var(--office-hud, rgba(20, 17, 30, 0.82)); }
.hud-seg button { border: 0; background: transparent; color: #c4c1d2; font: 700 12.5px/1 var(--font-body); padding: 8px 12px; cursor: pointer; }
.hud-seg button.on { background: #a78bfa; color: #17131f; }
.hud-seg button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.hud-btn.on { background: #f59e0b; border-color: #f59e0b; color: #1a1020; }
.hud-btn:focus-visible, .hud-room button:focus-visible, .hud-replay :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Zoomed into a room */
.hud-room { position: absolute; top: 60px; left: 14px; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--office-hud, rgba(20, 17, 30, 0.9)); border: 2px solid var(--c); color: var(--office-hud-ink, #fff); z-index: 2; }
.hud-room[hidden] { display: none; }
.hud-room b { font: 800 14px/1 var(--font-display); white-space: nowrap; }
.hud-room button { white-space: nowrap; }
/* The whole building is tall: a taller stage on phones. */
@media (max-width: 600px) { .office-stage.building { height: clamp(480px, 140vw, 640px); } }
.hud-room button { border: 0; border-radius: 999px; min-height: 44px; padding: 0 16px; background: #fff; color: #17131f; font: 700 13px/1 var(--font-body); cursor: pointer; }
/* Replay bar */
.hud-replay { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(760px, calc(100% - 140px)); box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: rgba(20, 17, 30, 0.92); border: 1px solid rgba(245, 158, 11, 0.6); color: #fff; z-index: 2; font: 600 12.5px/1.2 var(--font-body); }
.hud-replay[hidden] { display: none; }
.hud-replay input[type=date], .hud-replay select { background: #2a2440; color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; padding: 5px 6px; font: inherit; color-scheme: dark; }
.hud-replay .rp, .hud-replay .rx { border: 0; border-radius: 999px; padding: 7px 11px; background: #f59e0b; color: #1a1020; font: 800 12px/1 var(--font-body); cursor: pointer; flex: none; }
.hud-replay .rx { background: rgba(255, 255, 255, 0.12); color: #fff; }
.rtrack { position: relative; flex: 1 1 auto; min-width: 80px; height: 26px; display: flex; align-items: center; }
.rtrack input { width: 100%; margin: 0; accent-color: #f59e0b; position: relative; z-index: 1; background: transparent; }
.rticks { position: absolute; left: 0; right: 0; top: 2px; height: 6px; pointer-events: none; }
.rticks i { position: absolute; top: 0; width: 2px; height: 6px; margin-left: -1px; background: #fcd34d; opacity: .8; }
.rtime { flex: none; font: 700 12px/1.2 var(--font-mono); color: #fde68a; font-variant-numeric: tabular-nums; min-width: 92px; }
/* REQ-60: Highlights only. The replay bar is always dark, so its ticks use
   the dark values of the status families (Pablo: deploy --qa, release
   --release, UAT pass --done, UAT fail --blocked; an icon on each). */
.hud-replay { --qa: #7DD3FC; --release: #E6C779; --done: #4ADE9B; --blocked: #F87171; }
.hud-replay .rhl, .hud-replay .rhn, .hud-replay .rpk { flex: none; min-height: 44px; min-width: 44px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; padding: 0 12px; background: rgba(255, 255, 255, 0.08); color: #fff; font: 700 12px/1 var(--font-body); cursor: pointer; }
.hud-replay .rhl[aria-pressed="true"] { background: #f59e0b; border-color: #f59e0b; color: #1a1020; }
.hud-replay .rhn[hidden], .hud-replay .rpk[hidden] { display: none; }
.hud-replay .rhn[aria-disabled="true"] { opacity: .45; cursor: default; }
/* Highlights only: the timeline gets a row of its own, so ticks have room. */
.hud-replay.hl { flex-wrap: wrap; width: min(900px, calc(100% - 140px)); }
.hud-replay.hl .rtrack { flex-basis: 100%; order: 5; height: 52px; align-items: flex-end; }
.hud-replay.hl .rticks { top: 0; height: 26px; pointer-events: auto; z-index: 2; }
.rhk { position: absolute; top: 0; display: inline-flex; align-items: center; gap: 3px; height: 24px; min-width: 24px; padding: 0 5px; box-sizing: border-box; border: 0; border-radius: 12px; background: var(--k); color: #1a1020; font: 800 11px/1 var(--font-body); white-space: nowrap; cursor: pointer; }
.rhk .ic { font-size: 12px; }
.rhk.on { box-shadow: 0 0 0 2px #fff; }
.rnone { position: absolute; left: 0; top: 4px; color: #fde68a; font: 600 12px/1.2 var(--font-body); }
.hl-cap { position: absolute; top: 0; left: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--office-hud); color: var(--office-hud-ink); border: 2px solid var(--k); font: 600 13px/1.3 var(--font-body); box-sizing: border-box; pointer-events: none; }
.hl-cap[hidden] { display: none; }
.hl-cap .hl-ic { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--k); color: var(--bg); font-size: 14px; }
.hl-cap .hl-tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) {
  .hud-replay { width: calc(100% - 20px); bottom: 62px; flex-wrap: wrap; }
  .hud-replay select { display: none; }
  .rtrack { flex-basis: 100%; order: 5; }
  .hud-replay.hl { width: calc(100% - 20px); }
  .hud-replay.hl .rtime { order: 6; flex-basis: 100%; min-width: 0; }
  .hl-cap .hl-tx { white-space: normal; }
  .hl-cap { border-radius: 16px; }
}
.hud-clock { background: var(--office-hud, rgba(255, 255, 255, 0.08)); color: var(--office-hud-ink, #e4e1ee); font: 700 13px/1 var(--font-mono); padding: 8px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.hud-counts { position: absolute; top: 14px; right: 14px; display: flex; border: 1px solid var(--office-line, rgba(255, 255, 255, 0.14)); border-radius: 14px; overflow: hidden; background: var(--office-hud, rgba(20, 17, 30, 0.72)); color: var(--office-hud-ink, #fff); pointer-events: none; }
.hud-count { padding: 8px 14px; text-align: center; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.hud-count:first-child { border-left: 0; }
.hud-count .n { font: 800 22px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.hud-count.work .n { color: var(--office-status-working, #22c55e); } 
.hud-count.moving .n { color: var(--office-status-waiting, #fb923c); } 
.hud-count.resting .n { color: var(--office-status-review, #a78bfa); }
.hud-count .l { font: 700 9.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--office-hud-ink, #c4c1d2); opacity: .8; margin-top: 5px; }
.hud-hint { position: absolute; left: 14px; bottom: 14px; color: var(--office-hud-ink, #a8a3b8); opacity: .75; font: 500 12.5px/1.3 var(--font-body); pointer-events: none; }
.hud-zoom { position: absolute; right: 12px; bottom: calc(12px + var(--fab-clearance, 0px)); display: flex; gap: 8px; }   
/* REQ-86.2: clear of the Help button */
.hud-zoom button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--office-line, rgba(255, 255, 255, 0.22)); background: var(--office-hud, rgba(20, 17, 30, 0.82)); color: var(--office-hud-ink, #fff); font: 700 18px/1 var(--font-body); cursor: pointer; }
.hud-zoom button:hover { background: rgba(60, 50, 90, 0.9); }
.hud-zoom button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) {
  .hud-hint { display: none; }
  .hud-count { padding: 6px 9px; } .hud-count .n { font-size: 17px; } .hud-count .l { font-size: 8px; }
  .obubble { max-width: 200px; font-size: 11.5px; }
}

.office-questions { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: clamp(320px, 56vw, 640px); overflow: auto; min-width: 0; }
.qhead { font: 700 11px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--needs); }
.qnone { margin: 0; color: var(--mute); font-size: 14px; }
.qitem { display: flex; gap: 10px; align-items: flex-start; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.qitem:focus-visible .qbubble { outline: 2px solid var(--accent); outline-offset: 2px; }
.qav { width: 40px; height: 40px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--c); background: #1f1a2e; }
.qcol { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qwho { font: 700 11.5px/1.2 var(--font-mono); color: var(--mute); }
.qbubble { position: relative; background: var(--sunken); border: 1.5px solid var(--c); border-radius: 4px 14px 14px 14px; padding: 8px 11px; font-size: 14px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.qbubble::before { content: ""; position: absolute; left: -7px; top: 8px; border: 6px solid transparent; border-right-color: var(--c); border-left: 0; }
.opop .phead { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.opop .phead .pav { width: 64px; height: 64px; flex: none; border-radius: 50%; box-shadow: 0 0 0 3px var(--c); }
.opop .phead .role { margin: 2px 0 0; }

/* View switch + Replay: a bar above the office, in the page's theme. */
.office-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: -14px; }
.office-bar .hud-seg { border-color: var(--line); background: var(--panel); }
.office-bar .hud-seg button { color: var(--mute); padding: 10px 16px; font-size: 14px; }
.office-bar .hud-seg button.on { background: var(--accent); color: var(--panel); }
.office-bar .hud-btn { border-color: var(--line); background: var(--panel); color: var(--ink); padding: 10px 16px; font-size: 14px; }
.office-bar .hud-btn:hover { background: var(--accent-soft); }
.office-bar .hud-btn.on { background: #f59e0b; border-color: #f59e0b; color: #1a1020; }
.office-bar :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* REQ-28: the floor switch (Building · Rooftop · L3 · L2 · L1 · B1), office layout only. Controls are 44 px. */
.office-bar .hud-seg button, .office-bar .hud-btn { min-height: 44px; }
.office-bar .floor-seg[hidden], .office-bar .bld-seg[hidden] { display: none; }
.office-bar .floor-seg button, .office-bar .bld-seg button { padding: 10px 14px; min-width: 44px; }   
/* REQ-28: "L1" and "B1" are narrower than 44 px in some fonts */
@media (max-width: 600px) { .office-bar .floor-seg button, .office-bar .bld-seg button { padding: 10px 11px; font-size: 13px; min-width: 44px; } }
@media (max-width: 600px) {
  .hud-top { gap: 6px; }
  .hud-counts { top: auto; bottom: 60px; right: 10px; }
}

/* Questions panel: a timeline, oldest question first */
.qtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.qseg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--sunken); }
.qseg button { border: 0; background: transparent; color: var(--mute); padding: 5px 9px; border-radius: 8px; font: 700 12px/1 var(--font-body); cursor: pointer; }
.qseg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.qseg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qsum { margin: -4px 0 0; font: 600 12px/1.4 var(--font-mono); color: var(--faint); }
.qline { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 12px; }
.qline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 1px; }
.qday { position: relative; padding-left: 20px; font: 700 10.5px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.qday::before { content: ""; position: absolute; left: 1px; top: 2px; width: 10px; height: 10px; border-radius: 3px; background: var(--faint); }
.qday:not(:first-child) { margin-top: 4px; }
.qrow { position: relative; padding-left: 20px; }
.qrow::before { content: ""; position: absolute; left: 0; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 3px solid var(--c); box-sizing: border-box; }
.qrow.answered::before { background: var(--c); opacity: .55; }
.qrow .qav { width: 32px; height: 32px; }
.qmeta { font: 600 11.5px/1.3 var(--font-mono); color: var(--faint); }
.qmeta time { color: var(--mute); font-weight: 700; }
.qmeta.long { color: var(--needs); }
.qrow.answered .qbubble { background: transparent; border-style: dashed; color: var(--mute); }
.qrow.answered .qbubble::before { display: none; }
.qrow.answered .qav { opacity: .6; }
.qrow.answered .qmeta { color: var(--done); }
/* REQ-133.3: a design document on the design wall: its title and 'Open design' or 'Private design'. */
.dw-preview.doc { flex-direction: column; gap: 6px; padding: 12px; text-align: center; }
.dw-doc-t { font-weight: 700; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.dw-doc-w { font: 600 13px/1.3 var(--font-mono); color: var(--accent); }
.dw-doc-w.private { color: var(--mute); }
.dw-doc-w i { font-style: normal; }
@media (max-width: 600px) { .dw-open .dw-preview.doc { width: 112px; padding: 6px; gap: 2px; } .dw-preview.doc .dw-doc-t { font-size: 12px; -webkit-line-clamp: 2; } .dw-preview.doc .dw-doc-w { font-size: 11px; } }
.office-bar .my-office-btn { border-color: color-mix(in srgb, #f59e0b 55%, var(--line)); }

/* REQ-28 LED walls: six columns (shape, number, label). Waiting has its
   own column in the "needs" colour and is never counted under blocked. */
.led { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 0; }
button.led { cursor: pointer; }
.led-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 700 10.5px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.led-live { color: var(--done); }
.led-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.led-c { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.led-c i { font-style: normal; font-size: 11px; line-height: 1; }
.led-c b { font: 800 24px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.led-c span { font: 700 9px/1.15 var(--font-mono); letter-spacing: .08em; text-align: center; }
.led .sh, .led.short .lg { display: none; }
.led.short .sh { display: inline; }
.c-working i { color: var(--working); } 
.c-idle i { color: var(--idle); } 
.c-blocked i { color: var(--blocked); }
.c-waiting i, .c-waiting b { color: var(--needs); } 
.c-meeting i { color: var(--meeting); }
.led-w { margin-top: 8px; font: 800 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--needs); }
.led-w[hidden] { display: none; }
.led-tot { margin-top: 4px; font: 700 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
/* The building wall, in the bar above the office (page theme). */
.office-bar .led-strip { flex: 1 1 100%; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.led-strip[hidden], .led-cards[hidden], .led-layer[hidden], .led-this-wrap[hidden] { display: none; }
.led-below { display: grid; gap: 8px; min-width: 0; }
.led-below[hidden] { display: none; }
.led-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }

.led-cards .led, .led-below .led-this-wrap .led { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); }
.led-below .led-this-wrap .led { --working: inherit; --idle: inherit; --blocked: inherit; --needs: inherit; --meeting: inherit; --done: inherit; --mute: inherit; }
.led-cards .led-c b { font-size: 19px; }
.led-below button.led:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.office-bar .led-strip .led-cols { max-width: 760px; }
/* Beside each floor (building view) and "this floor" (floor view): on the dark stage. */
.led-layer { position: absolute; top: 0; right: 14px; width: 270px; pointer-events: none; z-index: 1; }
.led-layer .led, .led-this-wrap .led { --working: var(--office-status-working); --idle: var(--office-status-idle); --blocked: var(--office-status-blocked); --needs: var(--office-status-waiting); --meeting: var(--office-status-meeting); --done: var(--office-status-done); --mute: var(--office-hud-ink);
  color: var(--office-hud-ink); background: var(--office-hud); border: 1px solid var(--office-line); border-radius: 12px; padding: 8px 10px; }
.led-layer .led { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform; min-height: 44px; }
.led-layer .led:hover { border-color: #a78bfa; }
.led-layer .led:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.led-layer .led-c b { font-size: 17px; }
/* REQ-38: the release celebration banner (top centre, clear of Back) and its Skip. */
.cel-banner { position: absolute; left: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 16px); box-sizing: border-box; padding: 0 0 0 14px; border-radius: 999px; background: var(--office-hud); color: var(--office-hud-ink); border: 1px solid var(--office-line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); font: 800 14px/1.2 var(--font-body); }
.cel-banner[hidden] { display: none; }
.cel-banner b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--office-status-done); }
.cel-skip { min-width: 64px; min-height: 44px; border: 0; border-left: 1px solid var(--office-line); border-radius: 0 999px 999px 0; background: transparent; color: inherit; font: 700 13px/1 var(--font-body); cursor: pointer; }
.cel-skip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* REQ-99: the King's subtitles: a solid panel at the foot of the stage (Pablo, at least 4.5:1), the point text the only live part. */
.present { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; width: min(720px, calc(100% - 16px)); box-sizing: border-box; padding: 12px 14px; border-radius: 16px; background: var(--panel); color: var(--ink); border: 1px solid var(--office-line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.present[hidden] { display: none; }
.present:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.present-head { display: flex; align-items: center; gap: 6px; font: 700 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.present-crown { font-size: 14px; }
.present-line { margin: 4px 0 8px; font: 700 17px/1.35 var(--font-body); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.present.outro .present-line { font-size: 22px; }
.present-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.present-btn { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--office-line); background: transparent; color: inherit; font: 700 13px/1 var(--font-body); cursor: pointer; }
.present-btn:disabled { opacity: .5; cursor: default; }
.present-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.present-skip { margin-left: auto; border-color: var(--accent); }
@media (max-width: 600px) { .present { bottom: 8px; padding: 10px; } .present-line { font-size: 15px; } .present-btn { padding: 0 10px; } }
.moving-row.cel-row { cursor: default; }
.moving-row.cel-row i { color: var(--office-status-done, var(--done)); }
.cel-sound { min-width: 44px; min-height: 44px; }
/* REQ-34: each floor's stats on the front of its slab (building view), a mini LED wall. */
.slab-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }   
/* under the HUD (counters, zoom buttons) */
.slab-layer[hidden] { display: none; }
.slab-strip { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform; display: block; min-height: 44px; padding: 7px 0; margin: 0; border: 0; background: none; color: var(--office-hud-ink); font: 700 12px/1 var(--font-mono); cursor: pointer;
  --working: var(--office-status-working); --idle: var(--office-status-idle); --blocked: var(--office-status-blocked); --needs: var(--office-status-waiting); --meeting: var(--office-status-meeting); }
.ss-box { display: flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 30px; box-sizing: border-box; padding: 4px 9px; border: 1px solid var(--office-line); border-radius: 8px; background: var(--office-hud); }
.slab-strip:hover .ss-box { border-color: #a78bfa; }
.slab-strip:focus-visible { outline: none; }
.slab-strip:focus-visible .ss-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.ss-f { font-weight: 800; color: var(--office-status-review); padding-right: 2px; }
.ss-c { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-items: center; column-gap: 3px; row-gap: 2px; }
.ss-c i { font-style: normal; font-size: 12px; }
.ss-c b { font: 800 14px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.ss-l { grid-column: 1 / -1; font-size: 12px; letter-spacing: .02em; opacity: .85; }
.slab-strip.compact .ss-l { display: none; }
.side-col { position: absolute; top: 84px; right: 14px; width: 400px; max-width: calc(100% - 28px); z-index: 1; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.side-col[hidden] { display: none; }
.side-col.narrow { position: static; width: auto; max-width: none; }
.led-this-wrap { pointer-events: none; }
.led-this-wrap .led.short { width: auto; }
/* Wide screens: the building wall is one compact row. */
@media (min-width: 861px) {
  .office-bar .led-strip { padding: 10px 14px; }
  .office-bar .led-strip > .led { display: grid; grid-template-columns: 150px minmax(0, 520px) minmax(0, 1fr); align-items: center; column-gap: 18px; }
  .office-bar .led-strip > .led .led-h { flex-direction: column; align-items: flex-start; gap: 4px; }
  .office-bar .led-strip > .led .led-cols { margin-top: 0; }
  .office-bar .led-strip > .led .led-notes > div:first-child { margin-top: 0; }
  .office-bar .led-strip > .led .led-c b { font-size: 21px; }
}

/* Moving now (REQ-28): agents on the way to another floor. */
.moving { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.moving-h { font: 800 10.5px/1.2 var(--font-mono); letter-spacing: .14em; }
.moving-note { font: 500 12px/1.3 var(--font-body); color: var(--mute); }
.moving-list { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.moving-list:empty { display: none; }
.moving-row { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunken); color: var(--ink); font: 500 12.5px/1.25 var(--font-body); cursor: pointer; text-align: left; max-width: 100%; }
.moving-row i { font-style: normal; color: var(--st, var(--idle)); }
.moving-row b { font-weight: 800; }
.moving-row span { color: var(--mute); }
.moving-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Minimap (REQ-28): R at the top; slide column left, lift column right. */
.mm { --working: var(--office-status-working); --idle: var(--office-status-idle); --blocked: var(--office-status-blocked); --needs: var(--office-status-waiting); --meeting: var(--office-status-meeting); --review: var(--office-status-review); --done: var(--office-status-done);
  pointer-events: auto; color: var(--office-hud-ink); background: var(--office-hud); border: 1px solid var(--office-line); border-radius: 12px; padding: 8px 10px; font: 600 11px/1.2 var(--font-body); }
.mm-h { display: flex; justify-content: space-between; gap: 8px; }
.mm-h b { font: 800 10px/1.2 var(--font-mono); letter-spacing: .14em; }
.mm-h span { opacity: .75; }
.mm-title { text-align: center; margin: 4px 0 2px; font: 800 11px/1 var(--font-mono); letter-spacing: .08em; }
.mm-title span { color: #a78bfa; }
.mm-grid { position: relative; }
.mm-row { display: grid; grid-template-columns: 44px 26px minmax(0, 1fr) 26px; align-items: center; height: 44px; border-radius: 8px; }
.mm-row.on { box-shadow: inset 0 0 0 1.5px #a78bfa; background: rgba(167, 139, 250, 0.08); }
.mm-floor { width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font: 800 11px/1 var(--font-mono); cursor: pointer; border-radius: 8px; }
.mm-col { height: 100%; }
.mm-col.slide { background: linear-gradient(90deg, transparent 45%, rgba(34, 211, 238, 0.35) 45%, rgba(34, 211, 238, 0.35) 55%, transparent 55%); }
/* REQ-31: the factory's goods lift column (packages per floor); hidden in the office. */
.mm-col.goods { display: none; }
.mm.factory .mm-row { grid-template-columns: 44px 18px minmax(0, 1fr) 26px 18px; }   
/* slimmer lift and slide: six 44 px dots still fit, +N as in the office */
.mm.factory .mm-col.goods { display: flex; align-items: center; justify-content: center; background: linear-gradient(90deg, transparent 42%, rgba(249, 115, 22, 0.3) 42%, rgba(249, 115, 22, 0.3) 58%, transparent 58%); font: 800 10px/1 var(--font-mono); }
.mm-goods-l[hidden] { display: none; }
.led-belt { margin-top: 6px; font: 700 11px/1.3 var(--font-mono); letter-spacing: .06em; color: var(--mute); }
.led-belt[hidden] { display: none; }
.mm-col.lift { background: linear-gradient(90deg, transparent 40%, rgba(253, 230, 138, 0.3) 40%, rgba(253, 230, 138, 0.3) 60%, transparent 60%); }
.mm-dots { display: flex; align-items: center; gap: 0; min-width: 0; padding-left: 4px; }
.mm-dots > * { flex: none; }   
/* 44 px dots never shrink; what doesn't fit goes to +N */
.mm-dot { width: 44px; height: 44px; border: 0; padding: 0; background: transparent; color: var(--st, var(--idle)); font: 400 15px/44px system-ui, sans-serif; cursor: pointer; text-align: center; }
span.mm-dot { cursor: default; }
.mm-dot.st-working { --st: var(--working); } 
.mm-dot.st-idle { --st: var(--idle); } 
.mm-dot.st-done { --st: var(--done); } 
.mm-dot.st-blocked { --st: var(--blocked); }
.mm-dot.st-needs-you { --st: var(--needs); } 
.mm-dot.st-meeting { --st: var(--meeting); } 
.mm-dot.st-review { --st: var(--review); }
.mm-more { min-width: 44px; height: 44px; border: 1px solid var(--office-line); border-radius: 10px; background: transparent; color: inherit; font: 800 12px/1 var(--font-mono); cursor: pointer; margin-left: 4px; }
.mm-floor:focus-visible, .mm-dot:focus-visible, .mm-more:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.mm-trails { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mm-trails line { stroke-width: 2; stroke-dasharray: 2 4; stroke-linecap: round; }
.mm-trails line.lift { stroke: #d97706; } 
.mm-trails line.slide { stroke: #0891b2; }
.mm-transit { position: absolute; inset: 0; pointer-events: none; }
.mm-transit .mm-dot { position: absolute; left: 0; top: 0; width: 44px; height: 44px; line-height: 44px; pointer-events: auto; border-radius: 50%; background: transparent; will-change: transform; animation: mm-pulse 1.4s ease-in-out infinite; }
@keyframes mm-pulse { 50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18); } }
.mm.reduce .mm-transit .mm-dot { animation: none; }
@media (prefers-reduced-motion: reduce) { .mm-transit .mm-dot { animation: none; } }
.mm-f { display: flex; justify-content: space-between; margin-top: 4px; opacity: .75; font: 600 10.5px/1.2 var(--font-body); }
.mm-tip { position: absolute; right: calc(100% + 8px); width: 210px; padding: 10px 12px; border-radius: 12px; background: #fff; color: #17131f; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); font: 500 12px/1.4 var(--font-body); pointer-events: none; }
.mm-tip[hidden] { display: none; }
.mm-tip b { font: 800 14px/1.2 var(--font-display); }
.mm-tip .k { margin-top: 4px; font-weight: 800; }
/* Phones: under the 3D view, full width, page theme. */
.side-col.narrow .mm { background: var(--panel); color: var(--ink); border-color: var(--line); --working: inherit; --idle: inherit; --blocked: inherit; --needs: inherit; --meeting: inherit; --review: inherit; --done: inherit; }
.side-col.narrow .mm-floor { color: var(--ink); }
.side-col.narrow .mm-h span, .side-col.narrow .mm-f { color: var(--mute); }
.side-col.narrow .mm-more { color: var(--ink); border-color: var(--line); background: var(--sunken); }
.side-col.narrow .mm-transit .mm-dot { background: var(--panel); }
.side-col.narrow .mm { padding: 8px 6px; }
.side-col.narrow .mm-row { grid-template-columns: 44px 18px minmax(0, 1fr) 18px; }
.side-col.narrow .mm.factory .mm-row { grid-template-columns: 44px 14px minmax(0, 1fr) 22px 14px; }   
/* phones: 4 dots and +N (228 px) fit at 390 px */   
/* REQ-31: the goods column on phones too */
/* Rooms on this floor (REQ-28.1.2) */
.room-list { pointer-events: auto; background: var(--office-hud); color: var(--office-hud-ink); border: 1px solid var(--office-line); border-radius: 12px; padding: 8px 10px; }
.room-list[hidden] { display: none; }
.room-list > b { font: 800 10px/1.2 var(--font-mono); letter-spacing: .14em; }
.room-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.room-btn { min-height: 44px; padding: 0 12px; border: 1px solid var(--office-line); border-radius: 10px; background: transparent; color: inherit; font: 700 12.5px/1 var(--font-body); cursor: pointer; }
.room-btn:hover { border-color: var(--office-trim); }
.room-btn:focus-visible { outline: 2px solid var(--office-trim); outline-offset: 2px; }
.side-col.narrow .room-list { background: var(--panel); color: var(--ink); border-color: var(--line); }

/* Room view: the room's whiteboard as a panel (REQ-28, Whiteboard detail). Boards look the same in light and dark. */
.wb-panel { pointer-events: auto; background: #fbfbfd; color: #17131f; border: 1px solid rgba(23, 21, 31, 0.14); border-radius: 12px; padding: 12px; max-height: 470px; overflow: auto;
  --working: var(--office-board-status-working); --idle: var(--office-board-status-idle); --done: var(--office-board-status-done); --blocked: var(--office-board-status-blocked); --needs: var(--office-board-status-waiting); --meeting: var(--office-board-status-meeting); --review: var(--office-board-status-review); }
.wb-panel[hidden], .mm[hidden], .led-this-wrap[hidden] { display: none; }
.wb-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wb-h b { font: 800 18px/1.2 var(--font-display); }
.wb-h .led-live { color: #0A7550; font: 800 10.5px/1 var(--font-mono); letter-spacing: .14em; }
.wb-sec { margin-top: 10px; font: 800 10px/1.2 var(--font-mono); letter-spacing: .12em; color: #6b6880; }
.wb-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 4px 6px; border: 0; border-radius: 8px; background: transparent; color: inherit; text-align: left; cursor: pointer; font: 500 12.5px/1.3 var(--font-body); }
.wb-row:hover { background: #f3f0ff; }
.wb-row:focus-visible { outline: 2px solid #7c3aed; outline-offset: -2px; }
.wb-row i { font-style: normal; color: var(--st, var(--idle)); width: 14px; text-align: center; }
.wb-row b { font-weight: 800; }
.wb-row span { color: #55526a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* REQ-84.2: a human in the Human Pod: initials in a striped-uniform circle, never a status shape. */
.wb-row .wb-hav { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--office-pod-stripe-2, #27272a); color: var(--office-pod-stripe-1, #f5f5f4); font: 800 11px/1 var(--font-mono); }
.wb-more, .wb-empty { margin-top: 6px; color: #6b6880; font: 600 12px/1.3 var(--font-body); }
.wb-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wb-items span { padding: 3px 9px; border-radius: 8px; background: #f3f0ff; color: #6d28d9; font: 700 11.5px/1.4 var(--font-mono); }
.wb-items .more { background: none; color: #6b6880; }
/* REQ-31: a station's packages, each a button to its requirement. */
.wb-pkgs .wb-pkg { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 44px; padding: 5px 10px; border: 1px solid #e9d5ff; border-radius: 10px; background: #fefce8; color: #17131f; cursor: pointer; font: inherit; text-align: left; }
.wb-pkgs .wb-pkg b { font: 800 12px/1.2 var(--font-mono); }
.wb-pkgs .wb-pkg span { padding: 0; background: none; color: #3f3a55; font: 600 11.5px/1.2 var(--font-body); }
.wb-pkgs .wb-pkg.stuck { background: #fee2e2; border-color: #fca5a5; }
.wb-pkgs .wb-pkg.stuck span { color: #991b1b; }
.wb-pkgs .wb-pkg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* REQ-33: on a wide screen outside full screen the office takes the full
   browser width (a 20 px gutter) and its panels open as overlays from the
   chips in the bar above it. (REQ-47: every page is full width now, so this
   breakout works out to the page's own width.) */
.office-bar.ov, .office.ov { width: calc(100vw - var(--sbw, 0px) - 40px); margin-inline: calc(50% - (100vw - var(--sbw, 0px)) / 2 + 20px); box-sizing: border-box; }
.office.ov { grid-template-columns: minmax(0, 1fr); }
.office.ov .office-stage { height: clamp(480px, calc(100vh - 220px), 980px); }
.office.ov .led-below { display: none; }
/* REQ-160: a world with a layout hides Court's floors, so their counts show as cards under the view, a row of them on a wide stage. */
.office.ov.floors-away .led-below:not([hidden]) { display: grid; }
@media (min-width: 640px) { .office.floors-away .led-cards { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.ov-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.ov-chips[hidden], .ov-chip[hidden], .ov-col[hidden], .ov-pill[hidden], .ov-wait[hidden] { display: none; }
.ov-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font: 700 13.5px/1 var(--font-body); cursor: pointer; }
.ov-chip i { font-style: normal; color: var(--mute); }
.ov-chip:hover { background: var(--accent-soft); }
.ov-chip.on { background: var(--accent); border-color: var(--accent); color: var(--panel); }
.ov-chip.on i { color: inherit; }
.ov-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The overlay column: right side, under the counts and the pill, above the zoom buttons. */
.ov-col { position: absolute; top: 118px; right: 14px; bottom: 70px; width: 400px; max-width: calc(100% - 28px); z-index: 3; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overscroll-behavior: contain; pointer-events: none; }
.ov-col > * { pointer-events: auto; flex: none; }
.ov-col > .led, .ov-col > .moving, .ov-col > .office-questions { box-sizing: border-box; background: var(--office-hud); color: var(--office-hud-ink); border: 1px solid var(--office-line); border-radius: 12px; padding: 10px 12px; margin: 0;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ov-col > .led { --working: var(--office-status-working); --idle: var(--office-status-idle); --blocked: var(--office-status-blocked); --needs: var(--office-status-waiting); --meeting: var(--office-status-meeting); --done: var(--office-status-done); --mute: var(--office-hud-ink); }
.ov-col > .led .led-c b { font-size: 19px; }
.ov-col > .moving .moving-note { color: inherit; opacity: .8; }
.ov-col > .office-questions { max-height: none; overflow: visible; border-radius: 12px; }
.ov-col > .office-questions[hidden], .ov-col > .led[hidden], .ov-col > .moving[hidden] { display: none; }
.ov-col .side-col { position: static; width: auto; max-width: none; pointer-events: none; }
.ov-col .side-col > * { pointer-events: auto; }
/* Always visible: N on floors + N in transit = total, and who waits on you. */
.ov-pill { position: absolute; top: 74px; right: 14px; z-index: 3; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 28px); flex-wrap: wrap; justify-content: flex-end; }
.ov-tot { padding: 8px 12px; border-radius: 999px; background: var(--office-hud); color: var(--office-hud-ink); border: 1px solid var(--office-line); font: 700 12px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.ov-wait { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--needs) 45%, transparent); background: var(--needs-soft, var(--panel)); color: var(--needs); font: 800 13px/1 var(--font-body); cursor: pointer; }
.ov-wait:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.led-layer.beside-ov { right: 428px; }
/* The shortcut: diamond, label, count badge (needs ink on needs-soft). */
.office-bar .wait-btn { display: inline-flex; align-items: center; gap: 8px; }
.office-bar .wait-btn i { font-style: normal; color: var(--needs); }
.wait-n { min-width: 24px; padding: 4px 7px; border-radius: 999px; background: var(--needs-soft); color: var(--needs); font: 800 12.5px/1 var(--font-mono); text-align: center; }

/* REQ-76: Locate an agent. The floor dims around it, a ring stays on it, and a
   pill at the top says who is followed, with Stop following (44 px). */
.ospot { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), transparent calc(var(--sr, 40px) - 1px), var(--office-spot-dim) var(--sr, 40px)); }
.ospot[hidden] { display: none; }
.ospot-ring { position: absolute; left: calc(var(--sx, 50%) - var(--sr, 40px)); top: calc(var(--sy, 50%) - var(--sr, 40px)); width: calc(var(--sr, 40px) * 2); height: calc(var(--sr, 40px) * 2); box-sizing: border-box; border-radius: 50%; border: 3px solid var(--office-hud-ink); box-shadow: 0 0 0 2px var(--office-hud); animation: loc-pulse 2s ease-in-out infinite; }
@keyframes loc-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.ospot.reduce .ospot-ring { animation: none; }
@media (prefers-reduced-motion: reduce) { .ospot-ring { animation: none; } }
.loc-pill { position: absolute; left: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 16px); box-sizing: border-box; padding: 0 0 0 14px; border-radius: 999px; background: var(--office-hud); color: var(--office-hud-ink); border: 1px solid var(--office-line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); font: 700 13.5px/1.2 var(--font-body); }
.loc-pill[hidden] { display: none; }
.loc-pill b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; padding: 12px 0; }
.loc-pill:has(.loc-stop[hidden]) b { padding-right: 14px; }
.loc-stop { flex: none; min-height: 44px; min-width: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--office-hud-ink); color: var(--office-hud); font: 700 13px/1 var(--font-body); cursor: pointer; }
.loc-stop[hidden] { display: none; }
.loc-stop:focus-visible { outline: 2px solid var(--accent, #7c3aed); outline-offset: 2px; }
/* The Locate button on a card: icon and word, also on phones (Quinn: never a bare icon). */
.loc-wrap { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.loc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line, #d6d3e0); border-radius: 10px; background: transparent; color: inherit; font: 700 13px/1 var(--font-body); cursor: pointer; }
.loc-btn .loc-ic { font-size: 18px; line-height: 1; }
.loc-btn.compact { padding: 0 10px; }
.loc-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.loc-btn:focus-visible { outline: 2px solid var(--accent, #7c3aed); outline-offset: 2px; }
.loc-why { display: none; font: 600 12px/1.3 var(--font-body); color: var(--mute, #6b6880); }
.loc-wrap.show .loc-why, .loc-btn[aria-disabled="true"]:focus + .loc-why { display: block; }

/* REQ-79: the office's Admin menu, the Simulate celebration dialog, and the
   SIMULATION chip on the banner (dashed, so it never reads as a real release). */
.hud-admin { position: relative; display: inline-flex; }
.hud-admin[hidden] { display: none; }
.admin-btn { min-height: 44px; }
.admin-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; padding: 6px; border-radius: 12px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); }
.admin-menu[hidden] { display: none; }
.admin-item { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: inherit; font: 600 14px/1.2 var(--font-body); text-align: left; cursor: pointer; }
.admin-item:hover, .admin-item:focus-visible { background: var(--sunken); outline: none; }
.admin-item:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.sim-dlg { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 60; width: min(420px, calc(100vw - 32px)); box-sizing: border-box; padding: 18px 18px 14px; border-radius: 16px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); }
.sim-dlg[hidden] { display: none; }
.sim-dlg h2 { margin: 0 0 6px; font-size: 18px; }
.sim-dlg h2:focus { outline: none; }
.sim-note { margin: 0 0 12px; color: var(--mute); font-size: 14px; }
.sim-who { border: 0; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sim-who legend { font-weight: 700; margin-bottom: 6px; }
.sim-opt { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 44px; cursor: pointer; }
.sim-opt input { width: 20px; height: 20px; margin: 0; }
.sim-team { min-height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; padding: 0 8px; max-width: 100%; }
.sim-busy { margin: 0 0 10px; color: var(--needs); font-weight: 700; }
.sim-busy[hidden] { display: none; }
.sim-btns { display: flex; gap: 8px; justify-content: flex-end; }
.sim-btns .btn { min-height: 44px; min-width: 88px; }
.cel-sim { flex: none; padding: 2px 8px; border-radius: 999px; border: 1.5px dashed currentColor; background: var(--office-hud); color: var(--office-hud-ink); font: 800 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.cel-sim[hidden] { display: none; }
.deco-btn { min-height: 44px; }
/* REQ-18.2: a package played in the factory: the day picker and Highlights
   don't apply; the caption wraps instead of cutting the step short. */
.hud-replay.pkg input[type=date], .hud-replay.pkg .rhl, .hud-replay.pkg .rhn { display: none; }
.hl-cap.k-pkg .hl-tx { white-space: normal; overflow: visible; }

/* REQ-81: the weather is drawn by office.js as the 3D scene's background
   (always behind the building), from the --office-sky-* / --office-cloud /
   --office-rain / --office-snow variables above. With reduced motion nothing
   falls or moves and there is no flash; the sky still changes. */
/* The label: a HUD pill bottom-left of the building view (Pablo). Its
   colours never follow the sky. */
.owx-label { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 140px); padding: 7px 12px; border-radius: 999px; background: var(--office-hud); color: var(--office-hud-ink); border: 1px solid var(--office-line); font: 600 12.5px/1.2 var(--font-body); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owx-label[hidden] { display: none; }
.owx-label .owx-ico { flex: none; font-size: 14px; line-height: 1; }
.office-stage.has-weather .hud-hint { bottom: 52px; }
/* Phones: the zoom buttons and counts fill the bottom, so the label sits
   top-left, under the LIVE / clock row. */
@media (max-width: 600px) {
  .owx-label { top: 58px; bottom: auto; max-width: calc(100% - 28px); }
  .office-stage.has-weather .hud-hint { bottom: 14px; }
}

/* REQ-87.3: the Architect room's design wall. A card per requirement: the
   latest design's preview, id and title, status and UX verdict (shape + words). */
.dw-panel { width: min(880px, 100vw); }
.rq-phead.dw-head { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 12px; padding-right: 20px; }
.rq-phead.dw-head h2 { margin: 4px 0 0; font: 800 26px/1.1 var(--font-display); }
.dw-x { min-width: 44px; min-height: 44px; }
.dw-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 12px; }
.dw-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.dw-f { min-height: 44px; }
.dw-f.on { background: var(--accent); color: var(--panel); border-color: var(--accent); }
.dw-prod { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.dw-prod select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); padding: 0 10px; }
.dw-count { color: var(--mute); font-size: 13px; margin: 0 0 10px; }
.dw-none { padding: 24px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--mute); }
.dw-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dw-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dw-open { display: flex; flex-direction: column; gap: 8px; text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; min-height: 44px; }
.dw-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.dw-preview { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--sunken, var(--bg)); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.dw-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.dw-preview.large { aspect-ratio: auto; max-height: 60vh; margin: 10px 0; }
.dw-preview.large img { object-fit: contain; max-height: 60vh; }
.dw-ph { color: var(--mute); font: 600 13px/1.3 var(--font-mono); }
.dw-t { font-size: 14.5px; overflow-wrap: anywhere; }
.dw-t b { font-family: var(--font-mono); margin-right: 4px; }
.dw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.dw-status { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 0 9px; font: 600 12px/1.8 var(--font-mono); border: 1px solid var(--line); color: var(--ink); }
.dw-made { color: var(--mute); font-size: 12.5px; }
.dw-notebtn { min-height: 44px; }
.dw-note, .dw-hnote { margin: 0; font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }
.dw-back { min-height: 44px; margin-bottom: 8px; }
.dw-onetitle { font-size: 16px; font-weight: 650; margin: 0 0 8px; }
.dw-links { display: flex; flex-wrap: wrap; gap: 8px; }
.dw-links .btn { min-height: 44px; display: inline-flex; align-items: center; }
.dw-hist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.dw-h a { margin-left: 6px; overflow-wrap: anywhere; }
@media (max-width: 600px) { .dw-list { grid-template-columns: 1fr; } .dw-card { flex-direction: row; flex-wrap: wrap; } .dw-open { flex-direction: row; align-items: center; } .dw-open .dw-preview { width: 96px; flex: none; } }
/* REQ-106.3.5: 'Scrum' over a pod room's door while its daily scrum runs: the pod's colour and the word. */
.scrum-tag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--c, #8c899c); background: var(--office-hud, #17131f); color: var(--office-hud-ink, #fff); font: 800 12px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); will-change: transform; }
.scrum-tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #8c899c); animation: scrum-pulse 2.4s ease-in-out infinite; }
.scrum-tag.still .scrum-tag-dot { animation: none; }
@keyframes scrum-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .scrum-tag-dot { animation: none; } }
.phead .si { display: flex; margin-top: 2px; }
/* REQ-145.1: a question in the timeline is the link into its agent's chat. */
a.qitem { text-decoration: none; min-height: 44px; }
/* REQ-171.3: the Questions panel opens the cycle view. */
.qtop .qcycle { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
