/* Company · Office (#/company) — see company-office.js.
   The winter village (Claude Design's hand-off, design/winter-village/,
   drawn by company-village.js): a night-blue mountain, every room its own
   building, amber only for what waits on you, red for what failed, green for
   all clear. Inter for text, the system monospace for times, numbers and the
   agent's log (the CSP serves no other font).

   Layout follows the Office's own width (container queries), so the collapsed
   sidebar and a phone both get the arrangement that fits:
   - the side panel (Your to-do + the inspector) sits beside the floor only
     from 1400px of Office; under that it goes below, so the floor gets the
     whole width on a laptop, and from 860px it splits in two there (the
     list on the left, the details on the right), with a small card on the
     floor for whoever is picked; under 600px (a phone) it comes first
     instead, above the floor, and the village opens closer in, in a taller
     frame that pans, with a button per building under it;
   - Today and the Live feed sit side by side from 760px of their row;
   - the name tags (12px) sit over each building: pinned on only for whoever
     needs you or failed, the rest on hover, focus or pick (and all of them
     once zoomed in). */

/* The palette is the Company's night tokens and the admin's status colours
   (styles.css), so every Company tab and the rest of the admin say Done,
   Failed and "waits on you" in the same green, red and amber. Nothing here
   keeps a colour of its own but the drawing's. */
.of, .of-solo {
  --of-bg: var(--night-bg);
  --of-bar: var(--night-bar);
  --of-side: var(--night-side);
  --of-line: var(--night-line);
  --of-line-2: var(--night-line-2);
  --of-line-3: var(--night-line-3);
  --of-card: var(--night-card);
  --of-raise: var(--night-raise);
  --of-ink: var(--night-ink);
  --of-soft: var(--night-soft);
  --of-dim: var(--night-dim);
  --of-mute: var(--night-mute);
  --of-ice: var(--night-ice);
  --of-ice-hi: var(--night-ice-hi);
  --of-amber: var(--wait);
  --of-amber-hi: var(--night-amber-hi);
  --of-amber-ink: #1a1204;
  --of-violet: var(--night-violet);
  --of-violet-hi: var(--night-violet-hi);
  --of-ok: var(--up);
  --of-red: var(--crit);
  --of-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
/* the Write-to-the-CEO box on another tab (AdminCompanyOffice.ceoReplyBox) */
.of-solo { color: var(--of-ink); font-family: var(--font-sans); font-size: 14px; }
.of-solo *, .of-solo *::before, .of-solo *::after { box-sizing: border-box; }
/* edge to edge under the Company tabs (company.js edgeToEdge): square, no frame at its sides */
.co-office.is-edge .of { border-radius: 0; border-left-width: 0; border-right-width: 0; border-top-width: 0; }
.of {
  container: of / inline-size;
  position: relative;
  border: 1px solid var(--of-line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--of-bg);
  color: var(--of-ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.of *, .of *::before, .of *::after { box-sizing: border-box; }
.of-ic { flex: none; display: block; }
.of-mono, .of-clock, .of-feed-time, .of-log, .of-i-id, .of-tl-m.is-run, .of-tl-live { font-family: var(--of-mono); }
.of .is-amber { --tone: var(--of-amber); }
.of .is-ice, .of .is-cyan { --tone: var(--of-ice); }
.of .is-violet { --tone: var(--of-violet-hi); }
.of .is-ok { --tone: var(--of-ok); }
.of .is-red { --tone: var(--of-red); }
.of .is-muted, .of .is-soft { --tone: var(--of-dim); }
.of-empty { margin: 0; font-size: var(--fs-base); color: var(--of-ink); }
.of-empty-sub { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--of-mute); max-width: 52ch; }
.of-foot { margin: 0; padding: 10px 20px 14px; font-size: var(--fs-xs); color: var(--of-mute); border-top: 1px solid var(--of-line); background: var(--of-bar); }
.of-kick { margin: 0; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--of-mute); }
.of-pip { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--of-mute); }
.of-pip.is-on { background: var(--of-ice); box-shadow: 0 0 8px var(--of-ice); }
.of-pip.is-ok { background: var(--of-ok); box-shadow: 0 0 8px var(--of-ok); }
.of-sq { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--tone, var(--of-mute)); }
.of-sq.is-person { background: #d5deea; }
.of-count-pill {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--of-amber); color: var(--of-amber-ink); font-size: var(--fs-xs); font-weight: 700; line-height: 1;
}
.of-count-pill.is-zero { background: var(--of-line-2); color: var(--of-soft); }

/* ---- header: one row, the status line (or the run chip and Pause), then Motion ---- */
.of-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 10px 20px; background: var(--of-bar); border-bottom: 1px solid var(--of-line);
}
.of-head > :first-child { min-width: 0; }
.of-head > .of-motion { margin-left: auto; }
/* a Pause confirm takes a line of its own, so the row doesn't reflow around it */
.of-head > .co-pause:has(.co-confirm-q) { order: 3; flex-basis: 100%; flex-wrap: wrap; }
.of-clock { color: inherit; }
.of-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: var(--of-card); border: 1px solid var(--of-line-2); font-size: var(--fs-sm); font-weight: 500; color: var(--of-ink); text-decoration: none; white-space: nowrap;
}
a.of-chip:hover { border-color: var(--of-ice); }
.of-chip.is-paused { border-color: rgba(230, 238, 248, 0.5); }
.of-chip.is-warn { color: var(--of-amber-hi); border-color: var(--wait-line); }
.of-pip.is-warn { background: var(--of-amber); box-shadow: 0 0 8px var(--of-amber); }
.of-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; color: var(--of-ink);
  background: var(--of-raise); border: 1px solid var(--of-line-3); border-radius: var(--r-sm); padding: 7px 13px; cursor: pointer; white-space: nowrap;
}
.of-btn:hover { border-color: var(--of-ice); }
.of-btn:focus-visible, .of-act:focus-visible, .of-feed-row:focus-visible, .of-i-link:focus-visible, .of-log-a:focus-visible,
.of-tl-lab:focus-visible, .of-tl-m:focus-visible, .of-tl-wait:focus-visible, .of-chip:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 2px; }
.of-btn.is-off { color: var(--of-dim); background: transparent; border-style: dashed; cursor: help; }
.of-hint { flex-basis: 100%; margin: 0; font-size: var(--fs-sm); color: var(--of-soft); }
.of-error { margin: 0; padding: 8px 20px; border-left: 3px solid var(--down); background: var(--down-dim); font-size: var(--fs-sm); }

/* ---- the grid ---- */
.of-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "floor" "side" "low"; align-content: start; }
.of-floor { grid-area: floor; min-width: 0; }
.of-side { grid-area: side; min-width: 0; border-top: 1px solid var(--of-line); }
.of-low { grid-area: low; min-width: 0; }
@container of (min-width: 1400px) {
  .of-grid { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto 1fr; grid-template-areas: "floor side" "low side"; }
  .of-side { border-top: 0; border-left: 1px solid var(--of-line); }
}
/* A phone: what waits on you first, then the floor (the page's own order
   stays floor first, as everywhere else) */
@container of (max-width: 599.98px) {
  .of-grid { grid-template-areas: "side" "floor" "low"; }
  .of-side { border-top: 0; border-bottom: 1px solid var(--of-line); }
}

/* ---- the floor ---- */
.of-floor { container: floor / inline-size; position: relative; background: var(--night-floor); }
.of-hud { padding: 14px 16px 4px; }
.of-hud-k { margin: 0; display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--of-mute); }   /* one colour for every small caps label */
.of-hud-k .of-pip { width: 6px; height: 6px; }
.of-hud-t {
  display: block; margin: 6px 0 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  font: inherit; font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--of-ink);
}
.of-hud-t:hover .is-amber, .of-hud-t:hover .is-ok { text-decoration: underline; text-underline-offset: 3px; }
.of-hud-t:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 4px; border-radius: 6px; }
.of-hud-t span { display: block; }
.of-hud-t .is-amber { color: var(--of-amber); }
.of-hud-t .is-ok { color: var(--of-ok); }
.of-hud-s { margin: 6px 0 0; font-size: var(--fs-sm); color: var(--of-dim); text-shadow: 0 0 4px var(--of-bg), 0 0 8px var(--of-bg); }   /* the art and glass behind it never cut the words */
@container floor (min-width: 760px) {
  .of-hud { position: absolute; z-index: 2; left: 2.4%; top: 2.6%; max-width: 31%; padding: 0; pointer-events: none; }
  .of-hud-t { pointer-events: auto; }
}

