/* AKARTA Founder HQ v1 (contracts/hq/founder_hq_v1.md).
   Every colour that carries meaning is paired with a glyph and a text label, never colour alone. */

:root {
  --bg: #0a0d12;
  --bg-2: #0e1219;
  --surface: #121821;
  --surface-2: #171e29;
  --surface-3: #1d2532;
  --line: #243041;
  --line-soft: #1b2431;
  --text: #e7ecf3;
  --text-2: #b8c2d0;
  --muted: #8a97a8;
  --faint: #5d6a7c;
  --accent: #8fb4ff;
  --accent-2: #c8d8ff;
  --focus: #ffd166;

  --s-working: #3fd69a;
  --s-waiting: #6aa8ff;
  --s-blocked: #ff6b6b;
  --s-attention: #ffbe3d;
  --s-completed: #b39dff;
  --s-idle: #6b7a8f;
  --s-model: #ff9d5c;
  --s-unavailable: #4b5768;
  --s-stale: #9aa6b6;
  --s-disconnected: #4b5768;

  --t-live: #3fd69a;
  --t-demo: #ffbe3d;
  --t-disc: #8a97a8;
  --t-stale: #c3cad5;

  --dcr: #36d1dc;
  --dcr-bg: #071116;
  --dcr-surface: #0b1a21;
  --dcr-line: #15343d;

  --r: 10px;
  --r-sm: 6px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --rail-w: 232px;
  --cmd-h: 56px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); font-size: 12px; }
.small { font-size: 12px; }
.error { color: var(--s-blocked); margin: 0; }
.error:empty { display: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--focus); color: #111; padding: 8px 12px; border-radius: 6px; }
.skip:focus { top: 8px; }

