@font-face {
  font-family: "Schibsted Grotesk";
  src: url("vendor/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("vendor/fonts/martian-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("vendor/fonts/martian-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* Identity: a vault ledger. Warm-grey paper, a deep vault-green rail, ink for actions and one
   teal accent for focus, links and live data. Allowed calls stay neutral; only exceptions get a
   hue (red blocked, amber key removed). Secrets render as security-envelope tint. */
:root {
  color-scheme: light;
  --bg: oklch(0.968 0.004 120);
  --surface: oklch(0.992 0.002 120);
  --surface-2: oklch(0.948 0.005 120);
  --surface-3: oklch(0.915 0.007 120);
  --ink: oklch(0.21 0.012 180);
  --ink-2: oklch(0.4 0.012 180);
  --ink-3: oklch(0.5 0.012 180);
  --line: oklch(0.895 0.006 120);
  --line-strong: oklch(0.8 0.008 120);
  --control: oklch(0.6 0.01 150);
  --line-input: oklch(0.66 0.01 150);
  --accent: oklch(0.52 0.1 188);
  --accent-hover: oklch(0.46 0.1 188);
  --accent-ink: oklch(0.985 0.004 120);
  --accent-soft: oklch(0.93 0.035 188);
  --accent-text: oklch(0.47 0.1 190);
  --action: oklch(0.22 0.014 180);
  --action-hover: oklch(0.32 0.016 180);
  --action-ink: oklch(0.975 0.004 120);
  --ok: oklch(0.5 0.11 160);
  --ok-soft: oklch(0.94 0.035 160);
  --block: oklch(0.53 0.19 25);
  --block-soft: oklch(0.955 0.03 25);
  --warn: oklch(0.5 0.12 65);
  --warn-soft: oklch(0.955 0.05 85);
  --rail: oklch(0.255 0.035 172);
  --rail-2: oklch(0.31 0.04 172);
  --rail-ink: oklch(0.95 0.012 160);
  --rail-ink-2: oklch(0.78 0.025 165);
  --rail-line: oklch(0.36 0.035 172);
  --seal-bg: oklch(0.8 0.025 225);
  --seal-a: oklch(0.6 0.06 235);
  --seal-b: oklch(0.7 0.045 230);
  --scrim: oklch(0.2 0.02 180 / 0.35);
  --shadow: 0 12px 40px oklch(0.25 0.03 180 / 0.14), 0 2px 6px oklch(0.25 0.03 180 / 0.06);
  --radius: 10px;
  --radius-sm: 7px;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* Martian Mono runs wide, so it comes in two sizes only. */
  --mono-s: 11.5px;
  --mono-m: 12.5px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --rail-w: 236px;
  --tabbar: 0px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: oklch(0.175 0.006 170);
    --surface: oklch(0.205 0.007 170);
    --surface-2: oklch(0.24 0.008 170);
    --surface-3: oklch(0.28 0.01 170);
    --ink: oklch(0.95 0.005 150);
    --ink-2: oklch(0.8 0.01 160);
    --ink-3: oklch(0.69 0.012 165);
    --line: oklch(0.29 0.009 170);
    --line-strong: oklch(0.38 0.011 170);
    --control: oklch(0.52 0.012 170);
    --line-input: oklch(0.5 0.012 170);
    --accent: oklch(0.78 0.11 185);
    --accent-hover: oklch(0.84 0.1 185);
    --accent-ink: oklch(0.2 0.03 185);
    --accent-soft: oklch(0.31 0.05 185);
    --accent-text: oklch(0.8 0.1 185);
    --action: oklch(0.93 0.008 150);
    --action-hover: oklch(1 0 0);
    --action-ink: oklch(0.18 0.01 170);
    --ok: oklch(0.78 0.13 160);
    --ok-soft: oklch(0.29 0.05 160);
    --block: oklch(0.74 0.15 25);
    --block-soft: oklch(0.29 0.06 25);
    --warn: oklch(0.82 0.13 82);
    --warn-soft: oklch(0.3 0.05 82);
    --rail: oklch(0.2 0.022 172);
    --rail-2: oklch(0.26 0.03 172);
    --rail-ink: oklch(0.94 0.01 160);
    --rail-ink-2: oklch(0.74 0.02 165);
    --rail-line: oklch(0.29 0.025 172);
    --seal-bg: oklch(0.42 0.03 230);
    --seal-a: oklch(0.6 0.05 230);
    --seal-b: oklch(0.52 0.04 230);
    --scrim: oklch(0.08 0.01 170 / 0.6);
    --shadow: 0 16px 48px oklch(0 0 0 / 0.5), 0 2px 8px oklch(0 0 0 / 0.3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(0.175 0.006 170);
  --surface: oklch(0.205 0.007 170);
  --surface-2: oklch(0.24 0.008 170);
  --surface-3: oklch(0.28 0.01 170);
  --ink: oklch(0.95 0.005 150);
  --ink-2: oklch(0.8 0.01 160);
  --ink-3: oklch(0.69 0.012 165);
  --line: oklch(0.29 0.009 170);
  --line-strong: oklch(0.38 0.011 170);
  --control: oklch(0.52 0.012 170);
  --line-input: oklch(0.5 0.012 170);
  --accent: oklch(0.78 0.11 185);
  --accent-hover: oklch(0.84 0.1 185);
  --accent-ink: oklch(0.2 0.03 185);
  --accent-soft: oklch(0.31 0.05 185);
  --accent-text: oklch(0.8 0.1 185);
  --action: oklch(0.93 0.008 150);
  --action-hover: oklch(1 0 0);
  --action-ink: oklch(0.18 0.01 170);
  --ok: oklch(0.78 0.13 160);
  --ok-soft: oklch(0.29 0.05 160);
  --block: oklch(0.74 0.15 25);
  --block-soft: oklch(0.29 0.06 25);
  --warn: oklch(0.82 0.13 82);
  --warn-soft: oklch(0.3 0.05 82);
  --rail: oklch(0.2 0.022 172);
  --rail-2: oklch(0.26 0.03 172);
  --rail-ink: oklch(0.94 0.01 160);
  --rail-ink-2: oklch(0.74 0.02 165);
  --rail-line: oklch(0.29 0.025 172);
  --seal-bg: oklch(0.42 0.03 230);
  --seal-a: oklch(0.6 0.05 230);
  --seal-b: oklch(0.52 0.04 230);
  --scrim: oklch(0.08 0.01 170 / 0.6);
  --shadow: 0 16px 48px oklch(0 0 0 / 0.5), 0 2px 8px oklch(0 0 0 / 0.3);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--accent-text); text-decoration: underline; text-decoration-color: color-mix(in oklch, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
[hidden] { display: none !important; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.8em; letter-spacing: -0.01em; }
code { font-size: var(--mono-m); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.ink-2 { color: var(--ink-2); }
.ti { font-size: 1.15em; vertical-align: -0.12em; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

.skip-link { position: absolute; left: 8px; top: -60px; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 8px; }

/* ---------- shell: vault rail on the left, work area on the right ---------- */
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100dvh; }
.shell:has(.sidebar[hidden]) { grid-template-columns: minmax(0, 1fr); }
.content { min-width: 0; }
.sidebar {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 22px;
  padding: 18px 12px 14px; background: var(--rail); color: var(--rail-ink);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -0.03em; padding: 4px 8px; }
/* The Diaphragm mark: four blades (masked shape) closed around a core square. */
.mark { width: 22px; height: 22px; flex: none; position: relative; --mark-blades: var(--rail-ink); --mark-core: oklch(0.82 0.1 185); }
.mark::before {
  content: ""; position: absolute; inset: 0; background: var(--mark-blades);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 8 84 84'%3E%3Cpath d='M8 34H60V8H8ZM66 60H92V8H66ZM8 92H34V40H8ZM40 92H92V66H40Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 8 84 84'%3E%3Cpath d='M8 34H60V8H8ZM66 60H92V8H66ZM8 92H34V40H8ZM40 92H92V66H40Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mark::after { content: ""; position: absolute; left: 38.1%; top: 38.1%; width: 23.8%; height: 23.8%; background: var(--mark-core); }
.signin .mark { --mark-blades: var(--ink); --mark-core: var(--accent); }
.nav { display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: 8px;
  color: var(--rail-ink-2); text-decoration: none; font-weight: 550; font-size: 15px;
  transition: background-color 150ms ease, color 150ms ease;
}
.nav a .ti { font-size: 19px; vertical-align: 0; }
.nav a:hover { color: var(--rail-ink); background: color-mix(in oklch, var(--rail-2) 70%, transparent); }
.nav a[aria-current="page"] { color: var(--rail-ink); background: var(--rail-2); }
.nav a[aria-current="page"] .ti { color: var(--accent); }
.nav .count { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--rail-ink-2); }
.nav .count.live:not(:empty) { color: var(--accent-ink); background: var(--block); padding: 4px 6px; border-radius: 5px; font-weight: 500; }
/* Demo sits apart from the everyday screens. */
.nav .nav-demo { margin-top: 10px; position: relative; }
.nav .nav-demo::before { content: ""; position: absolute; left: 10px; right: 10px; top: -6px; height: 1px; background: var(--rail-line); }
.side-foot { margin-top: auto; display: grid; gap: 8px; }
.sim-note {
  display: grid; gap: 1px; text-align: left; padding: 9px 10px; border-radius: 8px;
  border: 1px dashed var(--rail-line); background: transparent; color: var(--rail-ink);
}
.sim-note:hover { border-color: var(--rail-ink-2); }
.sim-title { font-size: 13px; font-weight: 650; }
.sim-sub { font-size: 12px; color: var(--rail-ink-2); }
.kill {
  display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px; border-radius: 8px;
  border: 1px solid color-mix(in oklch, var(--block) 55%, var(--rail)); background: transparent; color: oklch(0.86 0.07 25); font-weight: 600; font-size: 14px;
  transition: background-color 150ms ease, transform 140ms var(--ease-out);
}
.kill:hover { background: color-mix(in oklch, var(--block) 22%, var(--rail)); }
.kill:active { transform: scale(0.98); }
.side-row { display: flex; align-items: center; gap: 4px; }
.side-row .menu-wrap { flex: 1; min-width: 0; }
.acct { width: 100%; display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--rail-ink-2); font-weight: 550; text-align: left; }
.acct:hover { background: var(--rail-2); color: var(--rail-ink); }
.acct .ti { font-size: 19px; vertical-align: 0; }
.sidebar .icon-btn { color: var(--rail-ink-2); }
.sidebar .icon-btn:hover { background: var(--rail-2); color: var(--rail-ink); }

.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center; flex: none;
  border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--ink-2); font-size: 18px;
  transition: background-color 150ms ease, color 150ms ease, transform 140ms var(--ease-out);
}
.icon-btn .ti { vertical-align: 0; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn.small { width: 30px; height: 30px; font-size: 15px; }

.menu-wrap { position: relative; }
.menu {
  position: absolute; left: 0; bottom: calc(100% + 8px); min-width: 280px; z-index: 30;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 6px; transform-origin: bottom left;
  animation: pop 160ms var(--ease-out);
}
.menu .menu-item { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: transparent; border-radius: 6px; text-align: left; color: var(--ink); text-decoration: none; }
.menu .menu-item:hover, .menu .menu-item:focus-visible { background: var(--surface-2); }
.menu .menu-item.danger { color: var(--block); }
.menu .menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu .menu-note { padding: 8px 10px; font-size: 13px; color: var(--ink-3); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 140ms var(--ease-out);
}
.btn:hover { background: var(--surface-2); border-color: var(--control); }
.btn:active { transform: scale(0.97); }
.btn i { font-size: 17px; }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.btn.primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.quiet:hover { background: var(--surface-2); color: var(--ink); }
.btn.danger { background: var(--block); border-color: var(--block); color: var(--accent-ink); }
.btn.danger-outline { color: var(--block); border-color: color-mix(in oklch, var(--block) 45%, transparent); background: transparent; }
.btn.danger-outline:hover { background: var(--block-soft); border-color: var(--block); }
.btn.small { height: 32px; padding: 0 12px; font-size: 14px; }
.btn.small i { font-size: 15px; }
.btn.block-w { width: 100%; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent-text); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in oklch, currentColor 40%, transparent); text-underline-offset: 3px; }
.link-btn:hover { text-decoration-color: currentColor; }

/* ---------- kill banner ---------- */
.kill-banner {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  background: var(--block-soft); color: var(--ink); border-bottom: 1px solid color-mix(in oklch, var(--block) 35%, transparent);
}
.kill-banner i { color: var(--block); font-size: 20px; }
.kill-banner span { flex: 1; }

/* ---------- page frame ---------- */
main { outline: none; }
.page { max-width: 1320px; margin: 0 auto; padding: 28px 24px 48px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; line-height: 1.15; font-weight: 750; letter-spacing: -0.03em; }
.page-head p { color: var(--ink-2); margin-top: 6px; max-width: 64ch; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 15px; font-weight: 650; letter-spacing: -0.005em; }
.panel-head .sub { color: var(--ink-3); font-size: 13px; }
.panel-body { padding: 16px 18px; }
.section-title { font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 8px; }

/* ---------- overview ---------- */
.ov { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.hero { padding: 14px 0 24px; }
.hero h1 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 760; max-width: 24ch; text-wrap: balance; }
.hero p { margin-top: 14px; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.hero .actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero .btn { height: 42px; padding: 0 18px; font-size: 15px; }

.today { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.today .stat { padding: 12px 16px 12px 0; }
.today .stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat .label { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; margin-top: 2px; }
.stat .delta { font-size: 12.5px; color: var(--ink-3); }

/* The live wire: what the agent sends next to what actually leaves. */
.wire { overflow: hidden; }
.wire-cols { display: grid; grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr); }
.wire-cols > div { padding: 10px 18px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.wire-cols > div:nth-child(2) { text-align: center; padding-inline: 0; }
.wire-head { border-bottom: 1px solid var(--line); background: var(--surface-2); }
/* Six rows of fixed height, so the list never clips a row and the panel never jumps. */
.wire-list { min-height: 360px; position: relative; }
.wire-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr); align-items: center;
  border-bottom: 1px solid var(--line); height: 60px;
  animation: wire-in 420ms var(--ease-out);
}
.wire-row:last-child { border-bottom: 0; }
.wire-hold { padding: 8px 18px; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); background: var(--surface-2); }
.wire-row > div { padding: 8px 18px; min-width: 0; }
.wire-row .req { font-family: var(--mono); font-size: var(--mono-s); line-height: 1.5; }
.wire-row .req .line1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.wire-row .req .line2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); }
.wire-row .gate { display: flex; flex-direction: column; align-items: center; gap: 3px; padding-inline: 4px; }
.wire-row .gate .agent { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 124px; }
/* A secret is drawn as the tint pattern of a security envelope: you can see something is there,
   never what. */
