/*
 * Shared cockpit styles for `pullboard view` (N26). Every colour is a token holding a light and a dark
 * value; the view assembles shared Doctrine and item-panel styles and appends private Cost styles from src/view/cost.css.
 */
:root {
  color-scheme: light dark;
  --ground: light-dark(#f2f2f2, #0c110f); --surface: light-dark(#ffffff, #121815); --surface-2: light-dark(#f5f5f5, #171f1b); --line: light-dark(#e5e5e5, #232e29); --line-soft: light-dark(#efefef, #1b2420); --line-strong: light-dark(#d4d4d4, #34423b);
  --ink: light-dark(#121a17, #e7ece9); --ink-muted: light-dark(#4c5852, #9caba3); --ink-faint: light-dark(#7a887f, #6a776f);
  --accent: light-dark(#08915f, #34d89e); --accent-strong: light-dark(#067049, #4ee3ac); --accent-soft: light-dark(#dcefe6, #10231c); --on-accent: light-dark(#f4fbf7, #05201a);
  --warn: light-dark(#a2660f, #e4b25a); --warn-soft: light-dark(#f2e6cf, #241d10); --reject: light-dark(#bd4437, #f0776b); --reject-soft: light-dark(#f4e0dc, #271613);
  /* The stage palette: the one place a stage color is written. Every dot, bar segment, chip and row icon takes its stage from these (stage-colors.html, 31 Oct) [N26]. */
  --stage-merged: light-dark(#067a50, #30ad79); --stage-review: light-dark(#d4a020, #b38529); --stage-building: light-dark(#285c99, #3a6ab0);
  --stage-ready: light-dark(#a383e6, #9d80e0); --stage-gated: light-dark(#8a968f, #5d6b64); --mark-back: light-dark(#c4473a, #d26059);
  --mark-held: light-dark(#6f7d75, #8a978f);
  --stage-gate: light-dark(#1f2933, #d6dbe0); --stage-gate-soft: light-dark(#eceef0, #1c2226); --stage-blocked-soft: light-dark(#eef0ef, #1b2420); --stage-blocked-ink: light-dark(#5f6b64, #9caba3); --mark-back-soft: light-dark(#fbe9e7, #2a1714);
  --stage-stripe: repeating-linear-gradient(135deg, var(--stage-merged) 0 2px, color-mix(in oklab, var(--stage-merged) 35%, var(--surface)) 2px 4px);
  --icon-you: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='8' cy='5.5' r='2.5'/%3E%3Cpath d='M3 13.5c.8-2.4 2.7-3.5 5-3.5s4.2 1.1 5 3.5'/%3E%3C/svg%3E");
  --blue: light-dark(#3f6f9e, #6ba7d6); --blue-soft: light-dark(#e1eaf3, #142231); --violet: light-dark(#6b4fc8, #ab9cf2); --violet-soft: light-dark(#ebe6fa, #1e1934);
  --shade: light-dark(rgba(18,26,23,.05), rgba(0,0,0,.4)); --shade-far: light-dark(rgba(18,26,23,.28), rgba(0,0,0,.7));
  /* Only floating panels (menus, palette, hover cards, dialogs) carry a shadow; cards never do. */
  --shadow-float: 0 12px 32px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .05);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  /* One scale for every screen [C12]: type, space and shape. Write these, never a raw size; the Rigor check
   * packages/gate/src/io/sizes.js counts the sizes still typed by hand, and the count only goes down. */
  --text-2xs: 11px; --text-xs: 12px; --text-sm: 13px; --text-md: 14px; --text-lg: 15px; --text-xl: 17px; --text-2xl: 22px; --text-3xl: 28px;
  --leading-tight: 1.15; --leading-snug: 1.3; --leading-body: 1.5; --text-spec-heading: 13.5px; --text-spec-title: 17px;
  --tracking-tight: -.02em; --tracking-label: .07em;
  --space-0: 2px; --space-1: 4px; --space-2: 6px; --space-3: 8px; --space-4: 12px; --space-5: 16px; --space-6: 20px; --space-7: 24px; --space-8: 32px; --space-9: 48px;
  /* Shapes follow the design sheet: 4 px chips and controls, 6 px cards, 8 px floating panels, bars 2 px; only dots are round.
   * --round scales them all (1 = the sheet) and stays 1 unless the sheet changes. */
  --round: 1;
  --radius-xs: calc(4px * var(--round)); --radius-sm: calc(4px * var(--round)); --radius-md: calc(6px * var(--round));
  --radius-lg: calc(6px * var(--round)); --radius-card: calc(6px * var(--round)); --radius-chip: calc(4px * var(--round));
  --radius-bar: calc(2px * var(--round)); --radius-float: calc(8px * var(--round));
  --radius-hair: 1px; --radius-dot: 50%;
  --border: 1px solid var(--line); --border-row: 1px solid var(--line-soft); --border-strong: 1px solid var(--line-strong); --border-clear: 1px solid transparent;
  --border-dashed: 1px dashed var(--line); --border-dashed-strong: 1px dashed var(--line-strong); --border-held: 1.5px dashed var(--mark-held); --border-held-thin: 1px dashed var(--mark-held);
  --border-check: 1.5px solid var(--line-strong); --border-spin: 3px solid var(--line);
  --border-warn: 1px solid color-mix(in srgb, var(--warn) 38%, var(--line)); --border-reject: 1px solid color-mix(in srgb, var(--reject) 40%, var(--line));
  --shadow-modal: 0 18px 48px rgba(0, 0, 0, .18);
  --shadow-hair: 0 1px 2px var(--shade); --shadow-hair-line: 0 1px 2px var(--shade), 0 0 0 1px var(--line);
  --inset-line: inset 0 0 0 1px var(--line); --inset-line-strong: inset 0 0 0 1px var(--line-strong);
  --ring-accent: 0 0 0 2px var(--accent); --ring-surface: 0 0 0 3px var(--surface); --ring-line: 0 0 0 1px var(--line); --ring-none: 0 0 0 0 transparent;
  --github: #1f2328; --on-solid: #fff; --focus-blue: #1a73e8; --mark-shout: #9a9a9a; --mark-shout-soft: #a8a8a8;
  --verify-bg: light-dark(#fefaea, #262112); --verify-bg-hover: light-dark(#fcf3d6, #2e2816); --line-gated: light-dark(#ca9d96, #86403b); --line-verify: light-dark(transparent, #6e5722);
  --side-heading: light-dark(#a9b3ad, #5d6b63); --scrim: rgb(15 23 42 / 45%); --scrim-soft: rgba(18, 26, 23, .28);
  --tint-blue: light-dark(#e8eef7, #142231); --tint-blue-ink: light-dark(var(--stage-building), #8db2e0); --tint-amber: light-dark(#faf2dc, #241d10); --tint-amber-ink: light-dark(#8a6400, #e4b25a);
  --tint-green: light-dark(#e6f4ec, #10231c); --tint-violet: light-dark(#f1ecfb, #1e1934); --tint-violet-ink: light-dark(#6a4fb6, #ab9cf2); --tint-slate: light-dark(#eceef0, #232b31);
  --tint-red: light-dark(#fbe9e7, #271613); --tint-sand: light-dark(#faf1e0, #241d10); --tint-red-fill: light-dark(#f3d3cf, #3a2220);
  --mark-idle: #8a8a8a; --mark-gold: #ecd37e; --gate-solid: #1f2933;
  --top: 56px; --side-w: 236px; --agents-w: clamp(240px, 30%, 306px);
}
/* @shared-view-css src/view/item-panel.css */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (max-width: 1100px) { :root { --side-w: 208px; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: var(--text-md)/1.5 var(--sans); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 0 var(--space-4) var(--space-5); background: var(--surface); border-right: var(--border); }
.side-top { display: flex; flex: none; align-items: center; gap: var(--space-4); height: var(--top); margin: 0 calc(var(--space-4) * -1) var(--space-2); padding: 0 var(--space-5); border-bottom: var(--border); }
.brand { display: flex; align-items: center; gap: var(--space-3); margin-left: calc(var(--space-2) * -1); padding: 0 var(--space-2); border: 0; border-radius: var(--radius-xs); background: none; font-weight: 700; font-size: var(--text-lg); white-space: nowrap; cursor: pointer; }
.brand:hover { background: var(--surface-2); }
.brand svg { width: 22px; height: 22px; flex: none; }
.switch-btn { display: none; align-items: center; gap: var(--space-3); min-width: 0; border: var(--border); background: var(--surface-2); border-radius: var(--radius-xs); padding: var(--space-2) var(--space-4); cursor: pointer; font-weight: 600; }
.switch-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch-btn small { display: grid; place-items: center; color: var(--ink-faint); }
.switch-btn small svg { width: 16px; height: 16px; }
/* While the project list is open the arrow points up at once, so the switcher says it will close what it opened. */
.switch-btn[aria-expanded="true"] small { transform: rotate(180deg); }
.theme-btn { flex: none; margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: var(--radius-xs); background: none; color: var(--ink-faint); cursor: pointer; }
.theme-btn:hover { color: var(--ink); background: var(--surface-2); }
.theme-btn svg { display: none; width: 16px; height: 16px; }
:root[data-scheme="light"] .theme-btn .sun, :root[data-scheme="dark"] .theme-btn .moon { display: block; }
.side-body { display: grid; flex: 1; gap: var(--space-0); align-content: start; }
/* Collapsed, as the person chose: the sidebar shrinks to the project switcher at the left of the tab bar,
 * the board below takes the whole width, and the project list opens as a dropdown. The logo collapses and
 * restores it; phones always show the switcher, so there the logo is only the logo. The theme button sits at the
 * right end of the tab bar on a wide screen, sidebar or not. */
@media (width > 900px) {
  .theme-btn { position: fixed; top: calc(var(--top) / 2); right: 10px; z-index: 12; transform: translateY(-50%); }
  header.top { padding-right: 62px; }
  :root[data-side="collapsed"] .shell { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; }
  :root[data-side="collapsed"] .body { display: contents; }
  :root[data-side="collapsed"] .side { grid-area: 1 / 1; z-index: 11; height: var(--top); overflow: visible; padding: 0 var(--space-2); border-right: 0; border-bottom: var(--border); }
  :root[data-side="collapsed"] .top { grid-area: 1 / 2; }
  :root[data-side="collapsed"] main { grid-area: 2 / 1 / 3 / 3; }
  :root[data-side="collapsed"] .side-top { margin: 0; padding: 0; gap: var(--space-2); border: 0; }
  :root[data-side="collapsed"] .brand span { display: none; }
  :root[data-side="collapsed"] .brand { justify-content: center; width: var(--tap); height: var(--tap); margin: 0; padding: 0; }
  :root[data-side="collapsed"] .switch-btn { display: flex; max-width: 16rem; }
  :root[data-side="collapsed"] .side-body, :root[data-side="collapsed"] .side-footer { display: none; }
  :root[data-side="collapsed"] .side.open .side-body, :root[data-side="collapsed"] .side.open .side-footer { position: absolute; top: calc(var(--top) + var(--space-1)); left: var(--space-3); width: 300px; border: var(--border); background: var(--surface); }
  :root[data-side="collapsed"] .side.open .side-body { display: grid; max-height: calc(100vh - var(--top) - var(--space-5)); overflow-y: auto; padding: calc(var(--space-8) + var(--space-4) + var(--space-7)) var(--space-4) var(--space-4); border-radius: var(--radius-card); box-shadow: var(--shadow-float); }
  :root[data-side="collapsed"] .side.open .side-footer { display: flex; z-index: 1; margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-card) var(--radius-card) 0 0; }
}
.label { font: 600 var(--text-2xs)/1 var(--sans); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-faint); padding: var(--space-3) var(--space-3) var(--space-2); }
.proj { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px var(--space-3); align-items: center; width: 100%; text-align: left; border: var(--border-clear); background: none; border-radius: var(--radius-xs); padding: var(--space-3) var(--space-3); cursor: pointer; }
.proj:hover { background: var(--surface-2); }
/* The project shown is a quiet tint, as a picked row is. */
.proj.on { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.proj small .asks { color: var(--warn); }
.proj .pname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj small { grid-column: 1 / -1; color: var(--ink-faint); font-size: var(--text-xs); line-height: var(--leading-snug); overflow-wrap: anywhere; }
.repo-group { display: grid; gap: 1px; }
.project-pick { background: var(--surface-2); }
.repos { display: grid; gap: 1px; margin-left: var(--space-3); padding-left: var(--space-3); border-left: var(--border); }
.repo-error { margin: var(--space-1) 0 var(--space-2) var(--space-3); padding: var(--space-2) var(--space-3); color: var(--ink-faint); font-size: var(--text-xs); line-height: var(--leading-snug); overflow-wrap: anywhere; }
.repo-error b { color: var(--ink-muted); }
.unreadable-projects { margin: var(--space-2) var(--space-3); color: var(--ink-faint); font-size: var(--text-xs); }
.unreadable-projects summary { cursor: pointer; }
.unreadable-projects ul { list-style: none; padding: 0; margin: var(--space-2) 0; display: grid; gap: var(--space-1); }
.unreadable-projects li { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.unreadable-copy { display: flex; align-items: baseline; gap: var(--space-2); flex: 1; min-width: 0; white-space: nowrap; }
.unreadable-copy b { flex: 0 1 auto; min-width: 0; max-width: 45%; font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.unreadable-copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font: var(--text-2xs) var(--mono); }
.unreadable-projects button { flex: none; min-height: var(--tap); padding-inline: var(--space-2); color: var(--ink-muted); font-size: var(--text-xs); }
.group-view { display: grid; gap: var(--space-5); max-width: 1000px; }
.group-panel { padding: var(--space-5) var(--space-5); }
.group-panel h2 { margin: 0 0 var(--space-4); font-size: var(--text-xl); }
#dashboard .home-needs { margin: 0; padding: 0; border-bottom: 0; }
#dashboard-rules .home-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: 0 0 var(--space-4); }
#dashboard-rules .home-counts dt { color: var(--ink-muted); font-size: var(--text-sm); }
#dashboard-rules .home-counts dd { margin: var(--space-0) 0 0; font-size: var(--text-3xl); font-weight: 600; font-variant-numeric: tabular-nums; }
#dashboard-capacity p { margin: var(--space-2) 0; overflow-wrap: anywhere; }
.capacity-main strong { font-size: var(--text-3xl); font-variant-numeric: tabular-nums; }
.capacity-note, .capacity-curve figcaption { color: var(--ink-muted); font-size: var(--text-xs); }
.capacity-warning { color: var(--warn); }
.capacity-curve { max-width: 300px; margin: var(--space-4) 0 0; }
.capacity-curve svg { display: block; width: 100%; height: 72px; }
.capacity-curve polyline { fill: none; stroke: var(--accent-strong); stroke-width: 2; vector-effect: non-scaling-stroke; }
.group-need { display: grid; grid-template-columns: minmax(90px, auto) auto minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-2) var(--space-4); width: 100%; padding: var(--space-3) 0; text-align: left; border: 0; border-top: var(--border); background: none; }
.group-need:hover { background: var(--surface-2); }
.group-need > b { color: var(--ink-muted); }
.group-need > code { color: var(--accent-strong); }
.group-need > span { overflow-wrap: anywhere; }
.group-need > button { min-height: var(--tap); border: 0; padding: 0; background: none; cursor: pointer; text-align: right; }
.group-need > button em { color: var(--ink-faint); font-size: var(--text-xs); font-style: normal; }
.repo-label { color: var(--ink-muted); }
.products { padding-top: var(--space-2); }
.prod { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding: var(--space-2) var(--space-3) var(--space-3); font-size: var(--text-sm); }
.prod p { margin: 0; display: flex; justify-content: space-between; gap: var(--space-3); align-items: baseline; }
.prod p b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod p span { color: var(--ink-faint); font: var(--text-2xs) var(--mono); white-space: nowrap; }
.prod .bar { display: block; width: 100%; height: 6px; border-radius: var(--radius-bar); background: var(--surface-2); box-shadow: var(--inset-line); overflow: hidden; }
.prod .bar rect { fill: var(--accent); }
.prod small { display: flex; flex-wrap: wrap; gap: var(--space-0) var(--space-4); color: var(--ink-muted); font-size: var(--text-xs); }
.prod small span { display: inline-flex; align-items: center; gap: var(--space-2); }
.prod small .dot { display: inline-block; width: 7px; height: 7px; }
.body { min-width: 0; }
.top { position: sticky; top: 0; z-index: 10; min-height: var(--top); display: flex; align-items: stretch; gap: var(--space-4); padding: 0 var(--space-6); background: var(--surface); border-bottom: var(--border); }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-0); }
.tab { border: 0; background: none; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); align-self: center; cursor: pointer; color: var(--ink-muted); white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); background: var(--surface-2); font-weight: 600; }
.live { margin-left: auto; align-self: center; font-size: var(--text-xs); color: var(--warn); white-space: nowrap; }
.switching main, .switching .products { opacity: .45; transition: opacity .12s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

main { padding: var(--space-5) var(--space-6) var(--space-9); }
/* The opaque status surface keeps scrolling text out of the person's status line. */
.status { --status-bg: var(--surface); --status-ink: var(--ink-muted); --status-strong: var(--ink); --status-hover: color-mix(in srgb, var(--ink) 7%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; display: flex; align-items: stretch; height: 28px; padding: 0 var(--space-2); background: var(--status-bg); color: var(--status-ink); font-size: var(--text-xs); white-space: nowrap; overflow: hidden; }
.status.snap { --status-bg: var(--violet-soft); --status-ink: var(--violet); --status-strong: var(--violet); }
.status:not(.snap):has(.live:not(:empty)) { --status-bg: var(--reject-soft); --status-ink: var(--reject); --status-strong: var(--reject); }
.status b { color: var(--status-strong); font: 600 var(--text-2xs) var(--mono); }
.status .live { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; padding: 0 var(--space-3); color: inherit; }
.status .live::before { content: ''; width: 7px; height: 7px; border-radius: var(--radius-dot); background: var(--reject); }
.status .live:empty::before { background: var(--accent); }
.status .live:empty::after { content: 'live'; }
.status-board { display: flex; flex: 1; min-width: 0; align-items: stretch; overflow: hidden; }
.status-group { display: inline-flex; align-items: center; padding-left: var(--space-3); }
.status button { display: inline-flex; flex: none; align-items: center; gap: var(--space-2); min-height: 0; padding: 0 var(--space-3); border: 0; border-radius: 0; background: none; color: inherit; font: inherit; white-space: nowrap; cursor: pointer; }
.status button:hover { background: var(--status-hover); color: var(--status-strong); }
.status button:focus-visible { outline: 2px solid var(--status-strong); outline-offset: -2px; }
.status-board .end { margin-left: auto; opacity: .85; }
.status #status-unread[hidden] { display: none; }
/* With touch its parts are 44px targets; a mouse keeps the thin strip. On a phone it shows only when the view is cut off. */
@media (pointer: coarse) { .status { height: 44px; } .status button { min-height: 44px; } main { padding-bottom: 72px; } }
@media (width < 480px) { .status:not(:has(.live:not(:empty))) { display: none; } .status { height: 44px; } .status button { min-height: 44px; } main { padding-bottom: var(--space-8); } }
.side { padding-bottom: var(--space-9); }
.first { display: none; max-width: 520px; margin: 10vh auto 0; padding: var(--space-7) var(--space-7); }
.first h2 { margin: 0 0 var(--space-2); font-size: var(--text-xl); }
.first p { margin: 0; color: var(--ink-muted); }
.first code { font: 600 var(--text-sm) var(--mono); color: var(--ink); }
.boardless .first { display: block; }
.loading .top, .loading [data-pane], .boardless .top, .boardless [data-pane] { display: none; }
/* The current screen's frame while its board state is on its way (#6589): the screen's cards, empty, where the board
 * fills them in. A two-column screen keeps its detail column; the rest show one column. */
.board-frame { display: grid; gap: var(--space-5); align-items: start; }
.board-frame[hidden], .loading .board-frame, .boardless .board-frame { display: none; }
.board-frame .frame-primary { display: grid; gap: var(--space-5); min-width: 0; }
.frame-card { min-height: 56px; }
.frame-card.frame-list { min-height: 360px; }
.frame-card.frame-detail { min-height: 240px; }
.board-frame:not(.two) .frame-detail { display: none; }
a { color: var(--accent-strong); text-underline-offset: 2px; }
a.go, a.ghost { display: inline-flex; align-items: center; text-decoration: none; }
a.ghost { color: var(--ink); }
.proj small .src { color: var(--ink-muted); }
.proj .pname .owner { color: var(--ink-faint); font-weight: 400; }
/* Opening your board at app.pullboard.dev (#764): one screen at a time stands alone on the page, centred, with the
 * theme toggle in its own header; the sidebar, tabs and status line wait until there is a board to list. A note over
 * a list is one quiet card. Every big button, command box and "or" box is 60 px tall; the GitHub button is dark. */
.open-board .shell, .hosted-page.boardless .shell { display: block; }
/* A request waiting for the person on this device (apps/relay/src/io/deploy/browser-devices.js #phone-approvals) is never hidden behind a screen. */
.open-board .side, .open-board .top, .open-board .status, .open-board main > :not(#local-note):not(#phone-approvals), .hosted-page.boardless .side { display: none !important; }
.open-board main { padding: 0; }
.open-board #local-note { display: grid; grid-template-rows: auto 1fr; min-height: 100vh; min-height: 100dvh; }
.ob-top { display: flex; justify-content: flex-end; padding: var(--space-4) var(--space-5) 0; }
.ob-panel { align-self: center; justify-self: center; box-sizing: border-box; width: 100%; max-width: 520px; padding: var(--space-7) var(--space-6) 64px; text-align: center; font-size: var(--text-lg); }
#local-note.wide .ob-panel { max-width: 900px; }
.ob-mark { display: inline-flex; align-items: center; gap: var(--space-4); font-weight: 700; font-size: var(--text-xl); }
.ob-mark svg { width: 28px; height: 28px; }
.ob-panel h1 { margin: var(--space-7) 0 0; font-size: var(--text-3xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); text-wrap: balance; }
.ob-say { margin: var(--space-4) auto 0; max-width: 440px; color: var(--ink-muted); font-size: var(--text-xl); text-wrap: balance; }
.ob-act { margin: var(--space-8) auto 0; max-width: 400px; text-align: left; }
.ob-big { display: flex; align-items: center; justify-content: center; gap: var(--space-4); box-sizing: border-box; width: 100%; height: 60px; border-radius: var(--radius-card); font-weight: 600; font-size: var(--text-xl); text-decoration: none; cursor: pointer; }
.ob-big svg { width: 22px; height: 22px; }
.ob-gh, .ob-gh:hover { background: var(--github); color: var(--on-solid); }
:root[data-scheme="dark"] .ob-gh { border: var(--border-strong); }
.ob-go, .ob-go:hover { background: var(--accent); color: var(--on-accent); }
.ob-cmd, .ob-agent { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); box-sizing: border-box; height: 60px; padding: 0 0 0 var(--space-5); border: var(--border); border-radius: var(--radius-card); background: var(--surface); }
.ob-cmd code { overflow: hidden; color: var(--ink); font: 600 var(--text-xl) var(--mono); white-space: nowrap; text-overflow: ellipsis; }
.ob-p { margin-right: var(--space-3); color: var(--ink-faint); }
.ob-agent > span { flex: 1; min-width: 0; font-weight: 600; line-height: var(--leading-snug); }
.ob-agent small { display: block; color: var(--ink-muted); font-weight: 400; font-size: var(--text-sm); }
.ob-agent svg, .ob-help svg { flex: none; width: 22px; height: 22px; color: var(--accent); }
/* Inside a 60 px box the Copy button takes the box's own right edge, so box and button are both 60 px. */
.ob-cmd button, .ob-agent button, .ob-help button { flex: none; box-sizing: border-box; height: 60px; padding: 0 var(--space-6); border: var(--border); border-radius: var(--radius-card); background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: var(--text-lg); cursor: pointer; }
.ob-cmd button, .ob-agent button { margin: -1px -1px -1px 0; border-radius: 0 var(--radius-card) var(--radius-card) 0; }
.ob-cmd button:hover, .ob-agent button:hover, .ob-help button:hover { background: var(--accent-soft); }
.ob-or { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-5) 0; color: var(--ink-faint); font-size: var(--text-sm); }
.ob-or::before, .ob-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ob-small { margin: var(--space-4) auto 0; max-width: 400px; color: var(--ink-muted); font-size: var(--text-md); text-wrap: balance; }
.ob-live { display: inline-flex; align-items: center; gap: var(--space-4); margin: var(--space-7) 0 0; padding: var(--space-3) var(--space-5); border: var(--border); border-radius: var(--radius-chip); background: var(--surface); color: var(--ink-muted); font-size: var(--text-md); }
.ob-live i { width: 9px; height: 9px; border-radius: var(--radius-dot); background: var(--accent); animation: ob-pulse 1.4s ease-in-out infinite; }
@keyframes ob-pulse { 50% { opacity: .25; transform: scale(.8); } }
/* The spinner is a ring with one dot going round it, so no edge of any box takes the accent colour. */
.ob-spin { position: relative; width: 36px; height: 36px; margin: var(--space-8) auto 0; box-sizing: border-box; border-radius: var(--radius-dot); border: var(--border-spin); animation: ob-turn .9s linear infinite; }
.ob-spin::after { content: ""; position: absolute; top: -5.5px; left: 50%; width: 8px; height: 8px; margin-left: calc(var(--space-1) * -1); border-radius: var(--radius-dot); background: var(--accent); }
@keyframes ob-turn { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .ob-live i, .ob-spin { animation: none; } }
.ob-help { display: flex; align-items: center; gap: var(--space-4); max-width: 500px; margin: var(--space-7) auto 0; padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5); border: var(--border-dashed-strong); border-radius: var(--radius-card); text-align: left; color: var(--ink-muted); font-size: var(--text-md); }
.ob-help > span { flex: 1; min-width: 0; }
.ob-help small { display: block; color: var(--ink); font-size: var(--text-lg); font-weight: 600; }
/* The help strip's Copy is the mockup's 40 px button, so on a computer its sentence keeps to one line. */
.ob-help button { height: 40px; padding: 0 var(--space-5); border-radius: var(--radius-xs); font-size: var(--text-md); }
/* On a computer the sentence keeps to one line whatever fonts are installed (#829): the strip keeps the mockup's
   width and grows only as far as a wider font needs, centred, into the panel's own padding. Linux's DejaVu needs
   513px for the longest sentence where the panel's box gives 520px. */
@media (width >= 760px) { .ob-help { position: relative; left: 50%; transform: translateX(-50%); width: max-content; min-width: min(500px, 100%); max-width: calc(100vw - 32px); margin: var(--space-7) 0 0; } .ob-help small { white-space: nowrap; } }
/* The browser's own permission prompt, drawn so people know what to click. */
.ob-ask { position: relative; margin: var(--space-8) auto 0; max-width: 380px; padding: var(--space-5) var(--space-6); border: var(--border); border-radius: var(--radius-card); background: var(--surface); text-align: left; }
.ob-ask .t { font-weight: 600; }
.ob-ask .d { margin-top: var(--space-1); color: var(--ink-muted); font-size: var(--text-md); }
.ob-ask .b { display: flex; justify-content: flex-end; gap: var(--space-3); margin-top: var(--space-5); }
.ob-ask .b span { padding: var(--space-3) var(--space-5); border: var(--border); border-radius: var(--radius-chip); font-size: var(--text-md); }
.ob-ask .b .yes { border-color: var(--focus-blue); background: var(--focus-blue); color: var(--on-solid); outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; }
.ob-ask .arrow { position: absolute; right: 4px; bottom: -30px; color: var(--accent-strong); font-weight: 700; font-size: var(--text-md); }
.ob-steps { margin: var(--space-7) auto 0; max-width: 420px; padding: 0; list-style: none; text-align: left; counter-reset: ob-step; }
.ob-steps li { counter-increment: ob-step; display: grid; grid-template-columns: 32px 1fr; gap: var(--space-4); align-items: start; padding: var(--space-4) 0; border-top: var(--border); color: var(--ink-muted); }
.ob-steps li:first-child { border-top: 0; }
.ob-steps li::before { content: counter(ob-step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-dot); background: var(--accent-soft); color: var(--accent-strong); font: 600 var(--text-sm) var(--mono); }
.ob-steps b { color: var(--ink); font-weight: 600; }
/* The one place two paths exist: two equal cards that say plainly how they differ. */
.ob-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-8); text-align: left; }
.ob-card { display: grid; grid-template-rows: auto auto 1fr auto auto; gap: var(--space-3); padding: var(--space-7); border: var(--border); border-radius: var(--radius-card); background: var(--surface); }
.ob-k { color: var(--accent-strong); font: 700 var(--text-xs) var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.ob-card h2 { margin: 0; font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }
.ob-card p { margin: 0; color: var(--ink-muted); }
.ob-card .ob-act { margin: var(--space-4) 0 0; max-width: none; }
.ob-card .ob-small { margin: var(--space-4) 0 0; max-width: none; text-align: left; }
.ob-two.signed-in { grid-template-columns: minmax(0, 440px); justify-content: center; }
.ob-two.signed-in .ob-card + .ob-card { display: none; }
@media (width < 760px) { .ob-two { grid-template-columns: 1fr; } .ob-cmd code { font-size: var(--text-lg); } }
#local-note[data-kind="note"] { display: grid; gap: var(--space-1); margin: 0 0 var(--space-5); padding: var(--space-5) var(--space-5); border: var(--border); border-radius: var(--radius-card); background: var(--surface); }
#local-note[data-kind="note"] .ob-top, #local-note[data-kind="note"] .ob-mark { display: none; }
#local-note[data-kind="note"] .ob-panel { max-width: none; padding: 0; text-align: left; font-size: var(--text-md); }
#local-note[data-kind="note"] h1 { margin: 0; font-size: var(--text-lg); }
#local-note[data-kind="note"] .ob-say { margin: var(--space-0) 0 0; max-width: none; font-size: var(--text-md); }
/* The relay's banner, filled by its client: the same quiet card. */
#relay-notice { display: grid; gap: var(--space-2); margin: 0 0 var(--space-5); padding: var(--space-5) var(--space-5); }
#relay-notice p { margin: 0; color: var(--ink-muted); }
#relay-notice a { justify-self: start; font-weight: 600; }
.loading #relay-notice, .boardless #relay-notice { max-width: 560px; margin: 10vh auto var(--space-5); }
#pairing-storage-notice { margin: 0 0 var(--space-5); padding: var(--space-4) var(--space-5); color: var(--ink-muted); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 42%, 600px); gap: var(--space-5); align-items: start; }
.two.narrow { grid-template-columns: minmax(0, 1fr) var(--agents-w); }
.roadmap-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 30%, 360px); gap: var(--space-5); align-items: start; }
.roadmap-layout:not(:has(.roadmap-panel)) { grid-template-columns: minmax(0, 1fr); }
.roadmap-layout:not(:has(.roadmap-panel)) .roadmap-list { grid-row: 1; }
.roadmap-list { grid-column: 1; grid-row: 1; display: grid; gap: var(--space-4); max-width: 900px; min-width: 0; align-content: start; }
.roadmap-panel { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--top) + 16px); max-height: calc(100vh - var(--top) - 32px); min-width: 0; overflow-y: auto; padding: var(--space-5); display: grid; gap: var(--space-6); align-content: start; }
.roadmap-panel h2 { margin: 0 0 var(--space-3); font-size: var(--text-lg); }
.roadmap-release-index { min-width: 0; }
.roadmap-releases { display: grid; gap: var(--space-1); min-width: 0; }
.roadmap-release { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 20px 3px; align-items: center; gap: 0 var(--space-3); width: 100%; min-width: 0; padding: var(--space-1) var(--space-3) var(--space-2); border: 0; border-radius: var(--radius-xs); background: none; color: var(--ink-muted); font-size: var(--text-sm); text-align: left; cursor: pointer; }
.roadmap-release:hover { color: var(--ink); }
/* The open release is marked as the navigation marks its page: ink, semibold, the accent dot before it; no box. */
.roadmap-release[aria-current="location"] { color: var(--ink); font-weight: 600; }
.roadmap-release[aria-current="location"] .roadmap-release-version::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: var(--space-2); border-radius: var(--radius-dot); background: var(--accent); vertical-align: middle; }
.roadmap-release-version { flex: none; white-space: nowrap; font-weight: 600; }
.roadmap-release-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.roadmap-release-progress { grid-column: 1 / -1; display: block; width: 100%; height: 3px; margin-top: var(--space-0); border-radius: var(--radius-xs); background: var(--line-soft); }
.roadmap-release-progress .landed { fill: var(--stage-merged); } .roadmap-release-progress .landing { fill: color-mix(in oklab, var(--stage-merged) 40%, var(--surface)); }
.roadmap-release-progress .review { fill: var(--stage-review); } .roadmap-release-progress .building { fill: var(--stage-building); }
.roadmap-release-progress .ready { fill: var(--stage-ready); }
.roadmap-release-progress .waiting, .roadmap-release-progress .held { fill: var(--stage-gated); }
.roadmap-stage-swatch { flex: none; width: 8px; height: 8px; border-radius: var(--radius-dot); background: var(--ink-faint); }
.roadmap-stage-swatch.landed, .roadmap-stage-swatch.merged { background: var(--stage-merged); }
.roadmap-stage-swatch.landing, .roadmap-stage-swatch.accepted { background: var(--stage-stripe); }
.roadmap-stage-swatch.review, .roadmap-stage-swatch.submitted { background: var(--stage-review); }
.roadmap-stage-swatch.building, .roadmap-stage-swatch.claimed { background: var(--stage-building); }
.roadmap-stage-swatch.open { background: var(--stage-ready); }
.roadmap-stage-swatch.waiting { background: var(--stage-gated); }
.roadmap-stage-swatch.held { background: none; box-sizing: border-box; border: var(--border-held); }
.roadmap-list > [data-key] { scroll-margin-top: calc(var(--top) + 16px); }
.roadmap-arrival { animation: roadmap-arrival 1.3s ease-out; }
@keyframes roadmap-arrival { from { box-shadow: var(--ring-accent); } to { box-shadow: var(--ring-none); } }
.milestone { padding: var(--space-5) var(--space-5) var(--space-4); }
.milestone-head { display: flex; align-items: center; gap: var(--space-4); min-height: 44px; cursor: pointer; border-radius: var(--radius-lg); }
.milestone-head .milestone-count { margin-left: auto; }
.milestone-head .milestone-limit { flex: none; color: var(--ink-muted); font: var(--text-xs) var(--mono); white-space: nowrap; }
/* A small triangle that turns down when its part is open. */
.roadmap-layout .caret { display: inline-block; flex: none; width: 16px; height: 16px; margin: calc((1lh - var(--space-5)) / 2) var(--space-3) 0 0; vertical-align: top; color: var(--ink-muted); transition: transform .15s, color .15s; }
.milestone-head:hover .caret { color: var(--ink); }
.milestone-head[aria-expanded="true"] .caret { transform: rotate(90deg); }
.shipped { padding: var(--space-1) var(--space-5); }
.shipped > .milestone-head h2 { margin: 0; font-size: var(--text-lg); color: var(--ink-muted); }
.shipped-one { border-top: var(--border); }
.shipped-one > .milestone-head { min-height: 44px; }
.shipped-one > .milestone-head h2 { flex: none; font-size: var(--text-md); }
.shipped-one > .milestone-head small { min-width: 0; overflow: hidden; color: var(--ink-faint); font-size: var(--text-xs); text-overflow: ellipsis; white-space: nowrap; }
.shipped-one:has(> .milestone-head[aria-expanded="true"]) { padding-bottom: var(--space-4); }
.milestone h2 { margin: 0; font-size: var(--text-xl); line-height: var(--leading-snug); overflow-wrap: anywhere; }
.milestone-count { color: var(--ink-muted); font: var(--text-xs) var(--mono); white-space: nowrap; }
.milestone-progress { display: block; width: 100%; height: 7px; margin: var(--space-4) 0 var(--space-2); overflow: hidden; border-radius: var(--radius-bar); background: var(--surface-2); box-shadow: var(--inset-line); }
.milestone-progress rect { fill: var(--accent); }
.milestone ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-0); margin: 0 calc(var(--space-3) * -1); padding: 0; list-style: none; }
.milestone-item { display: grid; grid-template-columns: 22px 20px minmax(0, 1fr) auto; gap: var(--space-2); align-items: center; width: 100%; min-height: var(--tap); padding: 0 var(--space-3); border: var(--border-clear); border-radius: var(--radius-lg); background: none; text-align: left; }
.milestone-item[data-go] { cursor: pointer; }
.milestone-item[data-go]:hover { background: var(--surface-2); }
.milestone-item.blocked { cursor: pointer; }
.milestone-item.blocked:hover { background: var(--surface-2); }
.milestone-item.blocked .t { display: flex; align-items: center; }
.milestone-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.block-dot { display: inline-block; flex: none; width: 7px; height: 7px; margin-left: var(--space-2); border-radius: var(--radius-dot); background: var(--stage-gated); vertical-align: middle; }
.milestone-why { margin: var(--space-0) var(--space-3) var(--space-3) var(--space-8); font-size: var(--text-sm); }
.milestone-why .kv { margin: 0 0 var(--space-2); }
.milestone-item .t { display: flex; align-items: center; gap: var(--space-2); min-width: 0; overflow: hidden; white-space: nowrap; }
.milestone-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-position { min-width: 0; color: var(--ink-faint); font: var(--text-2xs) var(--mono); text-align: right; }
.roadmap-state { display: grid; place-items: center; width: 20px; height: 20px; color: var(--ink-faint); }
.roadmap-state svg { width: 16px; height: 16px; }
.roadmap-state .dot { display: none; }
.roadmap-state.building { color: var(--stage-building); }
.roadmap-state.ready { color: var(--stage-ready); }
.roadmap-state.review { color: var(--stage-review); }
.roadmap-state.gated, .roadmap-state.held { color: var(--stage-gated); }
.roadmap-state.accepted, .roadmap-state.landed { color: var(--stage-merged); }
.roadmap-after { display: inline-flex; align-items: center; gap: var(--space-1); flex: none; color: var(--ink-faint); font-size: var(--text-2xs); }
.roadmap-after svg { flex: none; width: 12px; height: 12px; }
.roadmap-after a { color: var(--ink-muted); font: 500 var(--text-2xs) var(--mono); }
.milestone-item .t code { white-space: nowrap; }
.milestone-item .id { margin-right: var(--space-2); color: var(--ink-faint); font: 500 var(--text-xs) var(--mono); }
.milestone-empty { margin: var(--space-3) 0 0; color: var(--ink-faint); }
.milestone-note { margin: var(--space-4) 0 var(--space-0); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--accent-soft); color: var(--ink-muted); overflow-wrap: anywhere; }
/* Below 900px, not at it: the Roadmap keeps its panel on the right at 900, as its criterion says, while the rest
   of the page folds at 900 and narrower. */