/* ---- buttons, chips ------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; }
.btn:hover { border-color: #33435a; background: var(--surface-3); }
.btn.primary { background: #2a4b8d; border-color: #3a62b4; }
.btn.primary:hover { background: #3359a6; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 30px; padding: 0 10px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--text-2); white-space: nowrap; }
button.chip { cursor: pointer; }
button.chip:hover { border-color: #33435a; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg-btn { min-height: 32px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.seg-btn + .seg-btn { border-left: 1px solid var(--line); }
.seg-btn[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.scale select, select.input { min-height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); padding: 0 8px; font-size: 12px; }

/* ---- truth badges ---------------------------------------------------------- */
.truth-badge, .truth { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 4px;
  font: 600 10.5px/18px var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.truth:empty { display: none; }
.truth-badge::before, .truth::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.t-live { color: var(--t-live); border-color: #1f5c46; background: #0d2219; }
.t-demo { color: var(--t-demo); border-color: #6b5214; background: repeating-linear-gradient(135deg, #251c07 0 6px, #1b1506 6px 12px); }
.t-demo::before { border-radius: 1px; transform: rotate(45deg); }
.t-disc { color: var(--t-disc); border-color: #3a4556; background: #141a22; }
.t-disc::before { background: transparent; border: 1.5px solid currentColor; width: 6px; height: 6px; }
.t-stale { color: var(--t-stale); border-color: #3a4556; border-style: dashed; background: #141a22; }
.t-stale::before { background: transparent; border: 1.5px dashed currentColor; }
.t-snap { color: var(--dcr); border-color: #1d4b54; background: #0b1c21; }

/* ---- sign in --------------------------------------------------------------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 50% -10%, #142034 0%, var(--bg) 60%); }
.login-card { width: min(380px, 100%); display: grid; gap: 14px; padding: 32px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.login-card h1 { font-size: 22px; }
.login-card p { margin: 0; }
.login-card label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.login-card input { min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); font-size: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 18px; height: 18px; border-radius: 4px; background: conic-gradient(from 210deg, #8fb4ff, #3fd69a, #8fb4ff); box-shadow: 0 0 0 1px #2a3a55 inset; }
.brand-word { font-weight: 700; letter-spacing: .22em; font-size: 13px; }
.brand-sub { color: var(--muted); font-size: 13px; }

/* ---- command bar ----------------------------------------------------------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.cmd { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; height: var(--cmd-h); padding: 0 18px;
  background: rgba(10, 13, 18, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.cmd-org { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.org-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.freshness { font-size: 12px; white-space: nowrap; }
.cmd-controls { display: flex; align-items: center; gap: 10px; }
.model-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--s-model); }
.model-chip.ok .dot { background: var(--s-working); }
.spend { font-size: 12px; white-space: nowrap; }
.user-dot { font-weight: 600; font-size: 13px; }
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: 44px; min-width: 230px; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.menu-list a, .menu-list button { display: block; width: 100%; padding: 9px 10px; border-radius: 6px; border: 0; background: none; text-align: left; color: var(--text); cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--surface-3); text-decoration: none; }
.menu-user { display: block; padding: 8px 10px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.pop { position: fixed; right: 18px; top: calc(var(--cmd-h) + 8px); z-index: 30; width: min(420px, calc(100vw - 32px)); padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); box-shadow: 0 20px 50px rgba(0,0,0,.5); display: grid; gap: 12px; }
.pop h2 { font-size: 15px; }

.banner { margin: 0; padding: 10px 18px; font-size: 13px; border-bottom: 1px solid var(--line-soft); }
.banner.demo { background: repeating-linear-gradient(135deg, #1f1806 0 10px, #1a1405 10px 20px); color: #ffd98a; }
.banner.disc { background: #1a1f27; color: var(--text-2); }
.banner strong { font-family: var(--mono); letter-spacing: .06em; margin-right: 8px; }

/* ---- shell ----------------------------------------------------------------- */
.shell { flex: 1; background: linear-gradient(90deg, var(--bg-2) var(--rail-w), transparent var(--rail-w)); display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 0; }
.rail { position: sticky; top: var(--cmd-h); align-self: start; height: calc(100vh - var(--cmd-h)); overflow-y: auto; padding: 14px 10px 24px; border-right: 1px solid var(--line-soft); background: var(--bg-2); }
.rail ul { list-style: none; margin: 0; padding: 0; }
.rail-link { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 8px; color: var(--text-2); }
.rail-link:hover { background: var(--surface); text-decoration: none; color: var(--text); }
.rail-link[aria-current="page"] { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.rail-h { margin: 18px 10px 6px; font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.rail-depts .rail-link { justify-content: space-between; font-size: 13px; }
.rail-dept-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-dept-meta { display: inline-flex; gap: 4px; align-items: center; }
.rail-sep { height: 1px; background: var(--line-soft); margin: 14px 6px; }
.rail-dcr { color: var(--dcr); }
.rail-dcr[aria-current="page"] { box-shadow: inset 2px 0 0 var(--dcr); }
.rail-note { margin: 6px 10px 0; font-size: 11.5px; color: var(--faint); }
.ri { width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 4px; opacity: .85; flex: none; }
.ri-dir { border-radius: 50%; }
.ri-org { border-radius: 2px; border-width: 1.5px 1.5px 0; height: 10px; }
.ri-dcr { transform: rotate(45deg); border-radius: 2px; width: 12px; height: 12px; margin: 0 2px; }

.stage { min-width: 0; padding: 16px 22px 40px; outline: none; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); min-height: 22px; margin-bottom: 10px; }
.crumbs a { color: var(--text-2); }
.crumbs .sep { color: var(--faint); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }

/* ---- state vocabulary ------------------------------------------------------ */
.st-working { --st: var(--s-working); }
.st-waiting { --st: var(--s-waiting); }
.st-blocked { --st: var(--s-blocked); }
.st-attention { --st: var(--s-attention); }
.st-completed { --st: var(--s-completed); }
.st-idle { --st: var(--s-idle); }
.st-model { --st: var(--s-model); }
.st-unavailable { --st: var(--s-unavailable); }
.st-stale { --st: var(--s-stale); }
.st-disconnected { --st: var(--s-disconnected); }

.glyph { display: inline-grid; place-items: center; width: 14px; height: 14px; flex: none; color: var(--st); font: 700 10px/1 var(--mono); }
.glyph::before { content: ""; }
.st-working .glyph::before, .glyph.st-working::before { content: "▶"; font-size: 8px; }
.st-waiting .glyph::before, .glyph.st-waiting::before { content: "‖"; }
.st-blocked .glyph::before, .glyph.st-blocked::before { content: "■"; font-size: 9px; }
.st-attention .glyph::before, .glyph.st-attention::before { content: "!"; font-size: 11px; }
.st-completed .glyph::before, .glyph.st-completed::before { content: "✓"; font-size: 11px; }
.st-idle .glyph::before, .glyph.st-idle::before { content: "○"; font-size: 10px; }
.st-model .glyph::before, .glyph.st-model::before { content: "M"; font-size: 9px; }
.st-unavailable .glyph::before, .glyph.st-unavailable::before { content: "–"; }
.st-stale .glyph::before, .glyph.st-stale::before { content: "?"; font-size: 11px; }
.st-disconnected .glyph::before, .glyph.st-disconnected::before { content: "⌀"; font-size: 11px; }

.state-tag { display: inline-flex; align-items: center; gap: 5px; color: var(--st); font-size: 12px; font-weight: 600; white-space: nowrap; }
.state-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 6px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--st); background: color-mix(in srgb, var(--st) 12%, transparent); border: 1px solid color-mix(in srgb, var(--st) 35%, transparent); white-space: nowrap; }

/* ---- HQ overview ----------------------------------------------------------- */
.hq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.hq-main { min-width: 0; display: grid; gap: 16px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; }
.page-head .sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; max-width: 70ch; }

.pulse-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.pulse-tile { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--surface); text-align: left; cursor: pointer; min-height: 64px; }
.pulse-tile:hover { border-color: var(--line); }
.pulse-tile[aria-pressed="true"] { border-color: var(--st); box-shadow: inset 0 0 0 1px var(--st); }
.pulse-tile .n { font: 600 22px/1.1 var(--font); color: var(--text); }
.pulse-tile .n.zero { color: var(--faint); }
.pulse-tile .l { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
.statebar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line-soft); }
.statebar span { background: var(--st); min-width: 2px; }
.statebar.big { height: 8px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; gap: 5px; align-items: center; }

.floors { display: grid; gap: 14px; }
.floor { border: 1px solid var(--line-soft); border-radius: 14px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); padding: 12px; position: relative; }
.floor-label { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.floor-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; align-items: start; grid-auto-flow: row dense; }
.room.wide { grid-column: 1 / -1; }
.room.wide .bays { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); align-items: start; }
.room.wide .desks { grid-template-columns: minmax(0, 1fr); }
.room-purpose { margin: 0; font-size: 12px; color: var(--faint); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.floor.size-l .floor-rooms { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.floor.size-l .bays { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }

.founder-node { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); width: max-content; max-width: 100%; }
.founder-node .avatar { --st: var(--accent); }
.founder-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.founder-row .muted { font-size: 12px; }

.room { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .15s ease; min-width: 0; }
.room:hover { border-color: #34465f; }
.room.quiet { background: color-mix(in srgb, var(--surface) 70%, var(--bg)); }
.room.dim { opacity: .45; }
.room-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.room-title { font-size: 15px; }
.room-title a { color: var(--text); }
.room-sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.room-flags { max-width: 55%; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.flag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; color: var(--st); border: 1px solid color-mix(in srgb, var(--st) 40%, transparent); white-space: nowrap; }
.flag.plain { --st: var(--muted); }
.room-lead { display: flex; align-items: center; gap: 8px; }
.bays { display: grid; gap: 8px; align-items: start; }
.bay { border-radius: 8px; border: 1px dashed var(--line); padding: 8px; min-width: 0; }
.bay-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 11.5px; color: var(--muted); }
.bay-head a { color: var(--text-2); font-weight: 600; }
.bay-head .count { font-family: var(--mono); font-size: 11px; }

/* Worker tokens at three densities: desk (detail), token (compact), cell (dense). */
.desks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.desk { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-soft);
  background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer; min-height: 56px; width: 100%; }
