/* Silo evidence: one stylesheet for every page, including pages published before the
   redesign (they link /_/report.css, which serves this file).

   The look follows the siloserver.org docs: deep navy or cool off-white surfaces, one blue
   accent, Plus Jakarta Sans (the wordmark's typeface) for text and IBM Plex Mono for data,
   hairlines and rounded corners. Captures sit in a dark console in both themes. Status
   colors keep their meaning: amber waits on review, green is cleared, red is a hard stop. */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/_/fonts/plus-jakarta-sans.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("/_/fonts/plus-jakarta-sans-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/_/fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/_/fonts/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/_/fonts/ibm-plex-mono-600.woff2") format("woff2"); }

/* Light: the docs' cool off-white page, white surfaces, brand blue. */
:root {
  color-scheme: light;
  --paper: #f7f8fa;
  --paper-high: #ffffff;
  --paper-dim: #eff1f4;
  --ink: #0b0e14;
  --ink-soft: #39414b;
  --ink-mute: #5a6370;
  --ink-faint: #88909b;
  --rule: #d3d8de;
  --rule-soft: #e3e7eb;
  --blue: #0142fb;
  --blue-wash: rgba(1, 66, 251, 0.1);
  --accent: #0142fb;
  --accent-ink: #ffffff;
  --red: #c4083e;
  --red-wash: rgba(245, 11, 79, 0.08);
  --amber: #b85400;
  --amber-wash: rgba(250, 118, 4, 0.1);
  --green: #13804a;
  --green-wash: rgba(19, 128, 74, 0.09);
  --purple: #6d3fd1;
  --shadow: 0 10px 30px rgba(11, 14, 20, 0.12), 0 1px 3px rgba(11, 14, 20, 0.08);
  --bar-bg: var(--paper-high);
  --wordmark-dark: block;
  --wordmark-white: none;
  --console: #0b1118;
  --console-elev: #141d27;
  --console-rule: #263341;
  --console-ink: #f1f4f8;
  --console-mute: #8b96a5;
  --console-dim: #5d6979;
  --console-before: #fa7604;
  --console-after: #3ccf8e;
  --console-accent: #7ba4ff;
  /* The mark's colors: the play triangle's blue and the bars' red and orange. */
  --brand-blue: #0142fb;
  --brand-red: #f50b4f;
  --brand-orange: #fa7604;
  --ff-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --page: 1320px;
}

/* Dark: the docs' deep navy. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101820; --paper-high: #141d27; --paper-dim: #1c2632;
  --ink: #f1f4f8; --ink-soft: #bfc8d3; --ink-mute: #8b96a5; --ink-faint: #5d6979;
  --rule: #263341; --rule-soft: #1e2a35;
  --blue: #7ba4ff; --blue-wash: rgba(47, 107, 255, 0.18);
  --accent: #2f6bff; --accent-ink: #ffffff;
  --red: #ff3d6e; --red-wash: rgba(255, 61, 110, 0.14);
  --amber: #ff9a3c; --amber-wash: rgba(250, 118, 4, 0.14);
  --green: #4cc98a; --green-wash: rgba(76, 201, 138, 0.13);
  --purple: #b39cff;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
  --console: #0b1118; --console-elev: #172230; --console-rule: #263341;
  --bar-bg: var(--paper); --wordmark-dark: none; --wordmark-white: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #101820; --paper-high: #141d27; --paper-dim: #1c2632;
    --ink: #f1f4f8; --ink-soft: #bfc8d3; --ink-mute: #8b96a5; --ink-faint: #5d6979;
    --rule: #263341; --rule-soft: #1e2a35;
    --blue: #7ba4ff; --blue-wash: rgba(47, 107, 255, 0.18);
    --accent: #2f6bff; --accent-ink: #ffffff;
    --red: #ff3d6e; --red-wash: rgba(255, 61, 110, 0.14);
    --amber: #ff9a3c; --amber-wash: rgba(250, 118, 4, 0.14);
    --green: #4cc98a; --green-wash: rgba(76, 201, 138, 0.13);
    --purple: #b39cff;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
    --console: #0b1118; --console-elev: #172230; --console-rule: #263341;
    --bar-bg: var(--paper); --wordmark-dark: none; --wordmark-white: block;
  }
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.6 var(--ff-body); letter-spacing: 0.005em; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 0.25em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -40px; z-index: 40; padding: 8px 12px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); }
.skip:focus { top: 8px; }

/* ---------- Type roles ---------- */
.mono { font-family: var(--ff-mono); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-mute); }
.eyebrow { font: 600 13px/1.4 var(--ff-body); letter-spacing: 0; color: var(--ink-mute); }
.display { margin: 0; font-family: var(--ff-display); font-weight: 650; line-height: 1.08; letter-spacing: -0.02em; }
.display--page { margin-top: 6px; font-size: clamp(36px, 5vw, 52px); font-weight: 600; line-height: 1.05; }
.display--title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 650; line-height: 1.12; text-wrap: balance; overflow-wrap: anywhere; }
.lede { max-width: 70ch; margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
mark { padding: 0 2px; border-radius: 3px; color: inherit; background: var(--blue-wash); }

/* ---------- Shell: the docs header ---------- */
.bar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--rule-soft); background: color-mix(in srgb, var(--bar-bg) 92%, transparent); backdrop-filter: blur(12px) saturate(120%); }
/* A thin stripe in the mark's colors along the header's bottom edge, as on the docs. */
.bar::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2.5px; background: linear-gradient(90deg, transparent, var(--brand-blue) 25%, var(--brand-red) 55%, var(--brand-orange) 80%, transparent); opacity: 0.45; pointer-events: none; }
.bar__inner { display: flex; align-items: center; gap: 8px; max-width: 1480px; min-height: 64px; margin: 0 auto; padding: 0 24px; font: 500 14px/1 var(--ff-body); color: var(--ink-mute); }
.bar__cell { display: inline-flex; flex: none; align-items: center; gap: 10px; padding: 0 8px; white-space: nowrap; }
.bar__cell:first-child { padding-left: 0; }
.bar__cell--end { padding-right: 0; }
.bar__brand { gap: 6px; align-items: baseline; margin-right: 12px; color: var(--ink); text-decoration: none; }
.bar__wordmark { width: auto; height: 28px; }
.bar__wordmark--dark { display: var(--wordmark-dark); }
.bar__wordmark--white { display: var(--wordmark-white); }
/* "Evidence" sits on the wordmark's baseline like the docs' "Docs": the wordmark's typeface,
   extra bold and uppercase, raised to the middle of the o. */
