/* Portal + AOP dashboard skin — rebranded 2026-08-26 to the contextlayeryourai2.0 dashboard language
   (src/dashboard/dashboard.css on branch `robertson`, deployed at
   yourai-context-layer-2-staging.netlify.app/dashboard): ivory content area, ink-dark chrome with a
   faint grid texture, amber accent, Arial + mono microlabels, square corners, hairline borders.
   The CLASS API IS UNCHANGED — routes/portal.js, aop_dashboard, and the gatherer prototype's page
   template keep rendering the same markup; only the visual values moved. Semantic token names
   (--trust/--safe/--atmos) are kept so every consumer retheming is token-driven:
     --trust = amber (primary accent)   --safe = green (ok/live)   --atmos = violet (forming). */
@layer reset, tokens, base, layout, components, pages, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, dl, dd, figure { margin: 0; }
  button, input { font: inherit; }
  a { color: inherit; text-decoration: none; }
  svg { display: block; }
  [hidden] { display: none !important; }
}

@layer tokens {
  /* Single-theme by design, like the source dashboard: one palette on :root, no [data-theme]
     overrides. The old dark/light toggle is retired (the .theme-toggle control is hidden below);
     a stale data-theme attribute changes nothing. */
  :root {
    color-scheme: light;
    --bg: #e9e5dc;            /* ivory content ground */
    --bg-deep: #1c1c1b;       /* ink — dark panel interiors */
    --surface: #fffdf8;       /* white paper card */
    --surface-2: #f4f1ea;     /* paper */
    --surface-3: #eae5d8;
    --ink: #20201f;
    --ink-soft: #4a4843;
    --muted: #6d6962;
    --line: rgba(32, 32, 31, 0.24);
    --line-strong: rgba(32, 32, 31, 0.45);
    --line-light: rgba(255, 255, 255, 0.16);
    --trust: #f0a23b;         /* amber */
    --trust-strong: #9f5b0a;  /* amber-dark */
    --trust-tint: rgba(240, 162, 59, 0.16);
    --safe: #3f7658;          /* ok green */
    --safe-tint: rgba(62, 139, 114, 0.13);
    --atmos: #6e5da0;         /* forming violet */
    --atmos-tint: rgba(110, 93, 160, 0.12);
    --quiet: #8a6a34;
    --shadow: 0 18px 44px rgba(32, 32, 31, 0.14);
    --shadow-soft: 0 8px 22px rgba(32, 32, 31, 0.09);
    --radius-sm: 0px;
    --radius: 0px;
    --radius-lg: 0px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
    --sans: Arial, Helvetica, sans-serif;
    /* the ink chrome's grid texture (sidebar, topbar, dark panels) */
    --grid-dark: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
                 linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  }
}

@layer base {
  body {
    min-width: 320px; min-height: 100vh; overflow-x: hidden;
    background: var(--bg); color: var(--ink); font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3 { font-weight: 500; letter-spacing: -0.045em; text-wrap: balance; }
  button, a { -webkit-tap-highlight-color: transparent; }
  button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--trust); outline-offset: 3px; }
  ::selection { color: var(--ink); background: var(--trust); }
  .skip-link { position: fixed; z-index: 100; left: 1rem; top: -4rem; padding: .7rem 1rem; background: var(--ink); color: var(--surface); }
  .skip-link:focus { top: 1rem; }
  /* the old glassy ambient blobs have no place in the flat editorial system */
  .ambient { display: none; }
  .reveal { animation: reveal .7s var(--ease) both; }
  .delay-1 { animation-delay: .07s; } .delay-2 { animation-delay: .14s; } .delay-3 { animation-delay: .21s; } .delay-4 { animation-delay: .28s; }
  @keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

@layer layout {
  .shell { display: flex; min-height: 100vh; }
  .sidebar {
    position: fixed; z-index: 30; inset: 0 auto 0 0; width: 252px; display: flex; flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    background-color: var(--ink);
    background-image: var(--grid-dark);
    background-size: 40px 40px;
    color: #fffdf8;
  }
  .workspace { width: calc(100% - 252px); min-width: 0; margin-left: 252px; }
  .topbar {
    position: sticky; z-index: 20; top: 0; height: 58px; display: flex; align-items: center; gap: 14px; padding: 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background-color: var(--ink);
    background-image: var(--grid-dark);
    background-size: 40px 40px;
    color: #fffdf8;
  }
  .main { width: min(1480px, 100%); margin: 0 auto; padding: 48px clamp(24px, 4vw, 68px) 28px; }
  .page-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding: 20px 2px 4px; border-top: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
}