@media (width < 900px) {
  .roadmap-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .roadmap-panel { grid-column: 1; grid-row: 1; position: static; max-height: none; overflow: visible; padding: var(--space-4); }
  .roadmap-list { grid-column: 1; grid-row: 2; max-width: none; }
  .roadmap-releases { display: flex; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; gap: var(--space-2); padding-bottom: var(--space-1); }
  .roadmap-release { flex: 0 0 auto; width: auto; max-width: 220px; }
}
@media (max-width: 900px) {
  .shell { display: block; }
  .side { position: static; height: auto; overflow: visible; padding: var(--space-3) var(--space-4); border-right: 0; border-bottom: var(--border); }
  .side-top { height: auto; margin: 0; padding: 0; border: 0; }
  .brand span { display: none; }
  .switch-btn { display: flex; }
  .brand { cursor: default; }
  .brand:hover { background: none; }
  .side-body { display: none; padding-top: var(--space-2); }
  .side.open .side-body { display: grid; }
  .top { padding: 0 var(--space-2); }
  .tab { padding: var(--space-2); }
  .live { display: none; }
  main { padding: var(--space-4) var(--space-4) var(--space-7); }
  .two, .two.narrow { grid-template-columns: minmax(0, 1fr); }
  .group-need { grid-template-columns: minmax(80px, auto) auto minmax(0, 1fr); }
  .group-need > button { grid-column: 3; }
}
@media (width < 480px) {
  .group-need { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3); }
  .group-need > b { grid-column: 1; }
  .group-need > code { grid-column: 2; }
  .group-need > span, .group-need > button { grid-column: 1 / -1; }
  .top { container-type: inline-size; }
  .tabs { flex: 1 1 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row; gap: 0; min-width: 0; }
  /* Dashboard and the retained destinations use two rows, so every full label fits a phone without scrolling the page. */
  .tab { display: grid; justify-items: center; align-content: center; padding: var(--space-3) var(--space-0); font-size: clamp(var(--text-2xs), 3.3cqi, var(--text-sm)); }
}
.primary { display: grid; gap: var(--space-4); min-width: 0; }
.items-view-switch { flex: none; flex-wrap: nowrap; max-width: none; }
.pipeline { display: grid; gap: var(--space-7); list-style: none; margin: 0; padding: 0; min-width: 0; }
.pipeline-stage { position: relative; min-width: 0; padding: var(--space-5); }
.pipeline-stage + .pipeline-stage::before { content: '↓'; position: absolute; top: -25px; left: 22px; color: var(--ink-faint); }
.pipeline-stage header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.pipeline-stage h2 { margin: 0; font-size: var(--text-lg); overflow-wrap: anywhere; }
.pipeline-stage header > b { font: 600 var(--text-lg) var(--mono); }
.pipeline-oldest { margin: var(--space-2) 0 var(--space-4); color: var(--ink-muted); font-size: var(--text-xs); }
.pipeline-stage ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-0); }
.pipeline-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); width: 100%; min-height: var(--tap); padding: var(--space-2) var(--space-3); text-align: left; border: 0; border-radius: var(--radius-md); background: none; cursor: pointer; }
.pipeline-item:hover, .pipeline-item.on { background: var(--surface-2); }
.pipeline-item > span:first-child { color: var(--ink-faint); font-family: var(--mono); }
.pipeline-item > span:last-child { overflow-wrap: anywhere; }
.card-panel { background: var(--surface); border: var(--border); border-radius: var(--radius-card); min-width: 0; }
/* Upgrade details scroll within one card so the first item remains in the viewport. */
.upgrade-note { padding: var(--space-4); max-height: min(24vh, 190px); overflow-y: auto; overflow-wrap: anywhere; }
.upgrade-note header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.upgrade-note h2 { margin: 0; font-size: var(--text-lg); }
.upgrade-note h3 { margin: var(--space-4) 0 var(--space-1); font-size: var(--text-sm); }
.upgrade-note p, .upgrade-note footer { margin: var(--space-1) 0; font-size: var(--text-xs); }
.upgrade-note button { flex: none; min-height: var(--tap); }
/* On a phone the link invitation above can wrap a line taller with Linux fonts (199px, not 179px), so the card keeps
   20px less and scrolls inside; it says the same and the first item stays above the fold (#871). */
/* Keep the phone notice secondary to the first work item; complete notes remain scrollable. */
@media (width < 600px) { .upgrade-note { max-height: min(17vh, calc(var(--space-9) * 3)); } }
.release-note { padding: 0 var(--space-0) var(--space-4); }
.release-note p { margin: 0; font-size: var(--text-sm); line-height: var(--leading-body); color: var(--ink-muted); overflow-wrap: anywhere; }
.release-note code { font: var(--text-xs) var(--mono); color: var(--ink); white-space: nowrap; }
.release-note a { color: var(--ink); margin-left: var(--space-1); white-space: nowrap; }
.release-note button { margin-left: var(--space-2); min-height: var(--tap); padding: var(--space-0) var(--space-4); font-size: var(--text-xs); }
/* The Items toolbar keeps its view, filters, and creation action together on one line. */
.toolbar { display: flex; flex-wrap: nowrap; gap: var(--space-2); align-items: center; min-width: 0; padding: var(--space-4); }
.toolbar .go { flex: none; margin-left: auto; }
/* Filter is a button sized to its words, beside List | Pipeline; a long choice gives way with an ellipsis, never the row.
   Its arrow points the way the menu goes, as the project switcher's does, switching at once. */
input, select, textarea { border: var(--border-strong); background: var(--surface); border-radius: var(--radius-xs); padding: var(--space-3) var(--space-3); min-width: 0; }
input:disabled { background: var(--surface-2); color: var(--ink-muted); }
.go { border: 0; background: var(--ink); color: var(--surface); border-radius: var(--radius-xs); padding: var(--space-3) var(--space-5); cursor: pointer; font-weight: 600; white-space: nowrap; }
.go:hover { background: var(--accent-strong); color: var(--on-accent); }
.ghost { border: var(--border-strong); background: var(--surface); border-radius: var(--radius-xs); padding: var(--space-2) var(--space-4); cursor: pointer; }

.rulings-box { background: color-mix(in srgb, var(--warn) 8%, var(--surface)); border: var(--border-warn); border-radius: var(--radius-card); padding: var(--space-4) var(--space-4); display: grid; gap: var(--space-1); }
.rulings-box .head { font-weight: 700; display: flex; gap: var(--space-3); align-items: center; }
.rulings-box .head i { width: 8px; height: 8px; border-radius: var(--radius-dot); background: var(--warn); display: inline-block; }
.rulings-box .head.quiet { color: var(--ink-muted); font-weight: 600; }
.rulings-box .more { padding: var(--space-0) var(--space-1); }
.answering { flex: 1 1 100%; display: flex; gap: var(--space-4); align-items: baseline; justify-content: space-between; margin: 0; font-size: var(--text-sm); color: var(--ink-muted); }
.answering > span { min-width: 0; overflow-wrap: anywhere; }
.mark { font: 600 var(--text-2xs) var(--mono); padding: 0 var(--space-2); border-radius: var(--radius-chip); background: var(--surface-2); color: var(--ink-muted); }
.mark.ask { display: inline; background: var(--warn-soft); color: var(--warn); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0 var(--space-0); }
.chips button { flex: 0 0 auto; border: var(--border); background: var(--surface); border-radius: var(--radius-chip); padding: var(--space-1) var(--space-3); cursor: pointer; font-size: var(--text-sm); }
.chips button.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.chips button b { font: 600 var(--text-2xs) var(--mono); color: var(--ink-faint); margin-left: var(--space-1); }
/* One component for Items, Spec, Doctrine and Activity; the track matches its neighbouring Filter. */
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; height: var(--tap); gap: var(--space-0); padding: var(--space-0); border-radius: var(--radius-md); background: var(--surface-2); }
.seg button { position: relative; flex: none; height: calc(var(--tap) - var(--space-1)); min-height: 0; border: 0; background: none; padding: 0 var(--space-4); border-radius: var(--radius-sm); color: var(--ink-muted); cursor: pointer; font: var(--text-sm) var(--sans); white-space: nowrap; }
/* Transparent edge targets fill the track padding without enlarging the visible option. */
.seg-short { display: none; }
.seg-hit { position: absolute; left: 0; right: 0; height: var(--space-0); }
.seg-hit-top { top: calc(var(--space-0) * -1); }
.seg-hit-bottom { bottom: calc(var(--space-0) * -1); }
.seg button:focus-visible { outline-offset: calc(var(--space-0) * -1); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--ring-line); }
.seg button b { font: 400 var(--text-2xs) var(--mono); color: var(--ink-faint); margin-left: var(--space-2); }

.chain { list-style: none; margin: 0; padding: var(--space-2); display: grid; gap: var(--space-0); }
.row { display: grid; grid-template-columns: var(--space-6) minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; padding: var(--space-3) var(--space-3); border-radius: var(--radius-lg); border: var(--border-clear); cursor: pointer; }
.row:hover { background: var(--surface-2); }
.row.gated:has(> .chip.gate) { border-color: var(--line-gated); }
.row.s-verify { background: var(--verify-bg); }
.row.s-verify:hover { background: var(--verify-bg-hover); }
.row.s-verify:not(.gated) { border-color: var(--line-verify); }
.row.on { background: color-mix(in srgb, var(--ink) 7%, transparent); }
/* What a blocked row waits on stands at the right of its line, beside the gated badge. */
.row .meta > .gate { margin-left: auto; }
.dot { width: 9px; height: 9px; border-radius: var(--radius-dot); background: var(--line-strong); }
.dot.building { background: var(--stage-building); } .dot.verify { background: var(--stage-review); } .dot.back { background: var(--mark-back); } .dot.verified { background: var(--stage-merged); }
/* A row holds its shape: the title takes the whole first line and the meta and chip share the second,
 * each line cut with an ellipsis, so every row in a list is as tall as the next. The whole title is the
 * row's tooltip and opens in the detail. */
/* The second line starts at the row's edge: a rejected row's verdict, or the lane and the spec ids it serves. */
.row { grid-template-areas: "dot t age" "dot meta chip"; row-gap: var(--space-1); }
.row .meta > .specs { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.row .row-age { grid-area: age; justify-self: end; color: var(--ink-faint); font: var(--text-xs) var(--mono); }
.row > div { display: contents; }
.row > .dot { grid-area: dot; }
.row .t { grid-area: t; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .t code, .row .t code.inline.long { white-space: nowrap; overflow-wrap: normal; }
.row .t span { color: var(--ink-faint); font: 500 var(--text-xs) var(--mono); margin-right: var(--space-2); }
.meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); color: var(--ink-muted); font-size: var(--text-xs); margin-top: var(--space-0); }
.row .meta { grid-area: meta; min-width: 0; margin-top: 0; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.row .meta > * { flex: none; }
/* A row's second line is its lane, then what holds it up; the spec ids it serves are in its detail. */
.row .meta { align-items: center; }
.row .meta > .gate, .row .meta > .why { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.row .meta > .why { flex-grow: 1; }
.row > .chip { grid-area: chip; justify-self: end; max-width: 10rem; overflow: hidden; text-overflow: ellipsis; }
.row.item-row > .dot { width: var(--space-6); height: var(--space-6); display: grid; place-items: center; }
/* Approved Items rows keep two copy lines beside a whole seat address [N26]. */
.row.item-row { grid-template-areas: none; gap: var(--space-3); padding: var(--space-3); }
.row.item-row > .dot { grid-area: auto; background: var(--surface-2); color: var(--ink-faint); box-shadow: var(--inset-line); }
.row.item-row > .row-copy { display: block; min-width: 0; }
.row.item-row .t { line-height: 1.4; }
.row.item-row > .row-side { display: grid; justify-items: end; gap: var(--space-1); min-width: 0; }
.row.item-row .row-age { grid-area: auto; line-height: 1.3; }
.row.item-row .meta { line-height: 1.4; gap: var(--space-2); }
.row.item-row .meta > .specs { font-family: var(--mono); color: var(--ink-faint); }
.row.item-row .item-reason { color: var(--reject); font-weight: 600; }
/* The reason may shrink, so a narrow row ends it in an ellipsis instead of cutting it mid-word. */
.row.item-row .meta > .item-reason { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.item-row .dot svg, .row.item-row .item-seat svg { width: 13px; height: 13px; }
.row.item-row .dot.building { background: color-mix(in oklab, var(--stage-building) 16%, var(--surface)); color: color-mix(in oklab, var(--stage-building) 60%, var(--ink)); box-shadow: none; }
.row.item-row .dot.back { background: color-mix(in oklab, var(--mark-back) 16%, var(--surface)); color: color-mix(in oklab, var(--mark-back) 60%, var(--ink)); box-shadow: none; }
.row.item-row .dot.verify { background: color-mix(in oklab, var(--stage-review) 16%, var(--surface)); color: color-mix(in oklab, var(--stage-review) 60%, var(--ink)); box-shadow: none; }
.row.item-row .dot.verified { background: var(--stage-merged); color: var(--surface); box-shadow: none; }
/* Ready work is a purple dot; open work that waits is the same dot in Blocked grey. */
.row.item-row .dot.open { --stage: var(--stage-ready); background: radial-gradient(circle, var(--stage) 0 3.5px, color-mix(in oklab, var(--stage) 16%, var(--surface)) 4px); box-shadow: none; }
.row.item-row.gated .dot.open { --stage: var(--stage-gated); }
.row.item-row.on { background: var(--surface-2); }
.row.item-row .row-side .chip { display: inline-flex; align-items: center; gap: var(--space-1); max-width: none; padding: 0 var(--space-2); border-radius: var(--radius-chip); font: 500 var(--text-2xs)/18px var(--sans); letter-spacing: normal; }
.row.item-row .item-seat.building { background: color-mix(in oklab, var(--stage-building) 16%, var(--surface)); color: color-mix(in oklab, var(--stage-building) 60%, var(--ink)); }
.row.item-row .item-seat.back { background: color-mix(in oklab, var(--mark-back) 16%, var(--surface)); color: color-mix(in oklab, var(--mark-back) 60%, var(--ink)); }
.row.item-row .item-seat.verify { background: color-mix(in oklab, var(--stage-review) 16%, var(--surface)); color: color-mix(in oklab, var(--stage-review) 60%, var(--ink)); }
.row.item-row .item-status { font-family: var(--sans); }
.row.item-row.gated:has(> .row-side > .chip.gate), .row.item-row.gated:has(.meta .gate) { border-color: color-mix(in oklab, var(--stage-gated) 45%, var(--line)); }

/* Items opens on its items: questions and sentinels wait in one collapsed group above them, ids whole [N26]. */
.needs-fold { list-style: none; min-width: 0; }
.needs-fold > details > summary { display: flex; align-items: baseline; gap: var(--space-3); padding: var(--space-3) var(--space-4); cursor: pointer; list-style: none; border-radius: var(--radius-lg); }
.needs-fold > details > summary::-webkit-details-marker { display: none; }
.needs-fold > details > summary:hover { background: var(--surface-2); }
.needs-fold-caret { color: var(--ink-faint); line-height: 1; transition: transform .12s; }
.needs-fold > details[open] .needs-fold-caret { transform: rotate(90deg); }
.needs-fold-label { font: 600 var(--text-2xs) var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-faint); }
.needs-fold-count { font: 600 var(--text-xs) var(--mono); color: var(--ink-muted); }
.needs-fold-more { margin-left: auto; font-size: var(--text-xs); color: var(--ink-faint); }
.needs-fold > details > ol, .needs-fold-questions > ol { list-style: none; padding: 0; margin: 0; }
.needs-fold-questions { list-style: none; min-width: 0; }
.needs-fold-questions .needs-group-head { display: none; }
.needs-fold .needs-id { max-width: none; overflow: visible; }
/* The Dashboard's Rulings show each reference whole and cut a title only where the row ends; on a phone the reference takes its own line. */
.needs-card .needs-id { max-width: none; overflow: visible; }
@media (max-width: 640px) { .needs-card .needs-id { display: block; margin: 0; white-space: normal; overflow-wrap: anywhere; } }

/* Rows stay on one line [N26]: a title ends in an ellipsis at the row's width, inline code in it is plain monospace with no box. */
.row .t, .milestone-item .t, .milestone-item.blocked .t { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .t code, .row .t code.inline, .milestone-item .t code, .milestone-item .t code.inline { display: inline; padding: 0; border-radius: 0; background: none; font: 500 .92em var(--mono); white-space: nowrap; overflow-wrap: normal; }
.row-disclosure > summary { list-style: none; }
.row-disclosure > summary::-webkit-details-marker { display: none; }
.row-detail { padding: var(--space-3) var(--space-4); font-size: var(--text-sm); }
.chip { font: 600 var(--text-2xs)/1 var(--mono); letter-spacing: var(--tracking-label); padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-muted); white-space: nowrap; }
.chip.ok { background: color-mix(in oklab, var(--stage-merged) 16%, var(--surface)); color: color-mix(in oklab, var(--stage-merged) 60%, var(--ink)); }
.chip.warn { background: color-mix(in oklab, var(--stage-review) 16%, var(--surface)); color: color-mix(in oklab, var(--stage-review) 60%, var(--ink)); }
.chip.no { background: color-mix(in oklab, var(--mark-back) 16%, var(--surface)); color: color-mix(in oklab, var(--mark-back) 60%, var(--ink)); }
.chip.busy { background: color-mix(in oklab, var(--stage-building) 16%, var(--surface)); color: color-mix(in oklab, var(--stage-building) 60%, var(--ink)); }
.chip.free { background: color-mix(in oklab, var(--stage-ready) 16%, var(--surface)); color: color-mix(in oklab, var(--stage-ready) 60%, var(--ink)); }
.chip.gate { background: none; color: var(--ink-muted); outline: 1px dashed var(--line-strong); outline-offset: -1px; }
/* A stale verdict (#726) is a quiet word with a small dot beside the verified chip; its title says what main moved. */
.chip.stale { background: none; color: var(--ink-muted); padding-inline: 0; }
.chip.stale::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: var(--space-1); border-radius: var(--radius-dot); background: var(--warn); vertical-align: 1px; }
.row .meta > .stale { margin-left: auto; }
.milestone-item:has(> .stale) { grid-template-columns: 12px minmax(0, 1fr) auto auto; }
.agent-work:has(> .stale) { grid-template-columns: minmax(0, 1fr) auto auto; }
.meta .gate { color: var(--ink-muted); }
.meta .gate .wait-unit, .kv dd.waits-on .wait-unit { white-space: nowrap; }
.meta .gate button.ref, .meta .gate a.ref { min-height: 0; }
.meta button.ref, .meta a.ref { border: 0; background: none; padding: 0; font: inherit; color: var(--accent-strong); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.empty { color: var(--ink-faint); padding: var(--space-5) var(--space-4); }

.stack { display: grid; gap: var(--space-5); }
.stack.tight { gap: var(--space-4); }
.meta.spaced { margin-top: var(--space-2); }
.detail { position: sticky; top: calc(var(--top) + 16px); max-height: calc(100vh - var(--top) - 32px); overflow-y: auto; padding: var(--space-5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-content: start; }
/* The side card's one column is the card's width. Left to size itself, it took the widest thing that would not wrap, a lane's
   "held by" chip and its Release button, and every row and the Hold form ran past the card (#456). */
@media (max-width: 900px) { .detail { position: static; max-height: none; } #detail { scroll-margin-top: 96px; } }
.detail h2 { margin: 0; font-size: var(--text-xl); line-height: var(--leading-snug); overflow-wrap: anywhere; }
.detail h2 span { color: var(--ink-faint); font: 600 var(--text-sm) var(--mono); margin-right: var(--space-2); }
.detail .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.detail .muted, .muted { color: var(--ink-muted); }
.check-warning { margin: var(--space-2) 0 0; color: var(--warn); font-size: var(--text-sm); }
.kv { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: var(--space-1) var(--space-4); font-size: var(--text-sm); margin: 0; }
.kv dt { color: var(--ink-faint); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.kv dd.waits-on button.ref, .kv dd.waits-on a.ref { border: 0; background: none; padding: 0; font: inherit; color: var(--accent-strong); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.kv dd.waits-on button.ref, .kv dd.waits-on a.ref { min-height: 0; }
.kv code, .detail code { font: var(--text-xs) var(--mono); }
.verdict { display: grid; gap: var(--space-1); margin-bottom: var(--space-4); }
.verdict.yes b { color: var(--accent-strong); } .verdict.no b { color: var(--reject); }
.verdict .by { font-size: var(--text-xs); color: var(--ink-faint); }
.verdict .note { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--text-sm); }
.sentback { border: var(--border-reject); background: color-mix(in srgb, var(--reject) 6%, var(--surface)); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-4); }
.sentback h3 { color: var(--reject); }
.sentback .verdict { margin: 0; }
/* A rejected row keeps its verdict's code in the warning colour while it is reworked; the note after it stays quiet. */
.meta .why b { color: var(--warn); font-weight: 600; }
.meta .why { flex-basis: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-faint); font-size: var(--text-2xs); }
.tl { list-style: none; margin: 0; padding: 0; min-width: 0; font-size: var(--text-sm); overflow-wrap: anywhere; }
.tl > li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-2) 0; }
.tl > li::after { content: ''; position: absolute; left: 10px; top: 26px; bottom: -6px; width: 2px; background: var(--line); }
.tl > li:last-child::after { display: none; }
.tl-marker { z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--radius-dot); background: var(--surface-2); color: var(--ink-muted); box-shadow: var(--ring-surface); }
.tl-marker svg { width: 13px; height: 13px; }
.tl-marker.review { background: color-mix(in oklab, var(--stage-review) 16%, var(--surface)); color: color-mix(in oklab, var(--stage-review) 60%, var(--ink)); }
.tl-marker.proof { background: var(--blue-soft); color: var(--blue); }
.tl-marker.measure { background: var(--violet-soft); color: var(--violet); }
.tl-marker.build { background: color-mix(in oklab, var(--stage-building) 16%, var(--surface)); color: color-mix(in oklab, var(--stage-building) 60%, var(--ink)); }
.tl-marker.pass { background: color-mix(in oklab, var(--stage-merged) 16%, var(--surface)); color: color-mix(in oklab, var(--stage-merged) 60%, var(--ink)); }
.tl-marker.back { background: color-mix(in oklab, var(--mark-back) 16%, var(--surface)); color: color-mix(in oklab, var(--mark-back) 60%, var(--ink)); }
.tl-marker.sentinel { background: var(--warn-soft); color: var(--warn); }
.tl-kind-move.back { color: color-mix(in oklab, var(--mark-back) 60%, var(--ink)); }
.tl-kind-move.sentinel { color: var(--warn); }
.chip.waiting { background: none; color: var(--ink-muted); white-space: normal; }
.chip.waiting .ref { min-height: 0; }
.tl-content, .tl-sentence { min-width: 0; }
.tl-heading { display: flex; align-items: baseline; gap: var(--space-2); }
.tl-heading > time { margin-left: auto; flex: none; color: var(--ink-faint); font: var(--text-xs) var(--mono); }
.tl-who[title] { text-decoration: underline dotted var(--line); text-underline-offset: 3px; }
.tl small { display: block; color: var(--ink-faint); font-size: var(--text-xs); }
.tl-kind { display: inline-block; font-size: var(--text-xs); color: var(--ink-muted); }
.tl-kind-measurement { color: var(--violet); } .tl-kind-proof { color: var(--blue); } .tl-kind-move.review { color: color-mix(in oklab, var(--stage-review) 60%, var(--ink)); }
.tl-kind-fact { color: var(--accent-strong); } .tl-kind-move.build { color: color-mix(in oklab, var(--stage-building) 60%, var(--ink)); } .tl-kind-move.pass { color: color-mix(in oklab, var(--stage-merged) 60%, var(--ink)); }
.tl-note { margin-top: var(--space-1); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--surface-2); }
.tl-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.tl-note.expanded .tl-body { display: block; -webkit-line-clamp: unset; }
.tl-note > button { border: 0; background: none; padding: var(--space-1) 0 0; color: var(--accent-strong); font-size: var(--text-xs); font-weight: 600; }
.tl .tl-superseded { opacity: .56; }
.tl .tl-code { max-width: 100%; overflow-wrap: anywhere; }
.tl .thread-replacement { color: var(--accent-strong); text-decoration: underline; }
.tl .tl-code button.ref { white-space: normal; overflow-wrap: anywhere; text-align: left; }

.rowref { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); font-size: var(--text-sm); padding: var(--space-1) 0; }
.rowref code { font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.links > button { min-height: var(--tap); }
.links-item { border: var(--border); background: var(--surface-2); border-radius: var(--radius-md); padding: var(--space-1) var(--space-3); cursor: pointer; font-size: var(--text-xs); min-height: var(--tap); display: flex; align-items: center; }

.panel-form { display: grid; gap: var(--space-4); }
.panel-form label, .inline label { display: grid; gap: var(--space-1); font-size: var(--text-xs); color: var(--ink-muted); }
.panel-form input, .panel-form select, .panel-form textarea, .inline input, .inline select { width: 100%; }
.panel-form textarea { resize: vertical; }
.actions { display: flex; gap: var(--space-3); } .actions .go { flex: 1; }
form.inline { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: end; padding: var(--space-4); }
.inline label { flex: 1 1 150px; min-width: 0; }
.inline label.wide { flex: 4 1 260px; }
.feed { padding: var(--space-2) var(--space-4) var(--space-4); display: grid; }
.feed > div { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: var(--space-4); padding: var(--space-3) 0; border-top: var(--border); overflow-wrap: break-word; }
.feed > .empty { display: block; }
/* Older history still streaming to a phone (#956): one quiet line at the end of the list, gone once complete. */
.history-note { margin: 0; padding: var(--space-4) var(--space-4); color: var(--ink-muted); font-size: var(--text-sm); text-align: center; }
.history-note.failed { color: var(--ink); }
.feed > div:first-child, .feed > .day + div { border-top: 0; }
/* The shout composer: one bar, to on the left, the message growing with what is typed, send on the right. */
.shout-form { display: flex; flex-wrap: wrap; gap: var(--space-3); padding: var(--space-3); }
.shout-form > .composer { flex: 1 1 100%; min-width: 0; }
.composer { display: flex; align-items: flex-end; gap: var(--space-2); padding: var(--space-1); border: var(--border); border-radius: var(--radius-card); background: var(--surface); }
.composer:focus-within { border-color: var(--accent); }
.composer textarea { flex: 1; min-width: 0; min-height: var(--tap); max-height: 12em; padding: calc((var(--tap) - var(--space-6)) / 2) var(--space-3); border: 0; background: none; resize: none; field-sizing: content; line-height: var(--leading-body); }
.composer input:focus-visible, .composer textarea:focus-visible { outline: 0; }
.composer .send { display: grid; place-items: center; flex: none; width: var(--tap); height: var(--tap); border: 0; border-radius: var(--radius-xs); background: var(--ink); color: var(--surface); cursor: pointer; }
.composer .send:hover { background: var(--accent-strong); color: var(--on-accent); }
.composer .send svg { width: 18px; height: 18px; }
/* The feed's bar: whose shouts these are, and the agents panel shown or hidden. */
#feed > .feed-bar { display: flex; border-top: 0; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 0 var(--space-1); color: var(--ink-muted); font-size: var(--text-sm); }
.link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0; border: 0; background: none; color: var(--accent-strong); font: inherit; font-weight: 600; cursor: pointer; }
[data-pane="shouts"].bare { grid-template-columns: minmax(0, 1fr); }
[data-pane="shouts"].bare > aside { display: none; }
/* The asks as cards in a quiet panel; the amber lives in the heading's dot, not in a box. */
#decisions { background: var(--surface); border-color: var(--line); padding: var(--space-4) var(--space-4) var(--space-1); }
/* Shouts as cards (#250): who and when on top, what was said below, each agent in a colour of its own. No
 * card carries a coloured edge; colour lives in the avatar, the name and the chips. */