.bar__product { position: relative; bottom: 6.5px; font: 800 15.5px/1 var(--ff-display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); -webkit-text-stroke: 0.25px currentColor; }
/* Only the links scroll when the header runs out of room; the brand and controls keep their size. */
.bar__nav { display: flex; flex: 0 1 auto; min-width: 0; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.bar__nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: var(--radius); color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.bar__nav a:hover { color: var(--ink); background: var(--paper-dim); }
.bar__nav a[aria-current="page"] { color: var(--ink); font-weight: 650; background: var(--blue-wash); }
.bar__count { padding: 3px 6px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1; background: var(--amber); color: var(--paper-high); }
.bar__spacer { flex: 1; }
.bar__search { display: inline-flex; align-items: center; gap: 8px; width: 320px; height: 38px; padding: 0 8px 0 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-dim); color: var(--ink); font: 14px/1 var(--ff-body); }
.bar__search:focus-within { border-color: var(--accent); }
.bar__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; }
.bar__search input::placeholder { color: var(--ink-mute); }
kbd { min-width: 1.35rem; padding: 2px 5px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper-high); color: var(--ink-mute); font: 500 11px/1.2 var(--ff-mono); text-align: center; }
.bar__user { gap: 8px; color: var(--ink); font-size: 14px; }
.bar__theme { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: transparent; color: var(--ink-mute); cursor: pointer; }
.bar__theme:hover { color: var(--ink); border-color: var(--ink-faint); }
.bar__menu { position: relative; }
.bar__menu summary { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius); cursor: pointer; list-style: none; }
.bar__menu summary:hover { background: var(--paper-dim); }
.bar__menu summary::-webkit-details-marker { display: none; }
.bar__menu[open] .bar__dropdown { display: block; }
.bar__dropdown { position: absolute; right: 0; top: calc(100% + 8px); display: none; min-width: 210px; padding: 6px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper-high); box-shadow: var(--shadow); }
.bar__dropdown a, .bar__dropdown button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: 500 14px/1.2 var(--ff-body); text-align: left; text-decoration: none; cursor: pointer; }
.bar__dropdown a:hover, .bar__dropdown button:hover { background: var(--paper-dim); }