/* the stage and what sits over it without zooming: the zoom buttons, the picked card.
   Its shape is the village's frame (--of-ratio, set from the drawing by company-office.js frameOf). */
.of-stagebox { position: relative; width: 100%; max-width: calc((100vh - 120px) * var(--of-ratio, 1.6533)); margin: 0 auto; }
.of-stage {
  container: stage / inline-size; position: relative; overflow: hidden; margin: 0 auto; background: #0a1122;
  /* the whole village fits the window: as wide as the column, but no taller than the window allows */
  width: 100%; max-width: calc((100vh - 120px) * var(--of-ratio, 1.6533)); aspect-ratio: var(--of-ratio, 1.6533);
}
/* the camera: the drawing and the labels over it move and zoom together */
/* the frame the camera scrolls in (a pan; company-office.js zoomable), as big as the mountain at this zoom (of-pan-room).
   Scrollable sideways, or the browser wouldn't scroll it on its own thread; never up and down, so a wheel the page
   should have (at the whole village, or at the village's top or bottom edge) still reaches it. No scrollbar. */
.of-pan { position: absolute; inset: 0; overflow-x: scroll; overflow-y: hidden; scrollbar-width: none; }
.of-pan::-webkit-scrollbar { display: none; }
.of-pan-room { position: absolute; left: 0; top: 0; width: 0; height: 0; visibility: hidden; pointer-events: none; }
.of-pan-shield { position: absolute; inset: 0; display: none; }
.of-stage.is-moving .of-pan-shield { display: block; }
/* (no layer of its own: with one, every change on the floor, a roof lifting under the pointer, costs the browser more) */
.of-cam { position: absolute; inset: 0; transform-origin: 0 0; }
.of-cam.is-glide { transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1); }
/* more village than frame: a drag pans (one finger still scrolls the page up and down until zoomed in) */
.of-stage.is-pan, .of-stage.is-roam { cursor: grab; }
.of-stage.is-roam { touch-action: pan-y; }
.of-stage.is-zoomed { cursor: grab; touch-action: none; }
.of-stage.is-dragging, .of-stage.is-dragging * { cursor: grabbing; }
/* the village; the mountain around it spills over the frame's edges (shown as you zoom out) */
.of-iso { display: block; width: 100%; height: 100%; overflow: visible; font-family: var(--font-sans); user-select: none; }
/* the night sky behind it and the snow in front, in the frame's own pixels (they don't zoom) */
.of-sky, .of-snow, .of-aur { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* What moves, moves as a whole <svg> (company-office.js skyEls, snowEl), on the browser's own thread: the
   snow twice the frame's height, sliding down one frame; each aurora band's glow (its own opacity at 1). */
.of-snow { top: -100%; height: 200%; animation: of-snow 70s linear infinite; }
@keyframes of-snow { to { transform: translateY(50%); } }
.of-aur { opacity: 0.7; animation: of-aurora 18s ease-in-out infinite alternate; }
.of-aur-2 { opacity: 0.5; animation-duration: 26s; }
.of-aur .v-aurora { opacity: 1; }
.of-aur > svg, .of-snow > svg { display: block; width: 100%; height: 100%; }
@keyframes of-aurora { from { opacity: 0.35; } to { opacity: 0.8; } }
/* a working agent's chimney smoke rising, a lantern (and a raised hand, and WAITING ON YOU) glowing: the
   only motion besides the snow and the aurora (the design's); Motion off or reduced motion hold all still.
   Each puff and glow moves as an <svg> of its own over the drawing (.of-mv, company-office.js liftMotion),
   the drawn one hidden; nothing inside the drawing moves (his line and the store's walkers stand still), or
   every frame would have the browser go through all of its pieces again. */
.of-iso .smoke circle { opacity: 0.55; }
.of-iso .pulse { animation: none; }   /* (not the admin's green live dot, styles.css .pulse) */
.of-iso .is-lifted { visibility: hidden; }
.of-ov > .of-mv { width: var(--mw); height: var(--mh); pointer-events: none; }
.of-mv > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.of-mv-smoke { opacity: 0.55; animation: of-rise 4s linear infinite; }
.of-mv-s2 { animation-delay: -1.33s; }
.of-mv-s3 { animation-delay: -2.66s; }
@keyframes of-rise { 0% { transform: translateY(var(--a)); opacity: 0; } 25% { opacity: 0.75; } 100% { transform: translateY(var(--b)); opacity: 0; } }
.of-mv-pulse { opacity: var(--still); animation: of-glow 2.4s ease-in-out infinite; }
.of-mv-pulse circle { opacity: 1; }
@keyframes of-glow { 0%, 100% { opacity: 0.22; } 50% { opacity: 0.75; } }
.of .of-iso [class*="of-pl-a-"], .of .of-iso .v-shop-walk { animation: none; }
.of.is-still .of-mv, .of.is-still .of-snow, .of.is-still .of-aur { animation: none; }
/* a building: pointing at it (or picking whoever works there) lifts its roof and front walls, so you see in */
.of-iso [data-item] { cursor: pointer; }
/* (at once, no fade: each step of a fade would have the graphics chip draw the village around it again) */
.of-iso [data-item]:hover .shell, .of-iso [data-item].is-peek .shell, .of-iso [data-item].is-open .shell { opacity: 0.13; }
/* the Resort's guests at home: inside their chalet, seen (and pointed at) only while its roof is lifted; each one's card */
.of-iso .v-home { opacity: 0; pointer-events: none; }
.of-iso [data-item]:hover .v-home, .of-iso [data-item].is-peek .v-home, .of-iso [data-item].is-open .v-home { opacity: 1; pointer-events: auto; }
.of-iso .v-guest { cursor: pointer; }
.of-guest {
  position: absolute; z-index: 4; max-width: 280px; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--of-line-2);
  background: rgba(8, 16, 30, 0.96); color: var(--of-soft); font-size: var(--fs-sm); line-height: 1.4; pointer-events: none;
}
.of-guest b { display: block; color: var(--of-ink); font-weight: 600; }
.of-guest p { margin: 2px 0 0; }
.of-guest ul { margin: 4px 0 0; padding-left: 14px; color: var(--of-ink); }
.of-guest-go { display: block; margin-top: 4px; color: var(--of-ice-hi); }
/* his line's small print only once you can read it (company-office.js is-zl), its big word in its place before */
.of-stage:not(.is-zl) .of-lod { display: none; }
.of-stage.is-zl .of-fit { display: none; }
.of-zoom { position: absolute; z-index: 3; right: 10px; top: 10px; display: flex; gap: 4px; }
.of-zoom-b {
  min-width: 30px; height: 30px; padding: 0 9px; border-radius: var(--r-sm); border: 1px solid var(--of-line-2);
  background: rgba(8, 16, 30, 0.9); color: var(--of-ink); font: inherit; font-size: var(--fs-base); font-weight: 700; line-height: 1; cursor: pointer;
}
.of-zoom-b.is-fit { font-size: var(--fs-xs); }
.of-zoom-b:hover:not(:disabled) { border-color: var(--of-ice-hi); }
.of-zoom-b:disabled { display: none; }   /* at the whole village: no Village; at the whole mountain: no − or Mountain; at a preset: not its own */
.of-zoom-b:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 2px; }
/* labels keep their size when you zoom (their anchor point stays put) */
.of-ov > .of-fl { transform-origin: 0 0; scale: calc(1 / var(--z, 1)); }
/* a pulse where someone is, when picked from the Team list */
.of-ov > .of-pulse { width: 0; height: 0; pointer-events: none; }
.of-pulse::before, .of-pulse::after {
  content: ''; position: absolute; left: -30px; top: -15px; width: 60px; height: 30px; border-radius: 50%;
  border: 3px solid var(--of-amber); opacity: 0; animation: of-pulse 1.2s ease-out 2;
}
.of-pulse::after { animation-delay: 0.4s; }
@keyframes of-pulse { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.of-novil { padding: 18px 20px; }

/* The Plugin engineer's line (company-office.js pluginStudio; Claude Design's hand-off in plugin-line/):
   every colour of it a variable, dark here, light under [data-theme="light"] (the Office has no light mode
   yet, so the floor shows dark). Copper is the plugin team's. The wall screen stays dark in both. */
.of-iso {
  --of-pl-copper: #e0955c; --of-pl-st-text: #f0b386; --of-pl-cv-label: #c6cfdc; --of-pl-cv-dim: #6f7c92;
  --of-pl-leg: #2a3242; --of-pl-leg-f: #202736; --of-pl-leg-s: #252c3c;
  --of-pl-frame-top: #465068; --of-pl-frame-front: #323b50; --of-pl-frame-side: #3a445a;
  --of-pl-belt-surf: #0f131b; --of-pl-slat: #232a37; --of-pl-rail-top: #6b7690; --of-pl-rail-f: #4a5468; --of-pl-rail-s: #566179;
  --of-pl-tray-top: #3b5f8a; --of-pl-tray-front: #28446a; --of-pl-tray-side: #30517a; --of-pl-tray-in: #152338;
  --of-pl-post: #4a556e; --of-pl-post-f: #353e53; --of-pl-post-s: #2a3244; --of-pl-sign-off: #2a3346; --of-pl-lamp-done: #6e4a30;
  --of-pl-safety: #c9a227; --of-pl-ret-front: #a83a3a; --of-pl-roller: #5a6478; --of-pl-ret-text: #f08a8a;
  --of-pl-cb-top: #c99a64; --of-pl-cb-front: #946b3d; --of-pl-cb-side: #ad7f4c; --of-pl-cb-tape: #e2c99c;
  --of-pl-door: #2a3346; --of-pl-door-line: #1d2433; --of-pl-pal-top: #8a6a44; --of-pl-pal-front: #6b5033; --of-pl-pal-side: #7a5c3b; --of-pl-pal-ink: #f3e6d2; --of-pl-ship-text: #7be3a3;
  --of-pl-g-top: #4ade80; --of-pl-g-front: #22804a; --of-pl-g-side: #2f9e5c; --of-pl-r-top: #f87171; --of-pl-r-front: #a83a3a; --of-pl-r-side: #c84848;
  --of-pl-w-top: #8d96a6; --of-pl-w-front: #5b6577; --of-pl-w-side: #6f7889;
  --of-pl-m-top: #3b4864; --of-pl-m-front: #273149; --of-pl-m-side: #1f283c; --of-pl-ok: #4ade80; --of-pl-amber: #f5c451;
  --of-pl-screen-bezel: #0a0e16; --of-pl-screen-bg: #0f1622; --of-pl-screen-text: #e8edf5; --of-pl-screen-dim: #93a1b6;
}
[data-theme="light"] .of-iso, .of-iso[data-theme="light"] {
  --of-pl-copper: #e0955c; --of-pl-st-text: #ffd9bb; --of-pl-cv-label: #eef1f5; --of-pl-cv-dim: #262c37;
  --of-pl-leg: #7f8897; --of-pl-leg-f: #6b7482; --of-pl-leg-s: #747d8b;
  --of-pl-frame-top: #aab2bf; --of-pl-frame-front: #8c95a3; --of-pl-frame-side: #99a2b0;
  --of-pl-belt-surf: #2b313d; --of-pl-slat: #3d4554; --of-pl-rail-top: #d5dbe3; --of-pl-rail-f: #b2bac6; --of-pl-rail-s: #c2c9d3;
  --of-pl-tray-top: #4a6b8f; --of-pl-tray-front: #36506d; --of-pl-tray-side: #3f5d7e; --of-pl-tray-in: #24364b;
  --of-pl-post: #c2c9d3; --of-pl-post-f: #a6aebb; --of-pl-post-s: #8f98a6; --of-pl-sign-off: #d5dbe3; --of-pl-lamp-done: #e9c3a3;
  --of-pl-safety: #d4a017; --of-pl-ret-front: #c84848; --of-pl-roller: #8c95a3; --of-pl-ret-text: #b93c3c;
  --of-pl-cb-top: #d9b07a; --of-pl-cb-front: #b98a52; --of-pl-cb-side: #c99a64; --of-pl-cb-tape: #ead7b5;
  --of-pl-door: #cfd5de; --of-pl-door-line: #b6bdc9; --of-pl-pal-top: #c9a77c; --of-pl-pal-front: #a8865c; --of-pl-pal-side: #b8956a; --of-pl-pal-ink: #3a2a1c; --of-pl-ship-text: #2f7d4f;
  --of-pl-g-top: #6fe09a; --of-pl-g-front: #2f9e5c; --of-pl-g-side: #3fb06c; --of-pl-r-top: #f89a9a; --of-pl-r-front: #d94f4f; --of-pl-r-side: #e26464;
  --of-pl-w-top: #d5dbe3; --of-pl-w-front: #9aa3b1; --of-pl-w-side: #b2bac6;
  --of-pl-m-top: #d7dde6; --of-pl-m-front: #b9c1cd; --of-pl-m-side: #a6afbc; --of-pl-ok: #2f9e5c; --of-pl-amber: #d4a23a;
  --of-pl-screen-bezel: #1b2130; --of-pl-screen-bg: #0f1622; --of-pl-screen-text: #e8edf5; --of-pl-screen-dim: #93a1b6;
}
/* Its motion, only while he works (the page sets these classes only then): the belt's slats, the tray he's
   on bobbing, its work light and lamp breathing, a running test's square, the return line's arrows; a retry's
   lamp blinks yellow. Motion off or reduced motion: all still, a retry's lamp steady yellow. */
.of-pl-a-slats { animation: of-pl-slats 0.7s linear infinite; }
@keyframes of-pl-slats { to { transform: translate(4.2px, 2.1px); } }
.of-pl-a-bob { animation: of-pl-bob 1.4s ease-in-out infinite; }
@keyframes of-pl-bob { 50% { transform: translateY(-0.8px); } }
.of-pl-a-beam { animation: of-pl-beam 1.6s ease-in-out infinite; }
@keyframes of-pl-beam { 50% { opacity: 0.04; } }
.of-pl-a-glow { transform-box: fill-box; transform-origin: center; animation: of-pl-glow 1.6s ease-in-out infinite; }
@keyframes of-pl-glow { 50% { transform: scale(0.8); opacity: 0.1; } }
.of-pl-a-pulse { animation: of-pl-pulse 1s ease-in-out infinite; }
@keyframes of-pl-pulse { 50% { opacity: 0.2; } }
.of-pl-a-chev { animation: of-pl-chev 1.2s linear infinite; }
@keyframes of-pl-chev { 0% { transform: translateX(0); opacity: 0; } 30%, 70% { opacity: 0.9; } 100% { transform: translateX(-6px); opacity: 0; } }
.of-pl-a-blink { animation: of-pl-blink 1s steps(1, end) infinite; }
@keyframes of-pl-blink { 50% { opacity: 0.25; } }
.of.is-still [class*="of-pl-a-"] { animation: none; }
/* its trays and boxes: a stop each for the pointer and the keyboard, the card in a tooltip over it */
.of-ov > .of-pl-spot {
  width: var(--hw); height: var(--hh); transform: translate(-50%, -50%);
  padding: 0; border: 0; border-radius: 3px; background: transparent; cursor: pointer;
}
/* only while his workshop's roof is lifted (pointed at, or him picked): over the roof they'd catch the pointer */
.of-ov > .of-pl-spot { pointer-events: none; }
.of-ov.is-peek-plug > .of-pl-spot, .of-ov.is-open-plug > .of-pl-spot { pointer-events: auto; }
.of-ov > .of-pl-spot:hover { background: rgba(240, 179, 134, 0.1); }
.of-ov > .of-pl-spot:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 1px; }
.of-ov > .of-pl-tip {
  display: none; pointer-events: none; z-index: 3; transform-origin: 0 0; scale: calc(1 / var(--z, 1)); transform: translate(-50%, calc(-100% - 6px));
  max-width: 260px; padding: 7px 10px; border-radius: var(--r-sm); background: rgba(11, 15, 23, 0.96); border: 1px solid #2b3546;
  color: #e8edf5; font-size: var(--fs-xs); font-weight: 600; line-height: 1.35; white-space: normal; width: max-content;
}
.of-ov > .of-pl-tip.is-on { display: block; }
.of-pl-tip b { display: block; font-weight: 600; color: #f0b386; }
.of-pl-tip span { display: block; color: #a3afc2; margin-top: 2px; }

/* the layer over the floor: positions are percentages of it (--ax, --ay) */
.of-ov { position: absolute; inset: 0; pointer-events: none; }
.of-ov > * { position: absolute; left: var(--ax); top: var(--ay); pointer-events: auto; }
.of-lbl { cursor: pointer; font-size: var(--fs-xs); line-height: 1.25; white-space: nowrap; color: var(--of-ink); }

.of-cur { display: inline-block; flex: none; width: 7px; height: 13px; margin-left: 3px; vertical-align: -2px; background: var(--of-ice); transition: opacity 0.2s; }

/* The name tags (Halsing, Hans, Nicola and every agent), 12px, right over
   the figure's head; bottom centre at the anchor. Hidden (.of-who) until the
   figure's button is hovered or focused from the keyboard: then the
   name and, in two or three words, what it is acting out. Pinned on
   (.is-pinned, at most three) for whoever needs you or failed, and all of
   them once zoomed in. An agent's border is its own colour (--id); amber:
   waits on you; red: the last run failed. */
.of-fl {
  display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 8px;
  transform: translate(-50%, -100%); border-radius: 999px; white-space: nowrap;
  background: rgba(8, 16, 30, 0.94); border: 1px solid rgba(213, 222, 234, 0.32);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); font-size: var(--fs-xs); line-height: 1;
}
.of-fl b { font-weight: 600; color: var(--of-ink); }
.of-fl-sep { color: var(--of-mute); }
.of-fl-w { color: var(--of-soft); }
.of-ov > .of-who { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.12s, visibility 0.12s; }
.of-ov > .of-who.is-pinned, .of-stage.is-z2 .of-ov > .of-who { opacity: 1; visibility: visible; }
.of-ov > .of-who.is-hover { opacity: 1; visibility: visible; z-index: 2; }   /* a pick shows the ring and the pick card, not the tag */
.of-stage .of-ov > .of-who.is-offframe { visibility: hidden; }   /* a pinned tag whose figure is panned out of the frame */
.of-fl.has-id { border-color: rgba(213, 222, 234, 0.4); border-color: color-mix(in srgb, var(--id) 60%, transparent); }
.of-fl--ceo { background: rgba(12, 10, 28, 0.94); }
.of-fl.is-amber { border-color: color-mix(in srgb, var(--of-amber) 80%, transparent); background: rgba(26, 18, 4, 0.94); }
.of-fl.is-amber b, .of-fl.is-amber .of-fl-w { color: var(--of-amber-hi); }
.of-fl.is-red .of-fl-w { color: var(--of-red); }
.of-fl.is-red { border-color: color-mix(in srgb, var(--of-red) 80%, transparent); background: rgba(28, 8, 10, 0.94); }
.of-fl:hover, .of-fl.is-sel { border-color: var(--of-ice-hi); }
/* an emoji-style face (Halsing, Nicola): a round crop of the drawing (the inspector's heads) */
.of-face { position: relative; flex: none; display: inline-block; border-radius: 50%; overflow: hidden; background: #1d3449; line-height: 0; }
/* an agent's rim in its own colour, over the drawing so a frame can't hide it */
.of-face.is-rim::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; pointer-events: none; }
.of-face svg { display: block; }

/* the real buttons: one per building, over it. A building's own (is-cab) is for the keyboard and a screen
   reader: the pointer lands on the drawn building itself (company-office.js wireCab), which does the same. */
.of-hit {
  width: max(28px, var(--hw)); height: max(28px, var(--hh)); transform: translate(-50%, -50%);
  padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
}
.of-hit:hover { background: rgba(127, 219, 255, 0.06); }
.of-hit:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 2px; background: rgba(127, 219, 255, 0.08); }
.of-ov > .of-hit.is-cab { pointer-events: none; border-radius: 6px; }