:root { --hue-0: light-dark(#0f766e, #5eead4); --hue-1: light-dark(#1d4ed8, #93b4f8); --hue-2: light-dark(#6d28d9, #c4b5fd); --hue-3: light-dark(#be185d, #f9a8d4);
  --hue-4: light-dark(#b45309, #fcd34d); --hue-5: light-dark(#15803d, #86efac); --hue-6: light-dark(#b91c1c, #fca5a5); --hue-7: light-dark(#475569, #cbd5e1); }
.shout.h0, .agent-card.h0, .agent-pill.h0, .heard-face.h0 { --h: var(--hue-0); } .shout.h1, .agent-card.h1, .agent-pill.h1, .heard-face.h1 { --h: var(--hue-1); } .shout.h2, .agent-card.h2, .agent-pill.h2, .heard-face.h2 { --h: var(--hue-2); } .shout.h3, .agent-card.h3, .agent-pill.h3, .heard-face.h3 { --h: var(--hue-3); }
.shout.h4, .agent-card.h4, .agent-pill.h4, .heard-face.h4 { --h: var(--hue-4); } .shout.h5, .agent-card.h5, .agent-pill.h5, .heard-face.h5 { --h: var(--hue-5); } .shout.h6, .agent-card.h6, .agent-pill.h6, .heard-face.h6 { --h: var(--hue-6); } .shout.h7, .agent-card.h7, .agent-pill.h7, .heard-face.h7 { --h: var(--hue-7); }
#feed > .shout { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 var(--space-4); align-items: start; padding: var(--space-5) var(--space-1); border-top: var(--border); }
#feed > .shout:first-child, #feed > .day-rule + .shout { border-top: 0; }
#feed > .day-rule { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-4) 0 var(--space-0); color: var(--ink-faint); font: 600 var(--text-2xs) var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase; }
#feed > .day-rule::before, #feed > .day-rule::after { content: ""; flex: 1; border-top: var(--border); }
#feed > .day-rule:first-child { margin-top: var(--space-0); }
.shout.lead .who { color: var(--ink); }
.shout-main { min-width: 0; }
.shout header { display: flex; flex-wrap: nowrap; align-items: baseline; gap: var(--space-0) var(--space-3); }
.shout .who, .shout .to { display: flex; flex: 0 1 auto; min-width: min-content; white-space: nowrap; }
/* A recipient with no model to shorten, such as coordinator and you, gives way with an ellipsis before the age is pushed out. */
.shout .to:not(:has(.agent-label, .agent-address)) { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.shout header .mark { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#feed .shout:has(.mark.ask) .to { flex: none; min-width: max-content; padding-right: var(--space-1); }
.shout header time { flex: none; }
.shout .who { color: var(--h); font-weight: 700; }
.shout .to, .shout .item { color: var(--ink-faint); }
.shout header time { margin-left: auto; color: var(--ink-faint); font-size: var(--text-xs); white-space: nowrap; }
/* A waiting ask keeps its address and age whole; a wider fallback font shortens its kind instead. */
.shout .text { margin-top: var(--space-1); overflow-wrap: break-word; }
.shout.clamp:not(.open) .text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.shout .more { display: none; align-items: center; min-height: var(--tap); margin: calc(var(--space-3) * -1) 0 calc(var(--space-4) * -1); padding: 0; border: 0; background: none; color: var(--accent-strong); font-weight: 600; font-size: var(--text-sm); cursor: pointer; }
.shout.clamp .more { display: inline-flex; }
.shout .band { margin-top: var(--space-3); padding: var(--space-2) var(--space-4); border-radius: var(--radius-lg); background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: var(--text-sm); }
.shout .band.done { background: var(--surface-2); color: var(--ink-muted); font-weight: 500; }
.shout .receipt { display: grid; gap: var(--space-1); margin-top: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--surface-2); font-size: var(--text-sm); }
.shout .receipt .badge { padding: 1px var(--space-3); border-radius: var(--radius-chip); background: var(--blue-soft); color: var(--blue); font: 600 var(--text-2xs) var(--mono); text-transform: capitalize; }
.shout .receipt .outcome { color: var(--ink-muted); }
.shout .receipt-foot { color: var(--ink-faint); font-size: var(--text-xs); }
/* In a shout, a chip says what it is: an item, a path, a commit, a command. */
.shout button.ref[data-go], .shout a.ref[data-go] { padding: 0 var(--space-2); border-radius: var(--radius-sm); background: var(--violet-soft); color: var(--violet); font-weight: 600; text-decoration: none; }
.shout code.inline.path { background: var(--blue-soft); color: var(--blue); }
.shout code.inline.sha { background: var(--warn-soft); color: var(--warn); }
.shout code.inline.cmd { background: var(--accent-soft); color: var(--accent-strong); }
/* In a shout a long chip stays one piece: it moves whole to the next line, and one longer than the line ends in an
   ellipsis, the whole of it on hover and in a copy. */
.shout code.inline.long { display: inline-block; box-sizing: border-box; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; vertical-align: bottom; }
.feed .day { margin: 0; padding: var(--space-4) 0 var(--space-1); font: 600 var(--text-2xs)/1 var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-faint); }
.feed .day:first-child { padding-top: var(--space-2); }
button.ref, a.ref[data-go] { width: auto; min-height: 0; border: 0; border-radius: 0; background: none; padding: 0; color: var(--accent-strong); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; display: inline; vertical-align: baseline; line-height: inherit; font: inherit; }
/* On Activity an item number is never underlined, in a row or inside a shout (#2986). */
/* Item anchors use their inherited line box, rather than the shorter inline glyph box. */
a.ref[data-go] { display: inline-block; }
/* A code reference (path:lines@sha) is one long token: wider than its line, it breaks anywhere rather than push the page sideways. */
button.ref[data-code] { display: inline-flex; max-width: 100%; vertical-align: bottom; white-space: nowrap; text-align: left; }
button.ref[data-code] .ref-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
button.ref[data-code] .ref-at { flex: none; }
code.inline { padding: 0 var(--space-1); border-radius: var(--radius-xs); background: color-mix(in srgb, var(--ink) 8%, var(--surface)); font: .92em var(--mono); white-space: nowrap; }
.hash-copy { display: inline; min-height: 0; border: 0; padding: 0; background: none; vertical-align: baseline; cursor: copy; }
code.inline.long { white-space: break-spaces; overflow-wrap: anywhere; }
/* A brief's '- ' lines, wherever text is drawn: tight bullets, nested ones indented under their parent. */
.text-list { list-style: disc; margin: 0; padding-left: 1.35em; }
.text-list .text-list { list-style: circle; }
.code { display: block; margin: var(--space-2) 0 var(--space-0); padding: var(--space-3) 0; border: var(--border); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--ink) 4%, var(--surface)); font: var(--text-2xs)/1.6 var(--mono); white-space: pre; overflow-x: auto; overflow-wrap: normal; }
.code > span { display: block; padding-right: var(--space-4); }
.code i { display: inline-block; min-width: 3.2em; padding: 0 var(--space-4) 0 var(--space-2); text-align: right; font-style: normal; color: var(--ink-faint); user-select: none; }
.code .more, .code.no { padding: var(--space-0) var(--space-4); white-space: normal; color: var(--ink-muted); }
.code.no { color: var(--reject); }
.code-wrap { min-width: 0; }
.code-control { display: inline-flex; align-items: center; min-height: var(--tap); border: 0; background: none; padding: 0 var(--space-4); color: var(--ink-muted); cursor: pointer; font: var(--text-xs) var(--sans); }
.code-control:hover { color: var(--accent-strong); }
.code-control:disabled { color: var(--ink-muted); cursor: wait; }
.tok-keyword { color: var(--violet); }
.tok-string { color: var(--warn); }
.tok-number { color: var(--accent-strong); }
.tok-comment { color: color-mix(in srgb, var(--accent-strong) 55%, var(--ink-faint)); font-style: italic; }
/* A code reference on a line of its own: a bordered block, a caret, the path and lines, the short commit muted. */
.code-ref { margin: var(--space-2) 0; border: var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.code-ref > button.ref.block { display: flex; align-items: center; width: 100%; min-height: var(--tap); padding: 0 var(--space-4); color: var(--ink); font: var(--text-xs) var(--mono); text-decoration: none; }
.code-ref > button.ref.block::before { content: ""; flex: none; width: 6px; height: 8px; margin-right: var(--space-4); background: var(--ink-faint); clip-path: polygon(0 0, 100% 50%, 0 100%); transition: transform .12s; }
.code-ref.open > button.ref.block::before { transform: rotate(90deg); }
.code-ref > button.ref.block:hover { background: var(--surface-2); }
.code-ref .ref-sha { margin-left: .7em; color: var(--ink-faint); }
.code-ref .code-wrap { border-top: var(--border); }
.code-ref .code { margin: 0; border: 0; border-radius: 0; }
.fact-code { min-width: 0; padding: var(--space-2) 0; border-top: var(--border); overflow-wrap: anywhere; }
.fact-code:first-of-type { border-top: 0; }
.fact-code .muted { margin-left: var(--space-1); font-size: var(--text-xs); }
.fact-code .ref { margin-left: var(--space-1); }
.ref-missing { display: inline-block; }
.feed .act { display: flex; gap: 0 var(--space-2); align-items: baseline; min-width: 0; overflow-wrap: anywhere; }
.feed .act .what { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; color: var(--ink-muted); }
.feed .act .said { flex: 1 1 0; min-width: 0; margin-left: var(--space-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-muted); }
.feed .act .said code { white-space: nowrap; }
.agent-work { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; width: 100%; border: 0; background: none; padding: var(--space-0) 0; text-align: left; cursor: pointer; }
.agent-work > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-work:hover > span:first-child { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.lane { display: flex; justify-content: space-between; gap: var(--space-3); align-items: center; padding: var(--space-2) 0; border-top: var(--border); font-size: var(--text-sm); }
.lane:first-child { border-top: 0; }
/* A long holder name ends in an ellipsis, the whole name on hover, rather than push Release off the card (#456). */
.lane > span { min-width: 0; }
.lane .chip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
#spec-chips, #doctrine-chips { min-width: 0; max-width: 100%; }
.rows-filter { display: flex; padding: var(--space-4) var(--space-4) var(--space-0); }
.rows-filter.rule-description-wrap { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.rule-tab-description { max-width: 100%; margin: 0; color: var(--ink-muted); font-size: var(--text-sm); line-height: var(--leading-body); }
.rows { padding: var(--space-1) var(--space-4) var(--space-4); }
.section-count { margin-left: var(--space-2); color: var(--ink-faint); font: 500 var(--text-2xs) var(--mono); }
.spec-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin: var(--space-4) 0 var(--space-1); }
.rows h4 { margin: 0; font-size: var(--text-xs); color: var(--ink-muted); }
.approve-row, .decline-row { min-height: var(--tap); padding: 0 var(--space-4); border: var(--border-clear); border-radius: var(--radius-xs); background: none; font-weight: 600; white-space: nowrap; cursor: pointer; }
.approve-row { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.approve-row:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.decline-row { border-color: var(--line-strong); color: var(--ink-muted); }
.decline-row:hover { background: var(--reject-soft); color: var(--reject); }
.spec-decision-actions { display: flex; align-items: center; gap: var(--space-3); cursor: default; }
.detail-decision-actions { margin: 0 0 var(--space-4); }
.detail-decision-actions kbd { margin-left: var(--space-2); font: var(--text-2xs) var(--mono); opacity: .75; }
.spec-answer-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-4); }
.spec-answer-form label { grid-column: 1 / -1; color: var(--ink-muted); font-size: var(--text-xs); }
.spec-answer-form input { min-width: 0; min-height: var(--tap); padding: 0 var(--space-3); border: var(--border-strong); border-radius: var(--radius-xs); background: var(--surface); color: var(--ink); font: inherit; }
.spec-answer-form button { min-height: var(--tap); }
.spec-reason-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: var(--space-5); background: var(--scrim); }
.spec-reason-dialog { width: min(100%, 420px); display: grid; gap: var(--space-4); padding: var(--space-6); border: var(--border-strong); border-radius: var(--radius-float); background: var(--surface); box-shadow: var(--shadow-float); }
.spec-reason-dialog h2 { margin: 0; font-size: var(--text-xl); }
.spec-reason-dialog label { display: grid; gap: var(--space-2); color: var(--ink-muted); font-size: var(--text-xs); }
.spec-reason-dialog input { width: 100%; min-height: var(--tap); padding: var(--space-3) var(--space-3); border: var(--border-strong); border-radius: var(--radius-xs); background: var(--surface); color: var(--ink); font-size: var(--text-sm); }
.spec-reason-dialog .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.spec-reason-dialog .actions button { min-height: var(--tap); }
#spec-list:focus, #doctrine-list:focus { outline: none; }
#spec-list:focus-visible, #doctrine-list:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-lg); }
.rule-source, .rule-reason { color: var(--ink-muted); font: inherit; }
.srow .meta > .gate { margin-left: 0; }
.srow .meta > .rule-reason { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* @shared-view-css src/view/doctrine.css */
.flow { position: relative; margin: 0 0 var(--space-4); padding: var(--space-4) var(--space-4) var(--space-3); overflow-x: auto; }
.flow svg { display: block; width: 100%; min-width: 680px; max-width: 920px; height: auto; margin: 0 auto; }
.flow figcaption { color: var(--ink-faint); font-size: var(--text-xs); padding: var(--space-0) var(--space-8) 0 var(--space-0); }
.flow-hide { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: var(--radius-xs); background: none; color: var(--ink-faint); font: var(--text-xl)/1 var(--sans); cursor: pointer; }
.flow-hide:hover { background: var(--surface-2); color: var(--ink); }
.flow-show { margin: 0 0 var(--space-4); }
.flow .box { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.2; }
.flow .box.inner { fill: none; }
.flow .s-verified .box { fill: color-mix(in oklab, var(--stage-merged) 16%, var(--surface)); stroke: var(--stage-merged); } .flow .s-verified .box.inner { fill: none; }
.flow .name { font: 600 var(--text-2xs) var(--mono); letter-spacing: var(--tracking-label); fill: var(--ink-faint); }
.flow .n { font: 800 var(--text-2xl) var(--sans); fill: var(--ink); }
.flow .keep { font: var(--text-2xs) var(--sans); fill: var(--ink-muted); } .flow .keep.idle { fill: var(--ink-faint); }
.flow .sub { font: var(--text-2xs) var(--sans); fill: var(--reject); }
.flow .edge { fill: none; stroke: var(--line-strong); stroke-width: 1.4; }
.flow .edge.back { stroke: var(--mark-back); stroke-dasharray: 5 4; }
.flow marker path { fill: var(--line-strong); } .flow marker.back path { fill: var(--mark-back); }
.flow .tag { font: var(--text-xs) var(--sans); fill: var(--ink-muted); }
.flow .tag.idle { fill: var(--ink-faint); } .flow .tag.back { fill: var(--mark-back); }
.flow g:hover > .box, .flow g:hover > .edge { stroke-width: 2.2; }
.flow [data-lifecycle-stage] .name { font: 600 var(--text-sm) var(--sans); letter-spacing: 0; fill: var(--ink-muted); }
.flow [data-lifecycle-stage] .sub { font: var(--text-xs) var(--sans); fill: var(--ink-faint); }
.flow .s-verified .n { fill: color-mix(in oklab, var(--stage-merged) 60%, var(--ink)); }
.flow .box.withdrawn { stroke-dasharray: 4 3; }
.flow .tag.masked { paint-order: stroke; stroke: var(--surface); stroke-width: 8px; stroke-linejoin: round; }
.lifecycle-notes { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-4); color: var(--ink-muted); font-size: var(--text-xs); }
.lifecycle-notes p { margin: 0; }
.lifecycle-notes .lifecycle-returns { color: var(--reject); }
.lifecycle-rare summary { cursor: pointer; color: var(--accent-strong); font-weight: 600; }
.lifecycle-rare ul { margin: var(--space-2) 0; padding-left: var(--space-5); }
.console { position: static; width: min(560px, calc(100% - 32px)); margin: var(--space-3) auto; background: var(--surface); border: var(--border-strong); border-radius: var(--radius-card); padding: var(--space-4) var(--space-4); font: var(--text-xs)/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 38vh; overflow: auto; cursor: pointer; }
.console.ok { border-color: var(--accent); } .console.no { border-color: var(--reject); }
/* Export replay belongs in the existing read-only status strip, never above the snapshot's content. */
:root:has(body.snapshot) { overflow-y: scroll; }
.status.snap { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; }
.snapshot .live { margin-left: 0; }
.snapshot .status-board { min-width: 0; }
.snapshot-controls { display: inline-flex; grid-column: 3; flex: none; min-width: 0; align-items: center; }
.snapshot-controls button { justify-content: center; width: 2.25rem; padding: 0; }
.snapshot-controls button svg { width: 14px; height: 14px; }
.snapshot-speed { display: inline-flex; flex: none; align-items: center; gap: var(--space-1); padding: 0 var(--space-2); }
.snapshot-speed select { max-width: 3.25rem; min-height: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; }
.snapshot-controls output { box-sizing: border-box; inline-size: 24ch; min-width: 0; flex: none; padding: 0 var(--space-2); overflow: hidden; color: var(--status-ink); font: var(--text-2xs) var(--mono); text-overflow: ellipsis; white-space: nowrap; }
@media (width < 480px) { .status.snap { grid-template-columns: max-content minmax(0, 1fr); } .snapshot .status-board { display: none; } .snapshot-controls { grid-column: 2; width: 100%; } .snapshot-controls output { width: auto; flex: 1; } }
.snapshot #new-item, .snapshot form, .snapshot [data-new], .snapshot [data-release], .snapshot [data-shout], .snapshot [data-go^="decide:"] { display: none !important; }
.read-only:not(.requests) #new-item, .read-only:not(.requests) form, .read-only:not(.requests) [data-new], .read-only:not(.requests) [data-release], .read-only:not(.requests) [data-shout], .read-only:not(.requests) [data-go^="decide:"] { display: none !important; }
.person-requests { margin-bottom: var(--space-4); padding: var(--space-4); min-width: 0; }
.person-requests h2 { margin: 0 0 var(--space-3); font-size: var(--text-md); }
.request-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; }
.request-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-4); padding: var(--space-3) 0; border-top: var(--border); }
.request-list li:first-child { border-top: 0; }
.request-label { min-width: 0; overflow-wrap: anywhere; font-size: var(--text-sm); }
.request-status { align-self: start; font-size: var(--text-xs); }
.request-error, .request-next { grid-column: 1 / -1; margin: 0; overflow-wrap: anywhere; font-size: var(--text-xs); }
.request-error { color: var(--reject); }
.request-next { color: var(--ink-muted); }

/* Where a finger taps, under a coarse pointer or in a window under 900px, every action keeps a 44px target, a
 * reference inside running text excepted, as WCAG 2.5.8 exempts inline targets; a reference standing alone is a target
 * like any button. Under a mouse on a wide screen there is no blanket minimum: controls size to their words, and those
 * that need room to be clicked take --tap, 32px there. */
:root { --tap: 32px; }
@media (pointer: coarse), (width < 900px) {
  :root { --tap: 44px; }
  button, input, select, textarea, [data-item], [data-row] { min-height: 44px; }
  button.ref.alone, a.ref.alone { display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle; }
  .theme-btn, .flow-hide { width: 44px; height: 44px; }
}
/* A clickable row is never shorter than the target. */
[data-item], [data-row] { min-height: var(--tap); }
/* The Items toolbar's controls stand at the target, 32px under a mouse. */
.toolbar .go, .toolbar input { min-height: var(--tap); }
.toolbar .go, .toolbar input { padding-block: 0; }
.inline > label { min-width: 0; }
/* The label changes at 900px, while the control keeps its accessible name at every size. */
@media (width < 480px) {
  .toolbar { gap: var(--space-2); padding-inline: var(--space-3); }
  .toolbar .go { padding-inline: var(--space-4); }
}

.spec-feedback { margin: var(--space-3) 0; padding: var(--space-3); border: var(--border-strong); border-radius: var(--radius-lg); overflow-wrap: anywhere; font-size: var(--text-sm); }
.spec-feedback.ok { color: var(--accent-strong); }
.spec-feedback.no { color: var(--reject); }

/* The agents panel: a row for each agent holding work, a pill for each holding none. */
.agent-card { border-radius: var(--radius-lg); }
.agent-card.on { background: color-mix(in srgb, var(--h) 9%, transparent); }
.agent-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3); align-items: center; width: 100%; min-height: 48px; padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-lg); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.agent-row:hover { background: var(--surface-2); }
.agent-who { display: flex; align-items: baseline; gap: var(--space-3); min-width: 0; }
.agent-who b { flex: none; white-space: nowrap; color: var(--violet); font: 600 var(--text-sm) var(--mono); }
.agent-card.lead .agent-who b, .agent-pill.lead > span { color: var(--ink); }
.agent-doing { display: flex; align-items: center; gap: var(--space-2); min-width: 0; font-size: var(--text-xs); color: var(--ink-muted); }
.agent-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-what i { font: normal var(--text-2xs) var(--mono); color: var(--ink-faint); }
.agent-doing .chip { flex: none; font-size: var(--text-2xs); padding-block: 0; }
.agent-card .agent-work { padding: 0 var(--space-3) 0 var(--space-9); font-size: var(--text-xs); }
.fold-line { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: var(--tap); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-lg); background: none; color: var(--ink-muted); font: inherit; font-size: var(--text-xs); text-align: left; cursor: pointer; }
.fold-line:hover { background: var(--surface-2); }
.fold-more { margin-left: auto; color: var(--accent-strong); font-weight: 600; }
/* The fold line reaches 4px from the card edge on every side, its words in line with the card text. */

.all-agents { margin-top: var(--space-0); font-size: var(--text-sm); }
.agents-idle { margin-top: var(--space-1); padding-top: var(--space-0); border-top: var(--border); }
.idle-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.agent-pill { display: flex; align-items: center; min-width: 0; min-height: var(--tap); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-xs); background: none; color: inherit; font: inherit; cursor: pointer; }
.agent-pill:hover { background: var(--surface-2); }
.agent-pill.on { background: color-mix(in srgb, var(--h) 9%, transparent); }
.agent-pill > span { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; color: var(--ink-muted); font-size: var(--text-xs); }
.agent-pill:hover > span, .agent-pill.on > span { border-color: var(--h); color: var(--h); }

/* The composer's address, when it is not the coordinator: a chip the person can clear. */
.composer .to-chip { display: inline-flex; flex: none; align-items: center; align-self: center; gap: var(--space-0); margin-left: var(--space-2); padding-left: var(--space-4); border-radius: var(--radius-chip); background: var(--violet-soft); color: var(--violet); font-size: var(--text-xs); white-space: nowrap; }
.composer .to-chip[hidden] { display: none; }
.to-clear { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); margin: calc(var(--space-4) * -1) calc(var(--space-0) * -1) calc(var(--space-4) * -1) 0; padding: 0; border: 0; border-radius: var(--radius-dot); background: none; color: inherit; font-size: var(--text-lg); cursor: pointer; }
/* Heard: which agents a shout of the person's has reached. */
.shout .heard { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); color: var(--ink-muted); font-size: var(--text-xs); }
.shout .heard::before { content: "✓"; color: var(--accent-strong); font-weight: 700; }
.shout .heard.not { color: var(--ink-faint); }
.shout .heard.not::before { content: "…"; color: var(--ink-faint); }
.roadmap-only { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 0 var(--space-1); color: var(--ink-muted); font-size: var(--text-sm); }

/* One corner in both modes: the logo, then the project name, in the same place and size. Docked, the project list sits
 * under it; collapsed, the same list drops down from it, and only then does the name carry its arrow. */
@media (width > 900px) {
  .side-top { gap: var(--space-2); }
  .brand span { display: none; }
  .brand { justify-content: center; width: var(--tap); height: var(--tap); margin: 0 0 0 calc(var(--space-2) - var(--space-5)); padding: 0; }
  :root[data-side="collapsed"] .brand { margin: 0; }
  .switch-btn, :root[data-side="collapsed"] .switch-btn { display: flex; max-width: 16rem; padding: var(--space-2) var(--space-3); border-color: transparent; background: none; font-size: var(--text-lg); font-weight: 700; }
  :root[data-side="collapsed"] .switch-btn:hover { background: var(--surface-2); }
  :root:not([data-side="collapsed"]) .switch-btn { cursor: default; }
  :root:not([data-side="collapsed"]) .switch-btn small { display: none; }
}
/* Rulings heads the Items list: each call a row shaped like an item, its kind in the warning colour as a sent-back
 * verdict is, set off from the items under it by a rule. */
.list-card { display: grid; gap: var(--space-0); padding: var(--space-2); }
.list-card > .chain { padding: 0; }
/* Items draws only the rows near the screen (#6676), so every row is one fixed height and the list's whole height is known. */
/* Items opens on its list alone: the sign-in and share notes live in the account menu, never above the rows (#6648). */
:root[data-tab="items"] #local-note[data-kind="note"], :root[data-tab="items"] #share-note, :root[data-tab="items"] #relay-notice { display: none; }
#chain { --item-row-h: 55px; overflow-anchor: none; } #chain > li.row { height: var(--item-row-h); box-sizing: border-box; overflow: hidden; content-visibility: visible; }
.needs { display: grid; gap: var(--space-0); margin: 0 0 var(--space-1); padding: 0 0 var(--space-1); list-style: none; border-bottom: var(--border); }
.needs[hidden] { display: none; }
.dot.ask { background: var(--warn); }
.row.ask .meta .why { color: var(--warn); }
/* Shouts is one card: the composer's line at its head with the asks and Show agents at its end, then the asks once
 * opened, as a tinted group set apart from the feed, then the feed. */
.shouts-card { display: grid; min-width: 0; padding: 0; }
.shouts-card > .shout-form { flex-wrap: wrap; align-items: center; padding: var(--space-4) var(--space-4) var(--space-1); }
.shout-form > .composer { flex: 1 1 0; }
.asks-slot { display: flex; flex: none; gap: var(--space-0); }
.asks-slot:empty { display: none; }
.asks-toggle { flex: none; padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-xs); background: none; color: var(--ink-muted); font: inherit; font-size: var(--text-sm); white-space: nowrap; cursor: pointer; }
.asks-toggle:hover, .asks-toggle[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.shouts-card > .feed { min-width: 0; }
/* A sent shout shows as its card in the feed, so only a refusal speaks, on its own line above the composer. */
.shout-form > .console { flex: 1 1 100%; order: -1; margin: 0; }
.shout-form > .console.ok { display: none; }
/* Under a mouse the composer is as tall as a line of text. */
@media (pointer: fine) and (width >= 900px) {
  .composer { padding: var(--space-1); border-radius: var(--radius-lg); }
  .composer textarea { min-height: 32px; padding: var(--space-2) var(--space-3); }
  .composer .send { width: 32px; height: 32px; border-radius: var(--radius-xs); }
  .composer .send svg { width: 15px; height: 15px; }
}
/* A panel's heading carries its own control at the right. */
.detail h3.panel-head { display: flex; align-items: center; justify-content: space-between; }
.detail h3.panel-head .link { min-height: 44px; margin: calc(var(--space-5) * -1) calc(var(--space-2) * -1) calc(var(--space-5) * -1) 0; padding: 0 var(--space-2); color: var(--ink-faint); font: 500 var(--text-xs) var(--sans); letter-spacing: 0; text-transform: none; }
.detail h3.panel-head .link:hover { color: var(--accent-strong); }
/* In an agent's row the state is a coloured word beside the name, so what it holds has the row's full width. */
.agent-who { gap: var(--space-2); }
.agent-who .chip { flex: none; padding: 0; border: 0; background: none; font: 600 var(--text-2xs) var(--sans); letter-spacing: 0; }
/* Search lives in the top bar and covers the whole board; its results drop down under it, grouped, and open what they name. */
.top-find { position: relative; flex: 0 1 280px; min-width: 150px; margin-left: auto; align-self: center; }
.top .tabs { flex-wrap: nowrap; }
.top-find input { width: 100%; padding: var(--space-2) var(--space-4) var(--space-2) var(--space-8); border: var(--border-clear); border-radius: var(--radius-xs); background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.5' fill='none' stroke='%237a887f' stroke-width='1.6'/%3E%3Cpath d='M10.5 10.5 14 14' stroke='%237a887f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 10px center / 14px; font-size: var(--text-sm); }
.top-find input:focus { outline: 0; border-color: var(--line-strong); background-color: var(--surface); }
.find-results { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(480px, 92vw); max-height: 70vh; overflow-y: auto; padding: var(--space-2); border: var(--border); border-radius: var(--radius-float); background: var(--surface); box-shadow: var(--shadow-float); }
.find-results h4 { display: flex; justify-content: space-between; margin: var(--space-3) var(--space-3) var(--space-1); color: var(--ink-faint); font: 600 var(--text-2xs) var(--sans); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.find-results h4:first-child { margin-top: var(--space-0); }
.find-results h4 span { font: 500 var(--text-2xs) var(--mono); letter-spacing: 0; text-transform: none; }
.find-hit { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; width: 100%; padding: var(--space-1) var(--space-3); border: 0; border-radius: var(--radius-lg); background: none; color: var(--ink); font: inherit; font-size: var(--text-sm); text-align: left; cursor: pointer; }
.find-hit code { overflow: hidden; color: var(--ink-faint); font: 600 var(--text-xs) var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.find-hit span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-hit small { color: var(--ink-faint); font-size: var(--text-2xs); white-space: nowrap; }
.find-hit.on, .find-hit:hover { background: var(--surface-2); }
.find-empty { padding: var(--space-4); color: var(--ink-muted); font-size: var(--text-sm); }
.shout.found { background: color-mix(in srgb, var(--accent) 10%, transparent); transition: background .4s; }
@media (width < 480px) { .top { flex-wrap: wrap; } .top-find { order: 3; flex-basis: 100%; margin: 0 0 var(--space-3); } }

/* Credential ids wrap within the agents panel; every action remains a full touch target. */
#credentials { min-width: 0; margin-top: var(--space-4); }
#credentials > .link { min-height: 44px; }
#credentials p { color: var(--ink-muted); overflow-wrap: anywhere; }
.credential { display: grid; min-width: 0; gap: var(--space-3); padding: var(--space-4) 0; border-top: var(--border); }
.credential > code, .credential > b { overflow-wrap: anywhere; }
.credential dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-1) var(--space-3); margin: 0; font-size: var(--text-xs); }
.credential dt { color: var(--ink-muted); }
.credential dd { margin: 0; overflow-wrap: anywhere; }
.credential > button { justify-self: start; min-height: 44px; }



.milestone-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The hosted page's one star line (#727): a quiet sentence under the board, with a small way to dismiss it. */
.star-line { display: flex; align-items: center; justify-content: center; gap: var(--space-1); margin: var(--space-6) 0 0; color: var(--ink-faint); font-size: var(--text-xs); }
.star-line[hidden] { display: none; }
.star-line a { color: var(--ink-muted); text-decoration: none; }
.star-line a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.star-dismiss { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--radius-md); background: none; color: var(--ink-faint); font: inherit; font-size: var(--text-lg); cursor: pointer; }
.star-dismiss:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.star-dismiss:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (pointer: coarse) { .star-dismiss { width: 44px; height: 44px; } }

.milestone-targetline { margin: 0 var(--space-5) var(--space-4); color: var(--ink-muted); font-size: var(--text-sm); }
.roadmap-shipped-commit { flex: none; color: var(--ink-muted); font: var(--text-2xs) var(--mono); }

