/* Command Center — visual language: a spatial AI operating system (2.5D, no WebGL, no canvas).
   Inlined into the page by server.index_html() (the CSP keeps style-src 'unsafe-inline' only; no external stylesheet).
   Principles: depth, light, transparency, spatial relationships, typography, motion restraint, information hierarchy.
   Not more glow, neon, borders or gradients. Surfaces float; only the command surfaces (Mission Control, the decision,
   the selected mission's annotation) are glass. Every colour means one thing: cyan = executing, violet = ownership /
   structure, magenta = a Human Decision, amber = Owner Attention, green = completed. Motion: the core breathes, the
   planet surface drifts, the halo of a mission the server reports as executing pulses slowly, an executing trajectory
   flows — all off under prefers-reduced-motion, none of it stands for a state on its own. */

:root {
  --bg: #03040a; --panel: #0a0d1f; --ink: #e8ecf7; --muted: #8a93b2; --faint: #5d6587; --line: rgba(160, 175, 230, .1);
  --red: #ff5c78; --red-bg: rgba(255, 92, 120, .1); --amber: #ffb45c; --amber-bg: rgba(255, 180, 92, .1);
  --green: #6dffbf; --green-bg: rgba(109, 255, 191, .08); --blue: #7fe6ff; --blue-bg: rgba(127, 230, 255, .1);
  --grey-bg: rgba(160, 175, 230, .06); --violet: #a99cff; --violet-bg: rgba(169, 156, 255, .1);
  --cyan: #7fe6ff; --magenta: #ff7ae6; --glass: rgba(14, 18, 40, .5); --glass-line: rgba(180, 195, 255, .12);
  --hud: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --display: "SF Pro Display", "Inter", "Segoe UI Variable Display", "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  color-scheme: dark;
}
body {
  min-height: 100vh; color: var(--ink); background-color: var(--bg); letter-spacing: .01em;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.5), transparent 60%), radial-gradient(1px 1px at 72% 9%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 38% 74%, rgba(255,255,255,.3), transparent 60%), radial-gradient(1px 1px at 88% 64%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 56% 34%, rgba(255,255,255,.25), transparent 60%), radial-gradient(1px 1px at 5% 46%, rgba(200,220,255,.35), transparent 60%),
    radial-gradient(1px 1px at 94% 30%, rgba(200,220,255,.3), transparent 60%), radial-gradient(1px 1px at 63% 88%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(70% 50% at 60% 30%, rgba(70, 50, 160, .16), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(20, 60, 140, .14), transparent 70%),
    linear-gradient(180deg, #050611 0%, #04050d 60%, #030409 100%);
  background-attachment: fixed;
}
a { color: var(--cyan); }
::selection { background: rgba(127, 230, 255, .25); }

/* ---------------- the rest of the Office (drawers, SYSTEMS panels) on the same quiet surface */
header { background: transparent; }
.pill { border-color: var(--line); color: var(--muted); }
section.panel, .stat, .space-card, .sblock, .agent, .proj, .prov { background: rgba(12, 15, 34, .55); border-color: var(--line); }
section.panel > h2 { color: var(--muted); font-family: var(--hud); font-weight: 500; }
.card, .work, .col .card { background: rgba(16, 20, 44, .6); border-color: var(--line); color: var(--ink); }
.col { background: rgba(10, 13, 30, .5); } .col.decision { background: rgba(255, 122, 230, .05); outline-color: rgba(255, 122, 230, .5); }
.btn { border-color: rgba(180, 195, 255, .2); background: transparent; color: var(--ink); }
.btn.primary { background: rgba(127, 230, 255, .14); color: #fff; border: 1px solid rgba(127, 230, 255, .4); }
.btn:disabled { opacity: .5; }
input, textarea, select { background: rgba(8, 10, 24, .7); color: var(--ink); border: 1px solid rgba(180, 195, 255, .16); border-radius: 8px; }
.drawer { background: rgba(7, 9, 22, .97); border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(0, 0, 0, .6); }
.close { color: var(--ink); }
.backdrop { background: rgba(2, 3, 10, .55); }
.step.completed { border-color: rgba(109, 255, 191, .3); } .step.working, .step.reviewing, .step.queued { border-color: rgba(127, 230, 255, .4); }
.step.ready, .step.waiting { border-color: rgba(255, 180, 92, .3); }
.banner, .demo-banner { border-color: rgba(255, 180, 92, .3); }
.ai-claude, .ai-openai, .ai-gemini { background: transparent; }
.chip.red, .chip.amber, .lvl.P0, .lvl.P1, .step.blocked, .step.error { color: #04050d; }
.inspector { background: var(--glass); color: var(--ink); }

/* secondary operational layer: one quiet line each, collapsed until asked for */
details.secondary, details.systems { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
details.secondary > summary, details.systems > summary { cursor: pointer; padding: 10px 4px; font: 500 10.5px var(--hud); letter-spacing: .2em; color: var(--faint); list-style: none; }
details.secondary > summary:hover, details.systems > summary:hover { color: var(--muted); }
details.secondary > summary::before, details.systems > summary::before { content: "+ "; } details.secondary[open] > summary::before, details.systems[open] > summary::before { content: "– "; }
details.secondary { margin-top: 6px; border-radius: 16px; border: 1px solid rgba(200, 210, 255, .06) !important;
  background: linear-gradient(180deg, rgba(20, 22, 50, .35), rgba(8, 9, 22, .2)) !important; }
details.secondary > summary { padding: 12px 16px !important; }
details.secondary #spaceHome { margin: 0 12px 14px; font-size: 12.5px; background: transparent; border: 0; padding: 0; }
details.secondary #spaceHome .sgrid { display: grid; grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
details.secondary #spaceHome .sblock { padding: 8px 10px; margin: 0; max-height: 220px; overflow-y: auto; background: rgba(8, 10, 26, .4); border-color: rgba(200, 210, 255, .06); }
details.systems > .systems-body { display: grid; gap: 14px; padding: 0 0 16px; }

/* ---------------- header: a thin command console over the city, not a navigation bar */
header.cc-top { display: flex; align-items: center; gap: 12px; padding: 9px 20px; flex-wrap: wrap; position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(2, 3, 10, .72), rgba(2, 3, 10, 0)); border: 0; }
.cc-brand { display: flex; align-items: center; gap: 9px; margin-right: 4px; }
.cc-brand svg { width: 18px; height: 18px; fill: none; stroke: #cfc6ff; stroke-width: 1.3; opacity: .8; }
.cc-brand h1 { margin: 0; font: 600 10px/1.1 var(--display); letter-spacing: .3em; color: rgba(243, 244, 251, .85); text-shadow: none; }
.cc-brand small { display: none; }
header.cc-top #officeFilter { min-width: 0; width: auto; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(200, 210, 255, .08); font: 500 11.5px var(--display); color: var(--muted); }
.cc-people { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.cc-person { display: inline-flex; align-items: center; gap: 5px; font: 400 11px var(--display); color: var(--faint); }
.cc-person i { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font: 600 8px var(--display); font-style: normal; color: #e8ecf7; background: rgba(150, 165, 255, .25); }
.cc-person.is-me { color: var(--muted); } .cc-person.is-me i { background: rgba(255, 122, 230, .35); }
header.cc-top .hbtn { background: transparent; border: 1px solid rgba(200, 210, 255, .1); color: var(--muted); border-radius: 6px; padding: 3px 10px; font: 500 11px var(--display); }
header.cc-top .hbtn:hover { color: var(--ink); border-color: rgba(200, 210, 255, .3); }
header.cc-top .hbtn.primary { color: #e9fbff; border-color: rgba(127, 230, 255, .3); background: rgba(127, 230, 255, .06); }
header.cc-top .hbtn.icon { width: 26px; padding: 3px 0; }

/* ---------------- composition: the city is the page; the command layer floats on it
   WORLD (scenery) → WORK (lights the server reports) → UI (indicators, rail, Mission Control, the mission list). */
main { max-width: none; padding-top: 0; }
#commandCenter { min-width: 0; }
.cc-shell { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: max(720px, 100vh); overflow: hidden; isolation: isolate; background: #03030a; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cc-none { margin: 0; font-size: 12.5px; color: var(--faint); }
.cc-link { border: 0; background: none; color: var(--cyan); padding: 0; text-decoration: none; border-bottom: 1px solid rgba(127, 230, 255, .3); cursor: pointer; font: inherit; }
.cc-overlay { position: absolute; inset: 0; z-index: 10; pointer-events: none; transform: translateZ(0); }  /* the HUD plane: in front of the scene, never moved by its camera */
.cc-overlay > * { pointer-events: auto; }

/* the rail: narrow, translucent, low contrast; words and agents only when asked for */
.cc-left { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 40px; display: grid; gap: 16px; padding: 8px 4px; border-radius: 12px; overflow: hidden;
  background: rgba(6, 8, 22, .22); box-shadow: inset 0 0 0 1px rgba(200, 210, 255, .05); transition: width .25s ease, background .25s ease; z-index: 3; }
.cc-left:hover, .cc-left:focus-within { width: 206px; background: rgba(6, 8, 22, .7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.cc-nav { display: grid; gap: 2px; }
.cc-navi { position: relative; display: flex; align-items: center; gap: 14px; border: 0; background: none; color: rgba(160, 170, 210, .42); padding: 7px 8px; font: 400 12.5px var(--display); text-align: left; white-space: nowrap; border-radius: 8px; }
.cc-navi:hover { color: var(--ink); }
.cc-navi.on { color: rgba(255, 255, 255, .85); background: rgba(140, 120, 255, .1); }
.cc-navi span, .cc-agents { opacity: 0; transition: opacity .2s ease; }
.cc-left:hover .cc-navi span, .cc-left:focus-within .cc-navi span, .cc-left:hover .cc-agents, .cc-left:focus-within .cc-agents { opacity: 1; }
.cc-agents { display: grid; gap: 2px; white-space: nowrap; }
.cc-agents h2 { margin: 0 0 6px 8px; font: 500 9.5px var(--hud); letter-spacing: .24em; color: var(--faint); text-transform: uppercase; } .cc-agents h2 span { color: var(--faint); }
.cc-agent { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--ink); padding: 4px 8px; text-align: left; }
.cc-agent b { display: block; font: 400 12px var(--display); } .cc-agent i { display: block; font: 400 10px var(--hud); font-style: normal; color: var(--faint); }
.cc-avatar { width: 7px; height: 7px; border-radius: 1px; transform: rotate(45deg); background: currentColor; color: var(--faint); flex: none; }
.cc-avatar .ic { display: none; }
.a-working .cc-avatar, .a-working i { color: var(--cyan); } .a-decision .cc-avatar, .a-decision i { color: var(--magenta); }
.a-owner .cc-avatar, .a-owner i { color: var(--amber); } .a-error .cc-avatar, .a-error i { color: var(--red); } .a-idle .cc-avatar { color: rgba(109, 255, 191, .7); }

/* indicators: a small line of numbers in the console, not cards */
.cc-kpis { position: absolute; left: 62px; top: 42px; display: flex; gap: 16px; opacity: .8; }
.cc-kpi { display: flex; align-items: baseline; gap: 6px; border: 0; background: none; padding: 2px 0; color: var(--faint); cursor: pointer; text-shadow: 0 1px 10px #000; }
.cc-kpi b { font: 300 15px/1 var(--display); color: rgba(232, 236, 247, .34); font-variant-numeric: tabular-nums; }
.cc-kpi span { font: 600 8.5px var(--hud); letter-spacing: .24em; text-transform: uppercase; color: currentColor; opacity: .7; }
.k-decision { color: var(--magenta); } .k-owner { color: var(--amber); } .k-active { color: var(--cyan); } .k-completed { color: rgba(141, 255, 200, .7); }
.cc-kpi.lit b { color: rgba(255, 255, 255, .9); } .k-decision.lit b { color: #ffd6f6; text-shadow: 0 0 14px rgba(255, 90, 220, .8); }
.cc-kpi:hover b { color: #fff; }

/* Spaces: the districts this person can see, one quiet line under the indicators */
.cc-rail { position: absolute; left: 62px; top: 64px; opacity: .85; display: flex; flex-wrap: wrap; gap: 4px 18px; max-width: 46%; }
.cc-world { position: relative; border: 0; background: none; color: var(--ink); display: flex; align-items: center; gap: 7px; padding: 2px 0; cursor: pointer; opacity: .5; text-shadow: 0 1px 8px #000; }
.cc-world:hover, .cc-world.on { opacity: .95; }
.cc-world.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: linear-gradient(90deg, rgba(200, 190, 255, .7), transparent); }
.cc-sphere { position: relative; width: 6px; height: 6px; transform: rotate(45deg); flex: none; border: 1px solid rgba(200, 190, 255, .7); }
.t-private .cc-sphere { border-color: rgba(255, 160, 240, .8); } .t-company .cc-sphere { border-color: rgba(127, 230, 255, .8); }
.cc-sphere.hot-decision { background: var(--magenta); border-color: transparent; } .cc-sphere.hot-owner { background: var(--amber); border-color: transparent; }
.cc-wname { display: flex; align-items: baseline; gap: 8px; text-align: left; line-height: 1.3; }
.cc-wname b { font: 500 11px var(--display); letter-spacing: .05em; } .cc-wname i { display: none; }
.cc-pips { display: flex; gap: 6px; font: 500 9.5px var(--hud); font-style: normal; } .cc-pips.quiet { color: var(--faint); letter-spacing: .14em; }
.pip i { display: inline-block; width: 4px; height: 4px; margin-right: 3px; border-radius: 1px; transform: rotate(45deg); background: currentColor; vertical-align: 1px; }
.pip.s-decision { color: var(--magenta); } .pip.s-owner { color: var(--amber); } .pip.s-working { color: var(--cyan); } .pip.s-waiting { color: #a8b4ff; }

/* ---------------- THE WORLD: a CSS 3D scene (city-scene.js). .cc-fit holds the perspective and scales the 1600 × 900
   scene to cover the screen; .cc-cam is the camera (preserve-3d). Buildings are boxes of faces, the street is a floor
   lying in the scene, far things are planes. The HUD stays outside it. */
.cc-stage { position: absolute; inset: 0; overflow: hidden; isolation: isolate; background: #03030a; }
.cc-fit { position: absolute; left: 50%; top: 50%; width: 1600px; height: 900px; margin: -450px 0 0 -800px; transform: scale(var(--fit, .9));
  perspective: 1000px; perspective-origin: 800px 450px; pointer-events: none; }
.cc-cam { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; transform-origin: 800px 450px -950px; transition: transform 2.2s cubic-bezier(.25, .6, .3, 1); }
.cc-world-layer, .cc-work, .cc-crew, .cc-bldg-3d, .cc-core { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.cc-defs { position: absolute; width: 0; height: 0; }
.cc-plane { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 800px 450px; pointer-events: none; transition: filter 1.6s ease; }
.cc-pic { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
/* faces: every face of a building is a plane of the scene; the ones that stand on the street are mirrored in it */
.cc-face { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.cc-face.front, .cc-face.street { -webkit-box-reflect: below 0 linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 32%); }
.cc-face.crown, .cc-face.bridge, .cc-face.road { -webkit-box-reflect: unset; }
.cc-face.street { box-shadow: inset 0 0 0 .5px rgba(200, 190, 255, .08); }
.cc-tex { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cc-face.column { background: linear-gradient(180deg, transparent, rgba(160, 240, 255, .55) 25%, #e8fbff 70%, #fff); box-shadow: 0 0 10px rgba(127, 230, 255, .6), 0 0 36px rgba(127, 230, 255, .22); opacity: .42; }
.cc-stage.core-busy .cc-face.column { opacity: .6; }  /* the one place the scenery answers the server: something is executing */
.cc-conduit { animation: cc-breathe 7s ease-in-out infinite; }
/* city signage: shops, bars, clinics, adverts — boxes of neon tube and dark glass; some flicker, some have dead letters,
   some are dark; far ones are only colour (drawn on the facades). Scenery, never work. */
.hsign { display: grid; justify-items: center; gap: 1px; padding: 4px 7px; border: 1px solid color-mix(in srgb, currentColor 75%, transparent); border-radius: 3px;
  background: linear-gradient(180deg, rgba(10, 8, 26, .92), rgba(4, 4, 14, .92)); font: 700 10px var(--hud); letter-spacing: .16em; white-space: nowrap; opacity: .82;
  text-shadow: 0 0 5px currentColor; box-shadow: 0 0 10px color-mix(in srgb, currentColor 35%, transparent), inset 0 0 6px color-mix(in srgb, currentColor 18%, transparent); }
.hsign .w { color: color-mix(in srgb, currentColor 55%, #fff); }
.hsign small { font: 500 6.5px var(--hud); letter-spacing: .2em; color: currentColor; opacity: .75; text-shadow: none; }
.hsign.v { padding: 6px 4px; font: 700 13px var(--display); letter-spacing: 0; line-height: 1.22; } .hsign b { font-weight: 700; display: block; }
.hsign .dead { color: rgba(60, 56, 90, .9); text-shadow: none; }   /* a letter whose LEDs are gone */
.hsign.off { opacity: .4; text-shadow: none; box-shadow: none; color: rgba(150, 150, 190, .5); border-color: rgba(150, 150, 190, .25); }   /* closed for the night */
.hsign.off .w { color: rgba(120, 120, 160, .55); }
.hsign.flicker { animation: cc-flicker 7s steps(1, end) infinite; }   /* a tired tube; the sign itself flickers (never a child) */
.hsign.big { font-size: 20px; padding: 8px 6px; opacity: .6; box-shadow: 0 0 8px color-mix(in srgb, currentColor 35%, transparent); }   /* near and large, but quiet: never louder than work */
.hsign.big:not(.v) { font-size: 12px; padding: 6px 10px; } .hsign.big small { font-size: 7.5px; }
.hsign.ad { border: 0; border-radius: 0; padding: 8px 14px; opacity: .5; font: 700 22px var(--hud); letter-spacing: .1em;
  background: repeating-linear-gradient(180deg, color-mix(in srgb, currentColor 12%, transparent) 0 1px, transparent 1px 4px);
  box-shadow: none; text-shadow: 0 0 10px currentColor; }   /* a hologram advert far up the street: seen, not quite read */
.hsign.ad small { font-size: 11px; }
.lamp { width: 8px; height: 5px; border-radius: 3px; background: #fff2d2; box-shadow: 0 0 10px #ffe2a8, 0 0 40px rgba(255, 226, 168, .5); }
.cc-floor { position: absolute; left: 0; top: 0; width: 3600px; height: 1400px; transform-origin: 50% 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 302px), rgba(95, 224, 255, .4) calc(50% - 300px), transparent calc(50% - 297px), transparent calc(50% + 297px), rgba(95, 224, 255, .4) calc(50% + 300px), transparent calc(50% + 302px)),
    repeating-linear-gradient(180deg, transparent 0 40px, rgba(230, 230, 255, .14) 40px 70px, transparent 70px 110px) 50% 0 / 4px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 12px),
    linear-gradient(180deg, rgba(60, 36, 120, .55) 0%, rgba(22, 14, 52, .55) 25%, rgba(8, 7, 22, .62) 60%, rgba(3, 3, 8, .78) 100%); }
.cc-fog { position: absolute; left: 0; right: 0; top: 44%; height: 40%; background: linear-gradient(180deg, transparent, rgba(106, 72, 216, .22) 60%, rgba(60, 40, 140, .1)); }
.cc-cars { animation: cc-cars 8s linear infinite; }
.cc-fly { animation: cc-fly 50s linear infinite; } .cc-fly.rev { animation-direction: reverse; }
/* ---- the living street. A person's habit (route) runs on their own 3D element and moves it with translate, which adds
   to its place: they keep their depth, their size and their occlusion while they walk. The route also sets a few
   numbers that flow down into the figure's joints: --amp (walking 0–1), --look (head), --lift (near forearm),
   --sway (weight shifting), --face (1 / −1: which way they face; through 0 is the turn). The walk cycle (--ph) is a
   separate, shorter wave. All are main-thread custom properties, no per-frame script, no layout. */
@property --amp { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --ph { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --look { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --lift { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --sway { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --dx { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --act { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --face { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --in { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --crouch { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --breath { syntax: "<number>"; inherits: true; initial-value: 0; }
.cc-npc.ra { animation: cc-ra var(--dur) linear var(--del) infinite, cc-gait var(--g) ease-in-out infinite alternate; }
.cc-npc.rb { animation: cc-rb var(--dur) linear var(--del) infinite, cc-gait var(--g) ease-in-out infinite alternate; }
.cc-npc.rc { animation: cc-rc var(--dur) ease-in-out var(--del) infinite; }
.cc-npc.rd { animation: cc-rd var(--dur) ease-in-out var(--del) infinite; }
/* people doing something with the city (see encounters()) */
.cc-npc.re { animation: cc-re var(--dur) linear var(--del) infinite, cc-gait var(--g) ease-in-out infinite alternate; }
.cc-npc.rf { animation: cc-rf var(--dur) linear var(--del) infinite, cc-gait var(--g) ease-in-out infinite alternate; }
.cc-npc.rg { animation: cc-rg var(--dur) linear var(--del) infinite, cc-gait var(--g) ease-in-out infinite alternate; }
.cc-npc.rh { animation: cc-rh var(--dur) linear var(--del) infinite, cc-gait var(--g) ease-in-out infinite alternate; }
.cc-npc.ri { animation: cc-ri var(--dur) linear var(--del) infinite, cc-gait var(--g) ease-in-out infinite alternate; }
.cc-npc.rh > * { opacity: var(--in); }   /* gone inside the building for a while */
.walker { transition: opacity 1.2s ease; }
/* the joints (every figure has them; at rest all of this is the drawn pose). Each group turns about its own joint. */
.mv, .lg, .kn, .ar, .fa, .hd, .pk, .pt, .sb, .sbg, .ct { transform-box: view-box; }
.mv { transform-origin: 30px 96px;   /* the whole body, about the feet: step in place, turn, shift weight, sink as the legs part */
  transform: translate(calc(var(--dx) * 1px), calc((var(--amp) * max(var(--ph), -1 * var(--ph)) * var(--bob, 1.6) + var(--crouch) * 9) * 1px)) scale(var(--face), 1) rotate(calc((var(--sway) * 2.4 + var(--amp) * (var(--lean, 2.4) + var(--ph) * 1.1) + var(--crouch) * 7) * 1deg)); }   /* leaning into the walk; sinking into a crouch */
.lg0 { rotate: calc((var(--amp) * var(--ph) * var(--str, 1) * -17 - var(--crouch) * 38) * 1deg); } .lg1 { rotate: calc((var(--amp) * var(--ph) * var(--str, 1) * 17 - var(--crouch) * 30) * 1deg); }   /* one leg forward, the other back */
.kn0 { rotate: calc((var(--amp) * max(0, -1 * var(--ph)) * 24 + var(--crouch) * 76) * 1deg); } .kn1 { rotate: calc((var(--amp) * max(0, var(--ph)) * 24 + var(--crouch) * 62) * 1deg); }   /* the back leg's knee bends */
.ar0:not(.hold) { rotate: calc(var(--amp) * var(--ph) * var(--str, 1) * 19deg); } .ar1:not(.hold) { rotate: calc(var(--amp) * var(--ph) * var(--str, 1) * -19deg); }   /* arms opposite the legs */
.nr > .fa { rotate: calc(var(--lift) * -72deg); }   /* the near hand comes up: a phone, a tablet, the umbrella */
.hd { rotate: calc(var(--look) * 18deg); }
/* what moves with the body, a beat behind it: the pack, a ponytail, a bag in the hand, a bag on the shoulder, the coat */
.pk { rotate: calc(var(--amp) * var(--ph) * 3deg); } .pt { rotate: calc((var(--amp) * var(--ph) * -9 - var(--look) * 12) * 1deg); }
.sb { rotate: calc(var(--amp) * var(--ph) * -12deg); } .sbg { rotate: calc(var(--amp) * var(--ph) * 4deg); }
.ct { transform: skewX(calc(var(--amp) * var(--ph) * -3deg)); }           /* + looks down at something, − looks up */
.walker svg { display: block; overflow: visible; }
/* the prototype people drawn in 3D (character-scene.js): the canvas takes the figure's place, the figure stays as
   the fallback; the canvas keeps the wet street's reflection */
.c3d { position: absolute; left: 0; top: 0; pointer-events: none; -webkit-box-reflect: below -2px linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .22)); }
.cc-wglyph > .c3d { top: auto; bottom: -9px; }
.has3d > svg, .has3d > .refl { visibility: hidden; }
.walker .shadow { position: absolute; left: 14%; right: 14%; bottom: -2px; height: 5px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); }
.walker .refl { position: absolute; left: 0; top: 100%; transform: scaleY(-1); transform-origin: 50% 0; opacity: .14;
  -webkit-mask-image: linear-gradient(0deg, transparent 30%, #000); mask-image: linear-gradient(0deg, transparent 30%, #000); }   /* faintly on the wet street */
.walker.mid { opacity: .88; } .walker.far { opacity: .55; filter: saturate(.45) brightness(.75); }   /* the city's haze takes the far ones */
.cc-stage.focusing .walker { opacity: .34; }   /* a chosen place: the crowd steps back, but never stops (focus is not a pause) */
/* the city by itself: windows going on and off, the adverts changing, data rising in the core, steam, the cables in
   the wind, the wet street catching the light. Each on its own clock (seeded delays), all slow. */
.cc-wb { animation: cc-blink 37s steps(1, end) infinite; }
.cc-wb.fl { animation: cc-floor 60s steps(1, end) infinite; }   /* a whole floor: on for a long while, then dark */
.hsign.glitch { animation: cc-glitch 11s steps(1, end) infinite; }   /* drops out, jitters, comes back */
.cc-ship { animation: cc-ship 53s linear -20s infinite; } .cc-ship svg { display: block; overflow: visible; }   /* now and then, a craft between the towers */
.pool.cc-shim.fl { animation: cc-flicker 12s steps(1, end) infinite; }   /* the street under a tired sign flickers with it */
.cc-adswap { animation: cc-adswap 16s ease-in-out infinite; }
.cc-pulse { animation: cc-pulse-up 11s linear infinite; }
.cc-steam { animation: cc-steam 9s ease-out infinite; }
.cc-sway { animation: cc-sway 11s ease-in-out infinite alternate; }
.pool.cc-shim { animation: cc-shim 7s ease-in-out infinite alternate; }
.cc-pulse { background: linear-gradient(0deg, transparent, rgba(170, 245, 255, .55), transparent); }
.cc-steam { width: 70px; height: 60px; margin-left: -35px; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 200, 255, .16), transparent); }
.cc-rain { position: absolute; inset: 0; opacity: .35; background: repeating-linear-gradient(104deg, transparent 0 19px, rgba(190, 210, 255, .07) 19px 20px, transparent 20px 47px);
  background-size: 200px 200px; animation: cc-rain 1.6s linear infinite; }  /* a fine night rain at two depths: moisture, not a storm */
.cc-rain.near { opacity: .5; background-size: 320px 320px; }
/* depth of field: while the camera is on a place, what is far behind and right in front goes soft */
.cc-stage.focusing .p-sky, .cc-stage.focusing .p-distant { filter: blur(1.2px) brightness(.85); }
.cc-stage.focusing .p-fore, .cc-stage.focusing .p-rain { filter: blur(1px); }
.cc-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(85% 80% at 50% 42%, transparent 62%, rgba(0, 0, 0, .4)); }  /* the lens: darker at the edges */

/* ---------------- WORK IN THE CITY: events on the buildings, only where the server reports something */
.cc-node { position: absolute; left: 0; top: 0; pointer-events: auto; border: 0; background: none; padding: 0; color: var(--ink); cursor: pointer; }
.cc-badge { position: relative; display: grid; place-items: center; width: 14px; height: 14px; }
.cc-core-dot { width: 4px; height: 3px; border-radius: 1px; background: currentColor; opacity: .5; }   /* a lit window */
.s-decision { color: var(--magenta); } .s-owner { color: var(--amber); } .s-error { color: var(--red); } .s-working { color: var(--cyan); }
.s-waiting { color: #b8c0ff; } .s-completed { color: rgba(141, 255, 200, .8); }
.cc-node.s-completed .cc-core-dot { opacity: .16; } .cc-node.s-waiting .cc-core-dot { opacity: .55; box-shadow: 0 0 6px currentColor; }
.cc-node.holo .cc-badge { display: none; }
.cc-node.hang-r .cc-sign { border-left: 0; border-right: 2px solid currentColor; justify-items: end; text-align: right; background: linear-gradient(270deg, color-mix(in srgb, currentColor 22%, rgba(6, 6, 22, .7)), rgba(6, 6, 22, .45)); }
/* the holographic signage of a mission that needs eyes: light in the air, no card — a projected line of type between
   two hairlines, a bracket back to its building */
.cc-sign { position: relative; display: grid; justify-items: start; gap: 0; padding: 3px 8px 4px; text-align: left; white-space: nowrap;
  border-top: 1px solid color-mix(in srgb, currentColor 70%, transparent); border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  background: repeating-linear-gradient(180deg, color-mix(in srgb, currentColor 9%, transparent) 0 1px, transparent 1px 3px);
  text-shadow: 0 0 6px color-mix(in srgb, currentColor 80%, transparent), 0 0 1px #000; }
.cc-sign::before { content: ""; position: absolute; top: 50%; width: 46px; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, currentColor 10%, transparent), color-mix(in srgb, currentColor 55%, transparent)); }
.hang-l .cc-sign::before { right: 100%; } .hang-r .cc-sign::before { left: 100%; transform: scaleX(-1); }
.hang-r .cc-sign { justify-items: end; text-align: right; }
.cc-sign em { font: 600 7.5px var(--hud); font-style: normal; letter-spacing: .26em; color: currentColor; opacity: .85; }
.cc-sign b { font: 500 13px var(--hud); letter-spacing: .1em; color: color-mix(in srgb, currentColor 35%, #fff); }
.cc-sign i { font: 400 10px var(--display); font-style: normal; color: rgba(230, 236, 250, .72); }
.cc-node.s-owner .cc-sign, .cc-node.s-error .cc-sign { padding: 2px 6px 3px; opacity: .78; }   /* weaker than a decision, local */
.cc-node.s-owner .cc-sign b, .cc-node.s-error .cc-sign b { font-size: 11px; }
.cc-node.s-decision .cc-sign { border-top-color: #ff8ae8; background: repeating-linear-gradient(180deg, rgba(255, 60, 210, .16) 0 1px, rgba(30, 4, 34, .35) 1px 3px); }
.cc-node.s-decision .cc-sign b { font-size: 14px; color: #fff; text-shadow: 0 0 10px #ff4fd8, 0 0 1px #000; }
.cc-node.s-decision .cc-sign em { color: #ffd0f4; }
/* the building's windows around a mission light up, on its street facade (a patch of the facade, not a marker) */
.cc-bldg { position: absolute; left: 0; top: 0; width: 140px; height: 100px; pointer-events: none; display: none;
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 5px, transparent 5px 12px), radial-gradient(closest-side, #000 30%, transparent);
  -webkit-mask-composite: source-in; mask-image: repeating-linear-gradient(180deg, #000 0 5px, transparent 5px 12px), radial-gradient(closest-side, #000 30%, transparent); mask-composite: intersect; }
.cc-bldg.deck { height: 40px; }
.cc-bldg.s-working, .cc-bldg.s-owner, .cc-bldg.s-error, .cc-bldg.s-decision { display: block; }
.cc-bldg.s-working { background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(140, 236, 255, .95) 3px 8px, transparent 8px 12px); }
.cc-bldg.s-owner, .cc-bldg.s-error { width: 90px; height: 60px; background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255, 180, 92, .7) 3px 7px, transparent 7px 12px); }
.cc-bldg.s-working { animation: cc-busy 2.6s steps(3, end) infinite; }   /* executing: the windows around its sign work */
.cc-bldg.s-error { background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255, 92, 120, .75) 3px 7px, transparent 7px 12px); animation: cc-glitch 4.5s steps(1, end) infinite; }   /* a run error: a red disturbance in its building */
.cc-node.s-waiting { animation: cc-wait 9s ease-in-out infinite; }   /* waiting: a slow, low pulse */
.cc-bldg.s-decision { background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255, 120, 230, .95) 3px 8px, transparent 8px 12px); }
.cc-stream { position: absolute; left: 50%; top: 0; bottom: 0; width: 10px; background: repeating-linear-gradient(180deg, #e8fcff 0 4px, transparent 4px 10px);
  animation: cc-stream 2.4s linear infinite; }  /* data running through the building only while the server says it is executing */
/* motion is put on the mission itself (a layer of the 3D scene), never on a child: a child with its own animation gets its
   own compositing layer and the browser can then sort it behind buildings that stand further away */
.cc-node.s-working { animation: cc-work 5s ease-in-out infinite; }  /* only where the server reports an executor at work */
.cc-node.s-decision { animation: cc-pulse 4s ease-in-out infinite; }  /* the command signal: a very slight pulse */
/* Human Decision: a fine magenta signal rising from the building into the sky — the strongest work light in the city,
   not a thick beam */
.cc-signal { position: absolute; left: 0; top: 0; width: 9px; height: 1600px; pointer-events: none; filter: drop-shadow(0 0 6px #ff4fd8);
  background: linear-gradient(90deg, transparent, rgba(255, 110, 225, .8) 30%, #fff4fc 50%, rgba(255, 110, 225, .8) 70%, transparent);
  -webkit-mask-image: linear-gradient(0deg, #000, #000 18%, rgba(0, 0, 0, .5) 60%, transparent); mask-image: linear-gradient(0deg, #000, #000 18%, rgba(0, 0, 0, .5) 60%, transparent); }
.cc-signal-glow { position: absolute; left: 0; top: 0; width: 100px; height: 900px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 60, 210, .2) 38%, rgba(255, 90, 220, .36) 50%, rgba(255, 60, 210, .2) 62%, transparent);
  -webkit-mask-image: linear-gradient(0deg, #000, transparent); mask-image: linear-gradient(0deg, #000, transparent); }  /* the light around the signal */
.cc-node.lit .cc-sign, .cc-node.on .cc-sign { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 0 30px color-mix(in srgb, currentColor 45%, transparent); }
.cc-node.lit .cc-core-dot, .cc-node.on .cc-core-dot { opacity: 1; box-shadow: 0 0 10px currentColor; }
.cc-node:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
.cc-nlabel { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); display: grid; justify-items: start; gap: 1px; text-align: left;
  width: max-content; max-width: 220px; padding: 5px 10px 6px; border-radius: 4px; background: rgba(8, 10, 26, .6); border: 1px solid rgba(255, 255, 255, .08); }
.cc-nlabel em { font: 600 8px var(--hud); font-style: normal; letter-spacing: .22em; color: currentColor; }
.cc-nlabel b { font: 500 12px var(--display); letter-spacing: .06em; color: #fff; }
.cc-nlabel i { font: 400 11px var(--display); font-style: normal; color: rgba(225, 230, 245, .85); max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-cluster .cc-badge { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(200, 210, 255, .3); color: #dfe4ff; font: 500 9.5px var(--hud); background: rgba(8, 10, 26, .55); }
.cc-stage.focus .cc-bldg:not(.lit) { opacity: .3; }
.cc-stage.focus .cc-node:not(.lit):not(.on), .cc-stage.focusing .cc-node:not(.lit):not(.on):not(.s-decision) { opacity: .3; transition: opacity 1.2s ease; }
/* inhabitants: a person is a small figure in the street with an identity light; an AI is a tiny holographic diamond
   floating over the elevated road */
.cc-worker { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: flex-end; gap: 7px; border: 0; background: none;
  padding: 0; color: var(--ink); cursor: pointer; text-align: left; }
/* a person of the work: a character (Director / Explorer / Builder, visual only) with its own small light on the street */
.cc-wglyph { position: relative; width: 69px; height: 92px; flex: none; margin: 0 -12px 0 -12px; isolation: isolate; }
.cc-wglyph::before, .cc-wglyph::after { z-index: -1; }
/* the people of the work keep living while they work (visual only): the director checks the tablet, looks up, half
   turns; the explorer reads holo data and paces toward the mission; the builder checks the tools and steps about */
.cc-worker.look-director .cc-wglyph { animation: cc-rl 23s linear var(--del) infinite, cc-gait .52s ease-in-out infinite alternate, cc-breath 4.6s ease-in-out var(--del) infinite; --str: .8; --lean: 1; --bob: 1.1; }   /* steady, unhurried */
.cc-worker.look-explorer .cc-wglyph { animation: cc-rq 17s linear var(--del) infinite, cc-gait .5s ease-in-out infinite alternate, cc-breath 4.1s ease-in-out var(--del) infinite; }
.cc-worker.look-builder .cc-wglyph { animation: cc-rw 19s linear var(--del) infinite, cc-gait .55s ease-in-out infinite alternate, cc-breath 3.8s ease-in-out var(--del) infinite; --bob: 2.8; --lean: 1.4; }   /* a heavier step */
.k-person.w-working .cc-wglyph::after { opacity: calc(.55 + var(--act) * .45); }   /* executing: a faint cyan activity under them */   /* the shadow and the light pool lie under the figure, never over it */
.cc-wglyph > svg { position: absolute; left: 0; bottom: -9px; }
.cc-wglyph .refl { position: absolute; left: 0; top: calc(100% + 8px); transform: scaleY(-1); transform-origin: 50% 0; opacity: .13; -webkit-mask-image: linear-gradient(0deg, transparent 35%, #000); mask-image: linear-gradient(0deg, transparent 35%, #000); }   /* faintly on the wet street */
.k-ai .cc-wglyph { margin: 0; }
.cc-wglyph svg { display: block; overflow: visible; }
.cc-wglyph::before { content: ""; position: absolute; left: 22%; right: 22%; bottom: 1px; height: 5px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .8), transparent); }
.cc-wglyph::after { content: ""; position: absolute; left: -18px; right: -18px; bottom: -6px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(170, 160, 255, .3), transparent); }
.w-working .cc-wglyph::after { background: radial-gradient(closest-side, rgba(127, 230, 255, .45), transparent); }
.w-decision .cc-wglyph::after { background: radial-gradient(closest-side, rgba(255, 110, 225, .42), transparent); }
.look-director .cc-wglyph::after { background: radial-gradient(closest-side, rgba(255, 110, 225, .22), rgba(180, 140, 255, .08) 60%, transparent); }   /* a very faint magenta pool under the command operator */
.w-owner .cc-wglyph::after { background: radial-gradient(closest-side, rgba(255, 180, 92, .36), transparent); }
/* an AI entity: a small holographic core floating over the street — layered translucent diamonds, a thin orbit, a scan
   line, a few fragments, a thread of light down to the street. Quieter than any work signal. */
.k-ai { align-items: center; }
.k-ai .cc-wglyph { width: 24px; height: 24px; }
.k-ai .cc-wglyph::before { display: none; }
.k-ai .cc-wglyph i { position: absolute; display: block; }
.k-ai .shell { inset: 1px; transform: rotate(45deg); border: 1px solid rgba(160, 240, 255, .55); background: linear-gradient(135deg, rgba(127, 230, 255, .2), rgba(127, 230, 255, .02)); }
.k-ai .core { inset: 7.5px; transform: rotate(45deg); background: radial-gradient(circle, #f4feff 0 30%, #8feaff 60%, rgba(127, 230, 255, .3)); box-shadow: 0 0 8px rgba(127, 230, 255, .9); }
.k-ai .ring { left: -8px; right: -8px; top: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(160, 240, 255, .4); transform: rotate(-14deg); }
.k-ai .scan { left: 2px; right: 2px; top: 11px; height: 1px; background: linear-gradient(90deg, transparent, rgba(230, 252, 255, .9), transparent); }
.k-ai .frag { width: 2.5px; height: 2.5px; background: rgba(160, 240, 255, .8); }
.k-ai .f1 { left: -6px; top: 2px; } .k-ai .f2 { right: -7px; top: 15px; opacity: .6; } .k-ai .f3 { left: 6px; top: -7px; opacity: .45; }
.k-ai .cc-wglyph b { position: absolute; left: 50%; top: 100%; width: 1px; height: 90px; background: linear-gradient(180deg, rgba(127, 230, 255, .4), transparent); }
.k-ai .cc-wglyph::after { left: -16px; right: -16px; top: -12px; bottom: -12px; height: auto; background: radial-gradient(closest-side, rgba(127, 230, 255, .18), transparent); }
.k-ai.w-working .core { box-shadow: 0 0 10px rgba(127, 230, 255, 1), 0 0 22px rgba(127, 230, 255, .6); }
.cc-worker.k-ai.w-working { animation: cc-work 5s ease-in-out infinite; }   /* a slow breath while it executes (on the entity itself) */
.cc-wtext { display: grid; gap: 0; min-width: 0; justify-items: start; padding-bottom: 6px; text-shadow: 0 1px 6px #000, 0 0 3px #000; }
.k-ai .cc-wtext { padding-bottom: 0; }
.cc-wtext b { font: 500 11.5px var(--display); letter-spacing: .03em; white-space: nowrap; color: rgba(236, 240, 250, .88); }
.cc-wtext b i { font: 600 8px var(--hud); font-style: normal; letter-spacing: .16em; color: var(--cyan); }
.cc-wtag { font: 400 9.5px var(--hud); letter-spacing: .04em; white-space: nowrap; color: var(--faint); }
.cc-wtag.wt-working { color: rgba(127, 230, 255, .85); } .cc-wtag.wt-decision { color: rgba(255, 150, 235, .9); } .cc-wtag.wt-owner { color: rgba(255, 190, 110, .9); }
.cc-worker:hover .cc-wtext b, .cc-worker.on .cc-wtext b { color: #fff; }
.cc-stage.focus .cc-worker:not(.on) { opacity: .35; }
.cc-crew-more { position: absolute; left: 28%; bottom: 4%; z-index: 3; font: 400 10px var(--hud); color: var(--faint); }

/* light trails: a curve through the scene from a presence to its mission, only for the selected mission or person and
   for work executing now */
.ln { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.ln .seg { position: absolute; left: 0; top: 0; height: 2.4px; border-radius: 2px; transform-origin: 0 50%; background: currentColor; }
.ln.l-executor { color: var(--cyan); } .ln.l-executor .seg { box-shadow: 0 0 8px rgba(127, 230, 255, .9); }
.ln.l-owner { color: rgba(185, 175, 255, .7); } .ln.l-attention { color: var(--amber); }
.ln.l-decision { color: var(--magenta); } .ln.l-decision .seg { box-shadow: 0 0 8px rgba(255, 122, 230, .9); }
.ln.l-executor, .ln.l-decision { opacity: .1; }   /* not chosen: barely there, the city stays clean */
.ln.on { opacity: .8; } .ln.l-owner.on { opacity: .35; }
.ln.l-executor.live { opacity: .9; }
.ln.l-executor.live .seg { background: repeating-linear-gradient(90deg, rgba(170, 245, 255, 1) 0 8px, rgba(127, 230, 255, .25) 8px 22px); animation: cc-flow 1.6s linear infinite; }
.cc-stage.focus .ln:not(.on) { opacity: 0; }

.cc-core-tag { position: absolute; left: 0; top: 0; display: grid; gap: 2px; pointer-events: none; padding-left: 8px; border-left: 1px solid rgba(220, 210, 255, .35); text-shadow: 0 1px 8px #000; }
.cc-core-tag b { font: 400 12px/1 var(--display); letter-spacing: .22em; color: rgba(255, 255, 255, .8); white-space: nowrap; }
.cc-core-tag small { font: 500 7.5px var(--hud); letter-spacing: .26em; color: rgba(215, 215, 255, .5); text-transform: uppercase; white-space: nowrap; }
.cc-empty-orbit { position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%); z-index: 3; font: 400 12px var(--display); color: var(--muted); text-shadow: 0 1px 8px #000; }
/* mission list: a floating strip of type at the lower right, over the city */
.cc-center { position: absolute; right: 16px; bottom: 14px; width: 276px; box-sizing: border-box; display: grid; min-width: 0; } .cc-center > * { min-width: 0; }
.cc-list { padding: 2px 10px 5px; border-radius: 10px; background: rgba(8, 10, 26, .12); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border: 1px solid rgba(255, 255, 255, .06); }
.cc-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.cc-tab { border: 0; background: none; color: var(--faint); padding: 10px 0 8px; font: 500 10.5px var(--hud); letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.cc-tab span { color: var(--faint); } .cc-tab.on { color: #fff; border-bottom-color: #fff; } .cc-tab:hover { color: var(--ink); }
.cc-rows { display: grid; max-height: 128px; overflow-y: auto; }
.cc-row { display: grid; grid-template-columns: 12px 54px minmax(0, 1fr) auto 12px; gap: 10px; align-items: center; border: 0; border-bottom: 1px solid rgba(160, 175, 230, .06);
  background: none; color: var(--ink); padding: 8px 2px; text-align: left; font: 400 13px var(--display); }
.cc-row .own, .cc-row .stp { display: none; }
.cc-row:hover { background: linear-gradient(90deg, rgba(160, 175, 230, .05), transparent); }
.cc-row.on { background: linear-gradient(90deg, color-mix(in srgb, currentColor 10%, transparent), transparent 70%); }
.cc-row .rowic { width: 13px; height: 13px; } .cc-row .mid { font: 500 11.5px var(--hud); letter-spacing: .06em; color: currentColor; white-space: nowrap; }
.cc-row .ttl { color: #eef0fa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-row .own, .cc-row .stp { font: 400 11px var(--hud); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-row .chev { width: 12px; height: 12px; color: var(--faint); }
.pill { display: inline-block; padding: 1px 0; font: 500 10px var(--hud); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; border: 0; background: none; }
.p-decision { color: var(--magenta); } .p-owner { color: var(--amber); } .p-error { color: var(--red); } .p-working { color: var(--cyan); } .p-waiting { color: #a8b4ff; } .p-completed { color: var(--green); }
.cc-mobile { display: none; }

/* ---------------- Mission Control: a floating command surface (glass), the world shows through */
.cc-right { position: absolute; top: 44px; right: 16px; width: 276px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); overflow-x: hidden; gap: 11px; padding: 14px 16px 14px; border-radius: 22px; color: var(--ink);
  background: rgba(10, 12, 30, .09); -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25);
  border: .5px solid rgba(255, 255, 255, .1); box-shadow: none; max-height: calc(100% - 240px); overflow-y: auto; border-radius: 14px; }
.cc-right::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, currentColor 70%, transparent), transparent); }
.cc-right.s-decision::before { background: linear-gradient(90deg, transparent, var(--magenta), transparent); }
/* the Work's state at the top edge of Mission Control: a Human Decision strongest, then Owner Attention, then executing;
   waiting and completed stay low */
.cc-right.s-owner::before, .cc-right.s-error::before { background: linear-gradient(90deg, transparent, var(--amber), transparent); opacity: .8; }
.cc-right.s-working::before { background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .6; }
.cc-right.s-waiting::before { opacity: .25; } .cc-right.s-completed::before { opacity: .12; }
.cc-right.s-completed .cc-mc-title, .cc-right.s-completed .cc-roles { opacity: .7; }
.cc-line.turn-decision b { color: #ffc9f3; } .cc-line.turn-owner b { color: #ffd4a0; }
.cc-line.w-decision b { color: #ffd6f6; } .cc-line.w-owner b { color: #ffe0b8; } .cc-line.w-executor b { color: #d6f6ff; }
/* the owner-only actions (Re-run, Review, Delegate, Cancel): quiet buttons, never mixed with a decision */
.cc-assign.in-act { margin-top: 10px; color: inherit; }
.cc-act-k { display: block; font: 600 8.5px var(--hud); font-style: normal; letter-spacing: .22em; opacity: .7; }
.cc-owner-acts { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.cc-owner-acts > span { font: 500 9px var(--hud); letter-spacing: .2em; color: var(--faint); }
.cc-owner-acts > div { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-owner-acts .cc-btn { padding: 4px 10px; font-size: 10px; }
.cc-owner-acts small { font: 10px var(--display); color: var(--faint); }
.cc-mc-top { display: flex; justify-content: space-between; align-items: center; }
.cc-mc-h { margin: 0; font: 500 10px var(--hud); letter-spacing: .3em; text-transform: uppercase; color: var(--faint); }
.cc-icon-btn { border: 0; background: none; color: var(--faint); font-size: 14px; } .cc-icon-btn:hover { color: var(--ink); }
.cc-mc-id { display: flex; align-items: center; gap: 10px; } .cc-mc-id .ic { width: 15px; height: 15px; }
.cc-mc-id b { font: 300 20px var(--display); letter-spacing: .08em; color: rgba(255, 255, 255, .92); }
.tag { margin-left: auto; font: 600 9px var(--hud); letter-spacing: .22em; padding: 4px 0; border: 0; background: none; }
.t-decision { color: var(--magenta); text-shadow: 0 0 12px rgba(255, 122, 230, .6); } .t-owner, .t-error { color: var(--amber); }
.t-working { color: var(--cyan); } .t-waiting { color: #a8b4ff; } .t-completed { color: var(--green); }
.cc-mc-title { margin: -6px 0 0; font: 400 15px/1.4 var(--display); color: rgba(255, 255, 255, .9); overflow-wrap: anywhere; }
.cc-mc-tabs { display: flex; gap: 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.cc-mc-tabs button { border: 0; background: none; color: var(--faint); padding: 6px 0 8px; font: 500 10px var(--hud); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid transparent; margin-bottom: -1px; }
.cc-mc-tabs button.on { color: #fff; border-bottom-color: #fff; } .cc-mc-tabs button:hover { color: var(--ink); }
.cc-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cc-role { min-width: 0; }
.cc-role span { display: block; font: 500 9px var(--hud); letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.cc-role b { display: block; font: 400 14px var(--display); color: #fff; overflow-wrap: anywhere; }
.me { font: 600 8px var(--hud); font-style: normal; letter-spacing: .18em; color: var(--cyan); margin-left: 4px; vertical-align: 2px; }
.cc-lines { display: grid; margin-top: 14px; }
.cc-line { display: grid; grid-template-columns: 14px 96px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 7px 0; font: 400 13px var(--display); border-top: 1px solid rgba(160, 175, 230, .06); }
.cc-line .ic { width: 12px; height: 12px; color: var(--faint); align-self: center; }
.cc-line span { font: 500 9px var(--hud); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.cc-line b { font-weight: 400; color: #eef0fa; overflow-wrap: anywhere; }
.cc-line.hot b { color: #ffd4a0; } .cc-right.s-decision .cc-line.hot b { color: #ffc9f3; } .cc-line.next b { color: #d6f6ff; }
.cc-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font: 400 12.5px var(--display); }
.cc-items li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .cc-items li span { color: var(--faint); }
.cc-items.log li { display: grid; grid-template-columns: 86px 1fr; } .cc-items.log i { grid-column: 2; font-style: normal; color: var(--faint); }

/* the action surfaces: the decision is the one place with a stronger light */
.cc-act { position: relative; border-radius: 10px; padding: 12px 14px; display: grid; gap: 9px; }
.cc-act.a-decision { color: var(--magenta); background: rgba(255, 90, 220, .07); box-shadow: inset 2px 0 0 rgba(255, 122, 230, .8); }
.cc-act.a-owner { color: var(--amber); background: rgba(255, 180, 92, .05); box-shadow: inset 2px 0 0 rgba(255, 180, 92, .6); }
.cc-act.a-owner.for-other { opacity: .78; background: none; box-shadow: inset 2px 0 0 rgba(255, 180, 92, .25); }   /* someone else's attention: the Decision Owner may step in */
.cc-act.a-wait { border-top: 1px solid var(--line); border-radius: 0; padding: 12px 0 0; font: 400 12.5px var(--display); } .cc-act.a-wait span { color: var(--faint); }
.cc-act.a-plain { padding: 0; }
.cc-act-h { display: flex; gap: 12px; align-items: flex-start; } .cc-act-h .ic { width: 18px; height: 18px; margin-top: 2px; }
.cc-act-h b { display: block; font: 600 10px var(--hud); letter-spacing: .26em; } .cc-act-h span { display: block; font: 400 15px/1.45 var(--display); color: #fff; margin-top: 4px; }
.cc-act-l { font: 500 9px var(--hud); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cc-act textarea { width: 100%; resize: vertical; padding: 10px 12px; font: 400 13.5px var(--display); background: rgba(4, 5, 14, .45); border: 1px solid rgba(200, 210, 255, .12); border-radius: 10px; color: #fff; }
.cc-act textarea:focus { outline: none; border-color: color-mix(in srgb, currentColor 60%, transparent); }
.cc-act-c { font: 400 12px var(--display); color: var(--ink); } .cc-act-note { margin: 0; font: 400 12px var(--display); color: var(--muted); }
.cc-act-b { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(200, 210, 255, .2); background: rgba(255, 255, 255, .02); color: var(--ink);
  border-radius: 99px; padding: 7px 16px; font: 600 10px var(--hud); letter-spacing: .2em; cursor: pointer; }
.cc-btn .ic { width: 12px; height: 12px; }
.cc-btn:hover, .cc-btn:focus-visible { border-color: rgba(255, 255, 255, .6); color: #fff; outline: none; }
.cc-btn.go { color: #fff; border-color: transparent; background: linear-gradient(90deg, rgba(255, 122, 230, .5), rgba(169, 156, 255, .45)); box-shadow: 0 0 22px rgba(255, 122, 230, .3); }
.cc-btn.redo { color: var(--cyan); border-color: rgba(127, 230, 255, .35); } .cc-btn.stop { color: #ffb0bf; border-color: rgba(255, 92, 120, .35); }
.cc-btn.ghost { color: var(--muted); } .cc-btn:disabled { opacity: .45; cursor: default; }
.cc-assign { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font: 500 9px var(--hud); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.cc-assign select { padding: 5px 10px; border-radius: 99px; font: 400 12.5px var(--display); text-transform: none; letter-spacing: 0; }
.cc-wstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cc-wstats b { display: block; font: 200 30px/1 var(--display); color: #fff; } .cc-wstats span { font: 500 8.5px var(--hud); letter-spacing: .16em; color: var(--faint); }
.cc-wstats .s-working span { color: var(--cyan); } .cc-wstats .s-owner span { color: var(--amber); } .cc-wstats .s-decision span { color: var(--magenta); }

@keyframes cc-breathe { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes cc-cars { to { transform: translateX(90px); } }
@keyframes cc-fly { from { transform: translateX(-120px); } to { transform: translateX(1720px); } }
@keyframes cc-gait { from { --ph: -1; } to { --ph: 1; } }
@keyframes cc-breath { 0%, 100% { --breath: 0; } 45% { --breath: 1; } }   /* breathing: the chest rises and settles (the renderer reads --breath) */
/* walk → stop → look around → walk on → turn → walk back → turn (out and back at one pace) */
@keyframes cc-ra { 0% { translate: 0 0 0; --amp: 1; --face: var(--f0); --look: 0; }
  24% { translate: calc(var(--d) * .6) 0 calc(var(--dz) * .6); --amp: 1; } 26% { translate: calc(var(--d) * .61) 0 calc(var(--dz) * .61); --amp: 0; --look: 0; }
  31% { --look: -1; } 36% { --look: .7; } 41% { --look: 0; } 43% { translate: calc(var(--d) * .61) 0 calc(var(--dz) * .61); --amp: 0; } 45% { --amp: 1; }
  60% { translate: var(--d) 0 var(--dz); --amp: 1; } 61% { --amp: 0; --face: var(--f0); } 63% { --face: calc(var(--f0) * -1); --amp: 0; translate: var(--d) 0 var(--dz); }
  65% { --amp: 1; } 97% { translate: 0 0 0; --amp: 1; } 98% { --amp: 0; --face: calc(var(--f0) * -1); } 100% { translate: 0 0 0; --amp: 0; --face: var(--f0); } }
/* idle → the phone → walk → stop, look up → turn → walk back → turn */
@keyframes cc-rb { 0% { translate: 0 0 0; --amp: 0; --lift: 0; --look: 0; --face: var(--f0); --sway: 0; } 8% { --sway: 1; } 14% { --lift: 0; --look: 0; --sway: 0; }
  19% { --lift: 1; --look: .9; } 40% { --lift: 1; --look: .9; } 45% { --lift: 0; --look: 0; --amp: 0; translate: 0 0 0; } 47% { --amp: 1; }
  69% { translate: var(--d) 0 var(--dz); --amp: 1; } 71% { --amp: 0; --look: 0; } 75% { --look: -.7; } 79% { --look: 0; --face: var(--f0); }
  81% { --face: calc(var(--f0) * -1); --amp: 0; translate: var(--d) 0 var(--dz); } 83% { --amp: 1; } 98% { translate: 0 0 0; --amp: 1; }
  99% { --amp: 0; --face: calc(var(--f0) * -1); } 100% { translate: 0 0 0; --amp: 0; --face: var(--f0); } }
/* stand → shift weight → adjust (the umbrella, the bag) → look → half turn → back */
@keyframes cc-rc { 0%, 100% { --sway: 0; --lift: 0; --look: 0; --face: 1; } 15% { --sway: 1; } 30% { --sway: -.6; } 38% { --lift: .22; } 44% { --lift: 0; --sway: 0; }
  52% { --look: -.7; } 60% { --look: .5; } 66% { --look: 0; --face: 1; } 72%, 80% { --face: .35; } 86% { --face: 1; --sway: .7; } }
/* two people talking: weight shifts, a gesture, looking at each other and away */
@keyframes cc-rd { 0%, 100% { --sway: 0; --look: 0; --lift: 0; } 20% { --sway: .8; --lift: .35; } 32% { --lift: 0; } 45% { --look: .6; --sway: -.5; } 60% { --look: -.4; } 75% { --look: 0; --lift: .25; --sway: .4; } 85% { --lift: 0; } }
/* the director: reads the tablet → looks up at the city → walks a few steps → stops, reads → turns → walks back */
@keyframes cc-rl { 0%, 100% { --lift: .45; --look: .7; --dx: 0; --amp: 0; --face: var(--f0); } 16% { --lift: .45; --look: .7; } 20% { --lift: .1; --look: -.9; } 30% { --look: -.9; --sway: .3; }
  34% { --look: 0; --lift: .2; --sway: 0; --amp: 0; --dx: 0; } 36% { --amp: 1; } 50% { --dx: var(--pd); --amp: 1; } 52% { --amp: 0; --lift: .2; } 56% { --lift: .45; --look: .7; }
  72% { --lift: .45; --look: .7; --face: var(--f0); --dx: var(--pd); --amp: 0; } 74% { --face: calc(var(--f0) * -1); --lift: .2; --look: 0; } 76% { --amp: 1; } 92% { --dx: 0; --amp: 1; }
  94% { --amp: 0; --face: calc(var(--f0) * -1); } 97% { --face: var(--f0); --lift: .45; --look: .7; } }
/* the explorer: walks reading the hologram → stops → turns toward the AI CORE and looks up at it → walks back reading */
@keyframes cc-rq { 0% { --dx: 0; --amp: 0; --lift: .3; --look: .5; --face: var(--f0); } 6% { --amp: 1; } 26% { --dx: var(--pd); --amp: 1; --lift: .3; --look: .5; } 28% { --amp: 0; }
  34% { --lift: 0; --look: 0; --face: var(--f0); } 37% { --face: var(--fc); --look: -1.2; } 52% { --face: var(--fc); --look: -1.1; } 56% { --look: 0; --face: var(--f0); --lift: .3; }
  62% { --look: .5; --face: var(--f0); --dx: var(--pd); --amp: 0; } 64% { --face: calc(var(--f0) * -1); } 66% { --amp: 1; } 90% { --dx: 0; --amp: 1; --lift: .3; } 92% { --amp: 0; --face: calc(var(--f0) * -1); }
  95%, 100% { --face: var(--f0); --dx: 0; --amp: 0; } }
/* the builder: checks the device → crouches over the equipment → gets up → walks over → checks → back */
@keyframes cc-rw { 0%, 100% { --dx: 0; --amp: 0; --look: 0; --lift: 0; --face: var(--f0); --act: 0; --crouch: 0; } 8% { --look: .9; --lift: .35; --act: 1; } 18% { --look: .9; --lift: .35; --act: .3; }
  22% { --crouch: .9; --look: 1; --lift: .1; } 36% { --crouch: .9; --look: .8; --act: 1; } 40% { --crouch: 0; --look: 0; --lift: 0; --act: .5; --amp: 0; --dx: 0; } 42% { --amp: 1; }
  52% { --dx: calc(var(--pd) * .6); --amp: 1; } 54% { --amp: 0; --act: .1; } 62% { --look: .8; --lift: .35; --act: 1; } 72% { --look: 0; --lift: 0; --face: var(--f0); --act: .3; }
  74% { --face: calc(var(--f0) * -1); --dx: calc(var(--pd) * .6); --amp: 0; } 76% { --amp: 1; } 88% { --dx: 0; --amp: 1; --act: .9; } 90% { --amp: 0; --face: calc(var(--f0) * -1); } 93% { --face: var(--f0); --act: .2; } }
@keyframes cc-blink { 0%, 100% { opacity: 0; } 22% { opacity: .9; } 71% { opacity: 0; } }
@keyframes cc-adswap { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0; } }
@keyframes cc-pulse-up { 0% { translate: 0 0; opacity: 0; } 10% { opacity: .8; } 85% { opacity: .5; } 100% { translate: 0 var(--rise, -1150px); opacity: 0; } }
@keyframes cc-steam { 0% { translate: 0 0; opacity: 0; } 25% { opacity: var(--so, .5); } 100% { translate: 8px -70px; opacity: 0; } }
@keyframes cc-floor { 0%, 100% { opacity: 0; } 8% { opacity: .85; } 58% { opacity: .85; } 60% { opacity: 0; } }
@keyframes cc-glitch { 0%, 78%, 100% { translate: 0 0; opacity: 1; } 80% { translate: 2px 0; opacity: .3; } 81% { translate: -3px 1px; opacity: .8; } 82% { opacity: .1; } 85% { translate: 1px 0; opacity: .6; } 86% { translate: 0 0; opacity: 1; } }
@keyframes cc-ship { 0% { translate: 0 0; } 16% { translate: 2100px -30px; } 100% { translate: 2100px -30px; } }
/* under a hologram: walk → stop → look up at it a long while → walk on → turn → back */
@keyframes cc-re { 0% { translate: 0 0 0; --amp: 1; --face: var(--f0); --look: 0; } 28% { translate: calc(var(--d) * .7) 0 calc(var(--dz) * .7); --amp: 1; } 30% { --amp: 0; --look: 0; }
  34% { --look: -1.4; } 46% { --look: -1.3; --sway: .5; } 49% { --look: 0; --sway: 0; translate: calc(var(--d) * .7) 0 calc(var(--dz) * .7); --amp: 0; } 52% { --amp: 1; }
  64% { translate: var(--d) 0 var(--dz); --amp: 1; } 65% { --amp: 0; --face: var(--f0); } 67% { --face: calc(var(--f0) * -1); translate: var(--d) 0 var(--dz); --amp: 0; } 69% { --amp: 1; }
  98% { translate: 0 0 0; --amp: 1; } 99% { --amp: 0; --face: calc(var(--f0) * -1); } 100% { translate: 0 0 0; --amp: 0; --face: var(--f0); } }
/* to the AI CORE: walk in → stop → raise the device, read, look up at the core → back */
@keyframes cc-rf { 0% { translate: 0 0 0; --amp: 1; --lift: 0; --look: 0; --face: var(--f0); } 34% { translate: var(--d) 0 var(--dz); --amp: 1; } 36% { --amp: 0; --lift: 0; }
  41% { --lift: .9; --look: .7; } 52% { --lift: .9; --look: .7; } 56% { --lift: .5; --look: -1.2; } 63% { --look: -1.2; } 67% { --lift: 0; --look: 0; --face: var(--f0); translate: var(--d) 0 var(--dz); --amp: 0; }
  69% { --face: calc(var(--f0) * -1); } 71% { --amp: 1; } 98% { translate: 0 0 0; --amp: 1; } 99% { --amp: 0; --face: calc(var(--f0) * -1); } 100% { translate: 0 0 0; --amp: 0; --face: var(--f0); } }
/* two people meet: walk toward each other → talk (gestures, weight, looks) → turn away → part */
@keyframes cc-rg { 0% { translate: 0 0 0; --amp: 1; --face: var(--f0); --lift: 0; --look: 0; --sway: 0; } 28% { translate: var(--d) 0 var(--dz); --amp: 1; } 30% { --amp: 0; }
  36% { --lift: .35; --look: .3; --sway: .6; } 42% { --lift: 0; } 48% { --look: -.4; --sway: -.5; } 53% { --lift: .3; } 58% { --lift: 0; --look: 0; --sway: 0; --face: var(--f0); translate: var(--d) 0 var(--dz); --amp: 0; }
  60% { --face: calc(var(--f0) * -1); } 62% { --amp: 1; } 98% { translate: 0 0 0; --amp: 1; } 99% { --amp: 0; --face: calc(var(--f0) * -1); } 100% { translate: 0 0 0; --amp: 0; --face: var(--f0); } }
/* into a doorway: walk up → step in (gone) → a while later step out → walk back */
@keyframes cc-rh { 0% { translate: 0 0 0; --amp: 1; --face: var(--f0); --in: 1; } 30% { translate: var(--d) 0 var(--dz); --amp: 1; --in: 1; } 33% { translate: calc(var(--d) * 1.08) 0 var(--dz); --in: 0; --amp: 1; }
  34% { --amp: 0; } 66% { --in: 0; --face: calc(var(--f0) * -1); translate: calc(var(--d) * 1.08) 0 var(--dz); --amp: 0; } 67% { --amp: 1; } 69% { --in: 1; translate: var(--d) 0 var(--dz); }
  98% { translate: 0 0 0; --amp: 1; } 99% { --amp: 0; --face: calc(var(--f0) * -1); } 100% { translate: 0 0 0; --amp: 0; --face: var(--f0); --in: 1; } }
/* from far away into the street: walk toward the viewer → stop, look around → turn → back into the distance */
@keyframes cc-ri { 0% { translate: 0 0 0; --amp: 1; --face: var(--f0); --look: 0; } 42% { translate: var(--d) 0 var(--dz); --amp: 1; } 44% { --amp: 0; } 49% { --look: -.8; } 54% { --look: .6; }
  58% { --look: 0; --face: var(--f0); translate: var(--d) 0 var(--dz); --amp: 0; } 60% { --face: calc(var(--f0) * -1); } 62% { --amp: 1; } 98% { translate: 0 0 0; --amp: 1; } 99% { --amp: 0; --face: calc(var(--f0) * -1); } 100% { translate: 0 0 0; --amp: 0; --face: var(--f0); } }
@keyframes cc-sway { from { rotate: -.22deg; } to { rotate: .22deg; } }
@keyframes cc-shim { from { opacity: .62; } to { opacity: 1; } }
@keyframes cc-flicker { 0%, 61%, 66%, 100% { opacity: .82; } 62% { opacity: .25; } 64% { opacity: .7; } 65% { opacity: .1; } }
@keyframes cc-rain { to { background-position: -40px 200px; } }
@keyframes cc-stream { to { background-position: 0 22px; } }
@keyframes cc-work { 0%, 100% { opacity: .82; } 50% { opacity: 1; } }
@keyframes cc-flow { to { background-position: 22px 0; } }
@keyframes cc-pulse { 0%, 100% { opacity: .9; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cc-conduit, .cc-cars, .cc-fly, .cc-npc, .cc-wglyph, .cc-rain, .cc-stream, .cc-node, .cc-worker, .hsign, .ln, .ln .seg,
  .cc-wb, .cc-adswap, .cc-pulse, .cc-steam, .cc-sway, .cc-shim, .cc-ship, .cc-bldg, .bd-up, .bd-orbit i, .bd-mote, .bd-sigring, .bd-mission, .bd-tie .seg { animation: none !important; } .cc-ship { display: none; } .cc-rain, .cc-adswap.b, .cc-pulse, .cc-steam, .bd-mote { display: none; } .walker { transition: none; } .cc-cam, .cc-plane { transition: none !important; } }

/* responsive: preserve the same City → Building → Personal Space hierarchy as the HUD stacks down */
@media (max-width: 1180px) {
  .cc-shell { height: auto; width: auto; margin-left: 0; overflow: visible; }
  .cc-stage { position: relative; height: 62vh; min-height: 420px; }
  .cc-overlay { position: static; display: grid; gap: 16px; padding-top: 16px; }
  .cc-left, .cc-commander { display: none; }
  .cc-kpis, .cc-rail, .cc-center, .cc-right { position: static; width: auto; max-height: none; }
  .cc-kpis { order: -2; } .cc-rail { order: -1; max-width: none; }
}
@media (max-width: 860px) {
  .cc-shell { min-height: 100svh; padding: 0 12px 24px; background: transparent; }
  .cc-shell[data-view="city"] > .cc-stage { display: none; }
  .cc-shell[data-view="building"] > .cc-stage, .cc-shell[data-view="space"] > .cc-stage {
    display: block; position: relative; inset: auto; height: min(62svh, 620px); min-height: 390px; border: 1px solid rgba(180, 195, 255, .12); border-radius: 16px;
  }
  .cc-stage.in-space .cc-space-id, .cc-stage.in-building .bd-hud { left: 18px; top: 18px; }
  .cc-list { display: none; }
  .cc-mobile { display: grid; gap: 18px; }
  .cc-mlane h2 { margin: 0 0 4px; font: 500 10px var(--hud); letter-spacing: .22em; text-transform: uppercase; }
  .cc-mlane { padding: 0 2px; }
  .cc-mlane > div { display: grid; gap: 7px; }
  .cc-mlane .cc-row { padding: 12px; border-radius: 10px; background: rgba(12, 15, 34, .82); border: 1px solid var(--glass-line); }
  .m-decision h2 { color: var(--magenta); } .m-owner h2 { color: var(--amber); } .m-active h2 { color: var(--cyan); }
  .cc-kpis { flex-wrap: wrap; gap: 8px 16px; padding: 10px 2px 2px; opacity: 1; }
  .cc-kpi { min-height: 36px; padding: 6px 10px; border: 1px solid var(--glass-line); border-radius: 8px; background: rgba(12, 15, 34, .72); }
  .cc-kpi span { font-size: 9px; letter-spacing: .12em; opacity: .95; }
  .cc-kpi b { font-size: 17px; }
  .cc-rail { gap: 8px 16px; padding: 4px 2px; }
  .cc-world { opacity: .88; min-height: 32px; }
  .cc-right { width: 100%; padding: 16px; border-radius: 14px; background: rgba(10, 12, 30, .84); border-color: var(--glass-line); }
  .cc-center { width: 100%; gap: 14px; }
  .cc-mc-title { font-size: 17px; }
  .cc-role b { font-size: 13px; }
  header.cc-top { position: sticky; padding: 10px 14px; gap: 8px; background: rgba(3, 4, 10, .98); border-bottom: 1px solid var(--line); }
  header.cc-top .cc-brand { margin-right: auto; }
  header.cc-top #officeFilter { max-width: 46vw; }
  header.cc-top .hbtn { min-height: 36px; }
  header.cc-top .cc-people { display: none; }
}

/* ---------- final surface tuning: sharper hierarchy, restrained lighting, legible controls */
@media (min-width: 1181px) {
  .cc-kpis { opacity: 1; gap: 20px; }
  .cc-kpi span { color: rgba(222, 228, 255, .76); opacity: 1; }
  .cc-kpi b { color: rgba(245, 247, 255, .68); }
  .cc-rail { opacity: 1; }
  .cc-world { color: rgba(235, 239, 255, .82); opacity: .82; }
  .cc-world.on { opacity: 1; }
  .cc-right { width: 300px; background: rgba(8, 10, 26, .76); border-color: rgba(200, 210, 255, .18); box-shadow: 0 16px 50px rgba(0, 0, 0, .28); }
  .cc-center { width: 300px; }
}
.cc-navi, .cc-btn, .cc-icon-btn, .cc-mc-tabs button, .cc-space-back { transition: color .16s ease, background-color .16s ease, border-color .16s ease; }
.cc-navi:focus-visible, .cc-btn:focus-visible, .cc-icon-btn:focus-visible, .cc-mc-tabs button:focus-visible, .cc-space-back:focus-visible,
.cc-kpi:focus-visible, .cc-world:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .cc-navi, .cc-btn, .cc-icon-btn, .cc-mc-tabs button, .cc-space-back { transition: none !important; }
}

/* ---- City → Building → Personal Space. The Building entrance is a doorway of light in the person's own accent,
   behind them, only while they are chosen; their Space fills the stage (drawn by space-renderer.js); the static
   layer underneath is what a browser without WebGL keeps. Nothing here animates. */
.cc-portal { position: absolute; left: 0; top: 0; width: 70px; height: 112px; pointer-events: none; border: 2px solid var(--acc); border-bottom: 0;
  border-radius: 34px 34px 0 0; background: linear-gradient(0deg, color-mix(in srgb, var(--acc) 26%, transparent), transparent 70%);
  box-shadow: 0 0 18px color-mix(in srgb, var(--acc) 45%, transparent), inset 0 0 14px color-mix(in srgb, var(--acc) 30%, transparent); }
.cc-portal b, .cc-portal small { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; color: var(--acc); font: 700 9px var(--hud); letter-spacing: .14em; }
.cc-portal b { top: -26px; } .cc-portal small { top: -14px; font-size: 7px; opacity: .75; }
.cc-building { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; margin: 10px 0 4px; padding: 8px 10px; border: .5px solid var(--line); border-radius: 8px; }
.cc-building span { font: 600 9px var(--hud); letter-spacing: .14em; color: var(--muted); } .cc-building b { font-size: 12px; }
.cc-building .cc-link { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.cc-stage.in-space { background: #070618; }
.cc-space { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 72%, #1a1550 0, #0a0922 46%, #050512 100%); }
.cc-space-view, .c3d-space { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cc-space-fallback { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); text-align: center; color: var(--muted); font: 12px var(--hud); }
.cc-space-fallback i { display: block; width: 420px; height: 90px; margin: 0 auto 16px; border-radius: 50%; border: 1px solid rgba(127, 230, 255, .4);
  background: radial-gradient(closest-side, rgba(127, 230, 255, .14), transparent); }
.cc-space.has3d .cc-space-fallback { display: none; }
.cc-space-id { position: absolute; left: 96px; top: 96px; display: grid; gap: 2px; pointer-events: none; }
.cc-space-id small { font: 600 9px var(--hud); letter-spacing: .16em; color: var(--muted); } .cc-space-id b { font: 600 22px var(--display); color: var(--ink); }
.cc-space-back { position: absolute; left: 96px; top: 150px; padding: 6px 12px; border: .5px solid var(--line); border-radius: 999px; background: rgba(8, 9, 26, .6); color: var(--ink); font: 12px var(--hud); cursor: pointer; pointer-events: auto; }
.cc-space-back:hover, .cc-space-back:focus-visible { border-color: rgba(127, 230, 255, .6); }

/* ---- A Team's Building (building-scene.js; the Work placed by command-center.js). The space tells most of it: the
   team's tower and emblem, the AI Core, its missions as signals on the floor in their state's light (the colours come
   from the art direction through --sig), the people among them. The HUD is small: who this is, the way back, what the
   lights mean. Motion sits on the 3D elements themselves (never on their children). */
.cc-gates { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.cc-gate { position: absolute; left: 0; top: 0; pointer-events: auto; border: 0; background: none; padding: 0; cursor: pointer; display: grid; justify-items: center; gap: 6px; color: var(--acc); transform-origin: 50% 100%; }
.cc-gate .arch { display: block; width: 64px; height: 96px; border: 2px solid var(--acc); border-bottom: 0; border-radius: 30px 30px 0 0;
  background: linear-gradient(0deg, color-mix(in srgb, var(--acc) 30%, transparent), transparent 75%);
  box-shadow: 0 0 16px color-mix(in srgb, var(--acc) 50%, transparent), inset 0 0 14px color-mix(in srgb, var(--acc) 30%, transparent); }
.cc-gate .gsign { display: grid; justify-items: center; gap: 2px; padding: 4px 8px; border: 1px solid color-mix(in srgb, var(--acc) 70%, transparent); border-radius: 3px;
  background: rgba(8, 7, 24, .86); text-shadow: 0 0 6px var(--acc); white-space: nowrap; }
.cc-gate .gsign small { font: 600 7px var(--hud); letter-spacing: .2em; opacity: .8; } .cc-gate .gsign b { font: 700 11px var(--hud); letter-spacing: .14em; color: color-mix(in srgb, var(--acc) 60%, #fff); }
.cc-gate .cc-pips { font-style: normal; }
.cc-gate:hover .arch, .cc-gate:focus-visible .arch { background: linear-gradient(0deg, color-mix(in srgb, var(--acc) 55%, transparent), transparent 85%); }

.cc-stage.in-building { background: #04041a; }
.bd-floor { background:
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(127, 230, 255, .07) 119px 120px),
    repeating-linear-gradient(180deg, transparent 0 119px, rgba(127, 230, 255, .06) 119px 120px),
    linear-gradient(180deg, rgba(30, 20, 80, .65) 0%, rgba(14, 12, 44, .7) 35%, rgba(6, 6, 20, .85) 100%); }
.cc-face.bd-ring { border: 1.5px solid; border-radius: 50%; }
.cc-face.bd-pool { border-radius: 50%; }
.bd-world .cc-face.street, .bd-world .cc-face.bd-end { -webkit-box-reflect: below 0 linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 30%); }
.cc-face.bd-tower { -webkit-box-reflect: unset; }   /* a reflected face is composited on its own and the browser then sorts a Human Decision's signal behind it */
.cc-face.bd-emblem { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 22px; padding: 0 34px; color: var(--acc);
  border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--acc) 10%, transparent) 0 1px, transparent 1px 4px), rgba(6, 5, 22, .7);
  box-shadow: 0 0 40px color-mix(in srgb, var(--acc) 30%, transparent), inset 0 0 24px color-mix(in srgb, var(--acc) 18%, transparent); }
.bd-emblem b { font: 700 54px/1 var(--display); letter-spacing: .14em; color: color-mix(in srgb, var(--acc) 45%, #fff); text-shadow: 0 0 18px var(--acc); white-space: nowrap; overflow: hidden; }
.bd-emblem small { grid-column: 2; font: 600 13px var(--hud); letter-spacing: .4em; opacity: .75; }
.bd-glyph { grid-row: 1 / 3; width: 70px; height: 80px; background: var(--acc); opacity: .85; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%, 50% 0, 50% 14%, 12% 32%, 12% 68%, 50% 86%, 88% 68%, 88% 32%, 50% 14%); filter: drop-shadow(0 0 10px var(--acc)); }
.cc-face.bd-up { background: repeating-linear-gradient(180deg, rgba(160, 240, 255, .9) 0 3px, transparent 3px 26px); opacity: .5; animation: bd-up 3.2s linear infinite; }
.cc-face.bd-up.d2 { animation-duration: 4.1s; }
.cc-face.bd-column { opacity: .5; -webkit-mask-image: linear-gradient(0deg, #000 70%, transparent); mask-image: linear-gradient(0deg, #000 70%, transparent); }
.cc-stage.in-building.core-busy .cc-face.bd-column { opacity: .75; }
.cc-face.bd-crystal { width: 140px; height: 140px; }
.bd-crystal i { position: absolute; inset: 30px; transform: rotate(45deg); border: 1.5px solid rgba(200, 248, 255, .9); background: linear-gradient(135deg, rgba(127, 230, 255, .55), rgba(110, 80, 255, .25));
  box-shadow: 0 0 30px rgba(127, 230, 255, .6), inset 0 0 18px rgba(255, 255, 255, .35); }
.bd-crystal i.b { inset: 46px; transform: rotate(45deg) scale(.55); background: #e8fcff; box-shadow: 0 0 40px #7fe6ff, 0 0 90px rgba(127, 230, 255, .5); }
.cc-stage.in-building:not(.core-busy) .bd-crystal i.b { opacity: .6; }
.bd-orbit { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform-style: preserve-3d; pointer-events: none; }
.bd-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(127, 230, 255, .55); box-shadow: 0 0 12px rgba(127, 230, 255, .35); animation: bd-spin linear infinite; }
.bd-orbit.v i { border-color: rgba(180, 140, 255, .6); box-shadow: 0 0 12px rgba(180, 140, 255, .35); }
.bd-orbit i::after { content: ""; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: #e8fcff; box-shadow: 0 0 10px #7fe6ff; }
.cc-face.bd-mote { border-radius: 50%; background: #cfe8ff; box-shadow: 0 0 6px #7fe6ff; animation: bd-drift linear infinite; }

/* a mission: its floor ring, the beam of its state's light, a small hologram, its id (the title when chosen) */
.bd-sigring { position: absolute; left: 0; top: 0; width: 96px; height: 96px; border-radius: 50%; transform-origin: 0 0; pointer-events: none;
  border: 1.5px solid var(--sig); opacity: calc(.25 + var(--k) * .5);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sig) 40%, transparent), transparent); box-shadow: 0 0 20px color-mix(in srgb, var(--sig) 55%, transparent); }
.bd-sigring.mine { outline: 1.5px solid var(--sig); outline-offset: 10px; }   /* it is yours to handle (the server says so) */
.bd-sigring.m-pulse, .bd-sigring.m-interference { animation: bd-ring 2.6s ease-out infinite; }
.bd-sigring.m-breathe { animation: bd-breathe 7s ease-in-out infinite; }
.bd-mission { position: absolute; left: 0; top: 0; pointer-events: auto; border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink);
  display: grid; justify-items: center; transform-origin: 50% 100%; }
.bd-tag { display: grid; justify-items: center; gap: 1px; padding: 2px 7px; border-top: 1px solid var(--sig); background: rgba(6, 6, 20, .72); white-space: nowrap; }
.bd-tag b { font: 600 11px var(--hud); letter-spacing: .1em; color: color-mix(in srgb, var(--sig) 55%, #fff); }
.bd-tag i { font: 400 11px var(--display); font-style: normal; color: rgba(230, 236, 250, .85); }
.bd-holo { position: relative; width: 26px; height: 26px; margin: 6px 0 2px; }
.bd-holo i { position: absolute; inset: 6px; transform: rotate(45deg); border: 1.5px solid var(--sig); background: color-mix(in srgb, var(--sig) 25%, transparent); box-shadow: 0 0 12px var(--sig); }
.bd-beam { display: block; width: 8px; height: var(--h); border-radius: 4px; opacity: calc(.3 + var(--k) * .55);
  background: linear-gradient(0deg, var(--sig), color-mix(in srgb, var(--sig) 45%, transparent) 70%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--sig) 60%, transparent); }
.bd-mission.s-completed .bd-holo, .bd-mission.s-waiting .bd-holo { width: 16px; height: 16px; }
.bd-mission.s-completed .bd-tag { opacity: .5; }
.bd-mission.s-working { animation: cc-work 5s ease-in-out infinite; }   /* executing: the hologram works (the server reports an executor at work) */
.bd-mission.s-decision { animation: cc-pulse 4s ease-in-out infinite; }
.bd-mission.s-error { animation: cc-glitch 4.5s steps(1, end) infinite; }
.bd-mission.s-waiting { animation: bd-breathe 9s ease-in-out infinite; }
.bd-mission.on .bd-tag { border-top-width: 2px; background: rgba(10, 10, 30, .9); }
.bd-mission:hover .bd-tag, .bd-mission:focus-visible .bd-tag { background: rgba(14, 14, 40, .95); }
.bd-mission.mine .bd-tag b::after { content: " ●"; }
.bd-more { position: absolute; left: 0; top: 0; pointer-events: auto; border: .5px solid var(--line); border-radius: 999px; background: rgba(8, 9, 26, .7); color: var(--ink); padding: 3px 10px; font: 11px var(--hud); cursor: pointer; }
.bd-flow .seg { height: 2px; }
.cc-face.bd-panel { width: 150px; height: 100px; padding: 16px 14px; border: 1px solid rgba(127, 230, 255, .28); background: repeating-linear-gradient(180deg, rgba(127, 230, 255, .06) 0 1px, transparent 1px 4px), rgba(8, 10, 34, .35);
  box-shadow: 0 0 24px rgba(127, 230, 255, .12); }
.bd-panel .bars { display: grid; gap: 10px; } .bd-panel .bars i { display: block; height: 5px; border-radius: 3px; background: var(--sig); box-shadow: 0 0 8px var(--sig); }
.bd-panel .dots { display: flex; flex-wrap: wrap; gap: 12px; } .bd-panel .dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(180, 190, 255, .5); }
.bd-panel .dots i.on { background: #b48cff; border-color: transparent; box-shadow: 0 0 10px #b48cff; }
.cc-stage.in-building .cc-worker.k-person { cursor: pointer; }
.cc-stage.in-building .cc-worker.k-person:hover .cc-wglyph::after, .cc-stage.in-building .cc-worker.k-person:focus-visible .cc-wglyph::after { background: radial-gradient(closest-side, rgba(230, 230, 255, .5), transparent); }   /* the way into their Space */
.bd-hud { position: absolute; left: 96px; top: 96px; display: grid; justify-items: start; gap: 3px; pointer-events: none; }
.bd-hud small { font: 600 9px var(--hud); letter-spacing: .16em; color: var(--muted); } .bd-hud b { font: 600 22px var(--display); color: var(--ink); }
.bd-count { font: 11px var(--hud); color: var(--faint); }
.cc-space-back.bd-back { position: static; margin-top: 10px; }
.bd-legend { display: flex; gap: 12px; margin: 10px 0 0; padding: 0; list-style: none; font: 10px var(--hud); color: var(--faint); }
.bd-legend li { display: flex; align-items: center; gap: 5px; } .bd-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 6px var(--sig); }
/* who a Work waits on now: a line from the mission to that person in the state's own light, kept low (a Human
   Decision's sky signal stays the strongest light); a few points of light travel along it, mission → person. The
   line itself never blinks. Under reduced motion the points stand still and the line stays. */
.bd-ties, .bd-tie { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.bd-tie { opacity: .5; transition: opacity .6s ease; }
.bd-tie.r-decision { opacity: .72; } .bd-tie.r-executor { opacity: .42; }
.bd-tie.me { opacity: .85; } .bd-tie.on { opacity: 1; }
.bd-tie .seg.hit { pointer-events: auto; cursor: pointer; }
.bd-tie .seg { position: absolute; left: 0; top: -6px; height: 12px; transform-origin: 0 50%; pointer-events: none;
  background: radial-gradient(circle at 4px 50%, #fff 0 1.1px, var(--sig) 2px, transparent 3.2px) calc(var(--off) * -1) 0 / 130px 100% repeat-x,
    linear-gradient(180deg, transparent 5.3px, color-mix(in srgb, var(--sig) 60%, transparent) 5.3px 6.7px, transparent 6.7px);
  animation: bd-tie-flow 5.2s linear infinite; }
@keyframes bd-tie-flow { from { background-position: calc(var(--off) * -1) 0, 0 0; } to { background-position: calc(var(--off) * -1 + 130px) 0, 0 0; } }
/* the people in a Building keep their own habits; further from the viewer they move a little slower */
.cc-stage.in-building .cc-worker.look-director .cc-wglyph { animation-duration: calc(23s * var(--tempo, 1)), .52s, calc(4.6s * var(--tempo, 1)); }
.cc-stage.in-building .cc-worker.look-explorer .cc-wglyph { animation-duration: calc(17s * var(--tempo, 1)), .5s, calc(4.1s * var(--tempo, 1)); }
.cc-stage.in-building .cc-worker.look-builder .cc-wglyph { animation-duration: calc(19s * var(--tempo, 1)), .55s, calc(3.8s * var(--tempo, 1)); }
@keyframes bd-spin { to { transform: rotate(360deg); } }
@keyframes bd-up { to { background-position: 0 -58px; } }
@keyframes bd-drift { 0% { translate: 0 0; opacity: 0; } 15% { opacity: .8; } 100% { translate: 12px -260px; opacity: 0; } }
@keyframes bd-ring { 0%, 100% { opacity: .95; } 50% { opacity: .35; } }   /* attention: the ring pulses (opacity only) */
@keyframes bd-breathe { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }

/* escalate to Human Decision: a separate operation under the Owner Action controls */
.cc-act-esc { margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(255, 255, 255, .14); display: grid; gap: 6px; }
.cc-act-esc input { width: 100%; box-sizing: border-box; background: rgba(0, 0, 0, .35); color: inherit; border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; padding: 6px 8px; font: inherit; }
.cc-act-esc .cc-btn.esc { justify-self: start; }

/* Team Culture signs (city-scene.js cultureHtml): the Team's own neon, quiet like the rest of the city; brighter in its hours */
.hsign.culture { opacity: .82; font-size: 12px; } .hsign.culture.v { font-size: 15px; }
.hsign.culture.lively { opacity: 1; box-shadow: 0 0 14px color-mix(in srgb, currentColor 45%, transparent); }
.hsign.culture.loc { opacity: .7; }
/* a Team's landmarks: its own places on the street (team_culture: the first accepted lines and topics) */
.hsign.culture.landmark { opacity: .9; font-size: 24px; padding: 10px 8px; box-shadow: 0 0 18px color-mix(in srgb, currentColor 40%, transparent), inset 0 0 10px color-mix(in srgb, currentColor 25%, transparent); }
.hsign.culture.landmark:not(.v) { font-size: 17px; padding: 8px 14px; letter-spacing: .14em; }
.hsign.culture.landmark small { font-size: 8px; letter-spacing: .24em; display: flex; align-items: center; gap: 4px; }
.hsign.culture.landmark .rec { width: 6px; height: 6px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 6px #ff5a5a; }
.hsign.culture.landmark.off .rec { background: #4a2228; box-shadow: none; }
.cc-landmark-body { border: 1px solid color-mix(in srgb, var(--glow) 55%, transparent); border-radius: 3px; }
.cc-landmark-body.storefront { width: 120px; height: 62px; display: grid; place-items: end center; padding-bottom: 6px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--glow) 32%, transparent), color-mix(in srgb, var(--glow) 8%, #05050f) 70%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--glow) 28%, transparent); }
.cc-landmark-body.storefront span { font: 600 7px var(--hud); letter-spacing: .3em; color: #fff4dc; opacity: .85; }
.cc-landmark-body.studio { width: 170px; height: 92px; display: grid; grid-template-rows: 1fr 1fr 1fr; gap: 6px; padding: 10px;
  background: linear-gradient(180deg, #0b0a22, #070616); box-shadow: inset 0 0 26px color-mix(in srgb, var(--glow) 30%, transparent), 0 0 16px color-mix(in srgb, var(--glow) 18%, transparent); }
.cc-landmark-body.studio i { display: block; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--glow) 55%, transparent), transparent 80%); }
.cc-landmark-body.off { opacity: .35; box-shadow: none; }

/* ======================= Team Beta final UX (2026-11-26): one product from sign-in to Personal Space ===========
   Calm, dark, spatial; a little cyan / violet / magenta light. Hierarchy before decoration: what needs you, then who
   is doing what, then the details on request. Touch targets ≥ 44px on phones; nothing wider than the screen. */
html, body { overflow-x: hidden; }
header.cc-top .hbtn.icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; vertical-align: -2px; }
header.cc-top #notifyBtn.on { color: #e9fbff; border-color: rgba(127, 230, 255, .35); }
header.cc-top .hbtn.attn { position: relative; color: #f3efff; border-color: rgba(169, 156, 255, .5); background: rgba(169, 156, 255, .12); }
header.cc-top .hbtn.attn::before { content: ""; position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 8px var(--violet); }

/* drawers: the same glass and type as Mission Control */
.drawer { padding: 26px 28px 48px; font: 400 14px/1.6 var(--display); }
.drawer h2 { font: 600 21px/1.35 var(--display); letter-spacing: .01em; margin-bottom: 6px; color: #f4f5fb; }
.drawer h3 { font: 600 10.5px var(--hud); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 24px 0 10px; }
.drawer .lead { margin: 2px 0 18px; color: var(--muted); font-size: 14px; }
.drawer .note { font-size: 12.5px; color: var(--faint); }
.drawer label.block { font-size: 13px; color: #cdd3ea; margin: 16px 0 6px; font-weight: 500; }
.drawer textarea, .drawer input[type=text], .drawer input.full, .drawer select.full { padding: 10px 12px; font: 400 14px var(--display); border-radius: 10px; }
.drawer textarea:focus, .drawer input:focus, .drawer select:focus { outline: none; border-color: rgba(127, 230, 255, .5); box-shadow: 0 0 0 3px rgba(127, 230, 255, .1); }
.drawer .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn { min-height: 38px; padding: 8px 16px; border-radius: 10px; font: 500 13.5px var(--display); cursor: pointer; }
.btn.small { min-height: 32px; padding: 5px 12px; font-size: 12.5px; border-radius: 8px; }
.btn.primary { font-weight: 600; }
.btn:focus-visible, .cc-btn:focus-visible, .hbtn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.error { background: rgba(255, 92, 120, .1); color: #ffb3c1; border: 1px solid rgba(255, 92, 120, .3); border-radius: 10px; }
.empty { color: var(--faint); font-size: 13px; }

/* plain-language building blocks (AI 申請, 通知, 回報問題) */
.ux-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.ux-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(16, 20, 44, .55); border: 1px solid var(--line); }
.ux-list li span { color: var(--faint); font-size: 12.5px; }
.ux-state { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; border: 1px solid var(--line); background: rgba(16, 20, 44, .5); color: #cdd3ea; }
.ux-state.s-on { border-color: rgba(109, 255, 191, .3); background: rgba(109, 255, 191, .06); color: #c9ffe6; }
.ux-state.s-ready { border-color: rgba(127, 230, 255, .3); }
.ux-fixed { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px dashed rgba(180, 195, 255, .16); color: #dfe4f5; }
.ux-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.ux-more > summary { cursor: pointer; color: var(--muted); font-size: 12.5px; min-height: 32px; display: flex; align-items: center; list-style: none; }
.ux-more > summary::before { content: "＋"; margin-right: 6px; color: var(--faint); } .ux-more[open] > summary::before { content: "－"; }
.ux-more dl { grid-template-columns: 96px 1fr; font-size: 12.5px; margin-top: 6px; }
.ux-dl { display: grid; grid-template-columns: 76px 1fr; gap: 10px 14px; margin: 14px 0 4px; font-size: 14px; }
.ux-dl dt { color: var(--muted); font-size: 12.5px; padding-top: 2px; } .ux-dl dd small { display: block; color: var(--faint); font-size: 12px; }
.ux-why { color: #ffb3c1; }
.aireq-review { padding: 18px 18px 14px; margin-bottom: 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(169, 156, 255, .1), rgba(16, 20, 44, .55));
  border: 1px solid rgba(169, 156, 255, .3); }
.aireq-who { margin: 0; font-size: 16px; color: #f3efff; } .aireq-who b { font-weight: 600; }
.aireq-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .aireq-h b { font-weight: 500; }
pre.aireq-result { white-space: pre-wrap; word-break: break-word; padding: 14px 16px; border-radius: 12px; background: rgba(8, 10, 24, .7); border: 1px solid var(--line);
  font: 400 13.5px/1.7 var(--display); max-height: 65vh; overflow-y: auto; }
.card.fb { display: block; }

/* Mission Control: the first layer is five lines; everything else sits under Details */
.cc-mc-id b { white-space: nowrap; }
.cc-summary { margin-top: 4px; }
.cc-summary .cc-line { padding: 6px 0; }
.cc-summary .cc-line b small { display: block; margin-top: 1px; font: 400 11px var(--hud); letter-spacing: .04em; color: var(--faint); }
/* the quiet states stay quiet: only a decision (magenta) and owner attention (amber) call for attention */
.cc-row.s-working .mid, .cc-row.s-waiting .mid, .cc-row.s-queued .mid { opacity: .85; }
.cc-row.s-completed { opacity: .6; }

/* phones: "what needs me now" first; the City is there when asked for, not in the way */
@media (max-width: 860px) {
  header.cc-top { position: sticky; top: 0; padding: 10px 16px; gap: 8px; background: rgba(3, 4, 10, .96); border-bottom: 1px solid var(--line); }
  header.cc-top .cc-brand { flex: 1 1 auto; } .cc-brand h1 { font-size: 11px; letter-spacing: .24em; }
  header.cc-top #officeFilter { order: 10; flex: 1 1 100%; min-height: 40px; font-size: 14px; }
  header.cc-top .hbtn { min-height: 40px; padding: 6px 12px; font-size: 13px; }
  header.cc-top .hbtn.icon { width: 40px; }
  header.cc-top #logout, header.cc-top #myAi { display: none; }
  #aiReqSlot:empty { display: none; }
  #aiReqSlot { order: 11; flex: 1 1 100%; } #aiReqSlot .hbtn { width: 100%; }
  main { padding: 0 16px 24px; }
  .cc-shell { padding-top: 8px; }
  .cc-kpis { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .cc-kpi { min-height: 52px; }
  .cc-rail { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; } .cc-rail::-webkit-scrollbar { display: none; }
  .cc-mhead { margin: 4px 0 -4px; font: 600 18px var(--display); color: #f4f5fb; }
  .cc-mlane h2 { display: flex; justify-content: space-between; } .cc-mlane h2 span { color: var(--faint); }
  .cc-mlane .cc-row, .ux-rowbtn { min-height: 52px; padding: 8px 4px; width: 100%; }
  .m-aireq h2 { color: var(--violet); }
  .m-completed h2 { color: var(--green); }
  .ux-rowbtn { display: flex; justify-content: space-between; align-items: center; border: 1px solid rgba(169, 156, 255, .3); border-radius: 12px; padding: 12px 14px;
    background: rgba(169, 156, 255, .08); color: #f3efff; font: 500 14px var(--display); cursor: pointer; }
  .cc-right { border-radius: 18px; padding: 16px; }
  .cc-btn { min-height: 44px; }
  .cc-act textarea { font-size: 16px; }          /* no zoom-in on focus (iOS) */
  .drawer { width: 100%; padding: 18px 16px calc(40px + env(safe-area-inset-bottom)); border-left: 0; }
  .drawer textarea, .drawer input, .drawer select { font-size: 16px; }
  .drawer .btn { min-height: 44px; } .drawer .btn.small { min-height: 40px; }
  .drawer .actions .btn.primary { flex: 1 1 100%; }
  .drawer .close { font-size: 28px; padding: 6px 10px; margin: -6px -8px 0 0; }
  dl, .ux-more dl { grid-template-columns: 88px 1fr; }
  .ux-dl { grid-template-columns: 1fr; gap: 2px; } .ux-dl dd { margin-bottom: 10px; }
}
.backdrop { z-index: 39; } .drawer { z-index: 40; }   /* a drawer is above the header (the header no longer covers its close button) */
@media (max-width: 860px) {
  header.cc-top .hbtn.primary[data-form="work"] { font-size: 0; width: 44px; padding: 0; }
  header.cc-top .hbtn.primary[data-form="work"]::before { content: "＋"; font-size: 20px; line-height: 1; }
  header.cc-top #feedbackBtn { padding: 6px 10px; }
}
/* Work detail: the same first layer as Mission Control (who · status · step · waiting on · next), then the action */
.ux-summary { grid-template-columns: 84px 1fr; gap: 10px 14px; margin: 14px 0 6px; font-size: 14px; }
.ux-summary dt { color: var(--muted); font-size: 12.5px; padding-top: 2px; }
.ux-summary dd small { display: block; color: var(--faint); font: 400 11.5px var(--hud); margin-top: 1px; }
i.me { font: 600 9px var(--hud); font-style: normal; letter-spacing: .12em; color: #ffc9f3; margin-left: 4px; }
.ux-act { display: grid; gap: 4px; margin: 14px 0 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid; }
.ux-act b { font: 600 10.5px var(--hud); letter-spacing: .18em; } .ux-act span { font-size: 14.5px; color: #f4f5fb; }
.ux-act .actions { margin-top: 8px; }
.ux-act.a-decision { border-color: rgba(255, 122, 230, .45); background: linear-gradient(180deg, rgba(255, 122, 230, .12), rgba(255, 122, 230, .03)); }
.ux-act.a-decision b { color: var(--magenta); }
.ux-act.a-owner { border-color: rgba(255, 180, 92, .4); background: rgba(255, 180, 92, .06); }
.ux-act.a-owner b { color: var(--amber); }
/* Mission Control's first layer: the label sits above its value, so a value gets the panel's whole width */
.cc-summary .cc-line { grid-template-columns: 14px minmax(0, 1fr); row-gap: 1px; padding: 5px 0; }
.cc-summary .cc-line > span { grid-column: 2; } .cc-summary .cc-line > b { grid-column: 2; }
.cc-summary .cc-line .ic { grid-row: 1 / 3; align-self: start; margin-top: 2px; }
.cc-summary .cc-line.next b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 860px) { .drawer { background: #070916; } }
@media (max-width: 860px) { .cc-center { order: -3; } }   /* a phone opens on 現在需要你處理的事; the counters and Spaces follow */
@media (min-width: 861px) { .drawer, .backdrop { top: 48px; } .drawer { border-top-left-radius: 14px; } }   /* desktop: the header stays reachable above an open drawer */

/* ---------------------------------------------------------------- Mission Control / Work: the human first layer (2026-11-26)
   Same neon and glass; the hierarchy is a product's: the title, then where it stands for you, then one action. */
.cc-mc-title { margin: 2px 0 0; font: 600 18px/1.35 var(--display); color: #fff; }
.cc-mc-state { display: flex; align-items: center; gap: 8px; margin-top: -4px; }
.cc-mc-state .ic { width: 14px; height: 14px; flex: none; }
.cc-mc-state b { font: 600 13.5px var(--display); letter-spacing: .02em; color: #eef0fa; }
.cc-mc-state.turn-decision b, .cc-mc-state.s-decision.turn-decision .ic { color: #ffc9f3; }
.cc-mc-state.turn-owner b, .cc-mc-state.turn-owner .ic { color: #ffd4a0; }
.cc-mc-state.s-working b { color: #d6f6ff; }
.cc-mc-wid { margin-left: auto; font: 400 10.5px var(--hud); letter-spacing: .06em; color: var(--faint); opacity: .75; white-space: nowrap; }
.cc-line span { text-transform: none; letter-spacing: .08em; font-size: 10.5px; }
.cc-line b small { display: block; margin-top: 1px; font: 400 11px var(--hud); letter-spacing: .04em; color: var(--faint); }
.cc-act-h b { font: 600 15px/1.3 var(--display); letter-spacing: .03em; }
.cc-act-h span { font-size: 13.5px; color: rgba(244, 245, 251, .85); }
.cc-act.a-decision .cc-act-h span { font-size: 15px; color: #fff; }
.cc-act-why { margin: 0; font: 400 12px/1.5 var(--display); color: rgba(255, 214, 246, .85); }
.cc-act-ai { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; padding: 8px 10px; border-radius: 10px; background: rgba(169, 156, 255, .08); border: 1px dashed rgba(169, 156, 255, .35); font: 400 12.5px var(--display); }
.cc-act-ai b { font-weight: 600; color: #d9d2ff; } .cc-act-ai span { color: var(--muted, #b9bfd9); }
.cc-act-dl { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 6px 10px; margin: 2px 0 0; font: 400 13.5px/1.45 var(--display); }
.cc-act-dl dt { color: var(--faint); font-size: 12px; padding-top: 1px; } .cc-act-dl dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.cc-act-l, .cc-act-c { text-transform: none; letter-spacing: .04em; }
.cc-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; min-height: 32px; font: 500 11.5px var(--display); letter-spacing: .06em; color: var(--faint); }
.cc-more > summary::-webkit-details-marker { display: none; }
.cc-more > summary::before { content: "›"; display: inline-block; transition: transform .16s ease; }
.cc-more[open] > summary::before { transform: rotate(90deg); }
.cc-more > summary:hover { color: var(--ink); }
.cc-more[open] > summary { margin-bottom: 8px; }
.cc-mc-detail, .cc-ops { border-top: 1px solid var(--line); padding-top: 4px; }
.cc-ops .cc-owner-acts { border-top: 0; padding-top: 0; } .cc-ops .cc-assign { margin-top: 10px; }
.cc-mc-tabs button { text-transform: none; letter-spacing: .06em; font-size: 11px; }
/* the counters: what needs you is the headline; the rest is quieter */
.cc-now { margin: 0; align-self: center; font: 600 12px var(--display); letter-spacing: .08em; color: rgba(238, 240, 250, .9); text-shadow: 0 1px 10px #000; }
.cc-kpi-me, .cc-kpi-rest { display: flex; gap: 14px; align-items: baseline; }
.cc-kpi span { text-transform: none; letter-spacing: .06em; font-size: 11px; }
.cc-kpi-me .cc-kpi b { font-size: 22px; }
.cc-kpi-me .cc-kpi.lit span { color: #fff; opacity: .95; }
.cc-kpi-rest { opacity: .62; }
/* the list: the title leads, the Work ID follows small */
.cc-row { grid-template-columns: 12px minmax(0, 1fr) auto auto 12px; }
.cc-row .mid { font-size: 10px; color: var(--faint); opacity: .8; }
.cc-row .pill { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-tabs .cc-tab { text-transform: none; letter-spacing: .06em; }
/* the Work page's first line */
.ux-state { margin: 10px 0 0; } .ux-state b { font: 600 15px var(--display); letter-spacing: .02em; }
.ux-state.turn-decision b, .ux-state.s-decision b { color: var(--magenta); } .ux-state.turn-owner b, .ux-state.s-owner b, .ux-state.s-error b { color: var(--amber); }
.ux-act b { font: 600 15px var(--display); letter-spacing: .02em; }
@media (max-width: 860px) {
  .cc-now { display: none; }   /* the phone has its own heading: 現在需要你處理的事 */
  .cc-kpi-me, .cc-kpi-rest { display: contents; }
  .cc-kpi-rest { opacity: 1; }
  .cc-more > summary { min-height: 44px; font-size: 13px; }
  .cc-mc-title { font-size: 19px; }
  .cc-row { grid-template-columns: 12px minmax(0, 1fr) auto 12px; }
  .cc-row .mid { display: none; }
  .cc-row .pill { max-width: 128px; }
}
.cc-right .cc-btn, .cc-act .cc-btn { font-family: var(--display); font-size: 12.5px; letter-spacing: .04em; text-transform: none; }
.cc-act .cc-btn.go { font-weight: 600; padding: 9px 16px; }
.cc-row .mid { display: none; }   /* the ID is in Mission Control; the list leads with the title */
.cc-row .pill, .cc-right .pill { text-transform: none; letter-spacing: .04em; font-family: var(--display); font-size: 11.5px; }
.cc-mc-back { display: none; }
@media (max-width: 860px) {
  .cc-mlane h2 { font: 600 13px var(--display); letter-spacing: .04em; text-transform: none; }
  #missionControl .cc-icon-btn, .cc-mc-tabs button { min-width: 44px; min-height: 44px; }   /* thumb-sized, like every other button here */
  .drawer .close { min-width: 44px; min-height: 44px; }                                         /* the way back out of a drawer, too */
  .cc-mc-back { display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 -4px; padding: 0 4px; border: 0; background: none; color: var(--cyan); font: 500 13px var(--display); cursor: pointer; justify-self: start; }
}
/* a Human Decision: three buttons, each with one line of what it does (2026-11-27) */
/* one row each: the button, then what it does (the Mission Control column is narrow — three side by side would squeeze both) */
.cc-choices { display: grid; grid-template-columns: 1fr; gap: 8px; }
.cc-choice { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; column-gap: 10px; }
.cc-choice .cc-btn { width: 100%; justify-content: center; white-space: nowrap; }
.cc-choice small { font: 400 12px/1.4 var(--display); color: var(--muted, #b9bfd9); }
@media (max-width: 860px) {
  .cc-choices { grid-template-columns: 1fr; gap: 10px; }
  .cc-choice { grid-template-columns: 112px minmax(0, 1fr); column-gap: 12px; }
  .cc-choice .cc-btn { min-height: 44px; }
  .cc-choice small { font-size: 13px; }
}

/* Louvacity (2026-11-27): the name, and on a wide screen its line — quiet, never louder than the work */
@media (min-width: 1200px) {
  .cc-brand small { display: block; margin-top: 3px; font: 400 9.5px/1.2 var(--display); letter-spacing: .04em; color: var(--faint); white-space: nowrap; }
  .cc-brand { flex: none; margin-right: 16px; }   /* the line keeps its own room: it never runs under the Space picker */
}