/* ---- the picked one, on the floor's empty top-right corner (600-1399px of Office) ---- */
.of-pick-host { position: absolute; z-index: 4; right: 12px; top: 52px; width: min(320px, 34%); }
.of-pick {
  display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 12px 14px; border-radius: var(--r-md);
  background: rgba(8, 16, 28, 0.96); border: 1px solid var(--of-line-2); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.of-pick-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.of-pick .of-i-av { width: 38px; height: 38px; }
.of-pick-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.of-pick-t b { font-size: var(--fs-base); font-weight: 600; }
.of-pick-t span { font-size: var(--fs-sm); line-height: 1.3; color: var(--of-soft); overflow-wrap: anywhere; }
.of-pick-t span.is-amber { color: var(--of-amber-hi); }
.of-pick-t span.is-red { color: var(--of-red); }
.of-pick-x, .of-i-x {
  margin-left: auto; flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--of-dim); background: transparent; border: 1px solid var(--of-line-2); border-radius: var(--r-sm);
}
.of-i-x { margin-left: 8px; }
.of-i-head > .of-i-t + .of-i-x { margin-left: auto; }   /* no chip before it */
.of-pick-x:hover, .of-i-x:hover { color: var(--of-ink); border-color: var(--of-ice); }
.of-pick-x:focus-visible, .of-i-x:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 2px; }
.of-pick-acts { display: flex; flex-wrap: wrap; gap: 8px; }
@container of (min-width: 1400px) { .of-pick-host { display: none; } }
@container of (max-width: 599.98px) { .of-pick-host { display: none; } }
/* under 860px of Office the floor has no empty corner (the card would hide
   the boardroom): it sits right under the floor instead */