/* ---------- Layout ---------- */
.page { max-width: var(--page); margin: 0 auto; padding: 44px 32px 96px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.page-head__stats { display: flex; gap: 32px; }
.stat { text-align: right; }
.stat__value { font: 650 32px/1 var(--ff-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat__value--amber { color: var(--amber); }
.stat__value--red { color: var(--red); }
.stat__label { margin-top: 4px; font: 500 13px/1.5 var(--ff-body); color: var(--ink-mute); }
.footer { max-width: var(--page); margin: 0 auto; padding: 20px 32px 40px; border-top: 1px solid var(--rule-soft); font: 13px/1.5 var(--ff-body); color: var(--ink-mute); }

/* ---------- Atoms ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink-soft); font: 500 12.5px/1.2 var(--ff-body); text-decoration: none; white-space: nowrap; }
.tag--solid { border-color: var(--rule); background: var(--paper-high); color: var(--ink); }
.tag a, .tag button { padding: 0; border: 0; background: none; color: var(--ink-faint); font-size: 14px; line-height: 1; text-decoration: none; cursor: pointer; }
.stamp { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 999px; font: 650 12px/1.2 var(--ff-body); white-space: nowrap; }
.stamp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stamp--review { color: var(--amber); background: var(--amber-wash); }
.stamp--ok { color: var(--green); background: var(--green-wash); }
.stamp--missing { color: var(--red); background: var(--red-wash); }
.stamp--quiet { color: var(--ink-mute); background: var(--paper-dim); }
.pr-state { padding: 2px 8px; border: 1px solid; border-radius: 999px; font: 600 12px/1.3 var(--ff-body); }
.pr-state--open { color: var(--green); }
.pr-state--merged { color: var(--purple); }
.pr-state--closed { color: var(--ink-mute); }
.avatar { display: inline-grid; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink-soft); color: #fff; font: 700 10px/1 var(--ff-body); text-transform: uppercase; }
.avatar--lg { width: 30px; height: 30px; font-size: 12px; }
.avatar--c0 { background: #0142fb; } .avatar--c1 { background: #b85400; } .avatar--c2 { background: #13804a; }
.avatar--c3 { background: #6d3fd1; } .avatar--c4 { background: #39414b; } .avatar--c5 { background: #c4083e; }
.who { display: inline-flex; align-items: center; gap: 7px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-high); color: var(--ink); font: 600 14px/1 var(--ff-body); text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { border-color: var(--ink-faint); }
.btn--primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { border-color: color-mix(in srgb, var(--accent) 85%, #000); background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn--ghost { background: transparent; color: var(--ink-soft); }
.btn--ok { border-color: var(--green); background: var(--green); color: #fff; }
.btn--danger { border-color: color-mix(in srgb, var(--red) 45%, transparent); background: transparent; color: var(--red); }
.btn--sm { height: 30px; padding: 0 11px; font-size: 13px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--blue); font: 600 13px/1.2 var(--ff-body); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 0.25em; cursor: pointer; }
.linkbtn--danger { color: var(--red); }
.inline-form { display: inline; margin: 0; }

.input, .select, .textarea { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-high); color: var(--ink); font: 14.5px/1.4 var(--ff-body); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); outline-offset: 0; }
.input--mono { font: 13.5px/1.4 var(--ff-mono); }
.textarea { height: auto; padding: 12px; font: 13.5px/1.6 var(--ff-mono); resize: vertical; }
.select { padding-right: 30px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%), linear-gradient(-45deg, transparent 50%, var(--ink-mute) 50%); background-position: right 15px top 17px, right 10px top 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.label { display: block; margin: 0 0 6px; font: 600 13.5px/1.4 var(--ff-body); color: var(--ink); }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--ink-mute); }
.field + .field { margin-top: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Notices read like the docs' light-mode asides: a tinted fill with a coloured left edge. */
.notice { margin: 22px 0 0; padding: 14px 18px; border: 1px solid var(--rule-soft); border-left: 4px solid var(--accent); border-radius: 4px var(--radius) var(--radius) 4px; background: color-mix(in srgb, var(--accent) 6%, var(--paper-high)); }
.notice--error { border-left-color: var(--red); background: color-mix(in srgb, var(--red) 6%, var(--paper-high)); }
.notice--ok { border-left-color: var(--green); background: color-mix(in srgb, var(--green) 6%, var(--paper-high)); }
.notice--review { border-left-color: var(--amber); background: color-mix(in srgb, var(--amber) 6%, var(--paper-high)); }
.notice__k { margin-right: 10px; font: 700 14px/1.4 var(--ff-body); color: var(--ink); }
.notice--error .notice__k { color: var(--red); }
.notice--ok .notice__k { color: var(--green); }
.empty { padding: 56px 0; text-align: center; color: var(--ink-mute); }
.empty__title { margin: 0 0 8px; font: 650 26px/1.2 var(--ff-display); letter-spacing: -0.02em; color: var(--ink); }
.empty p { max-width: 52ch; margin: 0 auto 16px; }

/* ---------- Message pages (errors, sign-in) ---------- */
.message { max-width: 720px; margin: 0 auto; padding: 80px 32px 96px; }
.message p { max-width: 60ch; font-size: 17px; color: var(--ink-soft); }
.message .actions { display: flex; gap: 10px; margin-top: 26px; }
.codebox, pre.token { margin: 16px 0; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--console-rule); border-radius: var(--radius); background: var(--console); color: var(--console-ink); font: 13px/1.6 var(--ff-mono); white-space: pre-wrap; word-break: break-all; user-select: all; }

/* ---------- Search, views, facets ---------- */
.searchline { display: flex; gap: 10px; margin: 24px 0 14px; }
.searchbox { display: flex; flex: 1; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper-high); }
.searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.searchbox svg { flex: none; color: var(--ink-mute); }
.searchbox input { flex: 1; appearance: none; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 14px/1 var(--ff-mono); }
.searchbox__hint { font: 12px/1 var(--ff-mono); color: var(--ink-faint); white-space: nowrap; }
.searchbox--sm { flex: 0 0 340px; height: 40px; }
.views { display: flex; gap: 4px; margin-top: 6px; overflow-x: auto; border-bottom: 1px solid var(--rule); scrollbar-width: none; }
.views a { display: inline-flex; align-items: center; gap: 8px; margin-bottom: -1px; padding: 11px 12px 10px; border-bottom: 2px solid transparent; color: var(--ink-mute); font: 500 14px/1 var(--ff-body); text-decoration: none; white-space: nowrap; }
.views a:hover { color: var(--ink); }
.views a[aria-current="page"] { color: var(--ink); font-weight: 650; border-bottom-color: var(--accent); }
.views .n { padding: 2px 6px; border-radius: 999px; background: var(--paper-dim); font: 600 11.5px/1.2 var(--ff-body); color: var(--ink-mute); }
.views a[aria-current="page"] .n { background: var(--amber-wash); color: var(--amber); }
.inbox { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 36px; margin-top: 26px; }
.facets { font-size: 14px; }
.facets > summary { display: none; }
.facet + .facet { margin-top: 26px; }
.facet__title { margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--rule-soft); color: var(--ink); }
.facet__row { display: flex; align-items: center; gap: 9px; padding: 5px 0; color: var(--ink-soft); text-decoration: none; }
.facet__row:hover { color: var(--ink); }
.facet__row .n { margin-left: auto; font: 12.5px/1 var(--ff-body); font-variant-numeric: tabular-nums; color: var(--ink-faint); }
.facet__row--on { color: var(--ink); font-weight: 650; }
.check { display: inline-grid; flex: none; place-items: center; width: 16px; height: 16px; border: 1.5px solid var(--ink-faint); border-radius: 4px; }
.facet__row--on .check { border-color: var(--accent); background: var(--accent); }
.facet__row--on .check::after { content: ""; width: 6px; height: 3px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.facet__more { display: inline-block; margin-top: 6px; font: 600 13px/1 var(--ff-body); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 12px; }
.toolbar__clear { font-size: 13px; }
.saveview { position: relative; }
.saveview > summary { height: 46px; list-style: none; }
.saveview > summary::-webkit-details-marker { display: none; }
.saveview__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; width: 320px; padding: 16px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper-high); box-shadow: var(--shadow); }
.saveview__form { display: grid; gap: 10px; }
.saveview__list { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--rule-soft); list-style: none; font-size: 14px; }
.saveview__list li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.toolbar__end { margin-left: auto; font: 13px/1 var(--ff-body); color: var(--ink-mute); }
.toolbar__end b, .toolbar__end a[aria-current="true"] { color: var(--ink); font-weight: 650; }
.toolbar__end a { color: var(--ink-mute); text-decoration: none; }
.toolbar__end a:hover { color: var(--ink); }