.desk:hover { border-color: color-mix(in srgb, var(--st) 55%, var(--line)); }
.desk .who { min-width: 0; }
.desk .name { font-weight: 600; font-size: 13.5px; }
.desk .role { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk .doing { grid-column: 1 / -1; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 6px; align-items: center; }
.desk .doing .state-tag { flex: none; }
.desk .doing .what { overflow: hidden; text-overflow: ellipsis; color: var(--muted); }

.avatar { position: relative; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-3); color: var(--text); font: 600 12px/1 var(--font); letter-spacing: .02em; box-shadow: 0 0 0 2px var(--st, var(--s-idle)); }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; box-shadow: 0 0 0 3px var(--st); }
.avatar .badge { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--st); display: grid; place-items: center; }
.avatar.lg .badge { width: 22px; height: 22px; }
.st-stale .avatar, .avatar.st-stale { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3.5px var(--s-stale); background: repeating-linear-gradient(135deg, var(--surface-3) 0 4px, var(--surface-2) 4px 8px); }
.st-unavailable .avatar, .st-disconnected .avatar { opacity: .6; }

/* Motion only for activity backed by fresh evidence (state.motion === "activity"); none if reduced motion is asked for. */
.is-active .avatar::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--s-working); opacity: 0; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.85); opacity: .7; } 80%, 100% { transform: scale(1.25); opacity: 0; } }
.changed { animation: changed 2.6s ease-out 1; }
@keyframes changed { 0% { box-shadow: 0 0 0 2px var(--focus); } 100% { box-shadow: 0 0 0 0 transparent; } }