@container of (min-width: 600px) and (max-width: 859.98px) {
  .of-pick-host { position: static; width: auto; padding: 10px 12px 12px; }
  .of-pick { box-shadow: none; }
}

/* below the floor: the team on the left, in one row; what runs next and the
   legend on the right (under it, when the row needs the width) */
.of-ffoot { display: flex; flex-wrap: wrap; gap: 12px 16px; padding: 12px 16px 14px; border-top: 1px solid var(--of-line); background: var(--of-bar); }
.of-team { flex: 1 1 auto; min-width: 0; max-width: 100%; }
.of-team-l { display: flex; flex-wrap: nowrap; gap: 2px; margin-top: 8px; overflow-x: auto; scrollbar-width: thin; }
.of-tm {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 83px; padding: 6px 2px 7px; border-radius: 12px;
  border: 1px solid transparent; background: transparent; color: var(--of-ink); font: inherit; cursor: pointer; text-align: center;
}
.of-tm:hover { background: rgba(127, 219, 255, 0.06); }
.of-tm.is-sel { border-color: var(--of-ice-hi); background: rgba(127, 219, 255, 0.08); }
.of-tm:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 2px; }
.of-tm-av { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(213, 222, 234, 0.45); }
.of-tm.is-hire .of-tm-av { border: 1.5px dashed var(--of-mute); color: var(--of-dim); }
.of-tm.is-amber .of-tm-av { box-shadow: 0 0 0 2px var(--of-amber); }
.of-tm.is-red .of-tm-av { box-shadow: 0 0 0 2px var(--of-red); }
/* a narrower Office: narrower tiles, so all nine still fit in one row (a phone scrolls, its edge fading) */
@container of (max-width: 799.98px) { .of-tm { width: 74px; } }
@container of (max-width: 599.98px) {
  .of-team-l { -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
}
.of-tm b { font-size: var(--fs-xs); font-weight: 600; margin-top: 2px; line-height: 1.2; }
.of-tm > span:last-child { font-size: var(--fs-xs); line-height: 1.2; color: var(--of-dim); }
.of-tm.is-amber > span:last-child { color: var(--of-amber-hi); }
.of-tm.is-red > span:last-child { color: var(--of-red); }
.of-ffoot-r { flex: 0 1 300px; margin-left: auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* no room beside the team (nine 83px tiles, the gap and 300px): under it, from the left, side by side */
@container of (max-width: 1111.98px) {
  .of-ffoot-r { flex: 1 1 100%; margin-left: 0; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
}
.of-legend { min-width: 0; }
/* closed by default: a small button that opens the list in place */
.of-lg-h { margin: 0; }
.of-lg-tog {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-sm); cursor: pointer;
  font: inherit; font-size: var(--fs-xs); font-weight: 600; line-height: 1.2; color: var(--of-soft); background: transparent; border: 1px solid var(--of-line-2);
}
.of-lg-tog:hover { color: var(--of-ink); border-color: var(--of-ice); }
.of-lg-tog:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 2px; }
.of-lg-tog::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.of-legend.is-open .of-lg-tog::after { transform: translateY(1px) rotate(-135deg); }
.of-legend ul { list-style: none; margin: 9px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 12px; }   /* two columns in the 300px beside the team */
.of-legend li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.of-lg-ic { flex: none; }
.of-legend li > span { display: flex; flex-direction: column; line-height: 1.2; font-size: var(--fs-xs); min-width: 0; }
.of-legend li b { font-weight: 600; }
.of-legend li > span > span { color: var(--of-dim); }
.of-next { padding: 10px 14px 12px; border-radius: var(--r-md); border: 1px solid var(--of-line-2); background: var(--of-bg); align-self: flex-start; }
.of-next-r { margin: 7px 0 0; display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); min-width: 0; }
.of-next-r b { font-weight: 600; }
.of-next-r span:last-child { color: var(--of-soft); overflow-wrap: anywhere; }