/* ---------- Evidence rows ---------- */
.list { border-top: 1px solid var(--rule); }
.list--spaced { margin-top: 26px; }
.row { display: grid; grid-template-columns: 232px minmax(0, 1fr) 170px; align-items: start; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule-soft); color: inherit; text-decoration: none; }
.row { position: relative; }
.row:hover .row__title { color: var(--blue); }
/* The title link covers the whole row; controls in the row sit above it. */
.row__link { text-decoration: none; }
.row__link::after { content: ""; position: absolute; inset: 0; }
.row__link:focus-visible { outline: none; }
.row__link:focus-visible::after { border-radius: var(--radius); outline: 2px solid var(--accent); outline-offset: 2px; }
.row__action { position: relative; z-index: 1; margin: 0; }
.waiting { margin: 26px 0 34px; }
.waiting .list { border-top: 0; }
.row--plain { grid-template-columns: minmax(0, 1fr) 170px; }
.strip { position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; height: 112px; padding: 3px; overflow: hidden; border: 1px solid var(--console-rule); border-radius: var(--radius); background: var(--console); }
.strip img { width: 100%; height: 100%; min-height: 0; border-radius: 4px; object-fit: cover; object-position: center; }
.strip img:first-child { grid-row: 1 / 3; }
.strip img:only-child { grid-column: 1 / 3; }
.strip__more { position: absolute; right: 6px; bottom: 6px; padding: 3px 6px; border-radius: 999px; background: rgba(11, 17, 24, 0.88); color: var(--console-ink); font: 650 11px/1 var(--ff-body); }
.strip--text { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 16px; }
.strip--text b { font: 650 12.5px/1 var(--ff-body); color: var(--console-ink); }
.strip--text span { overflow: hidden; font: 12px/1.4 var(--ff-mono); color: var(--console-mute); text-overflow: ellipsis; white-space: nowrap; }
.row__where { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 13px/1.3 var(--ff-body); color: var(--ink-mute); }
.row__where b { color: var(--ink); font-weight: 650; }
.row__title { display: block; margin: 6px 0 5px; font: 650 17.5px/1.35 var(--ff-body); letter-spacing: -0.01em; color: var(--ink); overflow-wrap: anywhere; }
.row__summary { display: -webkit-box; margin: 0; overflow: hidden; font-size: 14.5px; color: var(--ink-soft); -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 9px; font: 13px/1.3 var(--ff-body); color: var(--ink-mute); }
.row__meta .who { color: var(--ink-soft); }
.row__build { max-width: 32ch; overflow: hidden; font-family: var(--ff-mono); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.row__status { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.row__status small { font: 12.5px/1.35 var(--ff-body); color: var(--ink-mute); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font: 600 13.5px/1 var(--ff-body); }

/* ---------- Evidence page ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 13.5px/1.3 var(--ff-body); color: var(--ink-mute); }
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--ink-faint); }
.versions-menu { position: relative; }
.versions-menu summary { cursor: pointer; list-style: none; }
.versions-menu summary::-webkit-details-marker { display: none; }
.versions-menu__list { position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; min-width: 270px; padding: 6px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper-high); box-shadow: var(--shadow); }
.versions-menu__list a { display: flex; justify-content: space-between; gap: 16px; padding: 8px 10px; border-radius: 6px; color: var(--ink-soft); font: 13px/1.3 var(--ff-body); text-decoration: none; }
.versions-menu__list a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.versions-menu__list a:hover { background: var(--paper-dim); }
.doc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; margin-top: 18px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* The facts about a version, in a bordered panel like the docs' sidebar. */
.sheet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 28px 0 0; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper-high); }
.sheet__cell { min-width: 0; padding: 14px 18px 16px; border-left: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.sheet__cell:nth-child(4n + 1) { border-left: 0; }
.sheet__cell:nth-last-child(-n + 4) { border-bottom: 0; }
.sheet__k { font: 600 13px/1.5 var(--ff-body); color: var(--ink-mute); }
.sheet__v { margin-top: 4px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.sheet__v .mono { font-size: 13.5px; }
.sheet__sub { display: block; margin-top: 3px; font: 13px/1.4 var(--ff-body); color: var(--ink-mute); }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; margin-top: 40px; }
.doc--wide { grid-template-columns: minmax(0, 1fr); }

/* Prose: evidence notes, and pages published before the redesign. Headings and lists follow
   the docs' article styles. */
.prose { min-width: 0; line-height: 1.7; }
.prose h2 { margin: 44px 0 12px; font: 650 28px/1.15 var(--ff-display); letter-spacing: -0.025em; scroll-margin-top: 84px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 10px; font: 650 21px/1.2 var(--ff-display); letter-spacing: -0.02em; scroll-margin-top: 84px; }
.prose h4, .prose h5, .prose h6 { margin: 22px 0 8px; font: 650 16px/1.3 var(--ff-body); }
.prose p { max-width: 74ch; margin: 0 0 14px; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { max-width: 74ch; margin: 0 0 14px; padding-left: 22px; }
.prose ul > li::marker { color: var(--ink-faint); }
.prose li + li { margin-top: 4px; }
/* Numbered steps get round counters, as on the docs. */
.prose ol:not(li ol, [start]) { counter-reset: step; padding-left: 0; list-style: none; }
.prose ol:not(li ol, [start]) > li { position: relative; counter-increment: step; padding-left: 2.6rem; }
.prose ol:not(li ol, [start]) > li + li { margin-top: 0.55rem; }
.prose ol:not(li ol, [start]) > li::before { content: counter(step); position: absolute; left: 0; top: 0.12rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--paper-dim); color: var(--ink); font: 700 12px/1 var(--ff-body); }
.prose blockquote { margin: 0 0 14px; padding: 2px 0 2px 14px; border-left: 3px solid var(--rule); color: var(--ink-mute); }
.prose code, .message :not(pre) > code, .empty code, .hint code, .notice code { padding: 0.1em 0.35em; border: 1px solid var(--rule-soft); border-radius: 5px; background: var(--paper-dim); font: 0.86em/1 var(--ff-mono); overflow-wrap: anywhere; }
.prose pre { margin: 0 0 16px; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-high); font: 13px/1.6 var(--ff-mono); }
.prose pre code { padding: 0; border: 0; background: none; font: inherit; }
.prose table { width: 100%; margin: 0 0 16px; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule-soft); text-align: left; vertical-align: top; }
.prose th { border-bottom: 1px solid var(--rule); font: 700 14px/1.4 var(--ff-body); color: var(--ink); }
.prose hr { margin: 32px 0; border: 0; border-top: 1px solid var(--rule); }
.prose img { max-width: 100%; max-height: min(70vh, 760px); border: 1px solid var(--rule); border-radius: 6px; }