.sealed {
  display: inline-block; height: 1.05em; width: 12ch; vertical-align: -0.18em; border-radius: 2px;
  background-color: var(--seal-bg);
  background-image:
    repeating-linear-gradient(45deg, var(--seal-a) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, var(--seal-b) 0 1px, transparent 1px 4px);
}
.wire-row.blocked .out { color: var(--block); }
.wire-row .out .stopped { font-family: var(--sans); font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.wire-row .out .why { font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wire-empty { padding: 40px 18px; text-align: center; color: var(--ink-3); }
@keyframes wire-in { from { opacity: 0; transform: translateY(-10px); } }

.verdict { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; font-family: var(--sans); }
.verdict i { font-size: 13px; }
.verdict.allowed { color: var(--ink-2); background: var(--surface-2); }
.verdict.allowed .ti { color: var(--ok); }
.verdict.blocked { color: var(--block); background: var(--block-soft); }
.verdict.redacted { color: var(--warn); background: var(--warn-soft); }
.verdict.admin { color: var(--ink-2); background: var(--surface-2); }
.verdict.error { color: var(--warn); background: var(--warn-soft); }
.verdict.none { color: var(--ink-2); background: var(--surface-2); }

.side { display: grid; gap: 16px; }
.attn { list-style: none; margin: 0; padding: 6px 0; }
.attn li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 18px; }
.attn li + li { border-top: 1px solid var(--line); }
.attn .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; }
.attn .ic.high { color: var(--block); background: var(--block-soft); }
.attn .ic.medium { color: var(--warn); background: var(--warn-soft); }
.attn .ic.low { color: var(--ink-2); background: var(--surface-2); }
.attn .t { font-weight: 600; font-size: 14px; line-height: 1.35; }
.attn .d { font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.attn .d a { font-weight: 600; }
.attn-empty { padding: 18px; color: var(--ink-3); font-size: 14px; }
.attn .times { font: 500 var(--mono-s)/1 var(--mono); color: var(--ink-3); margin-left: 4px; white-space: nowrap; }
.attn li.attn-more { display: block; padding: 10px 18px; font-size: 13.5px; font-weight: 600; }

.agents { list-style: none; margin: 0; padding: 4px 0; }
.agents li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 18px; font-size: 14px; }
.agents .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.agents .who i { font-size: 18px; color: var(--ink-3); }
.agents .seen { font-size: 12.5px; color: var(--ink-3); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); flex: none; }
.dot.on { background: var(--ok); }