/* ---- the side: Waiting on you, then the inspector ---- */
.of-side { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px; background: var(--of-side); scroll-margin-top: calc(var(--topbar-h, 0px) + 8px); } /* clear of the sticky top bar when a tap scrolls it into view */
.of-rule { height: 1px; background: var(--of-line); flex: none; }
.of-wait { display: flex; flex-direction: column; gap: 10px; }
.of-wait-h { display: flex; align-items: center; gap: 10px; }
.of-wait-h h2 { margin: 0; font-size: var(--fs-md); font-weight: 600; }
.of-wait-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--wait-dim); border: 1px solid var(--wait-line); color: var(--of-amber); }
.of-wait.is-empty .of-wait-ic { background: transparent; border-color: var(--of-line-2); color: var(--of-dim); }
/* the way from the to-do summary to the Boardroom */
.of-to-board { align-self: flex-start; margin-top: 4px; }
.of-more { align-self: flex-start; border-radius: 8px; }
.of-wait-x { margin: 0; font-size: 12px; color: var(--of-mute); }
.of-wait-x a { color: var(--of-soft); }
.of-wait-sum { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.of-wait-sum li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; }
.of-wait-sum b { font-weight: 600; color: var(--of-ink); }
.of-wait-sum li.is-theirs b { color: var(--of-soft); }
.of-wait-sum span { color: var(--of-dim); }
.of-note { margin: 0; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 8px; background: rgba(61, 255, 184, 0.08); border: 1px solid rgba(61, 255, 184, 0.35); font-size: 13px; color: var(--of-ink); }
.of-wait-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.of-wait.is-clear .of-wait-ic { background: color-mix(in srgb, var(--of-ok) 10%, transparent); border-color: var(--up-line); color: var(--of-ok); }
/* Post: the agents' findings one at a time (the Calendar's cards) */
.of-flow { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.of-flow.of-post { max-width: 640px; }
.of-post-t { margin: 0; font-size: var(--fs-md); font-weight: 600; color: var(--of-ink); }
.of-post-t:focus { outline: none; }   /* takes focus so a screen reader reads on from here; not a control */
.of-flow-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--of-soft); }
.of-flow-x { padding: 4px 8px; font: inherit; font-size: var(--fs-sm); color: var(--of-dim); background: none; border: 1px solid transparent; border-radius: var(--r-sm); cursor: pointer; }
.of-flow-x:hover { color: var(--of-ink); border-color: var(--of-line-2); }
.of-flow-x:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 2px; }
.of-flow-bar { height: 6px; border-radius: 4px; background: var(--of-line); margin-bottom: 8px; overflow: hidden; }
.of-flow-bar i { display: block; height: 100%; border-radius: 4px; background: var(--of-ice); transition: width 0.3s ease; }
.of-flow-card { display: flex; flex-direction: column; padding: 16px; border-radius: var(--r-md); background: var(--of-card); border: 1px solid var(--of-line-3); min-width: 0; }
.of-flow-k { margin: 0 0 6px; font-size: var(--fs-xs); color: var(--of-mute); }
.of-flow-t { margin: 0 0 6px; font-size: var(--fs-md); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
/* the title and "All tested" take focus so a screen reader reads on from there; not controls, so no ring */
.of-flow-t:focus, .of-flow-done h3:focus { outline: none; }
.of-flow-lab { margin: 12px 0 4px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--of-ice); }
.of-flow-txt { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.of-flow-txt.is-none { margin-top: 6px; color: var(--of-dim); }
.of-flow-steps { margin: 2px 0 0; padding-left: 22px; font-size: 14px; line-height: 1.6; }
.of-flow-steps li { overflow-wrap: anywhere; }
.of-flow-steps li::marker { color: var(--of-ice); font-weight: 700; }
.of-flow-card a { color: var(--of-ice-hi); text-decoration: underline; text-underline-offset: 2px; }
.of-flow-card a:hover { color: var(--of-ink); }
.of-flow-gh { align-self: flex-start; margin-top: 12px; font-size: var(--fs-sm); }
.of-flow-q { margin: 8px 0 0; font-size: 14px; line-height: 1.45; }
.of-flow-why {
  width: 100%; min-height: 92px; box-sizing: border-box; padding: 10px 12px; resize: vertical;
  font: inherit; font-size: 14px; color: var(--of-ink); background: var(--of-bg); border: 1px solid var(--of-line-3); border-radius: var(--r-sm);
}
.of-flow-why:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 1px; }
.of-flow-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.of-flow-btns.is-stack { flex-direction: column; }
.of-flow-btn {
  padding: 11px 14px; font: inherit; font-size: var(--fs-base); font-weight: 700; text-align: center; cursor: pointer;
  color: var(--of-ink); background: transparent; border: 1px solid var(--of-line-3); border-radius: var(--r-sm);
}
.of-flow-btns.is-stack .of-flow-btn { width: 100%; }
.of-flow-btn:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 2px; }
.of-flow-btn:disabled { opacity: 0.55; cursor: default; }
.of-flow-btn.is-yes { color: #06231a; background: var(--of-ok); border-color: var(--of-ok); }
.of-flow-btn.is-yes:hover:not(:disabled) { filter: brightness(1.08); }
.of-flow-btn.is-no { color: var(--of-red); background: color-mix(in srgb, var(--of-red) 10%, transparent); border-color: var(--of-red); }
.of-flow-btn.is-no:hover:not(:disabled) { background: color-mix(in srgb, var(--of-red) 18%, transparent); }
.of-flow-btn.is-ghost:hover:not(:disabled) { border-color: var(--of-ice); }
.of-flow-gone { align-self: center; margin-top: 10px; padding: 4px 8px; font: inherit; font-size: var(--fs-sm); color: var(--of-mute); background: none; border: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.of-flow-gone:hover { color: var(--of-soft); }
.of-flow-gone:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 2px; border-radius: 3px; }
.of-flow-msg { margin: 12px 0 0; font-size: var(--fs-sm); color: var(--of-soft); }
.of-flow-msg.is-warn { color: var(--of-red); }
.of-flow-msg:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 2px; border-radius: 3px; }
.of-flow-done { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 12px; text-align: center; border-radius: var(--r-md); background: var(--of-card); border: 1px solid var(--of-line-3); }
.of-flow-big { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font-size: 28px; font-weight: 700; color: #06231a; background: var(--of-ok); }
.of-flow-done h3 { margin: 6px 0 0; font-size: 20px; }
.of-flow-done p { margin: 0 0 10px; font-size: 14px; color: var(--of-soft); }
.of-note { margin: 0; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--of-ok) 8%, transparent); border: 1px solid color-mix(in srgb, var(--of-ok) 35%, transparent); font-size: var(--fs-sm); color: var(--of-ink); }
.of-note .of-ic { color: var(--of-ok); }
.of-note:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 2px; }
.of-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* a write: the button, then its confirm step in place */
.of-do { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.of-do-q { margin: 0; font-size: var(--fs-sm); line-height: 1.4; color: var(--of-ink); overflow-wrap: anywhere; }
.of-do-q.is-warn { color: var(--of-red); }
.of-do-q.is-ok { color: var(--of-ok); }
.of-do-q:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 2px; border-radius: 3px; }
.of-do-b { display: flex; flex-wrap: wrap; gap: 6px; }
.of-act--sm { padding: 6px 11px; font-size: var(--fs-sm); }
.of-act.is-ghost { background: transparent; }
/* "→ Engineer": small and quiet at the end of its row */
.of-act--sm.is-ghost { padding: 4px 9px; font-size: var(--fs-xs); color: var(--of-soft); border-color: var(--of-line-2); }
.of-act--sm.is-ghost:hover:not(:disabled) { color: var(--of-ink); border-color: var(--of-ice); }
.of-act:disabled { opacity: 0.6; cursor: default; }
.of-act.is-amber:hover:not(:disabled) { background: var(--of-amber-hi); }
.of-eng-n { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); color: var(--of-dim); }
.of-eng-n.is-warn { color: var(--of-red); }
.of-i-it .of-do, .of-i-it .of-eng-n { margin-top: 5px; }