/* The console: where captures live. A capture keeps its shape but stops at --shot-max tall, so
   a portrait phone screenshot shrinks to fit the screen and centers on black instead of
   filling the column and running a page and a half. The lightbox still shows it full size. */
.console, .shots { --shot-max: min(70vh, 760px); }
.console { margin: 18px 0 22px; overflow: hidden; border: 1px solid var(--console-rule); border-radius: var(--radius-lg); background: var(--console); color: var(--console-ink); }
.console__head { display: flex; align-items: center; min-height: 44px; padding: 0 0 0 16px; border-bottom: 1px solid var(--console-rule); font: 500 13px/1 var(--ff-body); color: var(--console-mute); }
.console__head .lit { color: var(--console-ink); font-weight: 650; }
.console__dot { width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--console-after); }
.console__spacer { flex: 1; }
.modes { display: flex; align-self: stretch; }
.modes button { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border: 0; border-left: 1px solid var(--console-rule); background: none; color: var(--console-mute); font: inherit; cursor: pointer; }
.modes button:hover { color: var(--console-ink); }
.modes button[aria-pressed="true"] { background: var(--console-elev); color: var(--console-ink); box-shadow: inset 0 -2px 0 var(--console-accent); }
.modes kbd { border-color: var(--console-rule); background: transparent; color: var(--console-mute); }
.console .stage { position: relative; background: #000; }
.console[data-compare] .pair-panel { background: #000; }
.compare { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; overflow: hidden; background: #000; user-select: none; touch-action: pan-y; }
.compare img { width: auto; max-width: 100%; height: auto; max-height: var(--shot-max); }
.compare__before { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: left top; clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); }
.compare__divider { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; margin-left: -1px; background: var(--console-ink); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); pointer-events: none; }
.compare__handle { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 36px; height: 36px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--console-ink); color: var(--console); font: 700 13px/1 var(--ff-body); letter-spacing: -0.1em; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__range:focus-visible + .compare__divider .compare__handle { outline: 2px solid var(--console-accent); outline-offset: 2px; }
.compare__label { position: absolute; top: 12px; display: inline-flex; flex-direction: column; gap: 4px; padding: 6px 10px; border: 1px solid var(--console-rule); border-radius: var(--radius); background: rgba(11, 17, 24, 0.86); font: 700 12.5px/1.1 var(--ff-body); pointer-events: none; }
.compare__label small { font-weight: 400; color: var(--console-mute); }
.compare__label--before { left: 12px; color: var(--console-before); }
.compare__label--after { right: 12px; color: var(--console-after); text-align: right; }
.sbs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--console-rule); }
.sbs figure { position: relative; margin: 0; background: #000; }
.sbs img { width: auto; max-width: 100%; height: auto; max-height: var(--shot-max); margin: 0 auto; }
.sbs .compare__label--after { right: auto; left: 12px; text-align: left; }
.console[data-mode="slider"] .sbs, .console[data-mode="flip"] .sbs, .console[data-mode="sbs"] .compare { display: none; }
.console[data-mode="flip"] .compare__before { clip-path: none; }
.console[data-mode="flip"][data-flip="after"] .compare__before { visibility: hidden; }
.console[data-mode="flip"] .compare__divider, .console[data-mode="flip"] .compare__range { display: none; }
.console[data-mode="flip"]:not([data-flip="after"]) .compare__label--after, .console[data-mode="flip"][data-flip="after"] .compare__label--before { display: none; }
.console__caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 12px 16px; border-top: 1px solid var(--console-rule); background: var(--console); font-size: 14px; }
.console__caption .k { margin-right: 6px; font: 700 13px/1 var(--ff-body); }
.console__caption .b { color: var(--console-before); }
.console__caption .a { color: var(--console-after); }
.pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--console-rule); }
.pair { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 0; border-right: 1px solid var(--console-rule); background: none; color: var(--console-mute); font-size: 13px; text-align: left; cursor: pointer; }
.pair:last-child { border-right: 0; }
.pair img { width: 64px; aspect-ratio: 16 / 10; border-radius: 4px; object-fit: cover; object-position: top left; opacity: 0.75; }
.pair[aria-current="true"] { background: var(--console-elev); color: var(--console-ink); box-shadow: inset 0 2px 0 var(--console-accent); }
.pair[aria-current="true"] img { opacity: 1; }
.pair .n { font: 650 12px/1 var(--ff-body); color: var(--console-dim); }
.pair[aria-current="true"] .n { color: var(--console-accent); }
.console[data-pair] .pair-panel { display: none; }
.console[data-pair] .pair-panel[data-active] { display: block; }
/* Without the script, every pair shows side by side and the controls stay hidden. */
.console[data-compare]:not([data-enhanced]) .modes, .console[data-compare]:not([data-enhanced]) .pairs { display: none; }
.console:not([data-pair]) .pair-panel + .pair-panel { border-top: 1px solid var(--console-rule); }
.console__count { color: var(--console-mute); }
.console:fullscreen { --shot-max: 80vh; display: flex; flex-direction: column; justify-content: safe center; overflow: auto; border-radius: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 3px; padding: 3px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 6px; background: #000; }
.gallery img { width: auto; max-width: 100%; height: auto; max-height: var(--shot-max); margin: 0 auto; }
.gallery video { width: 100%; max-height: var(--shot-max); }
.gallery figcaption, .console figure > figcaption { padding: 8px 12px; background: var(--console); color: var(--console-mute); font-size: 13px; }
.console video { width: 100%; max-height: var(--shot-max); background: #000; }
.console a.shot { display: block; cursor: zoom-in; }
.attach { margin: 0 0 16px; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-high); }
.attach > summary { display: flex; align-items: center; gap: 12px; padding: 11px 14px; font: 13px/1.2 var(--ff-mono); list-style: none; cursor: pointer; }
.attach > summary:hover { background: var(--paper-dim); }
.attach > summary::-webkit-details-marker { display: none; }
.attach > summary::before { content: "▸"; color: var(--ink-mute); }
.attach[open] > summary::before { content: "▾"; }
.attach__size { color: var(--ink-mute); }
.attach__open { margin-left: auto; font-family: var(--ff-body); }
.attach pre { max-height: 520px; margin: 0; overflow: auto; border: 0; border-top: 1px solid var(--rule-soft); border-radius: 0; counter-reset: line; }
.attach pre .l { display: block; padding-left: 4.2em; text-indent: -4.2em; }
.attach__cut { color: var(--ink-mute); font-style: italic; }
.attach pre .l::before { content: counter(line); counter-increment: line; display: inline-block; width: 3.4em; margin-right: 0.8em; color: var(--ink-faint); text-align: right; text-indent: 0; }

/* Right rail: the docs' "On this page" column. */
.rail { position: sticky; top: 88px; display: flex; flex-direction: column; align-self: start; gap: 28px; font-size: 14px; }
.rail__title { margin-bottom: 8px; padding-bottom: 0; color: var(--ink); font-size: 15px; font-weight: 650; }
.toc a { display: block; padding: 4px 0 4px 12px; border-left: 2px solid var(--rule-soft); color: var(--ink-mute); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink-faint); }
.toc a[aria-current="true"] { color: var(--blue); font-weight: 600; border-left-color: var(--accent); }
.filelist div:not(.rail__title), .versions div:not(.rail__title) { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font: 12.5px/1.4 var(--ff-mono); }
.filelist a { overflow: hidden; color: var(--ink-soft); text-overflow: ellipsis; white-space: nowrap; }
.filelist .size, .versions .when { color: var(--ink-faint); white-space: nowrap; }
.versions a { color: var(--ink-mute); text-decoration: none; }
.versions .cur, .versions .cur a { color: var(--ink); font-weight: 600; }
.reviewbox { padding: 16px; border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); border-radius: var(--radius-lg); background: var(--amber-wash); }
.reviewbox--ok { border-color: color-mix(in srgb, var(--green) 40%, transparent); background: var(--green-wash); }
.reviewbox p { margin: 8px 0 12px; font-size: 13.5px; color: var(--ink-soft); }
.danger-zone > summary { display: inline; list-style: none; cursor: pointer; }
.danger-zone > summary::-webkit-details-marker { display: none; }
.danger-zone .panel-form { margin-top: 10px; }