.spark { display: block; width: 100%; height: 56px; }
.spark .a { fill: var(--accent); opacity: 0.9; }
.spark .b { fill: var(--block); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
table.grid th:first-child { border-top-left-radius: var(--radius); }
table.grid th:last-child { border-top-right-radius: var(--radius); }
table.grid td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tbody tr { transition: background-color 120ms ease; }
table.grid tbody tr.clickable { cursor: pointer; }
table.grid tbody tr.clickable:hover { background: var(--surface-2); }
table.grid tbody tr[aria-current="true"] { background: var(--accent-soft); }
table.grid .right { text-align: right; }
.cell-main { font-weight: 600; }
.cell-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.prov { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 5px; border-radius: 5px; font: 500 10.5px/1 var(--mono); letter-spacing: -0.02em; color: var(--ink-2); background: var(--surface-3); margin-right: 10px; vertical-align: 1px; }
.name-cell { display: flex; align-items: center; }

/* Handle chip: a claim ticket. The notch on the left edge is the motif. */
.ticket {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 12px;
  font: 500 var(--mono-s)/1 var(--mono); letter-spacing: -0.02em; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 5px; position: relative; white-space: nowrap;
  -webkit-mask: radial-gradient(circle 4px at 0 50%, transparent 3.5px, #000 4px);
  mask: radial-gradient(circle 4px at 0 50%, transparent 3.5px, #000 4px);
}
.ticket.revoked { text-decoration: line-through; color: var(--ink-3); }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.status.active { color: var(--ink-2); }
.status.paused { color: var(--warn); }
.status.revoked, .status.expired { color: var(--ink-3); }

.meter { display: grid; gap: 4px; min-width: 120px; }
.meter .row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); gap: 8px; }
.meter .bar { height: 5px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.meter .bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width 400ms var(--ease-out); }
.meter.warn .bar span { background: var(--warn); }
.meter.full .bar span { background: var(--block); }

.switch { position: relative; width: 36px; height: 20px; border-radius: 999px; border: 0; background: var(--control); padding: 0; transition: background-color 160ms ease; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px oklch(0 0 0 / 0.25); transition: transform 180ms var(--ease-out); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(16px); }
.switch:disabled { opacity: 0.4; }

/* ---------- split views ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.split.policies { grid-template-columns: 220px minmax(0, 1fr) 320px; }
.sticky { position: sticky; top: 20px; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.chip.mono { font-family: var(--mono); font-size: var(--mono-s); }
.chip button { border: 0; background: none; padding: 0; color: var(--ink-3); display: grid; place-items: center; }
.chip button:hover { color: var(--block); }

.code {
  position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: 400 var(--mono-m)/1.6 var(--mono); padding: 12px 14px; overflow-x: auto; white-space: pre; color: var(--ink);
}
.code:has(.copy) { padding-right: 48px; }
.code .copy { position: absolute; top: 6px; right: 6px; }
.code .c { color: var(--ink-3); }
.code .k { color: var(--accent-text); }

.hlist { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; max-height: calc(100dvh - 220px); overflow: auto; }
.hlist button { width: 100%; text-align: left; display: grid; gap: 3px; padding: 9px 10px; border-radius: var(--radius-sm); border: 0; background: transparent; }
.hlist button:hover { background: var(--surface-2); }
.hlist button[aria-current="true"] { background: var(--accent-soft); }
.hlist .l1 { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.hlist .l2 { font: 400 var(--mono-s)/1.3 var(--mono); color: var(--ink-3); }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.field .err { font-size: 12.5px; color: var(--block); }
.input, select.input, textarea.input {
  width: 100%; height: 38px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-input); background: var(--surface); color: var(--ink); font-size: 14.5px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
textarea.input { height: auto; min-height: 84px; padding: 9px 12px; line-height: 1.5; resize: vertical; font-family: var(--mono); font-size: var(--mono-m); }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 22%, transparent); }
.input.mono { font-family: var(--mono); font-size: var(--mono-m); }
.input[aria-invalid="true"] { border-color: var(--block); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.prefix-input { position: relative; }
.prefix-input .pre { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.prefix-input .input { padding-left: 24px; }
.suffix-input { position: relative; }
.suffix-input .suf { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; font-size: 13px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; inset: 0; }
.check-pill span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line-input); font-size: var(--mono-s); font-weight: 500; color: var(--ink-2); background: var(--surface); cursor: pointer; font-family: var(--mono); }
.check-pill input:checked + span { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.check-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.prov-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.prov-pick label { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: 14px; }
.prov-pick input { position: absolute; opacity: 0; }
.prov-pick label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.prov-pick label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.prov-pick .prov { margin: 0; }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.fs-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; }
.fs-title i { font-size: 18px; color: var(--ink-3); }
.fs-note { font-size: 13px; color: var(--ink-3); margin-top: -8px; }
.locked { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13.5px; color: var(--ink-2); }
.locked i { font-size: 18px; color: var(--ok); }
.callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.callout i { font-size: 18px; color: var(--ink-3); flex: none; margin-top: 1px; }
.callout.warn { background: var(--warn-soft); color: var(--ink); }
.callout.warn i { color: var(--warn); }
.callout.ok { background: var(--ok-soft); color: var(--ink); }
.callout.ok i { color: var(--ok); }
.callout strong { color: var(--ink); }
.savebar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; background: color-mix(in oklch, var(--surface) 94%, transparent); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); backdrop-filter: blur(6px); }
.divider { height: 1px; background: var(--line); margin: 4px 0; }

.trace { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.trace li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 6px 0; font-size: 13.5px; }
.trace li i { font-size: 17px; margin-top: 1px; }
.trace li.ok i { color: var(--ok); }
.trace li.fail i { color: var(--block); }
.trace li.na { color: var(--ink-3); }
.trace li.na i { color: var(--line-strong); }
.trace .r { font-weight: 600; }
.trace .d { color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }

/* ---------- activity ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px oklch(0 0 0 / 0.08); }
.search { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search .input { padding-left: 34px; height: 36px; }
.live-btn[aria-pressed="true"] i { color: var(--ok); }
.chart24 { display: block; width: 100%; height: 90px; }
.chart24.h70 { height: 64px; }
.chart24.h90 { height: 110px; }
.axis-row { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart24 .a { fill: var(--accent); opacity: 0.9; }
.chart24 .b { fill: var(--block); }
.chart24 .axis { fill: var(--ink-3); font: 500 10.5px var(--sans); }
.chart-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.chart-legend .la { background: var(--accent); }
.chart-legend .lb { background: var(--block); }
.act-row td { font-size: 13.5px; }
.act-row .when { color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.act-row .target { font-family: var(--mono); font-size: var(--mono-s); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-row .target .m { color: var(--ink-3); margin-right: 6px; }
.act-row.fresh { animation: fresh 1.6s ease; }
@keyframes fresh { from { background: var(--accent-soft); } }
.load-more { display: flex; justify-content: center; padding: 14px; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.docs nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs nav .group { font-size: 12.5px; font-weight: 650; color: var(--ink-3); margin: 16px 10px 6px; }
.docs nav .group:first-child { margin-top: 0; }
.docs nav a { display: block; padding: 7px 10px; border-radius: 7px; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.docs nav a:hover { background: var(--surface-2); color: var(--ink); }
.docs nav a[aria-current="page"] { background: var(--surface-3); color: var(--ink); font-weight: 600; }
.prose { max-width: 74ch; font-size: 16px; line-height: 1.65; }
.prose h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 12px; }
.prose h2 { font-size: 19px; margin: 32px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; color: var(--ink-2); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose .code { margin: 0 0 16px; }
.prose code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.prose .code code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; margin-bottom: 18px; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink-3); font-weight: 600; font-size: 13px; }
.prose td { color: var(--ink-2); }
.prose .lede { font-size: 18px; color: var(--ink-2); }
.next { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- demo ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.transcript { display: grid; gap: 12px; padding: 18px; }
.msg { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; animation: wire-in 360ms var(--ease-out); }
.msg .av { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; background: var(--surface-2); color: var(--ink-2); }
.msg.user .av { background: var(--accent-soft); color: var(--accent-text); }
.msg .who { font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 3px; }
.msg .body { font-size: 14.5px; line-height: 1.5; }
.toolcall { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.toolcall .tc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--surface-2); font: 500 var(--mono-s)/1.4 var(--mono); }
.toolcall .tc-head .target { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolcall .tc-body { padding: 10px 12px; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 6px; }
.toolcall .tc-body pre { margin: 0; font: 400 var(--mono-s)/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.redact-mark { background: var(--warn-soft); color: var(--warn); border-radius: 3px; padding: 0 3px; font-weight: 500; }
.injection { border-left: 3px solid var(--warn); padding: 10px 14px; background: var(--warn-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.injection .t { font-weight: 650; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.injection .t i { color: var(--warn); }
.injection q { display: block; margin-top: 6px; font: 400 var(--mono-s)/1.6 var(--mono); color: var(--ink-2); quotes: none; }
.demo-before { display: grid; gap: 14px; }
/* Numbered list with hairlines between items, used where three or more short facts sit together. */
.steps { list-style: none; margin: 0 0 14px; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; padding: 10px 0; font-size: 13.5px; line-height: 1.45; }
.steps li + li { border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 2; font: 500 var(--mono-s)/1.6 var(--mono); color: var(--ink-3); }
.steps strong { color: var(--ink); font-weight: 650; }
.steps span { color: var(--ink-2); }
.outcome { padding: 18px; display: grid; gap: 14px; }
.outcome h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.outcome .verdicts { display: grid; gap: 8px; }
.outcome .verdicts div { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }

/* ---------- drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; animation: fade 200ms ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); z-index: 41;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  animation: drawer-in 320ms var(--ease-drawer);
}
.drawer.closing { animation: drawer-out 200ms var(--ease-out) forwards; }
.drawer-scrim.closing { animation: fade-out 200ms ease forwards; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 18px; letter-spacing: -0.015em; }
.drawer-body { overflow: auto; padding: 20px; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* ---------- toasts ---------- */
.toasts { position: fixed; bottom: calc(20px + var(--tabbar)); left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; width: min(440px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: var(--shadow); animation: toast-in 240ms var(--ease-out); }
.toast i { font-size: 18px; }
.toast.err { background: var(--block); color: var(--accent-ink); }
.toast.leaving { animation: fade-out 180ms ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- sign in ---------- */
.signin { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.signin .box { width: min(420px, 100%); display: grid; gap: 18px; }
.signin h1 { font-size: 26px; letter-spacing: -0.02em; }
.signin p { color: var(--ink-2); }
.signin .wordmark { margin-bottom: 8px; }

.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-3); display: grid; gap: 10px; justify-items: center; }
.empty i { font-size: 28px; }

.once { border: 1px solid color-mix(in oklch, var(--accent) 40%, transparent); background: var(--accent-soft); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 8px; }
.once .tok { display: flex; gap: 8px; align-items: center; }
.once code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: var(--mono-m); background: var(--surface); padding: 8px 10px; border-radius: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1440px) {
  .split.policies { grid-template-columns: 220px minmax(0, 1fr); }
  .split.policies > .tester { grid-column: 2; position: static; }
}
@media (max-width: 1280px) {
  :root { --rail-w: 72px; }
  .sidebar { padding: 16px 10px; align-items: center; }
  .sidebar .brand-name, .sim-note, .nav .count:not(.live) { display: none; }
  /* Labels stay for screen readers; sighted users get the icon and a title tooltip. */
  .nav a > span:not(.count), .kill-label, .acct-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wordmark { padding: 6px; }
  .nav a { width: 46px; justify-content: center; padding: 0; position: relative; }
  .nav .count.live:not(:empty) { position: absolute; top: 2px; right: 0; padding: 2px 4px; font-size: 10px; }
  .nav .nav-demo::before { left: 6px; right: 6px; }
  .kill { width: 46px; justify-content: center; padding: 0; }
  .side-row { flex-direction: column; }
  .acct { width: 46px; justify-content: center; padding: 0; }
  .split.policies { grid-template-columns: 220px minmax(0, 1fr); }
  .ov { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 960px) {
  .ov, .split, .demo { grid-template-columns: minmax(0, 1fr); }
  .split.policies { grid-template-columns: minmax(0, 1fr); }
  .split.policies > .tester { grid-column: auto; }
  .sticky { position: static; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs nav { display: none; }
  .docs .doc-select { display: block; }
}
.doc-select { display: none; margin-bottom: 16px; }
@media (max-width: 760px) {
  :root { --tabbar: calc(62px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: var(--tabbar); }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: sticky; top: 0; z-index: 20; height: 56px; flex-direction: row; align-items: center; justify-content: space-between; padding: 0 10px 0 8px; gap: 8px; }
  .sidebar .brand-name { display: inline; }
  .side-foot { margin: 0; display: flex; align-items: center; gap: 4px; }
  .side-row { flex-direction: row; }
  .kill, .acct { width: 40px; height: 40px; }
  .menu { left: auto; right: 0; bottom: auto; top: calc(100% + 8px); transform-origin: top right; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; height: var(--tabbar);
    display: flex; justify-content: space-around; gap: 0; padding: 6px 4px env(safe-area-inset-bottom, 0px);
    background: var(--rail); border-top: 1px solid var(--rail-line);
  }
  .nav a { flex-direction: column; width: auto; height: 50px; gap: 3px; padding: 0 4px; font-size: 11px; flex: 1; justify-content: center; }
  .nav a > span:not(.count) { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: block; }
  /* Six slots on a phone: Docs moves into the account menu, Demo takes its place. */
  .nav a[data-tab="docs"] { display: none; }
  .nav .nav-demo { margin-top: 0; }
  .nav .nav-demo::before { display: none; }
  .kill-label, .acct-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav a .ti { font-size: 21px; }
  .nav .count, .nav .count.live:not(:empty) { display: none; }
  .page { padding: 18px 16px 32px; }
  .hero { padding-top: 6px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; margin-top: 10px; }
  .hero .actions { margin-top: 16px; }
  .today .delta { display: none; }
  .today { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .today .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .wire-cols, .wire-row { grid-template-columns: minmax(0, 1fr) 96px; }
  .wire-cols > div:nth-child(3) { display: none; }
  /* What leaves the proxy is the point of the panel, so on phones it stacks under the request. */
  .wire-row { height: auto; min-height: 92px; }
  .wire-row > .out { grid-column: 1 / -1; padding-top: 0; }
  .wire-list { min-height: 0; }
  .wire-row .gate .agent { max-width: 90px; }
  .wire-row > div { padding: 8px 12px; }
  .row2, .row3 { grid-template-columns: minmax(0, 1fr); }
  .input, select.input, textarea.input { font-size: 16px; }
  table.grid.stack thead { display: none; }
  table.grid.stack, table.grid.stack tbody, table.grid.stack tr, table.grid.stack td { display: block; width: 100%; }
  table.grid.stack tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  table.grid.stack td { border: 0; padding: 3px 0; }
  table.grid.stack td.hide-sm { display: none; }
  .act-row .target { max-width: 100%; }
  .drawer { width: 100vw; }
  .toolbar .search { max-width: none; flex-basis: 100%; }
}
@media (hover: none) {
  .nav a:hover { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  /* Keep fades, drop movement. */
  .wire-row, .msg, .toast, .drawer, .menu { animation-name: fade !important; }
  * { transition-property: opacity, color, background-color, border-color !important; }
}

.menu-form { display: grid; gap: 10px; padding: 0 10px 10px; }
.sk-stat { height: 44px; }
.meters { display: grid; gap: 12px; }
.gap-b { margin-bottom: 16px; }
.toolbar select.auto-w { width: auto; min-width: 160px; }
.row-test { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; }
.panel-head a.small { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.warn-text { color: var(--warn); font-weight: 600; }
.split > *, .ov > *, .demo > *, .docs > *, .side > * { min-width: 0; }
table.grid td code { white-space: nowrap; }
table.grid td.nowrap { white-space: nowrap; }
.form, .meters { grid-template-columns: minmax(0, 1fr); }

.menu .menu-docs { display: none; }
@media (max-width: 760px) { .menu .menu-docs { display: flex; } }