/* the reply to the CEO */
.of-reply { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--of-violet) 40%, transparent); background: #0d0b1f; }
.of-reply-t {
  width: 100%; min-height: 76px; resize: vertical; padding: 8px 10px; border-radius: var(--r-sm);
  font: inherit; font-size: 14px; line-height: 1.45; color: var(--of-ink); background: #070612; border: 1px solid #3a3260;
}
.of-reply-t:focus-visible { outline: 2px solid var(--of-violet-hi); outline-offset: 1px; }
.of-reply-h { margin: 0; font-size: var(--fs-xs); line-height: 1.4; color: var(--of-dim); }
.of-reply-f { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; }
.of-reply-n { font-size: var(--fs-xs); color: var(--of-mute); padding-top: 7px; }
.of-reply-n.is-warn { color: var(--of-amber-hi); }

/* company.js's pause switch, in this header */
.of .co-pause { gap: 8px; }   /* beside the sentence, as on every tab (company.css) */
.of .co-pause .co-btn { font-size: var(--fs-sm); font-weight: 600; min-height: 0; padding: 7px 13px; color: var(--of-ink); }   /* colours and corners: company.css, as on every tab */
.of .co-pause .co-btn:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 2px; }
.of .co-pause .co-confirm-q, .of .co-pause .co-status-item { font-size: var(--fs-sm); color: var(--of-ink); }
.of .co-pause .co-status-item.is-warn { color: var(--of-red); }