/* ---------- Upload ---------- */
.pr-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 18px; border: 1px solid var(--rule-soft); border-left: 4px solid var(--red); border-radius: 4px var(--radius) var(--radius) 4px; background: var(--paper-high); }
.pr-strip--ok { border-left-color: var(--green); }
.pr-strip__k { font: 700 13.5px/1.2 var(--ff-body); color: var(--red); }
.pr-strip--ok .pr-strip__k { color: var(--green); }
.pr-strip__t { font-weight: 650; }
.pr-strip__why { margin-left: auto; font: 13px/1.4 var(--ff-body); color: var(--ink-mute); }
.compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 36px; margin-top: 30px; }
.panel-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.panel-title h2 { margin: 0; font: 650 22px/1.2 var(--ff-display); letter-spacing: -0.02em; }
.mdbar { display: flex; overflow: hidden; border: 1px solid var(--rule); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--paper-dim); }
.mdbar button { padding: 8px 12px; border: 0; border-right: 1px solid var(--rule); background: none; color: var(--ink-soft); font: 500 12.5px/1 var(--ff-mono); cursor: pointer; }
.mdbar button:hover { color: var(--ink); }
.mdbar__tabs { display: flex; margin-left: auto; }
.mdbar__tabs button { border-right: 0; border-left: 1px solid var(--rule); font-family: var(--ff-body); }
.mdbar__tabs button[aria-pressed="true"] { background: var(--paper-high); color: var(--ink); font-weight: 650; }
.mdbar + .textarea { border-radius: 0 0 var(--radius) var(--radius); }
.preview { min-height: 320px; padding: 16px; border: 1px solid var(--rule); border-radius: 0 0 var(--radius) var(--radius); background: var(--paper-high); }
.captures .console__head { justify-content: space-between; padding-right: 14px; }
.drop { margin: 14px; padding: 20px; border: 1.5px dashed var(--console-dim); border-radius: var(--radius); color: var(--console-mute); font: 13.5px/1.5 var(--ff-body); text-align: center; }
.drop b { color: var(--console-ink); font-weight: 650; }
.drop--over { border-color: var(--console-accent); background: var(--console-elev); }
.drop label { color: var(--console-accent); text-decoration: underline; cursor: pointer; }
.cap { display: grid; grid-template-columns: 22px 120px minmax(0, 1fr); align-items: start; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--console-rule); }
.cap__grip { padding-top: 26px; border: 0; background: none; color: var(--console-dim); font: 14px/1 var(--ff-mono); letter-spacing: -2px; cursor: grab; }
.cap__thumb { display: grid; place-items: center; width: 120px; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--console-rule); border-radius: 6px; background: var(--console-elev); color: var(--console-mute); font: 650 11px/1 var(--ff-body); }
.cap__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.cap__name { display: flex; justify-content: space-between; gap: 8px; color: var(--console-ink); font: 12.5px/1.3 var(--ff-mono); overflow-wrap: anywhere; }
.cap__name .size { flex: none; color: var(--console-mute); }
.cap__caption { width: 100%; height: 32px; margin: 7px 0 8px; padding: 0 10px; border: 1px solid var(--console-rule); border-radius: 6px; background: var(--console-elev); color: var(--console-ink); font: 13.5px/1 var(--ff-body); }
.cap__caption:focus { border-color: var(--console-accent); outline: none; }
.cap__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cap__remove { margin-left: auto; padding: 0; border: 0; background: none; color: var(--console-mute); font: 12.5px/1 var(--ff-body); text-decoration: underline; cursor: pointer; }
.cap__error { margin-top: 6px; color: #ff6b8f; font: 12.5px/1.4 var(--ff-body); }
.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--console-rule); border-radius: 6px; }
.seg button { padding: 5px 10px; border: 0; background: none; color: var(--console-mute); font: 650 12px/1 var(--ff-body); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--console-rule); }
.seg button[aria-pressed="true"][data-role="before"] { background: var(--console-before); color: var(--console); }
.seg button[aria-pressed="true"][data-role="after"] { background: var(--console-after); color: var(--console); }
.seg button[aria-pressed="true"][data-role="other"] { background: var(--console-ink); color: var(--console); }
.cap__pair { font: 12px/1 var(--ff-body); color: var(--console-mute); }
.progress { height: 3px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: var(--console-rule); }
.progress i { display: block; width: 0; height: 100%; background: var(--console-accent); }
.captures__foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--console-rule); color: var(--console-mute); font: 13px/1.4 var(--ff-body); }
.meter { width: 180px; height: 6px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: var(--console-rule); }
.meter i { display: block; height: 100%; background: var(--console-ink); }
.publishbar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; padding: 14px 0; border-top: 1px solid var(--rule); background: var(--paper); }
.publishbar__note { flex: 1; min-width: 220px; max-width: 420px; }
.publishbar__note-text { flex: 1; font: 13px/1.45 var(--ff-body); color: var(--ink-mute); }
.upload-status { margin-top: 12px; white-space: pre-line; }
.request-access .actions { margin-top: 12px; }
.captures__foot-end { text-align: right; }
.meter i { width: 0; }