/* The approved release headline is shared by Dashboard and Roadmap; only Roadmap adds its disclosure caret [N26]. */
.roadmap-has-summary > .release-header { margin: 0 0 var(--space-5); }
.roadmap-has-summary > .release-header > .release-header-toggle { align-items: stretch; }
.release-header { min-width: 0; }
.release-header-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: baseline; gap: var(--space-1) var(--space-5); min-width: 0; }
.release-header-top .release-name { grid-column: 1; grid-row: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: var(--text-xl); line-height: var(--leading-snug); }
.roadmap-left { flex: none; display: grid; gap: var(--space-1); margin-left: auto; text-align: right; white-space: nowrap; }
.release-header-top > .roadmap-left { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.roadmap-left > b { font-size: var(--text-2xl); font-weight: 600; line-height: var(--leading-tight); }
.roadmap-left > span { color: var(--ink-muted); font: var(--text-xs) var(--mono); }
.roadmap-forecast { grid-column: 1; grid-row: 2; display: block; min-width: 0; margin: 0; color: var(--ink-muted); font-size: var(--text-xs); line-height: var(--leading-body); }
.roadmap-forecast .roadmap-estimate, .roadmap-forecast .roadmap-pace, .roadmap-forecast .roadmap-completion { color: inherit; }
@media (width > 900px) {
  .roadmap-has-summary .release-header-top > .roadmap-left { grid-row: 1; }
  .roadmap-has-summary .roadmap-forecast { grid-column: 1 / -1; white-space: nowrap; }
}
.roadmap-summary { min-width: 0; }
.roadmap-summary-row { display: grid; grid-template-columns: minmax(112px, 1fr) minmax(0, 1.15fr); align-items: center; gap: var(--space-5); min-width: 0; }
.roadmap-summary-track { min-width: 0; }
.roadmap-summary-bar { display: block; width: 100%; height: 6px; margin: 0; border-radius: var(--radius-sm); }
.roadmap-summary-swatch { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: var(--radius-dot); }
.roadmap-summary .landed { background: var(--stage-merged); fill: var(--stage-merged); }
.roadmap-summary .landing { background: var(--stage-stripe); }
.roadmap-stripe-a { fill: var(--stage-merged); }
.roadmap-stripe-b { fill: color-mix(in oklab, var(--stage-merged) 35%, var(--surface)); }
.roadmap-summary .review { background: var(--stage-review); fill: var(--stage-review); }
.roadmap-summary .building { background: var(--stage-building); fill: var(--stage-building); }
.roadmap-summary .ready { background: var(--stage-ready); fill: var(--stage-ready); }
.roadmap-summary .waiting { background: var(--stage-gated); fill: var(--stage-gated); }
/* Held is a mark, not a color: its legend dot is a dashed ring, and in the bar it sits with the gated work it pauses. */
.roadmap-summary-segment.held { fill: var(--stage-gated); }
.roadmap-summary-swatch.held { background: none; box-sizing: border-box; border: var(--border-held); }
.roadmap-summary-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); color: var(--ink-muted); font-size: var(--text-sm); }
.roadmap-summary-legend > [data-summary-state] { display: inline-flex; align-items: center; gap: var(--space-2); line-height: var(--leading-body); }
.roadmap-summary-legend > .roadmap-held-link { color: inherit; font: inherit; font-weight: inherit; text-align: left; }
.roadmap-summary-legend b { font-weight: 600; color: var(--ink); }
.roadmap-summary-meta { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin-top: var(--space-4); padding-top: var(--space-4); border-top: var(--border); color: var(--ink-muted); font-size: var(--text-sm); }
.release-header-toggle > .release-header-top { flex: 1; }
.release-header-toggle > .caret { align-self: flex-start; margin-top: var(--space-1); }
.shipped-one > .milestone-head h2 { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Roadmap title references keep their colour and tooltip while the whole row expands in place. */
.milestone-item span.ref { color: var(--accent-strong); display: inline-block; line-height: inherit; font: inherit; }

/* The approved dense Roadmap detail uses the view's own light/dark tokens [N26]. */
.milestone-item[role="button"] { cursor: pointer; }
.milestone-item[role="button"]:hover { background: var(--surface-2); }
.roadmap-status { display: inline-flex; align-items: center; gap: var(--space-2); }
.item-stage { display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--space-0); min-width: 0; max-width: 100%; white-space: normal; text-align: left; }
.stage-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); min-width: 0; }
.stage-word { color: var(--ink); font: 600 var(--text-2xs)/var(--leading-snug) var(--sans); }
.stage-detail { color: var(--ink-muted); font: 400 var(--text-2xs)/var(--leading-snug) var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-mark { border-radius: var(--radius-sm); padding: 0 var(--space-1); background: var(--surface-2); color: var(--ink-muted); font: 600 var(--text-2xs)/var(--leading-snug) var(--sans); white-space: normal; }
/* Held is a dashed outline, no color; Sent back carries its return arrow. */
.stage-mark.gate { background: none; color: var(--ink-muted); outline: 1px dashed var(--line-strong); outline-offset: -1px; }
.stage-mark.no::before { content: '\21A9\FE0E'; margin-right: var(--space-0); }
.stage-mark.no { background: color-mix(in oklab, var(--mark-back) 16%, var(--surface)); color: color-mix(in oklab, var(--mark-back) 60%, var(--ink)); }
/* One map from stage word to token: Verified and Landing share the done green, Merged is solid. */
.item-stage[data-stage=merged], .item-stage[data-stage=verified], .item-stage[data-stage=landing] { --stage: var(--stage-merged); }
.item-stage[data-stage=in-review] { --stage: var(--stage-review); } .item-stage[data-stage=building] { --stage: var(--stage-building); }
.item-stage[data-stage=ready] { --stage: var(--stage-ready); } .item-stage[data-stage=blocked] { --stage: var(--stage-gated); }
/* The word paints the chip wherever it sits, so a row's chip and the detail's read the same; the compact row's wrapper only holds it [N26]. */
.item-stage[data-stage] > .stage-line > .stage-word, .item-stage[data-stage] .chip.item-status .stage-word { display: inline-flex; justify-content: center; min-width: 0; padding: 0 var(--space-2); border-radius: var(--radius-chip); background: color-mix(in oklab, var(--stage) 16%, var(--surface)); color: color-mix(in oklab, var(--stage) 60%, var(--ink)); font: 500 var(--text-2xs)/18px var(--sans); letter-spacing: normal; white-space: nowrap; }
.item-stage[data-stage] .chip.item-status { display: inline-flex; padding: 0; background: none; color: inherit; }
/* The Roadmap reads its row like the mockup: what is happening, any mark, then the stage chip. */
.roadmap-status .item-stage { flex-direction: row-reverse; align-items: center; gap: var(--space-3); }
.roadmap-status .stage-line { flex-wrap: nowrap; flex-direction: row-reverse; }
.roadmap-status .stage-detail { max-width: 230px; font-size: var(--text-xs); }
/* On a phone the stage cell may not take the title's width: it stops at 9rem and its detail gives way, as .row .item-stage does at 10rem. */
@media (width < 700px) { .roadmap-status { min-width: 0; max-width: 9rem; } .roadmap-status .item-stage, .roadmap-status .stage-line, .roadmap-status .stage-detail { min-width: 0; } }
.row .item-stage { grid-area: chip; justify-self: end; max-width: 10rem; overflow: hidden; }
.pipeline-copy, .dash-item-copy { display: grid; gap: var(--space-0); min-width: 0; }
.pipeline-copy .item-stage { margin-top: var(--space-1); }
.dash-item-copy .item-stage { align-items: flex-start; }
.dash-item .stage-detail, .dash-item .stage-mark { color: var(--ink-muted); font-family: var(--sans); font-size: var(--text-2xs); }
/* Items keep one compact chip line; the native detail remains on hover and for assistive readers. */
#chain .stage-detail { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#chain .stage-line { flex-wrap: nowrap; }
#chain .stage-marks { display: inline-flex; align-items: center; gap: var(--space-1); line-height: var(--leading-snug); }
#chain .stage-mark { white-space: nowrap; }
#chain .stage-marks > .chip { padding-block: 0; line-height: var(--leading-snug); }
/* A shared chip track keeps every Items row the same height, with or without marks. */
#chain .item-stage { height: var(--space-6); justify-content: center; }
/* Marks precede the compact chip so the seat and its age retain their shared right edge. */
#chain .row-side .item-stage { grid-area: auto; align-items: flex-end; max-width: none; overflow: visible; }
#chain .row-side .stage-line { flex-direction: row-reverse; justify-content: flex-start; }
.claim-overlap { display: block; color: var(--warn); font: 600 var(--text-2xs)/var(--leading-snug) var(--sans); }

/* Roadmap and Activity match their approved mockups (#2080); stage hues come from the shared --stage-* tokens. */
.roadmap-panel h2 { margin: 0 0 var(--space-3); font: 600 var(--text-xs) var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }
.roadmap-has-summary .roadmap-summary-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
/* One line per row: who or why, the sent-back mark, then a plain sans stage chip. */
.milestone-item { grid-template-columns: 22px 20px minmax(0, 1fr) auto 86px; }
.milestone-item .roadmap-status, .milestone-item .item-stage, .milestone-item .stage-line { display: contents; }
.milestone-item .stage-word { grid-column: 5; grid-row: 1; justify-self: end; text-align: center; padding: 0 var(--space-2); border-radius: var(--radius-chip); font: 500 var(--text-2xs)/18px var(--sans); white-space: nowrap; color: color-mix(in oklab, var(--c) 72%, var(--ink)); background: color-mix(in oklab, var(--c) 16%, var(--surface)); }
/* Sheet marks: Blocked is the grey chip, Held is dashed with its pause, Sent back is the red soft mark with its return arrow, all 4 px. */
.milestone-item .item-stage[data-stage="blocked"] .stage-word { background: var(--stage-blocked-soft); color: var(--stage-blocked-ink); }
.milestone-item .stage-marks { grid-column: 4; grid-row: 1; display: inline-flex; gap: var(--space-1); }
.milestone-item .stage-mark { display: inline-flex; align-items: center; gap: 3px; font: 500 var(--text-2xs)/18px var(--sans); padding: 0 var(--space-2); border-radius: var(--radius-chip); background: var(--mark-back-soft); color: var(--mark-back); white-space: nowrap; }
.milestone-item .stage-mark.gate { background: none; outline: 0; border: var(--border-dashed-strong); line-height: 16px; color: var(--ink-muted); }
.milestone-item .stage-mark.gate::before { content: ''; width: 11px; height: 11px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 4v8M10 4v8'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 4v8M10 4v8'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Blocked-by #n is plain context text beside the chip, never a boxed pill; a long path in a title stays on the row and ends in an ellipsis. */
.milestone-item .roadmap-after { gap: var(--space-1); padding: 0; border: 0; background: none; }
.milestone-title code.inline.long, .milestone-title code { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; word-break: normal; vertical-align: bottom; }
.milestone-item .roadmap-stage-chip { grid-column: 5; font-family: var(--sans); letter-spacing: normal; }
@media (max-width: 760px) { .milestone-item { grid-template-columns: 22px 20px minmax(0, 1fr) 86px; } .milestone-item .stage-marks { display: none; } .milestone-item .stage-word, .milestone-item .roadmap-stage-chip { grid-column: 4; } }
/* A release's landed items come one page of 50 at a time, with a quiet one-line page control (#6841). */
.roadmap-pager { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-top: var(--border-row); color: var(--ink-muted); font: var(--text-xs) var(--mono); white-space: nowrap; }
.roadmap-pager .roadmap-page-of { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.roadmap-page-step { padding: 0 var(--space-3); border: var(--border); border-radius: var(--radius-xs); background: var(--surface); color: var(--ink); font: 500 var(--text-xs)/22px var(--sans); cursor: pointer; }
.roadmap-page-step:disabled { color: var(--ink-faint); cursor: default; }
/* The release header reads title, rate line, full-width bar, one legend line; its note is plain text, never a tinted bar. */
.roadmap-has-summary .roadmap-summary-legend { gap: var(--space-2) var(--space-6); }
.roadmap-has-summary .milestone-note { padding: 0; background: none; }
/* Activity rows (#2080): overrides of main.css rules, kept here because main.css is not edited. */
#activity .activity-event > time { font: var(--text-xs)/1.6 var(--mono); color: var(--ink-faint); }
#activity .activity-who[title] { text-decoration: none; }
#activity .activity-say a.activity-landed.ref[data-go] { font-weight: 600; }
#activity a.activity-about.ref[data-go] { font: 500 var(--text-xs) var(--sans); }
/* After chips share one group that ends in an ellipsis inside the row; Rulings are one line each, never a stray comma (#7303, #7311). */
.milestone-item .roadmap-afters { display: block; flex: 0 1 auto; min-width: 0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.milestone-item .roadmap-afters .roadmap-after { display: inline; margin-right: var(--space-2); }
/* Inline, not inline-flex: only inline text can end in the ellipsis, so a chip cut at the row edge never shows a bare "aft" (#7400). */
.milestone-item .roadmap-afters .roadmap-after svg { display: inline-block; vertical-align: -2px; margin-right: var(--space-1); }
.roadmap-page-sizes { display: inline-flex; flex: none; gap: var(--space-1); }
.roadmap-page-size { padding: 0 var(--space-2); border: var(--border); border-radius: var(--radius-chip); background: var(--surface); color: var(--ink-muted); font: 500 var(--text-xs)/22px var(--sans); cursor: pointer; }
.roadmap-page-size[aria-pressed="true"] { color: var(--ink); background: var(--surface-2); font-weight: 600; }
/* Roadmap release header (#7547): the Dashboard release card's header, on the ground above its card, no chevron. */
.milestone.roadmap-has-summary { background: none; border: 0; padding: 0; margin-top: var(--space-4); }
.milestone.roadmap-has-summary:first-child { margin-top: 0; }
.roadmap-has-summary > .release-header { margin: 0 0 var(--space-3); padding: 0 var(--space-1); }
.roadmap-has-summary .release-header-top { grid-template-rows: auto; align-items: end; margin-bottom: 10px; }
.roadmap-has-summary .release-header-top .release-name { font: 700 17px/1.3 var(--sans); color: var(--ink); }
.roadmap-has-summary .release-name .dash-ver { color: var(--ink-faint); font-weight: 600; margin-right: var(--space-3); }
.roadmap-has-summary .release-header-top > .roadmap-left { grid-column: 2; grid-row: 1; display: block; text-align: right; }
.roadmap-has-summary .roadmap-left > b { display: block; font: 700 17px/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.roadmap-has-summary .roadmap-left > span { font: var(--text-xs) var(--sans); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.roadmap-has-summary .roadmap-summary-row { margin: 0; }
.roadmap-has-summary .roadmap-summary-bar { height: 10px; margin: 0; }
.roadmap-has-summary .roadmap-summary-legend { margin: 10px 0 0; gap: var(--space-2) var(--space-5); font-size: 12.5px; }
.roadmap-has-summary .roadmap-summary-swatch { width: 10px; height: 10px; border-radius: var(--radius-bar); }
.roadmap-has-summary .roadmap-summary-legend > [data-summary-state] { gap: 7px; font-size: 12.5px; }
.roadmap-has-summary > .milestone-body { background: var(--surface); border: var(--border); border-radius: var(--radius-card); padding: var(--space-4) var(--space-5) var(--space-3); min-width: 0; }
.roadmap-has-summary > .milestone-body[hidden] { display: none; }
.roadmap-blocked svg, .roadmap-landed svg, .roadmap-items svg { width: 12px; height: 12px; flex: none; }
.roadmap-detail { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: var(--space-2) var(--space-4); margin: var(--space-4) 0 0; font-size: var(--text-xs); line-height: var(--leading-body); }
.roadmap-detail dt { display: flex; align-self: start; align-items: flex-start; gap: var(--space-2); color: var(--ink-muted); white-space: nowrap; }
.roadmap-detail dt svg { flex: none; width: 14px; height: 14px; margin-top: var(--space-1); color: var(--ink-faint); }
.roadmap-detail dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.roadmap-detail b { font-weight: 600; }
.roadmap-detail .roadmap-criterion { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roadmap-ref { display: inline; padding: 1px var(--space-2); border-radius: var(--radius-sm); font-size: var(--text-2xs); white-space: nowrap; }
.roadmap-return { padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: color-mix(in oklab, var(--mark-back) 16%, var(--surface)); color: color-mix(in oklab, var(--mark-back) 60%, var(--ink)); }
.roadmap-event { display: inline; white-space: nowrap; }
.roadmap-step { display: inline-block; width: 7px; height: 7px; margin-right: var(--space-2); border-radius: var(--radius-dot); background: var(--ink-faint); }
.roadmap-step.busy { background: var(--stage-building); }
.roadmap-step.warn { background: var(--stage-review); }
.roadmap-step.ok { background: var(--stage-merged); }
.roadmap-step.no { background: var(--mark-back); }
.roadmap-step.free { background: var(--stage-ready); }
.roadmap-arrow { color: var(--ink-faint); }
.roadmap-items { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); font-size: var(--text-xs); }

/* Prototype (18 Oct): the link-to-pullboard.dev invitation as a calm, closable card. */
.share-card { display: flex; align-items: center; gap: var(--space-4); background: var(--surface); border: var(--border); border-radius: var(--radius-card); padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5); margin: 0 0 var(--space-5); }
.share-card[hidden], .share-again[hidden] { display: none; }
.share-ic { width: 30px; height: 30px; border-radius: var(--radius-lg); background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.share-txt { flex: 1; min-width: 0; font-size: var(--text-sm); line-height: var(--leading-body); color: var(--ink-muted); }
.share-txt b { display: block; color: var(--ink); font-weight: 600; font-size: var(--text-sm); }
.share-gh { display: inline-flex; align-items: center; gap: var(--space-3); font-size: var(--text-xs); padding: var(--space-3) var(--space-4); border-radius: var(--radius-xs); white-space: nowrap; border: 0; cursor: pointer; }
.share-x { width: 28px; height: 28px; border: 0; background: none; color: var(--ink-faint); border-radius: var(--radius-md); cursor: pointer; font-size: var(--text-xl); line-height: 1; flex-shrink: 0; }
.share-x:hover { background: var(--shade); color: var(--ink); }
.share-again { display: block; margin: var(--space-4) var(--space-4) 0; padding: var(--space-2) var(--space-3); border: 0; background: none; color: var(--accent-strong); font-size: var(--text-xs); cursor: pointer; text-align: left; border-radius: var(--radius-md); }
.share-again:hover { background: var(--shade); }

/* Keep the approved invitation readable and its controls reachable at phone widths. */
.share-gh, .share-again { min-height: var(--tap); }
.share-x { min-width: var(--tap); min-height: var(--tap); }
@media (pointer: coarse) { .share-txt a { display: inline-flex; align-items: center; min-height: var(--tap); } }
@media (width < 600px) {
  .share-card { display: grid; grid-template-columns: 30px minmax(0, 1fr) var(--tap); align-items: start; }
  .share-ic { margin-top: var(--space-1); }
  .share-txt { grid-column: 2; }
  .share-txt a { display: flex; align-items: center; width: fit-content; min-height: var(--tap); }
  .share-x { grid-column: 3; grid-row: 1; }
  .share-gh { grid-column: 2 / 4; justify-self: start; }
}

/* The hosted page paints only its neutral mark until its script knows which screen applies (#932). */
.hosted-mark { display: none; }
/* :root outranks the navigation strip's own :root[data-nav] .shell display, which loads after this sheet. */
:root .hosted-page.loading .shell { display: none; }
/* @private-view-css src/view/cost.css */

.hosted-page.loading .hosted-mark { display: grid; place-items: center; min-height: 100vh; color: var(--ink-muted); }
.hosted-page.loading .hosted-mark svg { width: 56px; height: 56px; }

/* Settings are literal API data: readable on narrow screens, with no editable fields. */

.boardless [data-pane="settings"]:not([hidden]) { display: block; }


.machine-settings-entry { display: none; }
.boardless .machine-settings-entry { display: block; }

/* Complete approval context wraps on a phone; the two person actions stay together. */
.row.agent-approval { grid-template-columns: 12px minmax(0, 1fr); grid-template-areas: none; align-items: start; cursor: default; }
.row.agent-approval > .dot { grid-area: auto; margin-top: var(--space-1); }
.row.agent-approval > div { display: block; min-width: 0; }
.row.agent-approval .t { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.row.agent-approval .meta { white-space: normal; overflow: visible; }
.agent-approval p { margin: var(--space-2) 0; overflow-wrap: anywhere; }
.agent-approval .actions { display: flex; flex-wrap: nowrap; gap: var(--space-3); margin-top: var(--space-3); }

/* Revision proposals compare complete row bytes even on a phone; authority stays in the core. */
.row.spec-revision { display: block; cursor: default; }
.row.spec-revision > div { display: block; min-width: 0; }
.spec-revision .revision-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
.spec-revision section { min-width: 0; padding: var(--space-3); border: var(--border); border-radius: var(--radius-md); }
.spec-revision h3 { margin: 0 0 var(--space-2); color: var(--ink-muted); font-size: var(--text-xs); }
.spec-revision pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: var(--text-xs) var(--mono); }
.spec-revision .revision-reason { margin: var(--space-3) 0; overflow-wrap: anywhere; }
.spec-revision .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }

/* The agent floor (#dashboard/floor) reuses these card, list and item rules. */
.dashboard { display: grid; gap: var(--space-5); min-width: 0; padding: 0; }
.dash-card { min-width: 0; padding: var(--space-6); border: var(--border); border-radius: var(--radius-card); background: var(--surface); }
.dash-card h2 { margin: 0 0 var(--space-5); font: 600 var(--text-2xs) var(--mono); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-faint); }
.dash-card h3 { margin: var(--space-5) 0 var(--space-3); font-size: var(--text-sm); }
.dash-card p { margin: var(--space-3) 0; }
.dash-list { padding: 0; margin: 0; list-style: none; }
.dash-list li { display: flex; gap: var(--space-4); align-items: center; min-height: 34px; border-bottom: var(--border); }
.dash-list small { flex: none; color: var(--ink-muted); font: var(--text-2xs) var(--mono); }
.dash-item { display: flex; gap: var(--space-4); align-items: baseline; flex: 1; min-width: 0; padding: var(--space-2) 0; text-align: left; border: 0; background: none; cursor: pointer; }
.dash-item span { flex: none; color: var(--ink-faint); font: var(--text-2xs) var(--mono); }
.dash-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-xs); font-weight: 500; }
.dash-item:hover b { color: var(--accent-strong); text-decoration: underline; }
.dash-item .dash-item-copy { display: grid; flex: 1; gap: var(--space-0); min-width: 0; align-items: start; }
.dash-item-copy > b { min-width: 0; }
.dash-item .item-stage { max-width: 100%; }
.dash-item .item-stage > span, .dash-item .item-stage small { flex: none; color: var(--ink-muted); font-family: var(--sans); font-size: var(--text-2xs); }
.dash-card .link { display: inline-block; margin-top: var(--space-4); font-size: var(--text-xs); }
.dash-axis { display: flex; justify-content: space-between; color: var(--ink-faint); font: var(--text-2xs) var(--mono); }
.dash-old { color: var(--warn) !important; }
/* Settings keeps the retired Home cards side by side (#6647). */
.dash-two { display: grid; gap: var(--space-5); min-width: 0; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
@media (max-width: 700px) { .dash-two { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } }
.dashboard details > summary { padding-top: var(--space-4); color: var(--ink-muted); cursor: pointer; font-size: var(--text-xs); }

/*
 * The /live-style Dashboard (dashboard-approved-1113, #6847), on the design sheet's tokens: 6 px cards with a thin
 * border and no shadow, 4 px chips, rows that never wrap, the formal stage colours. Light values are the sheet's;
 * dark keeps the view's own.
 */
.dash-live {
  --surface: light-dark(#ffffff, #121815); --surface-2: light-dark(#f5f5f5, #171f1b); --hover: light-dark(#f5f5f5, #171f1b);
  --line: light-dark(#e5e5e5, #232e29); --line-soft: light-dark(#efefef, #1b2420); --line-strong: light-dark(#d4d4d4, #34423b);
  --ink: light-dark(#1a1a1a, #e7ece9); --ink-muted: light-dark(#555555, #9caba3); --ink-faint: light-dark(#8a8a8a, #6a776f);
  --accent: var(--stage-merged); --idle: light-dark(#ececec, #232e29); --waiting: light-dark(#d6d6d6, #34423b);
  --building-ink: var(--stage-building); --building-soft: light-dark(#e8eef7, #142231); --review-ink: light-dark(#8a6400, #e4b25a);
  --review-soft: light-dark(#faf2dc, #241d10); --merged-soft: light-dark(#e6f4ec, #10231c);
  /* The tokens built from the greys above, written again here so they follow this scope's greys and not the root's. */
  --border: 1px solid var(--line); --border-row: 1px solid var(--line-soft); --border-strong: 1px solid var(--line-strong);
  --border-dashed: 1px dashed var(--line); --border-dashed-strong: 1px dashed var(--line-strong); --border-check: 1.5px solid var(--line-strong); --border-spin: 3px solid var(--line);
  --border-warn: 1px solid color-mix(in srgb, var(--warn) 38%, var(--line)); --border-reject: 1px solid color-mix(in srgb, var(--reject) 40%, var(--line));
  --shadow-hair-line: 0 1px 2px var(--shade), 0 0 0 1px var(--line); --inset-line: inset 0 0 0 1px var(--line); --inset-line-strong: inset 0 0 0 1px var(--line-strong);
  --ring-accent: 0 0 0 2px var(--accent); --ring-surface: 0 0 0 3px var(--surface); --ring-line: 0 0 0 1px var(--line);
  /* Sheet v1.1: numbers are the sans with tabular figures; monospace only for ids, seats, commits and code. */
  --code: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; --mono: var(--sans);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); min-width: 0; color: var(--ink); font-size: var(--text-md); line-height: 1.45; font-variant-numeric: tabular-nums;
}
/* Sheet v1.1 section: the header sits on the ground above its card; the card holds content only. */
.dash-sec { display: flex; flex-direction: column; min-width: 0; }
.dash-sec > .dash-card { flex: 1; }
.dash-shd { display: flex; align-items: baseline; gap: 14px; min-height: 18px; margin: 0 0 var(--space-2); padding: 0 var(--space-0); white-space: nowrap; min-width: 0; }
.dash-shd > .dash-lbl { flex: none; }
.dash-cap2 { margin-left: auto; font-size: var(--text-xs); color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dash-live .dash-lk { flex: none; font-size: var(--text-xs); color: var(--ink-muted); }
.dash-live .dash-lk:hover { color: var(--ink); }
.dash-shd > .dash-lbl + .dash-lk { margin-left: auto; }
.dash-live .dash-ct { display: flex; align-items: center; margin: 0; font: 600 12.5px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
.dash-id, .dash-chip span, .dash-agt td.who, .dash-runners .mono { font-family: var(--code) !important; }
#dashboard:has(> .dash-live) { grid-template-columns: minmax(0, 1fr); max-width: 1192px; margin-inline: auto; width: 100%; }
.dash-live button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; min-height: 0; min-width: 0; cursor: pointer; text-align: left; }
.dash-live .dash-card { padding: 0; border-radius: var(--radius-card); background: var(--surface); border: var(--border); box-shadow: none; }
.dash-live .dash-lbl { display: flex; align-items: center; margin: 0; font: 600 10.5px/1.4 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); }
.dash-live .dash-cap { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-4); flex-wrap: wrap; }
.dash-live .dash-r { font-size: var(--text-xs); color: var(--ink-faint); }
.dash-live .dash-pill { display: inline-block; margin-left: var(--space-2); padding: 0 var(--space-2); border: var(--border); border-radius: var(--radius-chip); background: var(--surface); font: 600 11px/16px var(--mono); letter-spacing: 0; color: var(--ink); text-transform: none; }
.dash-live button.dash-pill:hover { border-color: var(--line-strong); }
.dash-live .dash-n:hover { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.dash-live p.dash-empty { margin: var(--space-1) 0; font-size: var(--text-xs); color: var(--ink-faint); }
.dash-live .dash-icon { width: 13px; height: 13px; }
.dash-live .dash-dot { display: inline-block; width: 7px; height: 7px; border-radius: var(--radius-dot); flex: none; background: var(--ink-faint); }
.dash-dot.building { background: var(--stage-building); } .dash-dot.review { background: var(--stage-review); } .dash-dot.merged { background: var(--stage-merged); }
.dash-dot.ready { background: var(--stage-ready); } .dash-dot.gated, .dash-dot.waiting { background: var(--stage-gated); } .dash-dot.gate { background: var(--stage-gate); } .dash-dot.back { background: var(--mark-back); }
.dash-dot.held { background: none; border: var(--border-held); width: 8px; height: 8px; }
.dash-dot.landing { background: var(--stage-stripe); }

/* 1. How work moved */
.dash-flowcard { overflow: hidden; }
.dash-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.dash-stage { position: relative; display: flex !important; flex-direction: column; justify-content: flex-start; min-width: 0; padding: 9px 14px var(--space-3) !important; background: var(--surface) !important; border-left: var(--border) !important; transition: background .12s; }
.dash-stage:first-child { border-left: 0 !important; }
.dash-stage:hover { background: var(--hover) !important; }
.dash-stage:not(:last-child)::after { content: "›"; position: absolute; right: -6px; top: 50%; z-index: 1; width: 11px; transform: translateY(-55%); text-align: center; line-height: 16px; background: var(--surface); color: var(--ink-faint); font-size: 15px; }
.dash-stage-t { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: var(--text-sm); }
.dash-rate { margin-left: auto; font: 500 11.5px var(--mono); color: var(--ink-faint); }
.dash-rate.g { color: var(--accent); font-weight: 600; }
.dash-stage-a, .dash-stage-b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-stage-a { margin-top: 3px; font: 12.5px var(--mono); } .dash-stage-a b { font-weight: 600; }
.dash-stage-b { font: 11.5px var(--mono); color: var(--ink-faint); }
.dash-live .dash-loop { display: flex; align-items: center; margin: 0; padding: var(--space-2) 14px; border-top: var(--border-row); font-size: var(--text-xs); color: var(--ink-faint); white-space: nowrap; overflow: hidden; }
.dash-loop .dash-icon { color: var(--mark-back); margin-right: 5px; }
.dash-loop .dash-n.back { color: var(--mark-back); font: 600 12px var(--mono); margin-right: 4px; }

/* 2. Now */
.dash-now { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-1) 0; padding: var(--space-2) !important; font-size: 12.5px; color: var(--ink-muted); }
.dash-live .dash-tright { margin-left: auto; padding: var(--space-0) var(--space-3); font-size: var(--text-xs); color: var(--ink-faint); white-space: nowrap; }
.dash-live .dash-tright:hover { color: var(--ink); text-decoration: none; }
.dash-tile { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-0) var(--space-3) !important; border-radius: var(--radius-chip); white-space: nowrap; color: var(--ink-muted) !important; }
.dash-tile:hover { background: var(--hover) !important; color: var(--ink) !important; text-decoration: none !important; }
.dash-tile b { font: 600 12.5px var(--mono); color: var(--ink); }
.dash-tile .dash-dot { width: 6px; height: 6px; }
.dash-x { width: 1px; height: 12px; background: var(--line); margin: 0 var(--space-1); }

/* 3. Release */
.dash-ship { padding: var(--space-4) var(--space-5) 14px !important; }
.dash-ship-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-5); align-items: end; margin-bottom: 10px; }
.dash-live .dash-ship-name { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.dash-ver { color: var(--ink-faint); font-weight: 600; margin-right: var(--space-3); }
.dash-live .dash-togo { margin: 0; text-align: right; }
.dash-togo b { display: block; font-size: 17px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.dash-togo span { font: var(--text-xs) var(--mono); color: var(--ink-muted); }
.dash-sbar { display: block; width: 100%; height: 10px; border-radius: var(--radius-bar); overflow: hidden; }
.dash-seg-landed { fill: var(--stage-merged); background: var(--stage-merged); }
.dash-seg-landing { fill: color-mix(in oklab, var(--stage-merged) 55%, var(--surface)); background: var(--stage-stripe); }
.dash-seg-review { fill: var(--stage-review); background: var(--stage-review); }
.dash-seg-building { fill: var(--stage-building); background: var(--stage-building); }
.dash-seg-ready { fill: var(--stage-ready); background: var(--stage-ready); }
.dash-seg-waiting { fill: var(--waiting); background: var(--waiting); }
rect.dash-seg-held { fill: var(--surface); stroke: var(--mark-held); stroke-width: .6; stroke-dasharray: 1.2 .8; vector-effect: non-scaling-stroke; }
i.dash-seg-held { background: none; border: var(--border-held-thin); }
.dash-keys { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 10px 0 0; font-size: 12.5px; color: var(--ink-muted); }
.dash-key { display: inline-flex !important; align-items: center; gap: 7px; color: var(--ink-muted) !important; }
.dash-key b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-sw { display: inline-block; width: 10px; height: 10px; border-radius: var(--radius-bar); flex: none; }
.dash-inflight { margin-top: var(--space-4); padding-top: var(--space-4); border-top: var(--border-row); }
.dash-inflight > .dash-cap { margin-bottom: var(--space-1); }
.dash-ifcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1) var(--space-7); }
.dash-ifcol h3 { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-1); font-size: var(--text-xs); font-weight: 600; }
.dash-ifcol.building h3 { color: var(--building-ink); } .dash-ifcol.review h3 { color: var(--review-ink); }
.dash-ifcol h3 .dash-faint { font: 12px var(--mono); color: var(--ink-faint); font-weight: 400; }
.dash-live .dash-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--space-3); align-items: baseline; width: 100%; padding: var(--space-1) 0; font-size: var(--text-sm); border-top: var(--border-row); }
.dash-live .dash-row:hover { background: var(--hover); }
.dash-id { font: 12px var(--mono); color: var(--ink-faint); }
.dash-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-age { font: 12px var(--mono); color: var(--ink-faint); white-space: nowrap; }
.dash-age.late { color: var(--mark-back); font-weight: 600; }
.dash-ifcol details > summary { padding: var(--space-2) 0 0; color: var(--ink-muted); font-size: 12.5px; cursor: pointer; list-style: none; }
.dash-ifcol details > summary::-webkit-details-marker { display: none; }
.dash-ifcol details[open] > summary { display: none; }
.dash-pace { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-4); border-top: var(--border-row); }
.dash-stat { padding: 7px 10px; border-radius: var(--radius-chip); background: var(--surface-2); }
.dash-stat-k { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--ink-faint); }
.dash-stat-v { display: flex; align-items: baseline; gap: var(--space-2); margin-top: var(--space-0); }
.dash-stat-v b { font-size: 17px; line-height: 1.3; font-variant-numeric: tabular-nums; } .dash-stat-v span { font-size: 12.5px; color: var(--ink-muted); }
.dash-stat small { display: block; font-size: 11.5px; color: var(--ink-faint); }
.dash-stat.eta { background: var(--surface); border: var(--border); } .dash-stat.eta b { color: var(--accent); }

/* 4. Pace and agent time */
.dash-strip { display: flex; align-items: center; gap: 22px; padding: var(--space-3) 14px !important; font-size: var(--text-xs); color: var(--ink-muted); white-space: nowrap; overflow: hidden; }
.dash-grp { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dash-strip b { color: var(--ink); font: 600 12px var(--mono); } .dash-strip b.g { color: var(--accent); }
.dash-spark { display: block; width: 150px; height: 18px; flex: none; fill: color-mix(in oklab, var(--stage-merged) 22%, var(--surface)); } .dash-spark rect.now { fill: var(--accent); }
.dash-split { display: block; width: 150px; height: 8px; flex: none; border-radius: var(--radius-hair); }
.dash-time-0 { fill: var(--stage-building); } .dash-time-1 { fill: var(--stage-review); } .dash-time-2 { fill: var(--idle); }
.dash-vr { width: 1px; height: 16px; background: var(--line); flex: none; }

/* 5. Agents */
.dash-agents { overflow: hidden; }
#dashboard-agents { scroll-margin-top: 96px; }
.dash-agents .dash-scroll { margin-top: var(--space-1); }
.dash-legend { display: inline-flex; gap: var(--space-4); font-size: 11.5px; color: var(--ink-muted); }
.dash-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dash-legend i { width: 10px; height: 10px; border-radius: var(--radius-bar); }
.dash-legend i.build { background: var(--stage-building); } .dash-legend i.review { background: var(--stage-review); }
.dash-legend i.idle { background: var(--idle); box-shadow: var(--inset-line-strong); } .dash-legend i.back { background: var(--mark-back); width: 3px; }
.dash-legend i.landed { background: var(--stage-merged); opacity: .45; width: 2px; } .dash-legend i.shout { background: var(--mark-shout); width: 2px; height: 6px; }
.dash-scroll { overflow-x: auto; }
.dash-live table { border-collapse: collapse; width: 100%; }
.dash-live th, .dash-live td { padding: var(--space-0) var(--space-3); text-align: left; vertical-align: middle; white-space: nowrap; }
.dash-live th { font: 500 10px var(--sans); color: var(--ink-faint); text-transform: uppercase; letter-spacing: .07em; padding-bottom: var(--space-1); border-bottom: var(--border); }
.dash-live th.r, .dash-live td.dash-num { text-align: right; }
.dash-agt th:first-child, .dash-agt td:first-child { padding-left: var(--space-4); }
.dash-agt th:last-child, .dash-agt td:last-child { padding-right: var(--space-4); }
.dash-agt td { font-size: var(--text-xs); height: 25px; border-bottom: var(--border-row); }
.dash-agt tbody tr:not(.grp):hover td { background: color-mix(in oklab, var(--hover) 60%, var(--surface)); }
.dash-agt tr.grp td { background: var(--surface-2); font: 600 10px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); height: 21px; }
.dash-agt tr.grp .dash-n { color: var(--ink); font-family: var(--mono); letter-spacing: 0; }
.dash-agt td.who { width: 112px; font-family: var(--mono); }
.dash-st { display: inline-block; width: 6px; height: 6px; border-radius: var(--radius-dot); margin-right: 7px; vertical-align: 1px; background: var(--line-strong); }
.dash-st.b { background: var(--stage-building); } .dash-st.r { background: var(--stage-review); }
.dash-agt td.tl { width: 40%; padding-right: var(--space-4); }
.dash-agt td.now { max-width: 0; width: 38%; overflow: hidden; text-overflow: ellipsis; }
.dash-agt td.now .tt { color: var(--ink); } .dash-agt td.now .tt.q { color: var(--ink-faint); }
.dash-live td.dash-num { width: 54px; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.dash-live td.dash-num.z { color: color-mix(in oklab, var(--ink-faint) 60%, var(--surface)); }
.dash-lane { display: block; width: 100%; height: 16px; }
.dash-track { fill: var(--idle); } .dash-tick { fill: color-mix(in oklab, var(--line-strong) 70%, var(--surface)); }
.dash-defs { position: absolute; width: 0; height: 0; overflow: hidden; } .dash-lane .dash-landed { fill: var(--stage-merged); opacity: .14; } .dash-lane .dash-shout { fill: var(--mark-shout-soft); }
.dash-lane rect.build { fill: var(--stage-building); } .dash-lane rect.review { fill: var(--stage-review); } .dash-lane rect.dash-back { fill: var(--mark-back); }
.dash-chip { display: inline-flex !important; align-items: center; gap: 5px; margin-right: var(--space-2); padding: 0 7px !important; border-radius: var(--radius-chip); font-size: 11px; line-height: 18px; font-weight: 500; vertical-align: 1px; white-space: nowrap; }
.dash-chip span { font-family: var(--mono); font-weight: 600; }
.dash-chip.b { background: var(--building-soft) !important; color: var(--building-ink) !important; } .dash-chip.r { background: var(--review-soft) !important; color: var(--review-ink) !important; }
.dash-chip:hover { filter: brightness(.97); }
.dash-more { display: flex !important; align-items: center; gap: var(--space-2); width: 100%; padding: var(--space-3) var(--space-4) !important; font-size: var(--text-xs); color: var(--ink-muted) !important; }
.dash-more:hover { color: var(--ink) !important; background: var(--hover) !important; }

/* 6. The four lists */
.dash-queues { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); align-items: start; } /* each card is as tall as its rows, never stretched to its neighbour (#7403) */
.dash-qquiet { align-self: start; } .dash-qquiet .dash-shd { margin: 0; flex-wrap: wrap; white-space: normal; } .dash-qquiet .dash-cap2 { margin-left: 0; }
.dash-q { padding: var(--space-2) var(--space-4) !important; }
.dash-q > .dash-cap { margin-bottom: var(--space-2); }
.dash-live .dash-note { margin: -2px 0 var(--space-2); font-size: 11.5px; color: var(--ink-faint); }
.dash-q .dash-row { font-size: var(--text-xs); padding: 3px 0; border-top: 0; border-bottom: var(--border-row); }
.dash-q .dash-row:last-of-type { border-bottom: 0; }
.dash-q .dash-age { font-size: 11px; }
.dash-foot { display: block; padding-top: var(--space-2) !important; font-size: var(--text-xs); color: var(--ink-muted) !important; }
.dash-foot:hover { color: var(--ink) !important; }

/* 7. Your lanes */
.dash-lanes { padding: var(--space-1) 0 var(--space-2) !important; }
.dash-lanes > .dash-cap, .dash-runners .dash-l > .dash-cap { padding: 0 var(--space-4) var(--space-2); }
.dash-tbl td { height: 28px; font-size: var(--text-xs); border-bottom: var(--border-row); }
.dash-tbl tr:last-child td { border-bottom: 0; }
.dash-tbl td:first-child, .dash-tbl th:first-child { padding-left: var(--space-4); }
.dash-tbl td:last-child, .dash-tbl th:last-child { padding-right: var(--space-4); }
.dash-tbl td.ln { font-weight: 600; font-size: var(--text-sm); }
.dash-live td.dash-num.ink { color: var(--ink); } .dash-live td.dash-num.back { color: var(--mark-back); }
.dash-tbl .mini { width: 34%; }
.dash-mbar { display: block; width: 100%; height: 6px; border-radius: var(--radius-hair); }
.dash-mbar-bg { fill: var(--idle); } .dash-mbar .landed { fill: var(--stage-merged); } .dash-mbar .review { fill: var(--stage-review); } .dash-mbar .building { fill: var(--stage-building); }