.of-insp { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.of-i-head { display: flex; align-items: center; gap: 12px; }
.of-i-av {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: #0c1e31; border: 1px solid rgba(90, 200, 250, 0.5); color: var(--of-ice);
}
.of-i-av.is-violet { background: #14102a; border-color: rgba(182, 156, 255, 0.5); color: var(--of-violet); }
.of-i-av.is-amber { background: #1a1405; border-color: rgba(255, 194, 77, 0.55); color: var(--of-amber); }
.of-i-av.is-person { border-radius: 50%; background: var(--of-raise); border-color: rgba(213, 222, 234, 0.4); color: #d5deea; }
.of-i-av.is-dashed { background: transparent; border: 1.5px dashed var(--of-mute); color: var(--of-dim); }
.of-i-av.is-soft { background: #111a29; border-color: var(--of-line-2); color: var(--of-dim); }
.of-i-av.is-face { overflow: hidden; border-radius: 50%; border-color: rgba(213, 222, 234, 0.4); background: #1d3449; }
.of-i-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.of-i-t h3 { margin: 0; font-size: var(--fs-md); font-weight: 600; line-height: 1.15; }
.of-i-t h3:focus, .of-wait-h h2:focus { outline: none; }   /* focus lands here after a pick, for a screen reader; not a control */
.of-i-t span { font-size: var(--fs-sm); color: var(--of-mute); }
.of-i-chip {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid currentColor; color: var(--tone, var(--of-dim)); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap;
}
.of-i-chip.is-dashed { border-style: dashed; color: var(--of-soft); }
.of-i-block { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.of-i-k { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.of-i-kx { margin-left: auto; font-size: var(--fs-xs); color: var(--of-dim); }
.of-i-task { font-size: var(--fs-base); font-weight: 500; line-height: 1.3; color: var(--of-ink); text-decoration: none; overflow-wrap: anywhere; }
a.of-i-task:hover { color: var(--of-ice-hi); text-decoration: underline; }
.of-i-meta { margin: 0; font-size: var(--fs-sm); color: var(--of-dim); }
.of-i-meta.is-red { color: var(--of-red); }
.of-i-none { margin: 0; font-size: var(--fs-sm); color: var(--of-dim); }
.of-i-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.of-i-list li { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 8px; font-size: var(--fs-sm); line-height: 1.35; min-width: 0; }
.of-i-list li > .of-do.is-idle { margin-left: auto; flex: none; }
.of-i-list li > .of-do:not(.is-idle) { flex-basis: 100%; padding-left: 44px; }   /* its confirm step, under the row */
.of-i-id { flex: none; min-width: 36px; font-size: var(--fs-xs); color: var(--of-ice); padding-top: 1px; }
.of-i-id.is-p1 { color: var(--down); }   /* P1 is the admin's orange, as on Departments */
.of-i-it { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.of-i-link { color: var(--of-ink); text-decoration: none; overflow-wrap: anywhere; }
a.of-i-link:hover { color: var(--of-ice-hi); text-decoration: underline; }
.of-i-meta, .of-i-it .of-i-meta { font-size: var(--fs-xs); }
.of-i-it .of-i-meta { display: block; color: var(--of-dim); }
.of-i-p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--of-soft); }
.of-i-p.is-muted { font-size: var(--fs-sm); color: var(--of-dim); }
.of-i-facts { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; font-size: 14px; }
.of-i-facts dt { color: var(--of-mute); }
.of-i-facts dd { margin: 0; overflow-wrap: anywhere; }
.of-i-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.of-ban { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--of-raise); border: 1px solid var(--of-line-2); font-size: var(--fs-xs); color: var(--of-soft); }
.of-ban .of-ic { color: var(--of-mute); }
.of-i-acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* One bright button per panel (.is-primary, its main action); the rest are quiet outlines. */
.of-act {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: var(--fs-sm); font-weight: 600; line-height: 1.2;
  padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; white-space: nowrap; cursor: pointer;
  color: var(--of-ink); background: transparent; border: 1px solid var(--of-line-3);
}
.of-act:hover { border-color: var(--of-ice); }
.of-act.is-primary { color: var(--night-on-ice); background: var(--of-ice); border-color: var(--of-ice); }
.of-act.is-primary:hover { background: var(--of-ice-hi); }
.of-act.is-amber { color: var(--of-amber-ink); background: var(--of-amber); border-color: var(--of-amber); }
.of-i-quote { margin: 0; padding: 12px 14px; border-left: 3px solid var(--of-violet); background: #100e22; border-radius: 0 10px 10px 0; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.of-i-block.is-ask { padding: 10px 12px; border-left: 3px solid var(--of-amber); background: color-mix(in srgb, var(--of-amber) 7%, transparent); border-radius: 0 10px 10px 0; }
.of-i-ask { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.of-i-sched { margin: 0; display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--of-soft); }
.of-i-sched .of-ic { color: var(--of-violet); }
.of-brief > summary { font-size: var(--fs-sm); font-weight: 600; color: var(--of-ice); cursor: pointer; }
.of-brief .of-md { margin-top: 8px; max-height: 320px; overflow: auto; font-size: 14px; padding-right: 8px; }

.of-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.of-step { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.of-step-bar { height: 4px; border-radius: 2px; background: var(--of-line-2); }
.of-step.is-done .of-step-bar { background: var(--of-ice); }
.of-step.is-now .of-step-bar { background: linear-gradient(90deg, var(--of-ice) 55%, var(--of-line-2) 55%); box-shadow: 0 0 8px rgba(90, 200, 250, 0.45); }
.of-step-t { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--of-mute); }
.of-step.is-done .of-step-t { color: var(--of-dim); }
.of-step.is-done .of-ic { color: var(--of-ice); }
.of-step.is-now .of-step-t { font-weight: 600; color: var(--of-ink); }

.of-log { border-radius: var(--r-md); background: var(--night-floor); border: 1px solid var(--of-line-2); overflow: hidden; font-size: var(--fs-xs); }
.of-log-h { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; border-bottom: 1px solid var(--of-line); color: var(--of-mute); }
.of-log-dots { display: inline-flex; gap: 4px; }
.of-log-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--of-line-3); }
.of-log-st { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-sans); }
.of-log-st .of-pip { width: 6px; height: 6px; }
.of-log-st.is-on { color: var(--of-ice); }
.of-log-b { display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 8px 12px 10px; min-height: 96px; max-height: 190px; overflow-y: auto; line-height: 18px; }
.of-log-l { display: flex; gap: 10px; color: var(--of-mute); min-width: 0; }
.of-log-l.is-now { color: var(--of-ink); }
.of-log-t { flex: none; width: 84px; color: var(--of-mute); white-space: nowrap; }
.of-log-x { min-width: 0; overflow-wrap: anywhere; }
.of-log-a { color: var(--of-soft); text-decoration: none; }
.of-log-l:last-child .of-log-a { color: var(--of-ink); }
a.of-log-a:hover { color: var(--of-ice-hi); text-decoration: underline; }
.of-log-none { margin: 0; font-family: var(--font-sans); font-size: var(--fs-sm); line-height: 1.45; color: var(--of-soft); }
.of-side-foot { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--of-line); font-size: var(--fs-xs); color: var(--of-mute); }
/* A line of items with dots between them (dotted()): each dot sits in the
   14px gap before its item; the line hangs 14px to the left and clips that
   strip, so a dot that would start a line is never seen, and none ends one. */
.of-dots { display: flex; flex-wrap: wrap; align-items: baseline; margin-left: -14px; clip-path: inset(-30px -30px -30px 9px); }
.of-dots > * { position: relative; margin-left: 14px; }
.of-dots > * + *::before { content: '·'; position: absolute; left: -9px; color: var(--of-mute); text-decoration: none; pointer-events: none; }
.of-dots > .of-dots-lead + *::before { content: none; }
.of-dots > .of-dots-lead { margin-right: -9px; }   /* "Also: 2 tests…": a word's gap after the label, a full one if its item wraps */
.of-foot-a { color: var(--of-soft); text-decoration: underline; text-decoration-color: rgba(197, 210, 226, 0.4); text-underline-offset: 2px; }
.of-foot-a:hover { color: var(--of-ice-hi); text-decoration-color: currentColor; }
.of-foot-a:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 2px; border-radius: 3px; }
/* paused: the plain sentence, then Resume right there */
.of-paused { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
/* "Back to the floor": a phone's details sit above the floor */
.of-back { display: none; align-self: flex-start; }
/* below the floor, wide: the list and the details side by side; with nothing
   selected the list's groups (For you / Either / For the other) take columns */
@container of (min-width: 860px) and (max-width: 1399.98px) {
  .of-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px 32px; }
  .of-side > .of-wait { grid-column: 1; }
  .of-side > .of-rule { display: none; }
  .of-side > .of-insp { grid-column: 2; grid-row: 1 / span 3; }
  .of-side > .of-side-foot { grid-column: 1; }
  .of-side:not(.has-insp) > .of-wait, .of-side:not(.has-insp) > .of-side-foot { grid-column: 1 / -1; }
  .of-side:not(.has-insp) .of-wait-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; gap: 14px 24px; }
}

/* ---- below: Today and the Live feed ---- */
.of-low { container: low / inline-size; border-top: 1px solid var(--of-line); background: var(--of-bar); }
.of-low-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 16px 20px 18px; }
@container low (min-width: 760px) { .of-low-in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; } }
.of-today, .of-feed { min-width: 0; }
.of-low-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.of-low-h h2 { margin: 0; font-size: var(--fs-md); font-weight: 600; }
.of-low-h span { font-size: var(--fs-sm); color: var(--of-mute); }
.of-low-h .of-tl-nowt { margin-left: auto; font-size: var(--fs-xs); font-weight: 600; color: var(--of-ink); }
.of-low-h .of-tl-done { color: var(--of-soft); }