/* ---------- Admin and tables ---------- */
.requests { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; margin-top: 24px; }
.request { padding: 18px; border: 1px solid var(--rule); border-left: 4px solid var(--amber); border-radius: 4px var(--radius-lg) var(--radius-lg) 4px; background: var(--paper-high); }
.request__who { display: flex; align-items: center; gap: 10px; }
.request__who b { font-size: 15.5px; font-weight: 650; }
.request dl { display: grid; grid-template-columns: max-content 1fr; gap: 5px 14px; margin: 12px 0 14px; font-size: 13.5px; }
.request dt { font: 600 13px/1.6 var(--ff-body); color: var(--ink-mute); }
.request dd { margin: 0; }
.request__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 14px; }
.table thead th { padding: 10px 12px 9px 0; border-bottom: 1px solid var(--rule); font: 650 13px/1.4 var(--ff-body); text-align: left; color: var(--ink-mute); white-space: nowrap; }
.table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
.table .who b { font-weight: 650; }
.table .who small { display: block; font: 12.5px/1.3 var(--ff-body); color: var(--ink-mute); }
.table .act { text-align: right; white-space: nowrap; }
.table .act > * + * { margin-left: 12px; }
.table-wrap { overflow-x: auto; }
.settings { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin-top: 26px; }
.panel-form { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper-high); }
.panel-form .panel-title { margin-bottom: 4px; }
.key-created pre.token { margin-bottom: 0; }
.code-big { font-size: 28px; letter-spacing: 0.2em; text-align: center; user-select: all; }
.views--flush { margin-top: 0; }
.ban { position: relative; display: inline-block; margin-left: 12px; }
.ban > summary { display: inline; list-style: none; }
.ban > summary::-webkit-details-marker { display: none; }
.limits { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.limits__form { display: grid; gap: 8px; }
.ban__form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; display: grid; gap: 8px; width: 280px; padding: 14px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper-high); box-shadow: var(--shadow); text-align: left; white-space: normal; }
.role { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; padding: 3px 9px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-soft); font: 600 12px/1.2 var(--ff-body); }
.role--team { border-color: var(--ink-faint); color: var(--ink); }
.role--team::before { content: "GH"; padding: 1px 4px; border-radius: 3px; background: var(--ink); color: var(--paper-high); font-size: 9px; font-weight: 700; }
.role--grant { border-color: color-mix(in srgb, var(--blue) 50%, transparent); color: var(--blue); }
.role--banned { border-color: color-mix(in srgb, var(--red) 50%, transparent); background: var(--red-wash); color: var(--red); }
.storage { display: flex; align-items: center; gap: 8px; font: 12.5px/1 var(--ff-body); color: var(--ink-mute); }
.storage__bar { width: 80px; height: 5px; overflow: hidden; border-radius: 999px; background: var(--rule-soft); }
.storage__bar i { display: block; height: 100%; background: var(--ink-soft); }
.storage__bar i.hot { background: var(--amber); }

/* ---------- Screenshot viewer (/_/lightbox.js) ---------- */
a.shot { cursor: zoom-in; }
html.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; background: #070b10; color: var(--console-ink); }
.lightbox[hidden] { display: none; }
.lightbox-figure { display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 12px; height: 100vh; height: 100dvh; margin: 0; padding: 56px 0 20px; overflow-y: auto; }
.lightbox-image { display: block; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); border-radius: 6px; object-fit: contain; background: var(--console); }
.lightbox-caption { max-width: 80ch; margin: 0; color: var(--console-ink); font-size: 1.05rem; line-height: 1.4; text-align: center; }
.lightbox-meta { display: flex; gap: 16px; color: var(--console-mute); font: 13px/1 var(--ff-body); }
.lightbox-meta a { color: var(--console-accent); }
.lightbox button { justify-self: center; padding: 4px 12px; border: 0; border-radius: var(--radius); background: none; color: inherit; font: 2.75rem/1 var(--ff-body); cursor: pointer; }
.lightbox button:hover:not(:disabled), .lightbox button:focus-visible { background: rgba(255, 255, 255, 0.12); outline: none; }
.lightbox button:disabled { opacity: 0.2; cursor: default; }
.lightbox .lightbox-close { position: absolute; top: 10px; right: 14px; font-size: 2.25rem; }