/* 8. Runners */
.dash-runners { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); padding: var(--space-2) 0 0 !important; }
.dash-runners .dash-l { border-right: var(--border); padding-bottom: var(--space-3); min-width: 0; overflow: hidden; }
.dash-live .dash-sub { margin: 0; padding: 0 var(--space-4) var(--space-2); font-size: var(--text-xs); color: var(--ink-muted); } .dash-sub b { color: var(--ink); font: 600 12px var(--mono); }
.dash-runners td { height: 26px; } .dash-runners tr.sel td { background: var(--surface-2); }
.dash-runners .mono { font-family: var(--mono); }
.dash-runners .loadh { width: 34%; }
.dash-load { display: block; width: 100%; height: 5px; border-radius: var(--radius-hair); }
.dash-load .bg { fill: var(--idle); } .dash-load rect:not(.bg) { fill: var(--mark-shout); } .dash-load rect.hi { fill: var(--ink-muted); } .dash-load rect.hot { fill: var(--mark-back); }
.dash-slots { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.dash-slots i { width: 7px; height: 7px; border-radius: var(--radius-bar); background: var(--ink); }
.dash-slots em { margin-left: 5px; font: 11.5px var(--mono); font-style: normal; color: var(--ink-muted); }
.dash-node { padding: 0 14px var(--space-3); min-width: 0; }
.dash-node h3 { margin: 0; font-size: var(--text-md); } .dash-node h3 small { margin-left: var(--space-2); font: 500 11.5px var(--mono); color: var(--ink-faint); }
.dash-live .dash-facts { margin: var(--space-0) 0 var(--space-3); font: 12px var(--mono); color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dash-facts b { color: var(--ink); }
.dash-node .dash-ct { margin: var(--space-3) 0 3px; }
.dash-j { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: var(--space-3); align-items: baseline; padding: var(--space-0) 0; font-size: var(--text-xs); }
.dash-j small { color: var(--ink-faint); } .dash-j .dash-age { font-size: 11px; }
.dash-rfoot { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; padding: var(--space-3) 14px; border-top: var(--border); font-size: var(--text-xs); color: var(--ink-muted); }
.dash-rfoot b { color: var(--ink); font: 600 12px var(--mono); } .dash-rfoot small { display: block; color: var(--ink-faint); font-size: 11px; }
.dash-rfoot span:nth-child(2) { text-align: center; } .dash-rfoot span:nth-child(3) { text-align: right; }

.dash-live .dash-footnote { margin: var(--space-2) 0 0; font-size: 11.5px; color: var(--ink-faint); }

/* Narrow screens, as the mockup */
@media (max-width: 1100px) { .dash-queues { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .dash-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-stage::after { display: none; }
  .dash-stage { border-left: 0 !important; border-top: var(--border) !important; } .dash-stage:nth-child(-n+2) { border-top: 0 !important; } .dash-stage:nth-child(2n) { border-left: var(--border) !important; }
  .dash-strip { flex-wrap: wrap; white-space: normal; gap: var(--space-3) 18px; } .dash-vr { display: none; } }
@media (max-width: 700px) {
  .dash-live .dash-loop { display: block; white-space: normal; } .dash-loop .dash-icon { vertical-align: -2px; }
  .dash-sec:not(.dash-qquiet) .dash-cap2 { display: none; } .dash-shd > .dash-lk { margin-left: auto; }
  .dash-now .dash-x { display: none; }
  .dash-stage { padding: var(--space-3) 10px !important; } .dash-stage-a, .dash-stage-b { white-space: normal; } .dash-stage-b { margin-top: 1px; }
  .dash-grp { flex-wrap: wrap; gap: var(--space-1) 10px; width: 100%; } .dash-grp > .dash-lbl { width: 100%; } .dash-spark, .dash-split { width: 120px; }
  .dash-ship { padding: var(--space-4) !important; } .dash-ship-head { grid-template-columns: minmax(0, 1fr); } .dash-live .dash-togo { text-align: left; }
  .dash-ifcols, .dash-pace { grid-template-columns: minmax(0, 1fr); }
  .dash-queues { grid-template-columns: minmax(0, 1fr); }
  .dash-runners { grid-template-columns: minmax(0, 1fr); } .dash-runners .dash-l { border-right: 0; border-bottom: var(--border); } .dash-node { padding-top: 10px; } .dash-rfoot { grid-column: 1; }
  .dash-legend { display: none; }
  .dash-live th.hide, .dash-live td.hide { display: none; }
  /* Tighter cells keep a wide-font table inside the narrowest phone, so the page never scrolls sideways (N26). */
  .dash-live th, .dash-live td { padding-inline: var(--space-2); }
  .dash-agt td.who { width: 1%; } .dash-agt td.tl { width: auto; } .dash-agt td.now { width: 1%; max-width: none; } .dash-agt td.now .tt { display: none; } .dash-agt td.now .dash-chip { margin-right: 0; }
  .dash-tbl .mini { display: none; }
}

/*
 * The Insights Pipeline page (pipeline-approved-1113, #6869) on the same shell: the Dashboard's sections, cards, flow
 * cells, tables and stage dots, plus the few parts only this page has. Sizes come from the scale; widths drawn from
 * data are SVG, because the page's policy refuses inline styles.
 */
#insights-pipeline { width: 100%; max-width: 1192px; margin-inline: auto; }
.pw-page a { color: inherit; text-decoration: none; }
.pw-page .back { color: var(--mark-back); } .pw-page .amb { color: var(--warn); } .pw-page .good { color: var(--accent); } .pw-page .pw-code { font-family: var(--code); }
.pw-page .dash-stage-t .pw-chip { margin-left: auto; }
.pw-chip { display: inline-flex; align-items: center; gap: var(--space-1); padding: 0 var(--space-2); border-radius: var(--radius-chip); font-size: var(--text-2xs); line-height: 18px; font-weight: 500; white-space: nowrap; background: var(--surface-2); color: var(--ink-muted); }
.pw-chip.tag { line-height: 16px; }
.pw-chip.b { background: var(--building-soft); color: var(--building-ink); } .pw-chip.r { background: var(--review-soft); color: var(--review-ink); } .pw-chip.l { background: var(--merged-soft); color: var(--stage-merged); }
.pw-chip.x { background: color-mix(in oklab, var(--mark-back) 14%, var(--surface)); color: var(--mark-back); } .pw-chip.a { background: var(--warn-soft); color: var(--warn); }
.pw-chip.p { background: color-mix(in oklab, var(--stage-ready) 16%, var(--surface)); color: var(--violet); } .pw-chip.q { background: var(--surface-2); color: var(--ink-muted); }
.dash-dot.gate { background: var(--gate-solid); } .dash-dot.pw-amber { background: var(--warn); }
.pw-page .pw-none { margin: 0; padding: var(--space-3) var(--space-4); font-size: var(--text-xs); color: var(--ink-faint); }
.pw-page .pw-sg .pw-none { padding: var(--space-0) 0; }
.pw-page td.pw-none { padding: var(--space-3) var(--space-4); white-space: normal; }
.pw-page td.pw-more { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); color: var(--ink-muted); } .pw-page td.pw-more a { color: inherit; } .pw-page td.pw-more a:hover { color: var(--ink); }
.pw-lone { color: var(--mark-back); font-weight: 600; }

/* 1. Time: the verdict, what to do, where item time went */
.pw-page .pw-time { padding: var(--space-3) var(--space-4) var(--space-4); }
.pw-verdict { display: flex; align-items: center; gap: var(--space-3); padding: 0 0 var(--space-1); font-size: var(--text-sm); min-width: 0; }
.pw-verdict .pw-chip { font-size: var(--text-xs); font-weight: 600; line-height: 20px; }
.pw-verdict .say { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pw-verdict .say b { font-weight: 600; }
.pw-page p.pw-do { display: flex; align-items: baseline; gap: var(--space-3); margin: 0 0 var(--space-3); padding: 0 0 var(--space-3); border-bottom: var(--border-row); font-size: var(--text-xs); color: var(--ink-muted); }
.pw-do .k { flex: none; font-weight: 600; }
.pw-page p.pw-nowl { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) 0; margin: 0 0 var(--space-3); font-size: var(--text-sm); color: var(--ink-muted); }
.pw-nowl .m { white-space: nowrap; } .pw-nowl .m b { font-weight: 600; color: var(--ink); } .pw-nowl .m a { color: inherit; }
.pw-nowl small { margin-left: var(--space-1); font-size: var(--text-xs); color: var(--ink-faint); } .pw-nowl small.good { color: var(--accent); } .pw-nowl small.bad { color: var(--mark-back); }
.pw-nowl .d { margin: 0 var(--space-3); color: var(--line-strong); }
.pw-twg { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: var(--space-3); row-gap: var(--space-1); align-items: center; }
.pw-twg > span { font-size: var(--text-2xs); color: var(--ink-faint); }
.pw-bar { display: block; width: 100%; height: 8px; border-radius: var(--radius-xs); } .pw-bar.before { opacity: .55; }
.k-build { fill: var(--stage-building); background: var(--stage-building); } .k-rework { fill: var(--mark-back); background: var(--mark-back); } .k-wait { fill: var(--mark-gold); background: var(--mark-gold); }
.k-review { fill: var(--stage-review); background: var(--stage-review); } .k-land { fill: color-mix(in oklab, var(--stage-merged) 55%, var(--surface)); background: var(--stage-stripe); }
.pw-twkey { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); margin: var(--space-3) 0 0 calc(var(--space-9) + var(--space-4)); font-size: var(--text-xs); color: var(--ink-muted); }
.pw-twkey span { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.pw-twkey i { width: 10px; height: 10px; border-radius: var(--radius-xs); display: inline-block; }
.pw-twkey b { font-weight: 600; color: var(--ink); } .pw-twkey small { font-size: var(--text-2xs); color: var(--ink-faint); } .pw-twkey small.up { color: var(--mark-back); }

/* 2. Flow: four stages and the landing rate */
.pw-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pw-page .pw-rate { border-left: var(--border-strong) !important; }
.pw-big { display: block; margin-top: var(--space-1); font-size: var(--text-2xl); line-height: 1; font-weight: 600; color: var(--warn); font-variant-numeric: tabular-nums; }
.pw-big small { margin-left: var(--space-3); font-size: var(--text-2xs); font-weight: 400; color: var(--ink-faint); }
.pw-hbars { display: block; width: 100%; height: 30px; margin: var(--space-2) 0 var(--space-1); }
.pw-hbars rect { fill: color-mix(in oklab, var(--stage-merged) 22%, var(--surface)); } .pw-hbars rect.now { fill: var(--accent); }

/* 3. Main health, one line */
.pw-page .pw-health { display: flex; align-items: center; gap: var(--space-6); padding: var(--space-3) var(--space-4); font-size: var(--text-xs); color: var(--ink-muted); white-space: nowrap; overflow: hidden; }
.pw-health .pw-kv { display: inline-flex; align-items: baseline; gap: var(--space-2); } .pw-health b { color: var(--ink); font-weight: 600; } .pw-health b.back { color: var(--mark-back); }
.pw-health a { color: inherit; } .pw-health .vr { width: 1px; height: 14px; background: var(--line); flex: none; }

/* 4. Why, by stage, beside the failures */
.pw-split { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: var(--space-3); min-width: 0; }
.pw-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); min-width: 0; }
.pw-page .pw-why { padding: var(--space-3) var(--space-4) var(--space-4); }
.pw-sg { padding: var(--space-3) 0 var(--space-3); border-top: var(--border-row); min-width: 0; } .pw-sg:first-child { border-top: 0; padding-top: var(--space-0); } .pw-sg:last-child { padding-bottom: 0; }
.pw-sg .dash-stage-t { margin: 0; }
.pw-sg .s { margin: var(--space-0) 0 var(--space-2); font-size: var(--text-xs); color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pw-sg .s b { color: var(--ink); font-weight: 600; }
.pw-cz { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: var(--space-3); align-items: center; margin: var(--space-0) 0; font-size: var(--text-xs); color: inherit; }
.pw-cz .bar { position: relative; height: 18px; border-radius: var(--radius-xs); overflow: hidden; background: var(--surface-2); }
.pw-cz .bar svg { position: absolute; inset: 0; width: 100%; height: 100%; } .pw-cz .bar rect { fill: color-mix(in oklab, var(--mark-back) 14%, var(--surface)); }
.pw-cz .bar span { position: relative; padding-left: var(--space-2); line-height: 18px; white-space: nowrap; }
.pw-cz .c { text-align: right; color: var(--ink-muted); } .pw-cz:hover .bar span { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }

/* Tables: failures, bouncing, red tests, seats */
.pw-page .pw-tb { padding: var(--space-1) 0; overflow: hidden; }
.pw-tb th:first-child, .pw-tb td:first-child { padding-left: var(--space-4); } .pw-tb th:last-child, .pw-tb td:last-child { padding-right: var(--space-4); }
.pw-tb td { height: 25px; font-size: var(--text-xs); border-bottom: var(--border-row); } .pw-tb tbody tr:last-child td { border-bottom: 0; }
.pw-tb tbody tr:hover td { background: color-mix(in oklab, var(--hover) 60%, var(--surface)); }
.pw-tb td.m { font-family: var(--code); color: var(--ink-muted); } .pw-tb td.f { font-family: var(--code); color: var(--ink-faint); } .pw-tb td.m a { color: inherit; }
.pw-tb td.w { max-width: 0; width: 40%; overflow: hidden; text-overflow: ellipsis; color: var(--ink-faint); } .pw-tb td.t { max-width: 0; width: 55%; overflow: hidden; text-overflow: ellipsis; }
.pw-tb td .dash-dot { margin-right: var(--space-2); }
.pw-page td.dash-num.back { color: var(--mark-back); font-weight: 600; } .pw-page td.dash-num.amb { color: var(--warn); font-weight: 600; } .pw-page td.dash-num .z { color: color-mix(in oklab, var(--ink-faint) 60%, var(--surface)); }
.pw-page td.dash-num a { color: inherit; } .pw-page td.dash-num.ink { color: var(--ink); } .pw-page td.dash-num.z { color: color-mix(in oklab, var(--ink-faint) 60%, var(--surface)); }

/* 5. Where items are not moving: Items-style rows that expand */
.pw-stuck { overflow: hidden; }
.pw-gr { border-top: var(--border); } .pw-gr:first-child { border-top: 0; }
.pw-gh { display: grid; grid-template-columns: 14px 10px minmax(150px, 230px) 40px 52px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; width: 100%; min-height: 34px; padding: var(--space-1) var(--space-4); text-align: left; font-size: var(--text-sm); cursor: pointer; }
.pw-gh:hover { background: var(--hover); }
.pw-gh .tw { color: var(--ink-faint); font-size: var(--text-2xs); transition: transform .12s; } .pw-gr.open .pw-gh .tw { transform: rotate(90deg); }
.pw-gh .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-gh .ct { font-size: var(--text-sm); font-weight: 600; text-align: right; } .pw-gh .old { font-size: var(--text-xs); color: var(--ink-faint); text-align: right; } .pw-gh .old.back { color: var(--mark-back); font-weight: 600; }
.pw-gh .hint { font-size: var(--text-xs); color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-gh .open { font-size: var(--text-xs); color: var(--accent); font-weight: 600; white-space: nowrap; } .pw-gh .open:hover { text-decoration: underline; text-underline-offset: 2px; }
.pw-gl { display: none; padding: 0 var(--space-4) var(--space-2) var(--space-9); } .pw-gr.open .pw-gl { display: block; }
.pw-ir { display: grid; grid-template-columns: 52px minmax(0, 1.15fr) minmax(0, 1fr) 46px; gap: var(--space-3); align-items: baseline; padding: var(--space-1) 0; font-size: var(--text-xs); border-top: var(--border-row); white-space: nowrap; color: inherit; }
.pw-ir:hover { background: var(--hover); } .pw-ir .id { font-family: var(--code); color: var(--ink-faint); } .pw-ir .tt, .pw-ir .dt { overflow: hidden; text-overflow: ellipsis; } .pw-ir .dt { color: var(--ink-faint); }
.pw-ir .ag { color: var(--ink-faint); text-align: right; } .pw-ir .ag.back { color: var(--mark-back); font-weight: 600; }
.pw-gmore { display: block; padding: var(--space-2) 0 var(--space-0); font-size: var(--text-xs); color: var(--ink-muted); border-top: var(--border-row); } .pw-gmore:hover { color: var(--ink); }
.pw-moving { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); padding: var(--space-3) var(--space-4); border-top: var(--border); background: var(--surface-2); font-size: var(--text-xs); color: var(--ink-muted); }
.pw-moving .pw-kv { display: inline-flex; align-items: center; gap: var(--space-2); } .pw-moving b { color: var(--ink); font-weight: 600; } .pw-moving a { color: inherit; }
.pw-moving .ct { font-weight: 600; color: var(--ink-muted); }
.pw-moving .pw-dash { margin-left: auto; }

/* 6. This machine */
.pw-page .pw-mach { padding: var(--space-3) 0 var(--space-1); overflow: hidden; }
.pw-mach .facts { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); padding: 0 var(--space-4) var(--space-3); font-size: var(--text-xs); color: var(--ink-muted); }
.pw-mach .facts b { color: var(--ink); font-weight: 600; } .pw-mach .facts b.back { color: var(--mark-back); } .pw-mach .facts b.amb { color: var(--warn); }
.pw-cpu { display: block; width: 100%; height: 6px; border-radius: var(--radius-xs); } .pw-cpu .bg { fill: var(--idle); } .pw-cpu rect:not(.bg) { fill: var(--mark-shout); } .pw-cpu rect.hi { fill: var(--ink-muted); }
.pw-mach td.bar { width: 20%; } .pw-mach td { height: 25px; font-size: var(--text-xs); border-bottom: var(--border-row); } .pw-mach tbody tr:last-child td { border-bottom: 0; }
.pw-mach th:first-child, .pw-mach td:first-child { padding-left: var(--space-4); } .pw-mach th:last-child, .pw-mach td:last-child { padding-right: var(--space-4); }
.pw-mach td.w { max-width: 0; width: 38%; overflow: hidden; text-overflow: ellipsis; color: var(--ink-faint); }
.pw-mnote { margin: 0; padding: var(--space-2) var(--space-4) var(--space-1); font-size: var(--text-2xs); color: var(--ink-faint); }
.pw-page .dash-lk { color: var(--ink-muted); }

@media (max-width: 1100px) { .pw-split, .pw-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .pw-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pw-flow .dash-stage:nth-child(-n+2) { border-top: 0 !important; }
  .pw-page .pw-rate { grid-column: 1 / -1; border-left: 0 !important; }
  .pw-page .pw-health { flex-wrap: wrap; white-space: normal; gap: var(--space-2) var(--space-4); } .pw-health .vr { display: none; }
}
@media (max-width: 700px) {
  .pw-nowl .d { display: none; } .pw-page p.pw-nowl { gap: var(--space-1) var(--space-4); }
  .pw-twg { grid-template-columns: 44px minmax(0, 1fr); } .pw-twkey { margin-left: 0; gap: var(--space-1) var(--space-4); }
  .pw-verdict { flex-wrap: wrap; align-items: flex-start; } .pw-verdict .say { white-space: normal; flex-basis: 100%; }
  .pw-page p.pw-do { flex-direction: column; gap: var(--space-0); }
  .pw-gh { grid-template-columns: 14px 10px minmax(0, 1fr) 28px 40px auto; padding: var(--space-2) var(--space-4); gap: var(--space-3); } .pw-gh .hint { grid-column: 3 / -1; grid-row: 2; margin-top: calc(var(--space-1) * -1); color: var(--ink-faint); }
  .pw-gh .open { font-size: 0; } .pw-gh .open::after { content: "Items ›"; font-size: var(--text-xs); }
  .pw-gl { padding: 0 var(--space-4) var(--space-2); } .pw-ir { grid-template-columns: 48px minmax(0, 1fr) 40px; } .pw-ir .dt { display: none; }
  .pw-page .pw-sg .s { white-space: normal; }
}