.of-tl { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 10px; align-items: center; margin-top: 12px; }
.of-tl-grid { position: absolute; left: 106px; right: 0; top: 0; bottom: 20px; pointer-events: none; }
.of-tl-grid i { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 1%); width: 1px; background: var(--night-grid); }
.of-tl-grid i.is-now { width: 1.5px; background: rgba(230, 238, 248, 0.55); }
.of-tl-lab {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0; border: 0; background: none; text-align: left;
  font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--of-ink); white-space: nowrap; overflow: hidden;
}
button.of-tl-lab { cursor: pointer; }
button.of-tl-lab:hover { color: var(--of-ice-hi); }
.of-tl-lab.is-amber { font-size: var(--fs-xs); color: var(--of-amber); white-space: normal; line-height: 1.25; }
.of-tl-n { font-size: var(--fs-xs); font-weight: 500; color: var(--of-mute); }
.of-tl-track { position: relative; height: 28px; min-width: 0; }
.of-tl-base { position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--of-line); }
.of-tl-m {
  position: absolute; left: calc(var(--x) * 1%); top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--of-soft); box-shadow: 0 0 0 2px var(--of-bar); z-index: 1;
}
.of-tl-m.is-brief { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--of-violet); box-shadow: 0 0 10px rgba(182, 156, 255, 0.6); }
.of-tl-m.is-closed { border-radius: 2px; background: var(--of-ok); }
.of-tl-m.is-run {
  width: auto; height: 22px; margin: -11px 0 0 0; padding: 0 6px; transform: translateX(-50%); border-radius: 6px;
  background: #0f2a3d; border: 1px solid rgba(90, 200, 250, 0.5); box-shadow: none; font-size: var(--fs-xs); line-height: 20px; color: #cfefff; text-decoration: none; white-space: nowrap;
}
a.of-tl-m:hover { box-shadow: 0 0 0 2px var(--of-bar), 0 0 0 4px var(--of-ice-hi); }
.of-tl-text { position: absolute; left: calc(var(--x) * 1% + 12px); right: 0; top: 50%; transform: translateY(-50%); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--of-violet-hi); }
.of-tl-live {
  position: absolute; top: 50%; height: 22px; margin-top: -11px; right: calc(100% - (var(--x) + var(--w)) * 1%); width: max(34px, calc(var(--w) * 1%));
  display: flex; align-items: center; justify-content: flex-end; padding: 0 6px; border-radius: 6px;
  background: var(--of-ice); box-shadow: 0 0 12px rgba(90, 200, 250, 0.6); font-size: var(--fs-xs); font-weight: 700; color: var(--night-on-ice); z-index: 1;
}
.of-tl-none { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); padding-right: 6px; font-size: var(--fs-xs); color: var(--of-mute); background: var(--of-bar); }
.of-tl-wait { position: absolute; left: calc(var(--x) * 1%); width: calc(var(--w) * 1%); top: 0; bottom: 0; text-decoration: none; }
.of-tl-wait::after { content: ''; position: absolute; left: 0; right: 0; bottom: 5px; height: 3px; border-radius: 2px; background: var(--of-amber); }
.of-tl-wait::before { content: ''; position: absolute; right: -3.5px; bottom: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--of-amber); }
.of-tl-wait-t { position: absolute; left: 0; right: calc((100 - var(--e)) * 1%); bottom: 10px; font-size: var(--fs-xs); line-height: 1.2; color: var(--of-amber-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; pointer-events: none; }
.of-tl-track.is-wait { overflow: visible; }
.of-tl-more { margin: 0; font-size: var(--fs-xs); color: var(--of-amber-hi); }
.of-tl-axis { position: relative; height: 18px; }
.of-tl-hr { position: absolute; left: calc(var(--x) * 1%); transform: translateX(-50%); font-size: var(--fs-xs); color: var(--of-mute); white-space: nowrap; }
.of-tl-hr.is-first { transform: none; }
.of-tl-hr.is-last { transform: translateX(-100%); }

.of-feed-list { list-style: none; margin: 10px -4px 0; padding: 0; max-height: 264px; overflow-y: auto; }
.of-feed-row {
  display: grid; grid-template-columns: 62px 14px minmax(0, 1fr); align-items: center; gap: 0 10px;
  min-height: 26px; padding: 2px 4px; border-radius: 4px; font-size: var(--fs-sm); color: var(--of-soft); text-decoration: none;
}
a.of-feed-row:hover { background: rgba(90, 200, 250, 0.07); }
.of-feed-time { font-size: var(--fs-xs); color: var(--of-mute); white-space: nowrap; }
.of-feed-time.is-fresh { color: var(--of-ice); }
.of-feed-ic { color: var(--of-dim); }
.of-feed-row.is-run .of-feed-ic { color: var(--of-ice); }
.of-feed-row.is-ask .of-feed-ic, .of-feed-row.is-pr .of-feed-ic { color: var(--of-amber); }
.of-feed-row.is-closed .of-feed-ic { color: var(--of-ok); }
.of-feed-b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-feed-b b { font-weight: 600; color: var(--of-ink); }
@container low (max-width: 560px) {
  .of-tl { grid-template-columns: 96px minmax(0, 1fr); gap: 6px 8px; }   /* room for "Halsing 15" */
  .of-tl-grid { left: 104px; }
  .of-tl-hr.is-minor, .of-tl-hr.is-near { display: none; }   /* nothing runs into the last hour's label */
  .of-feed-row { align-items: start; grid-template-columns: 54px 14px minmax(0, 1fr); padding: 4px; }
  .of-feed-time, .of-feed-ic { margin-top: 2px; }
  .of-feed-b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* ---- narrow Office ---- */
@container of (max-width: 699px) {
  .of-head { padding: 10px 14px; gap: 8px 10px; }
  .of-chip { white-space: normal; }
  .of-side { padding: 16px 14px; }
  .of-low-in { padding: 14px; }
  .of-ffoot { padding: 12px 14px; }
  .of-next { max-width: none; }
  .of-i-facts { grid-template-columns: 104px minmax(0, 1fr); }
  .of-foot { padding: 10px 14px 12px; }
}
@media (max-width: 640px) {
  .of { border-radius: var(--r-sm); }
  .of-hud-t { font-size: var(--fs-md); }
  .of-flow-card { padding: 14px 13px; }
  /* thumb-sized: every button here at least 44px tall */
  .of-btn, .of-act, .of-flow-x, .of-lg-tog, .of-i-x, .of .co-pause .co-btn, .of-hud-t { min-height: 44px; }
  .of-i-x { width: 44px; }
  .of-also-b, .of-foot-a { display: inline-block; padding: 12px 0; line-height: 20px; }
  .of-feed-row { min-height: 44px; }
  /* the timeline's names: a 44px tap each, the lanes spaced so two never overlap */
  .of-tl { row-gap: 16px; }
  button.of-tl-lab { min-height: 44px; margin: -8px 0; }
  /* zoomed in, a figure's button is at least 44px on screen (at fit they stay small: neighbours would cover each other) */
  .of-stage.is-zoomed .of-hit { width: max(calc(44px / var(--z, 1)), var(--hw)); height: max(calc(44px / var(--z, 1)), var(--hh)); }
  .of-i-t h3 { font-size: 18px; }
}

/* a button per building under the floor: a click zooms in close to it */
.of-rooms-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px 12px 4px; }

/* ---- a phone: the floor closer in, in a taller frame that pans ---- */
@container of (max-width: 599.98px) {
  /* a 6:5 frame; the floor keeps its own shape at the frame's height, about 1.5 times
     its fitted size (company-office.js PHONE_FRAME), and pans sideways */
  .of-stagebox { max-width: none; }
  .of-stage { aspect-ratio: 6 / 5; max-width: none; }
  .of-cam { right: auto; width: calc(100% * var(--of-ratio, 1.6533) / 1.2); }
  /* the zoom buttons under the floor, not on it */
  .of-zoom { position: static; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 8px 12px 0; }
  .of-zoom > .of-motion { margin-right: auto; }   /* Motion, at the row's other end */
  .of-zoom-b { min-width: 44px; height: 44px; font-size: var(--fs-md); }
  .of-zoom-b.is-fit { font-size: var(--fs-sm); }
  .of-rooms-row { flex-wrap: nowrap; justify-content: flex-start; padding: 8px 12px 12px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
  .of-rooms-row::-webkit-scrollbar { display: none; }
  .of-rooms-row .of-room-chip { min-height: 44px; padding: 0 14px; }
  .of-back { display: inline-flex; min-height: 44px; }
}
.of-room-chip {
  flex: none; min-height: 32px; padding: 0 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--of-soft); background: var(--of-card); border: 1px solid var(--of-line-2);
}
.of-room-chip:hover { color: var(--of-ink); border-color: var(--of-ice); }
.of-room-chip[aria-pressed="true"] { color: var(--of-ink); border-color: var(--of-ice); background: color-mix(in srgb, var(--of-ice) 16%, var(--of-card)); }
.of-room-chip:focus-visible { outline: 2px solid var(--of-ice-hi); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .of-cur, .of-ov > .of-who, .of-flow-bar i, .of-cam.is-glide { transition: none; }
  .of-pulse::before { animation: none; opacity: 1; transform: scale(1.2); }
  .of-pulse::after { animation: none; }
  .of-mv, .of-snow, .of-aur, [class*="of-pl-a-"] { animation: none; }
}



/* An agent's answer, formatted (the kit's richText): Messages and the Boardroom's card chats */
.co-rich-p, .co-rich-h { margin: 0 0 6px; }
.co-rich-h { font-weight: 600; }
.co-rich-list { margin: 0 0 6px; padding-left: 20px; }
.co-rich-list li + li { margin-top: 3px; }
.co-rich-p:last-child, .co-rich-h:last-child, .co-rich-list:last-child { margin-bottom: 0; }
.co-rich-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; padding: 1px 4px; border-radius: 4px; background: rgba(127, 127, 127, 0.16); }
.co-rich-a { color: inherit; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