/* ---------- Pages published before the redesign ----------
   Their markup is a bare <main> (no class) holding .site, h1, dl.meta, Markdown (.shots of figures), table.files, footer. */
body > main:not([class]) { max-width: 1180px; margin: 0 auto; padding: 0 32px 96px; }
body > main:not([class]) > .site { margin: 0 0 40px; border-bottom: 1px solid var(--rule); font: 650 15px/64px var(--ff-body); }
body > main:not([class]) > .site a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
body > main:not([class]) > .site a::before { content: ""; width: 7px; height: 22px; background: url("/_/mark.svg") no-repeat center / contain; }
body > main:not([class]) > h1 { margin: 0; font: 650 clamp(28px, 3.6vw, 40px)/1.12 var(--ff-display); letter-spacing: -0.02em; text-wrap: balance; }
dl.meta { display: grid; grid-template-columns: repeat(2, max-content minmax(0, 1fr)); gap: 0; margin: 28px 0 32px; padding: 0 18px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper-high); }
dl.meta dt { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule-soft); font: 600 13px/1.6 var(--ff-body); color: var(--ink-mute); }
dl.meta dd { margin: 0; padding: 11px 24px 11px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; }
dl.meta dt:nth-last-of-type(-n + 2), dl.meta dd:nth-last-of-type(-n + 2) { border-bottom: 0; }
body > main:not([class]) h2 { margin: 44px 0 12px; font: 650 28px/1.15 var(--ff-display); letter-spacing: -0.025em; }
body > main:not([class]) p, body > main:not([class]) li { max-width: 74ch; }
body > main:not([class]) :not(pre) > code { padding: 0.1em 0.35em; border: 1px solid var(--rule-soft); border-radius: 5px; background: var(--paper-dim); font: 0.86em/1 var(--ff-mono); }
body > main:not([class]) pre { padding: 14px 16px; overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-high); font: 13px/1.6 var(--ff-mono); }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 3px; margin: 18px 0 22px; padding: 3px; overflow: hidden; border: 1px solid var(--console-rule); border-radius: var(--radius-lg); background: var(--console); }
.shots figure { margin: 0; overflow: hidden; border-radius: 6px; background: #000; }
.shots img { width: auto; max-width: 100%; height: auto; max-height: var(--shot-max); margin: 0 auto; }
.shots video { width: 100%; max-height: var(--shot-max); }
.shots figcaption { padding: 8px 12px; background: var(--console); color: var(--console-mute); font-size: 13px; }
body > main:not([class]) > video, body > main:not([class]) p > video { width: 100%; max-height: min(70vh, 760px); border: 1px solid var(--console-rule); border-radius: var(--radius); background: #000; }
table.files { width: 100%; border-collapse: collapse; font: 13px/1.4 var(--ff-mono); }
table.files th { padding: 10px 12px 9px 0; border-bottom: 1px solid var(--rule); font: 650 13px/1.4 var(--ff-body); text-align: left; color: var(--ink-mute); }
table.files td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule-soft); }
table.files td:nth-child(n + 2) { color: var(--ink-mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
body > main:not([class]) > footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule-soft); font: 13px/1.5 var(--ff-body); color: var(--ink-mute); }

/* ---------- Narrow screens ---------- */
@media (max-width: 1100px) {
  .bar__user-name { display: none; }
  .bar__search { width: 220px; }
}
@media (max-width: 820px) {
  .bar__search { display: none; }
}
@media (max-width: 1080px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; order: -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
  .compose { grid-template-columns: minmax(0, 1fr); }
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet__cell:nth-child(4n + 1) { border-left: 1px solid var(--rule-soft); }
  .sheet__cell:nth-child(2n + 1) { border-left: 0; }
  .sheet__cell:nth-last-child(-n + 4) { border-bottom: 1px solid var(--rule-soft); }
  .sheet__cell:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 900px) {
  .inbox { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .facets { padding: 0; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper-high); }
  .facets > summary { display: block; padding: 13px 16px; font: 650 14px/1 var(--ff-body); cursor: pointer; }
  .facets > .facet { padding: 0 16px; }
  .facets > .facet:last-child { padding-bottom: 16px; }
  .row { grid-template-columns: 160px minmax(0, 1fr); }
  .row--plain { grid-template-columns: minmax(0, 1fr); }
  .row__status { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; }
  .row--plain .row__status { grid-column: 1; }
  .strip { height: 92px; }
  .doc-head { grid-template-columns: minmax(0, 1fr); }
  .page-head { flex-wrap: wrap; align-items: flex-start; }
  .page-head__stats { gap: 20px; }
  .stat { text-align: left; }
}
@media (max-width: 640px) {
  .page, .message { padding: 24px 16px 72px; }
  .bar__inner { gap: 4px; min-height: 56px; padding: 0 12px; }
  .bar__cell { padding: 0 4px; }
  .bar__wordmark { height: 24px; }
  .bar__product { bottom: 5.5px; font-size: 13px; }
  .bar__nav a { padding: 8px; }
  .bar__product, .bar__search, .bar__user-name { display: none; }
  .searchline { flex-wrap: wrap; }
  .searchbox__hint { display: none; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row__status { grid-column: 1; }
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .sheet__cell, .sheet__cell:nth-child(n) { border-left: 0; border-bottom: 1px solid var(--rule-soft); }
  .sheet__cell:last-child { border-bottom: 0; }
  .two { grid-template-columns: 1fr; }
  .modes kbd { display: none; }
  .modes button { padding: 0 10px; }
  .sbs { grid-template-columns: 1fr; }
  .cap { grid-template-columns: 90px minmax(0, 1fr); }
  .cap__grip { display: none; }
  .cap__thumb { width: 90px; }
  dl.meta { grid-template-columns: max-content minmax(0, 1fr); }
  .lightbox { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .lightbox button { padding: 4px 6px; font-size: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