.tokens { display: flex; flex-wrap: wrap; gap: 6px; }
.token { display: grid; justify-items: center; gap: 3px; width: 64px; padding: 6px 2px 4px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--text); cursor: pointer; }
.token:hover { background: var(--surface-2); border-color: var(--line-soft); }
.token .avatar { width: 32px; height: 32px; font-size: 11px; }
.token .tname { font-size: 11px; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }

.cells { display: flex; flex-wrap: wrap; gap: 3px; }
.cell { width: 13px; height: 13px; padding: 0; border-radius: 3px; border: 0; background: var(--st); cursor: pointer; opacity: .92; }
.cell:hover { opacity: 1; outline: 1px solid var(--text); }
.cell.st-idle { background: #2a3443; box-shadow: inset 0 0 0 1px #3a4758; }
.cell.st-stale { background: repeating-linear-gradient(135deg, #9aa6b6 0 2px, #2a3443 2px 4px); }
.cell.st-waiting { background: transparent; box-shadow: inset 0 0 0 2px var(--s-waiting); }
.cell.st-unavailable, .cell.st-disconnected { background: #222a35; }
.cell.st-blocked { border-radius: 0; }
.cell.st-attention { border-radius: 50%; }
.cell.hl { outline: 2px solid var(--focus); outline-offset: 1px; }
.desk.hl, .token.hl { box-shadow: 0 0 0 2px var(--focus); }
.dimmed { opacity: .28; }

.room-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: auto; }
.room-foot a { font-weight: 600; }

/* ---- side: executive attention layer -------------------------------------- */
.side { display: grid; gap: 14px; position: sticky; top: calc(var(--cmd-h) + 12px); max-height: calc(100vh - var(--cmd-h) - 24px); overflow-y: auto; padding-right: 2px; }
.panel { border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); padding: 14px; min-width: 0; }
.panel h2, .panel h3 { font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel-k { font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel p { margin: 6px 0 0; }
.alist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.aitem { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; padding: 8px; border-radius: 8px; border: 1px solid var(--line-soft); background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer; width: 100%; }
.aitem:hover { border-color: color-mix(in srgb, var(--st) 50%, var(--line)); text-decoration: none; }
.aitem .t { font-size: 13px; font-weight: 600; }
.aitem .d { grid-column: 2; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aitem .glyph { margin-top: 3px; }
.more { font-size: 12px; margin-top: 6px; }
.empty { font-size: 12.5px; color: var(--muted); padding: 6px 0 0; }

.where { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.where li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; color: var(--text-2); font-size: 12.5px; }
.where li a:hover { text-decoration: none; color: var(--text); }
.where .statebar { grid-column: 1 / -1; }

.pulse-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.slot { border: 1px dashed var(--line); border-radius: 8px; padding: 8px; min-height: 58px; }
.slot h4 { font-size: 12px; color: var(--text-2); }
.slot p { font-size: 11.5px; color: var(--faint); margin: 4px 0 0; }
.pulse-items { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.pulse-items li { padding: 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-soft); font-size: 12.5px; }
.pulse-items .k { font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---- feeds ----------------------------------------------------------------- */
.feeds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feed { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.feed li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 12.5px; }
.feed li:first-child { border-top: 0; }
.feed time { font-family: var(--mono); font-size: 11.5px; color: var(--faint); padding-top: 1px; }
.feed .who { font-weight: 600; color: var(--text); }
.feed button.linkish, .linkish { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-align: left; }
.linkish:hover { text-decoration: underline; }

/* ---- department / team ----------------------------------------------------- */
.dept-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 20px; align-items: end; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.dept-hero h1 { font-size: 24px; }
.dept-hero .statebar { grid-column: 1 / -1; }
.dept-hero .sub { margin: 4px 0 8px; max-width: 80ch; }
.kv { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); }
.kv b { color: var(--text-2); font-weight: 600; }
.team-bays { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.team-bay { border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); padding: 12px; display: grid; gap: 10px; align-content: start; }
.team-bay h2 { font-size: 14px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.team-bay h2 a { color: var(--text); }
.work-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.work-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: start; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line-soft); background: var(--surface-2); }
.work-item .title { font-weight: 600; font-size: 13px; }
.work-item .meta { grid-column: 2 / -1; font-size: 12px; color: var(--muted); }
.work-item .glyph { margin-top: 3px; }

/* ---- worker drill-down ----------------------------------------------------- */
.worker-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.worker-hero h1 { font-size: 26px; }
.worker-hero .role { color: var(--text-2); margin-top: 2px; }
.worker-hero .kv { margin-top: 8px; }
.wgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 14px; }
.wcol { display: grid; gap: 14px; min-width: 0; }
.state-box { border-left: 3px solid var(--st); padding: 2px 0 2px 12px; }
.state-box .reason { margin: 6px 0 0; color: var(--text-2); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 10px 0 0; font-size: 12.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cap { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.cap .r { font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.cap.ready .r { color: var(--s-working); }
.cap.connection_required .r, .cap.licence_required .r, .cap.approval_required .r { color: var(--s-attention); }
.cap.blocked .r, .cap.not_granted .r { color: var(--s-blocked); }
.dl { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.dl li { color: var(--text-2); }
.disc { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.instruct { display: grid; gap: 8px; }
.instruct textarea { min-height: 72px; resize: vertical; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); }
.instruct .notice { font-size: 12px; color: var(--muted); margin: 0; }
.instruct .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---- task / evidence ------------------------------------------------------- */
.task-hero { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; }
.task-hero h1 { font-size: 18px; line-height: 1.35; }
.tree { list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; border-left: 1px solid var(--line); display: grid; gap: 6px; }
.tree > li { position: relative; }
.events { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12.5px; }
.events li { display: grid; grid-template-columns: 54px 150px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-top: 1px solid var(--line-soft); }
.events code, .hash { font-family: var(--mono); font-size: 11.5px; color: var(--faint); overflow-wrap: anywhere; }
.result { white-space: pre-wrap; font-size: 13px; color: var(--text-2); background: var(--bg-2); padding: 12px; border-radius: 8px; border: 1px solid var(--line-soft); margin: 8px 0 0; max-height: 420px; overflow: auto; }
.verify-ok { color: var(--s-working); }
.verify-bad { color: var(--s-blocked); }

/* ---- directory, reporting lines ------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar input[type=search] { min-height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); min-width: 220px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
table.dir { width: 100%; border-collapse: collapse; font-size: 13px; }
table.dir th { text-align: left; font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
table.dir td { padding: 8px 12px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
table.dir tr:hover td { background: var(--surface-2); }
table.dir .w { display: flex; align-items: center; gap: 10px; }
table.dir .avatar { width: 28px; height: 28px; font-size: 10.5px; }
.orgtree, .orgtree ul { list-style: none; margin: 0; padding: 0; }
.orgtree ul { margin-left: 18px; padding-left: 14px; border-left: 1px solid var(--line); }
.orgtree li { margin: 6px 0; }
.orgtree .node { display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--surface); color: var(--text); cursor: pointer; }
.orgtree .node:hover { border-color: var(--line); }
.orgtree .node .avatar { width: 28px; height: 28px; font-size: 10.5px; }
.orgtree details > summary { list-style: none; cursor: pointer; }
.orgtree details > summary::-webkit-details-marker { display: none; }
.orgtree .twisty { display: inline-block; width: 16px; color: var(--faint); font-family: var(--mono); }

/* ---- Development Control Room (visually distinct: Product Zero, not the customer organisation) ---- */
.dcr { margin: -16px -22px -40px; padding: 18px 22px 40px; min-height: calc(100vh - var(--cmd-h));
  background-color: var(--dcr-bg);
  background-image: linear-gradient(rgba(54, 209, 220, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(54, 209, 220, .045) 1px, transparent 1px);
  background-size: 28px 28px; }
.dcr .crumbs-k { font: 600 10.5px var(--mono); letter-spacing: .16em; color: var(--dcr); text-transform: uppercase; }
.dcr h1 { font: 600 22px var(--font); margin-top: 4px; }
.dcr .panel { background: var(--dcr-surface); border-color: var(--dcr-line); }
.dcr .panel-k { color: #4fa9b2; }
.dcr-notice { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--dcr-line); background: #08151b; font-size: 12.5px; color: var(--text-2); margin-top: 12px; }
.dcr-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-6 { grid-column: span 6; } .span-4 { grid-column: span 4; }
.cp-track { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.cp-step { border: 1px solid var(--dcr-line); border-radius: 8px; padding: 8px; font-size: 11.5px; color: var(--text-2); background: #08161c; min-height: 92px; display: grid; align-content: start; gap: 4px; }
.cp-step .id { font: 600 11px var(--mono); color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
.cp-step.done { border-color: #17463a; } .cp-step.done .id b { color: var(--s-working); }
.cp-step.blocked { border-color: #6b2a2a; background: #1a0c0e; } .cp-step.blocked .id b { color: var(--s-blocked); }
.cp-step.open .id b { color: var(--muted); }
.cp-step.current { box-shadow: 0 0 0 2px var(--dcr); }
.cp-step .txt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.metric { border: 1px solid var(--dcr-line); border-radius: 8px; padding: 8px 10px; background: #08161c; }
.metric .n { font: 600 18px var(--mono); color: var(--text); }
.metric .l { font-size: 11.5px; color: var(--muted); }
table.agents { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.agents th { text-align: left; font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #4fa9b2; padding: 8px; border-bottom: 1px solid var(--dcr-line); white-space: nowrap; }
table.agents td { padding: 8px; border-top: 1px solid #0f262d; vertical-align: top; color: var(--text-2); }
table.agents td .mono { color: var(--text); }
.nr { color: var(--faint); font-style: italic; }
.stage-tag { display: inline-block; padding: 1px 7px; border-radius: 4px; font: 600 10.5px var(--mono); letter-spacing: .04em; border: 1px solid var(--dcr-line); color: var(--dcr); white-space: nowrap; }
.stage-tag.integrated { color: var(--s-working); border-color: #17463a; }
.stage-tag.blocked, .stage-tag.failed, .stage-tag.rolled_back { color: var(--s-blocked); border-color: #6b2a2a; }
.gate { border: 1px solid #5a4415; background: #161105; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }
.gate .id { font: 600 11px var(--mono); color: var(--s-attention); }

/* Live development telemetry: the pulse marks only a live state on a live feed (contracts/hq/dev_telemetry_v1.md). */
.pz-state { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px 1px 6px; border-radius: 4px; font: 600 10.5px var(--mono); letter-spacing: .04em; border: 1px solid var(--dcr-line); color: var(--dcr); white-space: nowrap; }
.pz-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pz-working, .pz-integrating, .pz-evaluating, .pz-completed { color: var(--s-working); border-color: #17463a; }
.pz-waiting, .pz-starting, .pz-queued, .pz-rework { color: var(--s-attention); border-color: #5a4415; }
.pz-blocked, .pz-failed { color: var(--s-blocked); border-color: #6b2a2a; }
.pz-unknown, .pz-stale, .pz-cancelled, .pz-ended { color: var(--t-stale); border-color: #3a4556; border-style: dashed; }
.pz-unknown .pz-dot, .pz-stale .pz-dot, .pz-ended .pz-dot { background: transparent; border: 1.5px dashed currentColor; }
.pz-live .pz-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; animation: ring 1.8s ease-out infinite; }
.dcr-feed { display: inline-flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pz-more { margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.pz-more summary { cursor: pointer; color: #4fa9b2; font: 600 11px var(--mono); letter-spacing: .06em; }

/* ---- tooltip --------------------------------------------------------------- */
.tip { position: fixed; z-index: 40; pointer-events: none; max-width: 280px; padding: 8px 10px; border-radius: 8px; background: #05070a; border: 1px solid var(--line); font-size: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.tip b { display: block; font-size: 12.5px; }

/* ---- responsive ------------------------------------------------------------ */
@media (max-width: 1280px) {
  .hq-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .span-8, .span-4 { grid-column: span 12; }
}
@media (max-width: 1080px) {
  :root { --rail-w: 200px; }
  .hq-grid { grid-template-columns: minmax(0, 1fr); }
  .side { order: -1; position: static; max-height: none; overflow: visible; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  .wgrid { grid-template-columns: minmax(0, 1fr); }
  .spend, .freshness { display: none; }
  .span-6 { grid-column: span 12; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); background: none; }
  .room.wide { grid-column: auto; }
  .rail { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 8px 10px; display: flex; gap: 6px; overflow-x: auto; }
  .rail ul { display: flex; gap: 4px; }
  .rail-h, .rail-sep, .rail-note, .rail-dept-meta { display: none; }
  .rail-link { white-space: nowrap; }
  .cmd { gap: 10px; padding: 0 12px; height: auto; min-height: var(--cmd-h); flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .brand-sub { display: none; }
  .cmd-org { order: 3; flex-basis: 100%; }
  .cmd-controls { margin-left: auto; }
  .feeds { grid-template-columns: minmax(0, 1fr); }
  .stage { padding: 12px 16px 32px; }
  .dcr { margin: -12px -16px -32px; padding: 14px 16px 32px; }
  .worker-hero { grid-template-columns: auto minmax(0, 1fr); }
  .worker-hero > :last-child { grid-column: 1 / -1; }
  .events li { grid-template-columns: 48px minmax(0, 1fr); }
  .events li > :nth-child(3) { grid-column: 2; }
}
@media (max-width: 520px) {
  .model-chip .lbl { display: none; }
  .pulse-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pulse-slots { grid-template-columns: minmax(0, 1fr); }
  .dept-hero { grid-template-columns: minmax(0, 1fr); }
  .desks { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .is-active .avatar::after, .changed, .pz-live .pz-dot::after { animation: none !important; }
  * { transition: none !important; }
}

/* ---- Customer Zero: My organisation and Projects (cz.js, contracts/hq/customer_zero_v1.md) ----
   An unlit room is a department that exists but has no Worker yet (NOT YET ACTIVATED). Nothing here
   animates: movement stays with the spatial read model's evidence rule. */
.t-nya { color: #aeb8c6; border-color: #3a4556; border-style: dotted; background: #121720; }
.truth-badge.t-nya { white-space: normal; }
.routing summary { flex-wrap: wrap; }
.t-nya::before { background: transparent; border: 1.5px dotted currentColor; width: 6px; height: 6px; }
.ri-cz { border-radius: 50% 50% 3px 3px; }
.rail-link.sub { padding-left: 36px; font-size: 12.5px; justify-content: space-between; min-height: 30px; }
.planes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plane { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r); border: 1px dashed var(--line); background: var(--bg-2); color: var(--muted); }
.plane b { color: var(--text-2); font-size: 13px; }
.plane.here { border-style: solid; border-color: #2c4a7a; background: linear-gradient(180deg, #111b2c, var(--surface)); color: var(--text-2); }
.plane.here b { color: var(--text); }
.plane-k { font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.plane.here .plane-k { color: var(--accent); }
.pulse-tile.static { cursor: default; }
.bands { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.band { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); color: var(--text); }
.band:hover, .band:focus-visible, .band.on { border-color: var(--accent); text-decoration: none; }
.band-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.band-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); align-items: center; }
.band-meta b { color: var(--text-2); }
.cz-room.unlit { background: repeating-linear-gradient(135deg, #0d1118 0 8px, #0b0f15 8px 16px); border-style: dashed; border-color: #2a3546; }
.cz-room.unlit .room-title a { color: var(--text-2); }
.cz-room.unlit .room-purpose { color: #4f5b6c; }
.cz-floors:not([data-project=""]) .room { opacity: .4; }
.cz-floors:not([data-project=""]) .room.in-project { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.cz-room .room-head { flex-wrap: wrap; }
.cz-room .room-flags { max-width: 100%; }
.room-caps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.room-caps b { color: var(--text-2); }
.room-projects { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag { font-size: 11.5px; padding: 1px 8px; border-radius: 4px; border: 1px solid #2c4a7a; color: var(--accent-2); background: #0f1828; }
.unlit-key { display: inline-block; width: 18px; height: 12px; border: 1px dashed #3a4556; border-radius: 3px; background: repeating-linear-gradient(135deg, #0d1118 0 3px, #161c26 3px 6px); }
.capslot { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: 12px; border: 1px solid color-mix(in srgb, var(--st) 40%, transparent); }
.capslot.cov-gap { border-style: dashed; }
.capslot .r { font: 600 10px var(--mono); text-transform: uppercase; color: var(--st); }
.recs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.rec { padding: 8px; border-radius: 8px; border: 1px dashed var(--line); background: var(--surface-2); display: grid; gap: 3px; }
.rec-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.routing summary { cursor: pointer; font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.confirm { display: grid; gap: 6px; justify-items: end; max-width: 360px; text-align: right; }
.desk-wrap { display: grid; gap: 4px; }
.placement-actions { display: grid; gap: 2px; padding: 0 4px; }
.checks { display: grid; gap: 4px; }
.check { font-size: 12.5px; color: var(--text-2); }
.check.off { color: var(--faint); }
.objectives { display: grid; gap: 10px; }
.objective { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--surface-2); display: grid; gap: 4px; }
.obj-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.measures { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.plan { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.plan li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); align-items: center; }
.plan li:first-child { border-top: 0; }
.plan .t { font-weight: 600; font-size: 13px; }
.plan .d { grid-column: 2 / -1; font-size: 12px; color: var(--muted); }
.workstreams { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px; }
.ws { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-soft); background: var(--surface-2); display: grid; gap: 4px; font-size: 13px; }
.ws-cap { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.team-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.role-card { padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 6px; align-content: start; }
.role-card.vacant { border-style: dashed; background: var(--bg-2); }
.role-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dept-hero.unlit { background: repeating-linear-gradient(135deg, #0d1118 0 10px, #0b0f15 10px 20px); border-style: dashed; }
.chip.unlit { border-style: dashed; color: var(--muted); }
@media (max-width: 820px) {
  .rail-cz { display: contents; }
  .planes { grid-template-columns: minmax(0, 1fr); }
  .rail-link.sub { padding-left: 10px; }
}