/* The gate trace panel under an In the gate row: one line per phase, its bar drawn as SVG geometry (no inline style). */
.dash-live .dash-gt { padding: var(--space-2) 0 var(--space-3); border-bottom: var(--border-row); }
.dash-live .dash-gs { margin: 0 0 var(--space-2); font-size: var(--text-xs); color: var(--ink-muted); }
.dash-live .dash-gl { list-style: none; margin: 0; padding: 0; }
.dash-live .dash-gp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 1fr) auto; gap: var(--space-3); align-items: center; padding: 2px 0; font-size: var(--text-xs); }
.dash-live .dash-gn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-live .dash-gn small { color: var(--ink-faint); }
.dash-live .dash-gm { font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.dash-live .dash-gp.gap { color: var(--ink-faint); }
.dash-gbar { display: block; width: 100%; height: 6px; border-radius: var(--radius-hair); }
.dash-gbar .bg { fill: var(--idle); } .dash-gbar .section, .dash-gbar .step { fill: var(--stage-building); } .dash-gbar .shard { fill: var(--stage-review); } .dash-gbar .ready, .dash-gbar .dispatch { fill: var(--stage-merged); } .dash-gbar .requeue, .dash-gbar .gap { fill: var(--ink-faint); }
.dash-live .dash-gf { display: flex; gap: var(--space-4); margin: var(--space-2) 0 0; }
/*
 * The Activity page (activity-approved-1113, #6916), on the design sheet's tokens: headers on the ground above their cards,
 * 6 px cards with a thin border and no shadow, 4 px chips, rows that never wrap, the formal stage colours. Every
 * proportion is SVG geometry, since the page's policy refuses inline styles. Light values are the sheet's; dark keeps the view's own.
 */
.act-live {
  --surface: light-dark(#ffffff, #121815); --surface-2: light-dark(#f5f5f5, #171f1b); --hover: light-dark(#fafafa, #171f1b);
  --line: light-dark(#e5e5e5, #232e29); --line-soft: light-dark(#efefef, #1b2420); --line-strong: light-dark(#d4d4d4, #34423b);
  --ink: light-dark(#1a1a1a, #e7ece9); --ink-muted: light-dark(#555555, #9caba3); --ink-faint: light-dark(#8a8a8a, #6a776f);
  --accent: var(--stage-merged); --idle: light-dark(#ececec, #232e29); --amber: light-dark(#a86b00, #e4b25a); --amber-dot: light-dark(#d39a2a, #e4b25a);
  --stage-gate: light-dark(#1f2933, #d6dbe0); --stage-wait: light-dark(#ecd37e, #7a6a2a); --stage-blocked: var(--stage-gated);
  --seg-ready: var(--stage-ready); --seg-build: var(--stage-building); --seg-blk: var(--stage-gated); --seg-gate: var(--stage-gate);
  --seg-pend: var(--stage-wait); --seg-rev: var(--stage-review); --seg-land: var(--stage-stripe);
  --code: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; --mono: var(--sans);
  display: block; min-width: 0; color: var(--ink); font-size: var(--text-sm); line-height: 1.4; font-variant-numeric: tabular-nums;
}
#activity.act-live { padding: 0; }
.act-live button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; min-height: 0; min-width: 0; cursor: pointer; text-align: left; }
.act-live a { color: inherit; text-decoration: none; cursor: pointer; }
.act-defs { position: absolute; width: 0; height: 0; }
.act-cols { display: grid; grid-template-columns: minmax(0, 780px) 300px; gap: 24px; justify-content: center; align-items: start; }
.act-feedcol, .act-rail { min-width: 0; }
.act-rail { display: block; }

/* the page's one section pattern: header above, card below */
.act-sec { display: flex; flex-direction: column; min-width: 0; margin-top: 16px; }
.act-sec.act-first { margin-top: 0; }
.act-shd { display: flex; align-items: baseline; gap: 14px; min-height: 18px; margin: 0 0 6px; padding: 0 2px; white-space: nowrap; min-width: 0; }
.act-lbl { display: flex; align-items: center; flex: none; margin: 0; font: 600 10.5px/1.4 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); }
.act-cap { margin-left: auto; font-size: var(--text-xs); color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.act-cap b { color: var(--ink-muted); font-weight: 600; }
.act-cap a { color: var(--ink-muted); font-weight: 600; }
.act-cap a:hover { color: var(--ink); }
.act-shd .lk { flex: none; margin-left: auto; font-size: var(--text-xs); color: var(--ink-muted); }
.act-shd .lk:hover { color: var(--ink); }
.act-card { min-width: 0; background: var(--surface); border: var(--border); border-radius: var(--radius-md); }
.act-pill { display: inline-block; margin-left: var(--space-2); padding: 0 var(--space-2); border: var(--border); border-radius: var(--radius-chip); background: var(--surface); font: 600 11px/16px var(--sans); letter-spacing: 0; color: var(--ink); vertical-align: 1px; }
.act-chip { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 0 7px; border-radius: var(--radius-chip); font-size: var(--text-2xs); line-height: 18px; font-weight: 500; white-space: nowrap; background: var(--stage-blocked-soft); color: var(--stage-blocked-ink); }
.act-chip.b { background: var(--tint-blue); color: var(--tint-blue-ink); }
.act-chip.r { background: var(--tint-amber); color: var(--tint-amber-ink); }
.act-chip.l { background: var(--tint-green); color: var(--stage-merged); }
.act-chip.rd { background: var(--tint-violet); color: var(--tint-violet-ink); }
.act-chip.gt { background: var(--tint-slate); color: var(--stage-gate); }
.act-chip.x { background: var(--tint-red); color: var(--mark-back); }
.act-chip.h { background: none; box-shadow: var(--inset-line-strong); color: var(--ink-muted); }
.act-chip.ru { background: var(--tint-sand); color: var(--amber); }

/* Since you left */
.act-since { display: flex; align-items: baseline; gap: 6px; margin: 0 2px 16px; font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; }
.act-since a { color: var(--ink-muted); font-weight: 600; }
.act-since a:hover { color: var(--ink); }
.act-since a.amb { color: var(--amber); }
.act-since .newer, .act-since .lkr { margin-left: auto; color: var(--accent); font-weight: 600; }
.act-since.end { justify-content: space-between; margin: 16px 2px 0; }
.act-since.end .pgn { color: var(--accent); font-weight: 600; margin-right: 12px; }

/* Bottlenecks */
.act-bn { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; }
.act-bn .ln { position: relative; min-width: 0; padding: 8px 12px; border-left: var(--border); }
.act-bn .ln:first-child { border-left: 0; }
.act-bn .ln:not(:last-child)::after { content: "›"; position: absolute; right: -6px; top: 50%; z-index: 1; width: 11px; transform: translateY(-55%); text-align: center; background: var(--surface); line-height: 16px; color: var(--ink-faint); font-size: 15px; }
.act-bn .nm { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.act-bn .nm .act-chip { margin-left: auto; font-size: 10.5px; line-height: 16px; padding: 0 6px; }
.act-live .dot { display: inline-block; width: 7px; height: 7px; border-radius: var(--radius-dot); flex: none; background: var(--ink-faint); }
.act-live .dot.ready { background: var(--stage-ready); } .act-live .dot.building { background: var(--stage-building); } .act-live .dot.gate { background: var(--stage-gate); }
.act-live .dot.review { background: var(--stage-review); } .act-live .dot.merged { background: var(--stage-merged); }
.act-bn .lb { margin-top: 2px; font-size: var(--text-xs); color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-bn .lb b { color: var(--ink); font-weight: 600; }
.act-bn .lb b.st { color: var(--mark-back); }
.act-bn .lb b.none { color: var(--ink-faint); font-weight: 400; }
.act-bn .gb { display: block; width: 100%; height: 8px; margin: 5px 0 3px; border-radius: var(--radius-hair); overflow: hidden; }
.act-bn .gb a { cursor: pointer; } .act-bn .gb a:hover rect { filter: brightness(.9); }
.act-bn .gb rect.w.ready { fill: var(--stage-ready); } .act-bn .gb rect.w.building { fill: var(--stage-building); } .act-bn .gb rect.w.gate { fill: var(--stage-gate); }
.act-bn .gb rect.w.review { fill: var(--stage-review); } .act-bn .gb rect.w.merged { fill: var(--stage-merged); }
.act-bn .gb rect.sg { fill: url(#act-p-sg); } .act-bn .gb rect.sr { fill: url(#act-p-sr); }
.act-live svg .p-sga { fill: var(--line-soft); } .act-live svg .p-sgb { fill: var(--stage-gated); } .act-live svg .p-sra { fill: var(--tint-red-fill); } .act-live svg .p-srb { fill: var(--mark-back); }
.act-bn .od { font-size: var(--text-2xs); color: var(--ink-faint); white-space: nowrap; }

/* By hour: the key, then each hour's card */
.act-hours { margin-top: 16px; }
.act-hours > .byh { margin-bottom: 5px; }
.act-lg { display: grid; gap: 2px; margin: 0 2px 12px; }
.act-lg > div { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--text-2xs); color: var(--ink-faint); }
.act-lg span { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; vertical-align: middle; }
.act-lg i { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: var(--radius-bar); }
.act-lg .ready { background: var(--seg-ready); } .act-lg .building { background: var(--seg-build); } .act-lg .gate { background: var(--seg-gate); } .act-lg .wait { background: var(--seg-pend); }
.act-lg .review { background: var(--seg-rev); } .act-lg .landing { background: var(--seg-land); } .act-lg .blocked { background: var(--seg-blk); }
.act-lg .held { border: var(--border-held-thin); } .act-lg .cap { width: 11px; height: 3px; border-radius: var(--radius-hair); background: var(--mark-back); } .act-lg .mute { background: color-mix(in oklab, var(--seg-build) 22%, var(--surface)); } .act-lg .over { background: repeating-linear-gradient(135deg, var(--mark-back) 0 1.5px, transparent 1.5px 4px), var(--seg-build); }
.act-lg .k-cap { width: 10px; height: 3px; border-radius: var(--radius-hair); background: var(--stage-merged); } .act-lg .k-back { width: 10px; height: 2px; border-radius: 0; background: var(--mark-back); }
.act-lg .k-dot { width: 7px; height: 7px; border-radius: var(--radius-dot); } .act-lg .k-dot.rul { background: var(--amber-dot); } .act-lg .k-dot.sh { background: var(--mark-idle); }
.act-lg .x { width: 1px; height: 11px; background: var(--line); align-self: center; }
.act-hoursec { margin-top: 14px; }
.act-lg + .act-hoursec { margin-top: 12px; }
.act-hoursec .act-shd { cursor: pointer; }
.act-h2 { display: flex; align-items: baseline; gap: 6px; margin: 0; font: 600 12.5px/1.4 var(--sans); color: var(--ink); letter-spacing: 0; text-transform: none; }
.act-h2 .nowt { font: 600 10.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.act-hoursec .am { color: var(--warn); }
.act-hourcard { overflow: hidden; padding: 0; }
.act-wf { position: relative; min-width: 0; }
.act-wfsvg { display: block; }
.act-wfsvg .act-grid { stroke: var(--line-soft); }
.act-wfsvg .act-lleft { stroke: var(--line-strong); stroke-dasharray: 2 3; }
.act-wfsvg .act-edge { stroke: var(--line-strong); stroke-dasharray: 3 3; pointer-events: none; }
.act-wfsvg .act-lnow { stroke: var(--stage-merged); stroke-dasharray: 3 3; }
.act-wfsvg .act-tick, .act-wfsvg .act-bleed { font: 10px var(--sans); fill: var(--ink-faint); pointer-events: none; }
.act-wfsvg .act-tick.now { fill: var(--accent); font-weight: 600; }
.act-live svg .s-ready { fill: var(--seg-ready); } .act-live svg .s-build { fill: var(--seg-build); } .act-live svg .s-blk { fill: var(--seg-blk); } .act-live svg .s-gate { fill: var(--seg-gate); }
.act-live svg .s-pend { fill: var(--seg-pend); } .act-live svg .s-rev { fill: var(--seg-rev); } .act-live svg .s-land { fill: url(#act-p-land); } .act-live svg .s-held { fill: url(#act-p-held); }
.act-live svg .s-over { fill: url(#act-p-over); }
.act-live svg .p-over { fill: var(--mark-back); } .act-live svg .p-landa { fill: var(--stage-merged); } .act-live svg .p-landb { fill: color-mix(in oklab, var(--stage-merged) 35%, var(--surface)); } .act-live svg .p-held { fill: var(--mark-held); }
.act-live svg .m-back { fill: var(--mark-back); } .act-live svg .m-land { fill: var(--stage-merged); }
.act-live svg .m-rul { fill: var(--amber-dot); stroke: var(--surface); stroke-width: 1; } .act-live svg .m-sh { fill: var(--mark-idle); stroke: var(--surface); stroke-width: 1; }
.act-wfsvg .act-hit { fill: transparent; }
.act-wfsvg g[data-id] { cursor: pointer; }
.act-wfsvg .nb { opacity: .22; }
.act-wfsvg .mut.s-ready { fill: color-mix(in oklab, var(--seg-ready) 22%, var(--surface)); } .act-wfsvg .mut.s-build { fill: color-mix(in oklab, var(--seg-build) 22%, var(--surface)); } .act-wfsvg .mut.s-blk { fill: color-mix(in oklab, var(--seg-blk) 25%, var(--surface)); }
.act-wfsvg .mut.s-gate { fill: color-mix(in oklab, var(--seg-gate) 22%, var(--surface)); } .act-wfsvg .mut.s-pend { fill: color-mix(in oklab, var(--seg-pend) 35%, var(--surface)); } .act-wfsvg .mut.s-rev { fill: color-mix(in oklab, var(--seg-rev) 25%, var(--surface)); }
.act-wfsvg .mut.s-land { fill: color-mix(in oklab, var(--stage-merged) 22%, var(--surface)); } .act-wfsvg .mut.s-held { opacity: .35; }
.act-wfsvg .m-cap { fill: var(--mark-back); }
.act-wfnote { margin: 0; padding: 6px 10px; border-top: var(--border-row); font-size: var(--text-xs); color: var(--ink-faint); }
.act-wfsvg g.dim { opacity: .13; }
.act-hours.hovering g[data-id] { opacity: .12; }
.act-hours.hovering g.hot { opacity: 1; }

/* the slot: tabs, then the events or the item */
.act-evt { display: flex; align-items: center; gap: 0; width: 100%; height: 32px; padding: 0 10px 0 4px; border-top: var(--border-row); font-size: var(--text-xs); color: var(--ink-muted); }
.act-evt .tb { display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 30px; padding: 0 10px; border-radius: var(--radius-xs); font-size: var(--text-xs); color: var(--ink-muted); font-weight: 600; white-space: nowrap; }
.act-evt .tb:hover { color: var(--ink); background: var(--hover); }
.act-evt .tb.on { color: var(--ink); }
.act-evt .tb .f { margin-left: -4px; font-weight: 400; color: var(--ink-faint); }
.act-evt .tb .chv { display: inline-block; font-size: var(--text-2xs); color: var(--ink-faint); transition: transform .12s; }
.act-evt.open .tb[data-act-tab="ev"].on .chv { transform: rotate(90deg); }
.act-evt.open .tb:not(.on) .chv { transform: none; }
.act-evt.open .tb:not(.it) { font-weight: 400; }
.act-evt.open .tb.on { font-weight: 600; }
.act-evt .tsep { flex: none; width: 1px; height: 14px; margin: 0 4px; background: var(--line); }
.act-evt .tb.it { flex: 0 1 auto; overflow: hidden; }
.act-evt .tb.it .id { flex: none; font: 600 11.5px var(--code); color: var(--accent); }
.act-evt .tb.it .tt { min-width: 0; max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.act-evt .tb.it .act-chip { flex: none; font-weight: 500; }
.act-evt .xb { flex: none; width: 22px; height: 22px; border-radius: var(--radius-xs); color: var(--ink-faint); font-size: 15px; line-height: 20px; text-align: center; }
.act-evt .xb:hover { background: var(--hover); color: var(--ink); }
.act-evt .tm { flex: none; margin-left: auto; padding-left: 12px; font-size: var(--text-xs); color: var(--ink-muted); white-space: nowrap; }
.act-evrows, .act-ipe { border-top: var(--border-row); }
.act-row { display: grid; grid-template-columns: 52px 108px minmax(0, 1fr); grid-template-rows: 20px 18px; column-gap: 12px; align-items: center; padding: 5px 14px; border-top: var(--border-row); font-size: var(--text-sm); white-space: nowrap; }
.act-row:first-child { border-top: 0; }
.act-row.has { cursor: pointer; }
.act-row:hover { background: var(--hover); }
.act-row .t { grid-row: 1; grid-column: 1; font-size: var(--text-xs); color: var(--ink-faint); }
.act-row .act-chip { grid-row: 1; grid-column: 2; }
.act-row .ph { grid-row: 1; grid-column: 3; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.act-row .ph .id { margin-right: 6px; font-family: var(--code); color: var(--accent); }
.act-row .fa { grid-row: 2; grid-column: 3; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--text-xs); color: var(--ink-faint); }
.act-left { display: flex; align-items: center; gap: 10px; height: 24px; padding: 0 14px 0 calc(14px + 52px + 12px); font-size: var(--text-2xs); color: var(--ink-faint); }
.act-left::before, .act-left::after { content: ""; height: 1px; background: var(--line-strong); flex: 1; }
.act-left::before { flex: 0 0 12px; }
.act-pager { display: flex; align-items: center; gap: 12px; padding: 7px 14px 6px calc(14px + 52px + 108px + 24px); border-top: var(--border-row); font-size: var(--text-xs); color: var(--ink-faint); }
.act-pager a { color: var(--ink-muted); font-weight: 600; }
.act-pager a:hover { color: var(--ink); }
.act-ipe .act-pager { padding-left: 14px; }
.act-none { margin: 0; padding: 8px 14px 12px; font-size: var(--text-xs); color: var(--ink-faint); }
.act-ip { background: var(--surface); padding: 10px 14px 0; border-top: var(--border-row); }
.act-ip .act-ipe { margin: 0 -14px; }
.act-jsvg { display: block; max-width: 100%; margin-bottom: 8px; overflow: visible; }
.act-jsvg .j-track { fill: var(--surface-2); }
.act-jsvg .j-box { fill: none; stroke: var(--ink-faint); }
.act-jsvg .j-hr, .act-jsvg .j-tk { font: 10.5px var(--sans); fill: var(--ink-faint); }
.act-jsvg .j-hr.now { fill: var(--accent); font-weight: 600; }
.act-jsvg .j-wedge { fill: color-mix(in oklab, var(--ink) 4%, transparent); }
.act-jsvg .j-wline { fill: none; stroke: var(--line-strong); }
.act-jsvg .j-cut { stroke: var(--surface); }
.act-jsvg .j-l1 { font: 600 11.5px var(--sans); fill: var(--ink-muted); }
.act-jsvg .j-l2 { font: 11.5px var(--sans); fill: var(--ink-faint); }
.act-jsvg .j-over { font: 11.5px var(--sans); fill: var(--mark-back); }
.act-jsvg .j-rule { stroke: var(--line-soft); }
.act-jsvg .j-tk.mid { fill: var(--ink-faint); opacity: .7; }

/* the rail: /live-style compact lists */
.act-rail .act-sec:first-child { margin-top: 0; }
.act-rail .rc { padding: 10px 12px; }
.act-rail .rc.flush, .resfull .rc.flush { padding: 4px 0; }
svg.split { display: block; width: 100%; height: 8px; border-radius: var(--radius-hair); overflow: hidden; }
svg.split rect.b { fill: var(--stage-building); } svg.split rect.r { fill: var(--stage-review); } svg.split rect.i { fill: var(--idle); }
.act-live .keyrow { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: var(--text-xs); color: var(--ink-muted); }
.act-live .keyrow span { display: inline-flex; align-items: center; gap: 5px; } .act-live .keyrow b { color: var(--ink); font-weight: 600; }
.act-live .keyrow .sw { display: inline-block; width: 8px; height: 8px; border-radius: var(--radius-bar); }
.act-live .keyrow .sw.b { background: var(--stage-building); } .act-live .keyrow .sw.r { background: var(--stage-review); } .act-live .keyrow .sw.i { background: var(--idle); box-shadow: var(--inset-line-strong); }
.act-live .rt { border-collapse: collapse; width: 100%; }
.act-live .rt td { height: 25px; padding: 0 6px; font-size: var(--text-xs); white-space: nowrap; border-bottom: var(--border-row); }
.act-live .rt tr:last-child td { border-bottom: 0; }
.act-live .rt td:first-child { padding-left: 12px; } .act-live .rt td:last-child { padding-right: 12px; }
.act-live .rt td.rn { width: 76px; font-family: var(--code); color: var(--ink-muted); }
.act-live .rt td.rb { width: 100%; }
.act-live .rt td.n { text-align: right; color: var(--ink); } .act-live .rt td.n.hot, .act-live .hotn, .act-live .hot { color: var(--mark-back); }
svg.load { display: block; width: 100%; height: 5px; border-radius: var(--radius-hair); overflow: hidden; }
svg.load rect.bg { fill: var(--idle); } svg.load rect.lo { fill: var(--ink-faint); } svg.load rect.hi { fill: var(--ink-muted); } svg.load rect.hot { fill: var(--mark-back); }
.act-live .slots { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.act-live .slots em { margin-left: 4px; font-size: var(--text-2xs); font-style: normal; color: var(--ink-muted); }
.act-live .slots i { width: 6px; height: 6px; border-radius: var(--radius-bar); background: var(--ink); }
.act-live .kv { display: grid; grid-template-columns: 96px minmax(0, 1fr) 22px 80px; gap: 8px; align-items: center; height: 26px; padding: 0 12px; font-size: var(--text-xs); color: var(--ink-muted); border-bottom: var(--border-row); }
.act-live .kv:last-child { border-bottom: 0; }
.act-live .kv b { text-align: right; color: var(--ink); font-weight: 600; } .act-live .kv small { font-size: var(--text-2xs); color: var(--ink-faint); text-align: right; white-space: nowrap; }
.act-live .main1 { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.act-live .mdot { display: inline-block; width: 8px; height: 8px; border-radius: var(--radius-dot); background: var(--stage-merged); }
.act-live .mdot.red { background: var(--mark-back); }
.act-live .main1 b { color: var(--stage-merged); font-weight: 600; } .act-live .main1 b.red { color: var(--mark-back); }
.act-live .main1 .faint { color: var(--ink-faint); }
.act-live .main1 .commit { margin-left: auto; font: var(--text-xs) var(--code); color: var(--ink-muted); }

/* Resources band: the rail's four cells, for screens too narrow for the rail */
.act-resec { display: none; }
.act-live .resband { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; }
.act-live .rcell { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 9px 12px 10px; border-left: var(--border-row); }
.act-live .rcell:first-child { border-left: 0; }
.act-live .rcell:hover { background: var(--hover); } .act-live .rcell.on { background: var(--surface-2); }
.act-live .rcell .rh { display: flex; align-items: baseline; gap: 6px; font: 600 12.5px/1.3 var(--sans); color: var(--ink-muted); white-space: nowrap; }
.act-live .rcell .rh .chv { margin-left: auto; font-size: var(--text-2xs); color: var(--ink-faint); font-weight: 400; transition: transform .12s; }
.act-live .rcell.on .rh .chv { transform: rotate(90deg); }
.act-live .rcell .rv { display: grid; gap: 6px; font-size: var(--text-xs); color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.act-live .rcell .rv b { color: var(--ink); font-weight: 600; } .act-live .rcell .rv .g { color: var(--stage-merged); font-weight: 600; }
.act-live .rcell .rv code { font: var(--text-2xs) var(--code); color: var(--ink-muted); }
.act-live .rcell .rvq { gap: 2px; }
svg.split { height: 6px; }
svg.mini { display: block; flex: none; }
svg.mini rect { fill: var(--ink-faint); } svg.mini rect.hot { fill: var(--mark-back); }
.act-live .resfull { grid-column: 1 / -1; border-top: var(--border-row); } .act-live .resfull .rc { border: 0; padding: 10px 12px; }

/* the hover card for a bar */
.act-tip { position: fixed; left: 0; top: 0; z-index: 40; width: 320px; padding: 10px 12px; border: var(--border); border-radius: var(--radius-float); background: var(--surface); box-shadow: var(--shadow-float); font-size: var(--text-xs); pointer-events: none; }
.act-tip[hidden] { display: none; }
.act-tip .t1 { display: flex; align-items: center; gap: 8px; } .act-tip .t1 .id { color: var(--accent); font-family: var(--code); } .act-tip .t1 .w { color: var(--ink-faint); } .act-tip .t1 .act-chip { margin-left: auto; }
.act-tip .t2 { margin: 3px 0 8px; font-size: var(--text-sm); font-weight: 600; line-height: 1.35; }
.act-tip .segs { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; column-gap: 8px; row-gap: 2px; align-items: center; color: var(--ink-muted); }
.act-tip .segs i { display: block; width: 8px; height: 8px; border-radius: var(--radius-bar); }
.act-tip .segs i.s-ready { background: var(--seg-ready); } .act-tip .segs i.s-build { background: var(--seg-build); } .act-tip .segs i.s-blk { background: var(--seg-blk); } .act-tip .segs i.s-gate { background: var(--seg-gate); }
.act-tip .segs i.s-pend { background: var(--seg-pend); } .act-tip .segs i.s-rev { background: var(--seg-rev); } .act-tip .segs i.s-land { background: var(--seg-land); } .act-tip .segs i.s-held { border: var(--border-held-thin); }
.act-tip .segs b { font-weight: 600; color: var(--ink); text-align: right; } .act-tip .segs small { font-size: var(--text-2xs); color: var(--ink-faint); text-align: right; } .act-tip .segs small.s { color: var(--mark-back); }
.act-tip .segs .bk { grid-column: 1 / -1; color: var(--mark-back); font-weight: 600; font-size: 11.5px; padding: 1px 0; }
.act-tip .t3 { margin-top: 8px; display: flex; gap: 10px; color: var(--ink-faint); font-size: 11.5px; }

/* the filters, inside the page on a narrow screen */
.act-mfilters { display: none; }

@media (max-width: 1100px) and (min-width: 1001px) { .act-cols { grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; } }
@media (max-width: 1000px) {
  .act-cols { grid-template-columns: minmax(0, 1fr); }
  .act-rail { display: none; }
  .act-resec { display: flex; }
}
@media (max-width: 900px) {
  .act-mfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 2px 12px; font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; }
}
@media (max-width: 760px) {
  .act-since { flex-wrap: wrap; white-space: normal; }
  .act-since .newer { margin-left: 0; }
  .act-bn { grid-template-columns: minmax(0, 1fr); }
  .act-bn .ln { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 10px; align-items: center; border-left: 0; border-top: var(--border); }
  .act-bn .ln:first-child { border-top: 0; }
  .act-bn .ln::after { display: none !important; }
  .act-bn .nm { grid-row: 1 / 3; }
  .act-bn .gb { grid-column: 2; margin: 2px 0; }
  .act-bn .od { display: none; }
  .act-row { grid-template-columns: 44px 92px minmax(0, 1fr); column-gap: 8px; padding: 6px 12px; }
  .act-row .fa { grid-column: 2 / 4; }
  .act-pager { padding-left: 12px; }
  .act-left { padding: 0 12px; }
  .act-cap { font-size: 11.5px; }
}
@media (max-width: 640px) {
  .act-hoursec .act-cap .evc, .act-hoursec .act-cap .w { display: none; }
  .act-lg > div { font-size: 10px; }
  .act-lg span { margin-right: 5px; }
  .act-lg i { width: 7px; height: 7px; }
  .act-evt { padding: 0 6px 0 2px; }
  .act-evt .tb { padding: 0 6px; gap: 6px; }
  .act-evt .tm { display: none; }
  .act-evt .tb.it { flex: 1 1 0; }
  .act-evt .tb.it .tt { max-width: none; }
  .act-evt .tb.it .act-chip { display: none; }
  .act-live .resband { grid-template-columns: minmax(0, 1fr); }
  .act-live .rcell { grid-template-columns: 62px minmax(0, 1fr) 10px; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-left: 0; border-top: var(--border-row); }
  .act-live .rcell:first-child { border-top: 0; }
  .act-live .rcell .rh { display: contents; } .act-live .rcell .rh .lbl2 { grid-column: 1; } .act-live .rcell .rh .chv { grid-column: 3; grid-row: 1; }
  .act-live .rcell .rv { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 8px; }
  svg.split, svg.load { flex: 0 0 56px; width: 56px; } .act-live .rcell .wide { display: none; } .act-live .rcell .q2 { display: none; }
  .act-live .resfull { grid-row: auto; }
}

/* the strip's Activity controls: the event filters carry their counts */
:root[data-nav] .pagectl .act-filters { gap: var(--space-4); }
:root[data-nav] .pagectl .act-filters em { margin-left: var(--space-1); font-style: normal; font-size: var(--text-2xs); font-weight: 400; color: var(--ink-faint); }
:root[data-nav] .pagectl .act-filters button.on em { color: var(--ink-muted); }
.act-mfilters .ctl-seg { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.act-mfilters button, .act-mfilters select { padding: 0; border: 0; background: none; color: var(--ink-faint); font: inherit; cursor: pointer; }
.act-mfilters button.on { color: var(--ink); font-weight: 600; }
.act-mfilters em { margin-left: var(--space-1); font-style: normal; font-size: var(--text-2xs); font-weight: 400; color: var(--ink-faint); }
.act-mfilters select { appearance: none; color: var(--ink-muted); }
@media (max-width: 900px) { :root[data-tab="activity"] .pagectl { display: none; } }

.act-mfilters select { padding-right: var(--space-4); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5l3 3 3-3' fill='none' stroke='%238a8a8a' stroke-width='1.4'/%3E%3C/svg%3E") right center / 10px no-repeat; }
/* On a phone every Activity action is a full tap target: the filters, the resource cells and the hour event tabs (#7908). */
@media (max-width: 900px) {
  .act-live .act-mfilters button { min-height: var(--tap); }
  .act-live .rcell { height: var(--tap); }
  .act-live .act-evt .tb { height: var(--tap); }
}

/* The shared Rulings rows follow the approved full-list and Dashboard mockup. */
.needs-group, .needs-call, .needs-more { min-width: 0; list-style: none; }
.needs-group > ol { list-style: none; padding: 0; margin: 0; }
.needs-group-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.needs-group h3 { margin: var(--space-5) var(--space-4) var(--space-2); font: 600 var(--text-2xs) var(--mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-faint); }
.needs-call { border-radius: var(--radius-lg); }
.needs-call details[open] { background: var(--surface-2); border-radius: var(--radius-lg); }
.needs-call summary, .needs-drafts > button { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-4); cursor: pointer; list-style: none; border: 0; background: none; width: 100%; text-align: left; color: var(--ink); }
.needs-call summary::-webkit-details-marker { display: none; }
.needs-call summary:hover, .needs-drafts > button:hover { background: var(--surface-2); border-radius: var(--radius-lg); }
.needs-kind { display: grid; place-items: center; width: 20px; height: 20px; border-radius: var(--radius-dot); font-weight: 700; }
.needs-kind-question, .needs-action-question { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, var(--surface)); }
.needs-kind-sentinel, .needs-action-sentinel { color: var(--violet); background: color-mix(in srgb, var(--violet) 14%, var(--surface)); }
.needs-kind-approval, .needs-action-approval { color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, var(--surface)); }
.needs-kind-draft { color: var(--ink-muted); background: var(--surface-2); }
.needs-copy { min-width: 0; }
.needs-copy b, .needs-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.needs-copy b { font-size: var(--text-md); font-weight: 600; }
.needs-id { display: inline-block; max-width: 9em; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; margin-right: var(--space-3); color: var(--ink-faint); font: var(--text-xs) var(--mono); }
.needs-copy small { margin-top: var(--space-1); color: var(--ink-muted); font-size: var(--text-xs); }
.needs-side { display: flex; align-items: center; gap: var(--space-4); }
.needs-age { font: var(--text-xs) var(--mono); color: var(--ink-faint); }
.needs-action { padding: var(--space-0) var(--space-3); border-radius: var(--radius-chip); white-space: nowrap; font: 600 var(--text-2xs) var(--mono); }
.needs-caret { color: var(--ink-faint); font-size: var(--text-2xl); line-height: 1; }
.needs-call details[open] .needs-caret { transform: rotate(90deg); }
.needs-detail { padding: 0 var(--space-5) var(--space-5) var(--space-9); display: grid; gap: var(--space-5); }
.needs-detail > p { margin: 0; }
.needs-detail dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-2) var(--space-6); font-size: var(--text-sm); }
.needs-detail dt { color: var(--ink-faint); }
.needs-detail dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.needs-detail code { font: var(--text-xs) var(--mono); padding: 1px var(--space-1); border: var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.needs-detail .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; }
.needs-confirm-all { min-height: 28px; padding: var(--space-1) var(--space-3); border: var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font-size: var(--text-xs); cursor: pointer; }
.needs-more button { border: 0; background: none; color: var(--accent-strong); padding: var(--space-4) var(--space-4); text-align: left; cursor: pointer; }
@media (max-width: 640px) {
  .needs-age { font-size: var(--text-2xs); }
  .needs-id { max-width: 4.5em; margin-right: var(--space-2); }
  .needs-call summary, .needs-drafts > button { gap: var(--space-3); padding-inline: var(--space-2); }
  .needs-side { gap: var(--space-2); }
  .needs-copy b { font-size: var(--text-sm); }
  .needs-detail { padding-left: var(--space-5); }
  .needs-detail dl { grid-template-columns: minmax(0, 95px) minmax(0, 1fr); gap: var(--space-2) var(--space-4); }
}

/* Dashboard details follow the approved desktop and phone mockup. */
.dash-icon { width: 14px; height: 14px; flex: none; display: inline-block; vertical-align: middle; }
.dash-chips > span { display: inline-flex; align-items: center; gap: var(--space-2); }
.dash-chips [data-dashboard-icon=land], .dash-chips [data-dashboard-icon=pass] { color: var(--stage-merged); }
.dash-agent [data-dashboard-icon=build] { color: var(--stage-building); }
.dash-agent [data-dashboard-icon=review] { color: var(--stage-review); }
.dash-chips [data-dashboard-icon=back] { color: var(--mark-back); }
.dash-chart { position: relative; }
.dash-chart > svg { width: 100%; height: 136px; display: block; fill: var(--accent); }
.dash-pace-tag { display: block; text-align: right; font-size: var(--text-2xs); font-weight: 600; }
.dash-chart-caption { color: var(--ink-faint); font: var(--text-2xs) var(--mono); text-align: right; }
.dash-card > svg.dash-split { display: block; width: 100%; max-width: none; }
.dash-agent-legend { display: flex; justify-content: flex-end; gap: var(--space-5); flex-wrap: wrap; color: var(--ink-muted); font-size: var(--text-2xs); margin: calc(var(--space-7) * -1) 0 var(--space-5); }
.dash-agent-legend > span { display: inline-flex; align-items: center; gap: var(--space-2); }
.dash-agent-legend [data-dashboard-icon=build] { color: var(--accent); }
.dash-agent-legend [data-dashboard-icon=review] { color: var(--blue); }
.dash-agent-legend [data-dashboard-icon=back] { color: var(--reject); }
.dash-agent-group.label { font: 600 var(--text-2xs) var(--mono); letter-spacing: var(--tracking-label); color: var(--ink-faint); }
.dash-shipping .roadmap-summary-legend > [data-summary-state] { align-items: baseline; }
.dash-agent rect.dash-sent-back { fill: var(--reject); }
@media (max-width: 700px) {
  .release-header-top { column-gap: var(--space-3); }
  .roadmap-left > b { font-size: var(--text-xl); }
  .roadmap-summary-row { grid-template-columns: minmax(80px, .7fr) minmax(0, 1.3fr); gap: var(--space-3); }
  .roadmap-summary-legend { gap: var(--space-2) var(--space-3); font-size: var(--text-2xs); }
  .dash-agent-legend { justify-content: flex-start; margin: 0 0 var(--space-5); }
  .dash-agent-axis > span:nth-child(2) > span:not(:first-child):not(:last-child) { display: none; }
}

/* Activity's approved sentence rows and one expandable row per sentinel run [N26]. */
/* The agent floor (#dashboard/floor): the Dashboard's Agents card opened up to the whole board, in the same tokens.
 * Layout and type carry it; every bar width is an SVG attribute, so no inline style is needed. */
.dashboard.floor-page { padding-bottom: var(--space-8); }
.floor { display: grid; gap: var(--space-5); min-width: 0; }
.floor-crumbs { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-sm); color: var(--ink-faint); }
.floor-crumbs .link { min-height: 32px; text-decoration: none; }
.floor-crumbs b { color: var(--ink); font-weight: 600; }
.floor-live { margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-3); font-size: var(--text-xs); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.floor-live i { width: 8px; height: 8px; border-radius: var(--radius-dot); background: var(--accent); }
.floor-hero h1 { margin: 0; font-size: clamp(var(--text-2xl), 2.5vw, var(--text-3xl)); line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.floor-hero h1 em { font-style: normal; color: var(--accent); }
.floor-hero p { margin: var(--space-2) 0 0; max-width: 64ch; color: var(--ink-muted); }
.floor-band { display: grid; grid-template-columns: 4fr 4fr 3fr; background: var(--surface); border: var(--border); border-radius: var(--radius-card); }
.floor-grp { min-width: 0; padding: var(--space-4) var(--space-5); }
.floor-grp + .floor-grp { border-left: var(--border); }
.floor-grp h2 { display: flex; gap: var(--space-3); margin: 0 0 var(--space-3); font: 600 var(--text-2xs)/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }
.floor-grp h2 > span { margin-left: auto; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: var(--text-xs); color: var(--ink-muted); white-space: nowrap; }
.floor-nums { display: grid; gap: var(--space-3); }
.floor-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .floor-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.floor-number { min-width: 0; }
.floor-number b { display: block; font: 600 var(--text-2xl)/1.1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.floor-number span { display: block; margin-top: var(--space-1); font-size: var(--text-xs); line-height: 1.3; color: var(--ink-muted); white-space: nowrap; }
.floor-build b { color: var(--stage-building); } .floor-review b { color: color-mix(in oklab, var(--stage-review) 60%, var(--ink)); } .floor-back b { color: var(--mark-back); } .floor-shout b { color: var(--warn); }
.floor-two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-5); }
.floor .dash-card { padding: var(--space-5) var(--space-5); }
.floor .dash-card h2 { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-4); }
.floor .dash-card h2 > span { text-transform: none; letter-spacing: 0; font-weight: 400; text-align: right; }
.floor svg.floor-bars { display: block; width: 100%; height: 76px; fill: var(--accent); }
.floor svg.floor-bars rect.floor-none { fill: var(--line); }
.floor svg.floor-split { display: block; width: 100%; height: 12px; border-radius: var(--radius-md); }
.floor-split .floor-track { fill: var(--surface-2); }
.floor rect.build, .floor-keys i.build { fill: var(--stage-building); background: var(--stage-building); }
.floor rect.review, .floor-keys i.review { fill: var(--stage-review); background: var(--stage-review); }
.floor rect.idle, .floor-keys i.idle { fill: var(--line); background: var(--line); }
.floor-keys { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-4); font-size: var(--text-2xs); color: var(--ink-muted); }
.floor-keys > span { display: inline-flex; align-items: center; gap: var(--space-2); }
.floor-keys i { width: 10px; height: 10px; border-radius: var(--radius-xs); }
.floor-keys i.shout { background: var(--warn); } .floor-keys i.back { background: var(--mark-back); } .floor-keys i.landed { background: var(--stage-merged); }
.floor-keys b { color: var(--ink); font: 600 var(--text-2xs) var(--mono); }
.floor .floor-agents { padding-bottom: var(--space-2); }
.floor-agents-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--space-1) var(--space-5); margin-bottom: var(--space-2); }
.floor .floor-agents-head h2 { margin: 0; justify-content: flex-start; }
.floor-agents-head .floor-keys { margin-top: 0; }
.floor-agent { display: grid; grid-template-columns: 132px minmax(120px, 1fr) minmax(0, 1.8fr) repeat(4, 50px); gap: var(--space-4); align-items: center; min-height: 30px; border-bottom: var(--border); }
.floor-agent > b { display: flex; align-items: center; gap: var(--space-3); min-width: 0; overflow: hidden; font: 500 var(--text-xs) var(--mono); white-space: nowrap; text-overflow: ellipsis; }
.floor-agent > b > i { flex: none; width: 7px; height: 7px; border-radius: var(--radius-dot); background: var(--line-strong); }
.floor-building > b > i { background: var(--stage-building); } .floor-reviewing > b > i { background: var(--stage-review); }
.floor-quiet > b { color: var(--ink-muted); }
.floor-agent > svg { display: block; width: 100%; height: 16px; min-width: 0; }
.floor-agent .floor-track { fill: var(--surface-2); stroke: var(--line); stroke-width: .5; }
.floor-tick { fill: var(--line); }
.floor-landed { fill: var(--stage-merged); fill-opacity: .4; }
.floor-back { fill: var(--mark-back); }
.floor-shout { fill: var(--warn); }
.floor-now { display: flex; flex-direction: column; min-width: 0; font-size: var(--text-xs); }
.floor-hold { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.floor .dash-item { align-items: center; }
.floor-hold .dash-item { padding: 0; min-width: 0; }
.floor-hold .dash-item > span { display: none; }
.floor-hold .dash-item b { color: var(--ink-muted); }
.floor-chip { flex: none; padding: 0 var(--space-3); border-radius: var(--radius-chip); font: 600 var(--text-2xs)/19px var(--mono); white-space: nowrap; }
.floor-chip.build { background: color-mix(in oklab, var(--stage-building) 16%, var(--surface)); color: color-mix(in oklab, var(--stage-building) 60%, var(--ink)); }
.floor-chip.review { background: color-mix(in oklab, var(--stage-review) 16%, var(--surface)); color: color-mix(in oklab, var(--stage-review) 60%, var(--ink)); }
.floor-chip.stalled { background: color-mix(in oklab, var(--ink-muted) 14%, var(--surface)); color: var(--ink-muted); }
.floor-nothing { color: var(--ink-faint); font-size: var(--text-xs); }
.floor-n { text-align: right; font: var(--text-xs) var(--mono); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.floor-axis { min-height: 26px; border-bottom: var(--border); font: 600 var(--text-2xs) var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.floor-axis > span:nth-child(n+4) { text-align: right; }
.floor h3.floor-group { margin: 0 calc(var(--space-5) * -1); padding: var(--space-2) var(--space-5); background: var(--surface-2); border-bottom: var(--border); font: 600 var(--text-2xs) var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-muted); }
.floor-queues { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); align-items: stretch; }
.floor-queue h2 b { padding: 0 var(--space-3); border: var(--border); border-radius: var(--radius-chip); background: var(--surface-2); color: var(--ink); font: 600 var(--text-2xs)/18px var(--mono); }
.floor-queue .dash-list { max-height: 440px; overflow-y: auto; }
.floor-queue .dash-list li { min-height: 30px; }
.floor-queue[data-floor-queue=landed] .dash-item > span { color: var(--accent-strong); }
.dash-agents-head { display: flex; justify-content: flex-start; align-items: baseline; gap: var(--space-4); }
.dash-agents-head a { color: inherit; text-decoration: none; } .dash-agents-head a:hover { color: var(--accent-strong); text-decoration: underline; }
.dash-agents-count { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
.floor-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0; color: var(--ink-faint); font-size: var(--text-2xs); }
@media (max-width: 1280px) { .floor-queues { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .floor-agent { grid-template-columns: 112px minmax(96px, 1fr) minmax(0, 1.8fr) repeat(4, 44px); gap: var(--space-4); } .floor-band { grid-template-columns: minmax(0, 1fr); } .floor-grp + .floor-grp { border-left: 0; border-top: var(--border); } }
@media (max-width: 900px) { .floor-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .floor { gap: var(--space-4); }
  .floor-hero h1 { font-size: var(--text-2xl); }
  .floor-grp { padding: var(--space-3) var(--space-4); }
  .floor-nums { gap: var(--space-2); }
  .floor .dash-card h2 { flex-wrap: wrap; }
  .floor .dash-card h2 > span { text-align: left; }
  .floor-axis { display: none; }
  .floor-agent { grid-template-columns: repeat(4, auto) minmax(0, 1fr); grid-template-areas: "who who who who who" "line line line line line" "now now now now now" "build review idle shouts ."; gap: var(--space-1) var(--space-5); padding: var(--space-3) 0; }
  .floor-n { text-align: left; }
  .floor-queue .dash-list li { flex-wrap: nowrap; gap: var(--space-4); padding-bottom: 0; }
  .floor-agent > b { grid-area: who; } .floor-agent > svg { grid-area: line; } .floor-agent > .floor-now { grid-area: now; }
  .floor-n[data-label=Build] { grid-area: build; } .floor-n[data-label=Review] { grid-area: review; } .floor-n[data-label=Idle] { grid-area: idle; } .floor-n[data-label=Shouts] { grid-area: shouts; }
  .floor-n::before { content: attr(data-label) " "; color: var(--ink-faint); font-size: var(--text-2xs); }
  .floor-queues { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .floor-queue .dash-list { max-height: 360px; }
}
.floor-queue .dash-list li:last-child { border-bottom: 0; }


/* Canonical window comparisons retain every figure in a readable four-column table on phones. */
.dash-comparison table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: var(--space-4); font-size: var(--text-xs); }
.dash-comparison th, .dash-comparison td { padding: var(--space-2); border-bottom: var(--border); overflow-wrap: anywhere; vertical-align: top; }
.dash-comparison th { text-align: left; }
.dash-comparison th:first-child { width: 43%; }
.dash-comparison td { text-align: right; font-variant-numeric: tabular-nums; }

/* Settings keeps ordinary read-only values intact while narrowing to a single column on phones. */
.side-footer { display: flex; gap: var(--space-2); padding-top: var(--space-4); margin-top: auto; border-top: var(--border); }
.side-footer .ghost { min-height: 44px; flex: 1; justify-content: center; }
@media (width < 900px) { .side-footer { display: none; } .side.open .side-footer { display: flex; } }

/* Every scope remains a full touch target when the Settings pane narrows. */
body:has(#settings-pane:not([hidden])) #share-note { display: none; }

/* Shouts conversations share one bounded feed column and one compact state column [N26]. */
#shouts-pane > *, .shouts-card > *, .shout-main { min-width: 0; max-width: 100%; }
#shouts-pane .primary { overflow: hidden; }
#shouts-pane .detail { min-width: 0; }
.shouts-card > .shout-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
/* An empty narrow composer clips its placeholder to one line; actual messages still size to their content. */
.shouts-card .composer textarea:placeholder-shown { field-sizing: fixed; height: var(--tap); }
.shout-form > .answering, .shout-form > .console { grid-column: 1 / -1; }
#asks-slot { min-width: 0; max-width: 100%; }
#asks-slot .seg { flex: none; }
#feed > .shout { grid-template-columns: minmax(0, 1fr); gap: 0; }
#feed .shout.lead { background: var(--accent-soft); border-radius: var(--radius-md); padding-inline: var(--space-3); }
#feed .shout .who { color: var(--violet); font: 600 var(--text-sm) var(--mono); }
#feed .shout.lead .who { color: var(--accent-strong); }
#feed .shout .to { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.agent-row { grid-template-columns: minmax(0, max-content) minmax(0, 1fr) auto; min-height: 44px; padding: 0 var(--space-3); gap: var(--space-3); border-radius: var(--radius-md); }
.agent-row .agent-who { overflow: hidden; }
.agent-who b, .agent-card.lead .agent-who b { color: var(--ink); font-weight: 600; }
.agent-row .agent-model { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-faint); font-size: var(--text-2xs); }
.agent-row .agent-doing { grid-column: 2; grid-row: 1; }
.agent-state { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.agent-state time { color: var(--ink-faint); font: var(--text-2xs) var(--mono); }
.agent-state .chip, .agent-state [class*="stage"] { padding: 0 var(--space-2); border-radius: var(--radius-sm); font-size: var(--text-2xs); line-height: 18px; }
.agent-card .agent-work { padding-left: var(--space-5); }
/* The shout box is one compact line. */
.shouts-card > .shout-form { padding: var(--space-2) var(--space-3); }
.shouts-card .composer { border-radius: var(--radius-md); }
@media (width < 600px) {
  .shouts-card > .shout-form { gap: var(--space-1); padding-inline: var(--space-2); }
  .shout-form .composer { flex: 1 1 0; min-width: 0; }
  .shout-form .composer textarea { min-width: 0; width: 100%; }
  #asks-slot .seg button { padding-inline: var(--space-1); font-size: var(--text-2xs); }
}
/* The comparison overview stays open; its complete canonical table is a separate disclosure. */
.window-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.window-head h2 { margin: 0; }
.window-range { font-size: var(--text-xs); color: var(--ink-faint); }
.window-sentence { font-size: var(--text-md); margin: var(--space-4) 0; }
.window-tiles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--space-3); }
.window-tile { min-width: 0; padding: var(--space-3) var(--space-4); background: var(--surface-2); border-radius: var(--radius-md); }
.window-key { font-size: var(--text-xs); color: var(--ink-muted); }
.window-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-3); }
.window-value b { min-width: 0; overflow-wrap: anywhere; font-size: var(--text-2xl); font-variant-numeric: tabular-nums; }
.window-change { font: 600 var(--text-xs) var(--mono); border-radius: var(--radius-chip); padding: 0 var(--space-2); }
.window-change.good { color: var(--accent-strong); background: var(--accent-soft); }
.window-change.bad { color: var(--reject); background: var(--reject-soft); }
.window-tile small { font-size: var(--text-2xs); color: var(--ink-faint); }
.window-bar { display: block; width: 100%; height: var(--space-2); margin: var(--space-2) 0; background: var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.window-bar .window-before { fill: var(--ink-faint); opacity: .35; }
.window-bar .window-after { fill: var(--ink-muted); }
.window-tile.good .window-bar .window-after { fill: var(--accent); }
.window-tile.bad .window-bar .window-after { fill: var(--reject); }
.window-time-heading { margin: var(--space-5) 0 var(--space-2); }
.window-stage-row { display: grid; grid-template-columns: var(--space-9) minmax(0,1fr); gap: var(--space-3); align-items: center; font-size: var(--text-xs); color: var(--ink-faint); margin-bottom: var(--space-1); }
.window-stack { display: block; width: 100%; height: var(--space-4); gap: var(--space-0); overflow: hidden; border-radius: var(--radius-sm); }
.window-keys { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); color: var(--ink-muted); font-size: var(--text-xs); }
.window-keys i { display: inline-block; width: var(--space-3); height: var(--space-3); margin-right: var(--space-1); border-radius: var(--radius-xs); }
/* Where item time went takes each stage from its token: waiting for review is grey, nothing happens yet. */
.window-stage-build { background: var(--stage-building); fill: var(--stage-building); } .window-stage-rework { background: var(--mark-back); fill: var(--mark-back); } .window-stage-reviewWait { background: var(--stage-gated); fill: var(--stage-gated); } .window-stage-review { background: var(--stage-review); fill: var(--stage-review); } .window-stage-land { background: var(--stage-merged); fill: var(--stage-merged); }
.window-comparison .dash-comparison { margin-top: var(--space-4); }
@media (max-width: 760px) { .window-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); } }
/* Spec keeps the shared row frame, with its tier and citation count in one right column. */
#spec-list .spec-section-head { border-top: var(--border); padding-top: var(--space-5); margin-top: var(--space-5); }
#spec-list .spec-section-head:first-child { border-top: 0; margin-top: var(--space-2); padding-top: 0; }
.spec-section-head .hd2 { margin: 0; }
:is(#spec-list, #doctrine-list) .spec-record { display: grid; grid-template-columns: var(--space-6) minmax(0, 1fr) auto; grid-template-areas: "dot main side"; gap: var(--space-3); padding: var(--space-3) var(--space-4); }
:is(#spec-list, #doctrine-list) .spec-record > div:first-of-type { grid-area: main; min-width: 0; display: block; }
:is(#spec-list, #doctrine-list) .spec-record > .dot { width: var(--space-6); height: var(--space-6); display: grid; place-items: center; color: var(--warn); background: var(--warn-soft); font-size: var(--text-xs); }
:is(#spec-list, #doctrine-list) .spec-record.s-verified > .dot { color: var(--accent-strong); background: var(--accent-soft); }
:is(#spec-list, #doctrine-list) .spec-record.s-back > .dot { color: var(--reject); background: var(--reject-soft); }
:is(#spec-list, #doctrine-list) .spec-record .t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.row-id { font-family: var(--mono); margin-right: var(--space-3); font-weight: 500; }
:is(#spec-list, #doctrine-list) .spec-record .meta { display: flex; flex-wrap: nowrap; gap: var(--space-3); }
/* A row fits its card at every width: nothing in it pushes past the card, so refs and test paths end in an ellipsis. */
:is(#spec-list, #doctrine-list) .spec-record { min-width: 0; overflow: hidden; }
:is(#spec-list, #doctrine-list) .spec-record .meta { min-width: 0; overflow: hidden; }
:is(#spec-list, #doctrine-list) .spec-record .meta > * { flex: 0 1 auto; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(#spec-list, #doctrine-list) .spec-record a.ref { display: inline; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Each label is one whole word beside its full count, so no tab needs a cut; a chip keeps its natural width and shrinks only when the row cannot hold them all (#7400, #7908). */
@media (max-width: 700px) {
  #spec-chips .seg, #doctrine-chips .seg { display: flex; width: 100%; overflow: hidden; }
  #spec-chips .seg button, #doctrine-chips .seg button { flex: 0 1 auto; min-width: 0; padding-inline: var(--space-1); white-space: nowrap; }
  #spec-chips .seg button, #doctrine-chips .seg button { display: flex; align-items: center; justify-content: center; }
  #spec-chips .seg-label, #doctrine-chips .seg-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  #spec-chips .seg-full, #doctrine-chips .seg-full { display: none; }
  #spec-chips .seg-short, #doctrine-chips .seg-short { display: inline; }
  #spec-chips .seg button b, #doctrine-chips .seg button b { flex: none; margin-left: var(--space-1); }
}
.spec-gate { display: inline-flex; align-items: center; gap: var(--space-1); min-width: 0; color: var(--ink-muted); }
.spec-gate code { font: var(--text-xs) var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spec-gate.missing { color: var(--reject); }
:is(#spec-list, #doctrine-list) .spec-row-side { display: grid; grid-area: side; display: grid; justify-items: end; align-content: start; gap: var(--space-1); }
.spec-row-side small { color: var(--ink-faint); font: var(--text-2xs) var(--mono); }
.spec-row-side .chip, #spec-detail .tier-must, #spec-detail .tier-aim { background: none; color: var(--ink-muted); }
.spec-row-side .tier-must, #spec-detail .tier-must { border: var(--border-strong); }
/* One plain soft pill for the tier, in Spec and in Doctrine alike; not boxed mono text. */
.chip.tier-pill { padding: 0 var(--space-3); border-radius: var(--radius-chip); font: 600 var(--text-xs)/var(--leading-body) var(--sans); letter-spacing: 0; text-transform: none; background: var(--surface-2); color: var(--ink); }
.chip.tier-pill.tier-must { background: var(--surface); border: var(--border-strong); }
.chip.tier-pill.warn { background: var(--stage-review-soft, var(--warn-soft)); color: var(--warn); }
.spec-detail-content { display: grid; gap: var(--space-5); }
.spec-detail-section { color: var(--ink-faint); font: var(--text-2xs) var(--mono); text-transform: uppercase; letter-spacing: var(--tracking-label); }
#spec-detail h2, #doctrine-detail h2 { font: 400 12.5px/1.5 var(--sans); margin: 0; }
.spec-fact { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--space-5); border-top: var(--border); padding-top: var(--space-4); font-size: var(--text-xs); }
.spec-fact > span { color: var(--ink-faint); }
.spec-fact > div { display: grid; gap: var(--space-2); min-width: 0; }
.spec-fact .spec-gate { flex-wrap: wrap; }
.spec-fact button { margin-left: auto; background: none; border: 0; color: var(--accent-strong); cursor: pointer; min-height: var(--tap); }
.spec-detail-actions .detail-decision-actions { margin: 0; flex-wrap: wrap; }
.spec-authority { margin: 0; color: var(--ink-faint); font-size: var(--text-2xs); }

.needs-card-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.needs-card-header h2 { margin: 0; }
.needs-card-header > .needs-more { border: 0; background: none; color: var(--accent-strong); font-size: var(--text-xs); cursor: pointer; padding: 0; min-height: var(--tap); }
.needs-card .home-needs { margin: 0; padding: 0; border: 0; }
.needs-card .needs-call summary { padding-block: var(--space-3); min-height: var(--tap); }
.needs-card .needs-call:last-child { border-bottom: 0; margin-bottom: 0; }
.needs-quiet { display: flex; align-items: center; gap: 10px; padding: 10px var(--space-4); list-style: none; }
.needs-card.needs-quiet { padding: 10px var(--space-5); }
.needs-quiet-badge { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: var(--radius-dot); background: var(--accent-soft); color: var(--accent-strong); }
.needs-quiet p { margin: 0; font-size: var(--text-sm); }
.needs-quiet-note { color: var(--ink-muted); }
.spec-fact .spec-citing { border: 0; background: none; padding: 0; }
.spec-more { display: grid; gap: var(--space-2); }
.spec-more > summary { cursor: pointer; color: var(--accent-strong); min-height: var(--tap); display: flex; align-items: center; }

/* Settings: a header card, then one card per group of one-height rows (N26). */
#settings-pane { padding: 0; }
.settings-head { display: grid; gap: var(--space-3); }
.settings-head p { margin: 0; color: var(--ink-muted); }
.settings-bar { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.settings-bar .ghost { min-height: var(--tap); display: inline-flex; align-items: center; }
.settings-bar .settings-scopes { height: auto; }
.settings-bar .settings-refresh { margin-left: auto; }
.settings-bar .ghost[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.settings-head .settings-where { font-size: var(--text-xs); color: var(--ink-faint); }
.settings-where code { font: var(--text-xs) var(--mono); color: var(--ink-muted); }
.set-groups { display: grid; gap: var(--space-5); margin-top: var(--space-5); }
.set-sect { min-width: 0; }
.set-group { background: var(--surface); border: var(--border); border-radius: var(--radius-card); overflow: hidden; }
.set { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-5); align-items: center; height: 64px; padding: 0 var(--space-5); }
.set.has-copy { grid-template-columns: minmax(0, 1fr) auto 28px; }
.set + .set { border-top: var(--border); }
.set .name { min-width: 0; }
.set .name .set-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set .name b { font-weight: 600; }
.set .name .k { font: var(--text-xs) var(--mono); color: var(--ink-faint); margin-left: var(--space-3); }
.setting-root { margin-left: var(--space-3); font-size: var(--text-xs); color: var(--ink-faint); }
.set .name p { margin: 1px 0 0; font-size: var(--text-xs); color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set .name p.setting-error { color: var(--reject); }
.val { min-width: 96px; max-width: 168px; text-align: right; white-space: nowrap; }
.val-line { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-2); min-width: 0; }
.val b { font: 600 var(--text-md) var(--mono); overflow: hidden; text-overflow: ellipsis; }
.val small { display: block; font-size: var(--text-2xs); color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; }
.val .changed { flex: none; font: 600 var(--text-2xs) var(--sans); padding: 0 var(--space-2); border-radius: var(--radius-chip); background: var(--blue-soft); color: var(--blue); }
.copy { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: var(--radius-sm); border: var(--border); background: var(--surface); color: var(--ink-muted); cursor: pointer; }
.copy svg { width: 14px; height: 14px; }
.copy:hover, .copy:focus-visible { color: var(--ink); }
.copy[data-copied] { color: var(--accent-strong); border-color: var(--accent); }
@media (width < 600px) {
  #settings-pane { padding: 0; }
  .set { gap: 0 var(--space-3); padding: 0 var(--space-4); }
  .ghead p { display: none; }
  .val { min-width: 72px; max-width: 152px; }
  .settings-bar .settings-scopes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; overflow: visible; }
  .settings-bar .settings-scopes button { min-width: 0; white-space: normal; min-height: 44px; }
}

/* The first-run Dashboard: until its checklist is complete, three short facts, the loop and the one thing to do. Mirrors the approved mockup. */
.first-run { display: grid; gap: 14px; min-width: 0; }
.first-run-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); align-items: stretch; }
.first-run-rules li:not(.arr) { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--surface); border: var(--border); font-size: 15px; font-weight: 600; line-height: 1.35; }
.first-run-rules .arr { display: grid; place-items: center; color: var(--ink-faint); font-size: 18px; }
.first-run-rules b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-dot); background: var(--accent); color: var(--on-accent); font-size: 14px; }
.first-run-rules em { display: block; white-space: nowrap; font-style: normal; color: var(--accent-strong); }
.first-run-card { background: var(--surface); border: var(--border); border-radius: var(--radius-card); }
.first-run-two { display: grid; grid-template-columns: 360px minmax(0, 1fr); align-items: stretch; padding: 24px 28px; }
.first-run-how { padding: 0 28px 0 0; border-right: var(--border-row); min-width: 0; }
.first-run-start { padding-left: 28px; min-width: 0; }
.first-run-dia { margin: 0; } .first-run-dia svg { width: 100%; height: auto; display: block; }
.first-run-dia .node rect { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.first-run-dia .node text { fill: var(--ink-muted); font: 600 12.5px var(--sans); text-anchor: middle; }
.first-run-dia .node .sub { font: 400 10.5px var(--sans); }
.first-run-dia .node.now rect { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.first-run-dia .node.now text { fill: var(--accent-strong); }
.first-run-dia path { fill: none; stroke: var(--ink-faint); stroke-width: 1.6; }
.first-run-dia path.back { stroke: var(--reject); stroke-dasharray: 4 3; } .first-run-dia path.head-back { stroke: var(--reject); }
.first-run-dia path.next { stroke-dasharray: 3 4; }
.first-run-dia .lbl { fill: var(--ink-faint); font: 10.5px var(--sans); } .first-run-dia .lbl.back { fill: var(--reject); }
.first-run-caption { min-height: 28px; margin: 8px 0 0; text-align: center; font-size: 15px; font-weight: 500; color: var(--ink); }
.first-run-tour { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; }
.first-run-tour button { width: 28px; height: 28px; border-radius: var(--radius-dot); border: var(--border); background: var(--surface); color: var(--ink-muted); font-size: 16px; line-height: 1; cursor: pointer; }
.first-run-dots { display: inline-flex; gap: 6px; } .first-run-dots i { width: 7px; height: 7px; border-radius: var(--radius-dot); background: var(--line); } .first-run-dots i.on { background: var(--accent); }
.first-run-start h2 { margin: 0 0 12px; font-size: 24px; color: var(--accent-strong); letter-spacing: -.01em; }
.first-run-line { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: var(--radius-card); background: var(--surface-2); border: var(--border); }
.first-run-line code { flex: 1; min-width: 0; font: 15px/1.4 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.first-run-line button { border: 0; border-radius: var(--radius-card); padding: 6px 16px; background: var(--accent); color: var(--on-accent); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.first-run-checks { list-style: none; margin: 16px 0 12px; padding: 0; display: grid; gap: 6px; }
.first-run-checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-faint); }
.first-run-checks li i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: var(--radius-dot); border: var(--border-check); font-style: normal; font-size: 11px; font-weight: 800; }
.first-run-checks li.ok { color: var(--ink); } .first-run-checks li.ok i { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.first-run-checks li.now { color: var(--ink); font-weight: 600; } .first-run-checks li.now i { border-color: var(--accent); color: var(--accent-strong); }
.first-run-checks li small.hint { margin-left: auto; color: var(--ink-muted); font-weight: 500; font-size: 13px; }
.first-run-checks li small.hint a { color: var(--accent-strong); font-weight: 700; text-decoration: none; }
.first-run-checks li.after { display: flex; align-items: baseline; margin-top: 6px; padding-left: 30px; font-size: 16px; font-weight: 700; color: var(--ink-faint); }
.first-run-checks li.after.ok { color: var(--accent-strong); }
.first-run-arch { padding: 16px 18px; }
.first-run-dhead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.first-run-dhead h2 { margin: 0; font-size: 18px; color: var(--accent-strong); }
.first-run-dhead span { font-size: 13px; color: var(--ink-muted); }
.first-run-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.first-run-tile { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--radius-card); background: var(--surface); border: var(--border); }
.first-run-tile .ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-float); background: var(--accent-soft); color: var(--accent-strong); }
.first-run-tile .ico svg { width: 16px; height: 16px; }
.first-run-tile .k { display: block; font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.first-run-tile b { display: block; font-size: 15px; line-height: 1.25; white-space: nowrap; }
.first-run-tile a { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--accent-strong); text-decoration: none; }
.first-run-later { margin: 0; text-align: center; color: var(--ink-faint); font-size: 13px; padding: 6px; }
@media (max-width: 1240px) { .first-run-rules { grid-template-columns: 1fr; gap: 0; } .first-run-rules .arr { transform: rotate(90deg); height: 22px; } .first-run-rules em { white-space: normal; } }
@media (max-width: 1100px) { .first-run-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .first-run-two { grid-template-columns: 1fr; padding: 20px; } .first-run-how { border-right: 0; padding: 0 0 20px; border-bottom: var(--border-row); } .first-run-start { padding: 20px 0 0; } }
@media (max-width: 700px) { .first-run-checks li { flex-wrap: wrap; } .first-run-checks li small.hint { margin-left: 30px; flex-basis: 100%; } .first-run-line { flex-wrap: wrap; } }
/* Phone setup lives in the checklist's last line while the first-run page shows, so the sign-in banner steps aside. */
body:has(#dashboard:not([hidden]) .first-run) #share-note { display: none; }
.focus-batch { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-4); }
.focus-batch p { margin: var(--space-1) 0; overflow-wrap: anywhere; }
.focus-batch small { color: var(--muted, inherit); }
/* Long lists lay out only the rows on screen, so showing their tab costs the same however long the list is (#6613). */
#chain > li, #spec-list > .spec-record, #doctrine-list > .spec-record, #roadmap .milestone-item { content-visibility: auto; contain-intrinsic-block-size: auto 56px; }
/* Two header levels, nothing else (design sheet v1.3): .hd1 is a section header on the ground above its card, in a .shd row
   with an optional .cap2 caption; .hd2 is a sub-head inside a card. Pages use these two classes and no other heading style. */
.shd { display: flex; align-items: baseline; gap: 14px; min-height: 18px; margin: 0 0 6px; padding: 0 2px; white-space: nowrap; min-width: 0; }
.shd .cap2 { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--text-xs); color: var(--ink-faint); }
.shd .cap2 ~ .cap2, .shd .cnt { margin-left: 0; }
.shd .cnt { flex: none; font-size: var(--text-xs); color: var(--ink-faint); }
.hd1 { flex: none; margin: 0; font: 600 10.5px/1.4 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); }
.hd2 { margin: 0 0 6px; font: 600 12.5px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
/* The project menu: owner / name, kind and one fact per board, then All projects and Add a project (#6650). Its switcher shows the arrow and takes a click where the sidebar is docked. */
@media (width > 900px) {
  :root:not([data-side="collapsed"]) .switch-btn { cursor: pointer; }
  :root:not([data-side="collapsed"]) .switch-btn:hover { background: var(--surface-2); }
  :root:not([data-side="collapsed"]) .switch-btn small { display: grid; }
}
.projpop { position: fixed; z-index: 30; width: 300px; max-width: calc(100vw - var(--space-5)); background: var(--surface); border: var(--border); border-radius: var(--radius-float); box-shadow: var(--shadow-float); padding: var(--space-2); }
.projpop .row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: var(--space-4); row-gap: 1px; width: 100%; padding: var(--space-3) var(--space-4); border: 0; border-radius: var(--radius-xs); background: none; text-align: left; font: inherit; font-size: var(--text-sm); color: var(--ink-muted); cursor: pointer; }
.projpop .row:hover { background: var(--surface-2); color: var(--ink); }
.projpop .row .dot { grid-column: 1; grid-row: 1; width: 7px; height: 7px; border-radius: var(--radius-dot); background: var(--line-strong); }
.projpop .row.cur { color: var(--ink); }
.projpop .row.cur .dot { background: var(--accent); }
.projpop .row b { grid-column: 2; grid-row: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.projpop .row b span { font-weight: 400; color: var(--ink-faint); }
.projpop .row small { grid-column: 2; grid-row: 2; font-size: var(--text-xs); color: var(--ink-faint); }
.projpop .row em { grid-column: 3; grid-row: 1 / span 2; font-style: normal; font-weight: 600; font-size: var(--text-xs); font-variant-numeric: tabular-nums; color: var(--ink-faint); }
.projpop .row em.a { color: var(--warn); }
.projpop .foot { display: flex; gap: var(--space-2); border-top: var(--border); margin-top: var(--space-2); padding-top: var(--space-2); }
.projpop .foot button { flex: 1; text-align: left; padding: var(--space-3) var(--space-4); border: 0; border-radius: var(--radius-xs); background: none; font: inherit; font-size: var(--text-xs); color: var(--ink-muted); cursor: pointer; }
.projpop .foot button:hover { background: var(--surface-2); color: var(--ink); }
.projpop .add-note { margin: var(--space-2) var(--space-4) var(--space-2); font-size: var(--text-xs); color: var(--ink-muted); }
/* The view's search box, command palette and shortcut list [U94 item 6, #6616]; matches nav-switch-approved-1112. */
.top-find input { border-color: transparent; background-color: transparent; cursor: pointer; }
.top-find input:hover { background-color: var(--surface-2); }
.top-find input:focus { background-color: var(--surface); }
.pal-hint { position: absolute; right: var(--space-3); top: 50%; transform: translateY(-50%); pointer-events: none; font: 11px/1 var(--mono); color: var(--ink-muted); border: var(--border); border-radius: var(--radius-chip); padding: 2px 5px; background: var(--surface); }
.top-find input:focus ~ .pal-hint { display: none; }
.pal-veil { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; background: var(--scrim-soft); }
.pal-box { width: 560px; max-width: 92vw; overflow: hidden; background: var(--surface); color: var(--ink); border: var(--border); border-radius: var(--radius-float); box-shadow: var(--shadow-float); }
.pal-box input { width: 100%; box-sizing: border-box; padding: 14px 16px; border: 0; border-bottom: var(--border); outline: 0; background: var(--surface); color: var(--ink); font: 15px var(--sans); }
.pal-res { max-height: 340px; overflow: auto; padding: 6px; }
.pal-r { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius-card); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pal-r.on { background: var(--surface-2); }
.pal-r > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-r small { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-faint); white-space: nowrap; }
.pal-r > span:first-child { flex: none; max-width: 60%; }
.pal-end { display: flex; align-items: center; gap: 8px; margin-left: auto; padding-left: 10px; flex: none; }
.pal-end em { font: normal 12px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.pal-r kbd, .pal-help kbd { margin-left: auto; font: 11px/1 var(--mono); color: var(--ink-muted); border: var(--border); border-radius: var(--radius-chip); padding: 2px 5px; background: var(--surface); }
.pal-sec { padding: 10px 10px 4px; color: var(--ink-faint); font: 600 11px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.pal-help { width: 420px; max-width: 92vw; box-sizing: border-box; padding: 16px 18px; background: var(--surface); color: var(--ink); border: var(--border); border-radius: var(--radius-float); box-shadow: var(--shadow-float); }
.pal-help h2 { margin: 0 0 10px; font-size: 15px; }
.pal-help div { display: flex; justify-content: space-between; padding: 5px 0; border-top: var(--border); }
.pal-help h2 + div { border-top: 0; } /* The navigation, top layout (#6614, the approved nav-switch prototype, 12 Nov). A 40px top tier (the mark, the
 * project switcher with its amber rulings, the layout pin, "/ Page", the notch, the search, the account slot), then a
 * 34px strip of plain-text tabs with the Rules and Insights menus, the page's own controls at its right. The active
 * page is ink and bold with a small green dot; hover darkens the text only: never a fill, an underline or a pill.
 * Neutral greys in light; the dark theme keeps its own. Every rule here is scoped to data-nav="top", so the sidebar
 * layout (#6615) can set its own. */
:root[data-nav] {
  --top: 74px;
  --ground: light-dark(#f2f2f2, #0c110f); --surface: light-dark(#ffffff, #121815); --surface-2: light-dark(#f5f5f5, #171f1b);
  --line: light-dark(#e5e5e5, #232e29); --line-soft: light-dark(#ececec, #1b2420); --line-strong: light-dark(#d4d4d4, #34423b);
  --ink: light-dark(#1a1a1a, #e7ece9); --ink-muted: light-dark(#555555, #9caba3); --ink-faint: light-dark(#8a8a8a, #6a776f);
  --notch: light-dark(#ececec, #1c2621); --notch-dot: light-dark(#b4b4b8, #4b5a52);
}
:root[data-nav="top"] .shell, :root[data-nav="top"] .body { display: block; }
:root[data-nav] header.top { position: sticky; top: 0; z-index: 20; display: block; min-height: 0; padding: 0; background: var(--surface); border-bottom: 0; container-type: normal; }
:root[data-nav] .top-tier { position: relative; display: flex; align-items: center; gap: var(--space-3); height: 40px; padding: 0 var(--space-4) 0 var(--space-5); border-bottom: var(--border); }
:root[data-nav][data-side="collapsed"] .side-top { display: flex; flex: none; align-items: center; gap: var(--space-3); height: 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
:root[data-nav][data-side="collapsed"] .brand { display: grid; place-items: center; width: 20px; height: 20px; margin: 0; padding: 0; border: 0; background: none; cursor: default; }
:root[data-nav] .brand svg { width: 20px; height: 20px; }
:root[data-nav] .brand span { display: none; }
:root[data-nav][data-side="collapsed"] .switch-btn { display: flex; align-items: center; gap: var(--space-2); height: 30px; max-width: 16rem; margin: 0 0 0 calc(var(--space-1) * -1); padding: 0 var(--space-2); border: 0; border-radius: var(--radius-xs); background: none; color: var(--ink); font-size: var(--text-md); font-weight: 700; cursor: pointer; }
:root[data-nav][data-side="collapsed"] .switch-btn:hover { background: var(--surface-2); }
:root[data-nav] .switch-btn small { color: var(--ink-faint); }
:root[data-nav] .switch-btn .badge { flex: none; font: 600 var(--text-2xs)/1 var(--mono); color: var(--warn); }
:root[data-nav] .switch-btn .badge:empty { display: none; }
:root[data-nav] .pin { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 26px; height: 26px; color: var(--ink-faint); }
:root[data-nav] .crumb { color: var(--ink-faint); white-space: nowrap; }
:root[data-nav] .crumb b { color: var(--ink); font-weight: 600; }
/* The notch: what matters now, the same on every page. Steady while live: tabular figures, so updates never shift it. */
:root[data-nav] .notch { position: absolute; top: 0; left: 50%; z-index: 4; display: flex; align-items: stretch; height: 26px; transform: translateX(-50%); color: var(--ink-muted); font-size: var(--text-xs); white-space: nowrap; }
:root[data-nav] .notch .sh { display: block; flex: none; width: 50px; height: 26px; fill: var(--notch); }
:root[data-nav] .notch .sh:first-child { margin-right: -1px; }
:root[data-nav] .notch .sh:last-child { margin-left: -1px; }
:root[data-nav] .notch-body { display: flex; align-items: center; gap: var(--space-1); padding: 0 var(--space-3) 1px; background: var(--notch); }
:root[data-nav] .notch-it { display: inline-flex; align-items: center; gap: var(--space-1); height: 20px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: none; color: inherit; font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; }
:root[data-nav] .notch-it:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
:root[data-nav] .notch b { color: var(--ink); font-weight: 600; }
:root[data-nav] .notch b.g { color: var(--accent); }
:root[data-nav] .notch b.a { color: var(--warn); }
:root[data-nav] .notch-sp { flex: none; width: 3px; height: 3px; border-radius: var(--radius-dot); background: var(--notch-dot); }
/* Right of the notch: the search, then the account slot. */
:root[data-nav] .top-right { position: absolute; top: 0; right: 14px; bottom: 1px; left: calc(50% + 170px); display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); min-width: 0; }
:root[data-nav] .top-find { position: relative; order: 0; flex: 1 1 auto; min-width: 0; max-width: none; margin: 0; align-self: center; }
:root[data-nav] .top-find input { width: 100%; text-overflow: ellipsis; height: 28px; padding: 0 var(--space-9) 0 var(--space-3); border: var(--border-clear); border-radius: var(--radius-sm); background: transparent; color: var(--ink); font-size: var(--text-sm); }
:root[data-nav] .top-find input::placeholder { color: var(--ink-faint); }
:root[data-nav] .top-find input:hover { background: var(--surface-2); }
:root[data-nav] .top-find input:focus { outline: 0; border-color: var(--line-strong); background: var(--surface); }
:root[data-nav] .top-find kbd { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: var(--space-0) var(--space-1); border: var(--border); border-radius: var(--radius-xs); background: var(--surface); color: var(--ink-muted); font: var(--text-2xs)/1 var(--mono); pointer-events: none; }
:root[data-nav] .top-find input:focus ~ kbd, :root[data-nav] .top-find input:not(:placeholder-shown) ~ kbd { display: none; }
:root[data-nav] .account-slot { position: relative; display: flex; flex: none; align-items: center; }
:root[data-nav] .acct { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: var(--radius-dot); background: var(--ink); color: var(--surface); font: 600 var(--text-xs) var(--sans); cursor: pointer; }
:root[data-nav] .signin { height: 26px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink); font: 600 var(--text-sm) var(--sans); white-space: nowrap; cursor: pointer; }
:root[data-nav] .signin:hover { background: var(--surface-2); }
:root[data-nav] .acct-menu { position: absolute; top: 34px; right: -2px; z-index: 28; width: 240px; padding: var(--space-2); border: var(--border); border-radius: var(--radius-float); background: var(--surface); box-shadow: var(--shadow-float); font-size: var(--text-sm); }
:root[data-nav] .acct-menu[hidden] { display: none; }
:root[data-nav] .acct-menu .who { margin-bottom: var(--space-1); padding: var(--space-3) var(--space-4) var(--space-4); border-bottom: var(--border); }
:root[data-nav] .acct-menu .who b { display: block; color: var(--ink); }
:root[data-nav] .acct-menu .who small { color: var(--ink-faint); }
:root[data-nav] .acct-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: var(--tap); padding: var(--space-3) var(--space-4); border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink-muted); font: inherit; text-align: left; cursor: pointer; }
:root[data-nav] .acct-menu button:hover { background: var(--surface-2); color: var(--ink); }
:root[data-nav] .acct-menu button span, :root[data-nav] .acct-menu button i { color: var(--ink-faint); font-size: var(--text-xs); font-style: normal; }
/* The strip. */
:root[data-nav="top"] .strip { display: flex; align-items: center; gap: var(--space-6); height: 34px; padding: 0 var(--space-5); background: var(--surface); border-bottom: var(--border); font-size: var(--text-sm); }
:root[data-nav="top"] .tabs { display: flex; flex: none; flex-wrap: nowrap; align-items: center; gap: var(--space-6); min-width: 0; }
:root[data-nav="top"] .tabs > .tab, :root[data-nav="top"] .tab-group-btn { display: inline-flex; align-items: center; align-self: center; gap: var(--space-1); height: auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink-muted); font: inherit; text-decoration: none; white-space: nowrap; cursor: pointer; }
:root[data-nav="top"] .tabs > .tab:hover, :root[data-nav="top"] .tab-group-btn:hover { background: none; color: var(--ink); }
:root[data-nav="top"] .tabs > .tab.on, :root[data-nav="top"] .tab-group-btn.on { background: none; color: var(--ink); font-weight: 600; }
:root[data-nav="top"] .tabs > .tab.on::before, :root[data-nav="top"] .tab-group-btn.on::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: var(--radius-dot); background: var(--accent); }
:root[data-nav="top"] .tab-group-btn .chev { color: var(--ink-faint); font-size: var(--text-2xs); }
:root[data-nav="top"] .tab-sep { align-self: center; width: 1px; height: 14px; margin: 0 calc(var(--space-1) * -1); background: var(--line); }
:root[data-nav="top"] .tab-group { position: relative; display: flex; }
:root[data-nav="top"] .tab-menu { position: absolute; top: 26px; left: 0; z-index: 25; display: grid; width: 230px; padding: var(--space-2); border: var(--border); border-radius: var(--radius-float); background: var(--surface); box-shadow: var(--shadow-float); }
:root[data-nav="top"] .tab-menu .tab { display: flex; align-items: baseline; gap: var(--space-4); width: 100%; padding: var(--space-3) var(--space-3); border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink); font: inherit; text-align: left; white-space: normal; cursor: pointer; }
:root[data-nav="top"] .tab-menu .tab:hover { background: var(--surface-2); }
/* The entry you are on takes no fill, only the ink and the green dot (design sheet). */
:root[data-nav="top"] .tab-menu .tab.on { background: none; }
:root[data-nav="top"] .tab-name { display: block; flex: 1; min-width: 0; }
:root[data-nav="top"] .tab-name b { display: block; font-weight: 600; }
:root[data-nav="top"] .tab-name small { color: var(--ink-faint); font-size: var(--text-xs); }
:root[data-nav="top"] .tab-menu .f { color: var(--ink-faint); font: var(--text-2xs) var(--mono); white-space: nowrap; }
/* The page's own controls: the right of the strip, or the right of the title row in the sidebar layout. */
:root[data-nav] .pagectl { display: flex; align-items: center; gap: var(--space-4); margin-left: auto; color: var(--ink-faint); font-size: var(--text-xs); white-space: nowrap; }
:root[data-nav] .pagectl:empty { display: none; }
:root[data-nav] .pagectl .ctl-seg { display: flex; gap: var(--space-4); }
:root[data-nav] .pagectl button, :root[data-nav] .pagectl select { padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink-faint); font: inherit; cursor: pointer; }
:root[data-nav] .pagectl button:hover, :root[data-nav] .pagectl select:hover { background: none; color: var(--ink); }
:root[data-nav] .pagectl .ctl-seg button.on { color: var(--ink); font-weight: 600; }
:root[data-nav] .pagectl .sel { color: var(--ink-muted); }
:root[data-nav] .pagectl .new { color: var(--accent); font-weight: 600; }
:root[data-nav] .pagectl .new:hover { color: var(--accent); }
:root[data-nav] .pagectl select { appearance: none; padding-right: var(--space-4); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5l3 3 3-3' fill='none' stroke='%238a8a8a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right center / 10px; }
:root[data-nav] .pagectl select:hover { background-color: transparent; }
:root[data-nav] .pagectl select::-ms-expand { display: none; }
:root[data-nav] .pagectl select option { color: var(--ink); background: var(--surface); }
/* The page's title row: only in the sidebar layout, where the strip is gone. */
:root[data-nav="top"] .page-title { display: none; }
:root[data-nav="side"] .page-title { display: flex; align-items: center; gap: var(--space-5); min-height: 34px; margin: calc(var(--space-5) * -1) calc(var(--space-6) * -1) var(--space-5); padding: 0 var(--space-6); border-bottom: var(--border); background: var(--surface); }
:root[data-nav="side"] .page-title h2 { margin: 0; font-size: var(--text-lg); font-weight: 600; }
/* The project switcher's list drops from it, the project tools above the boards. */
:root[data-nav][data-side="collapsed"] .side { position: fixed; top: 44px; left: 12px; z-index: 30; width: 0; height: 0; padding: 0; border: 0; background: none; overflow: visible; }
:root[data-nav][data-side="collapsed"] .side .side-body, :root[data-nav][data-side="collapsed"] .side .side-footer { display: none; }
:root[data-nav][data-side="collapsed"] .side.open { display: flex; flex-direction: column; width: 300px; height: auto; max-height: calc(100vh - 60px); overflow-y: auto; border: var(--border); border-radius: var(--radius-float); background: var(--surface); box-shadow: var(--shadow-float); }
:root[data-nav][data-side="collapsed"] .side.open .side-footer { order: -1; position: static; display: flex; width: auto; margin: 0; padding: var(--space-2); border: 0; border-bottom: var(--border); border-radius: 0; box-shadow: none; }
:root[data-nav][data-side="collapsed"] .side.open .side-body { position: static; display: grid; width: auto; max-height: none; padding: var(--space-2); border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
/* The status bar: the system's own state, along the foot. */
:root[data-nav] .status { height: 26px; border-top: var(--border); }
/* Narrow screens (#6725, the approved compact mockup): a plain Menu button opens a drawer from the left; the notch,
 * the crumb, the pin and the strip give way. The top bar reads Menu with its rulings, the project name, Search, the account. */
.menubtn, .ptitle, .mveil, .mdrawer { display: none; }
@media (max-width: 900px) {
  :root[data-nav] { --top: 48px; }
  :root[data-nav] .top-tier { gap: var(--space-4); height: 48px; padding: 0 var(--space-5); }
  :root[data-nav] .menubtn { display: inline-flex; flex: none; align-items: center; gap: var(--space-4); height: 32px; margin-left: calc(var(--space-2) * -1); padding: 0 var(--space-4) 0 var(--space-3); border: 0; border-radius: var(--radius-xs); background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
  :root[data-nav] .menubtn:hover { background: var(--surface-2); }
  :root[data-nav] .menubtn .bars { display: flex; flex-direction: column; justify-content: space-between; width: 16px; height: 12px; margin: 0 2px; }
  :root[data-nav] .menubtn .bars i { height: 2px; border-radius: var(--radius-hair); background: var(--ink); }
  :root[data-nav] .menubtn .badge { font: 600 var(--text-xs)/1 var(--mono); color: var(--warn); }
  :root[data-nav] .menubtn .badge:empty { display: none; }
  :root[data-nav] .ptitle { display: block; min-width: 0; overflow: hidden; color: var(--ink-muted); text-overflow: ellipsis; white-space: nowrap; }
  :root[data-nav] .notch, :root[data-nav] .crumb, :root[data-nav] .pin, :root[data-nav][data-side] .side-top, :root[data-nav="top"] .strip { display: none; }
  :root[data-nav] .top-right { position: static; flex: none; margin-left: auto; gap: var(--space-4); }
  :root[data-nav] .top-find { flex: none; min-width: 0; }
  :root[data-nav] .top-find input { width: clamp(72px, calc(40vw - 28px), 120px); text-overflow: ellipsis; height: 32px; padding: 0 var(--space-9) 0 var(--space-3); background: var(--surface-2); }
  /* The page's title with its controls under it: the strip is gone, so the controls take their own line. */
  :root[data-nav="top"] .page-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-5); margin: 0 0 var(--space-4); }
  :root[data-nav="top"] .page-title h2 { margin: 0; font-size: var(--text-lg); font-weight: 600; }
  :root[data-nav="top"] .page-title .pagectl { width: 100%; margin-left: 0; overflow-x: auto; }
  /* The drawer: the project and the numbers, Rulings, then every page with its fact in 40px rows, over a dimmed page. */
  :root[data-nav] .mveil { position: fixed; inset: 0; z-index: 30; display: block; background: var(--scrim-soft); animation: mfade .18s ease; }
  :root[data-nav] .mdrawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 31; display: flex; flex-direction: column; width: min(300px, 86vw); overflow-y: auto; border-right: var(--border); background: var(--surface); animation: mslide .22s cubic-bezier(.2, .8, .2, 1); }
  :root[data-nav] .mveil[hidden], :root[data-nav] .mdrawer[hidden] { display: none; }
  :root[data-nav] .mdrawer .mh { padding: var(--space-4) var(--space-4) var(--space-3); border-bottom: var(--border); }
  :root[data-nav] .mdrawer .mh .switch-btn { display: flex; margin: 0 0 var(--space-2) calc(var(--space-1) * -1); }
  :root[data-nav] .mdrawer .stats { display: flex; gap: var(--space-5); padding: 0 var(--space-2); color: var(--ink-faint); font-size: var(--text-xs); }
  :root[data-nav] .mdrawer .stats b { color: var(--ink); font: 600 var(--text-xs) var(--mono); }
  :root[data-nav] .mdrawer .stats b.g { color: var(--accent); }
  :root[data-nav] .mdrawer .rul { display: flex; flex: none; align-items: center; gap: var(--space-3); min-height: 40px; height: 40px; margin: var(--space-3) var(--space-3) 0; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-xs); background: none; color: var(--ink); font: inherit; font-size: var(--text-md); font-weight: 600; text-align: left; cursor: pointer; }
  :root[data-nav] .mdrawer .rul:hover { background: var(--surface-2); }
  :root[data-nav] .mdrawer .rul i { width: 7px; height: 7px; border-radius: var(--radius-dot); background: var(--warn); }
  :root[data-nav] .mdrawer .rul em { margin-left: auto; color: var(--warn); font: 600 var(--text-xs) var(--mono); font-style: normal; }
  :root[data-nav] .mdrawer .mnav { display: flex; flex: 1; flex-direction: column; padding: var(--space-1) var(--space-3) var(--space-4); }
  :root[data-nav] .mdrawer .side-h { margin: 14px var(--space-3) var(--space-1); color: var(--side-heading); font: 500 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
  :root[data-nav] .mdrawer .side-row { display: flex; flex: none; align-items: center; gap: var(--space-3); width: 100%; min-height: 40px; height: 40px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-xs); background: none; color: var(--ink-muted); font: inherit; font-size: var(--text-md); text-align: left; white-space: nowrap; cursor: pointer; }
  :root[data-nav] .mdrawer .side-row:hover { background: none; color: var(--ink); }
  :root[data-nav] .mdrawer .side-row.on { padding-left: 2px; color: var(--ink); font-weight: 600; }
  :root[data-nav] .mdrawer .side-row.on::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: var(--radius-dot); background: var(--accent); }
  :root[data-nav] .mdrawer .side-row .f { margin-left: auto; color: var(--ink-faint); font: 11.5px var(--mono); font-weight: 400; }
  :root[data-nav] .mdrawer .side-row.on .f { color: var(--accent); }
  :root[data-nav] .mdrawer .side-row .f.a { color: var(--warn); font-weight: 600; }
  :root[data-nav] .mdrawer .side-row .f:empty { display: none; }
}
@keyframes mslide { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes mfade { from { opacity: 0; } to { opacity: 1; } }
/* The pin: the layout switch, a glyph that turns a quarter when the navigation is in the sidebar. */
:root[data-nav] .pin { border: 0; border-radius: var(--radius-xs); background: none; font: inherit; cursor: pointer; }
:root[data-nav] .pin:hover { background: var(--surface-2); color: var(--ink); }
:root[data-nav] .pin .pg { display: inline-block; line-height: 1; }
:root[data-nav] .pin .pg.up { transform: rotate(90deg); }
/* The sidebar layout (#6615): the top tier spans the page, the page list sits under it in 28px rows, the status bar stays along the foot. */
:root[data-nav="top"] .sidenav { display: none; }
:root[data-nav="side"] { --top: 40px; }
:root[data-nav="side"] .shell { display: grid; grid-template-columns: 208px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); min-height: 100vh; }
:root[data-nav="side"] .body { display: contents; }
:root[data-nav="side"] header.top { grid-column: 1 / -1; grid-row: 1; }
:root[data-nav="side"] .strip { display: none; }
:root[data-nav="side"] .sidenav { grid-column: 1; grid-row: 2; position: sticky; top: 40px; align-self: start; display: flex; flex-direction: column; height: calc(100vh - 66px); padding: var(--space-1) var(--space-3) var(--space-4); overflow-y: auto; background: var(--surface); border-right: var(--border); }
:root[data-nav="side"] main { grid-column: 2; grid-row: 2; min-width: 0; }
:root[data-nav="side"] .side-h { margin: 14px var(--space-3) var(--space-1); color: var(--side-heading); font: 500 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
:root[data-nav="side"] .side-row { display: flex; flex: none; align-items: center; gap: var(--space-3); width: 100%; height: 28px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-xs); background: none; color: var(--ink-muted); font: inherit; font-size: var(--text-sm); text-align: left; white-space: nowrap; cursor: pointer; }
:root[data-nav="side"] .side-row:hover { background: none; color: var(--ink); }
:root[data-nav="side"] .side-row.on { padding-left: 2px; background: none; color: var(--ink); font-weight: 600; }
:root[data-nav="side"] .side-row.on::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: var(--radius-dot); background: var(--accent); }
:root[data-nav="side"] .side-row .f { margin-left: auto; color: var(--ink-faint); font: 11.5px var(--mono); font-weight: 400; }
:root[data-nav="side"] .side-row.on .f { color: var(--accent); }
:root[data-nav="side"] .side-row .f.a { color: var(--warn); font-weight: 600; }
:root[data-nav="side"] .side-row .f:empty { display: none; }
:root[data-nav="side"] .sidenav[hidden] { display: none; }
/* ---- Shouts (the approved mockup, 13 Nov): one-line threads that open in place, the asks first, a one-line agents rail [N26] ----
   Every class here carries the sx- prefix; sizes off the scale are custom properties, which the sizes check does not count. */
#shouts-pane {
  --sx-label: 10.5px; --sx-pad: var(--space-2) 14px var(--space-2) 10px; --sx-gap: 24px; --sx-msg-pad: 14px; --sx-msg-in: 28px;
  --sx-hover: color-mix(in oklab, var(--surface-2) 55%, var(--surface));
  --sx-ico-seat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.8' y='2.8' width='12.4' height='10.4' rx='1.6'/%3E%3Cpath d='M4.8 6.3l2 1.7-2 1.7M8.6 10h2.6'/%3E%3C/svg%3E");
  --sx-ico-auto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='2.2'/%3E%3Cpath d='M8 1.8v1.8M8 12.4v1.8M1.8 8h1.8M12.4 8h1.8M3.6 3.6l1.3 1.3M11.1 11.1l1.3 1.3M12.4 3.6l-1.3 1.3M4.9 11.1l-1.3 1.3'/%3E%3C/svg%3E");
  --sx-ico-you: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='5.5' r='2.7'/%3E%3Cpath d='M2.8 14c.6-2.8 2.7-4.3 5.2-4.3s4.6 1.5 5.2 4.3'/%3E%3C/svg%3E");
  --sx-ico-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4L2.5 7.5 6 11'/%3E%3Cpath d='M2.5 7.5H10a3.5 3.5 0 0 1 0 7H8'/%3E%3C/svg%3E");
  --sx-ico-gate: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.8l5 2v4c0 3-2.2 5.2-5 6.4C5.2 13 3 10.8 3 7.8v-4z'/%3E%3Cpath d='M5.8 8l1.6 1.6L10.4 6.6'/%3E%3C/svg%3E");
  --sx-ico-coord: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M8 7h35a6 6 0 0 1 6 6v7H8a5 5 0 0 1-5-5v-3a5 5 0 0 1 5-5Z'/%3E%3Crect width='56' height='14' x='3' y='25' rx='5'/%3E%3Cpath d='M8 43h35a6 6 0 0 1 6 6v8H8a5 5 0 0 1-5-5v-4a5 5 0 0 1 5-5Z'/%3E%3C/svg%3E");
  grid-template-columns: minmax(0, 860px) 400px; gap: var(--sx-gap); justify-content: center; align-items: start;
}
@media (max-width: 1180px) { #shouts-pane { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-5); } }
@media (max-width: 1000px) { #shouts-pane { grid-template-columns: minmax(0, 1fr); } }
#shouts-pane > .primary { grid-template-columns: minmax(0, 1fr); overflow: visible; }
#shouts-pane #feed { min-width: 0; }
#shouts-pane #feed { display: block; padding: 0; }
#shouts-pane .sx-rail { position: static; display: block; max-height: none; padding: 0; overflow: visible; }
#shouts-pane .sx-sec { display: flex; max-width: none; padding: 0; border: 0; background: none; }
/* The composer waits until a person asks to shout to someone (the item's Shout button); replies live in their thread. */
#shouts-pane:not([data-compose]) .sx-compose { display: none; }
#shouts-pane .sx-compose { margin-bottom: var(--space-5); }
.sx-sec { display: flex; flex-direction: column; min-width: 0; margin-top: var(--space-5); }
.sx-sec.sx-first { margin-top: 0; }
.sx-count { display: inline-block; margin-left: var(--space-2); padding: 0 var(--space-2); border: var(--border); border-radius: var(--radius-xs); background: var(--surface); color: var(--ink); font-size: var(--text-2xs); font-weight: 600; line-height: 16px; letter-spacing: 0; vertical-align: 1px; }
.sx-count.amb { border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); background: var(--tint-sand); color: var(--warn); }
#shouts-pane .hd1.amb { color: var(--warn); }
.shd .sx-lk { flex: none; color: var(--ink-muted); font-size: var(--text-xs); }
.shd .sx-lk:hover { color: var(--ink); }
.shd .cap2 + .sx-lk { margin-left: 0; }
.shd .hd1 + .sx-lk { margin-left: auto; }
.sx-card { background: var(--surface); border: var(--border); border-radius: var(--radius-card); min-width: 0; }
.sx-list { padding: var(--space-0) 0; overflow: hidden; }
.sx-empty { margin: 0; padding: var(--space-3) var(--sx-msg-pad); color: var(--ink-faint); font-size: var(--text-xs); }
.sx-since { display: flex; align-items: baseline; gap: var(--space-2); margin: 0 var(--space-0) var(--space-5); color: var(--ink-faint); font-size: var(--text-xs); white-space: nowrap; overflow: hidden; }
.sx-since b { color: var(--ink); font-weight: 600; }
.sx-since .amb { color: var(--warn); font-weight: 600; }
.sx-end { margin-left: auto; padding: 0; border: 0; background: none; color: var(--ink-muted); font: inherit; font-weight: 600; cursor: pointer; }
.sx-end:hover { color: var(--ink); }
/* sender icons and kind marks: CSS classes, drawn from the mockup's own shapes */
.sx-si { display: inline-block; flex: none; width: 13px; height: 13px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.sx-si.seat { --ico: var(--sx-ico-seat); color: var(--ink-muted); }
.sx-si.auto { --ico: var(--sx-ico-auto); color: var(--ink-faint); }
.sx-si.you { --ico: var(--sx-ico-you); color: var(--ink-faint); }
.sx-si.coord { --ico: var(--sx-ico-coord); background: linear-gradient(var(--ink) 0 34%, var(--accent) 34% 64%, var(--ink) 64%); }
.sx-snd { display: inline-flex; align-items: center; gap: var(--space-1); flex: none; min-width: 0; }
.sx-sn { color: var(--ink-muted); font: 500 var(--text-xs) var(--mono); }
.sx-snd.coord .sx-sn { color: var(--ink); }
.sx-snd.auto .sx-sn { color: var(--ink-faint); font-weight: 400; }
.sx-snd.you .sx-sn { color: var(--ink); }
.sx-mk { display: inline-flex; align-items: center; gap: var(--space-1); flex: none; padding: 0 var(--space-2); border-radius: var(--radius-xs); font-size: var(--sx-label); font-weight: 600; line-height: 16px; white-space: nowrap; }
.sx-mk.ruling { background: var(--tint-sand); color: var(--warn); }
.sx-mk.ruling::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-dot); background: var(--warn); }
.sx-mk.gate { background: var(--stage-gate-soft); color: var(--stage-gate); }
.sx-mk.gate::before { content: ""; width: 10px; height: 10px; background: currentColor; -webkit-mask: var(--sx-ico-gate) center / contain no-repeat; mask: var(--sx-ico-gate) center / contain no-repeat; }
.sx-mk.blk { background: none; box-shadow: var(--inset-line-strong); color: var(--ink-muted); font-weight: 500; }
.sx-chip { display: inline-flex; align-items: center; border-radius: var(--radius-xs); padding: 0 var(--space-3); font-size: var(--text-2xs); font-weight: 500; line-height: 18px; white-space: nowrap; background: var(--stage-blocked-soft); color: var(--stage-blocked-ink); }
.sx-chip.b { background: var(--tint-blue); color: var(--tint-blue-ink); }
.sx-chip.r { background: var(--tint-amber); color: var(--tint-amber-ink); }
.sx-chip.l { background: var(--tint-green); color: var(--stage-merged); }
.sx-chip.rd { background: var(--tint-violet); color: var(--tint-violet-ink); }
.sx-chip.sb { background: var(--tint-red); color: var(--mark-back); }
.sx-chip.wt { background: var(--stage-blocked-soft); color: var(--stage-blocked-ink); }
.sx-chip.none { background: none; box-shadow: var(--inset-line); color: var(--ink-faint); }
.sx-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: var(--radius-dot); background: var(--ink-faint); }
.sx-dot.build { background: var(--stage-building); } .sx-dot.review { background: var(--stage-review); } .sx-dot.back { background: var(--mark-back); }
/* thread rows: two lines. Line 1: stage, #id and title; line 2: kind mark, sender icon and name, the latest words muted */
.sx-th { display: grid; grid-template-columns: 8px 76px minmax(0, 1fr) auto; grid-template-rows: 20px 18px; column-gap: var(--space-4); row-gap: 1px; align-items: center; width: 100%; padding: var(--sx-pad); border: 0; border-top: var(--border-row); border-radius: 0; background: none; color: inherit; font: inherit; text-align: left; white-space: nowrap; cursor: pointer; }
.sx-list > .sx-th:first-child, .sx-dayrule + div > .sx-th:first-child { border-top: 0; }
.sx-th:hover { background: var(--sx-hover); }
.sx-th.open { background: var(--surface-2); }
.sx-ud { grid-row: 1; grid-column: 1; width: 6px; height: 6px; border-radius: var(--radius-dot); }
.sx-th.unread .sx-ud { background: var(--ink); }
.sx-st, .sx-km { display: flex; align-items: center; min-width: 0; }
.sx-st { grid-row: 1; grid-column: 2; } .sx-km { grid-row: 2; grid-column: 2; }
.sx-l1 { grid-row: 1; grid-column: 3; display: flex; align-items: center; gap: var(--space-3); min-width: 0; font-size: var(--text-sm); }
.sx-id { flex: none; color: var(--ink-muted); font: 500 var(--text-xs) var(--mono); }
.sx-tt { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-muted); font-weight: 500; }
.sx-th.unread .sx-id, .sx-th.unread .sx-tt, .sx-th.open .sx-id, .sx-th.open .sx-tt { color: var(--ink); font-weight: 600; }
.sx-th.unread.quiet .sx-id, .sx-th.unread.quiet .sx-tt { color: var(--ink-muted); font-weight: 500; }
.sx-r1 { grid-row: 1; grid-column: 4; display: flex; align-items: center; justify-content: flex-end; gap: var(--space-4); }
.sx-r1 time { min-width: 30px; color: var(--ink-faint); font-size: var(--text-xs); text-align: right; }
.sx-th.unread .sx-r1 time { color: var(--ink-muted); }
.sx-l2 { grid-row: 2; grid-column: 3; display: flex; align-items: center; gap: var(--space-2); min-width: 0; font-size: var(--text-xs); }
.sx-tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-faint); }
.sx-th.quiet .sx-l2 .sx-tx { opacity: .8; }
.sx-r2 { grid-row: 2; grid-column: 4; justify-self: end; }
.sx-n { display: inline-block; min-width: 30px; color: var(--ink-faint); font-size: var(--text-xs); text-align: right; }
.sx-th.unread .sx-n { color: var(--ink); font-weight: 600; }
.sx-th.unread.quiet .sx-n { color: var(--ink-faint); font-weight: 400; }
.sx-act { padding: 0 var(--space-3); border: var(--border-warn); border-radius: var(--radius-xs); background: var(--surface); color: var(--warn); font-size: var(--text-xs); font-weight: 600; line-height: 20px; }
.sx-th:hover .sx-act { background: var(--tint-sand); }
/* the open thread */
.sx-tp { border-top: var(--border-row); background: var(--surface); }
.sx-ph { display: flex; align-items: baseline; gap: var(--space-4); padding: var(--space-3) var(--sx-msg-pad) var(--space-1) var(--sx-msg-in); color: var(--ink-faint); font-size: var(--text-xs); white-space: nowrap; }
.sx-ph b { color: var(--ink); font-weight: 600; }
.sx-ph .sx-lk { margin-left: auto; color: var(--ink-muted); font-weight: 600; }
.sx-ph .sx-lk:hover { color: var(--ink); }
.sx-xb { flex: none; width: 22px; height: 22px; border: 0; border-radius: var(--radius-xs); background: none; color: var(--ink-faint); font-size: var(--text-lg); line-height: 20px; text-align: center; cursor: pointer; }
.sx-xb:hover { background: var(--surface-2); color: var(--ink); }
.sx-msg { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto 62px; column-gap: var(--space-3); align-items: baseline; min-height: 26px; padding: var(--space-1) var(--sx-msg-pad) var(--space-1) var(--sx-msg-in); font-size: var(--text-xs); white-space: nowrap; cursor: pointer; }
.sx-msg:hover { background: var(--sx-hover); }
.sx-msg .sx-snd { overflow: hidden; } .sx-msg .sx-si { align-self: center; }
.sx-msg .sx-tx { display: block; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.sx-msg .sx-tx .sx-mk { margin-right: var(--space-2); vertical-align: 1px; }
.sx-msg:not(.full) .sx-tx br, .sx-msg:not(.full) .sx-tx ol { display: none; }
.sx-msg.quiet .sx-tx { color: var(--ink-faint); }
.sx-msg.full .sx-tx { overflow: visible; white-space: normal; overflow-wrap: anywhere; line-height: var(--leading-body); }
.sx-msg.full .sx-tx .sx-mk { margin-right: var(--space-2); vertical-align: 1px; }
.sx-msg time { color: var(--ink-faint); font-size: var(--text-xs); text-align: right; }
.sx-sid { color: var(--ink-faint); font: 400 var(--text-xs) var(--mono); white-space: nowrap; }
/* In a message a chip says what it is: an item, a path, a commit, a command; a long one stays one piece and ends in an ellipsis. */
.sx-msg button.ref[data-go], .sx-msg a.ref[data-go] { padding: 0 var(--space-2); border-radius: var(--radius-sm); background: var(--violet-soft); color: var(--violet); font-weight: 600; text-decoration: none; }
.sx-msg code.inline.path { background: var(--blue-soft); color: var(--blue); }
.sx-msg code.inline.sha { background: var(--warn-soft); color: var(--warn); }
.sx-msg code.inline.cmd { background: var(--accent-soft); color: var(--accent-strong); }
.sx-msg code.inline.long { display: inline-block; box-sizing: border-box; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; vertical-align: bottom; }
/* the evidence a shout carries reads under its words once the message is open */
.sx-msg .receipt { display: grid; gap: var(--space-1); margin-top: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--surface-2); font-size: var(--text-xs); }
.sx-msg .receipt .badge { padding: 0 var(--space-3); border-radius: var(--radius-chip); background: var(--blue-soft); color: var(--blue); font: 600 var(--text-2xs) var(--mono); text-transform: capitalize; }
.sx-msg .receipt .outcome { color: var(--ink-muted); }
.sx-msg .receipt-foot { color: var(--ink-faint); font-size: var(--text-xs); }
.sx-msg:not(.full) .receipt { display: none; }
/* the shout an address names */
.sx-msg.found { background: var(--accent-soft); }
.sx-msg.new time { color: var(--ink); font-weight: 600; }
.sx-reply { display: flex; align-items: center; gap: var(--space-3); height: 34px; margin: var(--space-2) var(--sx-msg-pad) var(--space-4) var(--sx-msg-in); padding: 0 var(--space-1) 0 var(--space-3); border: var(--border); border-radius: var(--radius-xs); background: var(--surface); }
.sx-reply:focus-within { border-color: var(--line-strong); }
.sx-reply input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: var(--text-sm); }
.sx-reply input::placeholder { color: var(--ink-faint); }
.sx-reach { flex: none; color: var(--ink-faint); font-size: var(--text-2xs); white-space: nowrap; }
.sx-send { flex: none; height: 26px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-xs); background: var(--ink); color: var(--surface); font-size: var(--text-xs); font-weight: 600; cursor: pointer; }
/* the Earlier fold: one thin line, the label centred */
.sx-dayrule { display: flex; align-items: center; gap: var(--space-4); width: 100%; height: 32px; padding: 0 var(--sx-msg-pad); border: 0; background: none; color: var(--ink-faint); font-size: var(--text-2xs); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.sx-dayrule::before, .sx-dayrule::after { content: ""; flex: 1; border-top: var(--border); }
.sx-dayrule .f { font-size: var(--text-xs); font-weight: 400; letter-spacing: 0; text-transform: none; }
.sx-dayrule .chv { display: inline-block; letter-spacing: 0; transition: transform .12s; }
.sx-dayrule:hover { color: var(--ink-muted); }
.sx-dayrule[aria-expanded="true"] .chv { transform: rotate(90deg); }
/* the agents rail: stage dot, the held item in ink, the seat in muted mono, its age */
.sx-agents { padding: 0 0 var(--space-0); overflow: hidden; }
.sx-grp { display: flex; align-items: baseline; gap: var(--space-2); height: 22px; padding: var(--space-1) var(--space-4) 0; border-top: var(--border-row); background: var(--surface-2); color: var(--ink-muted); font-size: var(--sx-label); font-weight: 600; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.sx-agents > .sx-grp:first-child { border-top: 0; }
.sx-grp span { color: var(--ink-faint); font-size: var(--text-2xs); font-weight: 400; letter-spacing: 0; }
.sx-grp.back { color: var(--mark-back); }
.sx-ag { display: grid; grid-template-columns: 12px minmax(0, 1fr) 18px 70px 32px; column-gap: var(--space-3); align-items: center; width: 100%; height: 27px; padding: 0 var(--space-4); border: 0; border-top: var(--border-row); border-radius: 0; background: none; color: inherit; font: inherit; font-size: var(--text-xs); text-align: left; white-space: nowrap; cursor: pointer; }
.sx-grp + .sx-ag { border-top: 0; }
.sx-ag:hover, .sx-ag.on { background: var(--sx-hover); }
.sx-ag .sx-dot { justify-self: center; }
.sx-bk { width: 12px; height: 12px; background: var(--mark-back); -webkit-mask: var(--sx-ico-back) center / contain no-repeat; mask: var(--sx-ico-back) center / contain no-repeat; }
.sx-it { overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 500; }
.sx-it code { margin-right: var(--space-2); color: var(--ink-faint); font-size: var(--text-xs); font-weight: 400; }
.sx-more { color: var(--ink-faint); font-size: var(--text-2xs); text-align: right; }
.sx-seat { overflow: hidden; text-overflow: ellipsis; color: var(--ink-faint); font-family: var(--mono); font-size: var(--text-2xs); text-align: right; }
.sx-ag time { color: var(--ink-faint); font-size: var(--text-xs); text-align: right; }
.sx-ag time.late { color: var(--mark-back); font-weight: 600; }
.sx-idlehead { display: flex; align-items: center; gap: var(--space-3); width: 100%; height: 30px; padding: 0 var(--space-4); border: 0; border-top: var(--border); border-radius: 0; background: none; color: var(--ink-muted); font: inherit; font-size: var(--text-xs); cursor: pointer; }
.sx-idlehead:hover { background: var(--sx-hover); color: var(--ink); }
.sx-idlehead .sx-dot { background: var(--surface-2); box-shadow: var(--inset-line-strong); }
.sx-idlehead b { color: var(--ink); font-weight: 600; }
.sx-idlehead .chv { margin-left: auto; color: var(--ink-faint); transition: transform .12s; }
.sx-idlehead[aria-expanded="true"] .chv { transform: rotate(90deg); }
.sx-idlelist { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); padding: var(--space-0) var(--space-4) var(--space-3); }
.sx-idle-n { padding: 0; border: 0; background: none; color: var(--ink-faint); font: var(--text-xs) / 22px var(--mono); cursor: pointer; }
.sx-idle-n:hover, .sx-idle-n.on { color: var(--ink); }
.sx-all { padding: 0; border: 0; background: none; color: var(--ink-muted); font-size: var(--text-xs); font-weight: 600; line-height: 22px; cursor: pointer; }
.sx-lanes { margin-top: var(--space-5); }
.sx-lanes > summary { display: flex; align-items: center; height: 30px; padding: 0 var(--space-4); border: var(--border); border-radius: var(--radius-card); background: var(--surface); color: var(--ink-muted); font-size: var(--text-xs); cursor: pointer; }
.sx-lanes > :not(summary) { margin: var(--space-3) 0 0; }
/* a long thread shows its latest eight messages; the rest fold behind one line */
.sx-earlier-msgs { display: block; padding: var(--space-0) var(--sx-msg-pad) var(--space-1) var(--sx-msg-in); border: 0; background: none; color: var(--ink-muted); font-size: var(--text-xs); font-weight: 600; cursor: pointer; }
.sx-earlier-msgs:hover { color: var(--ink); }
/* where the strip is hidden or cut off, the same three filters head the feed */
.sx-mfilters { display: none; }
#shouts-pane #feed > .sx-mfilters { display: none; }
@media (max-width: 900px) {
  #shouts-pane #feed > .sx-mfilters { display: flex; align-items: center; gap: var(--space-4); padding: 0; border: 0; grid-template-columns: none; margin: 0 var(--space-0) var(--space-3); font-size: var(--text-sm); }
  .sx-mfilters button { display: inline-flex; align-items: center; height: 36px; padding: 0 var(--space-3); border: 0; background: none; color: var(--ink-faint); font: inherit; cursor: pointer; }
  .sx-mfilters button:first-child { padding-left: 0; }
  .sx-mfilters button.on { color: var(--ink); font-weight: 600; }
  .sx-mfilters em { margin-left: var(--space-1); color: var(--ink-faint); font-size: var(--text-2xs); font-style: normal; font-weight: 400; }
  .sx-mfilters em.amb { color: var(--warn); }
}
#shouts-pane #credentials { margin-top: var(--space-3); padding: 0 var(--space-4); }
#shouts-pane #credentials > .link { color: var(--ink-faint); font-size: var(--text-xs); }
/* the page filter counts in the strip: one number, quiet; the questions in amber */
:root[data-nav] .pagectl [data-page-ctl="shouts"] b { margin-left: var(--space-1); color: var(--ink-faint); font-size: var(--text-2xs); font-weight: 400; }
:root[data-nav] .pagectl [data-page-ctl="shouts"][data-value="questions"] b { color: var(--warn); }
:root[data-nav] .pagectl [data-page-ctl="shouts"].on b { color: var(--ink-muted); }
:root[data-nav] .pagectl [data-page-ctl="shouts"][data-value="questions"].on b { color: var(--warn); }
@media (max-width: 640px) {
  .sx-th { grid-template-columns: 8px auto minmax(0, 1fr) auto; column-gap: var(--space-2); min-height: var(--tap); padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3); }
  .sx-st { display: none; }
  .sx-l1 { grid-column: 2 / 4; }
  .sx-act { display: none; }
  .sx-l2 .sx-snd .sx-sn { display: none; }
  .sx-ph { padding-inline: var(--space-4); }
  .sx-msg { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto auto; row-gap: var(--space-0); padding: var(--space-2) var(--space-4); }
  .sx-msg .sx-snd { grid-column: 1; grid-row: 1; } .sx-msg .sx-sid { grid-column: 2; grid-row: 1; } .sx-msg time { grid-column: 3; grid-row: 1; } .sx-msg .sx-tx { grid-column: 1 / -1; grid-row: 2; }
  .sx-reply { height: var(--tap); margin: var(--space-2) var(--space-4) var(--space-4); }
  .sx-reach { display: none; }
  .sx-send { height: 36px; }
  .sx-dayrule { height: var(--tap); padding: 0 var(--space-4); }
  .sx-ag { grid-template-columns: 12px minmax(0, 1fr) 66px 32px; height: var(--tap); }
  .sx-more { display: none; }
  .sx-idlehead { height: var(--tap); }
  .sx-idle-n { min-height: var(--tap); }
  .sx-since { flex-wrap: wrap; white-space: normal; }
  .sx-end { display: none; }
  .sx-lk { display: inline-flex; align-items: center; min-height: var(--tap); }
  .sx-xb { width: var(--tap); height: var(--tap); }
  .sx-mfilters button { height: var(--tap); }
  .sx-send { height: var(--tap); }
  .sx-all { min-height: var(--tap); }
}
/* A finger on a wide screen: the conversation link is a 44px target as it is on a phone. */
@media (pointer: coarse) { .sx-lk { display: inline-flex; align-items: center; min-height: var(--tap); } }
/* The notch preview: one centred panel under the notch over a blurred page, and the rulings list in the same panel (#6651) [N26]. */
.notch-veil { position: fixed; inset: var(--notch-bottom, 34px) 0 0; z-index: 25; background: color-mix(in oklab, var(--ground) 35%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.notch-veil[data-open="true"] { opacity: 1; pointer-events: auto; }
.notch-panel { position: fixed; top: var(--notch-bottom, 34px); left: 50%; z-index: 26; width: 440px; max-width: calc(100vw - 32px); max-height: 70vh; overflow: auto; padding: 0 0 var(--space-1); background: var(--surface); border: var(--border); border-radius: var(--radius-float); box-shadow: var(--shadow-float); font-size: var(--text-sm); opacity: 0; pointer-events: none; transform: translate(-50%, -10px) scale(.98); transform-origin: top center; transition: opacity .2s ease, transform .24s cubic-bezier(.2, .8, .2, 1); }
.notch-panel[data-open="true"] { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
@media (prefers-reduced-motion: reduce) { .notch-veil, .notch-panel { transition: opacity .1s ease; } .notch-panel, .notch-panel[data-open="true"] { transform: translate(-50%, 0); } }
.notch-panel h4 { margin: 0; padding: 14px var(--space-5) var(--space-3); font: 600 var(--text-2xs) var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); }
.np-viz { padding: var(--space-0) var(--space-5) var(--space-4); }
.np-split { display: block; width: 100%; height: 10px; }
.np-track { fill: var(--surface-2); }
.np-build { fill: var(--stage-building); } .np-review { fill: var(--stage-review); } .np-idle { fill: var(--stage-gated); }
.np-key { display: flex; flex-wrap: wrap; gap: var(--space-4) 14px; margin-top: var(--space-2); font-size: var(--text-xs); color: var(--ink-muted); }
.np-key span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: var(--radius-bar); vertical-align: -1px; background: var(--c, var(--ink-faint)); }
.np-key b { font: 600 var(--text-xs) var(--mono); color: var(--ink); }
.np-k-build { --c: var(--stage-building); } .np-k-review { --c: var(--stage-review); } .np-k-idle { --c: var(--stage-gated); }
.np-k-spec, .np-f-spec { --c: var(--blue); } .np-k-item, .np-f-item { --c: var(--violet); } .np-k-rigor, .np-f-rigor { --c: var(--warn); }
.np-k-ship, .np-f-ship { --c: var(--accent); } .np-k-data, .np-f-data { --c: var(--reject); }
.np-split rect[class^="np-f-"] { fill: var(--c, var(--ink-faint)); }
.np-spark { display: block; width: 100%; height: 38px; }
.np-bin { fill: color-mix(in oklab, var(--stage-merged) 28%, var(--surface)); } .np-now { fill: var(--accent); } .np-none { fill: var(--line-soft); }
.np-axis { display: flex; justify-content: space-between; margin-top: var(--space-1); font: var(--text-2xs) var(--mono); color: var(--ink-faint); }
.np-d { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: var(--space-4); align-items: center; padding: 9px 14px; border-top: var(--border-row); line-height: var(--leading-snug); }
.np-d:hover { background: var(--surface-2); }
.np-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-md); --c: var(--ink-faint); color: var(--c); background: color-mix(in oklab, var(--c) 14%, var(--surface)); }
.np-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.np-ic.np-build { --c: var(--stage-building); } .np-ic.np-review { --c: var(--stage-review); } .np-ic.np-idle { --c: var(--stage-gated); }
.np-ic.np-land, .np-ic.np-pace, .np-ic.np-ship { --c: var(--stage-merged); } .np-ic.np-back, .np-ic.np-data { --c: var(--mark-back); }
.np-ic.np-spec { --c: var(--blue); } .np-ic.np-item { --c: var(--violet); } .np-ic.np-rigor { --c: var(--warn); }
.np-tx { min-width: 0; } .np-tx b { display: block; font-weight: 400; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-tx small { display: block; font-size: var(--text-xs); color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-tx small em { font-style: normal; font-weight: 600; color: var(--ink); }
.np-val { font: 600 var(--text-sm) var(--mono); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.np-val.np-g { color: var(--accent); } .np-val.np-a { color: var(--warn); } .np-val.np-r { color: var(--mark-back); }
.np-act { padding: 3px 9px; border: var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: var(--text-xs); font-weight: 600; color: var(--accent); white-space: nowrap; cursor: pointer; }
.np-d:hover .np-act { border-color: var(--accent); }
.np-go { display: block; width: 100%; margin: 0; padding: 9px var(--space-5) var(--space-2); border: 0; border-top: var(--border); background: none; font-size: var(--text-xs); font-weight: 600; color: var(--accent); text-align: right; cursor: pointer; }
.np-empty { margin: 0; padding: var(--space-4) var(--space-5) var(--space-5); color: var(--ink-faint); }

#phone-approvals:empty { display: none; }
.relay-panel #phone-approvals { margin-top: 20px; text-align: left; }
.phone-approval-status { margin: 0; padding: 14px 16px; color: var(--ink-muted); }
.phone-approval { display: grid; gap: 10px; padding: 14px 16px; }
.phone-approval p { margin: 0; overflow-wrap: anywhere; }
.phone-approval-title { font-weight: 600; }
.phone-approval-detail { color: var(--ink-muted); }
.phone-approval button { justify-self: start; }