@layer components {
  .brand-block { display: flex; align-items: center; padding: 0 18px; min-height: 58px; border-bottom: 1px solid var(--line-light); }
  .org-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
  .org-brand > span:last-child { display: flex; flex-direction: column; min-width: 0; }
  .org-brand strong { color: #fffdf8; font-size: 15px; letter-spacing: -.03em; }
  .org-brand small { margin-top: 1px; color: rgba(255, 255, 255, 0.58); font: 9px var(--mono); letter-spacing: .09em; text-transform: uppercase; }
  .brand-mark { width: 25px; height: 26px; object-fit: contain; }
  /* numbered ledger nav — hairline rows, mono indices, amber active block (the source's sidebar) */
  .nav-list { display: grid; gap: 0; padding: 8px 0 0; counter-reset: navrow; }
  .nav-list a { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 0 16px 0 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.62); font-size: 12.5px; letter-spacing: -.01em; transition: color .2s, background .2s; }
  .nav-list a::before { counter-increment: navrow; content: counter(navrow, decimal-leading-zero); color: rgba(255, 255, 255, 0.34); font: 8px var(--mono); letter-spacing: .08em; }
  .nav-list a:hover { color: #fffdf8; background: rgba(255, 255, 255, 0.05); }
  .nav-list a.active { color: var(--ink); background: var(--trust); font-weight: 700; }
  .nav-list a.active::before { color: rgba(32, 32, 31, 0.6); }
  .nav-list a.active .nav-icon { color: var(--ink); }
  .nav-list em { margin-left: auto; min-width: 21px; padding: 2px 6px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: rgba(255, 255, 255, 0.62); font: normal 9px var(--mono); text-align: center; }
  .nav-list a.active em { border-color: rgba(32, 32, 31, 0.4); color: var(--ink); }
  .nav-icon { width: 18px; color: rgba(255, 255, 255, 0.5); font: 15px/1 var(--mono); text-align: center; }
  .sidebar-spacer { flex: 1; }
  .side-pulse-card { margin: 12px; padding: 12px; border: 1px solid var(--line-light); background: rgba(24, 24, 23, 0.92); }
  .side-pulse-card svg { width: 100%; height: 58px; margin-bottom: 8px; }
  .pulse-grid { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: .6; }
  .pulse-path { fill: none; stroke: var(--trust); stroke-width: 1.6; stroke-dasharray: 4 3; animation: dash 5s linear infinite; }
  @keyframes dash { to { stroke-dashoffset: -35; } }
  .side-pulse-card span { color: rgba(255, 255, 255, 0.58); font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
  .side-pulse-card strong { float: right; color: #fffdf8; font: 10px var(--mono); font-weight: 500; }
  .icon-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-light); background: transparent; color: rgba(255, 255, 255, 0.72); cursor: pointer; transition: border .2s, color .2s, background .2s; }
  .icon-button:hover { color: var(--ink); background: var(--trust); border-color: var(--trust); }
  .nav-open, .nav-close { display: none; }
  .crumb { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.72); font: 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
  .fingerprint-mini { color: var(--trust); font-size: 13px; }
  .top-spine { display: flex; align-items: center; gap: 3px; color: rgba(255, 255, 255, 0.5); font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
  .top-spine i { width: 5px; height: 5px; background: rgba(255, 255, 255, 0.3); }
  .top-spine i.complete { background: #3e8b72; } .top-spine i.active { background: var(--trust); box-shadow: 0 0 0 3px rgba(240, 162, 59, 0.25); }
  .top-spine span { margin-left: 6px; }
  .topbar-space { flex: 1; }
  .as-of { color: rgba(255, 255, 255, 0.58); font: 9.5px var(--mono); }
  .topbar a { color: rgba(255, 255, 255, 0.58); } .topbar a:hover { color: #fffdf8; }
  /* single-theme design: the toggle is retired, not re-wired */
  .theme-toggle { display: none; }
  .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
  .page-head > div:first-child { max-width: 900px; }
  .eyebrow, .section-label { display: block; margin-bottom: 10px; color: var(--trust-strong); font: 9px var(--mono); letter-spacing: .18em; text-transform: uppercase; }
  .page-head h1 { font-size: clamp(38px, 4.6vw, 64px); font-weight: 500; line-height: 0.98; letter-spacing: -0.05em; }
  .page-head > div > p:last-child { max-width: 680px; margin-top: 14px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
  .panel { border: 1px solid var(--line); background: var(--surface); }
  .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 22px; border-bottom: 1px solid var(--line); }
  .panel-head .section-label { margin-bottom: 6px; }
  .panel-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
  .panel-head > a, .text-link { color: var(--ink-soft); font-size: 11px; transition: color .2s; } .panel-head > a:hover, .text-link:hover { color: var(--trust-strong); }
  .state-pill { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 5px 8px; border: 1px solid var(--line); color: var(--ink-soft); background: var(--surface-2); font: 8px var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
  .state-pill::before { content: ""; width: 5px; height: 5px; background: var(--muted); }
  .state-pill.operational, .state-pill.ready, .state-pill.healthy { border-color: rgba(63, 118, 88, 0.4); background: var(--safe-tint); color: var(--safe); }
  .state-pill.operational::before, .state-pill.ready::before, .state-pill.healthy::before { background: var(--safe); }
  .state-pill.prepared { border-color: rgba(110, 93, 160, 0.4); background: var(--atmos-tint); color: var(--atmos); }
  .state-pill.prepared::before { background: var(--atmos); }
  .state-pill.captured { border-color: rgba(159, 91, 10, 0.4); background: var(--trust-tint); color: var(--trust-strong); }
  .state-pill.captured::before { background: var(--trust); }
  .state-pill.stale, .state-pill.attention { color: var(--muted); background: transparent; }
  .state-pill.stale::before { background: var(--line-strong); } .state-pill.attention::before { background: var(--quiet); }
  .quiet-notices { margin-top: 28px; border-top: 1px solid var(--line); color: var(--muted); }
  .quiet-notices summary { display: flex; align-items: center; gap: 10px; padding: 14px 2px; cursor: pointer; list-style: none; font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
  .quiet-notices summary::-webkit-details-marker { display: none; }
  .quiet-notices summary small { opacity: .75; } .quiet-notices summary b { margin-left: auto; font-size: 14px; font-weight: 400; transition: transform .2s; }
  .quiet-notices[open] summary b { transform: rotate(45deg); }
  .quiet-notices > div { display: grid; gap: 8px; padding: 0 2px 14px; }
  .quiet-notices p { display: flex; gap: 16px; font-size: 11px; line-height: 1.55; }
  .quiet-notices strong { min-width: 130px; color: var(--ink-soft); font-weight: 700; }
  .empty-refined { display: grid; justify-items: center; padding: 45px 24px; text-align: center; color: var(--muted); }
  .empty-refined > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; border: 1px solid var(--line); color: var(--trust-strong); font-size: 21px; }
  .empty-refined strong { color: var(--ink-soft); font-size: 14px; } .empty-refined p { max-width: 430px; margin-top: 7px; font-size: 11px; line-height: 1.6; }
  .empty-refined.compact { padding: 32px 20px; } .empty-refined.wide { grid-column: 1 / -1; width: 100%; border: 1px dashed var(--line-strong); }
}

@layer pages {
  /* The hero card goes DARK — the source dashboard's ink feature panel with the grid texture.
     Local token overrides re-skin every descendant (labels, pills, stages) without markup changes. */
  .coverage-card, .fleet-radar, .signal-ghost {
    --ink: #fffdf8; --ink-soft: rgba(255, 255, 255, 0.72); --muted: rgba(255, 255, 255, 0.56);
    --surface: #262624; --surface-2: #2d2d2b; --surface-3: #383836;
    --bg: #1c1c1b; --bg-deep: #171716;
    --line: rgba(255, 255, 255, 0.14); --line-strong: rgba(255, 255, 255, 0.28);
    --trust-strong: #f0a23b; --trust-tint: rgba(240, 162, 59, 0.14);
    --safe: #3e8b72; --safe-tint: rgba(62, 139, 114, 0.16);
    --atmos: #9b8ac4; --atmos-tint: rgba(155, 138, 196, 0.16);
    color: var(--ink);
  }
  .coverage-card { position: relative; min-height: 365px; overflow: hidden; padding: 28px 30px 22px; border: 1px solid #20201f; background-color: #1c1c1b; background-image: radial-gradient(circle at 16% 48%, rgba(240, 162, 59, 0.1), transparent 36%), var(--grid-dark); background-size: auto, 40px 40px, 40px 40px; box-shadow: 10px 10px 0 rgba(32, 32, 31, 0.2); }
  .coverage-head { position: relative; z-index: 4; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
  .coverage-head .section-label { margin-bottom: 7px; color: var(--trust); }
  .coverage-head h2 { max-width: 720px; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.02; font-weight: 500; letter-spacing: -.045em; }
  .coverage-ready { display: flex; align-items: center; gap: 8px; margin-top: 2px; padding: 7px 10px; border: 1px solid rgba(62, 139, 114, 0.5); background: rgba(24, 24, 23, 0.9); color: var(--safe); font: 8.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
  .coverage-ready i { width: 6px; height: 6px; background: var(--safe); box-shadow: 0 0 0 4px var(--safe-tint); }
  .coverage-flow { position: relative; z-index: 2; display: grid; grid-template-columns: 116px minmax(45px, 1fr) 116px minmax(45px, 1fr) 116px minmax(45px, 1fr) 116px minmax(45px, 1fr) 116px; align-items: center; min-height: 190px; margin-top: 23px; isolation: isolate; }
  .coverage-flow::before { content: ""; position: absolute; z-index: -1; left: 2%; right: 2%; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--trust), var(--trust), var(--safe), transparent); }
  .coverage-stage { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border: 1px solid rgba(240, 162, 59, 0.5); background: #232322; text-align: center; }
  .coverage-stage::before, .coverage-stage::after { content: ""; position: absolute; border: 1px solid rgba(240, 162, 59, 0.3); }
  .coverage-stage::before { inset: 6px; border-style: dashed; }
  .coverage-stage::after { width: 7px; height: 7px; right: 8px; top: 8px; border: 0; background: var(--trust); }
  .coverage-stage span { max-width: 84px; color: var(--ink-soft); font: 7.5px/1.25 var(--mono); letter-spacing: .08em; }
  .coverage-stage b { margin-top: 5px; color: var(--ink); font: 500 29px/1 var(--mono); letter-spacing: -.08em; }
  .coverage-stage small { margin-top: 3px; color: var(--muted); font-size: 7.5px; }
  .coverage-stage.ready { border-color: rgba(62, 139, 114, 0.65); background: #212623; }
  .coverage-stage.ready::before { border-color: rgba(62, 139, 114, 0.4); }
  .coverage-stage.ready::after { background: var(--safe); }
  .coverage-stage.ready b { color: var(--safe); }
  .coverage-link { position: relative; z-index: 1; width: calc(100% + 16px); height: 66px; margin: 0 -8px; opacity: .54; }
  .coverage-link::after { content: ""; }
  .flow-ribbons { position: absolute; z-index: 0; inset: 10px -30px; overflow: hidden; pointer-events: none; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
  .flow-ribbons span { position: absolute; left: 0; top: 18%; width: max-content; max-width: none; color: var(--trust); font: 7.5px var(--mono); letter-spacing: .025em; opacity: .16; white-space: nowrap; animation: ribbon-flow 24s linear infinite; animation-delay: calc(-7s + (var(--flow-index) * -4.2s)); }
  .flow-ribbons span:nth-child(3n+2) { top: 49%; color: var(--atmos); animation-duration: 29s; }
  .flow-ribbons span:nth-child(3n) { top: 78%; color: var(--safe); animation-duration: 33s; }
  @keyframes ribbon-flow { from { transform: translateX(-110%); } to { transform: translateX(calc(100vw + 150%)); } }
  .coverage-explainer { position: relative; z-index: 4; color: var(--muted); font-size: 9.5px; text-align: center; }
  .metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 14px; }
  .metric-card { position: relative; min-height: 135px; overflow: hidden; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
  .metric-card span { display: block; color: var(--muted); font: 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
  .metric-card strong { display: block; margin: 10px 0 3px; color: var(--ink); font: 500 40px/1 var(--sans); letter-spacing: -.05em; }
  .metric-card small { color: var(--muted); font-size: 9.5px; }
  .metric-card i { position: absolute; left: 0; right: 0; top: 0; width: auto; height: 3px; opacity: 1; filter: none; }
  .metric-card.trust i { background: var(--trust); }
  .metric-card.safe i { background: var(--safe); }
  .metric-card.atmos i { background: var(--atmos); }
  .metric-card.neutral i { background: var(--line-strong); }
  .overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); gap: 14px; margin-top: 14px; }
  .workflow-stack { padding: 4px 12px 10px; }
  .workflow-row { display: grid; grid-template-columns: 38px minmax(170px, 1fr) auto 62px 12px; align-items: center; gap: 12px; min-height: 73px; padding: 10px; border-bottom: 1px solid var(--line); transition: background .2s; }
  .workflow-row:last-child { border-bottom: 0; } .workflow-row:hover { background: var(--surface-2); }
  .workflow-copy { display: grid; min-width: 0; } .workflow-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; } .workflow-copy small { overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .workflow-row time { color: var(--muted); font: 8.5px var(--mono); text-align: right; } .workflow-row > b { color: var(--muted); font-weight: 400; }
  .workflow-glyph { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); background: var(--surface-2); }
  .workflow-glyph i { position: absolute; width: 16px; height: 1px; background: var(--trust); transform-origin: center; }
  .workflow-glyph i:nth-child(2) { transform: rotate(60deg); } .workflow-glyph i:nth-child(3) { transform: rotate(-60deg); }
  .workflow-glyph.operational i, .workflow-glyph.ready i { background: var(--safe); } .workflow-glyph.prepared i { background: var(--atmos); }
  .workflow-glyph.large { width: 46px; height: 46px; } .workflow-glyph.large i { width: 22px; }
  .synthesis-card { min-height: 100%; padding-bottom: 20px; }
  .verified-badge { padding: 5px 8px; border: 1px solid rgba(63, 118, 88, 0.4); color: var(--safe); background: var(--safe-tint); font: 7.5px var(--mono); letter-spacing: .1em; }
  .synthesis-orbit { position: relative; display: grid; place-items: center; width: 168px; height: 168px; margin: 28px auto 20px; }
  .orbit-ring { position: absolute; border: 1px solid var(--line-strong); border-radius: 50%; } .orbit-ring.one { inset: 16px; border-style: dashed; animation: spin 18s linear infinite; } .orbit-ring.two { inset: 34px; border-color: rgba(159, 91, 10, 0.45); }
  @keyframes spin { to { transform: rotate(360deg); } }
  .orbit-core { display: grid; place-items: center; width: 66px; height: 66px; border: 1px solid var(--trust); background: var(--trust); color: var(--ink); font: 500 24px var(--mono); }
  .synthesis-orbit small { position: absolute; top: 122px; color: var(--muted); font: 8px/1.4 var(--mono); text-align: center; text-transform: uppercase; letter-spacing: .06em; }
  .change-ledger { margin: 0 20px 18px; border-top: 1px solid var(--line); }
  .change-ledger div { display: flex; justify-content: space-between; padding: 10px 1px; border-bottom: 1px solid var(--line); }
  .change-ledger dt { color: var(--muted); font-size: 10px; } .change-ledger dd { color: var(--ink-soft); font: 10px var(--mono); }
  .synthesis-card > .text-link { display: block; margin: 0 21px; }

  .control-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; padding: 11px; border: 1px solid var(--line); background: var(--surface); }
  .search-field { position: relative; display: flex; align-items: center; width: min(340px, 100%); }
  .search-field > span { position: absolute; left: 12px; color: var(--muted); }
  .search-field input { width: 100%; height: 37px; padding: 0 14px 0 36px; border: 1px solid var(--line); outline: 0; background: var(--surface-2); color: var(--ink); font-size: 11px; }
  .search-field input:focus { border-color: var(--trust-strong); }
  .filter-pills { display: flex; align-items: center; gap: 4px; }
  .filter-pills button { padding: 8px 11px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font: 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
  .filter-pills button:hover { color: var(--ink); } .filter-pills button.active { border-color: var(--ink); background: var(--ink); color: var(--surface); }
  .filter-pills b { margin-left: 5px; font: 8px var(--mono); }
  .workflow-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .workflow-card { display: flex; flex-direction: column; min-height: 300px; padding: 21px; border: 1px solid var(--line); background: var(--surface); transition: transform .25s var(--ease), border .25s, box-shadow .25s; }
  .workflow-card:hover { transform: translate(-2px, -2px); border-color: var(--ink); box-shadow: 4px 4px 0 rgba(32, 32, 31, 0.85); }
  .workflow-card-top { display: flex; align-items: center; justify-content: space-between; }
  .workflow-card h2 { margin-top: 22px; font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: -.025em; }
  .workflow-card > p { display: -webkit-box; overflow: hidden; margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .mini-pipeline { display: flex; align-items: flex-start; margin-top: auto; padding-top: 23px; }
  .mini-pipeline span { display: grid; justify-items: center; gap: 6px; min-width: 45px; color: var(--muted); font: 7px var(--mono); text-transform: uppercase; }
  .mini-pipeline span i { width: 7px; height: 7px; border: 1px solid var(--line-strong); background: var(--surface); }
  .mini-pipeline span.done { color: var(--safe); } .mini-pipeline span.done i { border-color: var(--safe); background: var(--safe); }
  .mini-pipeline > b { flex: 1; height: 1px; margin-top: 3px; background: var(--line); }
  .workflow-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 19px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font: 8px var(--mono); }
  .workflow-card-foot div { display: flex; gap: 6px; } .workflow-card-foot a { padding: 4px 7px; border: 1px solid var(--line); color: var(--ink-soft); transition: border .2s, color .2s, background .2s; } .workflow-card-foot a:hover { border-color: var(--ink); background: var(--ink); color: var(--surface); }

  .library-banner { position: relative; display: flex; align-items: center; gap: 30px; min-height: 128px; margin-bottom: 15px; padding: 25px 30px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 8px 8px 0 rgba(32, 32, 31, 0.12); }
  .library-banner::after { content: ""; position: absolute; width: 300px; height: 300px; right: -140px; top: -180px; border: 1px solid rgba(32, 32, 31, 0.14); border-radius: 50%; box-shadow: 0 0 0 35px rgba(32, 32, 31, 0.045), 0 0 0 70px rgba(32, 32, 31, 0.03); }
  .library-banner > div { display: flex; align-items: center; gap: 15px; min-width: 260px; }
  .library-banner > div > span:last-child { display: grid; } .library-banner strong { font-size: 12px; font-weight: 700; } .library-banner small { margin-top: 4px; color: var(--muted); font-size: 9px; }
  .library-number { color: var(--ink); font: 500 40px var(--sans); letter-spacing: -.05em; } .library-number.accent { color: var(--atmos); }
  .library-banner > i { width: 1px; height: 54px; background: var(--line); }
  .library-arrow { margin-left: auto; margin-right: 55px; color: var(--muted); font-size: 25px; }
  .library-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .document-list { overflow: hidden; }
  .count-badge { display: grid; place-items: center; min-width: 28px; height: 28px; border: 1px solid rgba(159, 91, 10, 0.4); color: var(--trust-strong); background: var(--trust-tint); font: 10px var(--mono); }
  .count-badge.accent { color: var(--atmos); background: var(--atmos-tint); border-color: rgba(110, 93, 160, 0.4); }
  .document-row { display: grid; grid-template-columns: 35px minmax(140px, 1fr) auto 10px; align-items: center; gap: 12px; min-height: 76px; padding: 11px 20px; border-bottom: 1px solid var(--line); transition: background .2s; }
  .document-row:last-child { border-bottom: 0; } .document-row:hover { background: var(--surface-2); }
  .doc-icon { display: grid; place-items: center; width: 32px; height: 37px; border: 1px solid rgba(159, 91, 10, 0.4); background: var(--trust-tint); color: var(--trust-strong); font: 11px var(--mono); }
  .aop-list .doc-icon { color: var(--atmos); background: var(--atmos-tint); border-color: rgba(110, 93, 160, 0.4); }
  .document-row > span:nth-child(2) { display: grid; min-width: 0; } .document-row strong { overflow: hidden; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; } .document-row small { overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
  .document-row time, .document-row em { color: var(--muted); font: normal 8px var(--mono); } .document-row em { padding: 4px 6px; background: var(--safe-tint); color: var(--safe); } .document-row em.muted { background: var(--surface-2); color: var(--muted); }
  .document-row > b { color: var(--muted); font-weight: 400; }

  .fleet-hero { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 380px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 10px 10px 0 rgba(32, 32, 31, 0.2); }
  .fleet-radar { position: relative; min-height: 380px; overflow: hidden; background-color: #1c1c1b; background-image: radial-gradient(circle at center, rgba(240, 162, 59, 0.1), transparent 62%), var(--grid-dark); background-size: auto, 40px 40px, 40px 40px; }
  .fleet-radar svg { width: 100%; height: 100%; min-height: 380px; }
  .radar-label { position: absolute; z-index: 2; left: 24px; top: 22px; display: grid; }
  .radar-label span { color: var(--trust); font: 8px var(--mono); letter-spacing: .15em; } .radar-label strong { margin-top: 5px; color: var(--ink); font-size: 14px; font-weight: 700; } .radar-label small { margin-top: 3px; color: var(--muted); font: 8px var(--mono); }
  .radar-wash { fill: url(#radar); } .radar-ring { fill: none; stroke: var(--line); stroke-width: .7; stroke-dasharray: 3 5; } .radar-axis { stroke: var(--line); stroke-width: .55; } .radar-core { fill: var(--trust); }
  .fleet-node .halo { fill: var(--trust-tint); animation: node-breathe 3.4s ease-in-out infinite; transform-origin: center; } .fleet-node .point { fill: var(--safe); } .fleet-node .point.stale { fill: var(--line-strong); } .fleet-node .point.attention { fill: var(--quiet); }
  .fleet-node:nth-child(3n) .halo { animation-delay: -1.2s; } .fleet-node:nth-child(3n+1) .halo { animation-delay: -2.3s; }
  @keyframes node-breathe { 50% { opacity: .35; transform: scale(1.35); } }
  .radar-legend { position: absolute; display: flex; gap: 15px; left: 22px; bottom: 18px; color: var(--muted); font: 7.5px var(--mono); }
  .radar-legend span { display: flex; align-items: center; gap: 5px; } .radar-legend i { width: 5px; height: 5px; } .radar-legend i.healthy { background: var(--safe); } .radar-legend i.stale { background: var(--line-strong); } .radar-legend i.attention { background: var(--quiet); }
  .fleet-summary { display: flex; flex-direction: column; justify-content: center; padding: 38px; border-left: 1px solid var(--line); }
  .fleet-summary h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.02; font-weight: 500; letter-spacing: -.045em; } .fleet-summary > p { margin-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.7; }
  .fleet-summary > small { margin-top: 18px; color: var(--muted); font: 8px var(--mono); }
  .fleet-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
  .fleet-stat-grid div { display: grid; padding: 13px; background: var(--surface-2); } .fleet-stat-grid strong { color: var(--ink); font: 500 22px var(--sans); letter-spacing: -.03em; } .fleet-stat-grid span { margin-top: 3px; color: var(--muted); font-size: 8px; }
  .fleet-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 14px; margin-top: 14px; }
  .distribution-list { padding: 8px 21px 17px; }
  .distribution-list > div { display: grid; grid-template-columns: 125px 1fr 40px; align-items: center; gap: 14px; padding: 11px 0; }
  .distribution-list span { display: grid; } .distribution-list strong { font-size: 10px; font-weight: 700; } .distribution-list small { margin-top: 2px; color: var(--muted); font-size: 7.5px; }
  .distribution-list > div > i { height: 5px; overflow: hidden; background: var(--surface-3); } .distribution-list > div > i b { display: block; height: 100%; background: var(--trust); }
  .distribution-list em { color: var(--muted); font: normal 8px var(--mono); text-align: right; } .atmos-bars > div > i b { background: var(--atmos); }
  .fleet-table-panel { margin-top: 14px; overflow: hidden; } .quiet-label { color: var(--muted); font: 8px var(--mono); }
  .table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 10px; } th { padding: 11px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font: 7.5px var(--mono); letter-spacing: .08em; text-align: left; text-transform: uppercase; } td { padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--ink-soft); } tr:last-child td { border-bottom: 0; }
  .install-id { display: flex; align-items: center; gap: 8px; font-family: var(--mono); } .install-id i { width: 6px; height: 6px; background: var(--trust); }
  .inline-note { display: block; margin-top: 2px; color: var(--muted); font: 7px var(--mono); }
  .unavailable-card { display: grid; grid-template-columns: 42% 58%; min-height: 380px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 10px 10px 0 rgba(32, 32, 31, 0.2); }
  .unavailable-card > div:last-child { display: flex; flex-direction: column; justify-content: center; padding: 45px; } .unavailable-card h2 { font-size: 32px; font-weight: 500; letter-spacing: -.04em; } .unavailable-card p { max-width: 500px; margin-top: 14px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; } .unavailable-card small { margin-top: 18px; color: var(--muted); font: 8px var(--mono); }
  .signal-ghost { position: relative; display: grid; place-items: center; overflow: hidden; background-color: #1c1c1b; background-image: var(--grid-dark); background-size: 40px 40px; } .signal-ghost i { position: absolute; width: 90px; height: 90px; border: 1px solid var(--line); border-radius: 50%; } .signal-ghost i:nth-child(2) { width: 170px; height: 170px; } .signal-ghost i:nth-child(3) { width: 260px; height: 260px; border-style: dashed; } .signal-ghost span { color: var(--muted); font-size: 32px; }

  .history-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 245px; padding: 36px 42px; border: 1px solid var(--line); background: var(--surface); box-shadow: 8px 8px 0 rgba(32, 32, 31, 0.12); }
  .history-hero h2 { font-size: clamp(27px, 3.5vw, 43px); line-height: 1.02; font-weight: 500; letter-spacing: -.045em; } .history-hero p { max-width: 520px; margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.7; }
  .history-stats { display: flex; align-items: center; justify-content: space-around; gap: 18px; } .history-stats > span { display: grid; justify-items: center; } .history-stats strong { color: var(--ink); font: 500 34px var(--sans); letter-spacing: -.04em; } .history-stats small { margin-top: 5px; color: var(--muted); font: 7.5px var(--mono); text-transform: uppercase; } .history-stats > i { width: 1px; height: 55px; background: var(--line); }
  .timeline { max-width: 1000px; margin: 32px auto 0; }
  .timeline-entry { display: grid; grid-template-columns: 36px 1fr; gap: 19px; }
  .timeline-rail { position: relative; display: flex; justify-content: center; } .timeline-rail::after { content: ""; position: absolute; top: 24px; bottom: -1px; width: 1px; background: var(--line-strong); } .timeline-entry:last-child .timeline-rail::after { display: none; } .timeline-rail span { position: relative; z-index: 2; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--muted); font: 8px var(--mono); }
  .timeline-entry.latest .timeline-rail span { border-color: var(--safe); color: var(--safe); }
  .timeline-card { margin-bottom: 15px; padding: 20px 22px; border: 1px solid var(--line); background: var(--surface); }
  .timeline-entry.latest .timeline-card { border-color: rgba(63, 118, 88, 0.45); }
  .timeline-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; } .timeline-top .section-label { margin-bottom: 5px; } .timeline-top h2 { font-size: 15px; font-weight: 700; } .timeline-top code { padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); font: 8px var(--mono); }
  .latest-label { display: block; margin-bottom: 5px; color: var(--safe); font: 8px var(--mono); letter-spacing: .12em; }
  .timeline-card > p { margin-top: 14px; color: var(--ink-soft); font-size: 10.5px; }
  .change-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; } .change-chips span { padding: 5px 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font: 7.5px var(--mono); }
  .timeline-card details { margin-top: 14px; border-top: 1px solid var(--line); } .timeline-card summary { padding-top: 12px; color: var(--muted); cursor: pointer; font: 8px var(--mono); } .timeline-card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 8px; line-height: 1.7; }

  .how-fivesec { padding: 27px 42px 30px; border: 1px solid var(--line); border-left: 3px solid var(--trust); background: var(--surface); }
  .how-fivesec p { max-width: 980px; font-size: clamp(15px, 1.9vw, 20px); line-height: 1.5; letter-spacing: -.015em; color: var(--ink-soft); }
  .how-fivesec strong { color: var(--ink); font-weight: 700; }
  .how-hero { display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 34px; min-height: 235px; padding: 34px 42px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 10px 10px 0 rgba(32, 32, 31, 0.2); }
  .how-hero img { width: 132px; height: 132px; object-fit: contain; }
  .how-hero h2 { max-width: 770px; font-size: clamp(29px, 4vw, 48px); line-height: 0.98; font-weight: 500; letter-spacing: -.05em; }
  .how-hero p { max-width: 760px; margin-top: 14px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
  .how-spine { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto; align-items: start; gap: 10px; margin: 14px 0; padding: 19px 24px; border: 1px solid var(--line); background: var(--surface); list-style: none; }
  .how-spine li:nth-child(odd) { display: grid; grid-template-columns: 25px max-content; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 9px; }
  .how-spine b { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(159, 91, 10, 0.5); background: var(--trust-tint); color: var(--trust-strong); font: 9px var(--mono); }
  .how-spine li:nth-child(even) { align-self: center; height: 1px; background: linear-gradient(90deg, var(--trust), var(--safe)); opacity: .48; }
  .how-spine li:last-child b { border-color: rgba(63, 118, 88, 0.55); background: var(--safe-tint); color: var(--safe); }
  .how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .how-grid article { position: relative; min-height: 320px; padding: 28px 30px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
  .how-grid article::after { content: ""; position: absolute; width: 120px; height: 120px; right: -62px; bottom: -70px; border: 1px solid rgba(32, 32, 31, 0.14); border-radius: 50%; box-shadow: 0 0 0 22px rgba(32, 32, 31, 0.035); }
  .how-grid article > span { color: var(--trust-strong); font: 8px var(--mono); letter-spacing: .16em; }
  .how-grid h2 { margin-top: 10px; font-size: 21px; font-weight: 700; letter-spacing: -.025em; }
  .how-grid p, .how-grid li { color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
  .how-grid p { margin-top: 12px; }
  .how-grid ul { margin: 12px 0 0; padding-left: 18px; }
  .how-grid li { margin: 4px 0; }
  .how-grid li::marker { color: var(--trust-strong); }
  .how-assurance { padding: 10px 12px; border-left: 2px solid var(--safe); background: var(--safe-tint); }
  .prototype-scope { margin-top: 14px; padding: 31px 34px; border: 1px solid rgba(63, 118, 88, 0.4); background: var(--surface); }
  .prototype-scope h2 { max-width: 850px; font-size: clamp(24px, 3vw, 37px); line-height: 1.02; font-weight: 500; letter-spacing: -.045em; }
  .prototype-scope p { max-width: 900px; margin-top: 13px; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }

  .breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--muted); font: 9px var(--mono); } .breadcrumb a:hover { color: var(--trust-strong); }
  .document-hero { display: grid; grid-template-columns: 1fr 280px; gap: 45px; padding: 35px 40px; border: 1px solid var(--line); background: var(--surface); box-shadow: 10px 10px 0 rgba(32, 32, 31, 0.2); }
  .document-hero > div { display: flex; flex-direction: column; justify-content: center; } .doc-type { width: max-content; margin-bottom: 16px; padding: 5px 9px; border: 1px solid rgba(159, 91, 10, 0.45); background: var(--trust-tint); color: var(--trust-strong); font: 9px var(--mono); letter-spacing: .12em; } .doc-type.aop { color: var(--atmos); background: var(--atmos-tint); border-color: rgba(110, 93, 160, 0.45); }
  .document-hero h1 { max-width: 800px; font-size: clamp(30px, 4vw, 50px); line-height: 0.98; font-weight: 500; letter-spacing: -.05em; } .document-hero > div > p { max-width: 760px; margin-top: 14px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
  .document-hero > aside { display: flex; flex-direction: column; justify-content: center; padding-left: 27px; border-left: 1px solid var(--line); } .document-hero > aside > span { color: var(--muted); font: 8px var(--mono); letter-spacing: .13em; } .document-hero > aside > strong { margin-top: 9px; font-size: 16px; font-weight: 700; } .safe-text { color: var(--safe); } .document-hero > aside > small { margin-top: 4px; color: var(--muted); font-size: 8px; }
  .document-hero dl { margin-top: 21px; border-top: 1px solid var(--line); } .document-hero dl div { display: flex; justify-content: space-between; padding-top: 8px; color: var(--muted); font: 8px var(--mono); }
  .document-layout { display: grid; grid-template-columns: minmax(0, 850px) 230px; justify-content: center; gap: 50px; margin-top: 18px; padding: 44px 38px; border: 1px solid var(--line); background: var(--surface); }
  .prose { min-width: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
  .prose h1 { display: none; } .prose h2 { margin: 2em 0 .65em; color: var(--ink); font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.025em; } .prose h2:first-child { margin-top: 0; } .prose h3 { margin: 1.6em 0 .55em; color: var(--ink); font-size: 16px; font-weight: 700; } .prose p { margin: .8em 0; } .prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: .42em 0; padding-left: .25em; } .prose li::marker { color: var(--trust-strong); } .prose code { padding: .16em .35em; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: .88em var(--mono); } .prose pre { position: relative; overflow-x: auto; margin: 1.2em 0; padding: 17px; border: 1px solid #20201f; background: #1c1c1b; color: rgba(255, 255, 255, 0.78); font: 11px/1.65 var(--mono); } .prose pre code { padding: 0; border: 0; background: transparent; color: inherit; } .prose blockquote { margin: 1.2em 0; padding: 2px 0 2px 17px; border-left: 2px solid var(--atmos); color: var(--ink-soft); } .prose hr { height: 1px; margin: 2em 0; border: 0; background: var(--line); } .prose a { color: var(--trust-strong); text-decoration: underline; text-decoration-color: rgba(159, 91, 10, 0.4); text-underline-offset: 3px; }
  .document-spine { position: sticky; top: 90px; align-self: start; padding-left: 22px; border-left: 1px solid var(--line); } .document-spine > span { color: var(--muted); font: 8px var(--mono); letter-spacing: .13em; } .document-spine > div { display: grid; gap: 3px; margin-top: 12px; } .document-spine > div a { padding: 6px 8px; color: var(--muted); font-size: 9px; line-height: 1.4; } .document-spine > div a:hover { background: var(--surface-2); color: var(--ink); } .document-spine > div a.sub { padding-left: 17px; font-size: 8px; } .document-spine > div small { color: var(--muted); font-size: 8px; } .document-spine > a { display: block; margin-top: 20px; color: var(--trust-strong); font-size: 9px; }
}

@layer responsive {
  @media (max-width: 1180px) {
    .coverage-flow { grid-template-columns: 104px minmax(28px, 1fr) 104px minmax(28px, 1fr) 104px minmax(28px, 1fr) 104px minmax(28px, 1fr) 104px; }
    .overview-grid { grid-template-columns: 1fr; } .synthesis-card { min-height: 350px; }
    .synthesis-orbit { float: left; margin-left: 30px; } .change-ledger { margin-top: 48px; }
    .workflow-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fleet-hero { grid-template-columns: 1fr; } .fleet-summary { border-top: 1px solid var(--line); border-left: 0; }
  }
  @media (max-width: 920px) {
    .sidebar { transform: translateX(-105%); transition: transform .3s var(--ease); box-shadow: 20px 0 65px rgba(32, 32, 31, 0.45); }
    .nav-visible .sidebar { transform: none; } .nav-scrim { position: fixed; z-index: 25; inset: 0; visibility: hidden; background: rgba(32, 32, 31, 0.55); opacity: 0; transition: opacity .25s; } .nav-visible .nav-scrim { visibility: visible; opacity: 1; }
    .workspace { width: 100%; margin-left: 0; } .nav-open, .nav-close { display: grid; } .nav-close { margin-left: auto; }
    .main { padding-top: 36px; }
    .coverage-card { padding-inline: 22px; } .coverage-flow { grid-template-columns: 92px minmax(18px, 1fr) 92px minmax(18px, 1fr) 92px minmax(18px, 1fr) 92px minmax(18px, 1fr) 92px; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .library-columns { grid-template-columns: 1fr; }
    .document-hero { grid-template-columns: 1fr; } .document-hero > aside { padding: 22px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .document-layout { grid-template-columns: 1fr; } .document-spine { position: static; order: -1; padding: 0 0 20px; border-bottom: 1px solid var(--line); border-left: 0; }
    .document-spine > div { display: flex; flex-wrap: wrap; } .document-spine > a { display: none; }
  }
  @media (max-width: 700px) {
    .topbar { padding: 0 12px; } .crumb, .as-of { display: none; } .top-spine { margin-left: 2px; }
    .main { padding: 29px 15px 22px; }
    .page-head { align-items: flex-start; margin-bottom: 24px; } .page-head h1 { font-size: 34px; }
    .coverage-card { min-height: 0; padding: 23px 18px; } .coverage-head { align-items: flex-start; flex-direction: column; gap: 13px; } .coverage-head h2 { font-size: 26px; } .coverage-ready { order: -1; align-self: flex-end; }
    .coverage-flow { display: grid; grid-template-columns: 72px 1fr; gap: 0 14px; min-height: 560px; margin: 19px auto 5px; padding: 8px 0; }
    .coverage-flow::before { left: 35px; right: auto; top: 4%; bottom: 4%; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--trust), var(--trust), var(--safe), transparent); }
    .coverage-stage { grid-column: 1; width: 72px; }
    .coverage-stage span { position: absolute; left: 88px; top: 11px; width: 190px; max-width: none; color: var(--ink); font-size: 9px; text-align: left; }
    .coverage-stage b { position: absolute; left: 88px; top: 31px; margin: 0; font-size: 24px; }
    .coverage-stage small { position: absolute; left: 124px; top: 39px; margin: 0; white-space: nowrap; }
    .coverage-stage::after { right: 3px; top: 13px; }
    .coverage-link { grid-column: 1; width: 34px; height: 35px; margin: -7px 0 -7px 19px; transform: rotate(90deg); opacity: .38; }
    .flow-ribbons { inset: 0 -18px 0 60px; mask-image: linear-gradient(90deg, transparent, black 15%, black 92%, transparent); }
    .flow-ribbons span { font-size: 6.5px; animation-duration: 18s; }
    .coverage-explainer { margin-top: 15px; text-align: left; }
    .metric-grid { gap: 8px; margin-top: 8px; } .metric-card { min-height: 125px; padding: 17px; } .metric-card strong { font-size: 27px; }
    .overview-grid { gap: 8px; margin-top: 8px; } .panel-head { padding: 18px 16px; }
    .workflow-row { grid-template-columns: 36px minmax(120px, 1fr) 10px; } .workflow-row .state-pill, .workflow-row time { display: none; }
    .synthesis-orbit { float: none; margin: 23px auto 0; } .change-ledger { margin-top: 0; }
    .control-strip { align-items: stretch; flex-direction: column; } .search-field { width: 100%; } .filter-pills { overflow-x: auto; padding-bottom: 2px; } .filter-pills button { white-space: nowrap; }
    .workflow-gallery { grid-template-columns: 1fr; }
    .library-banner { align-items: flex-start; flex-direction: column; gap: 16px; padding: 23px; } .library-banner > i { width: 100%; height: 1px; } .library-banner > div { min-width: 0; } .library-arrow { display: none; }
    .fleet-radar { min-height: 320px; } .fleet-radar svg { min-height: 320px; } .radar-legend { flex-direction: column; gap: 4px; } .fleet-summary { padding: 29px 24px; } .fleet-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
    .fleet-table-panel .table-wrap { overflow-x: visible; }
    .fleet-table-panel table { table-layout: fixed; font-size: 7.5px; }
    .fleet-table-panel th, .fleet-table-panel td { padding: 10px 5px; }
    .fleet-table-panel th:nth-child(1), .fleet-table-panel td:nth-child(1) { width: 21%; padding-left: 12px; }
    .fleet-table-panel th:nth-child(2), .fleet-table-panel td:nth-child(2) { width: 14%; }
    .fleet-table-panel th:nth-child(3), .fleet-table-panel td:nth-child(3) { width: 20%; overflow-wrap: anywhere; }
    .fleet-table-panel th:nth-child(4), .fleet-table-panel td:nth-child(4) { width: 14%; }
    .fleet-table-panel th:nth-child(5), .fleet-table-panel td:nth-child(5) { width: 31%; padding-right: 12px; }
    .fleet-table-panel th { font-size: 6px; letter-spacing: .02em; }
    .fleet-table-panel .install-id { gap: 4px; }
    .fleet-table-panel .install-id i { flex: 0 0 auto; width: 4px; height: 4px; }
    .fleet-table-panel .state-pill { width: 100%; justify-content: center; padding: 4px; font-size: 5.5px; line-height: 1.3; text-align: center; white-space: normal; }
    .fleet-table-panel .state-pill::before { flex: 0 0 auto; width: 4px; height: 4px; }
    .unavailable-card { grid-template-columns: 1fr; } .signal-ghost { min-height: 260px; } .unavailable-card > div:last-child { padding: 31px 24px; }
    .history-hero { grid-template-columns: 1fr; gap: 30px; padding: 29px 24px; } .history-stats { justify-content: space-between; }
    .timeline-entry { grid-template-columns: 27px 1fr; gap: 10px; } .timeline-card { padding: 17px; } .timeline-top { align-items: flex-start; flex-direction: column; }
    .document-hero { gap: 25px; padding: 28px 23px; } .document-hero h1 { font-size: 34px; } .document-layout { padding: 30px 22px; }
    .how-fivesec { padding: 22px 23px 24px; } .how-fivesec p { font-size: 15px; }
    .how-hero { grid-template-columns: 68px 1fr; gap: 18px; min-height: 0; padding: 23px; } .how-hero img { width: 68px; height: 68px; } .how-hero h2 { font-size: 27px; } .how-hero p { font-size: 11px; }
    .how-spine { grid-template-columns: 1fr; gap: 0; padding: 18px; } .how-spine li:nth-child(odd) { grid-template-columns: 25px 1fr; min-height: 34px; } .how-spine li:nth-child(even) { width: 1px; height: 16px; margin-left: 12px; background: linear-gradient(var(--trust), var(--safe)); }
    .how-grid { grid-template-columns: 1fr; gap: 8px; } .how-grid article { min-height: 0; padding: 24px 22px; } .prototype-scope { padding: 26px 23px; }
    .quiet-notices p { flex-direction: column; gap: 3px; }
    .page-footer { align-items: flex-start; flex-direction: column; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .flow-ribbons { display: none; }
  }
  @media print {
    .sidebar, .topbar, .ambient, .quiet-notices, .page-footer, .document-spine { display: none !important; }
    .workspace { width: 100%; margin: 0; } .main { width: 100%; padding: 0; } .document-hero, .document-layout { border-color: #ccc; box-shadow: none; } body { background: white; color: black; }
  }
}

/* ── Source-exact dashboard chrome (2026-08-27) ──────────────────────────────
   Ported 1:1 from contextlayeryourai2.0 src/dashboard/dashboard.css (branch `robertson`): the brand
   row with the CONTEXT LAYER chip, the organization card, the WORKSPACE group label, numbered nav
   rows with checkbox squares, and the ink topbar (breadcrumb · workspace search · notification ·
   amber user block). Appended UNLAYERED so these win over the @layer rules above. */
.sidebar { width: 276px; }
.workspace { width: calc(100% - 276px); margin-left: 276px; }

.dash-brand { height: 72px; display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.dash-brand-home { display: flex; align-items: center; gap: 10px; color: #fffdf8; }
.dash-logo-mark { width: 27px; height: 29px; flex: 0 0 auto; background: #e5a651; -webkit-mask: url('/assets/landing-favicon.svg') center / contain no-repeat; mask: url('/assets/landing-favicon.svg') center / contain no-repeat; }
.dash-brand strong { font-size: 1.15rem; letter-spacing: -0.045em; font-weight: 700; }
.dash-brand > span { margin-left: 4px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.58); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; }
.dash-brand > span::after { content: " ⌄"; }

.dash-workspace { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 13px; margin: 20px 14px 22px; padding: 18px 14px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(24, 24, 23, 0.92); }
.dash-workspace > span, .dash-user > span { display: grid; place-items: center; width: 48px; height: 48px; background: var(--trust); color: #20201f; font-family: var(--mono); font-size: 0.7rem; font-weight: 800; }
.dash-workspace div { display: grid; gap: 3px; }
.dash-workspace strong { color: #fffdf8; font-size: 0.86rem; }
.dash-workspace small { overflow-wrap: anywhere; color: rgba(255, 255, 255, 0.47); font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.04em; text-transform: uppercase; }
.dash-nav-label { margin: 0 16px 10px; color: rgba(255, 255, 255, 0.38); font-family: var(--mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.sidebar nav { display: block; padding: 0; }
.dash-nav-item { min-height: 56px; display: grid; grid-template-columns: 32px 24px minmax(0, 1fr); align-items: center; gap: 10px; padding: 0 16px; border-top: 1px solid rgba(255, 255, 255, 0.07); border-bottom: 0; color: rgba(255, 255, 255, 0.68); transition: background 160ms ease, color 160ms ease; }
.dash-nav-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.dash-nav-item:hover, .dash-nav-item:focus-visible, .dash-nav-item[aria-current="page"] { background: var(--trust); color: #20201f; }
.dash-nav-item > span { font-family: var(--mono); font-size: 0.58rem; opacity: 0.7; }
.dash-nav-item > i { width: 14px; height: 14px; border: 1px solid currentColor; box-shadow: inset 4px 0 0 transparent, inset 0 4px 0 transparent; }
.dash-nav-item[aria-current="page"] > i { box-shadow: inset 4px 0 0 currentColor, inset 0 4px 0 currentColor; }
.dash-nav-item strong { font-size: 0.79rem; font-weight: 700; letter-spacing: -0.01em; }

.topbar.dash-topbar { height: 72px; display: grid; grid-template-columns: minmax(120px, 1fr) minmax(260px, 360px) 44px auto; align-items: center; gap: 10px; padding: 0 18px 0 clamp(20px, 3.4vw, 52px); }
.dash-topbar > p { display: flex; gap: 10px; margin: 0; color: rgba(255, 255, 255, 0.53); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; }
.dash-topbar > p span { color: var(--trust); }
.dash-topbar-space { min-width: 0; }

.dash-search { position: relative; }
.dash-search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0; background: rgba(255, 255, 255, 0.04); color: #fffdf8; outline: 0; font-size: 0.85rem; }
.dash-search input::placeholder { color: rgba(255, 255, 255, 0.45); }
.dash-search::before { content: ''; position: absolute; z-index: 1; left: 16px; top: 14px; width: 12px; height: 12px; border: 1px solid rgba(255, 255, 255, 0.65); border-radius: 50%; }
.dash-search::after { content: ''; position: absolute; z-index: 1; left: 27px; top: 26px; width: 6px; height: 1px; transform: rotate(45deg); background: rgba(255, 255, 255, 0.65); }
.dash-search input:focus-visible { border-color: var(--trust); outline: 2px solid var(--trust); outline-offset: 1px; }
.dash-search-results { position: absolute; top: calc(100% + 7px); right: 0; left: 0; z-index: 50; border: 1px solid rgba(255, 255, 255, 0.24); background: #20201f; box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28); max-height: min(60vh, 430px); overflow-y: auto; }
.dash-search-results button { width: 100%; min-height: 58px; display: grid; gap: 4px; padding: 10px 12px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); background: transparent; color: #fffdf8; text-align: left; cursor: pointer; }
.dash-search-results button:hover, .dash-search-results button:focus-visible { background: var(--trust); color: #20201f; }
.dash-search-results button strong { font-size: 0.8rem; }
.dash-search-results button span, .dash-search-results p { font-family: var(--mono); font-size: 0.54rem; text-transform: uppercase; }
.dash-search-results p { margin: 0; padding: 16px; color: rgba(255, 255, 255, 0.6); }

.dash-notification, .dash-menu-button { min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.14); background: transparent; color: #fffdf8; cursor: pointer; }
.dash-notification { position: relative; font-size: 1.3rem; }
.dash-notification i { position: absolute; top: 5px; right: 5px; width: 16px; height: 16px; display: grid; place-items: center; background: var(--trust); color: #20201f; font-family: var(--mono); font-size: 0.55rem; font-style: normal; }
.dash-user { display: flex; align-items: center; gap: 10px; color: #fffdf8; }
.dash-user > span { width: 44px; height: 44px; }
.dash-user strong { font-size: 0.72rem; white-space: nowrap; }
.dash-user .dash-signout { margin-left: 6px; color: rgba(255, 255, 255, 0.5); font: 0.6rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.dash-user .dash-signout:hover { color: #fffdf8; }
.dash-user-link > span { display: grid; place-items: center; background: var(--trust); color: #20201f; font-family: var(--mono); font-weight: 800; }

.dash-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.dash-menu-button { display: none; }
@media (max-width: 920px) {
  .dash-menu-button { display: grid; }
  .topbar.dash-topbar { grid-template-columns: 44px auto minmax(140px, 1fr) 44px auto; padding: 0 12px; }
  .dash-user strong, .dash-user .dash-signout { display: none; }
}
@media (max-width: 700px) {
  .dash-topbar > p { display: none; }
}
