/* breken — a Brekfuz product. App · Warm Neutral family of the Brekfuz Design
   System: a flat canvas (no aurora film), liquid-glass surfaces, the
   per-org --brand accent on chrome, monochrome var(--ui-ink-strong) buttons, colour rationed
   to status pills. Tokens come from /bkz/styles.css (vendored verbatim); this
   file only composes them. Light only — the system has no dark family.
   Auth is the Auth · Horizon family: the holographic grid, the 30px card. */

/* The [hidden] attribute means hidden, whatever else a rule says about display.
   Only the UA stylesheet carries this by default, and ANY author `display` beats it —
   `.trow { display: grid }` silently defeated the repo picker's filter, which set
   `row.hidden` to a browser that kept rendering the row. One author rule, with the
   priority to win, so `hidden` stays a truthful API for every script in this app. */
[hidden] { display: none !important; }

/* Published removals first; supporting evidence stays folded. */
.dcq { margin: 24px 0 32px; min-width: 0; color: var(--ui-ink-body); }
.dcq-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dcq-header h2 { color: var(--ui-ink-strong); font-size: 27px; letter-spacing: -.035em; margin: 0 0 7px; font-weight: 550; }
.dcq-header p { margin: 0; font-size: 13px; color: var(--ui-ink-soft); }
.dcq-header .gd-row-run { margin: 0; }
.dcq-metric { display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  gap: 8px; margin: 8px 0 28px; }
.dcq-metric-n { font-size: 48px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05;
  color: var(--ui-ink-strong); font-variant-numeric: tabular-nums; }
.dcq-metric-l { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.dcq-next { border-left: 2px solid var(--bkz-blue-deep); padding: 2px 0 2px 14px; margin: 0 0 22px; max-width: 760px; }
.dcq-next-title { font-size: 12px; color: var(--bkz-blue-deep); }
.dcq-next p { font-size: 12px; line-height: 1.7; color: var(--ui-ink-soft); margin: 5px 0 0; }
/*
 * Left, like everything else on the page.
 *
 * The sweep's headline number and its date were centred while the repository name, the
 * tabs, the PR list and the activity panel all began at the same left edge — so the one
 * block a reader meets first was the one block that did not line up with anything.
 */
.dcq-scan { font-size: 11px; color: var(--ui-ink-soft); margin-bottom: 20px; }
.dcq-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--ui-border); padding-bottom: 12px; margin-top: 24px; }
.dcq-filters { display: flex; gap: 4px; }
.dcq-filters button { border: 1px solid transparent; background: transparent; color: var(--ui-ink-soft); border-radius: 0; padding: 8px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.dcq-filters button[aria-pressed=true] { background: var(--ui-surface); border-color: var(--ui-border); color: var(--ui-ink-strong); }
.dcq-filters button span { margin-left: 6px; opacity: .7; font-variant-numeric: tabular-nums; }
.dcq-toolbar input { width: 230px; min-width: 150px; font-size: 11px; }
/*
 * Removal PRs are the shared list. New markup is kit.ts `listRow` inside `.dcq-item`.
 * Staging still ships the older title · tag · lines · View PR grid — same skin either way.
 */
.dcq-columns { display: none; }
.dcq-list, .dcq-list.uilist { border-top: 1px solid var(--bkz-border-hairline); }
.dcq-item { background: var(--ui-card); border-bottom: 1px solid var(--bkz-border-hairline); }
.dcq-item:hover { background: var(--ui-row-hover); }
.dcq-item .uilist-row { border-bottom: 0; }
.dcq-item .uilist-row:hover { background: transparent; }
.dcq-item:not(:has(.uilist-row)) {
  display: grid; grid-template-columns: minmax(0, 1fr) max-content max-content max-content;
  align-items: center; gap: 10px 16px; padding: 15px 22px;
}
.dcq-row, .dcq-foot { display: contents; }
.dcq-item:not(:has(.uilist-row)) .dcq-main { grid-column: 1; min-width: 0; }
.dcq-item:not(:has(.uilist-row)) .dcq-tag { grid-column: 2; grid-row: 1; }
.dcq-item:not(:has(.uilist-row)) .dcq-lines { grid-column: 3; grid-row: 1; }
.dcq-item:not(:has(.uilist-row)) .dcq-diff { grid-column: 4; grid-row: 1; }
.dcq-item:not(:has(.uilist-row)) .dcq-why { grid-column: 1 / 4; grid-row: 2; }
.dcq-title {
  font-size: var(--bkz-text-md); font-weight: 550; line-height: 1.35;
  color: var(--brand-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-decoration: none; display: block;
}
.dcq-title:hover { color: var(--bkz-blue-deep); }
.dcq-title span[aria-hidden], .dcq-diff span[aria-hidden] { display: none; }
.dcq-sub { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); line-height: 1.4; margin-top: 4px; }
.dcq-item .dcq-why { position: relative; z-index: 1; margin: 0; padding: 0 22px 15px; }
.dcq-item:not(:has(.uilist-row)) .dcq-why { padding: 0; }
.dcq-why > summary { width: fit-content; cursor: pointer; color: var(--ui-ink-muted);
  font-size: var(--bkz-text-sm); padding: 0; }
/* Sweep-card chips stay the small status pills. List rows use `.tag` like reviews. */
.dcq-tag { justify-self: start; font-size: 10px; padding: 1px 6px; line-height: 1.5;
  color: var(--ui-ink-muted); background: var(--ui-sunk); border: 1px solid var(--ui-border);
  border-radius: 4px; white-space: nowrap; }
.dcq-item .dcq-tag.ready, .dcq-tag.ready {
  border-color: color-mix(in srgb, #a371f7 42%, #131211);
  background: color-mix(in srgb, #a371f7 16%, #131211); color: #c4b5fd; }
:root[data-theme="light"] .dcq-item .dcq-tag.ready, :root[data-theme="light"] .dcq-tag.ready {
  border-color: #e8d5ff; background: #fbefff; color: #8250df; }
.dcq-tag.failed { color: var(--bkz-danger-ink); border-color: var(--bkz-danger-border);
  background: var(--bkz-danger-tint); }
.dcq-lines { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); font-variant-numeric: tabular-nums;
  padding: 1px 6px; border: 1px solid var(--ui-border); background: var(--ui-sunk); border-radius: 4px;
  white-space: nowrap; }
.dcq-diff { color: var(--ui-ink-faint); font-size: var(--bkz-text-sm); text-decoration: none;
  white-space: nowrap; }
.dcq-diff:hover { color: var(--ui-ink-strong); text-decoration: none; }
.dcq-detail { max-width: 800px; padding: 0 0 8px; font-size: 12px; line-height: 1.65; min-width: 0; }
.dcq-note, .dcq-footnote { font-size: 11px; color: var(--ui-ink-soft); }
.dcq-sources { list-style: none; margin: 16px 0 0; padding: 0; }
.dcq-sources li { margin-bottom: 12px; }
.dcq-sources p { margin: 4px 0; overflow-wrap: anywhere; }
.dcq-sources a, .dcq-detail a { color: var(--bkz-blue-deep); text-decoration: none; overflow-wrap: anywhere; }
.dcq-sources time { font-size: 10px; color: var(--ui-ink-soft); }
.dcq-paths { display: flex; flex-direction: column; gap: 5px; font-size: 11px; overflow-wrap: anywhere; }
.dcq-decision { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ui-border); }
.dcq-decision span { font-size: 10px; color: var(--ui-ink-soft); }
.dcq-empty { padding: 36px 15px; text-align: center; font-size: 12px; color: var(--ui-ink-soft); }
.dcq-footnote { margin-top: 16px; }
.dcq button:focus-visible, .dcq summary:focus-visible, .dcq a:focus-visible { outline: 2px solid var(--bkz-blue-deep); outline-offset: 3px; }
/*
 * Sweep progress used to dump as a bare <ul> on the page background — default
 * bullets, default paragraphs, nothing lining up with the PR list below it.
 * Same card, same hairlines, same status chips as the rest of Dead code.
 */
.dcq-progress { margin: 0 0 20px; }
.dcq-req, .dcq-progress > section {
  padding: 14px 16px 12px; background: var(--ui-card);
  border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-lg); }
.dcq-req > details { margin: 0; }
.dcq-req > details > summary { list-style: none; cursor: pointer; display: block; }
.dcq-req > details > summary::-webkit-details-marker { display: none; }
.dcq-req-head { position: relative; padding-right: 22px; }
.dcq-req > details > summary .dcq-req-head::after {
  content: "▸"; position: absolute; right: 0; top: 2px;
  color: var(--ui-ink-faint); font-size: 12px; line-height: 1; }
.dcq-req > details[open] > summary .dcq-req-head::after { content: "▾"; }
.dcq-req-status, .dcq-progress > section > p[role="status"] {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin: 0; font-size: 13px; color: var(--ui-ink-body); }
.dcq-req-status { justify-content: space-between; }
.dcq-progress > section > p[role="status"] { justify-content: flex-end; text-align: right; }
.dcq-req-repo { font-weight: 550; color: var(--ui-ink-strong); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcq-req-meta { display: flex; align-items: center; gap: 8px; margin-left: auto;
  flex: none; white-space: nowrap; }
.dcq-req-lines { color: var(--ui-ink-muted); font-size: 12px; }
.dcq-req-act { display: inline-flex; }
.dcq-req-track { margin: 10px 0 0; }
.dcq-req-bar { height: 3px; border-radius: 99px; background: var(--ui-sunk);
  overflow: hidden; }
.dcq-req-bar > i { display: block; height: 100%; background: var(--ui-ink-soft); }
.dcq-req-progress { margin: 8px 0 0; font-size: 12px; color: var(--ui-ink-muted);
  font-variant-numeric: tabular-nums; }
/* Staging still prints a chip cloud of every target. The summary is the card. */
.dcq-req-prs { display: none; }
.dcq-req .dcq-why, .dcq-progress .dcq-why { margin: 10px 0 0; padding: 0; }
.dcq-req .dcq-why > summary, .dcq-progress .dcq-why > summary {
  font-size: 12px; color: var(--ui-ink-muted); list-style: none; }
.dcq-req .dcq-why > summary::-webkit-details-marker,
.dcq-progress .dcq-why > summary::-webkit-details-marker { display: none; }
.dcq-req .dcq-why > summary::before,
.dcq-progress .dcq-why > summary::before {
  content: "▸"; display: inline-block; width: 12px; color: var(--ui-ink-faint); }
.dcq-req .dcq-why[open] > summary::before,
.dcq-progress .dcq-why[open] > summary::before { content: "▾"; }
.dcq-req .dcq-detail, .dcq-progress .dcq-detail { max-width: none; padding: 10px 0 0; }
/* Staging still prints the old Details essay. Hide the engine dump until that HTML ships. */
.dcq-progress .dcq-why > p,
.dcq-progress .dcq-why li p,
.dcq-req .dcq-detail > .dcq-note { display: none; }
.dcq-req > .dcq-note, .dcq-req-body > .dcq-note, .dcq-progress > section > .dcq-note {
  margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--ui-ink-muted); }
.dcq-req-body { margin-top: 14px; }
.dcq-issue-group { margin: 0 0 16px; }
.dcq-issue-group:last-child { margin-bottom: 0; }
.dcq-issue-group h3 { margin: 0 0 6px; font-size: 12px; font-weight: 550;
  color: var(--ui-ink-strong); }
.dcq-targets, .dcq-progress .dcq-why ul {
  list-style: none; margin: 0; padding: 0;
  max-height: none; overflow: visible;
  border: 0; border-radius: 0; background: transparent; }
.dcq-targets li, .dcq-progress .dcq-why li {
  padding: 10px 0; border-bottom: 1px solid var(--bkz-border-hairline); }
.dcq-targets > li:last-child, .dcq-progress .dcq-why > li:last-child { border-bottom: 0; padding-bottom: 2px; }
.dcq-cand-row, .dcq-target-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: baseline; gap: 8px 16px; }
.dcq-cand-name, .dcq-targets strong, .dcq-progress .dcq-why li > strong {
  font: 550 13px/1.45 var(--bkz-font-sans, inherit); color: var(--ui-ink-strong);
  overflow-wrap: anywhere; min-width: 6em; }
.dcq-cand-why, .dcq-targets .dcq-note, .dcq-progress .dcq-why li p {
  margin: 0; font-size: 12px; line-height: 1.45; color: var(--ui-ink-faint); }
.dcq-cand[data-kind="unsafe"] .dcq-cand-why { color: var(--ui-ink-muted); }
.dcq-cand-act { display: inline-flex; align-items: center; gap: 10px; justify-self: end; }
.dcq-cand-act .dcq-diff, .dcq-cand-act .btn, .dcq-logs > summary {
  color: var(--ui-ink-soft); font-size: 12px; text-decoration: none; cursor: pointer; }
.dcq-cand-act .dcq-diff:hover, .dcq-logs > summary:hover { color: var(--ui-ink-strong); }
.dcq-logs { margin: 0; }
.dcq-logs > summary { list-style: none; }
.dcq-logs > summary::-webkit-details-marker { display: none; }
.dcq-log { margin: 8px 0 0; padding: 10px 12px; font: 11px/1.5 var(--bkz-font-mono);
  color: var(--ui-ink-muted); background: var(--ui-sunk); border-radius: var(--bkz-radius-md);
  white-space: pre-wrap; overflow-wrap: anywhere; }
.dcq-filelist { list-style: none; margin: 8px 0 0; padding: 0 0 0 2px; }
.dcq-filelist li { padding: 3px 0; border: 0; font: 12px/1.45 var(--bkz-font-mono);
  color: var(--ui-ink-muted); }
.dcq-cand > details > summary { list-style: none; cursor: pointer; }
.dcq-cand > details > summary::-webkit-details-marker { display: none; }
.dcq-cand > details > summary .dcq-cand-name::before {
  content: "▸"; display: inline-block; width: 12px; color: var(--ui-ink-faint); font-weight: 400; }
.dcq-cand > details[open] > summary .dcq-cand-name::before { content: "▾"; }
.dcq-retry { display: inline; margin: 0; }
.dcq-retry .btn { font-size: 12px; padding: 2px 8px; }
.dcq-targets .dcq-tag { justify-self: end; background: transparent; border: 0; padding: 0;
  font-size: 11px; color: var(--ui-ink-faint); }
.dcq-targets .dcq-tag.failed { color: var(--ui-ink-muted); background: transparent; border: 0; }
.dcq-tag.wait { color: var(--ui-ink-muted); }
.dcq-targets .dcq-diff:not([href]) { display: none; }
.dcq-targets code, .dcq-progress .dcq-why code {
  font-size: 11px; color: var(--ui-ink-muted); }
.gd-retirement-history { margin: 24px 0; border-top: 1px solid var(--ui-border); padding-top: 16px; }
.gd-retirement-history > summary { cursor: pointer; font-size: 12px; color: var(--ui-ink-soft); }
@media (max-width: 760px) {
  .dcq-toolbar { flex-direction: column; align-items: stretch; }
  .dcq-toolbar input { width: 100%; }
  .dcq-columns { display: none; }
  /*
   * `:not(:has(...))` on the base rule weighs two classes; this weighed one, and a media query
   * adds no specificity — so the phone layout for a dead-code row never applied, silently,
   * since the day it was written. Matched to the base rule's weight rather than fought with
   * `!important`.
   */
  .dcq-item:not(:has(.uilist-row)), .dcq-columns { grid-template-columns: minmax(0, 1fr) 88px 72px 64px; column-gap: 10px; }
  .dcq-why { margin-top: 5px; }
  .dcq-header { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .dcq-metric-n { font-size: 36px; }
  /*
   * An `auto` track takes what its content asks for, and the action column can hold an
   * OPENED log block. Measured at 390px on the dead-code card: `.dcq-cand-name` came out
   * 0px wide and 188px tall — "Unused Type" set one letter to a line — and the reason
   * beside it 0px wide and 104px tall, while the action column took 292 of the 350
   * available. `minmax(0, 1fr)` cannot defend the first column against a second one that
   * is allowed to be as wide as it likes.
   *
   * So on a phone the issue row STACKS. Name, then reason, then the action with its logs,
   * each on its own full-width line. Nothing is squeezed because nothing shares a line.
   */
  .dcq-cand-row { grid-template-columns: minmax(0, 1fr); }
  .dcq-cand-why, .dcq-cand-act { grid-column: 1; grid-row: auto; justify-self: start; }
  /*
   * A swept-area row keeps its two columns — its second holds a state word and a link, both
   * short — and the pull request drops to a line of its own rather than displacing the
   * state word onto one.
   */
  .dcq-target-row { grid-template-columns: minmax(0, 1fr) max-content; }
  .dcq-target-row .dcq-diff { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
}

/* ---------- theme ----------
   breken is dark. The Brekfuz system has no dark family, so this palette is derived
   from its Warm Neutral one — warm blacks for warm whites, the same --brand, the
   same glass and sheen logic. The original light values live under
   [data-theme="light"] so the flip is one attribute. */
:root {
  color-scheme: dark;
  /* The narrowest the rail is ever allowed to be — measured, see .sidebar below. */
  --rail-min: 248px;
  --bkz-bg: #131211; --bkz-bg-shell: #161513; --bkz-surface: #1c1a18; --bkz-surface-sunken: #191715; --bkz-surface-input: #1a1917;
  --bkz-border: rgba(255, 255, 255, 0.10); --bkz-border-hairline: #292622; --bkz-border-rail: #2a2724; --bkz-border-soft: #242120; --bkz-border-input: #332f2b;
  --bkz-ink: #f1ede7; --bkz-muted: #a19b92; --bkz-ink-black: #ffffff; --bkz-ink-strong: #f2efe9; --bkz-ink-rail: #d3cdc4; --bkz-ink-body: #bdb6ac; --bkz-ink-muted: #a9a399; --bkz-ink-soft: #9d978e; --bkz-ink-slate: #8c867d; --bkz-ink-faint: #77716a; --bkz-ink-ghost: #6b665f; --bkz-ink-disabled: #4d4945;
  --brand-soft: color-mix(in srgb, var(--brand) 24%, #131211); --brand-softer: color-mix(in srgb, var(--brand) 14%, #131211); --brand-ink: color-mix(in srgb, var(--brand) 62%, #ffffff);
  --glass-bg: rgba(255, 255, 255, 0.05); --glass-bg-hover: rgba(255, 255, 255, 0.08); --glass-border: rgba(255, 255, 255, 0.10); --glass-border-strong: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 2px 12px rgba(0, 0, 0, 0.35), 0 8px 32px rgba(0, 0, 0, 0.28); --glass-shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.45), 0 12px 48px rgba(0, 0, 0, 0.35); --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  --bkz-success-tint: color-mix(in srgb, #059669 18%, #131211); --bkz-success-border: color-mix(in srgb, #059669 36%, #131211); --bkz-success-ink: #86d6ac;
  --bkz-warn-tint: color-mix(in srgb, #d97706 16%, #131211); --bkz-warn-ink: #e6b86f;
  --bkz-danger-tint: color-mix(in srgb, #dc2626 16%, #131211); --bkz-danger-border: color-mix(in srgb, #dc2626 36%, #131211); --bkz-danger-ink: #f29690;
  --bkz-danger-alert-bg: color-mix(in srgb, #dc2626 14%, #131211); --bkz-danger-alert-ink: #f5a9a3; --bkz-danger-alert-border: color-mix(in srgb, #dc2626 34%, #131211);
  --bkz-blue-link: #5aa8e0; --bkz-blue-deep: #8fc9ea;
  --bkz-shadow-menu-rail: 0 12px 34px rgba(0, 0, 0, 0.6); --bkz-shadow-automation-hover: 0 12px 32px rgba(0, 0, 0, 0.45);

  --ui-surface: #1c1a18; --ui-sunk: #191715; --ui-sunk-a: rgba(25, 23, 21, 0.8); --ui-hover: #262320; --ui-row-hover: rgba(255, 255, 255, 0.04); --ui-trough: #221f1c; --ui-chip: #26231f; --ui-chip-ink: #a9a399; --ui-track: #2a2724;
  --ui-border: #2f2c28; --ui-border-hover: #403b36; --ui-warn-border: color-mix(in srgb, #d97706 30%, #131211); --ui-brand-border: color-mix(in srgb, var(--brand) 38%, #131211);
  --ui-ink-strong: #f2efe9; --ui-ink-body: #c9c3ba; --ui-ink-soft: #a9a399; --ui-ink-muted: #948e85; --ui-ink-faint: #88827a; --ui-eyebrow: color-mix(in srgb, #5aa8e0 78%, transparent);
  --ui-accent-btn: #f2efe9; --ui-accent-btn-hover: #ffffff; --ui-on-accent: #141311;
  --ui-tint-5: rgba(255, 255, 255, 0.05); --ui-tint-6: rgba(255, 255, 255, 0.06); --ui-tint-8: rgba(255, 255, 255, 0.08); --ui-tint-10: rgba(255, 255, 255, 0.10);
  /* The resting lift under a list of cards. Fully transparent rows read as text loose on the
     page; a full `--ui-surface` panel is the boxed card this design moved away from. This is
     the smallest step that still separates the list from the background — and deliberately
     BELOW `--ui-row-hover` (0.04), because a rest state at or above the hover leaves hovering
     with nothing to say. */
  --ui-card: rgba(255, 255, 255, 0.018);
  --ui-glass-bg: rgba(255, 255, 255, 0.04); --ui-glass-solid: rgba(28, 26, 24, 0.78); --ui-glass-border: rgba(255, 255, 255, 0.08); --ui-glass-border-solid: rgba(255, 255, 255, 0.10); --ui-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --ui-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --ui-shadow-sm-wide: 0 2px 12px rgba(0, 0, 0, 0.35); --ui-shadow: 0 4px 24px rgba(0, 0, 0, 0.45); --ui-shadow-menu: 0 8px 40px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
  --ui-bad-row: color-mix(in srgb, #dc2626 10%, transparent); --ui-warn-row: color-mix(in srgb, #d97706 10%, transparent);
  --ui-tip-bg: #f2efe9; --ui-tip-ink: #141311; --ui-drawer-bg: rgba(28, 26, 24, 0.92); --ui-scrim: rgba(0, 0, 0, 0.55);

  --au-shell: radial-gradient(circle at 58% 38%, rgba(38, 129, 196, 0.18), transparent 30%), radial-gradient(circle at 18% 82%, rgba(38, 129, 196, 0.14), transparent 36%), linear-gradient(180deg, #0a1017 0%, #0c1620 47%, #090f15 100%);
  --au-sky: radial-gradient(ellipse at 50% 21%, rgba(90, 168, 224, 0.18), transparent 28%), linear-gradient(180deg, rgba(10, 16, 23, 0.9) 0%, rgba(12, 22, 32, 0.3) 44%, rgba(9, 15, 21, 0.85) 100%);
  --au-fog: radial-gradient(ellipse at center, rgba(14, 26, 36, 0.9), transparent 68%); --au-plane-opacity: 0.55;
  --au-card: linear-gradient(135deg, rgba(20, 38, 52, 0.9), rgba(13, 25, 35, 0.72)); --au-card-border: rgba(90, 168, 224, 0.28); --au-card-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --au-ink: #e7f2f9; --au-body: #a8c2d4; --au-muted: #8aa3b6; --au-faint: #6f8798; --au-link: #7cc0ea; --au-rule: rgba(90, 168, 224, 0.25);
  --au-input-bg: rgba(9, 16, 23, 0.72); --au-input-border: rgba(90, 168, 224, 0.3); --au-input-border-hover: rgba(120, 190, 232, 0.5); --au-input-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --au-pill-bg: rgba(38, 129, 196, 0.16); --au-pill-border: rgba(90, 168, 224, 0.3);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bkz-bg: #f5f3f0; --bkz-bg-shell: #f9f9f9; --bkz-surface: #ffffff; --bkz-surface-sunken: #fafafa; --bkz-surface-input: #fbfbfb;
  --bkz-border: rgba(148, 142, 132, 0.20); --bkz-border-hairline: #eaeaea; --bkz-border-rail: #ececec; --bkz-border-soft: #f0f0f0; --bkz-border-input: #e1e1e1;
  --bkz-ink: #0f172a; --bkz-muted: #64748b; --bkz-ink-black: #000000; --bkz-ink-strong: #202020; --bkz-ink-rail: #3a3a3a; --bkz-ink-body: #555555; --bkz-ink-muted: #666666; --bkz-ink-soft: #707070; --bkz-ink-slate: #9aa4b2; --bkz-ink-faint: #8b8b8b; --bkz-ink-ghost: #909090; --bkz-ink-disabled: #c0c0c0;
  --brand-soft: color-mix(in srgb, var(--brand) 12%, #fff); --brand-softer: color-mix(in srgb, var(--brand) 7%, #fff); --brand-ink: color-mix(in srgb, var(--brand) 72%, #12203a);
  --glass-bg: rgba(255, 255, 255, 0.52); --glass-bg-hover: rgba(255, 255, 255, 0.62); --glass-border: rgba(255, 255, 255, 0.65); --glass-border-strong: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 2px 12px rgba(15, 23, 42, 0.04), 0 8px 32px rgba(15, 23, 42, 0.03); --glass-shadow-lg: 0 4px 20px rgba(15, 23, 42, 0.06), 0 12px 48px rgba(15, 23, 42, 0.04); --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  --bkz-success-tint: #f1fbf4; --bkz-success-border: #cfe8d7; --bkz-success-ink: #2f6741;
  --bkz-warn-tint: #f6f0e4; --bkz-warn-ink: #7c5310;
  --bkz-danger-tint: #fff6f4; --bkz-danger-border: #f4d4cf; --bkz-danger-ink: #8a3429;
  --bkz-danger-alert-bg: #fff8f7; --bkz-danger-alert-ink: #7a2e24; --bkz-danger-alert-border: #f3d5d0;
  --bkz-blue-link: #1f6fa8; --bkz-blue-deep: #18567f;
  --bkz-shadow-menu-rail: 0 12px 34px rgba(0, 0, 0, 0.12); --bkz-shadow-automation-hover: 0 12px 32px rgba(20, 22, 26, 0.07);

  --ui-surface: #ffffff; --ui-sunk: #fafafa; --ui-sunk-a: rgba(250, 250, 250, 0.8); --ui-hover: #f4f4f4; --ui-row-hover: rgba(255, 255, 255, 0.6); --ui-trough: #f5f5f5; --ui-chip: #f4f6f9; --ui-chip-ink: #7b8595; --ui-track: #eceff4;
  --ui-border: #e5e5e5; --ui-border-hover: #d4d4d4; --ui-warn-border: #e7dcc4; --ui-brand-border: #cfe0f5;
  --ui-ink-strong: #202020; --ui-ink-body: #404040; --ui-ink-soft: #6b7280; --ui-ink-muted: #737373; --ui-ink-faint: #a3a3a3; --ui-eyebrow: rgba(38, 129, 196, 0.85);
  --ui-accent-btn: #202020; --ui-accent-btn-hover: #2c2c2c; --ui-on-accent: #ffffff;
  --ui-tint-5: rgba(23, 23, 23, 0.05); --ui-tint-6: rgba(23, 23, 23, 0.06); --ui-tint-8: rgba(23, 23, 23, 0.08); --ui-tint-10: rgba(23, 23, 23, 0.10);
  /* Light mode lifts the card the other way — toward white, off the warm `--bkz-bg` page —
     because darkening a light background reads as a disabled row rather than a raised one. */
  --ui-card: rgba(255, 255, 255, 0.55);
  --ui-glass-bg: rgba(255, 255, 255, 0.40); --ui-glass-solid: rgba(255, 255, 255, 0.72); --ui-glass-border: rgba(255, 255, 255, 0.50); --ui-glass-border-solid: rgba(255, 255, 255, 0.60); --ui-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --ui-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05); --ui-shadow-sm-wide: 0 2px 12px rgba(0, 0, 0, 0.04); --ui-shadow: 0 4px 24px rgba(0, 0, 0, 0.06); --ui-shadow-menu: 0 8px 40px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
  --ui-bad-row: rgba(255, 246, 244, 0.7); --ui-warn-row: rgba(246, 240, 228, 0.75);
  --ui-tip-bg: #202020; --ui-tip-ink: #ffffff; --ui-drawer-bg: rgba(255, 255, 255, 0.86); --ui-scrim: rgba(15, 23, 42, 0.20);

  --au-shell: radial-gradient(circle at 58% 38%, rgba(92,118,255,0.12), transparent 30%), radial-gradient(circle at 18% 82%, rgba(166,182,255,0.22), transparent 36%), linear-gradient(180deg, #ffffff 0%, #fbfcff 47%, #f7f9ff 100%);
  --au-sky: radial-gradient(ellipse at 50% 21%, rgba(180,194,255,0.22), transparent 28%), linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,255,0.34) 44%, rgba(255,255,255,0.82) 100%);
  --au-fog: radial-gradient(ellipse at center, rgba(238,243,255,0.86), transparent 68%); --au-plane-opacity: 0.72;
  --au-card: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.62)), linear-gradient(180deg, rgba(255,255,255,0.64), rgba(235,240,255,0.28)); --au-card-border: rgba(184,196,229,0.72); --au-card-shadow: var(--bkz-shadow-auth-card);
  --au-ink: #071845; --au-body: #52638c; --au-muted: #657397; --au-faint: #7b89ad; --au-link: #526adf; --au-rule: #dce3f5;
  --au-input-bg: rgba(255,255,255,0.72); --au-input-border: #d8def0; --au-input-border-hover: #bdc8ec; --au-input-sheen: inset 0 1px 0 rgba(255,255,255,0.85);
  --au-pill-bg: rgba(238,242,255,0.65); --au-pill-border: rgba(93,116,244,0.18);
}
:root:not([data-theme="light"]) ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); }
:root:not([data-theme="light"]) ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }
:root:not([data-theme="light"]) .login-primary { border-color: rgba(111, 134, 255, 0.6); }

/* ---------- resets on top of the tokens ---------- */
html { background: var(--bkz-bg); }
body { background: var(--bkz-bg); color: var(--bkz-ink-strong); font-size: var(--bkz-text-md); line-height: var(--bkz-leading-body); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--brand-ink); }
a:hover { color: var(--brand-ink); text-decoration: underline; }
code { font-size: .9em; background: var(--ui-tint-5); padding: 1px 5px; border-radius: var(--bkz-radius-xs); }
.mono { font-family: var(--bkz-font-mono); font-size: .92em; }
.muted { color: var(--bkz-muted); }
.tiny { font-size: var(--bkz-text-sm); }
.ellip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.mt { margin-top: 14px; }
.lbad { color: var(--bkz-danger-ink); }
.lwarn { color: var(--bkz-warn-ink); }

/* ---------- boot / loading ---------- */
.boot { display: grid; place-items: center; min-height: 100vh; }
.boot-mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bkz-border-rail); border-top-color: var(--brand); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 1.7px solid currentColor; border-top-color: transparent; animation: spin .65s linear infinite; vertical-align: -2px; }
.spin-sm { width: 10px; height: 10px; border-width: 1.5px; }
/* IngestSweep: the honest indeterminate bar. It says "working" and nothing about how far. */
.loading { position: relative; display: block; overflow: hidden; max-width: 420px; margin: 18px auto; padding: 22px 0 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--bkz-ink-slate); }
.loading .spin { display: none; }
.loading::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 4px; border-radius: 9999px; background: var(--ui-track); }
.loading::after { content: ""; position: absolute; left: 0; top: 8px; height: 4px; width: 35%; border-radius: 9999px; background: var(--brand); animation: bkz-ingest-sweep 1.9s ease-in-out infinite; }

/* ---------- type ---------- */
.eyebrow { font-size: var(--bkz-text-xs); font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ui-eyebrow); }
.eyebrow.warn { color: var(--bkz-warn-ink); }
.h-display { font-size: var(--bkz-text-6xl); font-weight: 700; letter-spacing: var(--bkz-tracking-tight); margin-top: 6px; color: var(--bkz-ink); text-wrap: balance; }
.h-page { font-size: var(--bkz-text-4xl); font-weight: 700; letter-spacing: var(--bkz-tracking-snug); color: var(--bkz-ink); }
.h-count { font-size: var(--bkz-text-md); font-weight: 400; color: var(--bkz-muted); margin-left: 8px; }
.lede-lg { font-size: var(--bkz-text-md); line-height: 24px; color: var(--bkz-muted); max-width: 42rem; margin-top: 8px; }
/* The filing landed somewhere other than the tracker that was configured. Not an error —
   the write-up is complete and the fallback is the feature working — so it reads as a
   remark in the lede rather than a banner, but it is the one sentence in that paragraph a
   reader has to be able to find, so it does not stay the same grey as the rest. */
.lede-warn { color: var(--ui-ink-body); }
.lede { color: var(--bkz-muted); font-size: var(--bkz-text-base); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 10px; font-size: var(--bkz-text-md); font-weight: 600; color: var(--bkz-ink); }
.sec-h .muted { font-weight: 400; font-size: var(--bkz-text-base); }
/* The 28px above is the gap between STACKED sections in a page's flow. A heading that opens a
   padded card is not stacked under anything — the card's own padding is the space — so the
   margin landed on top of it and left a band of empty card above the first line. */
.card-pad > .sec-h:first-child, .panel > .sec-h:first-child { margin-top: 0; }
.page-intro { margin: 20px 0 22px; animation: bkz-fade-up .45s var(--bkz-ease-settle) both; }
.page-intro .page-title {
  font-size: var(--bkz-text-5xl); font-weight: 700;
  letter-spacing: var(--bkz-tracking-display); line-height: 1.05;
}
.page-intro .muted { margin-top: 4px; max-width: 42rem; line-height: 24px; }
.page-intro .tiny { margin-top: 6px; max-width: 42rem; line-height: 20px; }
.page-intro .inv-meta { display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 14px; margin: 16px 0 0; line-height: 1.4; }
.page-intro .inv-meta .tag { margin: 0; }
.page-intro .inv-meta .mono { padding: 3px 8px; }
/* Title left, one quiet fact right — the tickets page's KB disclaimer. Wraps under on narrow. */
.intro-split { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.intro-split .intro-aside { margin-top: 0; text-align: right; max-width: 24rem; }
.intro-split .intro-aside a { color: inherit; text-decoration: underline; }

/* ---------- buttons (Button.jsx) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; font-size: var(--bkz-text-base); font-weight: 500; line-height: 1.3;
  border-radius: 0; cursor: pointer; white-space: nowrap;
  background: var(--ui-surface); color: var(--ui-ink-strong); border: 1px solid var(--ui-border); box-shadow: none;
  transition: all var(--bkz-duration-base) var(--bkz-ease-settle);
}
.btn:hover { background: var(--ui-sunk); border-color: var(--ui-border-hover); text-decoration: none; color: var(--ui-ink-strong); }
.btn:active { transform: scale(0.97); }
/* Outline does not follow transform, so :active scale left the indigo focus ring at the
   old size while the cream face shrank — two states of one button. Shadow travels with it. */
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4); }
.btn-primary:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ui-on-accent) 35%, transparent); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--ui-accent-btn); color: var(--ui-on-accent); border-color: transparent; box-shadow: none; }
.btn-primary:hover { background: var(--ui-accent-btn-hover); border-color: transparent; color: var(--ui-on-accent); }
.btn-ghost { background: transparent; color: var(--ui-ink-muted); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--ui-trough); color: var(--ui-ink-strong); border-color: transparent; }
/* Destructive = visibly destructive. This was `color: var(--ui-ink-muted)` — the design
   system literally had no way to say "this deletes something", so Disconnect looked exactly
   like Sync. Quiet at rest, unmistakable on approach. */
.btn-danger { color: var(--bkz-danger-ink); border-color: transparent; }
.btn-danger:hover { background: var(--bkz-danger-tint); border-color: var(--bkz-danger-border); color: var(--bkz-danger-ink); }

/* One-click copy for commands and config the user would otherwise retype by hand. */
.copy-btn { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; font-size: var(--bkz-text-xs); border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); background: transparent; color: var(--ui-ink-muted); cursor: pointer; }
.copy-btn:hover { color: var(--ui-ink-strong); border-color: var(--ui-border-hover); }
.copy-btn.copied { color: var(--bkz-success-ink); border-color: var(--bkz-success-ink); }
.cmd-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cmd-row code { overflow-x: auto; white-space: nowrap; }

/* The one flash. Success and failure share a shape and differ only in tone, so "did my
   change stick" has a single place to look on every page. */
.flash { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin: 0 0 14px; border-radius: var(--bkz-radius-md); font-size: var(--bkz-text-base); border: 1px solid; }
.flash-ok { color: var(--bkz-success-ink); border-color: var(--bkz-success-border); background: var(--bkz-success-tint); }
.flash-bad { color: var(--bkz-danger-alert-ink); border-color: var(--bkz-danger-alert-border); background: var(--bkz-danger-alert-bg); }
/* In flight: same flash shape, the investigation pulse plus the honest marching track.
   Green "ok" meant finished; this is the one that is still working. */
.flash-live { flex-wrap: wrap; gap: 10px 12px; padding: 12px 16px; color: var(--bkz-blue-link, #4da3ff);
  border-color: color-mix(in srgb, currentColor 35%, transparent);
  background: color-mix(in srgb, currentColor 8%, transparent); }
.flash-track { flex: 1 1 100%; height: 4px; margin-top: 2px; border-radius: 3px;
  background: color-mix(in srgb, currentColor 14%, transparent); overflow: hidden; }
.flash-track i { display: block; height: 100%; width: 32%; border-radius: 3px;
  background: currentColor; animation: dot-march 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .flash-track i { animation: none; width: 100%; opacity: .45; }
}

/* A capability toggle: the switch, its name, and its consequence on one line each. */
.cap-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; cursor: pointer; }
.cap-row input { margin-top: 3px; }
.cap-txt { display: flex; flex-direction: column; gap: 2px; }


/* ⌘K — the jump-anywhere palette (palette.js). */
.palette { border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-panel); background: var(--ui-surface); color: var(--ui-ink-strong); padding: 0; width: min(560px, calc(100vw - 32px)); margin-top: 12vh; }
.palette::backdrop { background: rgb(0 0 0 / 0.45); }
.palette-in { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid var(--ui-border); background: transparent; color: inherit; font: inherit; padding: 14px 16px; outline: none; }
.palette-list { max-height: 40vh; overflow-y: auto; padding: 6px; }
.palette-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 8px 10px; border-radius: var(--bkz-radius-sm); cursor: pointer; }
.palette-row.on, .palette-row:hover { background: var(--ui-row-hover); }

/* Confirmation dialog for data-destroying forms (confirm.js). Native <dialog>. */
.confirm-dialog { border: 1px solid var(--ui-border); border-radius: 0; background: var(--ui-raised, var(--ui-sunk)); color: var(--ui-ink-strong); padding: 18px 20px; max-width: 380px; box-shadow: none; }
.confirm-dialog[data-intent="signout"] { width: calc(100vw - 48px); max-width: 480px; box-sizing: border-box; padding: 32px; text-align: center; }
.confirm-dialog[data-intent="signout"] > p:first-child { font-size: 22px; font-weight: 600; line-height: 1.35; margin-bottom: 12px; }
.confirm-dialog[data-intent="signout"] .confirm-note { max-width: 350px; margin: 0 auto 26px; font-size: 14px; line-height: 1.6; }
.confirm-dialog[data-intent="signout"] .btn-row { justify-content: center; flex-wrap: wrap; gap: 12px; }
.confirm-dialog[data-intent="signout"] [data-act="cancel"], .confirm-dialog[data-intent="signout"] [data-act="confirm"] { min-width: 132px; min-height: 44px; justify-content: center; }
.confirm-dialog[data-intent="signout"] [data-act="also"] { flex-basis: 100%; margin-top: 4px; background: transparent; border-color: transparent; color: var(--ui-ink-muted); justify-content: center; }
.confirm-dialog[data-intent="signout"] [data-act="also"]:hover { color: var(--ui-ink-strong); text-decoration: underline; }
@media (max-width: 420px) { .confirm-dialog[data-intent="signout"] { padding: 28px 20px; } .confirm-dialog[data-intent="signout"] [data-act="cancel"], .confirm-dialog[data-intent="signout"] [data-act="confirm"] { min-width: 112px; } }
.confirm-dialog[data-intent="signout"] [data-act="confirm"] { background: #b63730; border-color: #b63730; color: #fff; }
.confirm-dialog[data-intent="signout"] [data-act="confirm"]:hover { background: #9c2f29; border-color: #9c2f29; }
.confirm-dialog::backdrop { background: rgb(0 0 0 / 0.45); }
.confirm-dialog p { margin: 0 0 14px; font-size: var(--bkz-text-base); }
.confirm-dialog .btn-row { margin-top: 0; justify-content: flex-end; }
.confirm-dialog .confirm-note { margin: -6px 0 14px; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted, var(--bkz-ink-muted)); }

.btn-sm { padding: 6px 12px; font-size: var(--bkz-text-sm); }
.btn-lg { padding: 10px 18px; font-size: var(--bkz-text-md); }
.btn-oauth { font-weight: 600; }
a.btn { text-decoration: none; }
.btn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand-ink); cursor: pointer; font-weight: 500; font-size: inherit; }
.linkish:hover { text-decoration: underline; }

/* ---------- fields (TextInput.jsx) ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: var(--bkz-text-base); font-weight: 650; color: var(--bkz-ink-strong); letter-spacing: -0.01em; }
/* A field's second span is help, not a second label.
   The rule above was written when a field held exactly one span, so a `.sub` after the input
   inherited 650-weight strong ink and a bottom margin — it rendered as a heading, sat flush
   under the control it described, and pushed its space toward the NEXT field's label. Three
   equally loud lines per field, each one closer to the wrong neighbour. */
.field > .sub { margin: 8px 0 0; font-size: var(--bkz-text-sm); font-weight: 400;
  line-height: 1.55; letter-spacing: 0; color: var(--ui-ink-muted); }
.input { width: 100%; padding: 8px 12px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); background: var(--ui-surface); color: var(--ui-ink-strong); font-size: var(--bkz-text-base); outline: none; transition: all var(--bkz-duration-base); }
.input:hover { border-color: var(--ui-border-hover); }
.input:focus { border-color: var(--ui-ink-strong); box-shadow: 0 0 0 1px var(--ui-tint-10); }
.input.mono { font-family: var(--bkz-font-mono); }
.pol-in { padding: 5px 8px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); background: var(--ui-surface); color: var(--ui-ink-strong); font: inherit; font-size: var(--bkz-text-base); width: 74px; }
.pol-in:focus { outline: none; border-color: var(--ui-ink-strong); box-shadow: 0 0 0 1px var(--ui-tint-10); }
.pol-in.pol-wide { width: 92px; }

/* ---------- alerts and notes (ErrorState / LoginAlert) ---------- */
.alert { padding: 10px 12px; border-radius: var(--bkz-radius-3xl); font-size: var(--bkz-text-sm); line-height: 1.55; background: var(--bkz-danger-alert-bg); color: var(--bkz-danger-alert-ink); border: 1px solid var(--bkz-danger-alert-border); margin: 0 0 14px; }
.alert-loud { padding: 14px 16px; border-radius: var(--bkz-radius-3xl); font-size: var(--bkz-text-md); line-height: 1.5; background: var(--bkz-danger-alert-bg); color: var(--bkz-danger-alert-ink); border: 1px solid var(--bkz-danger-border); margin: 0 0 16px; }
.alert-loud .muted { display: block; margin-top: 3px; color: var(--bkz-danger-ink); }
.note { border-radius: var(--bkz-radius-3xl); border: 1px solid var(--ui-border); background: var(--ui-sunk); padding: 12px 16px; margin: 10px 0; font-size: var(--bkz-text-base); line-height: 20px; color: var(--ui-ink-body); }
.note-warn { background: var(--bkz-warn-tint); border-color: var(--ui-warn-border); color: var(--bkz-warn-ink); }
.note-warn .muted { color: var(--bkz-warn-ink); opacity: .85; }
.note-warn a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.note-warn a:hover { color: var(--ui-ink-strong); }
/* Tickets, connected but unmapped: the sentence and the door, stacked and centered. */
.tk-intake { display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px; padding: 36px 16px 40px; }
.tk-intake p { margin: 0; color: var(--ui-ink-muted); font-size: var(--bkz-text-base); }
.tk-intake .btn { padding: 10px 22px; }
.note b { color: var(--bkz-ink); }

/* ---------- badges: Badge (monochrome) and StatusPill (colour = status) ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: var(--bkz-radius-full); border: 1px solid var(--ui-tint-8); background: var(--ui-tint-5); color: var(--ui-ink-muted); padding: 2px 8px; font-size: var(--bkz-text-2xs); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; margin-left: 6px; }
.b-ok, .b-bad, .b-use, .b-ask { text-transform: none; letter-spacing: 0; font-size: var(--bkz-text-xs); font-weight: 600; padding: 3px 10px 3px 8px; gap: 6px; }
.b-ok::before, .b-bad::before, .b-use::before, .b-ask::before { content: ""; width: 6px; height: 6px; border-radius: 9999px; flex-shrink: 0; background: currentColor; }
.b-ok { background: var(--bkz-success-tint); color: var(--bkz-success-ink); border-color: var(--bkz-success-border); }
.b-ok::before { background: var(--bkz-success); }
.b-bad { background: var(--bkz-danger-tint); color: var(--bkz-danger-ink); border-color: var(--bkz-danger-border); }
.b-bad::before { background: var(--bkz-danger); }
.b-use { background: var(--bkz-warn-tint); color: var(--bkz-warn-ink); border-color: var(--ui-warn-border); }
.b-use::before { background: var(--bkz-warn); }
.b-ask { background: var(--brand-soft); color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.b-ask::before { background: var(--brand); }
.b-quiet { }
.b-lg { font-size: var(--bkz-text-sm); padding: 6px 12px; margin-left: 0; }

/* ---------- surfaces (Surface.jsx) ---------- */
.card { position: relative; border-radius: var(--bkz-radius-3xl); background: var(--ui-glass-bg); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); border: 1px solid var(--ui-glass-border); box-shadow: var(--ui-shadow), var(--ui-sheen); transition: all var(--bkz-duration-base) var(--bkz-ease-settle); }
.card-pad { padding: 20px 22px; }
.card-lg { padding: 36px 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: var(--bkz-radius-full); background: var(--ui-chip); color: var(--ui-chip-ink); padding: 4px 10px; font-size: var(--bkz-text-xs); font-weight: 500; }
.chip-link { background: var(--brand-soft); color: var(--brand-ink); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.chip.muted { color: var(--bkz-ink-slate); }
.cmd { display: flex; align-items: center; gap: 8px; margin: 8px 0; background: var(--ui-sunk); border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); padding: 7px 10px; }
.cmd code { background: none; padding: 0; font-size: var(--bkz-text-sm); color: var(--ui-ink-body); flex: 1; min-width: 0; white-space: pre-wrap; word-break: break-all; line-height: 18px; }
.copy { border: 0; background: transparent; color: var(--ui-ink-faint); cursor: pointer; padding: 3px 5px; border-radius: var(--bkz-radius-sm); flex-shrink: 0; display: inline-grid; place-items: center; transition: all var(--bkz-duration-base); }
.copy:hover { background: var(--ui-hover); color: var(--ui-ink-strong); }
.copy.copied { color: var(--bkz-success); }
.copy.copy-failed { color: var(--bkz-danger); }
.copy-inline { justify-self: end; }

/* ---------- the shell: rail (AppSidebar.jsx), main (AppMain) ---------- */
.shell { position: relative; z-index: 1; min-height: 100vh; }
/* No width transition: the width is dragged now, and an eased width rubber-bands under the
   pointer. --rail-w is set before paint from localStorage (see the shells' head script).
   --rail-min is the floor, and it is a measured number rather than a taste: below it the
   rail's own WORDS break. At 205px "REPOSITORIES 3/53 on" wraps and drops "on" onto a line
   of its own; the workspace name is squeezed to "Br…" while the word "workspace" beside it
   keeps its full width until 248px. Those are chrome, not content — a label that folds in
   half is the rail admitting it is too narrow to be read. The floor is the same 248px the
   laptop breakpoint already used, so no layout moves; what changes is that the drag, the
   restore script and every breakpoint can no longer go under it.
   max(), not min-width: min-width would fight the ≤880px rule that lays the rail out as a
   full-width horizontal strip, where none of this applies. */
.sidebar { position: fixed; inset-block: 0; left: 0; z-index: 40; display: flex; flex-direction: column; width: max(var(--rail-min), var(--rail-w, 280px)); background: var(--ui-surface); border-right: 1px solid var(--bkz-border-rail); }
.sidebar.collapsed { width: 60px; align-items: center; padding: 16px 0; }
.sb-top { display: flex; align-items: center; justify-content: space-between; padding: 16px; }
/* The brand is the HOME door (org-wide overview) — the workspace name below opens the
   switcher now, so the logo click takes the meaning it has in every comparable product. */
.sb-brand { display: flex; align-items: center; gap: 9px; color: var(--bkz-ink-strong); }
.sb-brand:hover { text-decoration: none; color: var(--bkz-ink-strong); }
.sb-brand img { display: block; width: 26px; height: 26px; flex-shrink: 0; user-select: none; border-radius: 6px; }
.sidebar.collapsed .sb-brand img { width: 36px; height: 36px; margin-bottom: 8px; }
.sb-word { position: relative; top: -1px; font-size: var(--bkz-text-xl); line-height: 1; font-weight: 600; color: var(--bkz-ink-strong); }
.sb-iconbtn { display: flex; height: 36px; width: 36px; align-items: center; justify-content: center; border-radius: var(--bkz-radius-xl); border: 0; cursor: pointer; background: transparent; color: var(--ui-ink-faint); transition: all var(--bkz-duration-base); }
.sb-iconbtn:hover { background: var(--ui-hover); color: var(--bkz-ink-strong); }
.sidebar.collapsed .sb-iconbtn { margin-bottom: 16px; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.sidebar.collapsed .sb-nav { padding: 0; align-items: center; gap: 6px; flex: 1; }
/* `column-gap`, not `gap`. The 12px was written for one horizontal row — icon, label, status
   — and `flex-wrap` below later made the description its own flex LINE, at which point the
   same declaration started doing a second job nobody asked it for: a 12px vertical gutter
   between a label and the sub that belongs to it, on top of that sub's own 2px margin. Rows
   stood 69px tall and the description read as a separate entry rather than as a subtitle. */
.sb-link { display: flex; align-items: center; column-gap: 12px; row-gap: 0; width: 100%; border: 0; cursor: pointer; border-radius: var(--bkz-radius-xl); padding: 6px 12px; font-size: var(--bkz-text-md); font-weight: 500; text-align: left; background: transparent; color: var(--bkz-ink-rail); transition: all var(--bkz-duration-base); min-width: 0; }
.sb-link:hover { background: var(--ui-hover); color: var(--bkz-ink-strong); text-decoration: none; }
.sb-link.on { background: var(--brand-soft); color: var(--brand-ink); }
/* A destination with nothing feeding it yet: dimmed, still reachable, and its `title`
   says what to connect. Not `pointer-events: none` — the page behind it explains itself
   and links at the fix, so swallowing the click would hide the only instruction. */
.sb-link-idle { color: var(--bkz-ink-slate); }
/* The rail's three doors as one filter bar — the same trough the page subnav uses.
   Words sit in one pill; the current door lifts as a segment, not as three separate
   buttons. Flex, not equal columns, so "Dead code" is not clipped. */
.sb-tri { display: flex; align-items: stretch; gap: 0; margin: 4px 0 12px;
  padding: 3px; border-radius: var(--bkz-radius-md); background: var(--ui-trough); }
.sb-tri-i { display: flex; align-items: center; justify-content: center; flex: 1 1 auto;
  padding: 6px 8px; min-width: 0; min-height: 28px; border: 0; border-radius: var(--bkz-radius-sm);
  color: var(--ui-ink-muted); text-decoration: none; background: transparent;
  transition: color var(--bkz-duration-base), background-color var(--bkz-duration-base); }
.sb-tri-l { font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: 0.02em;
  white-space: nowrap; }
.sb-tri-i:hover { color: var(--ui-ink-body); text-decoration: none; }
/* One hook per door (tickets, bugs, dead code): the markup names each so a door can be
   styled or found on its own; the three read alike until one of them earns a difference. */
.sb-tri-tickets, .sb-tri-bugs, .sb-tri-deadcode { position: relative; }
.sb-tri-i + .sb-tri-i::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px;
  width: 1px; background: var(--bkz-border-soft); pointer-events: none; }
.sb-tri-i.on + .sb-tri-i::before, .sb-tri-i.on::before { opacity: 0; }
.sb-tri-i.on, .sb-tri-i.sb-link-idle.on { color: var(--ui-ink-strong);
  background: var(--ui-surface); box-shadow: var(--ui-shadow-sm); }
.sb-tri-i.sb-link-idle { color: var(--bkz-ink-slate); }
.sb-tri-i.sb-link-idle:hover { color: var(--bkz-ink-rail); }
@media (prefers-reduced-motion: reduce) { .sb-tri-i { transition: none; } }
.sb-link-idle:hover { color: var(--bkz-ink-rail); }
.sb-link-idle:hover { color: var(--bkz-ink-rail); }
.sb-link-idle.on:not(.sb-tri-i) { color: var(--brand-ink); }
.sb-link svg { flex-shrink: 0; }
/* A zero basis, deliberately: the label yields to the status beside it and ellipsises, rather
   than claiming its content width and pushing a one-word status onto a line of its own. */
/* The 12px column-gap was written for rows with no icon in them. A leading glyph sits inside
   its own box with air already around it, so the gap reads as roughly half again as wide as it
   measures — pulled back to 8px effective, which is where the label sits beside the mark
   rather than in the next column. */
.sb-link > svg:first-child { margin-right: -4px; }
.sb-link .lbl { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.35; }
.sb-link .sub { display: block; font-size: var(--bkz-text-xs); color: var(--bkz-ink-slate); font-weight: 400; margin-top: 1px; line-height: 1.4; }
/* A description goes UNDER its label, which is what `display: block` and the margin above were
   always reaching for — in a flex row they did nothing, so the two competed for one line in a
   rail 200px wide and both lost: "Invite y… magic link · same rep…". A status is different and
   stays beside the name; it is one word, and the pair reads as a row of a table.  */
.sb-link { flex-wrap: wrap; }
.sb-link .sub:not(.st) { flex: 1 0 100%; margin-top: 1px; }
.sb-link.on .sub { color: var(--brand-ink); opacity: .8; }
/* ---------- the rail's index state ----------
   A repository with a map and one without are not the same thing to anybody reading this list,
   and one slate grey said they were. Colour carries the difference, a dot carries it again for
   anyone who cannot use the colour, and `off` recedes so the enabled ones lead the eye. */
.sb-link .sub.st { display: inline-flex; align-items: center; gap: 6px; margin-top: 0;
  font-family: var(--bkz-font-mono); font-size: var(--bkz-text-xs); letter-spacing: 0.04em; }
.sb-link .sub.st::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; }
/* Switched on, with no index state reached this renderer: neither a claim that a map exists
   nor the greyed-out look of one that is off. The base slate, and the dot. */
/* The health dot: the rail as a status board — a column of green with the one red visible
   from across the room. Colour keyed off the same st-* classes the word uses. */
/* The dot is the kit's glyph (ui/kit.ts DOT), not a drawn circle: the same `•` the loader,
   the live tags and the scan tile are made of, at one size, coloured by the state. */
.sb-link .st-dot { flex: none; width: auto; height: auto; border-radius: 0; background: none; font: 600 13px/1 var(--bkz-font-mono); color: var(--bkz-ink-slate); }
.sb-link .st-dot::before { content: "\2022"; }
.sb-link .st-dot.st-ready { color: var(--bkz-success-ink); }
.sb-link .st-dot.st-failed { color: var(--bkz-danger-ink); }
.sb-link .st-dot.st-stalled { color: var(--bkz-warn-ink, #f5a524); animation: none; }
.sb-link .st-dot.st-indexing { color: var(--bkz-blue-link); animation: dot-breathe 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .sb-link .st-dot.st-indexing { animation: none; } }

/* ---------- the workspace switch, dressed for it (sidebar.js) ----------
   While a label is scrambling it wears a monospace face: in the rail's proportional
   font every re-roll changed the text's width, so the ellipsis blinked on and off and
   the whole column shimmied. Fixed-advance glyphs make the static hold its shape.
   12px mono sits at the same visual size as the rail's 14px UI face; the line-height is
   pinned in pixels to the boxes those labels already occupy (1.35 × 14px in the rail,
   the body's 1.55 × 14px on the workspace name), so no row changes height mid-frame. */
.lbl.is-scrambling { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: 0; line-height: 18.9px; }
.sb-ws-name .lbl.is-scrambling { line-height: 21.7px; }
/* The status dot is always where it is: leading its row, at full strength, in every state.
   It used to dim to .25 during a workspace switch — a loading affordance that made the one
   thing you scan the rail for flicker mid-teardown. The row it leads already fades as a
   whole while switching; the dot does not need its own separate flicker on top of that. */

/* The pulse line: the whole repository in one glance — dot, verdict, facts, remedy. */
.pulse { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 14px; border: 1px solid var(--ui-border); border-left-width: 3px; border-radius: var(--bkz-radius-panel); background: var(--ui-surface); }
.pulse-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.pulse-ok { border-left-color: var(--bkz-success-ink); }
.pulse-ok .pulse-dot { background: var(--bkz-success-ink); box-shadow: 0 0 8px color-mix(in srgb, var(--bkz-success-ink) 60%, transparent); }
.pulse-warn { border-left-color: var(--bkz-blue-link); }
.pulse-warn .pulse-dot { background: var(--bkz-blue-link); box-shadow: 0 0 8px color-mix(in srgb, var(--bkz-blue-link) 60%, transparent); }
.pulse-bad { border-left-color: var(--bkz-danger-ink); }
.pulse-bad .pulse-dot { background: var(--bkz-danger-ink); box-shadow: 0 0 8px color-mix(in srgb, var(--bkz-danger-ink) 60%, transparent); }
.pulse strong { font-size: var(--bkz-text-md); }
.pulse .muted { font-size: var(--bkz-text-sm); }
.pulse-act { margin-left: auto; }

/* The visible door to ⌘K — a palette nobody can find is a palette nobody has. */
.sb-palette { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 8px 10px; padding: 7px 10px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); background: transparent; color: var(--ui-ink-muted); font-size: var(--bkz-text-sm); cursor: pointer; width: calc(100% - 16px); }
.sb-palette:hover { color: var(--ui-ink-strong); border-color: var(--ui-border-hover); background: var(--ui-row-hover); }
.sb-palette kbd { font-family: var(--bkz-font-mono); font-size: var(--bkz-text-xs); border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-sm); padding: 1px 5px; }

.sb-link .sub.st-on { color: var(--bkz-ink-slate); }
.sb-link .sub.st-ready { color: var(--bkz-success-ink); font-weight: 600; }
.sb-link .sub.st-failed { color: var(--bkz-danger-ink); font-weight: 600; }
.sb-link .sub.st-indexing { color: var(--bkz-blue-link); }
.sb-link .sub.st-indexing::before { animation: dot-breathe 1.4s ease-in-out infinite; }
/* Switched off is the resting state of most of a large grant: no dot, no colour, no weight.
   It is the absence the other three are read against. */
/* No `st-off`: the rail lists only what is switched on, so the state cannot be rendered. What
   is granted-but-off lives on /repos, which re-reads the grant from GitHub before drawing it. */
/* The one motion. Everything that is running breathes like the globe's sweep — the rail dot,
   a live tag, a phase, a pressed button, the running step of the scan tile. */
/* An empty lane with work in flight: one line, the product's own dot, breathing with the
   same motion the rail and the scan bar use. No spinner, no bar, no second idiom. */
.gd-row-working { display: flex; align-items: center; gap: 8px; }
.gd-working-dot { color: var(--bkz-blue-link); animation: dot-breathe 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .gd-working-dot { animation: none; } }

@keyframes dot-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
/* The scan meter before its first counted file: breathing, not a 0% that sits for minutes. */
[data-f="bar"].st-indexing { animation: dot-breathe 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .sb-link .sub.st-indexing::before { animation: none; }
}
.sidebar.collapsed .sb-link { height: 40px; width: 40px; justify-content: center; padding: 0; color: var(--ui-ink-faint); }
.sidebar.collapsed .sb-link.on { color: var(--brand-ink); }
.sb-initial { width: 20px; height: 20px; border-radius: var(--bkz-radius-sm); display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--ui-tint-6); color: inherit; flex-shrink: 0; }
.sb-section { margin-top: 28px; display: flex; min-height: 0; flex: 1; flex-direction: column; padding: 0 12px; }
.sb-label { padding: 0 8px 6px; font-size: var(--bkz-text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bkz-ink-slate); }
/* The denominator: "3/62 on" says the other fifty-nine exist and where they went. */
.sb-count { font-weight: 400; letter-spacing: normal; text-transform: none; opacity: 0.8; }
.sb-scroll { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.sb-repo-fold { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.sb-repo-chev { flex: none; width: 14px; height: 28px; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--bkz-ink-ghost); cursor: pointer; font-size: 9px;
  line-height: 28px; text-align: center; }
.sb-repo-chev::before { content: "▸"; }
.sb-repo-fold.open > .sb-repo .sb-repo-chev::before { content: "▾"; }
.sb-repo-fold:not(.open) > .sb-repo-subs { display: none; }
.sb-repo-subs { display: flex; flex-direction: column; padding: 0 4px 6px 32px; }
.sb-repo-sub { display: block; padding: 3px 8px; border-radius: var(--bkz-radius-sm);
  font-size: 12px; line-height: 18px; color: var(--bkz-ink-slate); text-decoration: none; }
.sb-repo-sub:hover, a.sb-repo-sub:hover { color: var(--bkz-ink-rail); background: var(--ui-hover);
  text-decoration: none; }
/* Not the repo row's brand wash — that made FitFo and Bugs read as one selected block. */
.sb-repo-sub.on { color: var(--ui-ink-strong); background: var(--ui-trough);
  box-shadow: inset 2px 0 0 var(--brand-ink); }
.sidebar.collapsed .sb-repo-chev,
.sidebar.collapsed .sb-repo-subs { display: none; }
.sb-empty { margin: 0; padding: 12px 8px; font-size: 12.5px; line-height: 20px; color: var(--bkz-ink-slate); }
.sb-empty-split { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.sb-foot { border-top: 1px solid var(--bkz-border-soft); padding: 12px; margin-top: auto; flex-shrink: 0; }
/* Add credits and Workspace usage sit in this footer on every page. Their rules used to live
   in credits.css, which only the billing pages load, so everywhere else they painted as the
   browser's blue inline links, jammed onto one line above the account. */
.sb-add-credits, .sb-usage { display: flex; align-items: center; gap: 12px; width: 100%;
  text-decoration: none; font-size: 13px; border-radius: var(--bkz-radius-md); }
.sb-add-credits { padding: 11px 12px; margin-bottom: 6px; color: var(--ui-ink-strong);
  font-weight: 500; border: 1px solid var(--ui-border); background: var(--ui-surface);
  transition: border-color .12s ease, background .12s ease; }
.sb-add-credits:hover, .sb-add-credits.on { border-color: var(--ui-ink-muted);
  background: var(--ui-hover); text-decoration: none; color: var(--ui-ink-strong); }
.sb-add-credits svg { color: var(--brand-ink); flex-shrink: 0; }
.sb-add-credits:focus-visible { outline: none;
  box-shadow: 0 0 0 2px var(--ui-tint-10), 0 0 0 1px var(--ui-ink-strong); }
.sb-usage { padding: 12px; margin-bottom: 8px; color: var(--ui-ink-muted); border-radius: var(--bkz-radius-sm); }
.sb-usage:hover, .sb-usage.on { background: var(--ui-hover); color: var(--ui-ink-strong); text-decoration: none; }
.sb-usage svg { flex-shrink: 0; }
.sb-usage:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.sidebar.collapsed .sb-foot { border-top: 0; padding: 0; margin-top: auto; }
.acct-btn { display: flex; width: 100%; align-items: center; gap: 10px; border-radius: var(--bkz-radius-xl); border: 0; background: transparent; padding: 6px 8px; cursor: pointer; text-align: left; transition: background var(--bkz-duration-base); }
.acct-btn:hover { background: var(--ui-hover); }
.sidebar.collapsed .acct-btn { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 9999px; background: var(--ui-accent-btn); }
.sidebar.collapsed .acct-btn:hover { background: var(--ui-accent-btn-hover); }
.avatar { width: 32px; height: 32px; border-radius: 9999px; background: var(--ui-accent-btn); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--ui-on-accent); font-weight: 700; font-size: 10px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar.collapsed .avatar { width: 36px; height: 36px; }
.acct-main { min-width: 0; flex: 1; }
.acct-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--bkz-text-base); font-weight: 500; color: var(--bkz-ink-strong); }
.acct-mail { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--bkz-text-xs); color: var(--bkz-ink-slate); }
.acct-gear { flex-shrink: 0; color: var(--ui-ink-faint); }
.menu-scrim { position: fixed; inset: 0; z-index: 40; }
.account-menu { position: fixed; bottom: 16px; left: 288px; z-index: 50; width: 256px; overflow: hidden; border-radius: var(--bkz-radius-xl); border: 1px solid var(--bkz-border-hairline); background: var(--ui-surface); box-shadow: var(--bkz-shadow-menu-rail); animation: bkz-fade-up .25s var(--bkz-ease-settle) both; }
.account-menu.from-collapsed { left: 70px; }
.am-head { border-bottom: 1px solid var(--bkz-border-hairline); padding: 12px 16px; }
.am-eyebrow { font-size: var(--bkz-text-2xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--bkz-ink-ghost); }
.am-who { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--bkz-text-md); font-weight: 500; color: var(--bkz-ink-strong); }
.am-item { display: flex; width: 100%; align-items: center; gap: 8px; border: 0; border-bottom: 1px solid var(--bkz-border-hairline); background: var(--ui-surface); padding: 10px 16px; text-align: left; font-size: var(--bkz-text-md); color: var(--bkz-ink-strong); cursor: pointer; transition: background var(--bkz-duration-base); text-decoration: none; }
.am-item:last-child { border-bottom: 0; }
.am-item:hover { background: var(--bkz-bg-shell); text-decoration: none; color: var(--bkz-ink-strong); }
.am-item svg { color: var(--ui-ink-faint); flex-shrink: 0; }
.main { min-height: 100vh; padding-left: max(var(--rail-min), var(--rail-w, 280px)); }
.main.main-collapsed { padding-left: 60px; }
.main-inner { margin: 0 auto; max-width: 1152px; padding: 24px 32px 80px; min-width: 0; }

/* ---------- page header (PageHeader.jsx) + segmented subnav (Segmented.jsx) ---------- */
.page-head { margin-bottom: 20px; animation: bkz-fade-up .45s var(--bkz-ease-settle) both; }
.page-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* A page's own controls, at the far end of the line that names it. */
.page-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* Title+body stay one column so the sentence never runs under the buttons — the
   `.pr-head` row this used to be put the actions on the title line and the sub
   under both, which is the thin banner that looked broken. */
.ig-offer { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.ig-offer-copy { min-width: 0; flex: 1 1 16rem; }
.ig-offer-copy strong { display: block; font-weight: 600; color: var(--bkz-ink-strong); }
.ig-offer-copy .sub { margin: 4px 0 0; }
.ig-offer .page-actions { margin-left: 0; flex: 0 0 auto; }
.ig-offer .dp-decide { margin: 0; }
.page-title { font-size: var(--bkz-text-4xl); font-weight: 700; letter-spacing: var(--bkz-tracking-snug); color: var(--bkz-ink); }
.page-title-repo { color: color-mix(in srgb, var(--brand-ink) 72%, var(--bkz-ink)); }
.page-title-repo a { color: inherit; text-decoration: none; }
.page-title-repo a:hover { color: var(--brand-ink); }
.page-sub { color: var(--bkz-muted); font-size: var(--bkz-text-md); }
.subnav { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 14px; border-radius: var(--bkz-radius-md); padding: 2px; background: var(--ui-trough); }
.nav-item { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; border-radius: var(--bkz-radius-sm); padding: 6px 12px; min-height: 32px; line-height: 1; font-size: var(--bkz-text-xs); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ui-ink-muted); transition: all var(--bkz-duration-base); }
.nav-item:hover { color: var(--ui-ink-body); text-decoration: none; }
/* The current section wears a subtle tint of the workspace's brand — a shade, not a badge:
   the reader's eye finds where they are without the bar shouting. The tint rides the same
   brand tokens the rail's count pill uses, so a branded workspace stays one colour. */
.nav-item.on { background: color-mix(in srgb, var(--brand-soft) 42%, var(--ui-surface)); color: color-mix(in srgb, var(--brand-ink) 55%, var(--ui-ink-strong)); box-shadow: var(--ui-shadow-sm), inset 0 0 0 1px color-mix(in srgb, var(--brand-ink) 14%, transparent); }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bkz-warn); display: inline-block; }
.nav-count { font-size: var(--bkz-text-2xs); padding: 1px 6px; border-radius: 9999px; background: var(--brand-soft); color: var(--brand-ink); letter-spacing: 0; }

/* ---------- connect ---------- */
.connect { max-width: 640px; }
.empty-hero { text-align: left; }
.connect .empty-hero { margin-bottom: 24px; }
.connect-grid { display: grid; gap: 12px; }
.opt { display: flex; align-items: flex-start; gap: 13px; padding: 16px 20px; border: 1px solid var(--bkz-border-rail); border-radius: var(--bkz-radius-3xl); background: var(--ui-surface); text-align: left; width: 100%; cursor: pointer; color: inherit; transition: all var(--bkz-duration-base); }
.opt:hover { border-color: var(--ui-brand-border); transform: translateY(-2px); box-shadow: var(--bkz-shadow-automation-hover); text-decoration: none; color: inherit; }
.opt:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.opt-primary { align-items: center; }
.oi { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--bkz-radius-xl); background: var(--brand-soft); color: var(--brand-ink); }
.ot { font-weight: 600; font-size: 14.5px; color: var(--bkz-ink-strong); }
.od { color: var(--ui-ink-soft); font-size: 12.5px; line-height: 1.55; margin-top: 2px; }
.disclose { padding: 0 2px; }
.divider-or { display: flex; align-items: center; gap: 12px; color: var(--bkz-ink-slate); font-size: var(--bkz-text-sm); margin: 2px 0; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--bkz-border-hairline); }
.repo-picker { max-height: 380px; overflow-y: auto; margin: 0 -6px; padding: 6px; }
.repo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--bkz-radius-md); cursor: pointer; border: 1px solid transparent; transition: background var(--bkz-duration-base); }
.repo-row:hover { background: var(--ui-hover); }
.repo-row .rr-name { font-weight: 500; font-size: var(--bkz-text-base); }
.repo-row .rr-desc { color: var(--bkz-ink-slate); font-size: var(--bkz-text-sm); margin-top: 1px; }
.setup-steps { margin: 0; padding-left: 18px; font-size: var(--bkz-text-sm); color: var(--ui-ink-body); line-height: 1.6; }
.setup-steps li { margin-bottom: 8px; }

/* ---------- the six checks ---------- */
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.dot-on { background: var(--brand); }
.dot-off { background: var(--bkz-ink-disabled); }
.dot-ready { background: var(--bkz-warn); }

/* ---------- results: headline ---------- */
.headline { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; align-items: center; padding: 24px 28px; border-radius: var(--bkz-radius-panel); background: var(--ui-glass-solid); backdrop-filter: blur(28px) saturate(210%); -webkit-backdrop-filter: blur(28px) saturate(210%); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow), var(--glass-inset); overflow: hidden; animation: bkz-fade-up .45s var(--bkz-ease-settle) both; }
.headline::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%); }
.headline > * { position: relative; z-index: 1; }
.headline .big .n { display: block; font-size: var(--bkz-text-8xl); font-weight: 600; letter-spacing: var(--bkz-tracking-tight); line-height: .95; color: var(--bkz-ink); font-variant-numeric: tabular-nums; }
.headline-zero .big .n { color: var(--bkz-muted); }
.headline .big small { display: block; margin-top: 8px; font-size: var(--bkz-text-xs); font-weight: 500; letter-spacing: var(--bkz-tracking-eyebrow-widest); text-transform: uppercase; color: var(--bkz-muted); }
.headline .say { font-size: var(--bkz-text-md); line-height: 24px; color: var(--ui-ink-body); max-width: 48ch; }
.headline .say b { color: var(--bkz-ink); }
.checks-line { display: block; margin-top: 8px; font-size: var(--bkz-text-sm); color: var(--bkz-muted); }
.head-acts { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 720px) { .headline { grid-template-columns: 1fr; } }

/* ---------- results: funnel ---------- */
.funnel { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 14px 0 0; padding: 10px 14px; border: 1px solid var(--bkz-border-rail); border-radius: var(--bkz-radius-3xl); background: var(--ui-surface); }
.funnel-k { font-size: var(--bkz-text-2xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bkz-ink-slate); margin-right: 8px; font-weight: 600; }
.fchip { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 10px; border-radius: var(--bkz-radius-full); color: var(--ui-chip-ink); font-size: var(--bkz-text-xs); font-weight: 500; background: var(--ui-chip); border: 1px solid transparent; }
.fchip b { font-size: var(--bkz-text-base); color: var(--bkz-ink-strong); font-variant-numeric: tabular-nums; font-weight: 600; }
.fchip:hover { border-color: var(--brand); text-decoration: none; color: var(--ui-chip-ink); }
.fchip-minus { background: var(--bkz-warn-tint); color: var(--bkz-warn-ink); }
.fchip-minus b { color: var(--bkz-warn-ink); }
.fchip-eq { background: var(--brand-soft); color: var(--brand-ink); }
.fchip-eq b { color: var(--brand-ink); }
.fop { color: var(--bkz-ink-slate); font-size: var(--bkz-text-base); }

/* ---------- results: veto ---------- */
.veto { margin-top: 16px; padding: 14px 16px 8px; border-color: var(--ui-warn-border); background: var(--ui-warn-row); }
.veto-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--bkz-text-md); color: var(--bkz-ink); }
.veto-h .badge { margin-left: 0; }
.veto .tiny { margin: 4px 0 8px; }
.flist-flat { margin-top: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.flist-flat .frow { padding-left: 0; padding-right: 0; }

/* ---------- results: the list (Surface solid) ---------- */
.flist { margin-top: 18px; border-radius: var(--bkz-radius-3xl); overflow: hidden; background: var(--ui-glass-solid); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--ui-glass-border-solid); box-shadow: var(--ui-shadow-sm-wide), var(--ui-sheen); }
.flist + .flist { margin-top: 14px; }
.fgrp { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: wrap; padding: 9px 16px; background: var(--ui-sunk-a); border-bottom: 1px solid var(--bkz-border-hairline); font-size: var(--bkz-text-2xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bkz-muted); font-weight: 600; }
.fgrp + .fgrp, .frow + .fgrp { border-top: 1px solid var(--bkz-border-hairline); }
.fgrp em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--bkz-ink-slate); font-size: var(--bkz-text-sm); font-weight: 400; }
.fgrp .linkish { text-transform: none; letter-spacing: 0; font-size: var(--bkz-text-sm); }
.fgrp > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.gdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.g-ok { background: var(--bkz-success); } .g-ask { background: var(--brand); } .g-use { background: var(--bkz-warn); }
.frow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--bkz-border-hairline); transition: background var(--bkz-duration-base); }
.frow:last-child { border-bottom: 0; }
.frow:hover { background: var(--ui-row-hover); }
.frow-kept { opacity: .6; }
.frow-sel { background: var(--brand-softer); }
.frow-bad { background: var(--ui-bad-row); }
.frow-empty, .frow-more { color: var(--bkz-muted); font-size: var(--bkz-text-base); padding: 12px 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fmark { width: 18px; height: 18px; border-radius: var(--bkz-radius-sm); flex-shrink: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.fmark-on { background: var(--ui-accent-btn); color: var(--ui-on-accent); }
.fmark-off { background: var(--ui-tint-6); color: var(--ui-ink-muted); }
.fmark-use { color: var(--bkz-warn); background: var(--bkz-warn-tint); font-size: 8px; }
.fmark-bad { background: var(--bkz-danger); color: var(--ui-on-accent); }
.fchk { width: 18px; height: 18px; border-radius: var(--bkz-radius-sm); flex-shrink: 0; border: 1px solid var(--ui-border-hover); background: var(--ui-surface); cursor: pointer; display: grid; place-items: center; font-size: 11px; color: var(--ui-on-accent); padding: 0; transition: all var(--bkz-duration-base); }
.fchk:hover { border-color: var(--ui-ink-strong); }
.fchk.on { background: var(--ui-accent-btn); border-color: var(--ui-accent-btn); }
.fmain { flex: 1; min-width: 0; color: inherit; display: block; }
.fmain:hover { text-decoration: none; color: inherit; }
.fmain:hover .fname { color: var(--brand-ink); }
.fname { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-weight: 600; font-size: var(--bkz-text-md); color: var(--bkz-ink-strong); }
.fdir { font-family: var(--bkz-font-mono); font-size: var(--bkz-text-xs); color: var(--bkz-ink-slate); font-weight: 400; margin-left: 4px; }
.fverdict { display: block; font-size: var(--bkz-text-sm); color: var(--ui-ink-soft); margin-top: 2px; line-height: 1.5; }
.fverdict b { color: var(--ui-ink-body); }
.fverdict code { font-size: var(--bkz-text-xs); }
.flines { font-size: var(--bkz-text-2xl); font-weight: 600; color: var(--bkz-ink); text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; line-height: 1.05; min-width: 44px; letter-spacing: -0.02em; }
.flines small { display: block; font-size: var(--bkz-text-2xs); color: var(--bkz-ink-slate); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.flines-na { color: var(--bkz-ink-disabled); }
.caret { color: var(--bkz-ink-disabled); font-size: 18px; line-height: 1; }
.caret-link { flex-shrink: 0; padding: 4px; }
.caret-link:hover { text-decoration: none; }

/* ---------- results: tray, verify, ledger, exports ---------- */
.tray { margin-top: 16px; padding: 14px 16px; }
.tray-h { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; font-size: var(--bkz-text-md); color: var(--bkz-ink); }
.tray-h .muted { font-size: var(--bkz-text-sm); }
.tray .btn-row { margin-top: 10px; }
.pol-line { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.pol-edit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--bkz-text-sm); margin: 6px 0 10px; }
.pr-result { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; color: var(--ui-ink-body); }
.verify { margin-top: 16px; padding: 14px 16px; }
.mini-title { font-size: var(--bkz-text-md); font-weight: 600; margin-bottom: 10px; color: var(--bkz-ink); }
.mini-title .muted { font-weight: 400; }
.mini-count { font-size: var(--bkz-text-lg); color: var(--bkz-muted); margin-left: 6px; }
.vphases { display: flex; flex-direction: column; gap: 5px; }
.vphase { display: flex; align-items: center; gap: 10px; font-size: var(--bkz-text-base); }
.vphase.pending { opacity: .5; }
.vph-i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--ui-tint-6); color: var(--ui-ink-muted); flex-shrink: 0; }
.vphase.done .vph-i { background: var(--bkz-success-tint); color: var(--bkz-success-ink); }
.vph-l { flex: 1; }
.vph-d { font-family: var(--bkz-font-mono); font-size: var(--bkz-text-xs); color: var(--bkz-muted); }
.verdict-ok { margin-top: 12px; padding: 12px 14px; border-radius: var(--bkz-radius-xl); background: var(--bkz-success-tint); color: var(--bkz-success-ink); border: 1px solid var(--bkz-success-border); font-weight: 500; font-size: var(--bkz-text-md); line-height: 1.5; }
.verdict-bad { margin-top: 12px; padding: 12px 14px; border-radius: var(--bkz-radius-xl); background: var(--bkz-danger-tint); color: var(--bkz-danger-ink); border: 1px solid var(--bkz-danger-border); font-weight: 500; font-size: var(--bkz-text-md); line-height: 1.5; }
.verdict-ok .tiny, .verdict-bad .tiny { font-weight: 400; margin-top: 4px; }
.verdict-ok .muted { color: var(--bkz-success-ink); opacity: .85; }
.verdict-bad .muted { color: var(--bkz-danger-ink); opacity: .85; }
.verdict-bad .btn-row { margin-top: 10px; }
.ledger { margin-top: 8px; }
.lrow { display: flex; align-items: flex-start; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--bkz-border-hairline); }
.lrow:last-child { border-bottom: 0; }
.lrow-bad { background: var(--ui-bad-row); }
.lstate { flex-shrink: 0; font-size: var(--bkz-text-2xs); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; padding: 3px 9px; border-radius: 9999px; min-width: 104px; text-align: center; margin-top: 2px; border: 1px solid transparent; }
.ls-quiet { background: var(--ui-tint-5); color: var(--ui-ink-muted); border-color: var(--ui-tint-8); }
.ls-watch { background: var(--brand-soft); color: var(--brand-ink); }
.ls-ok { background: var(--bkz-success-tint); color: var(--bkz-success-ink); border-color: var(--bkz-success-border); }
.ls-bad { background: var(--bkz-danger); color: var(--brand-contrast); font-weight: 600; }
.lmain { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.exports .dex-file, .surgical .dex-file { display: flex; gap: 12px; align-items: flex-start; padding: 9px 16px; border-bottom: 1px solid var(--bkz-border-hairline); font-size: var(--bkz-text-sm); }
.exports .dex-file:last-child, .surgical .dex-file:last-child { border-bottom: 0; }
.exports .dex-file > .mono, .surgical .dex-file > .mono { flex-shrink: 0; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exports .chips, .surgical .chips { margin-top: 0; }
.surgical .chip .muted { font-family: var(--bkz-font-mono); font-size: var(--bkz-text-2xs); }
.surgical-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; }
.surgical-foot .tiny { max-width: 60ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--bkz-border-hairline); font-size: var(--bkz-text-base); }

/* ---------- scoreboard (StatCard.jsx) ---------- */
.scoreboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 8px; margin-bottom: 16px; }
.sb-tile { display: flex; flex-direction: column; gap: 1px; padding: 14px 16px; border-radius: var(--bkz-radius-3xl); background: var(--ui-glass-solid); backdrop-filter: blur(28px) saturate(210%); -webkit-backdrop-filter: blur(28px) saturate(210%); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow), var(--glass-inset); color: inherit; min-width: 0; transition: all var(--bkz-duration-base) var(--bkz-ease-settle); }
a.sb-tile:hover { transform: translateY(-1px); box-shadow: var(--glass-shadow-lg), var(--glass-inset); text-decoration: none; color: inherit; }
.sb-l { order: -1; font-size: var(--bkz-text-xs); font-weight: 500; letter-spacing: var(--bkz-tracking-eyebrow-widest); text-transform: uppercase; color: var(--bkz-muted); }
.sb-n { margin-top: 8px; font-size: var(--bkz-text-4xl); font-weight: 600; letter-spacing: -0.02em; color: var(--bkz-ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.sb-ok .sb-n { color: var(--bkz-success-ink); }
.sb-warn .sb-n { color: var(--bkz-warn-ink); }
.sb-bad .sb-n { color: var(--bkz-danger-ink); }
.sb-s { font-size: var(--bkz-text-xs); color: var(--bkz-muted); margin-top: 2px; }
.sb-stale { grid-column: 1 / -1; padding: 10px 14px; border-radius: var(--bkz-radius-3xl); background: var(--bkz-danger-alert-bg); color: var(--bkz-danger-alert-ink); border: 1px solid var(--bkz-danger-alert-border); font-size: var(--bkz-text-base); }
.sb-stale a { color: var(--bkz-danger-alert-ink); text-decoration: underline; }

/* ---------- CI states ---------- */
.ci { margin-top: 10px; padding: 12px 14px; border-radius: var(--bkz-radius-xl); font-size: var(--bkz-text-base); line-height: 1.5; }
.ci-judging, .ci-pending { background: var(--brand-soft); color: var(--brand-ink); }
.ci-judging .muted, .ci-pending .muted { color: var(--brand-ink); opacity: .8; }
.ci-skipped { background: var(--bkz-warn-tint); color: var(--bkz-warn-ink); border: 1px solid var(--ui-warn-border); }
.ci-skipped b { color: var(--bkz-warn-ink); }
.ci-none { background: var(--ui-sunk); color: var(--ui-ink-body); border: 1px solid var(--ui-border); }
.ci .btn-row { margin-top: 10px; }

/* ---------- decide rows, summaries ---------- */
.decide-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--bkz-border-hairline); font-size: var(--bkz-text-base); }
.decide-row:first-of-type { border-top: 0; }
.decide-row .badge { margin-left: 0; }
.decide-title { font-weight: 600; color: var(--bkz-ink-strong); }
.decide-rule { flex-basis: 100%; }
.decide-cta { margin: 4px 0 14px; padding: 14px 16px; }
.decide-cta .btn-row .tiny { max-width: 44ch; }
.decide-open { font-size: var(--bkz-text-base); color: var(--ui-ink-body); margin-bottom: 4px; }
.pr-summary { margin-bottom: 16px; padding: 12px 16px; }
.pr-summary .mini-title { display: flex; align-items: center; gap: 8px; }

/* ---------- the PR board ---------- */
.pr-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.pr-card { padding: 16px 18px; background: var(--ui-surface); backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid var(--bkz-border-rail); box-shadow: none; }
.pr-card:hover { border-color: var(--ui-brand-border); box-shadow: var(--bkz-shadow-automation-hover); }
.pr-closed { opacity: .85; }
.pr-reverted { border-color: var(--bkz-danger-border); }
.pr-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pr-head .badge { margin-left: 0; }
.pr-title { font-weight: 600; font-size: 14.5px; color: var(--bkz-ink-strong); }
.pr-meta { margin-left: auto; }
.pr-tl { display: flex; align-items: center; margin: 12px 0 10px; overflow-x: auto; }
.pr-node { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: var(--bkz-text-sm); color: var(--bkz-muted); }
.pr-dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: var(--ui-tint-6); color: var(--ui-ink-faint); flex-shrink: 0; }
.pr-node.done .pr-dot { background: var(--bkz-success-tint); color: var(--bkz-success-ink); }
.pr-node.current .pr-dot { background: var(--brand); color: var(--brand-contrast); }
.pr-node.current .pr-label { color: var(--bkz-ink); font-weight: 600; }
.pr-node.bad .pr-dot { background: var(--bkz-danger); color: var(--brand-contrast); }
.pr-node.bad .pr-label { color: var(--bkz-danger-ink); font-weight: 600; }
.pr-node.skip { opacity: .35; }
.pr-label small { display: block; font-family: var(--bkz-font-mono); font-size: var(--bkz-text-2xs); color: var(--bkz-ink-slate); }
.pr-line { width: 22px; height: 1px; background: var(--ui-border); margin: 0 8px; flex-shrink: 0; }
.pr-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.watch-block { margin-top: 10px; padding: 12px 14px; border-radius: var(--bkz-radius-xl); background: var(--brand-softer); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); }
.watch-day .sb-n { color: var(--brand-ink); font-size: 22px; margin-top: 0; display: inline; }
.watch-bar { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 18%, transparent); margin: 8px 0; overflow: hidden; }
.watch-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }
.watch-block .tiny b { color: var(--brand-ink); }
.surgical-strip { border-left: 3px solid var(--brand); }

/* ---------- refused / empty (EmptyState.jsx) ---------- */
.refused { border-color: var(--ui-warn-border); }
.refused .lede-lg { color: var(--bkz-ink); }
/* One empty state, everywhere. `.et` is the fact — what is not there — and `.ed` is what would
   put something there, which is the only reason an empty page is worth rendering: a page that
   says "nothing yet" and stops has told the reader they are stuck. The gap between them is
   tighter than the gap to an action, because they are one sentence in two registers. */
.empty { padding: 40px 24px; text-align: center; color: var(--ui-ink-muted); margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: var(--bkz-text-sm); line-height: 24px; }
.empty .et { font-size: var(--bkz-text-md); font-weight: 600; color: var(--ui-ink-strong); }
.empty .ed { max-width: 46ch; }
.empty .btn-row { margin-top: 10px; }

/* ---------- the sweep (Disclosure.jsx for stages) ---------- */
.sweep-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; animation: bkz-fade-up .45s var(--bkz-ease-settle) both; }
.sweep-head .muted { margin-top: 4px; }
.sweep-head .btn-row { margin-top: 0; }
.rail { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 2px 0 10px; }
.rnode { display: flex; align-items: center; gap: 8px; padding-right: 12px; flex-shrink: 0; color: var(--bkz-muted); font-size: var(--bkz-text-sm); }
.rnode:hover { text-decoration: none; color: var(--bkz-ink); }
.rdot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--bkz-font-mono); font-size: 11px; flex-shrink: 0; background: var(--ui-tint-6); color: var(--ui-ink-faint); }
.rnode.done .rdot { background: var(--bkz-success-tint); color: var(--bkz-success-ink); }
.rnode.active .rdot { background: var(--brand); color: var(--brand-contrast); }
.rnode.active .rlabel { color: var(--bkz-ink); font-weight: 600; }
.rnode.skipped { opacity: .5; }
.rline { width: 22px; height: 1px; background: var(--ui-border); flex-shrink: 0; margin-right: 12px; }
.stages { display: flex; flex-direction: column; gap: 8px; }
.stage { border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-xl); background: var(--ui-surface); transition: border-color var(--bkz-duration-base); }
.stage:hover { border-color: var(--ui-border-hover); }
.stage.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-softer); }
.stage.todo { opacity: .55; }
.stage.skipped { opacity: .7; }
.stage-h { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 20px; background: none; border: 0; text-align: left; cursor: pointer; color: inherit; border-radius: var(--bkz-radius-xl); }
.stage-h:disabled { cursor: default; }
.stage-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--bkz-font-mono); font-size: 11.5px; flex-shrink: 0; background: var(--ui-tint-6); color: var(--ui-ink-muted); }
.stage.done .stage-n { background: var(--bkz-success-tint); color: var(--bkz-success-ink); }
.stage.active .stage-n { background: var(--brand); color: var(--brand-contrast); }
.stage-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.stage-title { font-weight: 600; font-size: var(--bkz-text-md); color: var(--ui-ink-strong); }
.stage-verdict { font-size: var(--bkz-text-sm); line-height: 20px; color: var(--ui-ink-muted); }
.stage-verdict b { color: var(--bkz-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.stage-sub { font-size: var(--bkz-text-sm); line-height: 20px; color: var(--ui-ink-muted); }
.stage-elapsed { font-family: var(--bkz-font-mono); font-size: var(--bkz-text-sm); color: var(--bkz-muted); font-variant-numeric: tabular-nums; }
.stage-caret { color: var(--ui-ink-faint); font-size: 12px; transition: transform var(--bkz-duration-base); }
.stage.open .stage-caret { transform: rotate(90deg); }
.stage-body { padding: 4px 20px 20px 56px; }
.stage-body p { margin: 8px 0 0; }
.bignums { display: flex; gap: 24px; flex-wrap: wrap; }
.bn-v { font-size: var(--bkz-text-4xl); font-weight: 600; letter-spacing: -0.02em; color: var(--bkz-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.bn-v.warn { color: var(--bkz-warn-ink); }
.bn-v.ok { color: var(--bkz-success-ink); }
.bn-v.use { color: var(--bkz-warn-ink); }
.bn-l { font-size: var(--bkz-text-xs); color: var(--bkz-muted); margin-top: 2px; }
.subchecks { display: flex; flex-direction: column; gap: 6px; }
.subcheck { display: flex; align-items: center; gap: 10px; font-size: var(--bkz-text-base); }
.subcheck.todo { opacity: .5; }
.sc-i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--ui-tint-6); color: var(--ui-ink-muted); flex-shrink: 0; }
.subcheck.done .sc-i { background: var(--bkz-success-tint); color: var(--bkz-success-ink); }
.sc-l { flex: 1; }
.sc-v { font-family: var(--bkz-font-mono); font-size: var(--bkz-text-xs); color: var(--bkz-muted); }
.sub-h { margin-top: 14px; font-size: var(--bkz-text-base); color: var(--bkz-ink); }
.sub-h:first-child { margin-top: 0; }
.sub-h .muted { font-weight: 400; }
.tbl { display: flex; flex-direction: column; margin-top: 8px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); overflow: hidden; }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; align-items: center; padding: 6px 12px; font-size: var(--bkz-text-sm); border-top: 1px solid var(--bkz-border-hairline); background: var(--ui-surface); min-width: 0; }
.trow:first-child { border-top: 0; }
/* Screenshots from an investigation. Auto-fit rather than a fixed count: one shot should fill
   the row and read like evidence, four should tile — a single 300px thumbnail beside empty
   space is the layout saying "incidental" about the one thing on the page a person can read
   at a glance. Images carry their own border because a screenshot of OUR dark UI has no edge
   against this surface, and one bleeding into the page reads as part of it. */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 8px; }
.shot { margin: 0; min-width: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); background: var(--ui-sunk); }
.shot figcaption { margin-top: 6px; font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); display: flex; gap: 8px; align-items: baseline; }
/* A recording sits in the same grid as a screenshot and wears the same frame: the reader is
   answering one question — what did the screen do — and the executor that produced it is not
   their concern. Portrait footage from a phone is the common case, hence the height cap. */
.shot video { display: block; width: 100%; max-height: 520px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); background: #000; }
.trow-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 26px; }
.trow-h { grid-template-columns: 1fr auto; background: var(--ui-sunk); font-weight: 600; color: var(--ui-ink-body); }
.trow-more { grid-template-columns: 1fr; }
.trow.trow-auto { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; }
.trow-auto .badge { margin-left: 0; }
.tnum { font-variant-numeric: tabular-nums; color: var(--bkz-muted); }
.tcell-why { min-width: 0; color: var(--ui-ink-muted); }
.trow .mono { font-size: var(--bkz-text-xs); color: var(--ui-ink-body); }
.trow .sub.mono { display: inline-block; margin-top: 6px; color: var(--ui-ink-faint); }
.trow code { font-size: var(--bkz-text-xs); }

/* ---------- drawer (ConfirmDialog scrim + Surface solid) ---------- */
.scrim { position: fixed; inset: 0; background: var(--ui-scrim); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 60; animation: fade .15s ease; display: block; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(600px, calc(100vw - 24px)); background: var(--ui-drawer-bg); backdrop-filter: blur(28px) saturate(210%); -webkit-backdrop-filter: blur(28px) saturate(210%); border: 1px solid var(--ui-glass-border-solid); border-radius: var(--bkz-radius-4xl); z-index: 61; overflow-y: auto; box-shadow: var(--ui-shadow-menu), var(--ui-sheen); animation: bkz-fade-up .35s var(--bkz-ease-settle) both; }
.dr-top { position: sticky; top: 0; background: var(--ui-drawer-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--bkz-border-hairline); padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; z-index: 1; }
.dr-path { font-size: var(--bkz-text-sm); color: var(--bkz-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-verdict { padding: 22px 24px; border-bottom: 1px solid var(--bkz-border-hairline); }
.dr-eyebrow { font-size: var(--bkz-text-xs); font-weight: 500; letter-spacing: var(--bkz-tracking-eyebrow-widest); text-transform: uppercase; color: var(--bkz-muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dr-eyebrow .badge { margin-left: 4px; }
.dr-lead { font-size: var(--bkz-text-3xl); font-weight: 600; letter-spacing: var(--bkz-tracking-snug); line-height: 1.35; margin-top: 8px; color: var(--bkz-ink); }
.dr-lead code { font-size: var(--bkz-text-md); }
.dr-plain { font-size: var(--bkz-text-md); color: var(--bkz-muted); margin-top: 6px; max-width: 56ch; line-height: 24px; }
.caveats { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.caveat { padding: 9px 12px; border-radius: var(--bkz-radius-md); background: var(--bkz-warn-tint); color: var(--bkz-warn-ink); border: 1px solid var(--ui-warn-border); font-size: var(--bkz-text-sm); line-height: 1.5; }
.dr-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.dr-disclosure { width: 100%; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: none; border: 0; border-bottom: 1px solid var(--bkz-border-hairline); color: var(--ui-ink-body); font-size: var(--bkz-text-base); cursor: pointer; text-align: left; transition: background var(--bkz-duration-base); }
.dr-disclosure:hover { background: var(--ui-sunk-a); }
.dr-proof { padding: 6px 24px 28px; }
.proofline { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--bkz-border-hairline); font-size: var(--bkz-text-base); }
.proofline:last-child { border-bottom: 0; }
.pw { font-weight: 600; font-size: var(--bkz-text-sm); color: var(--ui-ink-body); }
.pw-ok { color: var(--bkz-success-ink); }
.pd { color: var(--ui-ink-body); min-width: 0; line-height: 1.5; }
.pd .cmd { margin: 6px 0 0; }
.tl { font-size: var(--bkz-text-sm); margin-top: 3px; }

/* ---------- connections ---------- */
.conn { margin-top: 14px; padding: 16px 18px; }
.conn-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--bkz-text-md); color: var(--bkz-ink); }
.conn-status { color: var(--bkz-muted); font-size: var(--bkz-text-sm); flex: 1; min-width: 0; }
.conn p { margin-top: 8px; max-width: 78ch; line-height: 20px; }
.conn .cmd { margin: 10px 0; }
.conn .btn-row { margin-top: 10px; }
.conn .note { margin: 10px 0 0; }
.token-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px; max-width: 640px; margin-top: 10px; }
.token-form .pol-in { width: 100%; }
.danger { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding: 16px 18px; border-radius: var(--bkz-radius-3xl); border: 1px solid var(--bkz-danger-border); background: var(--ui-surface); }
.danger .dz { font-size: var(--bkz-text-xs); font-weight: 500; letter-spacing: var(--bkz-tracking-eyebrow-widest); text-transform: uppercase; color: var(--bkz-danger-ink); display: block; margin-bottom: 4px; }

/* ---------- activity ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split > * { min-width: 0; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }
.prrow, .runrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bkz-border-hairline); color: inherit; }
.prrow:last-child, .runrow:last-child { border-bottom: 0; }
.prrow:hover, .runrow:hover { text-decoration: none; color: inherit; }
.prrow:hover .prtitle, .runrow:hover .runname { color: var(--brand-ink); }
.prbadge { flex-shrink: 0; font-size: var(--bkz-text-2xs); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; padding: 2px 8px; border-radius: 9999px; min-width: 54px; text-align: center; border: 1px solid var(--ui-tint-8); background: var(--ui-tint-5); color: var(--ui-ink-muted); }
.pr-open { background: var(--bkz-success-tint); color: var(--bkz-success-ink); border-color: var(--bkz-success-border); }
.pr-merged { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.prmain, .runmain { flex: 1; min-width: 0; }
.prtitle, .runname { display: block; font-size: var(--bkz-text-base); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prmeta, .runmeta { display: block; font-size: var(--bkz-text-xs); color: var(--bkz-ink-slate); margin-top: 1px; }
.prcomments { flex-shrink: 0; font-size: var(--bkz-text-sm); color: var(--bkz-muted); }
.chk { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.chk-ok { background: var(--bkz-success-tint); color: var(--bkz-success-ink); }
.chk-bad { background: var(--bkz-danger-tint); color: var(--bkz-danger-ink); }
.chk-run { background: var(--bkz-warn-tint); color: var(--bkz-warn-ink); }
.chk-mut { background: var(--ui-tint-5); color: var(--ui-ink-faint); }

/* ---------- the watch ---------- */
.watch-summary { display: flex; gap: 28px; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--bkz-radius-3xl); background: var(--ui-glass-solid); backdrop-filter: blur(28px) saturate(210%); -webkit-backdrop-filter: blur(28px) saturate(210%); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow), var(--glass-inset); margin-bottom: 14px; }
.dossiers { display: flex; flex-direction: column; gap: 10px; }
.dossier { padding: 14px 16px; background: var(--ui-surface); backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid var(--bkz-border-rail); box-shadow: none; }
.dossier.alive { border-color: var(--ui-warn-border); background: var(--ui-warn-row); }
.dossier.cleared { opacity: .85; }
.dossier-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dossier-h .badge { margin-left: 0; }
.dossier-file { font-weight: 600; color: var(--bkz-ink-strong); }
.dossier-file:hover { color: var(--brand-ink); text-decoration: none; }
.dossier-meta { margin-left: auto; }
.dossier-alive { margin-top: 8px; font-size: var(--bkz-text-base); color: var(--bkz-warn-ink); font-weight: 500; }
.timeline { margin-top: 10px; border-left: 2px solid var(--bkz-border-hairline); padding-left: 12px; display: flex; flex-direction: column; gap: 6px; }
.tl-row { display: flex; align-items: center; gap: 8px; font-size: var(--bkz-text-sm); flex-wrap: wrap; }
.tl-row .badge { margin-left: 0; }
.tl-when { color: var(--bkz-muted); font-size: var(--bkz-text-xs); min-width: 84px; }
.tl-detail { color: var(--ui-ink-body); }
.auto-line { margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.auto-line .badge { margin-left: 0; }
.modes { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 12px; border-radius: var(--bkz-radius-md); padding: 2px; background: var(--ui-trough); }
.mode { text-align: left; padding: 6px 12px; border: 0; border-radius: var(--bkz-radius-sm); background: transparent; cursor: pointer; display: flex; flex-direction: column; gap: 0; color: var(--ui-ink-muted); transition: all var(--bkz-duration-base); }
.mode b { font-size: var(--bkz-text-xs); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.mode span { display: none; }
.mode:hover { color: var(--ui-ink-body); }
.mode.on { background: var(--ui-surface); color: var(--ui-ink-strong); box-shadow: var(--ui-shadow-sm); }
.mode-note { margin-top: 8px; font-size: 12.5px; line-height: 1.55; color: var(--ui-ink-soft); max-width: 70ch; }
.verdict-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.vg { padding: 12px 14px; border: 1px solid var(--bkz-border-rail); border-radius: var(--bkz-radius-3xl); background: var(--ui-surface); }

/* ---------- hover explanations ---------- */
.tip-wrap { position: relative; display: inline-flex; flex: 0 0 auto; z-index: 1; }
/* The wrap, not the pop: z-index on `.tip-pop` only competes inside this wrap
   (z-index 1). The stage numbers below the title are later siblings and painted
   through PROBLEM / NEXT as dark squares. Hover lifts the whole wrap. */
.tip-wrap:hover, .tip-wrap:focus-within { z-index: 90; }
.tip-pop {
  position: absolute; left: 50%; bottom: calc(100% + 9px);
  transform: translateX(-50%) translateY(3px);
  width: max-content; max-width: 260px; padding: 10px 12px;
  background: var(--ui-tip-bg); color: var(--ui-tip-ink);
  border-radius: var(--bkz-radius-md);
  font-size: var(--bkz-text-sm); line-height: 1.45;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .1s ease .02s, transform .1s ease .02s, visibility 0s linear .12s;
  z-index: 80; isolation: isolate; box-shadow: var(--ui-shadow);
}
.tip-wrap:hover .tip-pop, .tip-wrap:focus-within .tip-pop {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.tip-pop b {
  display: block; margin-bottom: 2px;
  font-size: 10px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase;
}
/* Tip surface inverts vs the page, so the inks are the other theme's. */
.tip-bad { color: #8a3429; }
.tip-good { color: var(--bkz-success-ink); }
.tip-ok { color: #2f6741; }
.tip-filed { color: var(--ui-tip-ink); opacity: .72; }
[data-theme="light"] .tip-bad { color: #f29690; }
[data-theme="light"] .tip-ok { color: #86d6ac; }
/* List rows sit under a header — open downward so the first ticket's card is not clipped. */
.botrow .tip-pop, .page-title-row .tip-pop {
  bottom: auto; top: calc(100% + 8px); transform: translateX(-50%) translateY(-3px);
}
.botrow .tip-wrap:hover .tip-pop, .botrow .tip-wrap:focus-within .tip-pop,
.page-title-row .tip-wrap:hover .tip-pop, .page-title-row .tip-wrap:focus-within .tip-pop {
  transform: translateX(-50%) translateY(0);
}

[data-tip] { position: relative; }
/* `.revrow-pri` joins the chip exemptions: it carries a 1px solid border on all four sides,
   and the dotted-underline affordance below would repaint only its bottom edge — three solid
   sides and one dotted grey one, which reads as a rendering fault rather than as "hoverable".
   The chips already exempted here are exempt for the same reason. */
span[data-tip]:not(.badge):not(.fmark):not(.lstate):not(.fchip):not(.stc-note):not(.gd-evidence):not(.wk-d):not(.wk-l):not(.ah-col):not(.revrow-pri):not(.bug-area):not(.bug-outcome):not(.vendored-mark):not(.bug-st):not(.bug-area-word):not(.bug-value-word):not(.bd-quiet):not(.gd-issue) { border-bottom: 1px dotted var(--ui-ink-faint); cursor: var(--cursor-mark); }
.revrow-pri[data-tip] { cursor: var(--cursor-mark); }
[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%) translateY(3px); width: max-content; max-width: 300px; padding: 8px 11px; background: var(--ui-tip-bg); color: var(--ui-tip-ink); border-radius: var(--bkz-radius-md); font-size: var(--bkz-text-sm); line-height: 1.5; font-weight: 400; font-family: var(--bkz-font-sans); letter-spacing: 0; text-transform: none; white-space: normal; text-align: left; opacity: 0; pointer-events: none; transition: opacity .1s ease .02s, transform .1s ease .02s; z-index: 70; }
[data-tip]::before { content: ''; position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ui-tip-bg); opacity: 0; pointer-events: none; transition: opacity .1s ease .02s; z-index: 70; }
[data-tip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
[data-tip]:hover::before { opacity: 1; }
/* `dtb`: the tip opens BELOW the control — for anything near the top of the viewport or a
   clipping edge (the rail's header controls), where the upward tip has nowhere to go. */
[data-tip].dtb::after { bottom: auto; top: calc(100% + 9px); transform: translateX(-50%) translateY(-3px); }
[data-tip].dtb::before { bottom: auto; top: calc(100% + 4px); border-top-color: transparent; border-bottom-color: var(--ui-tip-bg); }
[data-tip].dtb:hover::after { transform: translateX(-50%) translateY(0); }
/* The rail sits flush left, so a centred 300px tip would clip off-screen: anchor it left. */
.sidebar [data-tip].dtb::after { left: 0; transform: translateY(-3px); max-width: min(300px, calc(var(--rail-w, 280px) - 48px)); }
.sidebar [data-tip].dtb:hover::after { transform: translateY(0); }
.sidebar [data-tip].dtb::before { left: 14px; }
/* The controls at the rail's RIGHT edge (the workspace arrow, the gear, "add repository"): their tip hangs from the control's right
   edge, so it stays inside the rail. Hung from the left it ran past the rail's edge, and was cut off there whenever a layer above the
   rail's own covered the page (11-20: the loading skeleton, z-index 199 over the rail's 40, cut "Switch or add workspace" in half). */
.sidebar .sb-ws-chev[data-tip].dtb::after, .sidebar .sb-ws-gear[data-tip].dtb::after, .sidebar .sb-label-add[data-tip].dtb::after { left: auto; right: 0; max-width: min(300px, calc(var(--rail-w, 280px) - 96px)); }
.sidebar .sb-ws-chev[data-tip].dtb::before, .sidebar .sb-ws-gear[data-tip].dtb::before, .sidebar .sb-label-add[data-tip].dtb::before { left: 50%; }
.funnel .fchip:first-of-type[data-tip]::after { left: 0; transform: translateY(3px); }
.funnel .fchip:first-of-type[data-tip]:hover::after { transform: translateY(0); }
.drawer [data-tip]::after { max-width: 260px; }

/* ---------- auth: the Horizon family (LoginCard.jsx, HoloGrid.jsx) ---------- */
.auth-shell { display: flex; align-items: center; justify-content: center; padding: 48px 16px; background: var(--au-shell) !important; color: var(--au-ink); }
.auth-shell .bkz-holo-sky { background: var(--au-sky); }
.auth-shell .bkz-holo-plane { opacity: var(--au-plane-opacity); }
.auth-shell .bkz-holo-fog { background: var(--au-fog); }
.auth-stage { position: relative; z-index: 1; width: 100%; max-width: 500px; }
.login-card { position: relative; width: 100%; padding: 36px; border-radius: var(--bkz-radius-auth-card); background: var(--au-card); border: 1px solid var(--au-card-border); box-shadow: var(--au-card-shadow); backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%); animation: bkz-login-rise 720ms var(--bkz-ease-settle) both; color: var(--au-ink); }
.wordmark { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.wordmark img { display: block; width: 44px; height: 44px; flex-shrink: 0; user-select: none; border-radius: 11px; }
.wordmark span { font-size: var(--bkz-text-6xl); font-weight: 600; letter-spacing: -0.045em; color: var(--au-ink); }
.auth-eyebrow { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--bkz-radius-full); border: 1px solid var(--au-pill-border); background: var(--au-pill-bg); padding: 4px 12px; font-size: var(--bkz-text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--au-link); }
.auth-h1 { margin-top: 14px; font-size: var(--bkz-text-7xl); font-weight: 700; letter-spacing: var(--bkz-tracking-display); line-height: 1.05; color: var(--au-ink); }
@media (min-width: 640px) { .auth-h1 { font-size: var(--bkz-text-8xl); } }
.auth-lede { margin-top: 10px; font-size: var(--bkz-text-md); line-height: 24px; color: var(--au-body); }
.login-form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.login-label { display: block; color: var(--au-ink); font-size: var(--bkz-text-base); font-weight: 650; letter-spacing: -0.01em; }
.login-input { width: 100%; height: 46px; margin-top: 8px; border-radius: var(--bkz-radius-auth); border: 1px solid var(--au-input-border); background: var(--au-input-bg); color: var(--au-ink); font-size: var(--bkz-text-md); padding: 0 16px; outline: none; box-shadow: var(--au-input-sheen); transition: border-color var(--bkz-duration-fast), box-shadow var(--bkz-duration-fast); }
.login-input:hover { border-color: var(--au-input-border-hover); }
.login-input:focus { border-color: var(--bkz-blue); box-shadow: 0 0 0 4px rgba(38,129,196,0.14), inset 0 1px 0 rgba(255,255,255,0.9); }
.login-input.mono { font-family: var(--bkz-font-mono); font-size: var(--bkz-text-base); }
.login-primary { display: inline-flex; width: 100%; height: 48px; align-items: center; justify-content: center; gap: 8px; border-radius: var(--bkz-radius-auth); border: 1px solid rgba(31,111,168,0.72); background: linear-gradient(135deg, var(--bkz-blue-strong-bright) 0%, var(--bkz-blue-strong) 100%); color: var(--brand-contrast); font-size: var(--bkz-text-lg); font-weight: 650; cursor: pointer; box-shadow: var(--bkz-shadow-auth-primary); transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease; }
.login-primary:hover { box-shadow: var(--bkz-shadow-auth-primary-hover); filter: saturate(1.04); transform: translateY(-1px); }
.login-primary:active { transform: translateY(0) scale(0.99); }
.login-primary:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.login-secondary { display: inline-flex; width: 100%; height: 45px; align-items: center; justify-content: center; gap: 12px; border-radius: var(--bkz-radius-lg); border: 1px solid var(--au-input-border); background: var(--au-input-bg); color: var(--au-ink); font-size: var(--bkz-text-md); font-weight: 650; box-shadow: var(--au-input-sheen); text-decoration: none; }
.login-secondary:hover { text-decoration: none; color: var(--au-ink); border-color: var(--au-input-border-hover); }
.login-alert { border-radius: var(--bkz-radius-3xl); border: 1px solid var(--bkz-danger-alert-border); background: var(--bkz-danger-alert-bg); color: var(--bkz-danger-alert-ink); padding: 10px 12px; font-size: var(--bkz-text-sm); line-height: 1.55; margin-top: 14px; }
.auth-rule { display: flex; align-items: center; gap: 12px; color: var(--au-faint); font-size: var(--bkz-text-sm); }
.auth-rule::before, .auth-rule::after { content: ""; flex: 1; height: 1px; background: var(--au-rule); }
.auth-foot { margin-top: 18px; text-align: center; font-size: var(--bkz-text-base); color: var(--au-muted); }
.auth-foot .linkish { color: var(--au-link); }
.auth-setup { margin-top: 14px; text-align: left; color: var(--ui-ink-strong); }

/* ---------- small screens ---------- */
@media (max-width: 880px) {
  .sidebar { position: static; width: 100% !important; height: auto; flex-direction: row; align-items: center; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--bkz-border-rail); gap: 8px; overflow-x: auto; }
  .sb-section, .sb-foot, .sb-resize { display: none; }
  .sb-nav { flex-direction: row; padding: 0; }
  .main, .main.main-collapsed { padding-left: 0; }
  .main-inner { padding: 20px 18px 60px; }
  .proofline { grid-template-columns: 1fr; gap: 2px; }
  .trow, .trow-3 { grid-template-columns: 1fr; gap: 2px; }
  .account-menu { left: 16px; }
}

/* ---------- the three pages ---------- */
.home { animation: bkz-fade-up .45s var(--bkz-ease-settle) both; }
.home-hero { padding: 8px 0 0; max-width: 640px; }
.home-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.hs { display: flex; flex-direction: column; gap: 2px; padding: 22px 24px; border-radius: var(--bkz-radius-panel); background: var(--ui-glass-solid); backdrop-filter: blur(28px) saturate(210%); -webkit-backdrop-filter: blur(28px) saturate(210%); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow), var(--glass-inset); color: inherit; min-width: 0; transition: all var(--bkz-duration-base) var(--bkz-ease-settle); }
a.hs:hover { transform: translateY(-1px); box-shadow: var(--glass-shadow-lg), var(--glass-inset); text-decoration: none; color: inherit; }
.hs-l { font-size: var(--bkz-text-xs); font-weight: 500; letter-spacing: var(--bkz-tracking-eyebrow-widest); text-transform: uppercase; color: var(--bkz-muted); }
.hs-n { margin-top: 10px; font-size: var(--bkz-text-8xl); font-weight: 600; letter-spacing: var(--bkz-tracking-tight); line-height: .95; color: var(--bkz-ink); font-variant-numeric: tabular-nums; }
.hs-n.ok { color: var(--bkz-success-ink); }
.hs-n.brand { color: var(--brand-ink); }
.hs-s { margin-top: 8px; font-size: var(--bkz-text-sm); color: var(--bkz-muted); }
.home-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.home-next { font-size: var(--bkz-text-base); color: var(--bkz-muted); max-width: 48ch; }
.home-line { margin-top: 16px; font-size: var(--bkz-text-base); color: var(--ui-ink-body); line-height: 20px; }
.home-line + .home-line { margin-top: 8px; }
.home-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--bkz-border-hairline); font-size: var(--bkz-text-base); }
@media (max-width: 880px) { .home-stats { grid-template-columns: 1fr; } }

/* Uniform breathing room under every tab strip: the settings-family pages glued their
   first panel straight to the tabs while the dashboard pages had air — same strip, two
   rhythms. One margin, every page. */
.subnav-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; margin-bottom: 16px; }
.subnav-row .subnav { margin-top: 0; }
/* Repo surfaces: the strip lives at the top of the column and stays there, centred,
   so a long case page does not lose Home / Garden / Reviews / Tickets. */
.repo-subnav {
  position: sticky; top: 0; z-index: 24;
  justify-content: center; margin: -8px 0 18px;
  padding: 12px 0 14px;
  background: color-mix(in srgb, var(--bkz-bg) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
/* Square, like everything else. The radius TOKENS are all zeroed at the top of this file —
   this skin has square corners on purpose — and these two hardcoded pixel values were the
   reason the tab group alone still rendered as a pill sitting on square chrome. */
.repo-subnav .subnav { border-radius: 0; padding: 4px; }
.repo-subnav .nav-item { min-height: 32px; border-radius: 0; }
/* Org detail pages carry one way back instead of five tabs about somewhere else. */
.subnav-row .sb-iconbtn.on { background: var(--ui-hover); color: var(--bkz-ink-strong); }
.filters { margin: 0 0 14px; }

.inbox { border-radius: var(--bkz-radius-3xl); background: var(--ui-glass-solid); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--ui-glass-border-solid); box-shadow: var(--ui-shadow-sm-wide), var(--ui-sheen); }
.irow { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--bkz-border-hairline); transition: background var(--bkz-duration-base); }
.irow:last-child { border-bottom: 0; }
.irow:hover { background: var(--ui-row-hover); }
.irow-sel { background: var(--bkz-success-tint); }
.imain { flex: 1; min-width: 0; color: inherit; display: block; }
.imain:hover { text-decoration: none; color: inherit; }
.imain:hover .iname { color: var(--brand-ink); }
.iname { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-weight: 600; font-size: var(--bkz-text-md); color: var(--bkz-ink-strong); }
.iwhy { display: block; margin-top: 3px; font-size: var(--bkz-text-base); line-height: 20px; color: var(--ui-ink-soft); max-width: 78ch; }
.iwhy b { color: var(--ui-ink-body); }
.iwhy code { font-size: var(--bkz-text-xs); }
.iacts { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.inbox-empty { padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.inbox-empty .et { font-size: var(--bkz-text-3xl); font-weight: 600; letter-spacing: var(--bkz-tracking-snug); color: var(--bkz-ink); }
.quiet-group { margin-top: 14px; padding: 14px 18px; border-radius: var(--bkz-radius-3xl); border: 1px solid var(--ui-border); background: var(--ui-sunk); font-size: var(--bkz-text-base); color: var(--ui-ink-body); line-height: 20px; }
.quiet-group .qg-h .linkish { margin-left: 8px; }
.quiet-group .tbl { margin-top: 10px; }

.hist { padding: 4px 0; }
.hist-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 18px; border-bottom: 1px solid var(--bkz-border-hairline); font-size: var(--bkz-text-base); color: var(--ui-ink-body); }
.hist-line:last-child { border-bottom: 0; }
.hist-line .badge { margin-left: 0; }
.hist-line a { margin-left: auto; font-size: var(--bkz-text-sm); }
.hist-bad { background: var(--ui-bad-row); }

/* ---------- the settings hub: one column, every page ----------
   Account, Integrations and Team are one surface behind one subnav, and they read as one
   surface only if the column never changes width underneath the tabs.
   Bound at every viewport (the shared .main-inner cap only applies from 1680px up).

   Pricing and Account are IN the list, and the whole list is the point. Pricing was left out
   on the reasoning that three side-by-side plan cards want more room than a column of rows —
   true in itself, and it made the tab strip jump width when you moved between tabs, which is
   the one thing this rule exists to prevent. A surface that changes shape underneath its own
   navigation does not read as one surface.
   The cards are made to fit instead (see .pz-grid below): tighter gaps and padding at this
   width, which costs a few pixels of air and keeps every feature line on one row. */
.main-inner.page-settings, .main-inner.page-integrations,
.main-inner.page-team, .main-inner.page-pricing,
/* 1152px, the product column's own width: at 1140 every heading here sat 6px right of the
   same heading on Home, Repositories and Add credits, a visible hop on each move between them. */
.main-inner.page-account, .main-inner.page-usage { max-width: 1152px; }
.credit-add-page{width:100%;min-width:0;padding-top:10px}
.credit-add-page .credit-checkout{width:100%;max-width:none;margin:0 0 60px}
.credit-add-page .credit-checkout:not(.credit-inline-payment)>*,.credit-add-page .credit-inline-payment{width:100%;max-width:680px;margin-left:auto;margin-right:auto}
.credit-add-page .credit-inline-payment{margin-top:30px}
:is(.page-pricing,.credit-add-page) .credit-checkout{max-width:none;width:100%;margin:0}
.credit-purchase-tabs{display:flex;gap:24px;border-bottom:1px solid var(--border,#333);margin-bottom:20px}.credit-purchase-tabs button{font:inherit;color:#999;background:none;border:0;border-bottom:2px solid transparent;padding:12px 0;cursor:pointer}.credit-purchase-tabs button[aria-pressed=true]{color:#eee;border-bottom-color:#eee}.credit-monthly-current{display:grid;grid-template-columns:1fr auto;gap:8px;padding:18px 0;border-bottom:1px solid #333}.credit-monthly-current small{grid-column:1/-1;color:#999}.credit-monthly-consent{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.7;margin:20px 0}.credit-monthly-consent input{margin-top:5px;flex-shrink:0}.credit-checkout [hidden]{display:none!important}
:is(.page-pricing,.credit-add-page) .credit-checkout form>h2:first-child{margin-top:0}
.credit-checkout .credit-purchase-tabs{margin-bottom:28px}
.credit-checkout .credit-monthly-current{padding:8px 0 20px;border-bottom:0}
.credit-checkout .credit-monthly-explainer{margin:0 0 36px;max-width:680px}
.credit-checkout .credit-packs{margin-top:26px;gap:16px}
.credit-checkout .credit-pack{position:relative;min-height:136px;padding-bottom:26px}
.credit-pack .credit-pack-hint{font-size:11px;line-height:1.35;color:var(--ui-ink-muted,#999);text-align:center;max-width:11em}
.credit-spend-guide{margin:28px 0 0;padding:18px 0 4px;border-top:1px solid var(--bkz-border-hairline,#333)}
.credit-spend-guide h3{margin:0 0 14px;font-size:15px;font-weight:600;color:var(--ui-ink-strong,#eee)}
.credit-usage-bands{display:grid;gap:10px}
.credit-usage-head,.credit-usage-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(7em,0.8fr) minmax(10em,1fr);gap:16px;align-items:baseline}
.credit-usage-head{font-size:11px;color:var(--ui-ink-muted,#999);text-align:right}
.credit-usage-head span:first-child{text-align:left}
.credit-usage-row{font-size:13px}
.credit-usage-row span:first-child{color:var(--ui-ink-body,#ccc)}
.credit-usage-row span:not(:first-child){text-align:right;font-variant-numeric:tabular-nums;color:var(--ui-ink-strong,#eee)}
.credit-spend-guide [data-credit-live-coverage]{margin:14px 0 0}
.credit-pack .credit-pack-tag{position:absolute;top:0;left:50%;transform:translate(-50%,-50%);border:1px solid var(--bkz-blue-link);border-radius:var(--bkz-radius-full);background:color-mix(in srgb,var(--bkz-blue-link) 15%,var(--bkz-bg));color:var(--bkz-blue-deep);padding:3px 12px;line-height:1.5;white-space:nowrap}
.credit-checkout .credit-custom-label{margin-top:32px}
.credit-checkout .credit-monthly-summary{margin-top:32px;padding-top:8px;border-top:1px solid var(--border,#333)}
.credit-checkout .credit-monthly-consent{margin:28px 0 14px;max-width:680px}
.credit-checkout .credit-checkout-next{margin-top:24px}
.credit-inline-payment{border-top:1px solid var(--border,#333);padding-top:28px;margin-top:30px;background:var(--bkz-bg)}.credit-inline-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px}.credit-inline-heading h2{margin:0 0 18px}.credit-inline-heading a{font-size:13px}.credit-inline-payment [data-credit-stripe-mount]:empty{display:none}.credit-inline-payment [data-credit-stripe-mount]{background:var(--bkz-bg)}.credit-inline-payment[data-credit-payment-state=loading] [data-credit-payment-status]{min-height:84px;display:flex;align-items:center;color:var(--ui-ink-muted)}
.credit-elements-payment{padding-top:32px}.credit-elements-payment h2{margin:0 0 22px}.credit-elements-payment [data-credit-payment-mount]{min-height:250px;background:var(--bkz-bg)}.credit-elements-payment [data-credit-payment-status]{color:var(--ui-ink-muted);margin:12px 0}.credit-elements-payment .credit-elements-pay{width:100%;min-height:48px;margin:24px 0 8px;border:1px solid #494541;background:#363432;color:var(--ui-ink-strong);font:500 15px/1.4 var(--bkz-font-sans);border-radius:var(--bkz-radius-md);cursor:pointer}.credit-elements-payment .credit-elements-pay:hover:not(:disabled){background:#45423f;border-color:#5b5650}.credit-elements-payment .credit-elements-pay:disabled{opacity:.45;cursor:not-allowed}.credit-elements-payment .credit-elements-note{text-align:center;margin:4px 0 0}.credit-elements-payment .credit-checkout-error{margin:12px 0}
.credit-checkout-error{margin:12px 0 0;padding:12px 14px;border:1px solid var(--bkz-danger-alert-border);background:var(--bkz-danger-alert-bg);color:var(--bkz-danger-alert-ink);font-size:13px;line-height:1.5}.credit-checkout-error[hidden]{display:none}
.page-usage .usage-simple{max-width:none;margin:0}
/* Out of credits: a red bar across the top of the page, above the title. The sentence used
   to sit under the balance in the same grey as a caption. */
.page-usage:has(> .usage-exhausted) { display: flex; flex-direction: column; }
.page-usage > .usage-exhausted { order: -1; position: sticky; top: 0; z-index: 30;
  margin: -24px -32px 18px; padding: 12px 32px;
  background: var(--bkz-danger-alert-bg); color: var(--bkz-danger-ink);
  border-bottom: 1px solid var(--bkz-danger-alert-border);
  font-size: var(--bkz-text-sm); line-height: 1.45; }
@media (max-width: 1440px) {
  .page-usage > .usage-exhausted { margin: -20px -28px 18px; padding: 12px 28px; }
}
@media (min-width: 1680px) {
  .page-usage > .usage-exhausted { margin: -32px -48px 18px; padding: 12px 48px; }
}
@media (min-width: 2200px) {
  .page-usage > .usage-exhausted { margin: -40px -56px 18px; padding: 12px 56px; }
}
.page-account .page-title-row,.page-pricing .page-title-row,.page-usage .page-title-row{min-height:36px}

/* ---------- widths: laptop → monitor ----------
   One column up to 1680px (a 13–16" laptop, or a monitor with the window not maximised).
   From 1680px the column widens and Activity and Settings go two-up; from 2200px wider again. */
.iwhy { max-width: 92ch; }
.act-grid { display: block; }
@media (max-width: 1440px) {
  /* A DEFAULT, not an override. These used to set `width` on `.sidebar:not(.collapsed)`,
     which outranks the base rule's var() — so on any laptop the drag handle moved nothing
     and silently snapped back. Setting the variable instead leaves the dragged value (an
     inline style on the root element) winning, as it does at every other size. */
  :root { --rail-w: 248px; }
  .main-inner { padding: 20px 28px 72px; }
  .hs { padding: 20px 22px; }
  .hs-n { font-size: var(--bkz-text-7xl); }
}
@media (max-width: 1180px) {
  .hs-n { font-size: var(--bkz-text-6xl); }
  .home-stats { gap: 10px; }
  .irow { flex-wrap: wrap; }
  .iacts { margin-left: auto; }
}
@media (min-width: 1680px) {
  .main-inner { max-width: 1480px; padding: 32px 48px 96px; }
  .main-inner.page-sweep { max-width: 1240px; }
  .home-stats { gap: 16px; }
  .hs { padding: 30px 32px; }
  .hs-n { font-size: 56px; }
  .hs-s { font-size: var(--bkz-text-base); }
  .act-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 32px; align-items: start; }
  .act-grid > .act-main:only-child, .act-grid > .act-side:only-child { grid-column: 1 / -1; }
  .act-side > .sec-h:first-child { margin-top: 14px; }
  .act-side .pr-tl { flex-wrap: wrap; row-gap: 6px; }
}
@media (min-width: 2200px) {
  :root { --rail-w: 300px; }
  .main-inner { max-width: 1720px; padding: 40px 56px 112px; }
  .main-inner.page-sweep { max-width: 1320px; }
  .hs-n { font-size: 64px; }
}

/* ---------- deep sweep ---------- */
.dp-run { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-left: auto; max-width: 280px; flex-shrink: 0; }
.dp-run .btn { align-self: flex-start; }
.dp-cost { margin: 2px 0 16px; font-size: var(--bkz-text-base); color: var(--ui-ink-body); font-variant-numeric: tabular-nums; }
.dp-cost b { color: var(--bkz-ink); }
.dp-head { margin: 8px 0 12px; font-size: var(--bkz-text-3xl); font-weight: 600; letter-spacing: var(--bkz-tracking-snug); color: var(--bkz-ink); }
.dp-list { display: flex; flex-direction: column; gap: 6px; }
.dp { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-xl); background: var(--ui-surface); font-size: var(--bkz-text-base); }
.dp-i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--ui-tint-5); color: var(--ui-ink-faint); grid-row: span 2; }
.dp-ok .dp-i { background: var(--bkz-success-tint); color: var(--bkz-success-ink); }
.dp-bad .dp-i { background: var(--bkz-danger-tint); color: var(--bkz-danger-ink); }
.dp-live .dp-i { background: var(--brand-soft); color: var(--brand-ink); }
.dp-todo { opacity: .55; }
.dp-skip .dp-t { color: var(--ui-ink-muted); font-weight: 500; }
.dp-t { font-weight: 600; color: var(--ui-ink-strong); }
.dp-d { grid-column: 2; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); line-height: 18px; }
.dp .spin { display: block; width: auto; height: auto; border: 0; border-radius: 0; font: 600 13px/1 var(--bkz-font-mono); color: var(--brand); animation: dot-breathe 1.4s ease-in-out infinite; }
.dp .spin::before { content: "\2022"; }
.dup { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--bkz-border-hairline); }
.dup:last-child { border-bottom: 0; }
.dup-main { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: inherit; }
.dup-main:disabled { cursor: default; }
.dup-names { font-family: var(--bkz-font-mono); font-size: var(--bkz-text-base); color: var(--bkz-ink-strong); overflow-wrap: anywhere; }
.dup-names b { font-weight: 600; }
.dup-eq { margin: 0 8px; color: var(--brand-ink); font-weight: 600; }
.dup-files { margin-top: 3px; font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); overflow-wrap: anywhere; }
.dup-files .mono { font-size: inherit; color: inherit; }
.dup-sep { margin: 0 6px; }
.dup-why { margin-top: 6px; font-size: var(--bkz-text-sm); line-height: 19px; color: var(--ui-ink-body); max-width: 80ch; }
.dup-lines { flex-shrink: 0; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); font-variant-numeric: tabular-nums; }
.dup .badge { flex-shrink: 0; margin-left: 0; }
.dp-hero { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--bkz-radius-3xl); margin-bottom: 10px; }
.dp-hero b { font-size: var(--bkz-text-2xl); font-weight: 600; letter-spacing: var(--bkz-tracking-snug); }
.dp-hero span { font-size: var(--bkz-text-base); opacity: .9; }
.dp-hero.ok { background: var(--bkz-success-tint); border: 1px solid var(--bkz-success-border); color: var(--bkz-success-ink); }
.dp-hero.bad { background: var(--bkz-danger-tint); border: 1px solid var(--bkz-danger-border); color: var(--bkz-danger-ink); }
.dp-hero.none { background: var(--bkz-warning-tint, rgba(255,180,60,.08)); border: 1px solid var(--bkz-warning-border, rgba(255,180,60,.3)); color: var(--bkz-warning-ink, inherit); }
.reh-list { display: flex; flex-direction: column; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-xl); background: var(--ui-surface); overflow: hidden; }
.reh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 14px; border-bottom: 1px solid var(--bkz-border-hairline); font-size: var(--bkz-text-base); color: var(--ui-ink-body); }
.reh:last-child { border-bottom: 0; }
.reh-bad { background: var(--ui-bad-row); }
.reh-name { min-width: 110px; color: var(--bkz-ink-strong); }
.reh-res b { color: var(--bkz-ink); }
.reh-bad .reh-res b { color: var(--bkz-danger-ink); }
.reh-fails { flex-basis: 100%; margin: 4px 0 0; padding: 10px 12px; border-radius: var(--bkz-radius-md); background: var(--ui-sunk); border: 1px solid var(--ui-border); font-family: var(--bkz-font-mono); font-size: var(--bkz-text-xs); line-height: 17px; color: var(--bkz-danger-ink); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }
@media (max-width: 880px) { .dp-run { align-items: flex-start; text-align: left; max-width: none; } .dup { flex-wrap: wrap; } }

/* ---------- home: the split and the queue ---------- */
.hs-more { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--bkz-border-hairline); font-size: var(--bkz-text-sm); line-height: 18px; color: var(--ui-ink-muted); font-variant-numeric: tabular-nums; }
.queue .q { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--bkz-border-hairline); }
.queue .q:last-child { border-bottom: 0; }
.q-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-family: var(--bkz-font-mono); font-size: 11.5px; background: var(--ui-tint-6); color: var(--ui-ink-muted); }
.q-main { flex: 1; min-width: 0; }
.q-t { display: block; font-weight: 600; font-size: var(--bkz-text-md); color: var(--ui-ink-strong); }
a.q-t:hover { color: var(--brand-ink); text-decoration: none; }
.q-s { margin-top: 2px; font-size: var(--bkz-text-sm); line-height: 18px; color: var(--ui-ink-muted); }
.q-chip { flex-shrink: 0; }
.q-chip .badge { margin-left: 0; }
.sec-h a.muted { color: var(--ui-ink-muted); }
@media (max-width: 880px) { .queue .q { flex-wrap: wrap; } }

/* ---------- settings: sections of rows ---------- */
.usage-simple{width:100%;max-width:1080px}.usage-balance{padding:24px}.usage-balance-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.usage-balance-head strong{font-size:32px;font-weight:500;font-variant-numeric:tabular-nums}.usage-balance-head span{color:var(--ui-ink-muted);font-size:14px}.usage-progress{display:block;appearance:none;width:100%;height:8px;margin:22px 0 12px;border:0;border-radius:4px;overflow:hidden;background:#30302d;accent-color:#8fb6d0}.usage-progress::-webkit-progress-bar{background:#30302d}.usage-progress::-webkit-progress-value{background:#8fb6d0;border-radius:4px}.usage-progress::-moz-progress-bar{background:#8fb6d0}.usage-balance-caption{display:flex;justify-content:space-between;gap:12px;color:var(--ui-ink-muted);font-size:12px}.usage-task{text-decoration:none;color:inherit}.usage-task:hover{background:#ffffff04}.usage-task .srow-r{font-size:13px;font-variant-numeric:tabular-nums}.usage-task small,.usage-history small{display:block;color:var(--ui-ink-muted);font-size:11px;margin-top:4px}.usage-empty{padding:24px 18px;color:var(--ui-ink-muted);font-size:13px}.usage-history{overflow-x:auto}.usage-history table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.usage-history th{font-size:11px;font-weight:400;color:var(--ui-ink-muted)}.usage-history th,.usage-history td{padding:14px 18px;border-bottom:1px solid var(--bkz-border-hairline)}.usage-history tr:last-child td{border-bottom:0}.usage-history td:last-child,.usage-history th:last-child{text-align:right}.usage-history a{color:inherit;text-decoration:none}.usage-refresh{font-size:11px;color:var(--ui-ink-muted);margin-top:18px}.usage-older{margin-top:12px}.usage-task[data-activity-state=running] .credit-run-status:before{background:#8fb6d0;animation:credit-pulse 1.5s ease-in-out infinite}@media(max-width:600px){.usage-balance{padding:18px}.usage-balance-head strong{font-size:28px}.usage-balance-caption{flex-wrap:wrap}.usage-history th,.usage-history td{padding:12px}.usage-task .srow-r{max-width:120px}}@media(prefers-reduced-motion:reduce){.usage-task .credit-run-status:before{animation:none!important}}
.usage-trial-details{margin-top:22px;color:var(--ui-ink-muted);font-size:13px;line-height:1.6}.usage-trial-details summary{width:max-content;cursor:pointer}.usage-trial-details p{margin:12px 0}.usage-trial-details form{display:grid;gap:14px;justify-items:start}.usage-trial-details label{display:flex;align-items:flex-start;gap:8px}
.credit-checkout{max-width:560px;margin:16px auto 60px}.credit-checkout h1{font-size:28px;margin:0 0 32px;font-weight:600}.credit-checkout h2{font-size:16px;margin:24px 0 14px;font-weight:600}.credit-packs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.credit-pack{min-height:108px;padding:16px 8px;background:#303030;border:1px solid transparent;border-radius:var(--bkz-radius-md);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;color:#eee;font:inherit;cursor:pointer}.credit-pack[aria-pressed=true]{background:#1c1c1c;border-color:#eee}.credit-pack strong{font-size:16px}.credit-pack span{font-size:12px;color:#bbb}.credit-pack small{font-size:10px;padding:3px 7px;border-radius:var(--bkz-radius-full);background:#414141;color:#eee}.credit-pack:focus-visible{outline:2px solid #91bfdf;outline-offset:3px}.credit-custom-label{display:block;margin:24px 0 8px;font-size:13px;color:#bbb}.credit-custom-input{display:flex;align-items:center;gap:10px;border:1px solid #444;background:#242424;border-radius:var(--bkz-radius-md);padding:12px 16px}.credit-custom-input input{width:100%;border:0;background:transparent;color:#eee;font:inherit}.credit-checkout-total{display:flex;justify-content:space-between;gap:16px;margin:22px 0;font-size:14px}.credit-checkout-total output{text-align:right;overflow-wrap:anywhere;min-width:0}.credit-checkout .sub{font-size:12px;color:#999;line-height:1.6}.credit-checkout-next{width:100%;margin:18px 0}.credit-payment-preview{border-top:1px solid #333;margin-top:20px;padding-top:8px}.credit-payment-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.credit-payment-options button{background:#282828;border:1px solid #444;color:#aaa;border-radius:var(--bkz-radius-md);padding:20px;text-align:left;font:inherit}.credit-payment-preview fieldset{padding:0;margin:20px 0;border:0}.credit-payment-preview label{display:block;font-size:12px;color:#888}.credit-payment-preview input{display:block;width:100%;box-sizing:border-box;border:0;border-radius:var(--bkz-radius-md);background:#282828;padding:18px 14px;margin:8px 0 12px;color:#aaa}.credit-payment-preview fieldset>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}@media(max-width:520px){.credit-packs{grid-template-columns:repeat(2,minmax(0,1fr))}.credit-checkout{margin:8px 0 40px}}
:is(.page-pricing,.credit-add-page) .credit-checkout .credit-purchase-tabs{margin-bottom:12px}
:is(.page-pricing,.credit-add-page) .credit-checkout .credit-frequency-copy{margin:0 0 26px}
:is(.page-pricing,.credit-add-page) .credit-checkout .credit-amount-heading{margin:0 0 14px;font-size:15px;color:var(--ui-ink-strong)}
:is(.page-pricing,.credit-add-page) .credit-checkout .credit-packs{margin:0;gap:10px}
:is(.page-pricing,.credit-add-page) .credit-checkout .credit-pack{min-height:136px;border:1px solid var(--bkz-border-soft);background:var(--ui-surface);border-radius:var(--bkz-radius-md);transition:border-color .16s,background .16s}
:is(.page-pricing,.credit-add-page) .credit-checkout .credit-pack:hover{background:var(--ui-tint-6)}
:is(.page-pricing,.credit-add-page) .credit-checkout .credit-pack[aria-pressed=true]{border-color:var(--ui-ink-strong);background:var(--ui-tint-6)}
/* The chosen amount says so in words (founder, 2026-09-27): Recommended and the current choice both
   draw an outline, and two outlines could not be told apart. aria-pressed already carries the state
   to assistive tech; this is the sighted reader's copy of it. */
.credit-checkout .credit-pack[aria-pressed=true]::after{content:'\2713  Selected';position:absolute;left:50%;bottom:9px;transform:translateX(-50%);z-index:2;font-size:10px;line-height:1.4;letter-spacing:.02em;white-space:nowrap;color:var(--ui-ink-strong,#eee);pointer-events:none}
:is(.page-pricing,.credit-add-page) .credit-checkout .credit-custom-wrap{margin-top:22px}
:is(.page-pricing,.credit-add-page) .credit-checkout .credit-custom-label{margin:0 0 8px}
:is(.page-pricing,.credit-add-page) .credit-checkout .credit-order-summary{margin-top:30px;padding:14px 0;border-top:1px solid var(--bkz-border-hairline);border-bottom:1px solid var(--bkz-border-hairline)}
:is(.page-pricing,.credit-add-page) .credit-checkout .credit-order-summary .credit-checkout-total{margin:8px 0}
:is(.page-pricing,.credit-add-page) .credit-checkout .credit-monthly-summary{margin-top:0;border-top:0;padding:8px 0 0}
:is(.page-pricing,.credit-add-page) .credit-checkout .credit-monthly-summary .credit-checkout-total{margin:12px 0}
:is(.page-pricing,.credit-add-page) .credit-checkout .credit-tax-note{margin:16px 0 0}
:is(.page-pricing,.credit-add-page) .credit-checkout .credit-checkout-next{margin:18px 0 0;min-height:44px}
@media(max-width:520px){:is(.page-pricing,.credit-add-page) .credit-checkout .credit-packs{grid-template-columns:repeat(2,minmax(0,1fr))}.credit-usage-head,.credit-usage-row{grid-template-columns:minmax(0,1fr) auto auto;gap:8px 10px}}
.credit-add-page .credit-checkout.credit-inline-payment{max-width:680px;margin:30px auto 60px}
/* Checkout borrows onboarding's glyph ramp, but keeps it in the margins of the decision.
   Nothing animates over card entry, totals, or the Stripe-owned payment fields. */
.credit-elements-form .credit-amount-heading,.credit-elements-payment h2{display:flex;align-items:center;gap:14px}
.credit-ascii-marker{display:inline-block;white-space:nowrap;overflow:hidden;font:10px/1 var(--bkz-font-mono);letter-spacing:2px;color:#8fc9ea70;background:linear-gradient(90deg,#8fc9ea50,#ccecffb0,#8fc9ea50);background-size:240% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:credit-glyph-glint 9s ease-in-out infinite alternate;user-select:none;pointer-events:none}
.credit-elements-form .credit-pack>strong,.credit-elements-form .credit-pack>span:not(.ascii-sweep){position:relative;z-index:1}
.credit-elements-form .credit-pack>.credit-pack-tag{z-index:1}
.credit-ascii-loader{display:inline-block;margin-right:10px;color:#8fc9ea;font:11px/1 var(--bkz-font-mono);letter-spacing:2px;animation:credit-glyph-pulse 1.8s ease-in-out infinite;user-select:none}
@keyframes credit-glyph-glint{from{background-position:0% 50%}to{background-position:100% 50%}}
@keyframes credit-glyph-pulse{50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.credit-ascii-marker,.credit-ascii-loader{animation:none}}
/* ---------- Add credits, its own page (founder, 2026-09-26) ----------
   The in-Breken payment form: our panel and our type, Stripe's fields inside it. The ascii sweep
   (kit.ts ASCII_SWEEP) is the feedback: a pack picked, the fields loading, a payment in flight,
   and the balance going up. */
.credit-add-balance{width:100%;max-width:680px;margin:0 auto 22px;color:var(--ui-ink-muted);font-size:13px}
.credit-add-balance strong{color:var(--ui-ink-strong);font-weight:600;font-variant-numeric:tabular-nums}
/* The custom amount takes the design system's input focus (.input:focus), on the rounded box the
   reader sees, instead of the global indigo ring drawn square around the bare input inside it.
   Keyboard focus shows the same ring, so it is never lost. */
.credit-custom-input{transition:border-color .12s ease,box-shadow .12s ease}
.credit-custom-input input:focus,.credit-custom-input input:focus-visible{outline:none}
.credit-custom-input:focus-within{border-color:var(--ui-ink-strong);box-shadow:0 0 0 1px var(--ui-tint-10)}
/* Packs host the sweep; their words sit above the field. */
.credit-elements-form .credit-pack{position:relative}
.credit-elements-form .credit-pack>.credit-pack-tag{z-index:2}
.credit-elements-form .credit-pack.is-sweeping>strong,.credit-elements-form .credit-pack.is-sweeping>span:not(.ascii-sweep){text-shadow:0 0 7px var(--ui-surface),0 0 4px var(--ui-surface),0 0 2px var(--ui-surface)}
.credit-elements-form .credit-pack.is-sweeping{border-color:var(--brand-ink)}
/* The fields' place is held from the first paint (Billing address + card, as Stripe draws them),
   so neither the totals nor Pay move when the fields arrive. */
.credit-pay-stage{position:relative;min-height:520px;border-radius:var(--bkz-radius-md)}
.credit-pay-stage>.ascii-sweep{border-radius:var(--bkz-radius-md);font-size:18px;letter-spacing:2px}
.credit-pay-stage>.credit-pay-status,.credit-pay-stage>.credit-pay-fields{position:relative;z-index:1}
.credit-pay-stage>.credit-pay-status{margin:0 0 12px;color:var(--ui-ink-muted)}
.credit-pay-stage[data-state=loading]>.credit-pay-status{position:absolute;inset:auto 0 0;margin:0;padding:12px 0;text-align:center;color:var(--ui-ink-body)}
.credit-pay-email{display:grid;gap:6px;margin:0 0 16px;color:var(--ui-ink-muted);font-size:13px}
.credit-pay-email[hidden]{display:none}
.credit-pay-address{margin-bottom:6px}
.credit-pay-totals{display:grid;gap:8px;margin:20px 0 0;padding-top:14px;border-top:1px solid var(--bkz-border-hairline)}
.credit-pay-totals div{display:flex;justify-content:space-between;gap:16px;font-size:14px}
.credit-pay-totals dt{color:var(--ui-ink-muted)}
.credit-pay-totals dd{margin:0;color:var(--ui-ink-strong);font-weight:600;font-variant-numeric:tabular-nums;text-align:right}
.credit-elements-payment .credit-elements-pay{position:relative;overflow:hidden}
.credit-elements-pay>[data-credit-pay-label]{position:relative;z-index:1}
.credit-elements-pay>.ascii-sweep{color:#8fc9ea}
.credit-elements-pay.is-sweeping-loop>[data-credit-pay-label]{text-shadow:0 0 7px #363432,0 0 4px #363432,0 0 2px #363432}
.credit-pay-back{width:100%;max-width:680px;margin:18px auto 0}
.credit-add-page{--credit-field-label:12.5rem}
.credit-code-form{display:grid;grid-template-columns:var(--credit-field-label, 12.5rem) minmax(0,1fr) auto;align-items:center;column-gap:16px;row-gap:10px}
.credit-code-form label{font-size:13px;color:var(--ui-ink-muted)}
.credit-code-form .input{min-width:0;margin-left:calc(0.9rem + 10px)}
/* Auto-reload (credits/auto-reload.ts): one switch, three numbers, one line of explanation. */
.credit-add-page .credit-checkout.credit-auto-reload{margin:44px 0 44px;padding-top:30px;border-top:1px solid var(--bkz-border-hairline)}
.credit-add-page .credit-checkout.credit-auto-reload>*{max-width:680px;margin-left:auto;margin-right:auto}
.credit-auto-head{display:flex;align-items:center;gap:10px}
.credit-auto-head h2{margin:0}
.credit-auto-head .tag.is-on{color:var(--ui-ink-strong);border-color:var(--bkz-blue-link)}
.credit-auto-note{margin:12px 0;padding:10px 12px;border:1px solid var(--bkz-border-soft);border-radius:8px;font-size:13px;line-height:1.5;color:var(--ui-ink-strong)}
.credit-auto-note.is-alert{border-color:#c2410c}
.credit-auto-note.is-ok{display:flex;align-items:baseline;gap:8px;margin:0 0 16px;padding:0;border:0;border-radius:0;background:none;font-size:12px;color:var(--ui-ink-muted)}
.credit-auto-note.is-ok::before{content:"✓";flex:none;color:var(--bkz-blue-link);font-weight:600}
.credit-auto-switch{display:inline-flex;align-items:center;gap:10px;margin:16px 0 4px;font-weight:600;cursor:pointer}
.credit-auto-switch input{appearance:none;flex:none;width:36px;height:20px;margin:0;border-radius:10px;background:var(--bkz-border-soft);position:relative;cursor:pointer;transition:background .15s}
.credit-auto-switch input::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--ui-surface);transition:transform .15s}
.credit-auto-switch input:checked{background:var(--bkz-blue-link)}
.credit-auto-switch input:checked::after{transform:translateX(16px)}
.credit-auto-switch input:focus-visible{outline:2px solid var(--bkz-blue-link);outline-offset:2px}
.credit-auto-switch input:disabled{opacity:.5;cursor:not-allowed}
.credit-auto-fields{display:grid;grid-template-columns:var(--credit-field-label, 12.5rem) minmax(0,1fr);column-gap:16px;row-gap:14px;align-items:center;margin:16px 0}
.credit-auto-fields label{margin:0;font-size:13px;line-height:1.3;color:var(--ui-ink-muted)}
.credit-auto-fields label small{font-size:11px;font-weight:400}
.credit-auto-input{display:grid;grid-template-columns:0.9rem 8.75rem minmax(0,1fr);align-items:center;column-gap:10px;min-width:0}
.credit-auto-affix{color:var(--ui-ink-muted);text-align:right;line-height:1}
.credit-auto-input .input{width:100%;max-width:none;min-width:0;text-align:right;font-variant-numeric:tabular-nums}
.credit-auto-hint{min-width:0;font-size:12px;line-height:1.35;color:var(--ui-ink-muted)}
.credit-auto-form:has(input[name=auto][type=checkbox]:not(:checked)) .credit-auto-fields{opacity:.55}
@media(max-width:520px){
  .credit-auto-fields,.credit-code-form{grid-template-columns:minmax(0,1fr)}
  .credit-auto-input{grid-template-columns:0.9rem minmax(7rem,8.75rem) minmax(0,1fr)}
  .credit-code-form .input{margin-left:0}
}
/* Where a payment lands: the balance, reading across when it goes up. */
.credit-add-page .credit-paid{width:100%;max-width:680px;margin:10px auto 60px;padding:0}
.credit-add-page .credit-paid .sub{font-size:12px;color:var(--ui-ink-muted)}
.credit-paid h2{margin:0 0 10px;font-size:20px;font-weight:600;color:var(--ui-ink-strong)}
.credit-paid>p{color:var(--ui-ink-body);line-height:1.6}
.credit-paid-balance{position:relative;margin:22px 0;padding:22px 24px;border:1px solid var(--ui-glass-border-solid);border-radius:var(--bkz-radius-3xl);background:var(--ui-glass-solid)}
.credit-paid-balance>.ascii-sweep{border-radius:inherit}
.credit-paid-balance>:not(.ascii-sweep){position:relative;z-index:1}
.credit-paid-balance:is(.is-sweeping,.is-sweeping-loop)>:not(.ascii-sweep){text-shadow:0 0 7px var(--ui-surface),0 0 4px var(--ui-surface),0 0 2px var(--ui-surface)}
.credit-paid-figure strong{color:var(--ui-ink-strong);font-size:clamp(34px,4vw,46px);font-weight:550;letter-spacing:-.045em;line-height:1;font-variant-numeric:tabular-nums}
.credit-paid-figure span{color:var(--ui-ink-muted);font-size:13px}
.credit-paid-added{margin:10px 0 0;color:var(--ui-ink-muted);font-size:13px}
.credit-paid-links{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:520px){.credit-pay-stage{min-height:560px}.credit-paid-balance{padding:18px}}
.credit-trial-status h1{font-size:28px;font-weight:500;margin:16px 0 28px;letter-spacing:-.03em}.credit-trial-status{max-width:900px}.credit-trial-status>p{margin:18px 0;color:var(--ui-ink-muted)}
.credit-settings-amount{display:flex;align-items:center;gap:8px;color:var(--ui-ink-muted)}
.credit-settings-amount input{width:132px;max-width:100%;padding:8px 10px;background:var(--ui-surface);border:1px solid var(--bkz-border-soft);color:var(--ui-ink-strong);font:inherit;text-align:right;border-radius:var(--bkz-radius-md)}
.credit-settings-slider{padding:20px 18px;border-bottom:1px solid var(--bkz-border-hairline)}
.credit-settings-slider input{display:block;width:100%;margin:0;accent-color:var(--ui-ink-muted);cursor:pointer}
.credit-settings-slider .credit-slider-bounds{display:flex;justify-content:space-between;margin:10px 0 0;font-size:var(--bkz-text-xs);color:var(--ui-ink-muted)}
.credit-settings-total{display:flex;align-items:baseline;gap:8px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.credit-settings-total strong{font-size:var(--bkz-text-lg);font-weight:500;color:var(--ui-ink-strong)}
.credit-settings-total span{font-size:var(--bkz-text-xs);color:var(--ui-ink-muted)}
.credit-settings-actions{display:flex;justify-content:flex-end;margin-top:16px}
@media(max-width:600px){.credit-settings-purchase .srow{grid-template-columns:minmax(0,1fr);gap:8px}.credit-settings-purchase .srow-r{grid-column:1;grid-row:3;justify-self:start}.credit-settings-total{flex-wrap:wrap}}
/* width comes from the settings-hub rule above: all four tabs share one column. */
.set-sec { margin-top: 26px; }
.set-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 8px; font-size: var(--bkz-text-xs); font-weight: 600; letter-spacing: var(--bkz-tracking-eyebrow-widest); text-transform: uppercase; color: var(--bkz-muted); }
.set-sec-h .muted { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: var(--bkz-text-sm); }
/* A filled Save next to the section word reads as a highlight. The control is the word. */
.set-sec-h .btn { background: transparent; border-color: transparent; box-shadow: none;
  color: var(--ui-ink-muted); padding: 0; }
.set-sec-h .btn:hover, .set-sec-h .btn:active, .set-sec-h .btn:focus-visible {
  background: transparent; border-color: transparent; box-shadow: none;
  color: var(--ui-ink-strong); transform: none; outline: none; }
.set-list { border-radius: var(--bkz-radius-3xl); border: 1px solid var(--ui-glass-border-solid); background: var(--ui-glass-solid); overflow: hidden; }
/* One muted line under the repository features: what this person reads elsewhere is not
   billed here. Row text size and colour (.srow-s); spaced off the list above, nothing more. */
.set-not-billed { margin: 10px 2px 0; }
/* Title over subtitle, action right. The previous 168px-gutter grid parked the
   subtitle mid-row — anchored to nothing on either side, it read as a caption
   floating 40% across the card (operator report). Stacked, the words explain the
   title they sit under and the row reads left-to-right once. */
.srow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px;
  align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--bkz-border-hairline); }
.srow-t { grid-column: 1; grid-row: 1; }
.srow-s { grid-column: 1; grid-row: 2; }
.srow-r { grid-column: 2; grid-row: 1 / span 2; }
.srow:last-child { border-bottom: 0; }
.srow-t { font-weight: 600; font-size: var(--bkz-text-md); color: var(--ui-ink-strong); }
.srow-s { font-size: var(--bkz-text-sm); line-height: 19px; color: var(--ui-ink-muted); max-width: 76ch; }
.srow-s b { color: var(--ui-ink-body); font-weight: 600; }
.srow-r { display: flex; align-items: center; gap: 8px; justify-self: end; white-space: nowrap; }
.srow-r .badge { margin-left: 0; }
.srow-r .modes { margin: 0; }
/* The role pill and the facts beside it: one row, one gap. */
.ws-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.ws-facts .tag { flex: none; }
.srow-x { grid-column: 1 / -1; padding-top: 4px; }
.srow-x .cmd { margin: 6px 0; }
.srow-x p { margin: 6px 0 0; max-width: 80ch; }
.srow-x .note { margin: 6px 0 0; }
.srow-x .token-form { margin-top: 4px; }
.srow-x .pol-edit { margin: 4px 0 2px; }
/* The author exclusions: a checkbox per contributor, and a field for the logins Breken has
   not seen yet. Too tall for the right-hand column, so both sit in the full-width strip —
   and the field's label reads as a label rather than a line of prose running into it. */
.srow-x .chips { margin: 2px 0 12px; }
.srow-x label.srow-s { display: block; max-width: 420px; }
/* Give each capability a full-width horizontal band instead of three uneven columns. */
.capabilities-section { container-type: inline-size; }
.cap-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.cap-card { min-width: 0; margin: 0; padding: 0; border-radius: var(--bkz-radius-3xl); border: 1px solid var(--ui-glass-border-solid); background: var(--ui-glass-solid); overflow: hidden; }
.cap-card--product { grid-column: 1 / -1; }
.cap-card .srow-group { padding: 16px 18px 6px; }
.cap-card[disabled] { opacity: .46; }
.cap-off-note { margin: 0; padding: 0 18px 7px; color: var(--ui-ink-muted); font-size: var(--bkz-text-xs); }
.cap-card .srow { padding: 16px 18px; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; }
.cap-card .srow-t { grid-column: 1; grid-row: 1; }
.cap-card .srow-r { grid-column: 2; grid-row: 1 / span 2; }
.cap-card .srow-s { grid-column: 1; grid-row: 2; max-width: 72ch; }
.cap-lede { margin: 0; padding: 0 18px 12px; font-size: var(--bkz-text-sm); line-height: 19px; color: var(--ui-ink-muted); }
/* A feature switched off, and the rows it governs underneath. The card used to stay at full
   strength under its own "off", so the page said Dead code: off and then asked, in the same
   weight of type, how often to sweep — two statements about the same feature, one of them
   irrelevant, neither of them marked. This band is what marks it.

   Dimmed and still live: the controls keep posting, so a workspace can be set up before it is
   switched on, and — the reason this is not `disabled` — a disabled checkbox posts nothing
   while the `shown:` field beside it still posts, which is how a cosmetic grey would come to
   write `false` over a stored `true` on the next Save. */
/* THE DANGER ZONE: the sections whose controls do not come back.
   Pausing a workspace, deleting one, deleting an account — each sat in the same grey box as
   the section that sets a sweep cadence, and the one thing a destructive control owes its
   reader is that it should not have to be read carefully to be recognised.

   The red is the BORDER and the heading, never a fill. A tinted panel behind four lines of
   explanation makes the explanation harder to read, and the explanation is the part that
   stops somebody pressing the button by mistake. */
.set-sec-danger > .set-sec-h > span:first-child { color: var(--bkz-danger-ink); }
.set-sec-danger .set-list { border-color: var(--bkz-danger-border); }
.set-sec-danger .set-list .srow { border-bottom-color: var(--bkz-danger-border); }
/* A control that is not available YET, drawn rather than hidden: a button that vanishes
   teaches nothing, and the reason for the grey is in the row beside it. */
.set-sec-danger .btn[disabled] { opacity: .45; cursor: not-allowed; }
.cap-dep { transition: opacity 180ms ease; }
.cap-dep.is-off { opacity: .42; }
/* Reaching into a dimmed row un-dims it: a control being used is not a control being ignored,
   and the alternative is typing into something you cannot read. */
.cap-dep.is-off:hover, .cap-dep.is-off:focus-within { opacity: .75; }
@media (prefers-reduced-motion: reduce) { .cap-dep { transition: none; } }
@container (max-width: 620px) { .cap-card .srow { grid-template-columns: minmax(0, 1fr); } .cap-card .srow-r { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 8px; } }
/* Forms with several fields belong below their explanation, not in a narrow action column. */
.slack-authority-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr); gap: 16px; margin: 16px 0 4px; }
.slack-authority-form .field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
.slack-authority-form .field > span { font-size: 12px; font-weight: 500; color: var(--ui-ink-muted); }
.slack-authority-form .input, .slack-authority-form select { width: 100%; min-width: 0; height: 40px; box-sizing: border-box; }
.slack-authority-form .dd { width: 100%; }
.slack-authority-form .dd > summary { height: 40px; box-sizing: border-box; }
.slack-authority-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding-top: 2px; }
#repository-features .repo-feature-row { grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; padding: 18px 20px; }
#repository-features .repo-feature-row .srow-t { grid-column: 1; grid-row: 1; min-width: 0; }
#repository-features .repo-feature-row .srow-t code { overflow-wrap: anywhere; background: none; padding: 0; font-size: 13px; font-weight: 500; }
.repo-feature-controls { display: flex; flex-wrap: wrap; gap: 12px; grid-column: 2; grid-row: 1; align-items: center; justify-content: flex-end; }
.repo-feature-setting { position: relative; display: flex; margin: 0; min-width: 0; }
.repo-feature-setting .swt { min-width: 120px; min-height: 36px; justify-content: space-between; gap: 24px; padding: 6px 0; border: 0; background: transparent; }
.repo-feature-setting .swt-lbl { font-size: var(--bkz-text-sm); }
.repo-feature-setting .swt-track { flex: none; }
.repo-feature-error { position: absolute; top: 100%; right: 0; color: var(--bkz-red, #c44); font-size: var(--bkz-text-xs); white-space: nowrap; }
@media (max-width: 640px) {
  .slack-authority-form { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .slack-authority-actions { justify-content: stretch; }
  .slack-authority-actions .btn { width: 100%; }
  #repository-features .repo-feature-row { grid-template-columns: minmax(0,1fr); gap: 10px; padding: 16px; }
  .repo-feature-controls { grid-column: 1; grid-row: 2; justify-content: flex-start; }
}
.srow-x label.srow-s .input { margin-top: 5px; }
/* Closed by default: the grid grows a checkbox per contributor, so on a real organisation it
   was taller than the other four sections put together while being the one control here that
   is set once and then never read. The summary is a control, so it looks like the page's
   other quiet ones rather than like a browser triangle. */
.set-more > summary { list-style: none; }
.set-more > summary::-webkit-details-marker { display: none; }
.set-more-s { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; cursor: pointer;
  font-size: var(--bkz-text-sm); font-weight: 500; color: var(--ui-ink-muted); }
.set-more-s::before { content: "+"; font-family: var(--bkz-font-mono); color: var(--ui-ink-faint); }
.set-more[open] > .set-more-s::before { content: "\2212"; }
.set-more-s:hover { color: var(--ui-ink-strong); }
.set-more[open] > .set-more-s { margin-bottom: 8px; }
/* The single-column rule above was defeated by `.srow-r { grid-column: 2 }` (line 1200):
   an explicit column-2 placement CREATES an implicit second track, so the stack never
   happened. Measured at 390px on /settings, the description column resolved to
   "76.45px 199.55px" and rendered a full sentence as a 76px ribbon 304px tall; /account
   was 85px. The placement has to be unset here too, not just the template. */
@media (max-width: 880px) {
  .srow { grid-template-columns: 1fr; }
  .srow-r { grid-column: 1; grid-row: auto; justify-self: start; white-space: normal; flex-wrap: wrap; }
}

/* ---------- tooltips near the card edge, and the impact figure ---------- */
.inbox > :first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.inbox > :last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
/* action-column tooltips grow leftward instead of clipping at the right edge */
.iacts [data-tip]::after { left: auto; right: 0; transform: translateY(3px); }
.iacts [data-tip]:hover::after { transform: translateY(0); }
.iacts [data-tip]::before { left: auto; right: 18px; transform: none; }
.impact { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; margin-left: 12px; flex-shrink: 0; cursor: var(--cursor-mark); }
.impact b { font-size: var(--bkz-text-4xl); font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--bkz-ink); font-variant-numeric: tabular-nums; }
.impact > span { font-size: var(--bkz-text-2xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bkz-ink-slate); }
.impact-sm { flex-direction: row; align-items: baseline; gap: 5px; margin-left: 0; min-width: 86px; }
.impact-sm b { font-size: var(--bkz-text-xl); }
.impact[data-tip]::after { left: auto; right: 0; transform: translateY(3px); max-width: 340px; font-family: var(--bkz-font-mono); font-size: var(--bkz-text-xs); }
.impact[data-tip]:hover::after { transform: translateY(0); }
.impact[data-tip]::before { left: auto; right: 18px; transform: none; }
.impact-sm[data-tip]::after { left: 0; right: auto; }
.impact-sm[data-tip]::before { left: 18px; right: auto; }
.hist-line .impact-sm { cursor: var(--cursor-mark); }

/* ---------- onboarding stepper ---------- */
/* ---------- setup: one step, one page ----------
   Each of the four setup steps is its own screen now, so what the card wears is a STRIP:
   where you are in the sequence, one line, above the heading. The `.ob-step` rail below it
   is not dead — the control surface (src/ui/public/app.js) still draws its own connect
   screen with it — it is simply no longer what the hosted flow uses. */
/* One line, always. A strip that wraps its fourth step onto a second row is a strip that
   looks like it ran out of road, which is the opposite of what a step counter is for — so the
   marks never shrink and never wrap, and the CONNECTORS take up whatever width is left.
   `overflow: hidden` is the floor under that promise: nowrap content that will not fit has to
   go somewhere, and clipping the last label inside the card beats painting it across the edge
   of one. The breakpoint below means it should never come to that. */
.ob-strip { display: flex; align-items: center; flex-wrap: nowrap; overflow: hidden; margin: 0 0 24px; }
.ob-s { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--ui-ink-muted); text-decoration: none; }
/* The connector belongs BETWEEN two marks, so it is the second one's own first child rather
   than a separate element the markup has to interleave. It is the strip's only flexible part:
   it grows into a wide card and gives its width back on a narrow one. */
.ob-s + .ob-s::before { content: ""; flex: 1 1 12px; min-width: 8px; height: 1px; margin: 0 10px; background: var(--ui-border); }
.ob-s-l { font-size: var(--bkz-text-sm); font-weight: 600; white-space: nowrap; }
.ob-strip .ob-dot { width: 22px; height: 22px; font-size: 11px; }
.ob-strip .ob-active .ob-s-l { color: var(--ui-ink-strong); }
a.ob-s:hover { color: var(--ui-ink-strong); text-decoration: none; }
a.ob-s:hover .ob-dot { background: var(--ui-accent-btn-hover); }
/* Below this the four labels stop fitting on one line. Measured, not guessed: the four marks
   come to 653px, and the card's inner width is `min(760px, 100vw - 32px) - 64`, so the words
   run out of room at a 749px viewport. 800 is that number with the slack that different font
   rendering wants. Under it the marks stay and the words go — still four steps with the third
   one lit, which is the whole of what the strip says. */
@media (max-width: 800px) {
  .ob-s-l { display: none; }
  .ob-s + .ob-s::before { margin: 0 8px; }
}
/* A block that used to be titled by the rail row it sat in, and now titles itself. */
.ob-h2 { margin: 30px 0 12px; font-size: var(--bkz-text-lg); font-weight: 600; color: var(--ui-ink-strong); }

/* ---------- one card, four steps ----------
   The four setup screens hold different amounts — a button, a two-row chooser, a repository
   list, a build plus an invite form — and the card was sized by whichever it was holding:
   537px, 537px, 658px, 757px. Crossing between two of those means the box resizes WHILE it
   cross-fades, so the thing the eye tracks is the edge moving rather than the content
   changing. One height for all four, and the fade has a still frame to happen in.

   `:has(.ob-strip)` is what scopes it: the strip is on the setup screens and nowhere else, so
   the sign-in card, the trial card and the invite card keep sizing to their own content — a
   760px box around one button would be a hole, not a card.

   Bounded by the viewport as well, because a fixed height taller than the window is a card
   whose primary action is below the fold on a laptop. */
/* The card is the size of what is in it.

   It was pinned to one height so the box would hold still under the cross-fade, and that
   bought stillness at the price of a hole: the org chooser is the shortest screen in the flow
   and sat in 720px of card with 220 of them empty beneath the Continue button. Pinning is the
   wrong way to stop a jump anyway — the right way is to ANIMATE the change, which the view
   transition further down now does. The card grows and shrinks between steps, smoothly, and
   carries no empty space at rest. */
.auth2-card:has(.ob-strip) > .auth2-body {
  /* The only bound left, and it bites only on a genuinely enormous list: a card taller than
     the window puts its own primary action out of reach. Everything short of that sizes to
     its content. */
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  /* Setting ONE axis away from `visible` computes the other to `auto`, which is how a card
     overflowing by nothing you can see still grew a horizontal scrollbar along its bottom
     edge: `.panel` paints corner crosshairs a few pixels outside its own box, and four
     stray pixels are enough. Named explicitly so the axis that should never scroll never
     does. (`clip` would be the more precise word and is not available here — beside a
     scrolling axis it computes right back to `hidden`.) */
  overflow-x: hidden;
  /* No reserved gutter. It was right when the card was a fixed height and the body
     scrolled on most steps — a scrollbar appearing and disappearing between steps moves
     the content sideways. Now the body only scrolls on a list long enough to outgrow the
     window, so reserving the space permanently just holds every card 8px off centre for a
     bar that is almost never there. */
}
/* No max-height on the repository picker, and that is load-bearing rather than taste.
   `.pick-form .trow-h` is `position: sticky` — it pins against the CARD as it scrolls,
   with `--pick-filter` offsetting it past the search box. Capping `.tbl` made the table
   its own scroll container, so the header stuck to the top of THAT box instead and drew
   itself over the first rows: a list rendered with its own heading on top of its
   contents. The body above is the one scroll container; the table scrolls with it. */

/* The entrance fade is the FALLBACK, not a second animation on top of a view transition.
   nav.js adds this while it cross-fades a swap; without it the arriving card runs its own
   fade-in inside the transition's fade-in and the two compound. */
.vt-swap .auth2-card { animation: none; }
.ob-card { padding: 30px 32px; }
.ob-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 18px; }
.ob-rail { position: relative; display: flex; justify-content: center; }
.ob-step:not(:last-child) .ob-rail::after { content: ""; position: absolute; top: 30px; bottom: -4px; width: 1px; background: var(--ui-border); }
.ob-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--bkz-font-mono); font-size: 12px; font-weight: 700; background: var(--ui-tint-6); color: var(--ui-ink-muted); flex-shrink: 0; }
.ob-done .ob-dot { background: var(--ui-accent-btn); color: var(--ui-on-accent); }
.ob-active .ob-dot { background: var(--brand); color: var(--brand-contrast); }
.ob-todo { opacity: .5; }
.ob-t { font-weight: 600; font-size: var(--bkz-text-lg); color: var(--ui-ink-strong); line-height: 26px; }
.ob-b { padding: 10px 0 26px; }
/* A step with no body still emits its `.ob-b`, and it was paying the full 42px for the
   privilege — so a ticked step and an untouched one sat as far apart as the one carrying
   the whole org picker. Collapsed to a plain gap, the rail reads as a list again. */
.ob-b:empty { padding: 0; height: 20px; }
.ob-step:last-child .ob-b { padding: 12px 0; }
.ob-step:last-child .ob-b:empty { height: 4px; padding: 0; }
.ob-line { font-size: var(--bkz-text-base); color: var(--ui-ink-body); }
.ob-line b { color: var(--ui-ink-strong); }
.ob-panel { border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-xl); background: var(--ui-sunk); overflow: hidden; }
.ob-panel-h { padding: 12px 18px; font-size: var(--bkz-text-sm); font-weight: 600; color: var(--ui-ink-body); border-bottom: 1px solid var(--bkz-border-hairline); }
.ob-search { display: block; width: 100%; margin: 0 0 10px; }
.ob-search .input { width: 100%; }
.ob-org { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border: 0; background: var(--ui-surface); color: inherit; font: inherit; cursor: pointer; text-align: left; border-bottom: 1px solid var(--bkz-border-hairline); }
.ob-org:hover { background: var(--ui-hover); }
.ob-org.on { background: var(--brand-softer); }
.ob-org-n { font-weight: 600; font-size: var(--bkz-text-md); color: var(--ui-ink-strong); flex: 1; min-width: 0; }
.ob-radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ui-border-hover); display: grid; place-items: center; flex-shrink: 0; }
.ob-org.on .ob-radio { border-color: var(--brand); }
.ob-org.on .ob-radio span { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.ob-panel-f { padding: 9px 14px; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.ob-repos { max-height: 320px; overflow-y: auto; background: var(--ui-surface); }
.ob-repos .repo-row { border-radius: 0; }

/* ---------- home insights ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 6px; padding: 0; overflow: hidden; }
/* The strip renders only the tiles with a figure behind them, so its column count is data.
   Without this, three tiles sat in three fifths of the card with two empty columns beside. */
.stat-strip.sts-1 { grid-template-columns: minmax(0, 1fr); }
.stat-strip.sts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-strip.sts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-strip.sts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Six figures in one row starve the 30px mono. Two rows of three keeps each
   number the headline of its own tile. */
.stat-strip.sts-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* The overview's loop panel hosts a strip under its own .panel-h, whose margin-bottom
   already provides the gap; the strip's standalone top margin would double it. */
.panel > .stat-strip { margin-top: 0; }
/* A hinted tile: the kit's <details> hint sits over the anchor's corner, outside it in the
   markup, so opening the definition never follows the tile's link. */
.stc-wrap { position: relative; min-width: 0; }
.stc-wrap > .stc { height: 100%; }
.stc-wrap:last-child > .stc { border-right: 0; }
/* One tile alone gets the whole width, so it reads as the page's headline rather than a
   lonely column: the label sits over the figure and the figure is the biggest thing there. */
.stat-strip.sts-1 .stc { padding: 20px 22px 18px; }
#spend-total.sts-1 .stc,
#spend-total.sts-2 .stc { align-items: center; text-align: center; }
.stc { display: flex; flex-direction: column; gap: 3px; padding: 16px 20px 14px; border-right: 1px solid var(--bkz-border-hairline); min-width: 0; color: inherit; }
.stc:last-child { border-right: 0; }
a.stc-link:hover { background: var(--ui-row-hover); text-decoration: none; color: inherit; }
a.stc-link:hover .stc-n { color: var(--brand-ink); }
.stc-l { font-size: var(--bkz-text-xs); font-weight: 500; letter-spacing: var(--bkz-tracking-eyebrow-widest); text-transform: uppercase; color: var(--bkz-muted); }
.stc-n { font-family: var(--bkz-font-mono); font-size: var(--bkz-text-6xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--bkz-ink); font-variant-numeric: tabular-nums; }
.stc-n.ok { color: var(--bkz-success-ink); }
.stc-n.brand { color: var(--brand-ink); }
.stc-s { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); line-height: 17px; }
.stc-s:empty { display: none; }
/* The Activity panel's two halves. `align-items: start`, not stretch: each half is as tall
   as what is in it. */
.insights { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; align-items: start; }
/* Two-up variant the Activity panel names explicitly; same grid, so the class has a home in the sheet. */
.insights.ins-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* The pull-request pulse: one column per day on a shared baseline, the axis naming only
   its two ends. Neutral ink — a pull request being reviewed is neither good news nor bad. */
.cols { display: flex; align-items: flex-end; gap: 6px; height: 132px; }
.colw { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100%; cursor: var(--cursor-mark); }
.colbars { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; }
.col-b { background: color-mix(in srgb, var(--brand) 45%, transparent); border-radius: 3px 3px 0 0; }
.colbars .col-b:only-child { border-radius: 3px 3px 2px 2px; }
.col-b[style="height:0%"] { display: none; }
.col-x { height: 16px; margin-top: 4px; font-size: var(--bkz-text-2xs); color: var(--bkz-ink-slate); white-space: nowrap; }
.colw:last-child .col-x { text-align: right; }
.panel { border-radius: var(--bkz-radius-3xl); border: 1px solid var(--ui-glass-border-solid); background: var(--ui-glass-solid); padding: 14px 18px; min-width: 0; }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: var(--bkz-text-md); font-weight: 600; color: var(--bkz-ink); }
a.panel-h { text-decoration: none; color: inherit; }
.panel > a.panel-h:only-child { margin-bottom: 0; }
.panel-h .muted { font-weight: 400; font-size: var(--bkz-text-sm); }
/* On a phone a panel's title and its quiet status share ~300px: each squeezed into two lines
   side by side ("Welcome to / Breken" beside "no repository / yet"). Let the status drop under
   the title instead, whole. */
@media (max-width: 700px) { .panel-h:has(> span.muted) { flex-wrap: wrap; row-gap: 4px; } }
.panel-note { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); }
.key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.key-g { background: color-mix(in srgb, var(--bkz-success) 55%, var(--bkz-success-tint)); }
.key-r { background: color-mix(in srgb, var(--bkz-danger) 60%, var(--bkz-danger-tint)); margin-left: 10px; }
.panel-empty { display: grid; place-items: center; height: 132px; font-size: var(--bkz-text-base); color: var(--ui-ink-muted); }
.hbars { display: flex; flex-direction: column; gap: 9px; padding-top: 2px; padding-bottom: 2px; }
.hrow { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr) 56px; gap: 12px; align-items: center; cursor: var(--cursor-mark); }
.hrow-l { font-size: var(--bkz-text-xs); color: var(--ui-ink-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow-bar { height: 10px; border-radius: 5px; background: var(--ui-tint-5); overflow: hidden; display: block; }
.hrow-bar span { display: block; height: 100%; border-radius: 5px; background: color-mix(in srgb, var(--brand) 70%, var(--brand-soft)); }
.hrow-v { font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); text-align: right; font-variant-numeric: tabular-nums; }
/* The sts-N rules above out-specify a bare .stat-strip, media query or not, so the narrow
   layouts have to clamp the same classes rather than the element. */
@media (max-width: 1400px) { .stat-strip, .stat-strip.sts-4, .stat-strip.sts-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stc { border-bottom: 1px solid var(--bkz-border-hairline); } }
@media (max-width: 1100px) { .insights { grid-template-columns: 1fr; } .stat-strip, .stat-strip.sts-3, .stat-strip.sts-4, .stat-strip.sts-5, .stat-strip.sts-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stc { border-bottom: 1px solid var(--bkz-border-hairline); } }

/* ================= the grotesk-and-grid skin ==========   Space Grotesk everywhere, IBM Plex Mono for labels and figures. Corners go
   square; the page carries a drafting grid — rails, ticks and crosshairs do
   the structuring that rounded corners used to fake. */
:root {
  --bkz-font-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bkz-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bkz-font-brand: var(--bkz-font-sans);
  --bkz-radius-xs: 0; --bkz-radius-sm: 0; --bkz-radius-md: 0; --bkz-radius-lg: 0;
  --bkz-radius-auth: 0; --bkz-radius-xl: 0; --bkz-radius-2xl: 0; --bkz-radius-3xl: 0;
  --bkz-radius-4xl: 0; --bkz-radius-5xl: 0; --bkz-radius-panel: 0; --bkz-radius-panel-lg: 0;
  --bkz-radius-auth-card: 0; --bkz-radius-full: 0;
  --grid-line: rgba(255, 255, 255, 0.030);
  --grid-rail: rgba(255, 255, 255, 0.085);
  --grid-tick: rgba(255, 255, 255, 0.14);
  --grid-cross: rgba(255, 255, 255, 0.22);
  /* The mark as the cursor wherever a hover explains something. `help` renders the
     OS question-mark pointer, which reads as the page failing to load rather than as
     an affordance; the brand's own glyph pair says "this spot answers" in the
     product's voice. Drawn as rects, not text — a cursor SVG has no font stack. */
  --cursor-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='10'%3E%3Cg fill='%2357aae4'%3E%3Crect width='5' height='5'/%3E%3Crect x='5' y='5' width='5' height='5'/%3E%3C/g%3E%3Cg fill='%23247ec2'%3E%3Crect x='12' width='5' height='5'/%3E%3Crect x='17' y='5' width='5' height='5'/%3E%3C/g%3E%3C/svg%3E") 2 2, default;
  /* The one chevron this product opens every dropdown with — the same path .pick-btn, .dd
     and .sb-ws-chev draw inline. A token because <select>'s arrow is a pseudo-element with
     no room for markup, and a second hand-drawn chevron is how two of them drift apart. */
  --chevron-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}
:root[data-theme="light"] { --grid-line: rgba(23, 23, 23, 0.04); --grid-rail: rgba(23, 23, 23, 0.10); --grid-tick: rgba(23, 23, 23, 0.18); --grid-cross: rgba(23, 23, 23, 0.28); }
body { letter-spacing: 0.005em; }

/* the big divisions across the canvas */
.main { background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 168px 168px; }
/* NO ruler rails on the content column. The column edges carried a hairline with ruler
   ticks; on a wide dashboard the column edge floats mid-canvas and the rail read as a
   stray artifact — a random line down the page — not as structure (operator ruling).
   The faint 168px grid and the corner crosshairs carry the drafting-sheet feel alone.
   `--grid-rail`/`--grid-tick` stay defined: real edges (the sidebar border, sec-h
   underlines, the auth card) still use them for lines that bound something visible. */
.main-inner { position: relative; }

/* crosshairs at panel corners */
.card, .panel, .inbox, .set-list { position: relative; }
.card::before, .panel::before, .inbox::before, .set-list::before { content: "+"; position: absolute; top: -6.5px; left: -4.5px; font: 500 12px/1 var(--bkz-font-mono); color: var(--grid-cross); pointer-events: none; z-index: 1; }
.card::after, .panel::after, .inbox::after, .set-list::after { content: "+"; position: absolute; bottom: -6.5px; right: -4.5px; font: 500 12px/1 var(--bkz-font-mono); color: var(--grid-cross); pointer-events: none; z-index: 1; }
.stat-strip::before, .stat-strip::after { display: none; } /* overflow-clipped: the marks would shear */

/* mono where Greptile is mono: eyebrows, section labels, badges, figures */
.eyebrow, .set-sec-h, .hs-l, .stc-l, .sb-label, .dz, .col-x, .impact > span, .funnel-k, .conn-status .mono { font-family: var(--bkz-font-mono); }
.badge, .b-ok, .b-bad, .b-use, .b-ask { font-family: var(--bkz-font-mono); text-transform: uppercase; letter-spacing: 0.07em; font-size: 10.5px; font-weight: 500; }
/* The rule under a header is a row of the dot — the same material as the loader — not a dash. */
.sec-h { border-bottom: 0; padding-bottom: 9px; background-image: radial-gradient(circle, var(--grid-rail) 1px, transparent 1.4px); background-size: 6px 3px; background-repeat: repeat-x; background-position: 0 100%; }
.sec-h > span:first-child { font-family: var(--bkz-font-mono); text-transform: uppercase; letter-spacing: 0.10em; font-size: var(--bkz-text-sm); font-weight: 600; }
.sec-h .muted { text-transform: none; letter-spacing: 0; font-family: var(--bkz-font-sans); }
.tag, .bug-pr, .bug-outcome { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ui-border); background: var(--ui-sunk); padding: 3px 9px; font: 500 10.5px/1.6 var(--bkz-font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ui-ink-muted); }

/* number boxes go square with the rest of the geometry */
.q-n, .stage-n, .dp-i, .ob-dot, .chk, .sb-initial, .avatar, .sb-brand img, .wordmark img, .oi { border-radius: 0; }
.hrow-bar, .hrow-bar span { border-radius: 0; }
.loading::before, .loading::after { border-radius: 0; }

/* ================= sign-in, on the grid ================= */
.auth2 { min-height: 100vh; display: grid; place-items: center; padding: 48px 16px; background: var(--bkz-bg); background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 168px 168px; background-position: center top; }
/* The identity row over every setup card: who you are and the one door out, pinned to the
   corner so it never reads as the page's conclusion (the failure the old card foot had). */
.auth2-id { position: fixed; top: 14px; right: 18px; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.auth2-id a { color: inherit; text-decoration: underline; }
.auth2-id a:hover { color: var(--ui-ink-strong); }
/* The entrance is the same fade the view transition runs, because it is the same arrival by
   another road: nav.js swaps these card pages by replacing the whole body, and a body swap is
   not a navigation, so no view transition ever sees it. Matched, a step looks identical
   whether it was navigated to or routed to. `bkz-fade-up`'s rise was the odd one out — the
   card now changes height between steps, and a card that rises while it resizes wobbles. */
.auth2-card { position: relative; width: min(430px, calc(100vw - 32px)); border: 1px solid var(--grid-rail); background: var(--ui-surface); padding: 34px 32px 28px; animation: setup-card-in .28s var(--bkz-ease-settle) both; }
.auth2-card-wide { width: min(760px, calc(100vw - 32px)); }
.auth2-step { margin: 0 0 10px; text-align: left; color: var(--brand); font-size: var(--bkz-text-xs); letter-spacing: .12em; text-transform: uppercase; }
/* Two-line setup headlines used to end a few pixels above the rail card's border, so the
   descender of "configure." and the card edge read as one smudge. */
.auth2-card-wide .auth2-h1 { margin-bottom: 26px; }
/* The 26px is air before a list or rail. A lede under the title does not need that gap. */
.auth2-card-wide .auth2-h1:has(+ .auth2-lede) { margin-bottom: 8px; }
.auth2-card-wide .auth2-h1 + .auth2-lede { margin-top: 0; }
.auth2-card-wide .ob-panel { margin-top: 12px; max-height: min(390px, 45vh); overflow: auto; }
/* The line under the picker belongs to the picker, not to the next step. */
.auth2-card-wide .ob-b > .sub { margin: 12px 0 0; font-size: var(--bkz-text-base); }
.auth2-card-wide .ob-org { min-height: 58px; }
.onboarding-integrations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.onboarding-integrations span { border: 1px solid var(--ui-border); background: var(--ui-sunk); padding: 13px; text-align: center; color: var(--ui-ink-soft); font: 500 var(--bkz-text-sm)/1 var(--bkz-font-mono); }
@media (max-width: 560px) { .auth2-card-wide { padding: 28px 20px 24px; } .onboarding-integrations { grid-template-columns: 1fr; } }
.x2 { position: absolute; width: 13px; height: 13px; pointer-events: none; }
.x2::before, .x2::after { content: ""; position: absolute; background: var(--grid-cross); }
.x2::before { left: 6px; top: 0; width: 1px; height: 13px; }
.x2::after { top: 6px; left: 0; height: 1px; width: 13px; }
.x2-tl { top: -7px; left: -7px; } .x2-tr { top: -7px; right: -7px; } .x2-bl { bottom: -7px; left: -7px; } .x2-br { bottom: -7px; right: -7px; }
.auth2-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth2-brand img { display: inline-block; vertical-align: -5px; margin-right: 9px; border-radius: 6px; }
.auth2-brand img { width: 34px; height: 34px; display: block; }
.auth2-brand span { font-size: var(--bkz-text-2xl); font-weight: 700; letter-spacing: -0.02em; color: var(--ui-ink-strong); }
.auth2-h1 { margin: 14px 0 0; font-size: var(--bkz-text-7xl); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; color: var(--ui-ink-strong); }
/* One word, not a two-line offer. The 38px headline is sized for "Try Breken for
   free" / setup titles; Welcome. sits quieter above the GitHub door. */
.auth2-h1-greet { margin-top: 0; font-size: var(--bkz-text-5xl); }
.auth2-h1-greet + .as-idp { margin-top: 18px; }
.auth2-lede { margin: 8px 0 0; font-size: var(--bkz-text-md); line-height: 22px; color: var(--ui-ink-soft); }
/* The trial length, under the offer it belongs to: small, quiet, and close enough to the
   headline to read as part of it rather than as the first line of the paragraph below. */
.auth2-trial { margin: 10px 0 0; font-size: var(--bkz-text-sm); font-weight: 500; letter-spacing: 0.01em; color: var(--ui-ink-muted); }
.auth2-alert { margin-top: 14px; border: 1px solid var(--bkz-danger-alert-border); background: var(--bkz-danger-alert-bg); color: var(--bkz-danger-alert-ink); padding: 9px 12px; font-size: var(--bkz-text-base); line-height: 19px; }
/* The team page's outcome notice — "Invite sent to …" is good news, and it was wearing
   the danger alert's red because it borrowed that class. The product's accent blue, the
   same one the live tags use. */
/* A notice that reports a REFUSAL wears the refusing colour: the same shape as the
   informational one, so it sits in the same slot, but never the calm blue that made
   "that did not work" read like "here is a tip". */
.tm-notice-bad { border-color: var(--bkz-danger-border) !important;
  background: var(--bkz-danger-alert-bg) !important; color: var(--bkz-danger-alert-ink) !important; }
.tm-notice { margin: 0 0 14px; border: 1px solid var(--ui-brand-border); background: color-mix(in srgb, var(--bkz-blue-link) 10%, transparent); color: var(--bkz-blue-link); padding: 9px 12px; font-size: var(--bkz-text-base); line-height: 19px; }
/* "Add your email to get bug reports and alerts" (src/app/email-ask.ts): one line above Home
   and Bugs while Breken has no address for the person. Not a modal; it blocks nothing. On a
   phone the box takes its own row and Save and Not now sit under it. */
.email-ask { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--ui-brand-border); border-radius: var(--bkz-radius-md); background: color-mix(in srgb, var(--bkz-blue-link) 7%, transparent); }
.email-ask[hidden] { display: none; }
.email-ask-copy { flex: 1 1 280px; min-width: 0; }
.email-ask-title { margin: 0; font-size: var(--bkz-text-base); font-weight: 600; line-height: 1.35; color: var(--ui-ink-strong); }
.email-ask-sub { margin: 2px 0 0; font-size: var(--bkz-text-sm); line-height: 1.45; color: var(--ui-ink-muted); }
.email-ask-form { display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.email-ask-input { width: 240px; max-width: 100%; }
.email-ask-later { color: var(--ui-ink-muted); }
@media (max-width: 700px) {
  .email-ask-form { flex: 1 1 100%; }
  .email-ask-input { flex: 1 1 100%; width: auto; }
}
.auth2-form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.auth2-label { display: block; margin-bottom: 5px; font: 500 10.5px/1 var(--bkz-font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ui-ink-muted); }
.auth2-in { width: 100%; height: 44px; border: 1px solid var(--ui-border); background: var(--ui-sunk); color: var(--ui-ink-strong); font: inherit; font-size: var(--bkz-text-md); padding: 0 13px; outline: none; transition: border-color var(--bkz-duration-base); }
.auth2-in:hover { border-color: var(--ui-border-hover); }
.auth2-in:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.auth2-primary { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 0; cursor: pointer; background: var(--ui-accent-btn); color: var(--ui-on-accent); font: 600 var(--bkz-text-md)/1 var(--bkz-font-sans); letter-spacing: 0.01em; transition: background var(--bkz-duration-base); }
.auth2-primary:hover { background: var(--ui-accent-btn-hover); }
.auth2-primary:disabled { opacity: .6; cursor: default; }
.auth2-secondary { display: flex; align-items: center; justify-content: center; gap: 9px; height: 44px; margin-top: 20px; border: 1px solid var(--ui-border); background: transparent; color: var(--ui-ink-strong); font-weight: 600; font-size: var(--bkz-text-md); cursor: pointer; text-decoration: none; }
.auth2-secondary:hover { border-color: var(--ui-border-hover); text-decoration: none; color: var(--ui-ink-strong); }
.auth2-rule { display: flex; align-items: center; gap: 12px; margin-top: 16px; font: 500 10.5px/1 var(--bkz-font-mono); text-transform: uppercase; letter-spacing: 0.10em; color: var(--ui-ink-faint); }
.auth2-rule::before, .auth2-rule::after { content: ""; flex: 1; height: 1px; background: var(--ui-border); }
.auth2-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.auth2-foot { margin-top: 18px; text-align: center; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.auth2-setup { margin-top: 14px; color: var(--ui-ink-strong); }
.auth2 .tag { margin-top: 2px; }
@media (max-width: 880px) { .main-inner { border-left: 0; border-right: 0; } .main-inner::before, .main-inner::after { display: none; } }

/* ---------- pull-request and review rows ----------
   The markup for these shipped without styles, so every row on Open PRs and Reviews
   flowed as inline text: fourteen pull requests rendered as one unreadable paragraph,
   and the totals ran together as "14open5opened by us". Square geometry and the --ui-*
   tokens, to match the rest of the interface. */
/* Tickets and Code reviews, in the Garden's clothes.
   These were bordered cards on `--ui-surface` while the Garden's `.gd-list` was a top hairline
   over transparent rows — three lists of the same shape wearing two different skins, so moving
   between the tabs read as moving between two products. The Garden is the reference: one
   hairline above the list, one between each row, and the page background showing through. */
.botlist { display: flex; flex-direction: column; border: 0;
  border-top: 1px solid var(--bkz-border-hairline); background: var(--ui-card); }
.botlist > * + * { border-top: 1px solid var(--bkz-border-hairline); }
.botlist + .panel, .botlist + section.panel { margin-top: 16px; }

/* Room to read. 11px of vertical padding on a row carrying a tag, two lines of text and a
   timestamp put four things inside 40px, and a list of them reads as a wall rather than as
   rows — the founder's note on every ticket screenshot was "too compact". 14px, and the
   tag column gets its own breathing room beside the title. */
.botrow {
  position: relative;
  display: grid; grid-template-columns: 14px auto minmax(0, 1fr) auto; align-items: center;
  /* The Garden's row rhythm — see `.gd-card`. One padding across Garden, Code reviews and
     Tickets, so the three tabs are one list with different contents. */
  gap: 10px 16px; padding: 20px 22px; text-decoration: none; color: var(--ui-ink-body);
  transition: background .12s ease;
}
/* Knowledge (and any other title · status row) is not a ticket. The four-track
   ticket grid put the title in the 14px grip column, so each word wrapped onto
   its own line and VERIFIED stretched across the leftover 1fr. */
.botrow-plain { grid-template-columns: minmax(0, 1fr) auto; }
.botrow-grip { display: block; visibility: hidden; width: 14px; text-align: center;
  font-family: var(--bkz-font-mono); font-size: 11px; line-height: 1;
  color: var(--ui-ink-faint); cursor: grab; user-select: none; touch-action: none; }
.botrow:hover .botrow-grip { visibility: visible; }
.botrow-grip:hover { color: var(--ui-ink-strong); }
@media (hover: none) { .botrow-grip { visibility: visible; } }
.botrow.dragging { transition: none; will-change: transform; position: relative; z-index: 48;
  background: var(--ui-surface); box-shadow: var(--ui-shadow); cursor: grabbing; }
.botrow.dragging .botrow-grip { visibility: visible; color: var(--brand-ink); cursor: grabbing; }
body.is-ticket-reordering { cursor: grabbing; user-select: none; }
body.is-ticket-reordering .botrow { transition: none; }
body.is-ticket-reordering .botrow:not(.dragging):hover { background: transparent; }
body.is-ticket-reordering .botlist[data-ticket-bin="lead"] {
  outline: 1px solid var(--brand); outline-offset: -1px;
}
.botrow:hover, .botrow:focus-within { z-index: 40; }
.botrow:hover { background: var(--ui-row-hover); text-decoration: none; color: inherit; }
a.botrow:hover { text-decoration: none; color: inherit; }
/* The low-priority rows that stay on the page, in the SAME type as the rows above them.
   They used to shrink — smaller title, smaller subtitle, smaller tag, tighter padding — so a
   list ordered by priority rendered as a pyramid: each row a little smaller than the last, and
   the eye read the taper as the point rather than the order. One row height, one type scale,
   one tag size; priority is already said by the P0/P1/P3 tag and by the order itself, and
   saying it a third time in font size costs the list its grid.
   Colour still separates them, because that is the part that does not distort the layout.
   Fade the cells, never the row: opacity on `.botrow` made the hover card see-through
   and the tickets underneath printed through PROBLEM / NEXT. */
.botrow-quiet .botrow-title { color: var(--ui-ink-muted); }
.botrow-quiet .tag { opacity: 0.7; }
.botrow-quiet .botrow-src { opacity: 0.7; }
.botrow-quiet .mono { opacity: 0.7; }
.botrow-quiet:hover .tag, .botrow-quiet:hover .botrow-src, .botrow-quiet:hover .mono { opacity: 1; }
/* The tag column: priority first, then who reported it. The provider marks live HERE, on
   the side with room around them, rather than jammed into the subtitle where they were
   glyph-soup against the text. A reader scans this column for "is this mine" and
   "who said so" without reading a word. */
.botrow-tags { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.botrow-src { display: inline-flex; align-items: center; gap: 5px; }
.botrow-src .ig-mark { width: 14px; height: 14px; opacity: .75; }
/* The title is the only column allowed to shrink, so a long PR title truncates instead
   of shoving the number off the row. */
.botrow-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--ui-ink-strong); }
.botrow-title > span { min-width: 0; }
.botrow-sub { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); margin-top: 2px; }
.botrow-num { font-size: var(--bkz-text-sm); color: var(--bkz-success-ink); }
.botrow > .mono { flex: none; color: var(--ui-ink-faint); }
.botrow > .tag-live { flex: none; justify-self: end; }

/* ---------- investigation phases ----------
   The run drawn as its steps, on the same --ui-* tokens and the same square geometry as
   everything else. It replaces a 10-second whole-page meta refresh, which was the only
   liveness this page had: ten seconds of nothing against a job that changes state five
   times, and a scroll position thrown away on every tick.

   The rail down the left is one border on the <ol>, not a border per row — a per-row rule
   leaves a hairline gap at every join that reads as a dashed line at some zoom levels. */
.inv-phases { margin: 14px 0 0; }
.phases { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--ui-border); }
.ph { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; position: relative; }
/* The dot sits ON the rail, so the list reads as a sequence rather than as bullets. */
.ph-dot {
  position: absolute; left: -24px; top: 5px; flex: none;
  font: 600 13px/1 var(--bkz-font-mono); color: var(--ui-ink-faint);
}
.ph-dot::before { content: "\2022"; }
.ph-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ph-took { margin-left: 8px; font-size: var(--bkz-text-2xs); color: var(--ui-ink-faint); font-family: var(--bkz-font-mono); }
.ph-label { font-size: var(--bkz-text-base); color: var(--ui-ink-muted); }
.ph-detail { font-size: var(--bkz-text-sm); color: var(--ui-ink-faint); overflow-wrap: anywhere; }
.ph-logs { margin-top: 6px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); }
.ph-logs > summary { cursor: var(--cursor-mark); padding: 8px 10px; font-size: var(--bkz-text-sm);
  color: var(--ui-ink-body); user-select: none; }
.ph-logs[open] > summary { border-bottom: 1px solid var(--ui-border); }
.ph-log { padding: 10px 12px; border-top: 1px solid var(--ui-border); }
.ph-log:first-of-type { border-top: 0; }
.ph-log-src { margin: 0 0 4px; font-size: var(--bkz-text-sm); overflow-wrap: anywhere; }
.ph-log-why, .ph-log-q { margin: 0 0 6px; font-size: var(--bkz-text-sm); color: var(--ui-ink-faint); }
.ph-log-body { margin: 0; padding: 10px; max-height: 32rem; overflow: auto;
  font-family: var(--bkz-font-mono); font-size: var(--bkz-text-xs); line-height: 1.45;
  white-space: pre-wrap; overflow-wrap: anywhere; background: var(--ui-sunk);
  border-radius: var(--bkz-radius-sm); color: var(--ui-ink-body); }

/* Four states, each carrying a colour the interface already uses for that meaning. Pending
   is deliberately the quietest thing on the page: it is the majority of the list for most of
   the run, and a queue of bright grey rows would out-shout the one step actually working. */
.ph-pending .ph-label { color: var(--ui-ink-faint); }
.ph-running .ph-label { color: var(--ui-ink-strong); }
.ph-running .ph-dot { color: var(--bkz-blue-link); animation: dot-breathe 1.4s ease-in-out infinite; }
.ph-done .ph-label { color: var(--ui-ink-body); }
.ph-done .ph-dot { color: var(--bkz-success-ink); }
.ph-failed .ph-label { color: var(--bkz-danger-ink); }
.ph-failed .ph-detail { color: var(--bkz-danger-ink); opacity: .85; }
.ph-failed .ph-dot { border-color: var(--bkz-danger-border); background: var(--bkz-danger-ink); }
.ph-skipped .ph-label { color: var(--ui-ink-faint); }
.ph-skipped .ph-dot { background: transparent; }

@media (prefers-reduced-motion: reduce) { .ph-running .ph-dot { animation: none; } }

/* ---------- the six stages ----------
   The steps above are the implementation; these are the pipeline. One stage is open at a
   time — the one that is running — so the page shows one thing rather than thirteen equal
   rows, and every other stage collapses to its number, its name and its verdict.

   Numbers rather than dots at this level: a stage is a position in a sequence a reader is
   meant to hold in their head ("we are on 4 of 6"), and a dot cannot say which one. */
.stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stg { border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); background: var(--ui-surface); }
.stg-row, .stg-fold > summary {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  user-select: none;
}
.stg-fold > summary {
  cursor: var(--cursor-mark); list-style: none;
}
.stg-fold > summary::-webkit-details-marker { display: none; }
.stg-n {
  flex: none; width: 22px; height: 22px; display: grid; place-items: center;
  border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-sm);
  font-family: var(--bkz-font-mono); font-size: var(--bkz-text-xs); color: var(--ui-ink-faint);
}
.stg-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.stg-label { font-size: var(--bkz-text-base); color: var(--ui-ink-muted); }
.stg-detail { font-size: var(--bkz-text-sm); color: var(--ui-ink-faint); overflow-wrap: anywhere; }
.stg-mark { flex: none; font-size: var(--bkz-text-sm); color: var(--ui-ink-faint); }
.stg-sub { margin: 0 12px 10px 46px; font-size: var(--bkz-text-sm); color: var(--ui-ink-faint); }
.stg-none { margin: 0 12px 12px 46px; font-size: var(--bkz-text-sm); color: var(--ui-ink-faint); }
.stg-fold > .phases { margin: 0 12px 12px 46px; }

/* The same five meanings the steps carry, one level up. A running stage is the only thing on
   the page allowed to be loud: it is what the reader is waiting for. */
.stg-running { border-color: var(--bkz-blue-link); }
.stg-running .stg-label { color: var(--ui-ink-strong); }
.stg-running .stg-n { border-color: var(--bkz-blue-link); color: var(--bkz-blue-link); }
.stg-done .stg-label { color: var(--ui-ink-body); }
.stg-done .stg-mark { color: var(--bkz-success-ink); }
.stg-done .stg-n { border-color: var(--bkz-success-border); }
.stg-failed { border-color: var(--bkz-danger-border); background: var(--bkz-danger-tint); }
.stg-failed .stg-label, .stg-failed .stg-mark, .stg-failed .stg-n { color: var(--bkz-danger-ink); }
.stg-failed .stg-n { border-color: var(--bkz-danger-border); }
.stg-pending .stg-label, .stg-skipped .stg-label { color: var(--ui-ink-faint); }

/* ---------- what a step was fed ----------
   Closed by default and one per step. This is the fold that answers "why did it say that",
   and the answer is almost always the prompt — so the prompt is here, in full, in the mono
   face, scrolling inside its own box rather than pushing the run off the screen. */
.ph-meta { margin-top: 6px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); }
.ph-meta > summary { cursor: var(--cursor-mark); padding: 6px 10px; font-size: var(--bkz-text-sm);
  color: var(--ui-ink-faint); user-select: none; }
.ph-meta[open] > summary { border-bottom: 1px solid var(--ui-border); color: var(--ui-ink-body); }
.ph-in { padding: 8px 10px; border-top: 1px solid var(--ui-border); }
.ph-in:first-of-type { border-top: 0; }
.ph-in-l { margin: 0 0 4px; font-size: var(--bkz-text-sm); color: var(--ui-ink-body); }
.ph-in-n { margin-left: 8px; font-size: var(--bkz-text-xs); color: var(--ui-ink-faint); }
.ph-in-v { margin: 0; padding: 10px; max-height: 26rem; overflow: auto;
  font-family: var(--bkz-font-mono); font-size: var(--bkz-text-xs); line-height: 1.45;
  white-space: pre-wrap; overflow-wrap: anywhere; background: var(--ui-sunk);
  border-radius: var(--bkz-radius-sm); color: var(--ui-ink-body); }
.ph-chain { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.ph-chain li { font-size: var(--bkz-text-sm); line-height: 1.4; color: var(--ui-ink-body); }
.ph-chain .tag { margin-right: 6px; }
.ph-chain .muted { margin-left: 4px; font-size: var(--bkz-text-xs); }

/* Why it failed, in prose rather than in the badge's uppercase mono — one line per lens is
   the difference between a page that says the work did not happen and one that says which
   provider refused, which is the only version anybody can act on. */
.inv-why { margin: 0; font-size: var(--bkz-text-base); line-height: 20px;
  color: var(--ui-ink-muted); max-width: 60rem; overflow-wrap: anywhere; }

/* The one action a failed dossier has. Sits under the error it answers. */
.inv-retry { margin: 0; }
/* The way out of an unfinished run. Quiet — it sits under a status line, not under a
   conclusion, and it undoes rather than does. */
.inv-cancel { margin: 12px 0 0; }

/* The fold over the corroboration. The report leads with its conclusion; everything a sceptic
   wants sits behind this, one hinge rather than one per panel — five collapsed panels trade a
   wall of text for a wall of triangles. */
.inv-deep, .inv-thought-log { margin-top: 8px; }
.inv-deep + .inv-deep { margin-top: 8px; }
.inv-deep > summary, .inv-thought-log > summary { list-style: none; cursor: var(--cursor-mark);
  padding: 11px 14px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md);
  background: var(--ui-surface); color: var(--ui-ink-muted);
  font-size: var(--bkz-text-sm); font-weight: 500; user-select: none; }
/* The investigation page's leftover folds: one card, hairlines, a row's padding.
   `.inv-body` already gaps 28px between children, so unwrapped `.inv-deep`s floated
   on the grid with a second 8px of their own. */
.inv-appendix {
  display: flex; flex-direction: column;
  border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md);
  background: var(--ui-surface); overflow: hidden;
}
.inv-appendix > .inv-deep,
.inv-appendix > .inv-thought-log { margin: 0; }
.inv-appendix > .inv-deep + .inv-deep,
.inv-appendix > .inv-deep + .inv-thought-log { border-top: 1px solid var(--bkz-border-hairline); }
.inv-appendix > .inv-deep > summary,
.inv-appendix > .inv-thought-log > summary {
  padding: 12px 16px; border: 0; border-radius: 0; background: transparent;
}
.inv-appendix > .inv-deep[open] > summary,
.inv-appendix > .inv-thought-log[open] > summary {
  margin-bottom: 0; border-bottom: 1px solid var(--bkz-border-hairline);
}
.inv-appendix > .inv-deep[open] > :not(summary),
.inv-appendix > .inv-thought-log[open] > :not(summary) { padding: 14px 16px 16px; }
.inv-deep > summary::-webkit-details-marker,
.inv-thought-log > summary::-webkit-details-marker { display: none; }
.inv-deep > summary::before, .inv-thought-log > summary::before { content: '▸ '; color: var(--ui-ink-faint); }
.inv-deep[open] > summary::before, .inv-thought-log[open] > summary::before { content: '▾ '; }
.inv-deep > summary:hover, .inv-thought-log > summary:hover { color: var(--ui-ink-strong);
  border-color: var(--ui-border-hover); }
.inv-deep[open] > summary, .inv-thought-log[open] > summary { margin-bottom: 12px; }
/* The write-up and the run log share a row. 12px is the same gutter as .row /
   .page-title-row, so the gap is the page's, not a new one. */
.inv-folds { display: flex; gap: 12px; align-items: flex-start; }
.inv-folds > .inv-deep,
.inv-folds > .inv-thought-log { flex: 1 1 0; min-width: 0; margin-top: 0; }
@media (max-width: 640px) {
  .inv-folds { flex-wrap: wrap; }
  .inv-folds > .inv-deep,
  .inv-folds > .inv-thought-log { flex: 1 1 100%; }
}
.inv-runlog { padding: 4px 14px 16px; }
.inv-runlog > .tbl { margin: 8px 0 14px; }
.inv-thought { margin-top: 10px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); }
.inv-thought > summary { cursor: var(--cursor-mark); padding: 10px 12px; font-size: var(--bkz-text-sm);
  font-weight: 550; color: var(--ui-ink-body); user-select: none; }
.inv-thought > .sub { padding: 0 12px 8px; }
.inv-thought-body { margin: 0; padding: 12px; max-height: 28rem; overflow: auto;
  font-family: var(--bkz-font-mono); font-size: var(--bkz-text-xs); line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere; background: var(--ui-surface);
  border-top: 1px solid var(--ui-border); color: var(--ui-ink-body); }
/* Same rhythm as the run log above it: a subsection label, then the shared tbl. */
.inv-lens { padding: 4px 14px 8px; }
.inv-lens > .sub-h:first-child { margin-top: 4px; }
.inv-lens .tbl { margin: 8px 0 14px; }
.inv-lens-raw { margin: 8px 12px 12px; }
.inv-lens-raw > summary {
  cursor: var(--cursor-mark); font-size: var(--bkz-text-sm);
  color: var(--ui-ink-muted); user-select: none;
}
.inv-lens-raw > summary:hover { color: var(--ui-ink-strong); }
.inv-lens-raw .inv-thought-body { border-top: 0; max-height: 16rem; }

/* The one control on this page that writes to somebody's repository. It sits under the
   reasoning, so the sentence explaining what it will do is part of the control, not a tooltip
   somewhere else. */
/* The button stands off the sentence above it. Sharing the panel's rhythm put it hard against
   the fix text, so the control read as another line of the paragraph rather than as the thing
   the paragraph is asking about. */
/* What the pull request claims, above the change it proposes. Two treatments because they are
   two different asks of a reviewer: a fix asserts a cause and removes it, instrumentation
   asserts nothing and collects evidence — and reading a diff without knowing which is how a
   speculative patch gets merged as a resolution. */
.inv-readiness { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--bkz-radius-md);
  border-left: 2px solid var(--ui-border); background: var(--ui-sunk); }
.inv-readiness-fix { border-left-color: var(--bkz-success-border); }
.inv-readiness-instrumentation { border-left-color: var(--bkz-blue-link, #4da3ff); }
.inv-readiness .sub + .sub { margin-top: 6px; }
/* What would settle it: the probes a run without a cause named, one per line, each a box
   somebody can tick. The command sits in mono beside the question so it can be copied, not
   read — this panel replaces a "Fix" card that used to print the same list as prose. */
.inv-settle { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.inv-settle li { display: flex; flex-direction: column; gap: 3px;
  font-size: var(--bkz-text-md); line-height: 1.5; color: var(--ui-ink-strong); }
.inv-settle-cmd { display: block; padding: 4px 8px; overflow-x: auto;
  white-space: nowrap; font-size: 12px; color: var(--ui-ink); background: var(--ui-sunk);
  border: 1px solid var(--bkz-border-hairline); border-radius: var(--bkz-radius-sm, 6px); }
.inv-sec-act .inv-more { margin: 4px 0 10px; }

.inv-fix { margin: 16px 0 2px; }
.btn-row > .inv-fix,
.btn-row > .inv-retry { display: flex; margin: 0; }
.inv-open { display: inline-flex; flex-wrap: nowrap; align-items: stretch; gap: 0;
  margin: 12px 0 2px; overflow: hidden;
  border: 1px solid var(--bkz-success-border); border-radius: var(--bkz-radius-md);
  background: var(--bkz-success-tint); }
.inv-open .tag { margin: 0; border: 0; border-radius: 0; background: transparent;
  padding: 7px 12px; letter-spacing: 0.04em; }
.inv-open .btn { margin: 0; border: 0; border-radius: 0;
  border-left: 1px solid var(--bkz-success-border);
  background: var(--ui-glass-solid); text-decoration: none; }
.inv-open .btn:hover { background: var(--ui-accent-btn); color: var(--ui-on-accent);
  border-left-color: transparent; }
/* A refusal sits with the control that was refused, in the colour the interface already uses
   for "this did not happen" — a decline rendered in body text reads as more instructions. */
.inv-refused { color: var(--bkz-danger-ink); margin-top: 12px; }
/* Explain-this: the floating button that follows a selection, and the panel it opens. */
.inv-explain-btn { position: absolute; z-index: 60; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--ui-border-hover); background: var(--ui-glass-solid);
  backdrop-filter: blur(8px); color: var(--ui-ink-strong); font-size: var(--bkz-text-sm);
  cursor: var(--cursor-mark); box-shadow: var(--bkz-shadow-menu-rail); }
.inv-explain-btn:hover { border-color: var(--brand); }
.inv-explain { position: fixed; z-index: 61; right: 24px; bottom: 24px; width: min(420px, calc(100vw - 48px));
  max-height: min(60vh, 560px); overflow-y: auto; padding: 14px 16px;
  border-radius: var(--bkz-radius-3xl); border: 1px solid var(--ui-glass-border-solid);
  background: var(--ui-glass-solid); backdrop-filter: blur(14px);
  box-shadow: var(--bkz-shadow-menu-rail); }
.inv-explain-h { display: flex; align-items: center; justify-content: space-between;
  font-size: var(--bkz-text-sm); color: var(--ui-ink-faint); letter-spacing: 0.04em;
  text-transform: uppercase; }
.inv-explain-x { background: none; border: 0; color: var(--ui-ink-faint); font-size: 18px;
  line-height: 1; cursor: var(--cursor-mark); padding: 0 2px; }
.inv-explain-x:hover { color: var(--ui-ink-strong); }
/* The selection, quoted back, so the answer is never read against the wrong sentence. */
.inv-explain-q { margin: 10px 0; padding-left: 10px; border-left: 2px solid var(--ui-border-hover);
  color: var(--ui-ink-muted); font-size: var(--bkz-text-sm); line-height: 1.5; }
.inv-explain-a { font-size: var(--bkz-text-md); line-height: 1.6; color: var(--ui-ink-strong);
  white-space: pre-wrap; }
.inv-explain-no { color: var(--bkz-danger-ink); }
@media (prefers-reduced-motion: no-preference) {
  .inv-explain { animation: inv-explain-in 140ms ease-out; }
}
@keyframes inv-explain-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* What the button just did, said next to the button. */
.inv-said { margin-top: 10px; color: var(--ui-ink-muted); }

/* Long dossier prose: paragraphs that were one block, now one per enumerated step. The gap is
   what makes a numbered sequence scannable — finding "(2)" used to mean reading for a bracket. */
.inv-body .panel .sub + .sub { margin-top: 18px; }
.inv-step-n {
  display: inline-block; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ui-ink-strong); margin-right: 2px;
}
.inv-step-t { font-weight: 600; letter-spacing: 0.02em; color: var(--ui-ink-strong); }
/* Blast radius and the naive fix are context under the thing they qualify, not a second
   recommendation — set back, and separated by a rule rather than by more space alone. */
.inv-touches { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bkz-border-hairline); }
.inv-touches .sub { color: var(--ui-ink-faint); }
/* A file reference inside prose. Set in the anchor face so a path reads as a location rather
   than as words, and never breaks across lines mid-path. Radius is literal: the skin zeros
   the radius tokens, and these chips need a corner to read as chips. */
.inv-body code.mono, .inv-anchor code.mono, .kb-says code.mono {
  font-size: 0.95em; white-space: nowrap; line-height: 1.15;
  padding: 0 5px; border-radius: 4px; vertical-align: baseline;
  background: rgba(255, 255, 255, 0.12); color: var(--ui-ink-strong);
}
/* A shell line in the Fix card. The chip rule above is nowrap on purpose — a path
   must not break mid-token — and that same rule stretched the page to the length of
   a `psql` invocation. Commands are a block, wrap, and stay inside the card. */
.inv-body code.mono.inv-cmd, .kb-says code.mono.inv-cmd {
  display: block; width: 100%; max-width: 100%; box-sizing: border-box;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
  margin: 10px 0; padding: 10px 12px; line-height: 1.5;
  background: var(--ui-sunk);
}
.inv-sec-fix, .inv-sec-fix .sub, .kb-say-b, .kb-say-b .sub { min-width: 0; max-width: 100%; }
:root[data-theme="light"] .inv-body code.mono,
:root[data-theme="light"] .inv-anchor code.mono {
  background: rgba(23, 23, 23, 0.09);
}

/* A rail section that is one link, not a labelled list. The Repositories section earns its
   label because it holds many rows that need a heading; a single destination with a heading
   over it is a heading saying the same word twice. */
.sb-section-flat { flex: none; padding-bottom: 0; }
.inv-fix .sub { margin-top: 9px; }

/* ---------- support queue ----------
   Same bones as .botlist/.botrow above — bordered list, hairline dividers, --ui-* tokens,
   square geometry — with the columns this page actually has. The old markup had none: its
   one class (.ig-inline) was styled nowhere, so the select and the button flowed as inline
   text and landed at whatever vertical position the error string above them happened to end
   at. Every complaint about this page came out of that single missing rule. */
.sq { display: flex; flex-direction: column; border: 1px solid var(--ui-border); background: var(--ui-surface); }
.sq > * + * { border-top: 1px solid var(--bkz-border-hairline); }

/* The action column is fixed so the buttons form a line down the page rather than a set of
   positions that move with the length of each error. The ticket column is the only one
   allowed to shrink. */
.sq-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 200px) 160px;
  gap: 14px; align-items: center; padding: 11px 14px;
  transition: background .12s ease;
}
.sq-row:not(.sq-head):hover { background: var(--ui-row-hover); }

/* A ticket somebody has already spent five model calls on.
   Marked down the left edge rather than tinted across the row: these sort to the top, so the
   band draws one continuous line beside the finished block and stops where the unstarted work
   begins — the boundary between "decide this" and "start this" becomes a thing you see instead
   of a thing you count. Padding compensates for the border so no text shifts. */
/* Dismiss. Housekeeping, not an alternative to Investigate — so it is a mark rather than a
   second button, and it stays out of the way until the row is under the pointer. It remains
   reachable by keyboard at all times: hiding a control from focus is hiding it from anyone who
   does not use a mouse. */
/* Moving. A dot that breathes beside the word — the same liveness the investigation page's
   running phase uses, so "something is happening here" reads the same in both places. */
.tag-live { color: var(--bkz-blue-link, #4da3ff);
  border-color: color-mix(in srgb, var(--bkz-blue-link, #4da3ff) 62%, #131211);
  background: color-mix(in srgb, var(--bkz-blue-link, #4da3ff) 16%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--bkz-blue-link, #4da3ff) 18%, transparent); }
.tag-pulse { display: inline-block; width: auto; height: auto; margin-left: 4px; border-radius: 0; background: none;
  font: 600 11px/1 var(--bkz-font-mono); animation: dot-breathe 1.4s ease-in-out infinite; }
.tag-pulse::before { content: "\2022"; }
@media (prefers-reduced-motion: reduce) { .tag-pulse { animation: none; } }
/* Not started: the quietest thing in the row. It is the majority state on a full queue, and a
   queue where every row shouts its own status is one nobody can scan for the one that moved. */
.tag-idle { color: var(--ui-ink-faint); border-color: var(--bkz-border-hairline); }

/* The queue's automation panel. It borrows `.set-list` and `.srow` wholesale from Settings —
   a second visual language for the same kind of control is how one product starts looking like
   two — and adds only the spacing that puts it between the page's sentence and the work. */
.q-form { margin: 0 0 26px; }
.q-form .set-sec-h { align-items: center; }
.q-form .srow-s { max-width: 68ch; }
/* The switchboard's one deliberate write, and it belongs to this panel rather than to the
   page: six controls read together and changed together earn a button, not six silent saves.
   Sits OUTSIDE `.set-list` so the list keeps its own rounded edge, and takes the list's own
   16px inset so the button's left edge lines up with the labels above it. */
.q-save { display: flex; align-items: center; gap: 12px; padding: 14px 16px 2px; }
.sq-dismiss { display: inline-flex; margin: 0; }
.sq-x { border: 0; background: none; cursor: pointer; padding: 2px 6px; margin-left: 6px;
  border-radius: var(--bkz-radius-sm); color: var(--ui-ink-faint);
  font-size: var(--bkz-text-md); line-height: 1; opacity: 0; transition: opacity .12s ease, color .12s ease; }
.sq-row:hover .sq-x, .sq-x:focus-visible { opacity: 1; }
.sq-x:hover { color: var(--bkz-danger-ink); background: var(--ui-tint-5); }
@media (hover: none) { .sq-x { opacity: 1; } }
.sq-row-done { border-left: 2px solid var(--bkz-success-border); padding-left: 12px; }
/* The whole row is the link. The overlay covers the row and sits UNDER the real controls, so
   the button and the dismiss × keep their own clicks; it is aria-hidden and untabbable because
   the button beside it is the accessible name for the same destination — two tab stops to one
   place is noise for anyone navigating by keyboard. */
.sq-row-open { position: relative; cursor: pointer; }
.sq-rowlink { position: absolute; inset: 0; z-index: 0; }
.sq-row-open > *:not(.sq-rowlink) { position: relative; z-index: 1; }
.sq-row-open:hover .sq-title { color: var(--ui-ink-strong); }
.sq-row-done .sq-title { color: var(--ui-ink-body); }
.sq-head {
  background: var(--ui-sunk); font-size: var(--bkz-text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ui-ink-muted);
  padding-top: 7px; padding-bottom: 7px;
}

.sq-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* Two lines, hard. One Postgres constraint violation is otherwise six lines tall and owns
   the viewport; the full string stays in the DOM and on the element's title, so the clamp
   costs nothing but height. */
.sq-title {
  margin: 0; font-size: var(--bkz-text-base); line-height: 20px; color: var(--ui-ink-body);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
/* The class name is the landmark the eye runs down the column against, so it carries the
   weight and the strong ink; the message it introduces is body text. */
.sq-type { color: var(--ui-ink-strong); font-weight: 600; }
/* The colon the title already had, kept so the split changes the WEIGHT of the two halves
   and not the sentence. */
.sq-type + .sq-detail::before { content: ': '; color: var(--ui-ink-faint); }
/* A ticket with no error class has no landmark to demote against, so its own text becomes
   the primary. `.sq-title` itself is never :only-child — `.sq-meta` is its sibling. */
.sq-detail:only-child { color: var(--ui-ink-strong); }

.sq-meta { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); }
.sq-meta .tag { flex: none; }

/* Left-aligned so the repository names form their own line down the page; the action column
   is the one that hugs the right edge. Two vertical lines, both predictable. */
.sq-repo { min-width: 0; justify-self: start; }
.sq-repo-name { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }

.sq-act { justify-self: end; display: flex; align-items: center; }
.sq-act .btn { white-space: nowrap; }
/* The form spans two grid columns without becoming a box between them. */
.sq-form { display: contents; }

/* Narrow: the ticket takes the full width and the two controls share the line beneath it,
   repository left and action right — the same left/right relationship the wide layout has,
   folded rather than restacked into three separate rows. */
@media (max-width: 880px) {
  .sq-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .sq-main { grid-column: 1 / -1; }
  .sq-head { display: none; }
  .sq-repo { justify-self: start; }
  .sq-act { justify-self: end; }
}

/* ---------- headline counts ---------- */
.tot-row { display: flex; flex-wrap: wrap; gap: 28px; margin: 4px 0 20px; }
.tot { display: flex; flex-direction: column; gap: 2px; }
/* The number and its label were rendering as one word — they are separate lines. */
.tot b { font-size: var(--bkz-text-xl, 22px); font-weight: 600; line-height: 1.15; color: var(--ui-ink-strong); }
.tot .muted { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.lgood { color: var(--bkz-success-ink); }

/* ---------- tag tones ----------
   `.tag` existed; none of its tones did, so "ours", "open" and "draft" were the same
   grey and the badge carried no information at a glance. */
.tag-ok { border-color: var(--bkz-success-border); background: var(--bkz-success-tint); color: var(--bkz-success-ink); }
.tag-warn { border-color: var(--ui-warn-border); background: var(--bkz-warn-tint); color: var(--bkz-warn-ink); }
.tag-bad { border-color: var(--bkz-danger-border); background: var(--bkz-danger-tint); color: var(--bkz-danger-ink); }

/* ---------------------------------------------- dead-code PRs: filter row and number strip */

/* Right-aligned: these controls narrow what is below them, and a filter that reads before
   the thing it filters invites you to set it before you know what you are setting. */
/* Lives in the repo header beside the tab strip, so one setting governs every tab rather
   than each page keeping its own idea of the range. `margin-left:auto` is what pushes it
   to the right edge of .subnav-row without the row needing to know it is there. */
.cl-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.cl-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: var(--bkz-radius-md);
  border: 1px solid var(--ui-border); background: var(--ui-surface); color: var(--ui-ink-body);
  font-size: var(--bkz-text-base); line-height: 1.2; cursor: pointer; transition: border-color var(--bkz-duration-base) var(--bkz-ease-settle); }
.cl-pill:hover:not(:disabled) { border-color: var(--ui-border-hover); }
.cl-pill:disabled { opacity: .5; cursor: default; }
.cl-pill svg { flex: none; color: var(--ui-ink-faint); }
/* The filter row as a SET: three selects at one width, the two actions grouped right.
   Auto-sized pills made five differently-sized boxes out of one control surface. */
.cl-filter { flex: 0 1 200px; min-width: 168px; }

/* The analytics filter row has a line to itself, so the auto margin above — which exists to
   push the lone Wiki pill to the right of the tab row it shares — only served to bunch five
   controls against the right edge with the row's whole width empty beside them. It spans.
   The two open-ended choosers hold repository and author names of any length, so they take
   the slack; the range, Apply and Export stay the width of the words in them. */
.cl-toolbar.cl-filters { margin-left: 0; width: 100%; }
.cl-filters .cl-grow { flex: 1 1 12rem; min-width: 0; }

/* One panel, not four cards: the numbers are read across as a sentence about this repo,
   and borders between them break the line the eye is already following. */
.cl-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  padding: 18px 22px; margin: 0 0 16px; border-radius: var(--bkz-radius-2xl);
  border: 1px solid var(--ui-glass-border); background: var(--ui-glass-bg); box-shadow: var(--ui-shadow); }
.cl-metric { min-width: 0; }
.cl-k { display: block; font-size: var(--bkz-text-base); color: var(--ui-ink-muted); margin-bottom: 6px; }
.cl-v { display: block; font-size: var(--bkz-text-5xl); font-weight: 650; letter-spacing: -0.025em; color: var(--ui-ink-strong); line-height: 1.1; }
.cl-hero .cl-v { color: var(--bkz-success-ink); }
.cl-note { display: block; margin-top: 5px; font-size: var(--bkz-text-sm); color: var(--ui-ink-faint); }


@media (max-width: 900px) {
  .cl-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .subnav-row { flex-wrap: wrap; }
  .cl-toolbar { margin-left: 0; }
}

/* The "/6" on Evidence: a denominator, not a second number — it must not compete with the
   count for attention, or the tile reads as two figures instead of one fraction. */
.stc-of { font-size: 0.5em; font-weight: 500; color: var(--ui-ink-faint); letter-spacing: 0; margin-left: 1px; }

/* Bugs are not a success figure and not a brand figure — they are a caution one. Reuses the
   danger ink the revert copy already uses, so "came back" and "bugs found" read as the same
   register rather than inventing a third. */
.stc-n.warn { color: var(--bkz-danger-ink); }

/* The per-repository line under a chart. One row today — this is a single-repo view — but it
   keeps the shape the hosted dashboard uses, where the same panel lists several. */
.panel-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bkz-border-hairline); }
.panel-foot .muted { display: block; font-size: var(--bkz-text-sm); margin-bottom: 8px; }
.panel-foot .hrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* A row-shaped placeholder while the GitHub feed is in flight. The list keeps its height and
   rhythm, so the page arrives once and fills in, rather than arriving twice. */
.botrow-skel { min-height: 46px; background: linear-gradient(90deg, var(--ui-hover) 25%, var(--ui-trough) 37%, var(--ui-hover) 63%);
  background-size: 400% 100%; animation: botskel 1.4s ease-in-out infinite; border-radius: var(--bkz-radius-md); }
@keyframes botskel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .botrow-skel { animation: none; } }

/* Card-shaped placeholder for a pull request still being fetched. Same purpose as
   .botrow-skel: hold the shape so the page does not assert emptiness it has not verified. */
.pr-skel { min-height: 132px; background: linear-gradient(90deg, var(--ui-hover) 25%, var(--ui-trough) 37%, var(--ui-hover) 63%);
  background-size: 400% 100%; animation: botskel 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pr-skel { animation: none; } }

/* ---------- auth: the split landing (signInPage) ----------
   Left half signs in; right half is the product's own pitch drawn rather than said — a
   reachability map with one unreachable island, on the Horizon family's always-dark shell
   (--au-*), which deliberately does not follow the light theme: it is a picture, not a
   surface. The form column reuses the auth2-* controls verbatim so the card stays one
   design system; everything new is namespaced as-*. */
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh; min-height: 100dvh; background: var(--bkz-bg); }

/* ── The stage ────────────────────────────────────────────────────────────────
   Landing and sign-in are two states of one surface, not two pages. The ASCII field spans the
   whole stage and never moves; the form panel is an opaque overlay that slides in over its left
   half, which is why the end state is pixel-identical to the split layout this replaced while
   nothing about the mark re-renders on the way there. */
/* `dvh` after `vh`, not instead of it: on a phone `100vh` is the viewport with the URL bar
   RETRACTED, so a stage sized by it stands taller than the screen actually showing it and the
   bottom of a full-height layout — here the button — sits under the browser's own chrome until
   you scroll. `dvh` is the height on screen right now; the `vh` line stays first as the value
   anything without `dvh` falls back to. */
.as-stage { position: relative; grid-column: 1 / -1;
  min-height: 100vh; min-height: 100dvh; overflow: hidden; }
/* The field never moves or resizes — the MARK re-centres instead, eased in JS at the field's own
   frame rate.
   
   This used to animate `left`, which is a layout property: every frame of the slide forced a
   reflow, which fired the ResizeObserver, which rebuilt the entire character field on the main
   thread. The panel's transform is composited and could have run at the display's rate; it was
   stuttering because the thread was busy re-rendering ASCII sixty times a second. Nothing here
   animates now, so the slide has the thread to itself. */
.as-stage .as-visual { position: absolute; inset: 0; border-left: 0; }
/* A quarter for the form, three quarters for the field. Stated as a fraction, not a pixel cap:
   `min(50%, 620px)` was half on a laptop and a strip on a wide display, so the split depended on
   the monitor. ascii.js reads this width off the element to decide how far the mark re-centres,
   so the two no longer have to be kept in step by hand. */
.as-stage .as-pane { position: absolute; inset: 0 auto 0 0; width: 25%;
  /* 430 for the card plus the pane's own 20px either side, and never wider than the screen.
     A flat `420px` was narrower than the card it exists to hold, so on every window under
     ~1880px (where 25% is still below the floor) the card hung 50px out over the field, past
     the pane's own right border. */
  min-width: min(470px, 100%);
  background-color: var(--bkz-bg); border-right: 1px solid var(--grid-rail);
  transform: translateX(-101%); transition: transform 620ms cubic-bezier(.16, .84, .28, 1); }
/* The card measures itself against `100vw` — right where it was written, in the centred `auth2`
   chrome, where the card IS the page. Here it is a grid item in a fixed-width column, and the
   viewport says nothing about how much room that column has. `100%` is the pane's content box,
   which is the box it actually has to fit inside. (It also drops the scrollbar's width out of
   the sum, which is the other half of why this only showed up on some browsers.) */
.as-stage .as-pane .auth2-card { width: min(430px, 100%); }
.as-stage .as-pane-invite { width: min(40%, 680px); min-width: min(640px, 100%); }
.as-stage .as-pane .auth2-card-invite { width: min(560px, 100%); }
.as-stage.is-open .as-pane { transform: translateX(0); }
.auth2-card-invite { width: min(560px, calc(100vw - 48px)); padding: 36px 40px 32px; border-radius: 4px; }
.auth2-card-invite .auth2-brand { margin-bottom: 28px; }
.auth2-card-invite .auth2-h1 { margin: 6px 0 0; font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.03em; }
.auth2-card-invite .auth2-lede { margin-top: 18px; max-width: 36em; }
.auth2-card-invite .auth2-primary { margin-top: 28px; width: 100%; }
.invite-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin: 28px 0 0;
  padding: 16px 0; border-top: 1px solid var(--ui-border); border-bottom: 1px solid var(--ui-border); }
.invite-meta dt { margin: 0 0 6px; font: 500 10.5px/1 var(--bkz-font-mono);
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ui-ink-muted); }
.invite-meta dd { margin: 0; font-size: var(--bkz-text-lg, 1.05rem); font-weight: 600;
  color: var(--ui-ink-strong); overflow-wrap: anywhere; }
.invite-meta dd.mono { font-family: var(--bkz-font-mono); font-weight: 500; font-size: var(--bkz-text-base); }
@media (max-width: 560px) {
  .invite-meta { grid-template-columns: 1fr; }
  .auth2-card-invite { padding: 28px 22px 24px; }
}

/* The landing layer. It leaves along its own path — up and out — rather than sliding the way
   the panel arrives, so the two movements read as one gesture instead of a swap. */
/* Two columns with the mark between them: the headline at one edge, the backers at the other,
   the same distance in from each and sharing a vertical centre. */
/* ---------- the arrival ----------
   `as-intro` is on <html> from before the first paint until ascii.js has turned the colours
   over. While it is there the page is the mark and nothing else: everything with words in it
   waits, and the sheet is paper rather than ink so the black mark has something to be black
   against.

   The body background matters as much as the canvas. The canvas paints its own white during
   the intro, but a canvas takes a frame to arrive and the page behind it does not — without
   this the door opens on a black flash and then goes white, which is the effect backwards. */
/* EVERY layer, not the two everybody thinks of.
   The flash survived setting `html` and `body`, and then survived setting `.auth-split` as
   well, because the thing actually on screen was further down again: `.as-visual` paints
   `--au-shell`, a stack of blue radials over a dark navy gradient, and the canvas sits on that
   with its own `#0a0a0a` behind it. Paper has to be true of all four or it is true of nothing
   the reader can see. */
html.as-intro,
html.as-intro body,
html.as-intro .auth-split,
html.as-intro .as-visual,
html.as-intro .as-ascii { background: #f2f2f2; }

/* And the canvas does not fade in during the arrival.
   `.as-ascii` normally eases from 0 to 1 over 900ms once it is ready, which is right for a page
   that is already there and wrong for this one: the canvas IS the arrival, so fading it up
   cross-dissolves the developing mark against the sheet and mushes the one thing worth
   watching. Shown from the first frame instead — which is paper, because of the rule above,
   and then the mark develops on it. */
html.as-intro .as-ascii { opacity: 1; transition: none; }

/* `animation: none` and not just `opacity: 0`, because the landing's parts arrive on `as-rise`
   and a running animation outranks a plain declaration — the first version of this set them to
   zero and watched them rise anyway, the headline ghosting up over the mark for half a second.
   (`.as-stage.is-open` suppresses the same animations the same way, one rule below.)

   Suppressed rather than hidden, so that REMOVING the class is what plays them: swapping
   `animation: none` back to `as-rise` restarts it. The landing does not fade up at the end of
   the arrival, it rises into it, on the animation it already had — one fewer motion invented
   for this and one fewer thing to keep in step with the rest. */
html.as-intro .as-land,
html.as-intro .as-cta,
html.as-intro .as-land-h1,
html.as-intro .as-manifesto,
html.as-intro .as-backers,
html.as-intro .as-pane { animation: none; opacity: 0; }

.as-land { position: absolute; inset: 0; display: grid; align-content: center;
  grid-template-columns: auto auto; justify-content: space-between; align-items: center;
  padding: 0 clamp(56px, 9vw, 168px);
  pointer-events: none; transition: opacity 380ms ease, transform 520ms cubic-bezier(.16, .84, .28, 1); }
.as-land > * { pointer-events: auto; }
.as-stage.is-open .as-land { opacity: 0; transform: translateY(-18px); pointer-events: none; }
.as-stage.is-open .as-land > * { pointer-events: none; }

.as-topbar { position: absolute; z-index: 2; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: flex-end; gap: clamp(20px, 2.5vw, 36px);
  padding: clamp(20px, 3.4vw, 40px) clamp(20px, 3.4vw, 44px);
  isolation: isolate; }
/* Quiet the glyph field only behind the navigation, with no hard-edged plate. */
.as-topbar::before { content: ''; position: absolute; z-index: -1; inset: 0 0 0 auto;
  width: min(460px, 100%); pointer-events: none;
  background: radial-gradient(ellipse at 82% 24%, rgba(10,10,10,.94), rgba(10,10,10,.76) 48%, transparent 82%); }
.as-topbar-link { display: inline-flex; align-items: center; min-height: 38px;
  color: #f2f2f2; font: 600 clamp(14px, 1.1vw, 16px)/1 var(--bkz-font-sans);
  letter-spacing: .01em; text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 1px; white-space: nowrap;
  text-shadow: 0 1px 8px #0a0a0a, 0 1px 2px #0a0a0a;
  transition: color 180ms ease; }
.as-topbar-link:hover, .as-topbar-link:focus-visible { color: #fff; text-decoration-thickness: 2px; }
.as-topbar-link:focus-visible, .as-cta:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* Filled white, and lifted off the field.
   
   An outlined button over a dithered background is one more pattern among thousands — it has to
   be found. Solid white is the only thing on the page that is not the field, so it reads as the
   action without being large. */
.as-cta { position: relative;
  padding: 11px 22px; border: 1px solid #ffffff; border-radius: 2px;
  font: 600 var(--bkz-text-sm)/1 var(--bkz-font-sans); letter-spacing: .005em;
  color: #0a0a0a; text-decoration: none; background: #ffffff;
  box-shadow: 0 2px 22px rgba(0,0,0,.55), 0 0 0 6px rgba(10,10,10,.42);
  transition: transform 180ms cubic-bezier(.16,.84,.28,1), box-shadow 180ms ease, background 180ms ease; }
/* `color` and `text-decoration` restated, because the global `a:hover` rule sets a light ink and
   an underline — on a white button that is white-on-white, and the label disappeared on hover.
   A component that inherits a hover from an element selector will keep losing this argument, so
   it says what it means. */
.as-cta:hover, .as-cta:focus-visible { background: #ffffff; color: #0a0a0a; text-decoration: none;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 30px rgba(0,0,0,.6), 0 0 0 8px rgba(10,10,10,.5); }
.as-cta:active { transform: translateY(0) scale(1.01); }

.as-land-mid { max-width: 22ch; }
.as-land-h1 { margin: 0; font-size: clamp(30px, 4.4vw, 58px); font-weight: 600; line-height: 1.06;
  letter-spacing: -0.03em; color: #f2f2f2;
  /* The headline sits on a field that is bright in places; a shadow rather than a plate keeps
     the ASCII visible through the type instead of punching a rectangle out of it. */
  text-shadow: 0 2px 26px rgba(10,10,10,.92), 0 1px 3px rgba(10,10,10,.9); }

/* Italic, underlined, and the underline is drawn rather than inherited so it can move. On hover
   it sweeps out from the left — a text-decoration cannot be animated, which is the whole reason
   this is a gradient on the background. */
/* The underline is a background gradient, not text-decoration, because a decoration cannot be
   animated — on hover it lifts to two pixels and the text goes to full white. */
/* A soft dark plate behind it, so it stays readable wherever the field happens to be bright.
   Feathered on a pseudo-element rather than a background colour on the button: a hard-edged pill
   over a dithered field reads as a sticker somebody pasted on, and the ask was that it not look
   odd. This has no edge to notice — it fades out before it ends. */
.as-manifesto { display: inline-block; margin-top: 22px; padding: 0 0 3px; border: 0; background: none;
  font: italic 500 clamp(17px, 1.45vw, 21px)/1.4 var(--bkz-font-sans); color: #ffffff;
  cursor: pointer; text-decoration: none; letter-spacing: .015em;
  text-shadow: 0 0 5px #0a0a0a, 0 0 11px #0a0a0a, 0 0 20px rgba(10,10,10,.9), 0 1px 2px #0a0a0a;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 2px;
  transition: color 200ms ease, background-size 260ms cubic-bezier(.16,.84,.28,1); }
/* Shaped to the letters, not a pill behind them. The pill was a visible object — and before that
   an ellipse tall enough to dim the g of "Engineer" above. Stacked text-shadows close a halo
   around each letterform at every angle, so the field shows between the strokes and there is no
   edge anywhere to notice. */
.as-manifesto:hover, .as-manifesto:focus-visible { color: #ffffff; background-size: 100% 3px; }
.as-manifesto[aria-expanded="true"] { color: #ffffff; background-size: 100% 3px; }
.as-manifesto-body { margin-top: 14px; max-width: 46ch;
  font-size: var(--bkz-text-sm); line-height: 1.6; color: rgba(242,242,242,.62);
  text-shadow: 0 1px 14px rgba(10,10,10,.9); }
.as-manifesto-body p { margin: 0 0 8px; }

/* A subtle ground under the block.
   
   The drop-shadow halos give each mark its own edge, which is right, but four white shapes over
   a field that is itself white half the time still read as camouflage from a distance. This sits
   under them at low opacity with a wide blur, so it darkens the area without having a shape of
   its own — the earlier version at .90 with a 14px radius was a visible panel, which is the
   failure in the other direction. */
.as-backers { position: relative; isolation: isolate; text-align: right; padding: 16px 22px 18px; }
.as-backers::before { content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: -6px -10px; border-radius: 20px;
  background: rgba(10,10,10,.55); filter: blur(16px); }
/* No plate. A rounded box behind a column of marks is a blob with a shape of its own, and it
   reads as a panel somebody forgot to remove. `drop-shadow` follows the ALPHA of what it is
   applied to, so each mark and each letter carries its own dark halo and the field stays visible
   between them — the background is shaped like the artwork rather than like a rectangle. */
.as-backers-h { margin: 0 0 18px; font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .16em;
  text-transform: uppercase; color: rgba(242,242,242,.72);
  /* Stacked shadows rather than one: a halo that closes around the letterforms at every angle,
     which a single offset cannot do. */
  text-shadow: 0 0 5px #0a0a0a, 0 0 10px #0a0a0a, 0 1px 2px #0a0a0a; }
/* One height, because the ASSETS are normalised rather than the CSS.
   
   These four are two kinds of thing: Pareto and Z Fellows are plain wordmarks, Pear and
   Collective Global are lockups whose type is a quarter and a third of their own height. No
   single CSS height can make those read alike, which is why brekfuz.com sets four different ones
   (24 / 46 / 27 / 44) and why every attempt to find one here failed.
   
   So the normalisation moved into the images: each is scaled so its TYPE measures the same, then
   centred on a canvas of one shared height. Measured ratios of type to lockup — 1.00, 1.00,
   0.237, 0.309 — are what set the scales. The stylesheet now only has to say one number, and a
   new backer is a normalised asset rather than another exception here.
   
   Regenerate with the snippet in scripts/logo-grid.mjs if a mark changes. */
.as-backers-list { list-style: none; margin: 0; padding: 0;
  display: grid; gap: 6px; justify-items: end; }
.as-backers-list li { display: flex; align-items: center; justify-content: flex-end; }
.as-backers-list img { display: block; height: 58px; width: auto;
  filter: brightness(0) invert(1)
          drop-shadow(0 0 4px rgba(10,10,10,.98)) drop-shadow(0 0 10px rgba(10,10,10,.94));
  opacity: .88; transition: opacity 200ms ease; }
.as-backers-list img:hover { opacity: 1; }
@media (max-width: 1200px) { .as-backers { display: none; } }

/* ── The stage on a narrow screen ──────────────────────────────────────────────
   It is the same surface, not a fallback. What was here hid `.as-land` outright and made the
   pane `position: relative` — two halves of one mistake left over from the two-column layout
   this replaced. The landing layer is absolutely positioned, so a relative pane became the
   only thing giving the stage height, and hiding the landing meant a phone got the sign-in
   card and nothing else: no mark, no headline, no way back. The field is the product's one
   picture; it belongs on the screen most people arrive on. */
@media (max-width: 960px) {
  /* The pane covers the screen rather than a quarter of it, and still slides over a field that
     never re-renders. `min-width` has to come off with the width — a 420px pane on a 390px
     phone is 30px the stage's own `overflow: hidden` throws away, and the button was in it.
     `overflow-y` because an invite card carries a lede and an error carries an alert, and a
     card taller than a short landscape viewport has to be reachable rather than clipped. */
  .as-stage .as-pane { width: 100%; min-width: 0; overflow-y: auto; }

  /* One column, read top to bottom. The headline is set BESIDE the mark on a wide screen and
     that is the only reason it can share the middle with it; in a narrow stage there is no
     column to put it in, and left where it was it lay across the logo's own strokes — on a
     portrait tablet through its left arm, on a short phone through its lower half. A
     text-shadow is for type over the FIELD, not over the mark. So the type stacks under it,
     and ascii.js lifts the mark into the band above (same 960 there — see `measure`). */
  /* Centred, because the mark above it is. On a wide screen the headline is one edge of a
     three-part row and ranging it left is what makes that row read; stacked under a centred
     mark, the same left edge reads as the column having slipped. `text-align` rather than
     `justify-items`, so each row still spans the full width and only its content centres — a
     shrink-wrapped grid item would size to the headline's max-content and push past the
     padding on a narrow phone. */
  .as-land { grid-template-columns: minmax(0, 1fr); justify-content: stretch;
    align-content: end; text-align: center; padding: 0 24px clamp(28px, 9vh, 64px); }
  /* The headline and manifesto become a centred column beneath the mark. */
  .as-land-mid { max-width: none; display: flex; flex-direction: column; align-items: center; }
  .as-land-h1 { font-size: clamp(32px, 7vw, 48px); }
  .as-topbar { gap: 16px; padding: 20px; }
  .as-topbar-link { font-size: 14px; }
  .as-cta { width: auto; max-width: none; margin: 0; padding: 11px 15px; font-size: var(--bkz-text-sm); }
}
@media (prefers-reduced-motion: reduce) {
  .as-stage .as-pane, .as-land, .as-manifesto { transition: none; }
  .oss-intro, .oss, .oss-flash, .oss-card, .oss-card-logo, .oss-card-title { transition: none; }
  .oss-card, .oss-more { animation: none; }
}
/* A 44px touch target for the remaining manifesto link beneath the headline. */
@media (max-width: 960px) {
  .as-manifesto { position: relative; margin-top: 20px; font-size: 19px; }
  .as-manifesto::before { content: ''; position: absolute; inset: -8px -12px; }
}
/* Keep the link clear of the mark on short landscape phones. */
@media (max-width: 960px) and (max-height: 500px) {
  .as-manifesto { margin-top: 12px; }
}
.as-pane { display: grid; place-items: center; padding: 48px 20px;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 168px 168px; background-position: center top; }
/* Back to the landing. Only reachable once the panel is in, and it leaves with it, so it never
   sits on the landing state offering to close something that is not open. */
.as-back { position: absolute; top: clamp(20px, 3.4vw, 40px); left: clamp(20px, 3.4vw, 44px);
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px;
  border: 1px solid transparent; border-radius: 2px; background: none; cursor: pointer;
  font: 500 var(--bkz-text-sm)/1 var(--bkz-font-sans); color: var(--ui-ink-muted);
  opacity: 0; transform: translateX(-6px); pointer-events: none;
  transition: opacity 260ms ease 220ms, transform 260ms ease 220ms, color 160ms ease, border-color 160ms ease; }
.as-stage.is-open .as-back { opacity: 1; transform: translateX(0); pointer-events: auto; }
.as-back:hover, .as-back:focus-visible { color: var(--ui-ink-body); border-color: var(--grid-rail); }
.as-back span { font-size: 15px; line-height: 1; }

.as-idp { margin-top: 12px; }
.as-idp svg { width: 17px; height: 17px; flex: none; }
/* Scope line under the GitHub door. `.sub` has no global type, so this inherited
   the button's size and ink and sat flush against it. */
.as-idp + .sub { margin-top: 20px; font-size: var(--bkz-text-xs); font-weight: 400;
  line-height: 1.45; color: var(--ui-ink-faint); }
.as-switch { margin-top: 16px; text-align: center; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.as-switch a { color: var(--bkz-blue-link); }
.as-next { margin-top: 10px; text-align: center; font-size: var(--bkz-text-xs); color: var(--ui-ink-faint); }

/* ── The manifesto ────────────────────────────────────────────────────────────
   Four clauses on the dark field, sized to one viewport. The paper sheet lasted one review —
   wrong for a brand whose entire surface is this field — and anything that scrolls is a blog
   post wearing the wrong name. */
/* FIXED, not absolute. Absolute resolves against the page box, so the field ended at the first
   viewport and scrolling revealed bare background behind the type. Fixed covers the viewport
   for as long as the page does. It should not scroll anyway, but a resize must not expose it. */
/* Three classes, because `.as-ascii.is-ready { opacity: 1 }` is declared later and would win a
   tie — the field rendered at full strength behind the type and the page was unreadable. */
.mf-field { position: fixed; opacity: 0; }
.as-ascii.mf-field.is-ready { opacity: .07; }
.mf { position: relative; z-index: 1; grid-column: 1 / -1;
  width: min(66ch, calc(100% - 56px)); margin: 0 auto;
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(18px, 2.6vh, 36px) 0;
  color: rgba(242,242,242,.72); }
.mf-back { display: inline-block; margin-bottom: clamp(10px, 1.8vh, 18px); font-weight: 600;
  font-size: var(--bkz-text-sm); color: rgba(242,242,242,.6); text-decoration: none;
  text-shadow: 0 0 8px #0a0a0a; }
.mf-back:hover, .mf-back:focus-visible { color: #f2f2f2; text-decoration: none; }
.mf-h1 { margin: 0 0 clamp(10px, 1.8vh, 18px); font-size: clamp(26px, 2.8vw, 38px); font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.08; color: #f2f2f2;
  text-shadow: 0 2px 22px rgba(10,10,10,.95), 0 0 8px #0a0a0a; }
/* The headline enacts its own meaning: the "before" dim, the "after" full white. */
.mf-h1-in, .mf-h1-out { display: inline; }
.mf-h1-out { display: inline; margin-left: .45ch; }
.mf-h1-in { color: rgba(242,242,242,.45); }
/* One beat per idea, whitespace as pacing — the scroll is a poster sequence, not a blog post. */
.mf-beat { margin-top: clamp(18px, 3vh, 30px); }
.mf-mono { font-family: var(--bkz-font-mono); font-size: .92em; color: rgba(242,242,242,.88); }
.mf-step { margin: 0 0 10px; max-width: 58ch; font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6; color: rgba(242,242,242,.68); }
.mf-vow { margin: 18px 0; max-width: 58ch; font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 500; line-height: 1.5; color: #f2f2f2;
  text-shadow: 0 1px 16px rgba(10,10,10,.95), 0 0 8px #0a0a0a; }
/* The showpiece: twenty noisy complaints fade in from the dark; "Everyone told." lands at
   full white. The one place the page performs. */
.mf-count { margin: clamp(24px, 4vh, 40px) 0 0; font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 600; line-height: 1.3; letter-spacing: -0.012em; color: #f2f2f2;
  text-shadow: 0 1px 16px rgba(10,10,10,.95), 0 0 8px #0a0a0a; }
.mf-count span { display: inline; margin-right: .5ch; }
/* Numeral beside the clause, not above it: four rows have to fit a viewport, and stacking
   spends height on labels. */
/* The essay's rhythm: quiet paragraphs at a tight measure, and the four pivot sentences
   standing alone at pull-quote weight. The hierarchy is what carries a reader through nine
   paragraphs without the wall — the prose stays dim, the pivots bright, the kicker loudest,
   and each pull opens a new beat with real air above it. */
.mf-p { margin: 0 0 8px; max-width: 58ch; font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.55; color: rgba(242, 242, 242, .68); }
.mf-p em { color: #f2f2f2; font-style: italic; }
.mf-pull { margin: 8px 0 10px; max-width: 58ch; font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 600; line-height: 1.28; letter-spacing: -0.012em; color: #f2f2f2; }
.mf-kick { margin: clamp(10px, 1.6vh, 16px) 0 4px; max-width: 58ch;
  font-size: clamp(19px, 1.9vw, 26px); font-weight: 600; line-height: 1.25;
  letter-spacing: -0.02em; color: #f2f2f2;
  text-shadow: 0 2px 22px rgba(10,10,10,.95), 0 0 8px #0a0a0a; }
/* breken is the word "broken" with one letter fixed, and the mark makes it evident — as an
   event, not a blink. With script the word reads "broken" from first paint; after a short
   read (mf-swap.js owns that clock) the o jitters like a glyph that is failing, a line of
   brand-blue light sweeps across the slot, the o is wiped away behind it and the e revealed
   in its place, the e blooms and settles lit, the word thumps once, the seal stamps.
   Hovering the name replays it. Static / reduced-motion / no-JS already read breken with a
   blue e, so the fix shows even without the animation. */
.mf-fix { margin: clamp(10px, 2vh, 20px) 0 6px; }
.mf-name { font-weight: 600; font-size: clamp(36px, 5.6vw, 60px); line-height: 1;
  letter-spacing: -0.03em; color: #f2f2f2; text-shadow: 0 2px 30px rgba(10,10,10,.9);
  display: inline-block; cursor: default; }
.mf-name .sw { position: relative; display: inline-block; text-align: center; }
.mf-name .sw .o { opacity: 0; display: inline-block; }            /* rest: the break is gone */
.mf-name .sw .e { position: absolute; inset: -.35em; width: auto; padding: .35em; opacity: 1; color: var(--brand-ink);
  text-shadow: 0 0 14px color-mix(in srgb, var(--brand) 45%, transparent); }  /* rest: the fix, lit */
/* Room to glow: the letters are masked during the sweep, and a mask clips at the box, so the box
   is padded past the glow rather than the glow cut square. Padding-box on the o keeps its slot. */
.mf-name .sw .o { padding: .35em; margin: -.35em; }
/* The line of light: a hair of brand blue, taller than the letter, that crosses the slot. */
.mf-name .sw::after { content: ''; position: absolute; top: -8%; bottom: -8%; left: 0; width: 3px; opacity: 0;
  background: var(--brand-ink); pointer-events: none;
  box-shadow: 0 0 10px var(--brand), 0 0 28px var(--brand), 0 0 60px color-mix(in srgb, var(--brand) 60%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  /* With script, the word reads "broken" from first paint until the sweep (mf-swap.js adds
     `hold` at once and `play` later); without it, the rest state above already reads breken. */
  .mf-name.hold .sw .o { opacity: 1; }
  .mf-name.hold .sw .e { opacity: 0; }
  .mf-name.hold + .mf-seal { opacity: 0; }   /* the seal lands after the fix, not before it */
  /* One clock, from the moment `play` lands: 0–420ms the o jitters; 420–1120ms the line
     sweeps left to right, wiping the o out and the e in behind it; 1120–1700ms the e blooms
     and the word thumps; the seal stamps at 1500ms. `both` keeps each letter where the
     previous phase left it. */
  /* 0–300ms the o jitters; 300–900ms the line sweeps, a soft mask wiping the o out and the e
     in behind it; 900–1450ms the e blooms and the word thumps; the seal at 1300ms. */
  .mf-name.play .sw .o { -webkit-mask-image: linear-gradient(to right, transparent 44%, #000 56%); mask-image: linear-gradient(to right, transparent 44%, #000 56%);
    -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    animation: sw-jitter 300ms steps(1, end) 0ms both, sw-wipe-out 600ms cubic-bezier(.45, 0, .2, 1) 300ms both; }
  .mf-name.play .sw .e { -webkit-mask-image: linear-gradient(to right, #000 44%, transparent 56%); mask-image: linear-gradient(to right, #000 44%, transparent 56%);
    -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    animation: sw-wipe-in 600ms cubic-bezier(.45, 0, .2, 1) 300ms both, sw-bloom 550ms cubic-bezier(.2, .8, .2, 1) 900ms both; }
  .mf-name.play .sw::after { animation: sw-line 600ms cubic-bezier(.45, 0, .2, 1) 300ms both; }
  .mf-name.play { animation: sw-thump 500ms cubic-bezier(.3, .7, .2, 1) 820ms both; }
}
/* The o failing: TWO hits, not a vibration.
   Six little shakes read as a wobble — a letter being nudged rather than a glyph failing. A
   glitch is a thing that happens, twice, with the letter sitting perfectly still either side of
   it; the stillness is what makes the hit register. Stepped, so there is no easing into or out
   of either one, and split into brand blue and paper on opposite sides, which is the channel
   tear the rest of the page already uses. */
@keyframes sw-jitter {
  0%, 17%    { opacity: 1; transform: none; text-shadow: 0 2px 30px rgba(10,10,10,.9); }
  /* one */
  18%, 31%   { opacity: .28; transform: translateX(-.06em) translateY(.015em);
               text-shadow: .075em 0 var(--brand-ink), -.05em 0 rgba(242,242,242,.7), 0 2px 30px rgba(10,10,10,.9); }
  32%, 55%   { opacity: 1; transform: none; text-shadow: 0 2px 30px rgba(10,10,10,.9); }
  /* two */
  56%, 71%   { opacity: .2; transform: translateX(.07em) translateY(-.015em);
               text-shadow: -.08em 0 var(--brand-ink), .05em 0 rgba(242,242,242,.7), 0 2px 30px rgba(10,10,10,.9); }
  72%, 100%  { opacity: 1; transform: none; text-shadow: 0 2px 30px rgba(10,10,10,.9); }
}
/* The o wiped out from the left as the line passes: the mask's soft edge follows the light. */
@keyframes sw-wipe-out {
  0%   { opacity: 1; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  100% { opacity: 1; -webkit-mask-position: 0% 0; mask-position: 0% 0; }
}
/* The e revealed from the left behind the line, its lit edge leading. */
@keyframes sw-wipe-in {
  0%   { opacity: 1; -webkit-mask-position: 100% 0; mask-position: 100% 0; text-shadow: .06em 0 rgba(242,242,242,.5), 0 0 14px color-mix(in srgb, var(--brand) 45%, transparent); }
  100% { opacity: 1; -webkit-mask-position: 0% 0; mask-position: 0% 0; text-shadow: 0 0 14px color-mix(in srgb, var(--brand) 45%, transparent); }
}
@keyframes sw-line {
  0%   { left: -4%; opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { left: 104%; opacity: 0; }
}
/* The e, in place: one bloom, then it stands lit. */
@keyframes sw-bloom {
  0%   { transform: none; text-shadow: 0 0 14px color-mix(in srgb, var(--brand) 45%, transparent); }
  35%  { transform: scale(1.09); text-shadow: 0 0 30px var(--brand), 0 0 70px color-mix(in srgb, var(--brand) 70%, transparent), 0 0 120px color-mix(in srgb, var(--brand) 40%, transparent); }
  100% { transform: none; text-shadow: 0 0 14px color-mix(in srgb, var(--brand) 45%, transparent); }
}
/* The word takes the hit: one thump as the line lands, then it stands. */
@keyframes sw-thump {
  0%   { transform: none; }
  40%  { transform: scale(1.03) translateY(-.015em); }
  70%  { transform: scale(.996); }
  100% { transform: none; }
}

/* The wordmark as a signature: an em-dash lead, the name, and the ▚▚ seal.
   No tagline — the framing does the signing. The dash is muted and always standing (it is
   the line the name signs on); the seal is the brand glyph in the e's own blue, stamped
   down just after the e settles, the way a hanko lands after the name is written. Static /
   reduced-motion / no-JS get the seal standing, same rule as the swap itself. */
.mf-dash { font-size: clamp(20px, 3vw, 32px); font-weight: 400;
  color: rgba(242, 242, 242, .45); margin-right: clamp(10px, 1.2vw, 16px);
  vertical-align: .12em; }
.mf-seal { display: inline-block; font-size: clamp(13px, 1.9vw, 20px);
  color: var(--brand-ink); text-shadow: 0 0 14px var(--brand);
  margin-left: clamp(8px, 1vw, 14px); vertical-align: text-top; }
@media (prefers-reduced-motion: no-preference) {
  /* Stamped as the e blooms: 1300ms after `play`. */
  .mf-name.play + .mf-seal { animation: mf-seal-in 460ms ease 1300ms both; }
}
@keyframes mf-seal-in {
  0% { opacity: 0; transform: scale(2.4); text-shadow: 0 0 30px var(--brand); }
  55% { opacity: 1; transform: scale(.92); }
  100% { opacity: 1; transform: scale(1); text-shadow: 0 0 14px var(--brand); }
}

/* Short viewports: the essay is sized to one screen, and 720-class laptops get a tighter
   cut of the same page rather than a scrollbar. */
@media (max-height: 830px) {
  .mf { padding: 12px 0; }
  .mf-back { margin-bottom: 8px; }
  .mf-h1 { font-size: 25px; margin-bottom: 8px; }
  .mf-p { font-size: 13px; line-height: 1.45; margin-bottom: 6px; }
  .mf-pull { font-size: 16.5px; margin: 6px 0 8px; }
  .mf-kick { font-size: 16.5px; margin: 8px 0 3px; }
  .mf-fix { margin: 8px 0 4px; }
  .mf-name { font-size: 38px; }
  .mf-dash { font-size: 20px; margin-right: 10px; }
  .mf-seal { font-size: 13px; margin-left: 8px; }
  .mf-cta { margin-top: 8px; padding: 8px 18px; }
}

.mf-claim { display: grid; grid-template-columns: 3ch 1fr; gap: 18px; align-items: baseline;
  margin: 0 0 clamp(8px, 1.5vh, 14px); padding-top: clamp(8px, 1.4vh, 12px);
  border-top: 1px solid rgba(242,242,242,.13); }
.mf-n { font: 500 12px/1.6 var(--bkz-font-mono); letter-spacing: .2em; text-transform: uppercase;
  color: rgba(242,242,242,.4); text-shadow: 0 0 8px #0a0a0a; }
.mf-lead { margin: 0 0 3px; font-size: clamp(16px, 1.4vw, 20px); font-weight: 600; line-height: 1.3;
  letter-spacing: -0.02em; color: #f2f2f2;
  text-shadow: 0 1px 16px rgba(10,10,10,.95), 0 0 8px #0a0a0a; }
.mf-line { margin: 0; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.6;
  color: rgba(242,242,242,.6); text-shadow: 0 0 6px #0a0a0a, 0 0 12px rgba(10,10,10,.95); }
.mf-cta { align-self: flex-start; margin-top: clamp(10px, 2vh, 22px);
  display: inline-block; padding: 11px 22px; border: 1px solid #ffffff; border-radius: 2px;
  font: 600 var(--bkz-text-sm)/1 var(--bkz-font-sans); color: #0a0a0a; background: #ffffff;
  text-decoration: none; box-shadow: 0 2px 22px rgba(0,0,0,.55);
  transition: transform 180ms cubic-bezier(.16,.84,.28,1); }
.mf-cta:hover, .mf-cta:focus-visible { color: #0a0a0a; text-decoration: none;
  transform: translateY(-1px) scale(1.03); }

/* ── Open source ─────────────────────────────────────────────────────────────
   The reel, then the collage. The reel is a fixed layer that exists only while <html> carries
   `oss-play` (set by a two-line inline script before first paint, taken away by oss-reel.js
   when the last frame has shown). The collage underneath is the document; it fades in as the
   layer fades out. Without script there is no layer, only the list. */
.oss-intro { display: none; position: fixed; inset: 0; z-index: 1000; background: #060606;
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  transition: opacity .2s ease; user-select: none; }
html.oss-play .oss-intro, .oss-intro.is-out { display: flex; }
.oss-intro.is-out { opacity: 0; pointer-events: none; }
/* A strip of film: two columns of sprocket holes either side of the window. */
.oss-strip { display: flex; align-items: stretch; background: #0a0a0a; border: 1px solid rgba(255,255,255,.14); }
.oss-spk { width: 22px; background: #111; display: flex; flex-direction: column;
  justify-content: space-evenly; align-items: center; padding: 10px 0; }
.oss-spk i { display: block; width: 10px; height: 7px; background: #000; border: .5px solid rgba(255,255,255,.08); margin: 2px 0; }
/* The window is sized in the frame's own character cells — 80 columns, 32 rows — so a frame
   fills it exactly at every viewport: font-size is the one number that scales. */
.oss-win { position: relative; overflow: hidden;
  font-size: clamp(5px, .78vw, 11px); line-height: 1.25;
  width: calc(80ch + 24px); height: calc(40em + 24px);
  /* The ground is the landing's own field, at rest: one faint dot per character cell, and a
     projector's hotspot — a little more light in the middle than at the edges. No colour: the
     blue that was here came from the shutter flash and, at twelve frames a second, never went
     away; the window read as a blue wash. Black film, white light. */
  background:
    radial-gradient(ellipse 62% 58% at 50% 46%, rgba(255,255,255,.055), transparent 70%),
    radial-gradient(circle at center, rgba(242,242,242,.13) .55px, transparent 1.15px) 0 0 / 1.2em 1.25em,
    #050505; }
.oss-frame { position: absolute; inset: 12px; margin: 0; font: 400 1em/1.25 var(--bkz-font-mono);
  color: rgba(242,242,242,.82); white-space: pre; letter-spacing: 0; }
.oss-frame b { font-weight: 400; }
.oss-ln-ink { color: #ffffff; }
.oss-ln-brand { color: var(--brand); }
.oss-ln-meta { color: rgba(242,242,242,.45); }
/* The flash is the projector's shutter: a beat of brand blue over each new frame. */
/* The shutter: a beat of white light over each new frame, brief enough to read as flicker. */
.oss-flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: rgba(255,255,255,.09); mix-blend-mode: screen; transition: opacity .05s; }
.oss-flash.is-on { opacity: 1; }
.oss-grain { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .16;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.oss-vig { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0,0,0,.78)); }
/* The readout, in breken's own hand rather than the projector's: a meter of dots that fills
   one cell per frame (the dot language, kit.ts), the frame number and the rate in mono with
   the rate in the brand tint, and "skip" as the italic underlined link the landing uses. */
.oss-meta-row { display: flex; align-items: center; gap: 22px; }
.oss-meter { font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .18em; color: rgba(242,242,242,.28); white-space: nowrap; }
.oss-meter b { font-weight: 500; color: var(--brand-ink); }
.oss-meta { font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .08em; color: rgba(242,242,242,.45); white-space: nowrap; }
.oss-fps { color: var(--brand-ink); margin-left: 1.2ch; }
.oss-skip { padding: 0 0 2px; border: 0; background: none; cursor: pointer;
  font: italic 500 14px/1.2 var(--bkz-font-sans); letter-spacing: .015em; color: rgba(242,242,242,.62);
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
  background-position: 0 100%; background-size: 100% 1px;
  transition: color .15s, background-size 220ms cubic-bezier(.16,.84,.28,1); touch-action: manipulation; }
.oss-skip:hover, .oss-skip:focus-visible { color: #f2f2f2; background-size: 100% 2px; outline: none; }
@media (max-width: 640px) { .oss-meter { display: none; } }
@media (max-width: 480px) { .oss-spk { display: none; } }

/* The wall: the landing's field faint behind one headline and one row per repository. */
.oss-field { position: fixed; opacity: 0; }
.as-ascii.oss-field.is-ready { opacity: .12; }
/* The gallery takes the page, not a column of it.
   
   This was 96ch — a reading measure, about 860px — so on a 1920 screen the wall was a narrow
   strip down the middle with a third of the page dark on either side, four columns of logos
   however much room there was. It is a gallery: the work goes edge to edge, and the number of
   columns follows the glass. `container-type: inline-size` is what makes the cells square at
   every one of those widths — the row height below is computed from this element's own inline
   size in `cqw`, which no viewport unit can do once the width is a `min()` of two things. */
.oss { position: relative; z-index: 1; grid-column: 1 / -1;
  /* 2026-09-22, first pass: 2000px was too much of the glass — the logos were small against
     a lot of black and the eye had no edge to rest against — so it came back to 1280.
     2026-09-22, second: 1280 left a gutter each side of a 1512 screen and ran the wall three
     and a half screens deep, which is the opposite complaint. What was wrong at 2000px was
     not the WIDTH, it was that six columns of it left the wall sparse: fewer, bigger blocks
     with black between them. Taking the sheet and doubling the columns is the version that
     answers both — the same blocks, smaller, packed against each other rather than floating
     in it. */
  width: min(2240px, calc(100% - 2 * clamp(16px, 2.2vw, 44px))); margin: 0 auto;
  container-type: inline-size;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  /* The back link and Get started sit absolutely in the top corners, so the headline is the
     first thing in flow. It has to clear that row with air — clamp(52px, 6vh, 72px) put
     "Healed" against their baseline. */
  padding: clamp(96px, 11vh, 128px) 0 clamp(20px, 3vh, 36px); color: rgba(242,242,242,.72);
  transition: opacity .2s ease; }
html.oss-play .oss { opacity: 0; }
.oss .mf-back { position: absolute; top: clamp(20px, 3.4vw, 40px); left: 0; margin: 0; }
/* The landing's white button, in the same corner. */
.oss-cta { position: absolute; top: clamp(20px, 3.4vw, 40px); right: 0;
  padding: 11px 22px; border: 1px solid #ffffff; border-radius: 2px;
  font: 600 var(--bkz-text-sm)/1 var(--bkz-font-sans); letter-spacing: .005em;
  color: #0a0a0a; text-decoration: none; background: #ffffff;
  box-shadow: 0 2px 22px rgba(0,0,0,.55);
  transition: transform 180ms cubic-bezier(.16,.84,.28,1), box-shadow 180ms ease; }
.oss-cta:hover, .oss-cta:focus-visible { background: #ffffff; color: #0a0a0a; text-decoration: none;
  transform: translateY(-1px) scale(1.04); box-shadow: 0 6px 30px rgba(0,0,0,.6); }
.oss-h1 { margin: 0; font-size: clamp(26px, 2.8vw, 44px); font-weight: 600; line-height: 1.12;
  letter-spacing: -0.035em; color: #f2f2f2;
  text-shadow: 0 2px 26px rgba(10,10,10,.92), 0 1px 3px rgba(10,10,10,.9); }
.oss-count { margin: 22px 0 0; font: 500 11px/1.4 var(--bkz-font-mono); letter-spacing: .16em;
  text-transform: uppercase; color: rgba(242,242,242,.5); }
/* The collage: one card per merged pull request, three sizes, packed dense like a wall of
   prints. Each card is the repository's logo — the same dithered rows the reel flips through —
   with its name, stars and who merged along the bottom edge, and the title on hover.
   
   The column count is named, not inferred. `auto-fill, minmax(190px, 1fr)` reads well but it
   lands on whatever number a width happens to allow — five columns, seven — and the wall is
   packed `dense`, so the count is what decides whether a run of blocks closes into a rectangle
   or leaves a hole for a later block to be pulled up into, past the words written about it.
   Six, four, three, two — and the two the wall is packed for (ossFill) are six and four. The
   row height and every logo below are derived from `--oss-cell`, so a cell is square and its
   dithered logo fills the same share of it at every one of them. */
.oss-collage { margin: clamp(36px, 6vh, 64px) 0 0;
  /* Sixteen, not six. The cell is the unit every block is measured in, so the way to make the
     wall denser is to make the cell smaller — tightening the SPANS instead just makes small
     blocks out of big ones and leaves the page as tall as it was. At sixteen a tile runs
     170-340px against the old 230-470, which is the difference between a page you scroll
     through twice and one you take in at a glance. The gap comes in with the cells. */
  --oss-cols: 16; --oss-gap: 7px;
  --oss-cell: calc((100cqw - (var(--oss-cols) - 1) * var(--oss-gap)) / var(--oss-cols));
  /* Two cells and the gap between them: the width of every block that spans two columns. */
  --oss-cell2: calc(2 * var(--oss-cell) + var(--oss-gap));
  display: flex; flex-direction: column; gap: var(--oss-gap); }
/* A run of blocks: one grid, packed dense, square cells. The wall is several of these with the
   wall-wide quotes standing between them, because dense fills a hole with whatever comes next
   and would otherwise carry a block up past the words written about it. */
.oss-wall { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--oss-cols), minmax(0, 1fr));
  grid-auto-rows: var(--oss-cell);
  grid-auto-flow: dense; gap: var(--oss-gap); }
/* The ladder down. Each step is a column count the server also packs for (OSS_FILL_COLUMNS),
   except the last two, which close on their own or cannot be closed at all — see the note on
   that constant. */
/* Sixteen needs the room to be sixteen. At 1280 a cell comes out around 69px, which is under
   the size the text blocks need and put eight of them over their own edges — so the dense wall
   steps down to twelve before it steps down to six. Both use the same spans: `ossCardSpan` and
   its siblings switch on `columns >= 12`, which is true of either. */
/* The marks are counted against the dense wall only — see OSS_DENSE_COLUMNS. Below it the
   wall already packs better than nine-tenths full, so they have nothing to close and would
   simply be a row of marks. `display: none` takes them out of the grid entirely. */
@media (max-width: 1279px) { .oss-card--fill { display: none; } }
@media (max-width: 1439px) { .oss-collage { --oss-cols: 12; --oss-gap: 8px; } }
@media (max-width: 1279px) { .oss-collage { --oss-cols: 6; --oss-gap: 10px; } }
@media (max-width: 899px) { .oss-collage { --oss-cols: 4; --oss-gap: 10px; } }
@media (max-width: 640px) { .oss-collage { --oss-cols: 2; } }
.oss-card { position: relative; overflow: hidden; background: #000; border: 1px solid rgba(242,242,242,.1);
  transition: border-color 200ms ease; }
.oss-card:hover, .oss-card:focus-within { border-color: rgba(242,242,242,.4); }
.oss-card.is-bot { border-color: color-mix(in srgb, var(--brand) 50%, transparent); }
.oss-card.is-bot:hover { border-color: var(--brand); }
.oss-card--sm { grid-column: span 1; grid-row: span 1; }
.oss-card--wide { grid-column: span 2; }
.oss-card--xl { grid-column: span 2; grid-row: span 2; }
.oss-card-link { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; }
.oss-card-link:hover, .oss-card-link:focus-visible { color: inherit; text-decoration: none; outline: none; }
/* Every logo is thirty rows of sixty mono columns, which at this font is very nearly square:
   sixty cells across is 36em, thirty rows down is 37.5em. So one divisor per block width sets
   how much of the block the picture fills, and it holds at every column count — a small card
   is a cell wide, a large one two cells and the gap. 41 leaves about a seventh of the block as
   air around the picture (4.6px in the 190px cell this page used to have, at any width now). */
.oss-card-logo { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); margin: 0;
  font: 400 calc(var(--oss-cell) / 41)/1.25 var(--bkz-font-mono); letter-spacing: 0; white-space: pre;
  color: rgba(242,242,242,.88); transition: transform 320ms cubic-bezier(.16,.84,.28,1); }
.oss-card--xl .oss-card-logo { font-size: calc(var(--oss-cell2) / 41); }
.oss-card-link:hover .oss-card-logo, .oss-card-link:focus-visible .oss-card-logo { transform: translate(-50%, -54%) scale(1.03); }
.oss-card-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  display: flex; flex-direction: column; gap: 3px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.88) 45%); }
.oss-card-name { font: 600 clamp(16px, 1.4vw, 22px)/1.1 var(--bkz-font-sans); letter-spacing: -0.02em; color: #f2f2f2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
a.oss-card-name:hover, a.oss-card-name:focus-visible { color: #f2f2f2; text-decoration: none; }
.oss-card--xl .oss-card-name { font-size: clamp(22px, 2.3vw, 34px); }
.oss-card-mark { color: var(--brand); font: 500 .68em/1 var(--bkz-font-mono); margin-right: .45ch; vertical-align: .12em; }
.oss-card-meta { font: 400 11px/1.3 var(--bkz-font-mono); color: rgba(242,242,242,.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oss-card-by { font: 500 11px/1.3 var(--bkz-font-mono); color: rgba(242,242,242,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* A small card is narrower than "by Divyam Talwar (founding eng @ breken)": let it take two
   lines rather than cut the role off at "(foundin…". */
.oss-card--sm .oss-card-by { white-space: normal; }
.oss-card-with { font-weight: 500; color: var(--brand-ink); white-space: nowrap; }
.oss-card-title { font: 400 11px/1.4 var(--bkz-font-mono); color: rgba(242,242,242,.75);
  max-height: 0; opacity: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  transition: max-height 260ms ease, opacity 220ms ease; }
.oss-card-link:hover .oss-card-title, .oss-card-link:focus-visible .oss-card-title { max-height: 3em; opacity: 1; }
/* ── The company block ──────────────────────────────────────────────────────────
   One block per company (oss-collage.ts): the logo in the middle and one tile per merged pull
   request packed around it. A block is a grid of its own on the SAME cell as the wall — it
   spans 2W columns of the wall and divides itself into 2W columns with the same gap, so its
   cells are the wall's cells and the blocks tile against each other. Spans come from classes
   (one per even count), positions from `--c` / `--r` inline, which the stylesheet reads only
   where the block has the room it was packed for (twelve columns and up). Below that a block
   takes the whole row and its tiles flow dense, logo first. */
.oss-co { position: relative; display: grid; grid-template-columns: repeat(var(--cw), minmax(0, 1fr));
  grid-auto-rows: var(--oss-cell); grid-auto-flow: dense; gap: var(--oss-gap); list-style: none; }
.oss-co--w2 { --cw: 2; grid-column: span 2; }
.oss-co--w4 { --cw: 4; grid-column: span 4; }
.oss-co--w6 { --cw: 6; grid-column: span 6; }
.oss-co--w8 { --cw: 8; grid-column: span 8; }
/* Every child of a block carries its span as `--w` / `--h` (set by its size class) so the
   positioned form below can say `start / span` in one declaration. `grid-column: span 4`
   alone puts the span on the START line, and a later `grid-column-start` would throw it away
   — which drew every tile one cell square the first time. */
.oss-co > * { grid-column: span var(--w); grid-row: span var(--h); }
.oss-co--h2 { grid-row: span 2; }
.oss-co--h4 { grid-row: span 4; }
.oss-co--h6 { grid-row: span 6; }
.oss-co--h8 { grid-row: span 8; }
.oss-co--h10 { grid-row: span 10; }
.oss-co--h12 { grid-row: span 12; }
.oss-co--h14 { grid-row: span 14; }
.oss-co--h16 { grid-row: span 16; }
/* The logo block: the picture, and the company's name and count along the bottom edge. Two
   cells a side, four for a hero. The picture is sized to the block: sixty columns of mono at
   this font are 36em, so the divisor says how much of the width the picture takes (about
   seven tenths of a small block, three quarters of a hero's). */
.oss-co-logo { --w: 2; --h: 2; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #000; border: 1px solid rgba(242,242,242,.14); }
.oss-co-logo--hero { --w: 4; --h: 4; }
.oss-logo { margin: 0; white-space: pre; letter-spacing: 0; color: rgba(242,242,242,.88);
  font: 400 calc(var(--oss-cell) / 22)/1.25 var(--bkz-font-mono);
  transform: translateY(-9%);
  /* The bloom: a soft glow in the company's colour under the glyphs, so the mark stands off
     the black rather than sitting in it. */
  text-shadow: 0 0 16px color-mix(in srgb, var(--k0, var(--brand)) 38%, transparent); }
.oss-co-logo--hero .oss-logo { font-size: calc(var(--oss-cell) / 12); transform: translateY(-7%); }
/* The company's own colours on its glyphs — the palette rides on the element (`--k0`…`--k3`,
   pages.ts ossLogoHtml). The halo is the accents: a ring of `·` in the dominant colour one cell
   out, a checkerboard of `.` one further, dimmer. A mark with no colour of its own gets the
   brand's. */
.oss-logo .oss-k0 { color: var(--k0); }
.oss-logo .oss-k1 { color: var(--k1); }
.oss-logo .oss-k2 { color: var(--k2); }
.oss-logo .oss-k3 { color: var(--k3); }
.oss-logo .oss-ha { color: var(--k0, var(--brand)); opacity: .62; }
.oss-logo .oss-hb { color: var(--k0, var(--brand)); opacity: .32; }
.oss-co-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  display: flex; flex-direction: column; gap: 3px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.9) 50%); }
.oss-co-name { font: 600 clamp(16px, 1.4vw, 22px)/1.1 var(--bkz-font-sans); letter-spacing: -0.02em; color: #f2f2f2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oss-co-logo--hero .oss-co-name { font-size: clamp(22px, 2.3vw, 34px); }
.oss-co-meta { font: 400 11px/1.3 var(--bkz-font-mono); color: rgba(242,242,242,.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* A tile: one pull request. The number and repository on top, the title, the maintainer's
   words when there are some, who merged and who did it along the bottom. The whole tile is
   the link. Black, square, hairline — the same object as the logo block beside it. */
.oss-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px 11px; background: #000; border: 1px solid rgba(242,242,242,.1);
  color: inherit; text-decoration: none; transition: border-color 200ms ease; }
.oss-tile:hover, .oss-tile:focus-visible { border-color: rgba(242,242,242,.45); color: inherit; text-decoration: none; outline: none; }
.oss-tile.is-bot { border-color: color-mix(in srgb, var(--brand) 42%, transparent); }
.oss-tile.is-bot:hover, .oss-tile.is-bot:focus-visible { border-color: var(--brand); }
.oss-tile--w2 { --w: 2; }
.oss-tile--w4 { --w: 4; }
.oss-tile--w6 { --w: 6; }
.oss-tile--h2 { --h: 2; }
.oss-tile--h4 { --h: 4; }
.oss-tile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.oss-tile-num { flex: 0 0 auto; font: 500 11px/1.4 var(--bkz-font-mono); color: rgba(242,242,242,.5); }
.oss-tile-num .oss-card-mark { font-size: 10px; vertical-align: 0; }
.oss-tile:hover .oss-tile-num { color: var(--brand-ink); }
.oss-tile-repo { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 11px/1.4 var(--bkz-font-mono); color: rgba(242,242,242,.5); }
.oss-tile-title { font: 400 12px/1.42 var(--bkz-font-mono); color: rgba(242,242,242,.86);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; overflow-wrap: anywhere; }
.oss-tile--h4 .oss-tile-title { -webkit-line-clamp: 7; }
.oss-tile--w4.oss-tile--h2 .oss-tile-title, .oss-tile--w6 .oss-tile-title { -webkit-line-clamp: 2; }
.has-quote.oss-tile--w4.oss-tile--h4 .oss-tile-title { -webkit-line-clamp: 3; }
/* The maintainer's words: the one line on the wall that is not ours, so it is the one line set
   in the sans and in full white. Cut at a line, never mid-word, with the attribution kept. */
.oss-tile-quote { font: 500 clamp(13px, .95vw, 16px)/1.32 var(--bkz-font-sans); letter-spacing: -0.015em; color: #f2f2f2;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.oss-tile--h4 .oss-tile-quote { -webkit-line-clamp: 6; }
.oss-tile-quote code { font-family: var(--bkz-font-mono); font-size: .88em; color: rgba(242,242,242,.92); }
.oss-tile-quote .oss-mention { font-weight: 600; color: #f2f2f2; }
.oss-mention { font-weight: 600; color: rgba(242,242,242,.92); }
.oss-ref { color: var(--brand-ink); }
.oss-voice-cut { color: rgba(242,242,242,.32); }
.oss-tile-who { font: 500 11px/1.4 var(--bkz-font-mono); color: rgba(242,242,242,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oss-tile-who::before { content: "●"; color: var(--brand); margin-right: .5ch; font-size: 8px; vertical-align: .15em; }
.oss-tile-meta { margin-top: auto; padding-top: 4px; font: 400 11px/1.35 var(--bkz-font-mono); color: rgba(242,242,242,.55);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.oss-tile--w2.oss-tile--h2 .oss-tile-meta { -webkit-line-clamp: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
/* Words said to us off GitHub (oss-said.ts): the same tile, the quote leading. */
.oss-tile--said .oss-tile-quote { font-size: clamp(14px, 1.05vw, 18px); }
/* A cell of a block nothing closes: the mark, dim, as on the wall. */
.oss-co-fill { --w: 2; --h: 2; display: grid; place-items: center;
  font: 400 13px/1 var(--bkz-font-mono); letter-spacing: 1px; font-style: normal;
  color: rgba(242,242,242,.3); border: 1px solid rgba(242,242,242,.07); background: rgba(242,242,242,.02); }
/* Positions, where the block has the room it was packed for: the start line from the inline
   `--c` / `--r`, the span from the size class. */
@media (min-width: 1280px) {
  .oss-co > * { grid-column: var(--c) / span var(--w); grid-row: var(--r) / span var(--h); }
}
/* The marks that close the wall's holes, one cell each. One set is counted for sixteen columns
   and one for twelve (pages.ts ossMarkCells); the glass shows the set it is at. Below twelve the
   blocks stack full-width and there is nothing to close. */
.oss-card--fill { grid-column: span 1; grid-row: span 1; display: grid; place-items: center;
  border-color: rgba(242, 242, 242, .07); background: rgba(242, 242, 242, .02); }
.oss-card--fill:hover { border-color: rgba(242, 242, 242, .07); }
.oss-fill-mark { font: 400 13px/1 var(--bkz-font-mono); letter-spacing: 1px; color: rgba(242, 242, 242, .3); }
.oss-fill-12 { display: none; }
@media (min-width: 1280px) and (max-width: 1439px) { .oss-fill-16 { display: none; } .oss-fill-12 { display: grid; } }
@media (max-width: 1279px) { .oss-card--fill, .oss-co-fill { display: none; } }
/* Six columns and down: a block is the row, its tiles flow, and the wall's rows follow the
   blocks rather than the cell — a block is as tall as what it holds. Scoped to the company
   wall: the articles page shares `.oss-wall` and keeps its square rows.

   Between a phone and the dense wall the block's grid is in u (two cells and the gap), three
   of them across from 900px and two below, so every span is halved: a small tile is one u
   square, a hero logo two — the same sizes as on the dense wall, re-divided to fit. */
@media (max-width: 1279px) {
  .oss-wall--co { grid-auto-rows: auto; }
  .oss-co { grid-column: 1 / -1; grid-row: auto; }
}
@media (min-width: 641px) and (max-width: 1279px) {
  /* `--cu` u across the block; a u is the block's width less the gaps, divided by that, and
     the rows are the same length, so a u is square. Four from 900px (a hero logo and a wide
     tile side by side), three below (a wide tile and a square one). */
  .oss-co { --cu: 4; grid-template-columns: repeat(var(--cu), minmax(0, 1fr));
    grid-auto-rows: calc((100cqw - (var(--cu) - 1) * var(--oss-gap)) / var(--cu)); }
  .oss-co > * { --w: 1; --h: 1; }
  .oss-tile--w4, .oss-tile--w6, .oss-co-logo--hero { --w: 2; }
  .oss-tile--h4, .oss-co-logo--hero { --h: 2; }
}
@media (min-width: 641px) and (max-width: 899px) {
  .oss-co { --cu: 3; }
}
/* A phone: two cells across. A tile is a cell square — half the width, room for a title and
   its line — and a tile with a quote on it is the row and twice as tall. A small company's
   logo is a cell square too, its picture scaled to it; a hero's is the row. */
@media (max-width: 640px) {
  .oss-co { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: var(--oss-cell); }
  .oss-co > * { --w: 1; --h: 1; }
  .oss-tile.has-quote, .oss-tile--said, .oss-co-logo--hero { --w: 2; --h: 2; }
  .oss-co-logo .oss-logo { font-size: calc(var(--oss-cell) / 46); transform: translateY(-18%); }
  .oss-co-logo--hero .oss-logo { font-size: calc(var(--oss-cell) / 22); transform: translateY(-9%); }
  .oss-tile { padding: 10px 11px 9px; }
  .oss-tile-title { font-size: 11px; -webkit-line-clamp: 3; }
  .oss-tile-meta { -webkit-line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; }
  .oss-co-text { padding: 20px 10px 9px; }
  .oss-co-name { font-size: 15px; }
}

/* The sign-off: one quiet line under the wall, same register as the count. */
.oss-more { margin: clamp(20px, 3vh, 32px) 0 0; text-align: right;
  font: 500 11px/1.4 var(--bkz-font-mono); letter-spacing: .16em;
  text-transform: uppercase; color: rgba(242,242,242,.4);
  animation: as-rise 800ms cubic-bezier(.16,.84,.28,1) 760ms backwards; }
html.oss-play .oss-more { animation: none; }
/* The cards rise in one after another once the reel has gone (or at once, with no script).
   The ladder counts inside a run and starts again in the next one, a run behind — so the wall
   fills run by run, left to right, which is the order it is read in. */
html:not(.oss-play) .oss-card, html:not(.oss-play) .oss-co { animation: as-rise 700ms cubic-bezier(.16,.84,.28,1) backwards; }
/* `--oss-run`: how late a run starts. The ladder inside it is the same fifty milliseconds a
   block used to get, counted from there, so the wall still fills block by block — but a run
   that is one screen down does not spend its whole ladder before the reader arrives. */
.oss-collage > * { --oss-run: 40ms; }
.oss-collage > :nth-child(n+3) { --oss-run: 200ms; }
.oss-collage > :nth-child(n+5) { --oss-run: 360ms; }
.oss-collage > :nth-child(n+7) { --oss-run: 520ms; }
.oss-wall .oss-card, .oss-wall .oss-co { animation-delay: var(--oss-run); }
.oss-wall .oss-card:nth-child(2), .oss-wall .oss-co:nth-child(2) { animation-delay: calc(var(--oss-run) + 50ms); }
.oss-wall .oss-card:nth-child(3), .oss-wall .oss-co:nth-child(3) { animation-delay: calc(var(--oss-run) + 100ms); }
.oss-wall .oss-card:nth-child(4), .oss-wall .oss-co:nth-child(4) { animation-delay: calc(var(--oss-run) + 150ms); }
.oss-wall .oss-card:nth-child(5), .oss-wall .oss-co:nth-child(5) { animation-delay: calc(var(--oss-run) + 200ms); }
.oss-wall .oss-card:nth-child(6), .oss-wall .oss-co:nth-child(6) { animation-delay: calc(var(--oss-run) + 250ms); }
.oss-wall .oss-card:nth-child(n+7), .oss-wall .oss-co:nth-child(n+7) { animation-delay: calc(var(--oss-run) + 300ms); }
@media (max-width: 640px) {
  /* Two columns and an 8px gutter between them. The logo sizes that used to be written out
     here are gone: they are the same fractions of `--oss-cell` as everywhere else, and a cell
     on a phone is simply smaller. What a phone does need is tighter padding in a stack. */
  .oss-collage { --oss-cols: 2; --oss-gap: 8px; }
}

.as-visual { position: relative; overflow: hidden; background: var(--au-shell); border-left: 1px solid var(--grid-rail); }
.as-viz { position: absolute; inset: 0; }
/* A canvas. Its pixel size is set in JS from the element's box times the device pixel ratio, and
   its CSS size is set alongside it — a backing store measured once and then stretched by CSS is
   the whole of "why was it blurry" when this was last a canvas.
   No `contain` here: size containment on an absolutely-positioned element is what gave Safari a
   blank pane, and with no layout to contain there is nothing for it to buy. */
/* `width`/`height` and not only `inset`: a canvas is a REPLACED element, so `inset: 0` with auto
   dimensions resolves to its intrinsic 300x150 rather than stretching to the box. It rendered a
   300x150 field in the corner of a 1800x1000 pane. */
/* Held dark until the first finished frame, then faded up.
   
   `is-ready` is added by the script only after a measurement has actually succeeded, so nothing
   is ever shown at the wrong size — which on Safari meant a pane of enormous blurred glyphs for
   a moment, because a deferred script runs before that element has been laid out. The fade is
   the honest version of a load: the field arrives, rather than appearing mid-animation. */
.as-ascii { position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  background: #0a0a0a; user-select: none; pointer-events: none;
  opacity: 0; transition: opacity 900ms cubic-bezier(.22, .61, .36, 1); }
.as-ascii.is-ready { opacity: 1; }
/* The field behind a page that scrolls. `.mf-field` and `.oss-field` say `fixed`, and lost: the
   rule above is later in the file at the same specificity, so the canvas came out absolute, one
   viewport tall, pinned to the top of the document — scroll past the first screen and the field
   simply stopped. Two classes outrank one; this is the declaration that actually applies. */
.as-ascii.mf-field, .as-ascii.oss-field { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; }

/* The type arrives just behind the field, so the page composes rather than switching on.
   
   `backwards`, never `both`. A fill of `both` holds the animation's final opacity FOREVER, and
   an animation's fill outranks ordinary declarations — so `.is-open`'s fade-out of the landing
   lost to it, and pressing Get started slid the panel in underneath a headline that never left.
   `backwards` covers only the delay; when the animation ends, the cascade rules again. */
.as-land, .as-cta { animation: as-rise 820ms cubic-bezier(.16, .84, .28, 1) backwards; }
.as-cta { animation-delay: 220ms; }
.as-land-h1 { animation: as-rise 900ms cubic-bezier(.16, .84, .28, 1) 90ms backwards; }
.as-manifesto { animation: as-rise 900ms cubic-bezier(.16, .84, .28, 1) 190ms backwards; }
.as-backers { animation: as-rise 900ms cubic-bezier(.16, .84, .28, 1) 300ms backwards; }
/* And once the panel is open the entrance is over by definition — a re-render arriving directly
   in the open state (an error, an invite) must not replay it over the form. */
.as-stage.is-open .as-land, .as-stage.is-open .as-land-h1,
.as-stage.is-open .as-manifesto, .as-stage.is-open .as-backers { animation: none; }
@keyframes as-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .as-ascii { transition: none; }
  .as-land, .as-cta, .as-land-h1, .as-manifesto, .as-backers { animation: none; }
}

/* `as-halo` and `as-blink` lived here, unreferenced, left over from an SVG reachability
   visual that was removed. Both animated SVG-only properties (`stroke-opacity`, `fill-opacity`),
   so neither could ever have driven a DOM element. `tm-blink` below is the working version. */
@media (prefers-reduced-motion: reduce) {
}
@media (max-width: 960px) {
  .auth-split { grid-template-columns: 1fr; }
  /* `.as-visual { display: none }` lived here. It was right when the visual was the second
     column of a split — a picture beside a form, dropped when there is only one column. It is
     not a column any more: `signInVisual()` renders it once, into `.as-stage`, where it is the
     full-bleed field the landing and the sign-in panel both sit on. The rule outlived its
     layout and its only remaining effect was to delete the graphic on every phone. */
}

/* ================= the terminal ==========   A framed console for the two public pages and the surfaces that are already logs. It is a
   SKIN OVER THE DARK FAMILY, not a fifth surface family — every token below resolves to a value
   this product already ships (`#0a0a0a` and `#f2f2f2` are `BACK` and `INK` from ascii.js, which
   have been literals in that file all along; the dim ink and the rule weight come from the
   existing UI and grid tokens).

   Three decisions worth stating, because each is a thing a terminal skin usually gets wrong.

   NOT GREEN. Not because green is a competitor's — because green is already load-bearing HERE.
   `--bkz-success` is the pass colour on exactly the evidence screens this skin is for, and the
   manifesto's fourth clause is "When nothing is wrong, say nothing. The silence is the finding."
   Painting every log line phosphor-green would destroy the one signal those screens exist to
   carry, and would put brand-green and status-green in the same hue, which is the blending
   `bkz/colors.css` opens by forbidding.

   THE ACCENT IS NEVER THE COLOUR OF TEXT. `#0061ab` on `#0a0a0a` measures 3.11:1 — enough for a
   large sigil or a mark, a failure for a line of prose. It is used for the `~$` prompt and the
   mark and nothing else. Ink is 17.7:1, dim ink 7.6:1. This is also the honest answer to why we
   are not Greptile-green: they set green text on a LIGHT page. Ours is near-black.

   NO CRT THEATRE. No scanlines, no curvature, no glow, no wireframe monitor. The drafting grid
   is already this page's one texture, and `.tm` is opaque so the grid does not show through the
   frame — two textures at once is noise, not depth. */
:root {
  --tm-bg: #0a0a0a;
  --tm-ink: #f2f2f2;
  --tm-ink-dim: rgba(242, 242, 242, .56);
  --tm-rule: rgba(242, 242, 242, .16);
  --tm-sig: #0061ab;
}
/* Opaque, square (the skin already zeroes every radius), and capped: mono at 14px across a
   1400px column is ~140 characters a line, which is genuinely harder to read than the sans it
   replaced. */
.tm { background: var(--tm-bg); color: var(--tm-ink); border: 1px solid var(--tm-rule);
  font: 400 13px/1.65 var(--bkz-font-mono); max-width: 100ch; overflow: hidden; }
/* The cap is about reading prose. A card that is a table opts out of it: capped, it stopped
   short of the page while its own columns fought over the width it was not using. */
.tm-wide { max-width: none; overflow-x: auto; }
/* A label row, deliberately with no control affordances — no traffic lights, no close button.
   Fake chrome invites a click that does nothing. */
.tm-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 14px; border-bottom: 1px solid var(--tm-rule); }
.tm-bar-t { color: var(--tm-ink); font-weight: 600; letter-spacing: .01em; }
.tm-bar-m { color: var(--tm-ink-dim); font-size: 11.5px; }
.tm-body { padding: 14px 16px 16px; }
/* The sigil is a pseudo-element, not markup: double-clicking the command to copy it should not
   drag a `~$ ` along with it. */
.tm-cmd { color: var(--tm-ink); margin: 0; }
.tm-cmd::before { content: "~$ "; color: var(--tm-sig); }
/* The Greptile inner band: a hairline frame whose title sits ON the border line. */
.tm-panel { position: relative; border: 1px solid var(--tm-rule); padding: 15px 16px 14px;
  margin: 14px 0 0; }
.tm-panel-t { position: absolute; top: -.66em; left: 12px; padding: 0 7px;
  background: var(--tm-bg); color: var(--tm-ink-dim); font-size: 11.5px; letter-spacing: .04em; }
/* A grid, never a `<pre>` padded with spaces: gutters stay aligned at 200% zoom and a long line
   reflows instead of scrolling the page sideways. */
.tm-log { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px;
  font-variant-numeric: tabular-nums; margin: 0; }
.tm-k { color: var(--tm-ink-dim); white-space: nowrap; }
.tm-v { color: var(--tm-ink); }
/* Status stays semantic — the log inherits the palette the rest of the product already uses,
   so "passed" and "failed" read the same here as everywhere else. */
.tm-k-ok { color: var(--bkz-success-ink); }
.tm-k-no { color: var(--bkz-danger-ink); }
.tm-status { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--tm-ink-dim);
  font-variant-numeric: tabular-nums; margin: 12px 0 0; }
.tm-status b { color: var(--tm-ink); font-weight: 600; }
/* The cursor. Solid under reduced motion rather than hidden — a missing cursor changes what the
   line says, where a still one only stops moving. */
.tm-cur { display: inline-block; width: 1ch; height: 1.05em; vertical-align: -.16em;
  background: var(--tm-sig); animation: tm-blink 1.06s steps(1, end) infinite; }
@keyframes tm-blink { 0%, 100% { opacity: 1; } 50% { opacity: .18; } }
/* The mark at the size nothing filled: between a 24px icon and the full-bleed field. Five rows
   of half-blocks from src/ui/logo.ts — the same artwork the CLI prints, which needs no asset,
   cannot be blocked, and resolves at any size. Verified to tile with no hairline seams in IBM
   Plex Mono at 18/26/34px, which is why it can use the product mono rather than an exception. */
/* The sprite: the logo's own pixels, in its own blues. A width, and nothing else — the SVG
   carries its colours as fill attributes and its crispness as shape-rendering, so CSS only
   decides how big the picture is. Slightly bigger than the two-glyph mark it replaces, far
   smaller than the field: the size of a stamp, not a poster. */
.tm-sprite { width: 56px; height: auto; flex: none; display: block; }
/* The reference composition: sprite on the left, log beside it, centred on each other. */
.tm-row { display: flex; align-items: center; gap: 18px; }
.tm-row-body { min-width: 0; flex: 1; }
@media (max-width: 560px) {
  /* A phone column has no room for a side seat; the sprite moves above the log. */
  .tm-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tm-sprite { width: 48px; }
}
/* Two frames fighting: `.card`/`.panel` draw `+` crosshairs at their corners. A `.tm` is a
   SIBLING of those, never a child — and if one ever lands inside, the crosshairs go, the same
   way `.stat-strip` suppresses them. */
.card > .tm::before, .card > .tm::after, .panel > .tm::before, .panel > .tm::after { display: none; }
@media (prefers-reduced-motion: reduce) { .tm-cur { animation: none; } }

/* Provider marks inside the auth buttons: sized here or they render at SVG's 300x150 default. */
.auth2-primary svg { width: 17px; height: 17px; flex: none; }

/* ---------- setup flow: each page fades into the next ----------
   Cross-document view transitions, one per navigation: the screen you are leaving fades out
   and the one you are arriving at fades in behind it, while the card itself morphs between
   the two sizes because both wear the same `view-transition-name`. That morph is why this is
   a fade rather than a swipe now — with the four steps split across four pages the card
   changes height at every step, and a card sliding sideways while it also grows reads as two
   animations fighting.

   The incoming fade is held back by a beat so the two do not cross at half opacity, which is
   what makes a cross-fade look like a dissolve instead of a swap.

   Browsers without the API (or with reduced motion) get an instant swap, which is the same
   page doing the same thing faster. */
@view-transition { navigation: auto; }
.auth2-card { view-transition-name: setup-card; }
@keyframes setup-card-out { to { opacity: 0; } }
@keyframes setup-card-in { from { opacity: 0; } }
/* THE BOX. One named element across both screens means the browser tweens the card's own
   geometry from the size it was to the size it is becoming — the card appears to grow or
   shrink into the next step rather than being swapped for a differently-sized one. This
   is what replaced pinning every step to a single height. */
::view-transition-group(setup-card) {
  animation-duration: .42s;
  animation-timing-function: var(--bkz-ease-settle);
}
/* THE CONTENT, fading inside that box while it moves.
   `height: auto` is what keeps the fade honest: by default each snapshot is stretched to
   the group's animating size, so a tall step collapsing into a short one squashes its own
   text on the way out. At natural height they keep their shape and only opacity changes. */
::view-transition-old(setup-card),
::view-transition-new(setup-card) {
  height: auto;
  width: 100%;
}
::view-transition-old(setup-card) { animation: setup-card-out .2s var(--bkz-ease-settle) both; }
::view-transition-new(setup-card) { animation: setup-card-in .3s var(--bkz-ease-settle) .12s both; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(setup-card), ::view-transition-new(setup-card) { animation: none; }
  /* And the entrance with them. This was never guarded while the card used `bkz-fade-up` — the
     guard in bkz/motion.css is written against the CLASS, and the card only borrowed the
     keyframe, so a reader who asked for no motion got the rise anyway. */
  .auth2-card { animation: none; }
}

/* ---------- invite step: address chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px 5px 11px;
  border: 1px solid var(--ui-border); background: var(--ui-chip); color: var(--ui-ink-body);
  font: 500 12px/1.2 var(--bkz-font-mono); }
/* Equal-width columns packed to the left. `1fr` stretched a handful of chips across the
   row and made a short last row look centered; auto-fill + a fixed track keeps every
   login on the left edge at every width. */
.chips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(196px, 100%), 196px));
  gap: 6px; justify-content: start; justify-items: stretch; align-items: stretch; }
.chips-grid .chip { max-width: 100%; justify-content: flex-start; text-align: left; }
/* A row of words to pick from (Settings: which findings get a draft fix, which priorities are
   acted on). Inline, wrapping, never a grid: three or five short words are a phrase, not a list. */
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
.chips-row .chip-check { padding: 6px 10px; }
/* In a narrow card the chips take the row's full width under the words, or the words are
   squeezed into a column three words wide beside them. */
.cap-card .srow:has(.chips-row) { grid-template-columns: minmax(0, 1fr); }
.cap-card .srow:has(.chips-row) .srow-r { justify-self: start; margin-top: 8px; }
.cap-card .srow:has(.chips-row) .chips-row { justify-content: flex-start; }
/* The excluded-authors picker: a filter over two chip groups, and a plain field for a name
   nobody listed. No datalist anywhere — Safari answered one with the reader's Contacts.
   Group labels reuse `.srow-group`, whose card padding would otherwise indent them. */
.ap { display: flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: left; }
.ap-filter { max-width: 420px; }
.ap-group { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }
.ap-group .srow-group { margin: 0; padding: 0; }
.ap-group .chips, .ap-group .chips-grid { width: 100%; }
.ap-other { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 420px; text-align: left; }
/* Linear's write consent on its card: switch, sentence, Save, on one line. */
.ig-write { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
/* A sub-heading inside a settings section (the editors list). */
.set-sub { margin: 14px 0 6px; font-size: var(--bkz-text-md); }
.ig-write .ig-sub { margin: 0; flex: 1; min-width: 0; }
/* The base .chip ellipsis (overflow: hidden) was silently clipping the capability
   chips' [data-tip] bubbles — the ? hovered and nothing appeared. A checkbox chip
   never ellipsizes a paragraph; its tooltip must escape. */
.chip-check { overflow: visible; }
/* The checkbox chip: box, label, one baseline, one type family — the labels used to be mono
   in one list and sans in the other, at two different chip heights. */
.chip-check { justify-content: flex-start; gap: 9px; padding: 7px 11px;
  border-radius: var(--bkz-radius-md); cursor: pointer;
  transition: border-color var(--bkz-duration-base), background var(--bkz-duration-base); }
.chip-check:hover { border-color: var(--ui-border-hover); background: var(--ui-hover); }
.chip-check input { flex: none; width: 14px; height: 14px; margin: 0; cursor: pointer;
  accent-color: var(--ui-ink-strong); }
.chip-check span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-check:has(input:checked) { border-color: var(--ui-border-hover); background: var(--ui-hover);
  color: var(--ui-ink-strong); }
.chip-check:has(input:disabled) { opacity: 0.55; cursor: default; }

.chip-x { border: 0; background: transparent; color: var(--ui-ink-faint); cursor: pointer;
  font: inherit; font-size: 14px; padding: 0 2px; line-height: 1; }
.chip-x:hover { color: var(--ui-ink-strong); }

/* The workspace-name form on the build screen: compact, one row on wide screens. */
.ob-name { flex-direction: row; align-items: end; gap: 10px; margin-top: 18px; }
.ob-name > div { flex: 1; }
.ob-name .auth2-secondary { margin-top: 0; flex: none; padding: 0 18px; }
@media (max-width: 560px) { .ob-name { flex-direction: column; align-items: stretch; } }

/* ---------- dead code: paths that are longer than their column ----------
   `apps/web/src/components/coaching/dashboard/AutomationsPanel.tsx` has no space in it, and a
   browser will not break at a slash on its own — so the cell rendered at its full width and
   ran straight under the column beside it. Wrapping is the honest fix here: truncating a path
   hides the half that identifies the file. The symbol list opposite takes the other choice —
   one line, ellipsis — because it is a sample by construction and already ends in "…".
   `align-items: start` because once one cell can be two lines, centring the row makes the
   single-line cells float. */
.dead-tbl .trow { align-items: start; padding-top: 13px; padding-bottom: 13px; }
.dead-tbl .trow > * { min-width: 0; }
.dead-tbl .trow code { display: block; white-space: normal; overflow-wrap: anywhere;
  line-height: 1.45; }
/* The path lines up with the pill beside it rather than with the top of the cell: the pill has
   3px of its own padding above the text inside it. */
.dead-tbl .trow > :first-child { padding-top: 4px; }
/* Three facts, three shapes. As one sentence they read as a caption and the split between
   "exported with no importer" and "internal with no caller" — the actionable half of the row
   — disappeared into the middle of it. */
/* The finding: a tinted pill, count first, reason in the quieter half of the same pill. */
.dead-findings { display: flex; flex-wrap: wrap; gap: 6px; }
.dead-pill { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 9px;
  border-radius: 9999px; border: 1px solid transparent; font-size: var(--bkz-text-xs);
  line-height: 1.4; white-space: nowrap; }
.dead-pill b { font-weight: 700; font-variant-numeric: tabular-nums; }
.dead-pill i { font-style: normal; opacity: 0.72; }
/* Exported with nothing importing it is the deletable kind — the one a cleanup PR acts on —
   so it carries the colour. Internal-unreachable is a finding about the inside of one file
   and stays neutral rather than competing with it. */
.dead-pill-exp { background: var(--bkz-warn-tint); color: var(--bkz-warn-ink);
  border-color: var(--bkz-warn-border); }
.dead-pill-int { background: var(--ui-trough); color: var(--ui-ink-body);
  border-color: var(--bkz-border-soft); }

.dead-more { flex: none; font-size: var(--bkz-text-xs); color: var(--bkz-muted);
  white-space: nowrap; }

/* ---------- dead code: the legible layout ----------
   The lede is the page's one sentence: the number, what it means, the one action. It replaced
   a three-tile stat strip that stated the same figure three ways and answered "so what?" with
   none of them. */
.dc-lede { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.dc-lede-n { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums;
  line-height: 1; letter-spacing: -0.02em; }
.dc-lede-t { flex: 1 1 260px; min-width: 0; }
.dc-lede-t h2 { margin: 0 0 4px; font-size: var(--bkz-text-md); font-weight: 600; }
.dc-lede-t p { margin: 0; font-size: var(--bkz-text-sm); line-height: 1.55; max-width: 62ch; }
/* The way onward, in the page's own text: the same plain labelled link the repository
   pages use for evidence. It was a bordered .btn beside the lede, which put a control's
   outline next to a sentence and read as the loudest thing on the page. */
.dc-lede-a { margin: 10px 0 0; font-size: var(--bkz-text-sm); line-height: 1.55; }
.dc-files { font-size: var(--bkz-text-sm); white-space: nowrap; }

/* The fix funnel — the console's hero row. Two cells: the big numeral (the stat tile's own
   classes, so it speaks in the strip's voice) and a classless chain cell beside it, sub
   muted below the chain. One rule; everything inside is stc-, sub and muted, already styled. */
.funnel-row { display: grid; grid-template-columns: minmax(168px, max-content) minmax(0, 1fr) 20px;
  column-gap: 28px; align-items: center; position: relative; }
/* The ROW is the door, and it says so. `.stc-go` is a caret on the right whose stretched
   target (`::after`) covers the whole row — the numeral stays a plain span, which is the
   founder's rule ("a number is a fact, not a control"). Everything the evidence column
   already links (cleanup PRs, bar tooltips) sits above the overlay so it stays reachable.

   The highlight is the OVERLAY, not the row, and it is barely there. The first pass
   tinted the whole row into a hard-edged block; the second gave it a brand wash and a
   ring, which the founder read as decoration ("vibecoded"). A door on a page of facts
   needs only enough to say "this is one": a neutral lift a few percent above the panel,
   no colour, no ring, inset from the content and short of the divider — and the caret
   comes up to full ink. Nothing else moves. */
.stc-go { justify-self: end; align-self: center; margin: 0; padding: 0 0 0 8px;
  font-size: var(--bkz-text-lg); font-weight: 400; line-height: 1;
  color: var(--ui-ink-muted); text-decoration: none; transition: color .14s ease; }
.stc-go::after { content: ""; position: absolute; inset: -10px -14px -12px -14px;
  border-radius: 6px; background: transparent; transition: background .14s ease; }
/* A lane below another carries 28px of top padding for the divider; the highlight starts
   under it, not on it. */
.funnel-row + .funnel-row .stc-go::after { top: 18px; }
.funnel-row:hover .stc-go::after, .stc-go:focus-visible::after {
  background: color-mix(in srgb, var(--ui-ink-strong) 3%, transparent); }
.funnel-row:hover .stc-go, .stc-go:focus-visible { color: var(--ui-ink-strong);
  text-decoration: none; outline: none; }
.fmid a, .fmid .fbar, .fmid .flegend, .fmid .live-sweep { position: relative; z-index: 1; }
/* The Activity halves: the chip leads each, flush with the header, the chart under it.
   A hairline between them — the same rule the funnel lanes use, stood on its side. */
.page-overview .panel > .insights, .page-home .panel > .insights { margin-top: 0; gap: 34px; position: relative; }
.page-overview .panel > .insights.ins-2::after, .page-home .panel > .insights.ins-2::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 0.5px); width: 1px;
  background: var(--bkz-border-soft); pointer-events: none;
}
@media (max-width: 1100px) {
  .page-overview .panel > .insights.ins-2, .page-home .panel > .insights.ins-2 {
    grid-template-columns: minmax(0, 1fr); gap: 0;
  }
  .page-overview .panel > .insights.ins-2::after, .page-home .panel > .insights.ins-2::after { display: none; }
  .page-overview .insights.ins-2 > .ntu, .page-home .insights.ins-2 > .ntu {
    margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--bkz-border-soft);
  }
}
.insights .ag-stat { padding: 0; }
.ag-stat-s { display: block; margin-top: 2px; font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); }
.ag-go { margin-top: 2px; font-size: var(--bkz-text-xs); font-weight: 500; color: var(--ui-ink-muted); text-decoration: none; }
.ag-go:hover { color: var(--brand-ink); text-decoration: none; }

/* A collapsed appendix: cursor, muted, no marker — the .dc-file summary contract, for the
   overview's "More" and the repo page's Agents fold. */
/* ---------- the funnel, drawn ----------
   Stage bars in one unit per lane, a legend that names every stage with its number, and
   the lane's daily pulse as per-day columns. Ramps run light-to-dark toward the stage a
   customer can bank; adjacent steps validated for separation on this surface (monotonic
   lightness, >17ΔE between neighbours), and the deep first step leans on its label and
   the gaps rather than on contrast alone. The dead-code lane is RED, not amber — the
   founder's call, and red is the lane's own verdict on the code it counts. A legend item
   whose stage is zero keeps its words but dims its dot: the honest count, without a
   full-strength swatch promising a bar that is rightly absent. */
/* `.dash-hero` is gone with the wrapper it dressed. It existed to put 12px between two
   funnel PANELS; the two lanes are one panel now, and the page's between-box spacing is
   `.stack` — one gap, declared once, instead of a per-band margin that every other band
   on the page lacked (which is what made some boxes touch and others drift apart). */
.stc-n-zero { color: var(--bkz-muted); }
.funnel-row .stc-l { font-size: var(--bkz-text-sm); }
.funnel-row > .stc { gap: 8px; }
.flegend { display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: var(--bkz-text-md);
  color: var(--ui-ink-body); align-items: center; word-spacing: 0.06em; }
.flegend .tag { align-self: center; }
/* One legend entry: the dot and its label breathe as a unit, so wrapping never
   separates a swatch from the words that explain it. */
.fleg { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
/* On a phone an entry wraps inside itself (the dot still leads its words) instead of running
   off the screen: "217 lines proposed in open PRs (3)" was wider than a 390px lane. */
@media (max-width: 700px) {
  .fleg { white-space: normal; min-width: 0; max-width: 100%; }
  /* The lane stacks on a phone: the headline, then its evidence at the full width, with the
     row's caret beside both. Side by side, the evidence had a hundred pixels and ran off the
     screen (or, wrapped, read one word a line). */
  .funnel-row { grid-template-columns: minmax(0, 1fr) 20px; row-gap: 16px; }
  .funnel-row > .fmid { grid-column: 1; grid-row: 2; }
  .funnel-row > .stc-go { grid-column: 2; grid-row: 1 / span 2; }
}
.fdot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex: none; }
.fleg.fz .fdot { opacity: .4; }
/* The lane reads top to bottom as legend → bar → sentence, and each step needs a gap big
   enough to be a step. At 9px/2px the three ran together as one dense block — the founder's
   word was compact — and the bar in particular sat close enough to the words above it to
   look like their underline. */
.fbar { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.funnel-row .fmid { display: flex; flex-direction: column; gap: 14px;
  padding-top: 0; min-height: 0; justify-content: center; }
/* A sweep that is running, and only then: a green pill instead of a paragraph. */
.live-sweep { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  padding: 8px 14px 8px 12px; border-radius: 6px;
  background: var(--bkz-success-tint); color: var(--bkz-success-ink);
  border: 1px solid var(--bkz-success-border);
  font-size: var(--bkz-text-sm); font-weight: 600; letter-spacing: 0.04em; line-height: 1.3; }
/* Beside the lane name, left of the › caret — not pushed into the evidence column. */
.funnel-row > .stc .live-sweep { margin-left: 8px; padding: 4px 10px 4px 8px;
  font-size: var(--bkz-text-xs); align-self: center; }
.live-sweep-dot { width: 8px; height: 8px; flex: none; border-radius: 9999px;
  background: var(--bkz-success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bkz-success) 22%, transparent);
  animation: live-sweep-blink 1.4s ease-in-out infinite; }
@keyframes live-sweep-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .live-sweep-dot { animation: none; } }
.fbar > span { display: block; height: 16px; border-radius: 4px; overflow: hidden;
  background: var(--ui-trough); }
/* Tickets is a partition of one queue, so the parts sit on one track. Independent
   tracks scaled each count against the largest and made 6 look longer than 19. */
.fbar-share { flex-direction: row; gap: 0; height: 16px; border-radius: 4px; overflow: hidden;
  background: var(--ui-trough); }
/* Status under the bar — same pill language as the legend tags, not a muted caption. */
.fmid > .sub { display: inline-flex; align-self: flex-start; align-items: center;
  margin-top: 0; padding: 3px 9px; border: 1px solid var(--ui-border);
  background: var(--ui-sunk); color: var(--ui-ink-muted);
  font: 500 10.5px/1.6 var(--bkz-font-mono); letter-spacing: 0.04em; }
.fbar i { display: block; height: 100%; border-radius: 4px; }
.fbar-share i { border-radius: 0; }
.fi-1 { background: #24455e; } .fi-2 { background: #2681c4; } .fi-3 { background: #7cc0ea; }
.fd-1 { background: #5e2a28; } .fd-2 { background: #c04b42; } .fd-3 { background: #f2948c; }
[data-theme="light"] .fi-3 { background: #155a86; } [data-theme="light"] .fi-1 { background: #9cc3e0; }
[data-theme="light"] .fd-3 { background: #7a2d26; } [data-theme="light"] .fd-1 { background: #f0b6b0; }
/* The lane's pulse as columns (the founder prefers bars, and daily counts ARE discrete):
   flex children share the width, zero days keep a 1px trough-colored stub via min-height
   so the axis still reads as days. */
.fmid { min-width: 0; }

.fold > summary { cursor: pointer; list-style: none; color: var(--bkz-muted);
  font-size: var(--bkz-text-sm); padding: 4px 0; }

/* One bar per repository: how much of ITS OWN indexed code is unreachable. A percentage a
   maintainer can feel, drawn instead of said — the five-fact caption it replaced made every
   row a paragraph. */
.dc-repo { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.dc-bar { display: block; height: 4px; max-width: 260px; border-radius: 9999px;
  background: var(--ui-trough); overflow: hidden; }
.dc-bar i { display: block; height: 100%; border-radius: inherit;
  background: var(--bkz-warn-ink); opacity: 0.75; }

/* Each file is a disclosure: the row states the finding, the names wait behind the click.
   The summary reuses the trow grid so the section reads as one table; the marker is the
   name-count on the right — a "164 names" a reader chooses to open, not a flood they scroll
   past. */
.dc-file > summary { cursor: pointer; list-style: none;
  /* Its own three columns: path, findings, the name-count affordance. Inheriting the
     two-column trow grid wrapped the affordance onto a second line of its own. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; align-items: center; }
.dc-file > summary::-webkit-details-marker { display: none; }
.dc-file > summary .dead-findings { justify-content: flex-start; }
.dc-open { font-size: var(--bkz-text-xs); white-space: nowrap; justify-self: end; }
.dc-open::after { content: ' \203A'; display: inline-block; transform: rotate(0deg);
  transition: transform var(--bkz-duration-base); }
.dc-file[open] > summary .dc-open::after { transform: rotate(90deg); }
.dc-file:hover > summary { background: var(--ui-hover); }
/* Open, the names wrap — inside a disclosure the reader asked for the whole list, and a
   capped "+N more" still names what was withheld. */
.dc-names { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 16px 14px;
  border-bottom: 1px solid var(--bkz-border-soft); }
.dc-names code { padding: 1px 6px; border-radius: var(--bkz-radius-sm);
  background: var(--ui-trough); color: var(--ui-ink-muted); font-size: var(--bkz-text-xs); }

/* ---------- sidebar: the two ways to widen the grant ----------
   One line, two equal buttons, deliberately smaller than a rail row: adding is a thing you do
   twice, and the repositories above are the thing you do all day. This replaced a full-width
   row plus a disclosure that unfolded every granted-but-off repository — sixty-one of them on
   a real grant — which made "add another" the longest thing in the sidebar. */
/* 2px under the row put the buttons on top of whatever rail link follows, so the pair read as
   the heading of that link rather than as their own control. The space below is what separates
   them; the space between them is what makes them two. */
/* The section label with its one control: REPOSITORIES ＋ — the door to adding and
   managing the pool, riding the label instead of standing as its own row. */
.sb-label-row { display: flex; align-items: center; justify-content: space-between; }
/* One line, always. "Repositories 3/53 on" is a single phrase; wrapped, the count landed
   under the word and read as a second, nameless row above the list. The rail's floor
   (--rail-min) is set so this never has to truncate — but if a longer denominator or a
   larger text size ever outgrows it, an ellipsis is the failure mode, not a fold. */
.sb-label-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-label-add { flex: none; display: flex; width: 20px; height: 20px; align-items: center;
  justify-content: center; border-radius: var(--bkz-radius-md); font-size: 13px; line-height: 1;
  color: var(--bkz-ink-slate); text-decoration: none; text-transform: none;
  transition: all var(--bkz-duration-base); }
.sb-label-add:hover { background: var(--ui-hover); color: var(--bkz-ink-strong); text-decoration: none; }
/* The workspace row's gear: settings in one icon, lit on the settings-family pages. */
.sb-ws-gear { flex: none; display: flex; width: 32px; height: 32px; align-items: center;
  justify-content: center; border-radius: var(--bkz-radius-md); color: var(--ui-ink-faint);
  transition: all var(--bkz-duration-base); }
.sb-ws-gear svg { width: 18px; height: 18px; }
.sb-ws-gear:hover { background: var(--ui-hover); color: var(--ui-ink-strong); }
.sb-ws-gear.on { color: var(--brand-ink); background: var(--brand-soft); }

/* Rail modal — the two add buttons open an overlay above the page rather than navigating.
   The :target trick keeps this JS-free for open/close; a tiny inline script only swaps the
   iframe src so /repos and /github/grant don't load until the modal is actually opened. */
/* `.is-open` is the real switch; `:target` stays as the no-JS path. The node is reparented to
   <body> when it opens — rendered where it is authored, inside `.sidebar`, its z-index only
   ever competed inside that rail's own `z-index: 40` stacking context. */
.rail-modal { display: none; position: fixed; inset: 0; z-index: 1000; }
.rail-modal:target, .rail-modal.is-open { display: block; }
.rail-modal-on { overflow: hidden; }
.rail-modal-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.rail-modal-card { position: relative; margin: 5vh auto; width: min(960px, 92vw);
  height: 86vh; background: var(--bkz-bg, #fff); border: 1px solid var(--ui-border);
  border-radius: var(--bkz-radius-lg, 8px); box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display: flex; flex-direction: column; overflow: hidden; }
.rail-modal-head { display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--bkz-border-soft);
  font-weight: 600; color: var(--bkz-ink-strong); }
.rail-modal-x { font-size: 20px; line-height: 1; color: var(--bkz-ink-slate);
  text-decoration: none; padding: 2px 8px; border-radius: var(--bkz-radius-md); }
.rail-modal-x:hover { background: var(--ui-hover); color: var(--bkz-ink-strong); }
.rail-modal-frame { flex: 1 1 auto; width: 100%; border: 0; background: var(--bkz-bg, #fff); }

/* A sixty-two row pick list scrolls, and the control that acts on it must not scroll away
   with it. The search box and the count header stay at the top of the list; the one button
   that does the work stays at the bottom, over an opaque ground so rows pass behind it
   rather than through it. Everything stays in normal flow — no fixed positioning — so the
   form is unchanged with no CSS and the button is still the last thing in the tab order. */
.pick-form { --pick-ground: var(--bkz-bg); --pick-filter: 44px; }
/* Onboarding renders the repository picker on a card, which is a different ground. Naming
   it as a token rather than repeating the rules keeps one set of sticky rules for every
   picker: repositories at /repos, and integration sources at /integrations/*/sources. */
.auth2-card .pick-form { --pick-ground: var(--ui-surface); }
/* The band is held to the token rather than left to whatever the input measures, because the
   header below pins to that same token. Left to measure, the two disagree by a few pixels and
   the difference is a window onto the rows sliding behind them. */
.pick-form .ob-search { position: sticky; top: 0; z-index: 3;
  background: var(--pick-ground); padding: 2px 0; box-sizing: border-box;
  min-height: var(--pick-filter); }
/* `clip` where .tbl says `hidden` to round its corners. `hidden` also makes the table a
   scroll container, and a sticky header resolves its offsets against the nearest one — so the
   header stuck to a box that never scrolls, which is to say it never stuck at all and scrolled
   off the top with the rows. `clip` rounds the same corners without becoming a scrollport.
   Unsupported, the declaration is dropped and `hidden` stands, which is where this started. */
.pick-form .tbl { overflow: clip; }
.pick-form .trow-h { position: sticky; top: 0; z-index: 2; }
/* Offset only where a filter box is actually above it — the repositories picker has one,
   the sources picker does not. A sibling selector rather than :has(), so a browser without
   :has() gets the header in the right place instead of a 48px gap rows scroll under. The
   offset is the filter box's own height, one token shared with it: as two hand-tuned numbers
   they drifted 6px apart, and rows showed through the difference. */
.pick-form .ob-search ~ .tbl .trow-h { top: var(--pick-filter); }
/* The one control that acts on the whole list, kept in reach of the bottom of it. Padded
   and grounded so rows pass behind it rather than through it. */
/* The BAND is sticky and carries the ground; the button inside it keeps its own colour.
   Both were in this selector, so `background: var(--pick-ground)` painted the card's own
   surface straight over `.auth2-primary`'s accent — the submit rendered as a dark rectangle
   with its label in on-accent ink against the wrong ground, which is the "black box with no
   text" this was reported as. A band needs an opaque backdrop; a button needs to look like a
   button, and one rule cannot be both. */
.pick-form .btn-row { position: sticky; bottom: 0; z-index: 3;
  background: var(--pick-ground); box-shadow: 0 -10px 20px -12px rgba(0, 0, 0, .55);
  padding: 12px 0; margin-top: 0; }
.pick-form .btn-row .auth2-primary { width: 100%; }

/* The page INSIDE that frame. `.main` reserves 280px for a sidebar; there is no sidebar in a
   modal, so the reserved column would have been an empty strip down the left of the box. The
   grid rails go too — they read as the edge of the application, and the modal card already
   has an edge. */
.main.modal-body { min-height: 0; padding-left: 0; background-image: none; }
.main.modal-body .main-inner { padding: 20px 24px 32px; border-left: 0; border-right: 0; }
.main.modal-body .main-inner::before, .main.modal-body .main-inner::after { display: none; }

/* ---------- integrations: the signal-source gallery ----------
   Grouped cards, each a signal source Breken will read; the Connect button exists so the
   page is honest about the shape of what ships, greyed because none of it does yet. */
.ig-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  margin: 12px 0 26px; }
.ig-card { display: flex; align-items: flex-start; gap: 16px; padding: 18px;
  border: 1px solid var(--ui-border); background: var(--ui-surface); box-shadow: var(--ui-shadow-sm); }
.ig-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ig-state { font: 500 10px/1.6 var(--bkz-font-mono); text-transform: uppercase;
  letter-spacing: .1em; color: var(--ui-ink-faint); }
.ig-state.ok { color: var(--bkz-success-ink); }
.ig-logo { flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-top: 1px; border: 1px solid var(--ui-border); background: var(--ui-sunk);
  color: var(--ui-ink-soft); }
.ig-logo-own { border-color: var(--ui-brand-border); background: var(--brand-soft); }
.ig-mark { width: 24px; height: 24px; }
.ig-own-mark { width: 18px; height: 8px; flex: none; display: block; }
/* First-party Runtime: the cream primary is every other Connect on this page. This one
   wears the brand fill and the glyph pair so it is visibly ours. */
.btn.ig-own {
  background: var(--brand); color: #fff; border-color: transparent; font-weight: 600;
}
.btn.ig-own:hover { background: color-mix(in srgb, var(--brand) 78%, #fff); color: #fff;
  text-decoration: none; }
.ig-body { flex: 1; min-width: 0; }
.ig-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ig-name { display: block; font-weight: 650; line-height: 1.2; color: var(--ui-ink-strong); }
.ig-sub { margin: 0; font-size: var(--bkz-text-sm); line-height: 1.5; color: var(--ui-ink-muted); }
.ig-body .tag { margin-top: 8px; }
/* Why the button beside it is dead, in the smallest type on the card. */
.ig-need { display: block; margin: 0; font-family: var(--bkz-font-mono); line-height: 1.2;
  font-size: var(--bkz-text-xs); color: var(--ui-ink-faint); }
/* A connected card offers more than one thing to do, so the controls stack at a fixed width
   rather than sitting in a row that reflows every time a label changes length. The width is
   set by the longest label rather than the common one — .btn is nowrap, so a label that
   outgrows this column overflows its own border instead of wrapping inside it. */
.ig-actions { flex: none; display: flex; flex-direction: column; gap: 6px; align-items: stretch;
  width: 152px; align-self: center; }
.ig-actions form { margin: 0; display: contents; }
.ig-actions .btn { width: 100%; }
.ig-actions .btn:disabled { opacity: .45; cursor: not-allowed; }
.ig-actions .btn:disabled:hover { transform: none; }
/* The card's overflow: Sync now and Disconnect behind one "⋯", same disclosure idiom as
   the rail's flyouts. The summary wears .btn so the pair reads as one control column. */
.ig-more { position: relative; }
.ig-more-btn { width: 100%; display: flex; align-items: center; justify-content: center;
  list-style: none; cursor: pointer; }
.ig-more-btn::-webkit-details-marker { display: none; }
.ig-more-menu { position: absolute; right: 0; top: calc(100% + 4px); min-width: 152px;
  display: flex; flex-direction: column; padding: 5px; z-index: 45;
  background: var(--ui-surface); border: 1px solid var(--ui-border); box-shadow: var(--ui-shadow); }
details.ig-more[open] > .ig-more-menu { animation: sb-flyout 160ms var(--bkz-ease-settle); }
.ig-more-menu form { display: block; margin: 0; }
.ig-more-item { display: block; width: 100%; border: 0; background: transparent; font: inherit;
  font-size: var(--bkz-text-md); color: var(--bkz-ink-strong); text-align: left; cursor: pointer;
  padding: 7px 10px; border-radius: var(--bkz-radius-md);
  transition: background var(--bkz-duration-base); }
.ig-more-item:hover { background: var(--ui-hover); }

/* ---------- the product's own dropdown ----------
   A details-flyout of GET links wearing the pill it opens from. Replaces the platform
   <select> (which rendered macOS chrome into the product and, via form.submit(), forced a
   full browser reload on every choice — the client router never saw it). Links prefetch
   on hover and swap in place, so choosing a filter is instant. */
.dd { position: relative; }
.dd > summary { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0;
  cursor: pointer; list-style: none; }
.dd > summary::-webkit-details-marker { display: none; }
.dd-cur { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: left; }
.dd-chev { flex: none; color: var(--ui-ink-faint);
  transition: transform var(--bkz-duration-base) var(--bkz-ease-settle); }
.dd[open] .dd-chev { transform: rotate(180deg); }
.dd-menu { position: absolute; left: 0; top: calc(100% + 6px); min-width: 100%; max-width: 380px;
  max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; padding: 5px;
  z-index: 60; background: var(--ui-surface); border: 1px solid var(--ui-border);
  border-radius: var(--bkz-radius-md); box-shadow: var(--ui-shadow); }
details.dd[open] > .dd-menu { animation: sb-flyout 160ms var(--bkz-ease-settle); }
/* A closed picker's menu is not on the page. Laid out (absolutely, off its picker's left edge),
   it still counted towards the page's width: at 390px the repository picker's hidden list pushed
   Home to 512px wide and the whole page scrolled sideways. Open, it never runs past the screen. */
details.dd:not([open]) > .dd-menu { display: none; }
.dd-menu { max-width: min(380px, calc(100vw - 32px)); }
.dd-item { flex: none; padding: 7px 10px; border-radius: var(--bkz-radius-sm);
  color: var(--bkz-ink-strong); text-decoration: none; font-size: var(--bkz-text-md);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-item:hover { background: var(--ui-hover); text-decoration: none; color: var(--bkz-ink-strong); }
.dd-item.on { background: var(--brand-soft); color: var(--brand-ink); }
/* ---------- the same menu as a form field: every single-value choice, everywhere ----------
   `menu()` in src/ui/kit.ts. The summary wears `.input`'s clothes so it sits in a form like
   the select it replaces; the list is `.dd-menu` above, unchanged, so a reader cannot tell a
   filter pill's menu from a settings field's. The options are real radios: the value posts
   with no script, and the radio is the state — it is never the thing you look at. */
.dd-field { display: block; width: 100%; min-width: 0; }
.dd-field > summary { padding: 8px 12px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md);
  background: var(--ui-surface); color: var(--ui-ink-strong); font-size: var(--bkz-text-base); line-height: 1.3;
  transition: border-color var(--bkz-duration-base) var(--bkz-ease-settle), box-shadow var(--bkz-duration-base); }
.dd-field > summary:hover { border-color: var(--ui-border-hover); }
.dd-field > summary:focus-visible, .dd-field[open] > summary { border-color: var(--ui-ink-strong); box-shadow: 0 0 0 1px var(--ui-tint-10); outline: none; }
/* The dense size, beside a small button. */
.dd-field.dd-sm > summary { padding: 5px 8px; font-size: var(--bkz-text-sm); }
.dd-field .dd-menu { max-width: none; }
/* A viewer who may look but not change: the radios are disabled and the summary is inert. */
.dd-off > summary { opacity: .5; pointer-events: none; }
label.dd-item { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.dd-item input { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.dd-item:has(input:checked) { background: var(--brand-soft); color: var(--brand-ink); }
/* Keyboard reaches the option through the hidden radio, so the ring lives on the row. */
.dd-item:has(input:focus-visible) { background: var(--ui-hover); box-shadow: inset 0 0 0 1px var(--ui-border-hover); }
.dd-item:has(input:disabled) { color: var(--ui-ink-faint); cursor: default; }
/* A menu opened inside a clipping box escapes it while it is open — the tables, and every
   card and row that clips its corners. Listed, not `*`, so a scroll region stays a scroll
   region; add the container here when a menu is first put inside a new one.
   `.onb-list` is setup's rounded list: the fix-PRs-a-day menu opened inside it and its
   options were cut off at the list's bottom edge, under "Go to dashboard". The test
   dropdowns-escape-their-container renders the real setup page and fails when a menu sits
   inside a clipping class that is missing here. */
.tbl:has(details.dd[open]), .wrap:has(details.dd[open]), .panel:has(details.dd[open]), .cap-card:has(details.dd[open]),
.set-sec:has(details.dd[open]), .set-list:has(details.dd[open]), .srow:has(details.dd[open]), .srow-r:has(details.dd[open]),
.gd-card:has(details.dd[open]), .gd-dismiss:has(details.dd[open]), .rt-card:has(details.dd[open]), .cn-form:has(details.dd[open]),
.pending-queue-head:has(details.dd[open]), .admin-pending-queue:has(details.dd[open]), .page-workers:has(details.dd[open]),
.ops-set-card:has(details.dd[open]), .onb-list:has(details.dd[open]) { overflow: visible; }
/* Opened near the bottom of the screen, a menu opens upwards when there is room above it
   (menu.js decides, on open). The pager's menu always does, from its own rule below. */
details.dd.dd-up > .dd-menu { top: auto; bottom: calc(100% + 6px); }

/* ---------- rail: drag-to-reorder ----------
   The grip shares the status dot's slot: at rest the dot speaks; under the pointer the
   grip fades in and the dot yields. Only the grip drags (sidebar.js), so the row's own
   click always navigates. While dragging, the row lifts and its siblings reflowing ARE
   the drop indicator. */
/* The grip keeps its slot at all times and only its VISIBILITY turns on. It used to be
   `display: none` and to swap places with the dot on hover, which worked while the two
   shared the row's right end; with the dot moved to the front there is nothing to swap
   with, and toggling display would reflow the name under the pointer on every hover. */
.sb-repo { display: flex; align-items: center; min-width: 0; border-radius: 0; }
.sb-repo .sb-link { width: auto; flex: 1 1 0; min-width: 0; background: transparent; }
.sb-repo .sb-link:hover, .sb-repo .sb-link.on { background: transparent; }
.sb-repo:hover { background: var(--ui-hover); }
.sb-repo.on { background: var(--brand-soft); color: var(--brand-ink); }
.sb-repo.on .sb-link { color: var(--brand-ink); }
.sb-repo-tools { display: flex; align-items: center; flex: none; gap: 2px; padding-right: 8px; }
.sb-repo-del { flex: none; margin: 0; }
/* Removed on the click: faded and inert until the fresh rail arrives (confirm.js, data-confirm-hides). */
.sb-repo.is-removing { opacity: .3; pointer-events: none; transition: opacity .15s ease-out; }
.sb-repo-x { visibility: hidden; display: flex; width: 20px; height: 20px; align-items: center;
  justify-content: center; border: 0; border-radius: 0; padding: 0; background: transparent;
  color: var(--ui-ink-faint); cursor: pointer; font-size: 16px; line-height: 1; box-shadow: none; }
.sb-repo:hover .sb-repo-x, .sb-repo:focus-within .sb-repo-x { visibility: visible; }
.sb-repo-x:hover { color: var(--bkz-danger-ink); }
.sidebar.collapsed .sb-repo-del { display: none; }
.sb-grip { display: block; visibility: hidden; flex: none; width: 14px; text-align: center;
  font-family: var(--bkz-font-mono); font-size: 11px; line-height: 1;
  color: var(--ui-ink-faint); cursor: grab; user-select: none; touch-action: none;
  transition: color var(--bkz-duration-base); }
.sb-link:hover .sb-grip, .sb-repo:hover .sb-grip { visibility: visible; }
.sb-grip:hover { color: var(--ui-ink-strong); }
/* No hover means the grip would never appear and the rail could never be reordered at
   all on touch, so there it simply stands. */
@media (hover: none) {
  .sb-grip, .sb-repo-x { visibility: visible; }
}
/* transition: NONE, and it is the whole feature: .sb-link carries `transition: all`, so
   the drag's per-move transform updates were being EASED — the row trailed the cursor,
   rubber-banded, and read as random stalls. A grabbed row tracks the pointer raw. */
.sb-link.dragging, .sb-repo.dragging, .sb-repo-fold.dragging { transition: none; will-change: transform; position: relative; z-index: 48; background: var(--ui-surface);
  box-shadow: var(--ui-shadow); cursor: grabbing;
  /* The rail rows carry `transition: all`; left on, it applies to the glue transform and
     the grabbed row rubber-bands a full beat behind the pointer. The glue must be raw. */
  transition: none; }
.sb-link.dragging .sb-grip, .sb-repo.dragging .sb-grip, .sb-repo-fold.dragging .sb-grip { visibility: visible; color: var(--brand-ink); cursor: grabbing; }
.sb-repo.dragging .sb-repo-x, .sb-repo-fold.dragging .sb-repo-x { visibility: hidden; }
/* Siblings mid-reorder move only via the WAAPI slides; their base transition easing any
   leftover transform reset would fight those. */
body.is-rail-reordering .sb-scroll .sb-link { transition: none; }
body.is-rail-reordering { cursor: grabbing; user-select: none; }
/* Mid-drag, rows must not light up as the lifted row passes over them — hover feedback
   on a list being rearranged reads as flicker, not affordance. */
body.is-rail-reordering .sb-link:not(.dragging):hover,
body.is-rail-reordering .sb-repo:not(.dragging) .sb-link:hover { background: transparent; }

/* The agents panel's ROI strip: four checkable facts, before any receipt. */
.ag-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px;
  padding: 14px 18px 4px; }
.ag-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* One gutter, and enough of it.
   `.panel` pads 18px and `.ag-stats` padded another 18px inside it, so the figures sat on a
   different left edge from the heading above them and the list below — three gutters in one
   card, the widest of them still tight against the border. This is one measurement for every
   child, wide enough that the text is not reading off the edge of its own panel. */
.panel-roomy { padding: 22px 26px 26px; }
/* `>` reached the children directly until the panel's body moved inside a `<details>` fold.
   These now match either shape — a direct child, or a child of the fold — so folding a roomy
   panel does not silently return it to the tight gutter it was widened to escape. */
.panel-roomy > .ag-stats, .panel-roomy > .fold > .ag-stats {
  padding: 12px 0 4px;
  gap: 12px 20px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.panel-roomy .ag-stat { gap: 4px; }
.panel-roomy .ag-stat-n { font-size: var(--bkz-text-xl); }
.panel-roomy > .sub, .panel-roomy > .fold > .sub {
  padding: 0; margin: 12px 0 0; max-width: 72ch;
  line-height: 1.5; color: var(--ui-ink-muted);
}
.panel-roomy > .botlist, .panel-roomy > .fold > .botlist { margin-top: 8px; }
.panel-roomy > .botlist .botrow,
.panel-roomy > .fold > .botlist .botrow { padding: 18px 16px; }
.panel-roomy .botrow-title { gap: 6px; }
.panel-roomy .botrow-sub { margin-top: 0; line-height: 1.45; }
.panel-roomy .botrow-title > .botrow-sub:last-of-type {
  font-size: var(--bkz-text-xs); color: var(--ui-ink-faint);
}

.ag-stat-l { font-size: var(--bkz-text-2xs); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--bkz-ink-slate); }
.ag-stat-n { font-size: var(--bkz-text-2xl); font-weight: 700; color: var(--bkz-ink-strong); }
.ag-stat-s { font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); }
/* The call log folds: the strip above is the summary, receipts are the appendix. */
.ag-log > .ag-log-s { padding: 12px 18px; cursor: pointer; list-style: none;
  font-size: var(--bkz-text-sm); color: var(--ui-ink-muted);
  border-top: 1px solid var(--bkz-border-hairline);
  transition: color var(--bkz-duration-base); }
.ag-log-s::-webkit-details-marker { display: none; }
.ag-log-s::before { content: "▸ "; }
.ag-log[open] > .ag-log-s::before { content: "▾ "; }
.ag-log-s:hover { color: var(--ui-ink-strong); }
/* Compact call rows: one line, tight, the timestamp pinned right and never wrapping. */
.ag-call { padding-top: 7px; padding-bottom: 7px; }
.ag-call .botrow-title { font-size: var(--bkz-text-sm); }
.ag-call .ag-when { margin-left: auto; white-space: nowrap; font-size: var(--bkz-text-xs); }

/* The chained "Show 10 more" steps inside the log — same summary dress as the outer fold. */
.ag-more > .ag-log-s { padding: 10px 18px; cursor: pointer; list-style: none;
  font-size: var(--bkz-text-sm); color: var(--ui-ink-muted);
  border-top: 1px solid var(--bkz-border-hairline);
  transition: color var(--bkz-duration-base); }
.ag-more[open] > .ag-log-s::before { content: "▾ "; }

/* The excluded-authors overflow: five chips lead, the rest wait behind one line. */
.chips-more { margin-top: 6px; }
.chips-more-s { cursor: pointer; list-style: none; font-size: var(--bkz-text-sm);
  color: var(--ui-ink-muted); transition: color var(--bkz-duration-base); }
.chips-more-s::-webkit-details-marker { display: none; }
.chips-more-s::before { content: "▸ "; }
.chips-more[open] > .chips-more-s::before { content: "▾ "; }
.chips-more-s:hover { color: var(--ui-ink-strong); }
.chips-more > .chips { margin-top: 6px; }
.ig-err { color: var(--bkz-danger-ink); }
.ig-now { font: 600 10px/1.6 var(--bkz-font-mono); text-transform: uppercase; letter-spacing: .1em;
  color: var(--brand-ink); }
.ig-card-now { border-color: var(--ui-brand-border); }
/* Dimming is the disabled state, not the class. When every card was a dead button the two
   were the same thing; now that a connectable provider renders a real link, an unscoped
   opacity would grey out the one control on the page that works. */
.ig-connect { flex: none; }
.ig-connect:disabled { opacity: .45; cursor: not-allowed; }
.ig-connect:disabled:hover { transform: none; }
/* The one visit where this gallery is a step rather than a destination: a notice saying why the
   flow stopped here, and a Continue under the cards. Both widths track .ig-grid so the step
   frames the cards instead of running past them. */
.ig-step { max-width: 900px; align-items: flex-start; }
.ig-step .ig-answer { flex: none; }
.ig-x { padding: 0 10px; font-size: var(--bkz-text-lg); line-height: 30px; }
.ig-step-go { max-width: 900px; margin-top: 4px; gap: 14px; }
.ig-step-go .muted { font-size: var(--bkz-text-sm); }

/* ---------- connect a pasted-key or brokered provider ----------
   Two inputs and a sentence about what happens to the key. It read as a wall because the
   panel took the full content width — a 1000px text box under a three-word label — and every
   line in it was the same size. Capped to reading width, with the gap between fields larger
   than the gap inside one, so a label belongs to the input under it by proximity. */
.cn-lede { margin: 6px 0 20px; max-width: 62ch; font-size: var(--bkz-text-md);
  line-height: 1.6; color: var(--ui-ink-muted); }
.cn-err { margin: 0 0 16px; }
.cn-form { max-width: 560px; padding: 24px 26px; }
.cn-form .field { margin-bottom: 24px; }
.cn-form .input { padding: 10px 12px; }
/* Set off from the fields: it is a statement about the key, not another thing to fill in. */
.cn-note { margin: 0; padding-top: 18px; border-top: 1px solid var(--bkz-border-hairline);
  font-size: var(--bkz-text-sm); line-height: 1.55; color: var(--ui-ink-faint); }
.cn-form .btn-row { margin-top: 18px; }

@media (max-width: 900px) {
  .ig-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- repositories admin: rows with air ----------
   Name and map state only; feature choices live in Settings. */
.repo-manage-note { margin: 0; padding: 0 18px 14px; color: var(--ui-ink-muted); font-size: var(--bkz-text-sm); }
.rar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  gap: 24px; align-items: center; padding: 16px 18px;
  border-top: 1px solid var(--bkz-border-hairline); }
.rar:first-of-type { border-top: 0; }
.rar-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rar-state { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.rar-state .idx-meter { align-items: flex-start; }
.rar-state > .sub { margin: 0; font-size: var(--bkz-text-xs); line-height: 1.5; }
.rar-act { flex: none; margin: 0; }
@media (max-width: 680px) {
  .rar { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 12px; }
  .repo-manage-note { padding: 0 12px 14px; }
}
/* The review switch: state you can read, action you can press, one control. */
.swt { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent;
  padding: 4px 2px; cursor: pointer; font: inherit; color: var(--bkz-ink-slate); }
.swt-lbl { font-size: var(--bkz-text-xs); font-weight: 500; }
.swt-track { display: inline-flex; align-items: center; width: 30px; height: 16px; padding: 2px;
  border-radius: 999px; background: var(--ui-trough); border: 1px solid var(--bkz-border-soft);
  transition: background var(--bkz-duration-base), border-color var(--bkz-duration-base); }
.swt-knob { width: 12px; height: 12px; border-radius: 50%; background: var(--ui-ink-faint);
  transition: transform var(--bkz-duration-base), background var(--bkz-duration-base); }
.swt.on { color: var(--bkz-ink-strong); }
.swt.on .swt-track { background: var(--brand-soft); border-color: var(--brand-ink); }
.swt.on .swt-knob { transform: translateX(12px); background: var(--brand-ink); }
.swt:hover .swt-track { border-color: var(--ui-border-hover); }
/* One quiet sentence under a panel heading, explaining the panel's own rules. */
.panel-sub { margin: 0 0 10px; color: var(--ui-ink-muted); }
/* The switch as a form CHECKBOX (the button variant above posts a whole form): the input
   hides, :checked drives the same track/knob look, and the label is the hit target. */
.swt-check { position: relative; }
.swt-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.swt-check input:checked ~ .swt-track { background: var(--brand-soft); border-color: var(--brand-ink); }
.swt-check input:checked ~ .swt-track .swt-knob { transform: translateX(12px); background: var(--brand-ink); }
.swt-check input:disabled ~ .swt-track { opacity: .5; cursor: default; }
.swt-check input:focus-visible ~ .swt-track { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
/* Capability group label + the narrow select beside a row. */
.srow-group { padding: 14px 18px 4px; font-size: var(--bkz-text-2xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--bkz-ink-slate); }
.cap-select { width: auto; min-width: 170px; }
.ig-write { margin: 8px 0 0; }
/* The granted-but-off pool, folded behind one line so the working set owns the page. */
.rar-off { margin-top: 6px; border-top: 1px solid var(--bkz-border-hairline); }
.rar-off-s { padding: 12px 0; cursor: pointer; list-style: none;
  font-size: var(--bkz-text-sm); color: var(--ui-ink-muted);
  transition: color var(--bkz-duration-base); }
.rar-off-s::-webkit-details-marker { display: none; }
.rar-off-s::before { content: "▸ "; }
.rar-off[open] > .rar-off-s::before { content: "▾ "; }
.rar-off-s:hover { color: var(--ui-ink-strong); }

/* THE LIST — `.uilist` / `.uilist-row`. Code Reviews is the reference. Use these (or
   kit.ts `listBlock` / `listRow`) for any stacked board. `.revlist` / `.revrow` are the
   review names for the same surface; keep both so older markup and review-list.js still
   match. A ticket `.botrow` is grip · tags · title · time. A list row is title · chips ·
   rank. Own grid, so a list never inherits a 14px grip column. */
.uilist, .revlist { display: flex; flex-direction: column; }
/* The chip column shrinks before the row does. `max-content` is a track grid never squeezes,
   so a row with five chips pushed past the card's right edge and took the page's horizontal
   scrollbar with it — the title was erased to a few letters first, because it was the only
   flexible thing left. `minmax(0, max-content)` keeps the natural width whenever there is
   room (nothing moves on a wide screen) and lets it give way when there is not. `min-width: 0`
   on the ITEM could never do this: it does not shrink a TRACK. */
.uilist-row, .revrow {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, max-content) max-content;
  align-items: center; gap: 10px 16px; padding: 15px 22px;
  border-bottom: 1px solid var(--bkz-border-hairline);
}
/*
 * The chips beside a row: a status, a line count, and one per GitHub label.
 *
 * `nowrap` with no overflow answer and an unbounded number of children is a row that gets
 * wider than its box. On a phone the label chips ran straight out of the card, reported
 * repeatedly and never once detected by our own scanner — which is why
 * scan/audit/responsive-contract.ts now asks this question of every stylesheet.
 *
 * Wrapping rather than scrolling: these are a handful of short chips, and a second line reads
 * better than a hidden one. `justify-content: flex-end` keeps them against the right edge on
 * both lines, and `max-width: 100%` stops `justify-self: end` sizing the item to max-content
 * and hanging it out of a track that `min-width: 0` has already let collapse.
 */
.uilist-state, .revrow-state { display: flex; flex-wrap: wrap; align-items: center; justify-content:flex-end; gap: 6px; min-width: 0; max-width: 100%;
  grid-column: 2; justify-self: end;
  position: relative; z-index: 1; pointer-events: none; }
.uilist-state > *, .revrow-state > * { pointer-events: auto; }
.uilist-state:empty, .revrow-state:empty { display: none; }
.uilist-aside, .revrow-aside { grid-column: 3; justify-content: flex-end; }
.uilist-aside:empty, .revrow-aside:empty { display: none; }
@media (max-width: 700px) {
  .uilist-row, .revrow { grid-template-columns: minmax(0, 1fr); }
  /* `justify-self: end` on a band wider than its track aligns the two END edges and spills
     off the START side — chips slid off the left of the screen, under the rail. Now that they
     wrap they fit, and they start where the rest of the row starts. */
  .uilist-state, .revrow-state, .uilist-aside, .revrow-aside { grid-column: 1; justify-self: start; }
}
.uilist-row:hover, .revrow:hover { background: var(--ui-row-hover); }
/* The whole row opens the pull request (founder: "clicking this should take to pr"). The
   body link stretches over the row; the findings link on the right stays its own target. */
.uilist-row, .revrow { position: relative; cursor: pointer; }
.uilist-body::after, .revrow-body::after { content: ''; position: absolute; inset: 0; }
.uilist-aside, .revrow-aside { position: relative; z-index: 1; }
.revrow-go { position: relative; z-index: 1; }
.uilist-body, .revrow-body {
  min-width: 0; display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: inherit;
}
.uilist-body:hover, .revrow-body:hover { text-decoration: none; }
.uilist-title, .revrow-title {
  font-size: var(--bkz-text-md); font-weight: 550; line-height: 1.35;
  color: var(--brand-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uilist-body:hover .uilist-title, .revrow-body:hover .revrow-title { color: var(--bkz-blue-deep); }
.uilist-sub, .revrow-sub { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); line-height: 1.4; }
/* Execution status is separate from finding severity; color always accompanies a label. */
.revrow-status { flex: none; padding: 1px 6px; font-size: 10px; line-height: 1.5;
  letter-spacing: .025em; text-transform: none; white-space: nowrap; box-shadow: none; }
.revrow-lifecycle { border-color: color-mix(in srgb, #a371f7 42%, #131211);
  background: color-mix(in srgb, #a371f7 16%, #131211); color: #c4b5fd; }
:root[data-theme="light"] .revrow-lifecycle { border-color: #e8d5ff; background: #fbefff; color: #8250df; }
.revrow-gh { width: 14px; height: 14px; flex: none; opacity: .7; }
.revrow-v-bad { color: var(--bkz-danger-ink); }
.revrow-v-warn { color: var(--bkz-warn-ink); }
/* The verdict and the counts, as tags on their own line under the title — the same tag chrome
   Tickets uses, so one colour means one thing across the product. */
.uilist-aside, .revrow-aside { display: flex; align-items: center; gap: 10px; flex: none; }
/* Same P0–P4 the ticket queue uses, smaller than a `.tag` so the rank sits on the right
   without competing with the title. */
.revrow-pri { display: inline-flex; align-items: center; border: 1px solid var(--ui-border);
  background: var(--ui-sunk); padding: 1px 5px; font: 550 10px/1.3 var(--bkz-font-mono);
  letter-spacing: 0.06em; color: var(--ui-ink-muted); }
.revrow-pri[data-tip^="Published low-severity"] { display: none; }
.revrow-pri.tag-ok { border-color: var(--bkz-success-border); background: var(--bkz-success-tint);
  color: var(--bkz-success-ink); }
.revrow-pri.tag-warn { border-color: var(--ui-warn-border); background: var(--bkz-warn-tint);
  color: var(--bkz-warn-ink); }
.revrow-pri.tag-bad { border-color: var(--bkz-danger-border); background: var(--bkz-danger-tint);
  color: var(--bkz-danger-ink); }
/* The chips, on the row's own side of the grid. `.tag` already carries the palette — bad,
   warn, and the quiet default — so this only has to hold them on one line under the title
   and let them wrap on a narrow window rather than squeezing the title. */
.revrow-go {
  font-size: var(--bkz-text-sm); color: var(--ui-ink-faint);
  text-decoration: none; margin-left: 6px;
}
.revrow-go:hover { color: var(--ui-ink-strong); text-decoration: none; }
/* The findings button: a small quiet control at the right of the row that opens the review
   drawer; the row itself is the pull request. */
.revrow-more { display: none; }
/* One finding in the review drawer: the tag, the title, the place, three lines. */
.dp-finding { padding: 12px 0 14px; border-bottom: 1px solid var(--bkz-line, #2a2a2a); }
.dp-finding:last-child { border-bottom: 0; }
.dp-finding-head { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.dp-finding .dp-verdict { margin: 6px 0 0; }
/* A long review list scrolls in place. Eight rows of height, the next one clipped, and a
   fade at the bottom so "there is more" is the list itself — not a Show more button. */

/* ---------- code reviews: the same rows as repositories ---------- */
.rar-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rar-title a { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.rar-title .sub { margin: 0; }
.pr-search { margin: 0 0 16px; max-width: 520px; }
.pr-pager { display: flex; gap: 14px; align-items: baseline; margin-top: 14px; }

/* ---------- team: room to breathe ----------
   The hub's people page reads as three calm cards, not a spreadsheet: taller member rows,
   real gaps between the panels, and the forms given air instead of butting the rules. */
.main-inner.page-team .panel.card-pad { padding: 26px 28px; margin-bottom: 22px; }
.main-inner.page-team .trow { padding: 14px 12px; }
.main-inner.page-team .panel .sec-h { margin: 26px 0 14px; }
.main-inner.page-team .panel .sec-h:first-child { margin-top: 0; }
.main-inner.page-team .panel > .muted { margin: 0 0 16px; line-height: 1.6; }
.main-inner.page-team .panel .input { margin-bottom: 4px; }
.main-inner.page-team .btn-row { margin-top: 14px; gap: 10px; }
.main-inner.page-team .panel .hrow { padding: 12px 0; }
.main-inner.page-team .panel .hrow + .hrow { border-top: 1px solid var(--bkz-border-hairline); }
.main-inner.page-team > .sub { margin: 4px 0 22px; }

/* ---------- team: the invite-by-email row ---------- */
/* The team table: one fixed grid (Name | Email | Status | actions) so cells align down
   the page instead of flexing per row; the first row is the invite form on the same
   tracks, its input spanning the three label columns. */
.tm .trow { grid-template-columns: minmax(150px, 1fr) minmax(200px, 1.4fr) minmax(170px, 1.2fr) minmax(150px, auto); padding: 9px 14px; }
/* Uncapped, those `fr` columns divide the whole page, so a login, an address and a role pill
   ended up a third of a screen apart and the row stopped reading as one line about one person.
   Wide, the three content columns size to their content and the slack goes to the actions
   column at the end — which is where empty space belongs, because nothing is written in it. */
.tm-wide .trow { grid-template-columns:
    minmax(160px, 1fr) minmax(200px, 1.2fr) max-content minmax(180px, auto);
  column-gap: 24px; align-items: center; }
.tm .trow-h { grid-template-columns: 1fr auto; }
/* The count and the table's own control share the header's right-hand cell. */
.tbl-h-r { display: inline-flex; align-items: center; gap: 12px; justify-self: end; }
.tm .trow > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tm-wide .trow > span { white-space: nowrap; }
.tm-email { white-space: nowrap; }
/* The log's `.tm-status` wraps on purpose. A roster chip row must not: ADMIN, grounded,
   and the call count are one fact about one person, and `flex-wrap` from the log rule
   was still in effect here. */
.tm-wide .tm-status { display: inline-flex; flex-wrap: nowrap; align-items: center;
  gap: 8px; white-space: nowrap; margin: 0; }
.tm-wide .tm-status .tag { flex: none; }
.tm-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px;
  flex-wrap: nowrap; }
.tm-actions form { margin: 0; display: inline-flex; }
/* Three controls on a row (role, access-only, remove) wrap onto a second line rather than
   clipping the first one under the status column. */
.tm .trow > span:has(> .tm-actions) { overflow: visible; white-space: normal; }
.tm .trow .tm-actions { flex-wrap: wrap; row-gap: 6px; }
.page-team .workspace-team-section .tm{border:0;background:transparent;color:var(--ui-ink-body);font:inherit;overflow:visible}
.page-team .workspace-team-section .tbl{margin:0;border:1px solid var(--ui-border);border-radius:0}
.page-team .workspace-team-section .trow{font-family:var(--bkz-font-sans);background:var(--ui-surface);padding:16px 18px}
.page-team .workspace-team-section .trow[data-roster-labels]{padding:12px 18px;background:var(--ui-sunk);font:500 11px/1.5 var(--bkz-font-mono);text-transform:uppercase;letter-spacing:.08em}
.page-team .workspace-team-section .trow code{font-family:var(--bkz-font-mono)}
/* Every row is its own grid, so a content-sized track (max-content) gave each row different
   columns: the admin's row had no buttons, so its email and status sat further right than the
   member's below it. Fixed tracks line every row up under the labels. */
.page-team .workspace-team-section .tm-wide .trow{grid-template-columns:minmax(0,1.3fr) minmax(0,1.2fr) minmax(0,.8fr) 200px}
/* Who GitHub lets onto each repository: names wrap, they do not ellipsize at 76ch. */
.repo-roster .srow-s { max-width: none; }
.repo-people { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.repo-person { white-space: nowrap; }
/* A phone cannot hold four columns: the status and the actions (Remove, Cancel) fell off the
   right edge, out of reach. Each person becomes a short stacked card and the labels go. */
@media (max-width: 600px) {
  .page-team .workspace-team-section .tm-wide .trow { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .page-team .workspace-team-section .trow[data-roster-labels] { display: none; }
  .page-team .workspace-team-section .tm-wide .trow > span { white-space: normal; }
  .page-team .workspace-team-section .tm-actions { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .tm:not(.tm-wide) .trow { grid-template-columns: 1fr; }
  .tm .trow-h { grid-template-columns: 1fr auto; }
  .tm:not(.tm-wide) .tm-actions { justify-content: flex-start; }
}

/* ---------- plan & billing (the account menu's Pricing page) ----------
   Lives inside the product shell, on the product's own tokens — three cards, the
   middle-weight plan between a free runway and the max tier that carries the deep work. */
/* Full column width. These were capped at 920px on the reasoning that three plan cards across
   1140px read as billboards — but the cap left a third of the page empty beside them while the
   cards themselves were cramped enough to wrap "Dead code removal — verified deletion PRs"
   onto two lines. The cap comes off all three together (grid, strip, and the prose above it),
   because what made the page line up was them sharing ONE width, not that width being 920. */
/* Sized for the settings column, not for the widest viewport: the page is capped with its
   siblings now, so the cards close up rather than the page opening out. */
.pz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  align-items: stretch; width: 100%; margin-top: 14px; }
.pz-card { position: relative; display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--ui-border); background: var(--ui-surface); padding: 22px 18px;
  box-shadow: var(--ui-shadow-sm); }
.pz-featured { border-color: var(--ui-brand-border); box-shadow: var(--ui-shadow); }
.pz-flag { position: absolute; top: -9px; right: 16px; padding: 3px 8px;
  background: var(--ui-accent-btn); color: var(--ui-on-accent);
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .14em; }
.pz-name { margin: 0; font-size: var(--bkz-text-xl); font-weight: 650; color: var(--ui-ink-strong); }
.pz-price { margin: 0; font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ui-ink-strong); }
.pz-per { margin-left: 7px; font-size: var(--bkz-text-sm); font-weight: 500; color: var(--ui-ink-muted); }
.pz-lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column;
  gap: 9px; flex: 1; }
.pz-li { position: relative; padding-left: 18px; font-size: var(--bkz-text-md); line-height: 1.45;
  color: var(--ui-ink-body); }
.pz-li::before { content: '\2013'; position: absolute; left: 0; color: var(--bkz-blue-link); }
.pz-li b { color: var(--ui-ink-strong); font-weight: 650; }
.pz-cta { margin-top: 4px; }
.pz-cta .btn { width: 100%; justify-content: center; }
.pz-current { display: inline-flex; align-items: center; justify-content: center; width: 100%;
  height: 38px; border: 1px dashed var(--ui-border-hover); color: var(--ui-ink-muted);
  font-size: var(--bkz-text-md); font-weight: 600; }

@media (max-width: 900px) {
  .pz-grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
}

/* ---------- sidebar: the account menu ----------
   The person, bottom-left; everything about their account behind one disclosure.

   The trigger and the panel are both built from the control surface's own account menu —
   .avatar / .acct-main / .caret above the fold, .am-head and .am-item inside it. This rail
   used to render two bare text rows instead, so one product shipped two account menus that
   shared no vocabulary. What is left here is what genuinely differs: how the panel is
   anchored (a <details> beside the rail, not a fixed-position popover) and the grouping. */
.sb-account { width: 100%; }
.sb-account-summary { display: flex; align-items: center; gap: 10px;
  padding: 6px 8px; cursor: pointer; border-radius: var(--bkz-radius-xl); list-style: none;
  color: var(--bkz-ink-rail); transition: all var(--bkz-duration-base); }
.sb-account-summary::-webkit-details-marker { display: none; }
.sb-account-summary:hover { background: var(--ui-hover); }
/* The menu is a flyout: it slides OUT of the sidebar, anchored beside the account row,
   while the name itself never moves. The sidebar is position:fixed with no overflow
   clipping, which is what lets the panel escape it. */
.sb-foot { position: relative; }
.sb-account-menu { position: absolute; left: calc(100% + 8px); bottom: 8px; width: 260px;
  z-index: 45; overflow: hidden; border-radius: var(--bkz-radius-xl);
  border: 1px solid var(--bkz-border-hairline); background: var(--ui-surface);
  box-shadow: var(--bkz-shadow-menu-rail); }
/* The header holds an identity rather than the control surface's eyebrow-over-address, so
   it lays out as a row. Scoped, because .am-head stacks two lines in the other menu. */
.sb-account-menu .am-head { display: flex; align-items: center; gap: 10px; }
/* A rule per row is the other menu's divider, and it makes four undifferentiated rows here.
   Grouping says the thing the rows cannot: these are places to go, and that one ends the
   session. */
.sb-account-menu .am-item { border-bottom: 0; }
.am-group + .am-group { border-top: 1px solid var(--bkz-border-hairline); }
/* One initial in a 32px circle is a stray character; two need the room to be a monogram. */
.sb-foot .avatar { font-size: var(--bkz-text-xs); }
details.sb-account[open] > .sb-account-menu { animation: sb-flyout 160ms var(--bkz-ease-settle); }
@keyframes sb-flyout {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- sidebar: drag-resize ----------
   The rail is always on screen — collapsing hid the product's whole navigation — and its
   width is dragged at this edge instead (sidebar.js), clamped and remembered per browser. */
.sb-resize { position: absolute; top: 0; bottom: 0; right: -3px; width: 6px;
  cursor: col-resize; z-index: 46; }
.sb-resize:hover, .sb-resize.is-dragging { background: color-mix(in srgb, var(--brand-ink, #2681c4), transparent 72%); }
body.is-rail-resizing { cursor: col-resize; user-select: none; }
/* The loading buffer: the mark resolves from static (loader.js). */
.bkz-loader { display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; transition: opacity 300ms ease; }
/* Invisible until the wait has EARNED a ring (loader.js's data-delay), then a soft entry. */
.bkz-loader.is-shown { opacity: 1; }
.bkz-loader.is-done { opacity: 0; pointer-events: none; }
.bkz-loader-grid { margin: 0; font: 12px/1.0 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .10em; color: rgba(242,242,242,.78); user-select: none; }

/* The modal's iframe: dark before ANY document paints — about:blank's UA white was the
   flash. The loading overlay sits over the frame until its load event. */
.rail-modal-frame { background: #0a0a0a; color-scheme: dark; }
.rail-modal-loading { position: absolute; inset: 44px 0 0 0; display: flex;
  align-items: center; justify-content: center; background: #0a0a0a;
  transition: opacity 300ms ease; }
.rail-modal-loading.is-done { opacity: 0; pointer-events: none; }

/* Visual-evidence setup page: scrollable code blocks, never a page-wide overflow. */
.vs-pre { max-width: 100%; overflow-x: auto; font-size: 12px; line-height: 1.5;
  background: rgba(242,242,242,.05); padding: 12px 14px; border-radius: 3px;
  color: rgba(242,242,242,.8); }

/* Invite-step journey rows: one line per teammate, chips left to right in the order the
   journey happens — joined, verified, grounded. */
.ob-invite-stack { display: flex; flex-direction: column; gap: 12px; }
.ob-invite-stack > * { margin: 0; }
.ob-invite-links { display: grid; gap: 12px; margin-top: 8px; }
.ob-invite-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.ob-invite-link label { display: grid; gap: 6px; min-width: 0; }
.ob-invite-links .input { width: 100%; font-family: var(--bkz-font-mono); font-size: var(--bkz-text-sm); }
@media (max-width: 560px) { .ob-invite-link { grid-template-columns: 1fr; } }

/* The sweep-in-motion line: one slim strip in the brand's blue — a pulsing shimmer and
   four words, replacing the paragraph nobody needed to re-read every visit. */
.sweepline { display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font-size: var(--bkz-text-sm); font-weight: 500; color: var(--bkz-blue-link, #4da3ff);
  cursor: var(--cursor-mark); }
.sweepline > span:first-child { flex: none; white-space: nowrap; }
.sweep-bar { flex: 1; max-width: 340px; height: 3px; border-radius: 2px; overflow: hidden;
  background: color-mix(in srgb, var(--bkz-blue-link, #4da3ff), transparent 82%); }
.sweep-bar-fill { display: block; height: 100%; width: 30%; border-radius: 2px;
  background: var(--bkz-blue-link, #4da3ff);
  animation: dot-march 1.4s ease-in-out infinite; }
.sweepline-queued { color: var(--ui-ink-muted); }
@media (prefers-reduced-motion: reduce) { .sweep-bar-fill { animation: none; width: 100%; opacity: .4; } }

/* Ingestion progress strip: one quiet bar + one line, painted by progress.js. */
.sync-progress { margin: 10px 0 2px; }

/* ── The scan tile ───────────────────────────────────────────────────────────────
   One console for the whole scan — queued, running, stopped, finished — drawn once by the
   server and kept true in place by the client. Monospace, box-drawing rules, bracket
   marks, an ASCII bar: the loader's own language. Nothing pops up, nothing rebuilds, and
   the log scrolls like a terminal — it follows only while the reader is at the bottom. */
.scan-tile { position: relative; margin: 10px 0 14px; padding: 12px 16px 12px; border: 1px solid var(--ui-border); background: var(--ui-sunk);
  font-family: var(--bkz-font-mono, ui-monospace, monospace); font-size: 12.5px; line-height: 1.55; color: var(--ui-ink-body); font-variant-numeric: tabular-nums; }
.scan-tile-rule { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; border-bottom: 1px solid var(--ui-border);
  font-size: 11px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase; color: var(--ui-ink-soft); }
.scan-tile-rule + * { margin-top: 8px; }
.scan-tile-rule .scan-tile-when { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ui-ink-faint); margin-left: auto; }
.scan-tile-rule .tag { margin-left: -2px; }
.scan-tile-title { color: var(--ui-ink-strong); }
.scan-tile-meter { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 8px 0 10px; }
.scan-tile-bar { letter-spacing: -0.5px; color: var(--brand-ink, #4da3ff); white-space: nowrap; }
.scan-tile-settled .scan-tile-bar { color: var(--ui-ink-faint); }
.scan-tile-of { color: var(--ui-ink-muted); }
.scan-tile-waiting { margin: 0 0 10px; max-width: 72ch; overflow-wrap: anywhere; }
/* `.scan-live-steps` is the name the browser suite waits on; the tile keeps it as an alias. */
.scan-tile-steps, .scan-live-steps { list-style: none; margin: 0 0 10px; padding: 0; }
.scan-tile-steps li { display: grid; grid-template-columns: 2.4em minmax(11em, 14em) minmax(0, 1fr); gap: 2px 10px; align-items: baseline; }
.scan-tile-steps .st-mark { color: var(--ui-ink-faint); white-space: nowrap; }
.scan-tile-steps .st-mark[data-mark="done"] { color: var(--bkz-green, #3fb950); }
.scan-tile-steps .st-mark[data-mark="now"] { color: var(--brand-ink, #4da3ff); }
.scan-tile-steps .st-mark[data-mark="bad"] { color: var(--bkz-danger, #f85149); }
.scan-tile-steps .st-name { color: var(--ui-ink-body); }
.scan-tile-steps .st-what { color: var(--ui-ink-muted); overflow-wrap: anywhere; }
.scan-tile-steps .st-mark[data-mark="wait"] ~ .st-name { color: var(--ui-ink-muted); }
.scan-tile-funnel { margin: 0 0 8px; color: var(--ui-ink-body); }
.scan-tile-funnel b { font-weight: 600; color: var(--ui-ink-strong); }
.scan-tile-legend { margin: -4px 0 8px; font-size: 11px; color: var(--ui-ink-faint); }
.scan-tile-legend span { cursor: help; border-bottom: 1px dotted var(--ui-ink-faint); }
.scan-tile-live .scan-tile-title { color: var(--ui-ink-strong); }
.scan-tile-note { margin: 6px 0 10px; color: var(--ui-ink-muted); max-width: 72ch; overflow-wrap: anywhere; }
.scan-tile-jump { display: inline-block; margin: 0 0 10px; color: var(--brand-ink, #4da3ff); text-decoration: none; }
.scan-tile-jump:hover { text-decoration: underline; }
.scan-tile-aside { margin: 0 -16px 8px; }
.scan-tile-aside > summary, .scan-tile-log > summary { cursor: pointer; color: var(--ui-ink-muted); list-style: none; padding: 6px 16px; border-top: 1px solid var(--ui-border);
  font-size: 11px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; min-width: 0; overflow: visible; }
.scan-tile-aside > summary::-webkit-details-marker, .scan-tile-log > summary::-webkit-details-marker { display: none; }
.scan-tile-sum { min-width: 0; }
.scan-tile-sum::before { content: "▸ "; color: var(--ui-ink-faint); }
.scan-tile-aside[open] .scan-tile-sum::before, .scan-tile-log[open] .scan-tile-sum::before { content: "▾ "; }
.scan-tile-aside ul { list-style: none; margin: 6px 0 4px; padding: 0 16px; color: var(--ui-ink-muted); }
.scan-tile-aside li { padding: 2px 0; overflow-wrap: anywhere; }
.scan-tile-aside li b { color: var(--ui-ink-body); font-weight: 600; }
.scan-tile-log { margin: 0 -16px; }
.scan-tile-log + .scan-tile-actions { margin-top: 10px; }
.scan-tile-lines { max-height: 40vh; overflow: auto; padding: 8px 16px 12px; font-size: 11.5px; line-height: 1.5; color: var(--ui-ink-faint); border-top: 1px solid var(--ui-border); }
.scan-tile-lines div { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1px 0; }
.scan-tile-lines .ev-witness-proven, .scan-tile-lines .ev-publish { color: var(--bkz-green, #3fb950); }
.scan-tile-lines .ev-publish { color: var(--ui-ink-body); font-weight: 600; }
.scan-tile-lines .ev-unit { color: var(--ui-ink-muted); }
.scan-tile-lines .ev-done { color: var(--ui-ink-body); }
.scan-tile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 8px 0 2px; font-family: var(--bkz-font-sans); font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.scan-tile-actions .gd-decide { margin: 0; }
.scan-tile-actions [data-scan-cancel]:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.scan-tile-actions [data-scan-cancel] .btn-danger { border-color: var(--bkz-danger-border); background: var(--bkz-danger-tint); }
.scan-tile [hidden] { display: none !important; }
.tag-new { color: var(--brand-ink, #4da3ff); border-color: color-mix(in srgb, var(--brand-ink, #4da3ff) 45%, transparent); }
@media (prefers-reduced-motion: reduce) { .scan-tile-steps .st-mark { transition: none; } }
@media (prefers-reduced-motion: reduce) {
}

/* nav.js's loading cue, in the buffer's own language: a strip of ▚ halftone marks (the
   same glyph the loader grid drifts) revealed left-to-right, instead of a solid blue line
   from nowhere. Only appears when a fetch is genuinely slow (>120ms) — instant swaps show
   nothing, which is the point. The width animation clips the glyph row. */
.nav-progress { position: fixed; top: 0; left: 0; height: 13px; width: 0; z-index: 200;
  overflow: hidden; opacity: 0; pointer-events: none;
  transition: width 1.2s cubic-bezier(.1,.7,.2,1), opacity 200ms; }
.nav-progress::after { content: "▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚";
  display: block; font: 10px/13px var(--bkz-font-mono); letter-spacing: .14em;
  color: rgba(242,242,242,.78); white-space: nowrap; user-select: none; }
.nav-progress.is-on { opacity: 1; width: 82%; }
/* A page-shaped placeholder for uncached navigation and workspace switches. Each page
   draws its own outline (the nsk- rules below); a page with none keeps this general one. */
.nav-skeleton { position: fixed; inset: 0; z-index: 199; overflow: hidden;
  background: var(--bkz-bg, #141414); color: var(--ui-ink-strong, #f2f2f2);
  opacity: 0; visibility: hidden; pointer-events: none; }
.nav-skeleton.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-skeleton-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  gap: clamp(28px, 4vw, 64px); width: min(1110px, calc(100% - 64px)); margin: clamp(55px, 7vh, 100px) auto 0; }
.nav-skeleton-column { display: flex; flex-direction: column; gap: 17px; min-width: 0; }
.nav-skeleton-line, .nav-skeleton-block, .nav-skeleton-rule { display: block; flex: none;
  background: var(--ui-sunk, #101010); border-radius: 5px;
  animation: nav-skeleton-breathe 1.8s ease-in-out infinite; }
.nav-skeleton-line { width: 100%; height: 18px; }
.nav-skeleton-line-short { width: 54%; height: 32px; margin-bottom: 14px; }
.nav-skeleton-line-tiny { width: 28%; }
.nav-skeleton-line-medium { width: 75%; }
.nav-skeleton-block { width: 100%; height: 120px; margin-bottom: 14px; }
.nav-skeleton-block-tall { height: 220px; }
.nav-skeleton-card { display: flex; flex-direction: column; gap: 13px; align-self: start;
  margin-top: 60px; padding: 24px; min-width: 0; border: 1px solid var(--ui-border, #333);
  border-radius: 15px; background: var(--ui-surface, #1d1d1d); }
.nav-skeleton-card .nav-skeleton-line-tiny { width: 30%; height: 28px; margin-bottom: 4px; }
.nav-skeleton-card .nav-skeleton-line { height: 16px; }
.nav-skeleton-card .nav-skeleton-rule { width: 100%; height: 1px; margin: 5px 0; }
.nav-skeleton-card .nav-skeleton-block-small { height: 44px; margin: 0; }
.nav-skeleton-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -30%);
  display: flex; flex-direction: column; align-items: center; gap: 14px; white-space: nowrap;
  font: 16px/1.4 var(--bkz-font-sans, sans-serif); }
/* The skeleton's loader is the product's ASCII globe (loader.js), inked to the skeleton's theme. */
.nav-skeleton .bkz-loader-grid { color: currentColor; opacity: .78; }
@keyframes nav-skeleton-breathe { 50% { opacity: .48; } }
@media(max-width: 700px) {
  .nav-skeleton-layout { grid-template-columns: 1fr; width: calc(100% - 40px); margin-top: 38px; }
  .nav-skeleton-card { display: none; }
  .nav-skeleton-block-tall { height: 160px; }
  .nav-skeleton-status { top: 48%; }
}
@media(prefers-reduced-motion: reduce) {
  .nav-skeleton-line, .nav-skeleton-block, .nav-skeleton-rule { animation: none; }
}
/* THE PAGE'S OWN OUTLINE (nav.js SKELETONS): each page's skeleton is its layout, drawn over the page column only
   (nav.js sets its box to main.main's), so the sidebar stays. Square panels and the page gutter, as the pages draw them. */
.nav-skeleton-in-page { inset: auto; }
.nav-skeleton[data-kind]:not([data-kind="page"]) .nav-skeleton-layout { display: flex; flex-direction: column; gap: 18px;
  width: auto; margin: 0; padding: 26px 28px; }
.nsk-l, .nsk-rule { display: block; flex: none;
  background: color-mix(in srgb, var(--ui-ink-strong, #f2f2f2) 8%, transparent);
  animation: nav-skeleton-breathe 1.8s ease-in-out infinite; }
.nsk-l { width: 160px; max-width: 100%; height: 14px; border-radius: 4px; }
.nsk-rule { width: 100%; height: 1px; }
.nsk-title { width: 220px; height: 30px; }
.nsk-sub { width: 420px; }
.nsk-eyebrow { width: 130px; height: 10px; }
.nsk-heading { width: 280px; height: 26px; }
.nsk-line { width: 360px; }
.nsk-line-short { width: 180px; }
.nsk-cap { width: 110px; height: 11px; }
.nsk-num { width: 56px; height: 30px; }
.nsk-chip { width: 200px; height: 34px; }
.nsk-button { width: 92px; height: 34px; }
.nsk-button-wide { width: 150px; height: 34px; }
.nsk-meter { width: 100%; height: 18px; }
.nsk-dot { width: 12px; height: 12px; }
.nsk-box { width: 16px; height: 16px; }
.nsk-search { width: 160px; height: 32px; }
.nsk-select { width: 120px; height: 30px; }
.nsk-badge { width: 60px; height: 22px; }
.nsk-navitem { width: 100%; height: 34px; }
.nsk-cell-wide { width: 38%; }
.nsk-cell { width: 12%; }
.nsk-tab { width: 52px; height: 24px; }
.nsk-tabs { display: flex; gap: 6px; align-self: center; padding: 6px; border: 1px solid var(--ui-border, #333); }
.nsk-stack { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nsk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; }
.nsk-between { justify-content: space-between; }
.nsk-end { justify-content: flex-end; }
.nsk-right { align-items: flex-end; }
.nsk-pad { padding: 6px 0; }
.nsk-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px 20px;
  border: 1px solid var(--ui-border, #333); background: var(--ui-surface, #1d1d1d); }
.nsk-card { flex-direction: row; align-items: center; justify-content: space-between; }
.nsk-danger { border-color: color-mix(in srgb, var(--bkz-red, #c0392b) 55%, transparent); }
.nsk-tall { min-height: 240px; }
.nsk-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--ui-border, #333); background: var(--ui-surface, #1d1d1d); }
.nsk-tile { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.nsk-tile + .nsk-tile { border-left: 1px solid var(--ui-border, #333); }
.nsk-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.nsk-trow { display: flex; align-items: center; gap: 24px; padding: 14px 0; border-top: 1px solid var(--ui-border, #333); }
.nsk-thead { border-top: 0; padding-top: 0; }
.nsk-scan { flex-direction: row; gap: 40px; padding: 24px; }
.nsk-scan-side { flex: none; width: 280px; gap: 26px; }
.nsk-stat { display: flex; flex-direction: column; gap: 10px; }
.nsk-timeline { flex: 1; }
.nsk-event { display: flex; align-items: flex-start; gap: 14px; }
.nsk-list { border-top: 1px solid var(--ui-border, #333); }
.nsk-bug { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--ui-border, #333); }
.nsk-bug .nsk-stack { flex: 1; }
.nsk-settings { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 40px; }
.nsk-tablist { padding-right: 20px; border-right: 1px solid var(--ui-border, #333); }
@media(max-width: 700px) {
  .nav-skeleton[data-kind]:not([data-kind="page"]) .nav-skeleton-layout { padding: 20px 16px; }
  .nsk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nsk-tile + .nsk-tile { border-left: 0; }
  .nsk-split, .nsk-settings { grid-template-columns: 1fr; }
  .nsk-tablist { display: none; }
  .nsk-scan { flex-direction: column; }
  .nsk-scan-side { width: auto; }
}
@media(prefers-reduced-motion: reduce) {
  .nsk-l, .nsk-rule { animation: none; }
}
/* A page fetch that did not arrive within NAV_WAIT_MS. The bar stops; this is the way on. */
.nav-stall { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 201;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
  padding: 8px 10px 8px 14px; background: var(--bkz-bg, #141414); color: var(--ui-ink-strong, #f2f2f2);
  border: 1px solid var(--bkz-border-soft, rgba(255,255,255,.16));
  font: 13px/1.4 var(--bkz-font-sans, sans-serif); }
.nav-stall-again { font: inherit; cursor: pointer; color: inherit; background: transparent;
  border: 1px solid var(--bkz-border-soft, rgba(255,255,255,.16)); padding: 4px 10px; }
.nav-stall-again:hover { color: var(--ui-ink-strong, #fff); }

/* ---------- instant navigation: acknowledge, then swap ----------
   nav.js marks <html> is-navigating the moment a routed link is clicked and clears it when
   the swap lands. A swap from memory clears it in the same task, so nothing paints; only a
   genuinely slow fetch shows the page stepping back — and even then the clicked tab is
   already lit. The delay keeps a one-frame wait from flickering. */
html.is-navigating .main { opacity: .62; transition: opacity 160ms ease 80ms; }
html.is-navigating body { cursor: progress; }

/* Entrances belong to the first paint. Every client-side swap re-inserted .page-head, .home,
   .headline and friends, and each replayed its 450ms fade-up — so a page served from memory
   in under a frame still LOOKED like half a second of loading. Once the router has rendered
   anything (html.is-routed) the entrance is a hint, not a wait; a background patch of an
   unchanged-looking page (data-patched) gets none at all. */
html.is-routed .page-head, html.is-routed .home, html.is-routed .headline,
html.is-routed .sweep-head, html.is-routed .page-intro, html.is-routed .bkz-fade-up { animation-duration: .16s; }
.main[data-patched] .page-head, .main[data-patched] .home, .main[data-patched] .headline,
.main[data-patched] .sweep-head, .main[data-patched] .page-intro, .main[data-patched] .bkz-fade-up { animation: none; }

/* Repository review procedures are a quiet curation surface, never a verdict. */
.rr-panel { margin-top: 1.5rem; }
.rr-panel details > summary { cursor: pointer; }
.rr-subtitle { margin-left: .6rem; color: var(--muted); font-size: .78rem; font-weight: 400; }
.rr-note, .rr-status { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.rr-error { color: var(--bkz-danger-ink); }
.rr-card { border: 1px solid var(--line); border-radius: var(--bkz-radius-md); padding: 1rem; margin: .75rem 0; overflow-wrap: anywhere; }
.rr-card h4 { margin: 0 0 .3rem; }
.rr-state { color: var(--muted); margin: 0 0 .6rem; font-size: .82rem; }
.rr-line { margin: .3rem 0; line-height: 1.45; font-size: .84rem; }
.rr-evidence { margin: .45rem 0; padding-left: 1.4rem; color: var(--muted); font: .76rem/1.5 var(--bkz-font-mono,monospace); overflow-wrap: anywhere; }
.rr-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.rr-actions button, .rr-form button { cursor: pointer; }
/* "Calibrate:" and its three verdicts sit below the finding, asking a different question
   from the buttons that act on it — separated rather than merged into the same row. */
.dp-feedback-actions { align-items: center; gap: .4rem; margin-top: .6rem;
  padding-top: .6rem; border-top: 1px solid var(--ui-border); }
.rr-form { display: grid; gap: .7rem; max-width: 46rem; margin: 1.5rem 0 1rem; }
.rr-form h3, .rr-form p { margin: 0; }
.rr-form label { display: grid; gap: .3rem; font-size: .84rem; }
.rr-form input, .rr-form select, .rr-form textarea { width: 100%; box-sizing: border-box; padding: .5rem; color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 5px; font: inherit; }
.rr-form button { justify-self: start; }

/* ---------- wiki: the same product, on the wiki pages ----------
   Everything scoped under body.wiki. These rules lived as an inline <style> in
   src/wiki/render.ts — a third chrome with its own dialect, rendered in the platform's
   system font because the shell never loaded the product's faces. Same tokens, one file,
   cacheable; the global element selectors are prefixed so nothing bleeds into the app. */
.wiki { --bg:var(--bkz-bg-app,#111210); --fg:var(--ui-ink-strong,#ececea);
  --muted:var(--ui-ink-muted,#8f918c); --line:var(--ui-border,#292b29);
  /* Brand blue, not the indigo accent token: the wiki's pills and hero were the one surface
     wearing a different colour from the product around them. */
  --panel:var(--bkz-bg-panel,#151714); --accent:var(--brand,#2681c4); --warn:var(--bkz-warn,#e7a74a);
  margin:0; background:var(--bg); color:var(--fg);
  font:15px/1.65 var(--bkz-font-sans,ui-sans-serif,system-ui); }
.wiki-main{min-width:0}.wiki-inner{max-width:82rem;margin:0 auto;padding:2.25rem 2rem 5rem}
.wiki-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.6rem}
.wiki-head .eyebrow{color:var(--muted);font:500 11px/1.4 var(--bkz-font-mono,monospace);text-transform:uppercase;letter-spacing:.12em}
.wiki-head h1{margin:.25rem 0 0}.wiki-status{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}
.wiki .connected{color:var(--accent);border:1px solid color-mix(in srgb,var(--accent),transparent 45%);border-radius:999px;padding:.28rem .65rem;font:500 11px var(--bkz-font-mono,monospace)}
.wiki .connected:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:.4rem}
.wiki h1 { font-size:1.8rem; font-weight:650; letter-spacing:-.02em; margin:0 0 .35rem; }
.wiki h2 { font-size:1.15rem; font-weight:650; letter-spacing:-.01em; color:var(--fg);
     margin:2.4rem 0 .8rem; }
.wiki h3 { font-size:1rem; font-weight:600; margin:1.6rem 0 .4rem; }
.wiki p.sub { color:var(--muted); font-size:.88rem; margin:0 0 1.8rem; }
.wiki a { color:var(--bkz-blue-deep,#8fc9ea); text-decoration:none; }
.wiki a:hover { text-decoration:underline; }
.wiki .sb-link, .wiki .sb-brand, .wiki .use-card { color:inherit; }
.wiki code { font:13px/1.5 var(--bkz-font-mono,ui-monospace,Menlo,monospace); }
.wiki .grid { display:flex; flex-wrap:wrap; gap:2rem; margin:0 0 2rem; }
.wiki .stat .v { font-size:1.8rem; font-weight:650; letter-spacing:-.02em; line-height:1;
           font-variant-numeric:tabular-nums; }
.wiki .stat .k { color:var(--muted); font-size:.72rem; text-transform:uppercase;
           letter-spacing:.07em; margin-top:.35rem; }
.wiki .card { border:1px solid var(--line); border-radius:var(--bkz-radius-md); padding:1rem 1.25rem;
        margin-bottom:.75rem; }
.wiki .card .where { color:var(--muted); font-size:.78rem; font-family:var(--bkz-font-mono,monospace); }
.wiki .card .doc { margin:.4rem 0 0; white-space:pre-wrap; }
.wiki .sig { display:block; margin:.35rem 0 0; padding:.45rem .65rem; background:var(--panel);
       border-radius:var(--bkz-radius-sm); overflow-x:auto; white-space:pre; }
.wiki .tag { font-size:.7rem; text-transform:uppercase; letter-spacing:.06em; padding:.1rem .4rem;
       border-radius:var(--bkz-radius-sm); border:1px solid var(--line); color:var(--muted); margin-left:.4rem; }
/* The kit's severity tones must win over the wiki's base tag — this override is why the
   wiki had its own two-colour dialect the rest of the product could not speak. */
.wiki .tag-ok { color:var(--bkz-success-ink); border-color:var(--bkz-success-border); }
.wiki .tag-warn { color:var(--bkz-warn-ink); border-color:var(--bkz-warn-ink); }
.wiki .tag-bad { color:var(--bkz-danger-ink); border-color:var(--bkz-danger-border); }
.wiki .tag-live { color:var(--bkz-blue-link); border-color:var(--bkz-blue-link); }
.wiki .tag.live { color:var(--accent); border-color:var(--accent); }
.wiki .tag.dead { color:var(--warn); border-color:var(--warn); }
.wiki .pills a { display:inline-block; border:1px solid var(--line); border-radius:999px;
           padding:.2rem .7rem; margin:0 .35rem .45rem 0; font-size:.82rem;
           text-decoration:none; }
.wiki table { width:100%; border-collapse:collapse; font-size:.88rem; }
.wiki th { text-align:left; font-weight:500; color:var(--muted); font-size:.72rem;
     text-transform:uppercase; letter-spacing:.05em; padding:0 .75rem .5rem 0;
     border-bottom:1px solid var(--line); }
.wiki td { padding:.5rem .75rem .5rem 0; border-bottom:1px solid var(--line); vertical-align:top; }
.wiki td.num, .wiki th.num { text-align:right; font-variant-numeric:tabular-nums; }
.wiki .empty { color:var(--muted); }
.wiki .wrap { overflow-x:auto; }
.wiki pre.mermaid { background:var(--panel); border:1px solid var(--line); border-radius:8px;
              padding:1rem; overflow-x:auto; font:12px/1.5 var(--bkz-font-mono,monospace); }
.wiki .note { color:var(--muted); font-size:.82rem; }
.wiki .agent-bar { display:flex; gap:.6rem; flex-wrap:wrap; margin:1rem 0 2rem; }
.wiki .agent-bar a { border:1px solid var(--line); border-radius:5px; padding:.45rem .75rem;
               text-decoration:none; font:12px var(--bkz-font-mono,monospace); }
.wiki .agent-bar a:first-child { color:var(--accent); border-color:var(--accent); }
.wiki .graph { width:100%; min-height:260px; border:1px solid var(--line); border-radius:8px;
         background:var(--panel); margin:.8rem 0 2rem; }
.wiki .graph text { fill:var(--fg); font:11px var(--bkz-font-mono,monospace); }
.wiki .graph .node { fill:var(--bg); stroke:var(--line); }
.wiki .graph .edge { stroke:var(--muted); stroke-width:1.2; opacity:.65; }
/* ---------- rendered markdown inside the wiki ----------
   Everything in these blocks is somebody's README or docstring, so the type has to behave
   like prose: a measure that does not run the width of a 1300px page, real list indents, and
   code that is visibly code. Before this they were escaped into a <pre> and the reader got
   the asterisks. */
.wiki .md, .wiki-md { max-width: 78ch; }
.wiki .md > *:first-child, .wiki-md > *:first-child { margin-top: 0; }
.wiki .md > *:last-child, .wiki-md > *:last-child { margin-bottom: 0; }
.wiki .md p, .wiki-md p { margin: 0 0 .75rem; line-height: 1.6; }
.wiki .md-h { font-size: .8rem; font-weight: 650; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); margin: 1.35rem 0 .5rem; }
.wiki .md-list { margin: 0 0 .85rem; padding-left: 1.15rem; }
.wiki .md-list li { margin: 0 0 .3rem; line-height: 1.55; }
.wiki .md-quote { margin: 0 0 .85rem; padding: .1rem 0 .1rem .9rem;
  border-left: 2px solid var(--line); color: var(--muted); }
.wiki .md-hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.wiki .md code, .wiki-md code { background: color-mix(in srgb, var(--fg), transparent 92%);
  border-radius: 3px; padding: .1em .35em; font: 400 .87em/1.4 var(--bkz-font-mono, monospace); }
/* A fenced block scrolls inside its own box: a docstring with an 80-column shell command in
   it must not decide how wide the page is. */
.wiki .md-code, .wiki-md .md-code { margin: 0 0 .9rem; padding: .7rem .85rem; overflow-x: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--bkz-radius-md, 6px); }
.wiki .md-code code, .wiki-md .md-code code { background: none; padding: 0; white-space: pre; }
.md-table-wrap { overflow-x: auto; margin: 0 0 .9rem; }
.wiki .md-table { border-collapse: collapse; font-size: .87rem; }
.wiki .md-table th, .wiki .md-table td { border: 1px solid var(--line); padding: .35rem .6rem;
  text-align: left; }
.wiki .md-table th { color: var(--muted); font-weight: 600; }
.wiki-md{max-width:78ch}
/* A README is as long as somebody made it. Capped in HEIGHT and scrollable, so one repository's
   500-line onboarding guide cannot become the whole overview page — but never capped in width:
   the 78ch measure is for prose, and a README is mostly fenced commands and tables, which a
   narrow column only forces to wrap or scroll sideways inside their own boxes. */
.wiki-readme { max-width: none; margin-top: .7rem; max-height: 460px; overflow-y: auto;
  padding-right: .5rem; }

.wiki-hero{border:1px solid var(--line);background:linear-gradient(135deg,color-mix(in srgb,var(--accent),transparent 92%),transparent 48%),var(--panel);padding:1.5rem;margin-bottom:1rem;border-radius:var(--bkz-radius-md,8px)}
.wiki-hero h2{font:600 1.25rem/1.25 var(--bkz-font-sans,system-ui);letter-spacing:-.02em;text-transform:none;color:var(--fg);margin:0 0 .45rem}
.wiki .use-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:1rem 0 2.2rem}
.wiki .use-card{display:block;border:1px solid var(--line);background:var(--panel);padding:1rem;text-decoration:none;min-height:126px;border-radius:var(--bkz-radius-md,8px)}
.wiki .use-card:hover{border-color:var(--accent)}.wiki .use-card strong{display:block;margin-bottom:.35rem}.wiki .use-card span{color:var(--muted);font-size:.83rem}.wiki .use-card code{color:var(--accent)}
.wiki .wiki-pre{white-space:pre-wrap;overflow:auto;max-height:65vh}
@media(max-width:760px){.wiki .use-grid{grid-template-columns:1fr}.wiki-inner{padding:1.5rem 1rem 4rem}.wiki-head{display:block}.wiki-status{justify-content:flex-start;margin-top:.8rem}}
.wiki .wiki-doc{white-space:pre-wrap}


/* ---------- wiki: the JSON explorer (json-tree.ts) + accessibility layer ---------- */
/* Keyboard first: the way past the rail, visible only when focused. */
.skip-link { position:absolute; left:-9999px; top:0; z-index:100; padding:8px 14px;
  background:var(--ui-surface); color:var(--ui-ink-strong); border:1px solid var(--ui-border); }
.skip-link:focus-visible { left:8px; top:8px; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
/* A focus ring in the product's own ink — the global indigo ring is off-palette here. */
.wiki :focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.wiki .state { color:var(--muted); font-size:.82rem; } /* used ~20x, styled never */

.wiki-toc { display:flex; flex-wrap:wrap; gap:.35rem .8rem; align-items:baseline;
  position:sticky; top:0; z-index:20; background:var(--bg); padding:.55rem 0;
  border-bottom:1px solid var(--line); margin-bottom:1.4rem; }
.wiki-toc-l { color:var(--muted); font-size:.72rem; text-transform:uppercase; letter-spacing:.07em; }
.wiki-toc a { font:12px/1 var(--bkz-font-mono,monospace); color:var(--muted); }
.wiki-toc a:hover { color:var(--fg); text-decoration:none; }

/* The tree. IBM Plex Mono carries it; every colour is a token. */
.wjt { margin:0 0 .5rem; }
.jt { border:1px solid var(--line); background:var(--panel); margin:0 0 2px; }
.jt .jt, .jt-more { border-left:1px solid var(--line); border-right:0; border-top:0; border-bottom:0;
  background:transparent; margin:0 0 0 14px; }
.jt-s { list-style:none; cursor:pointer; padding:8px 12px;
  font:13px/1.6 'IBM Plex Mono', var(--bkz-font-mono,monospace); color:var(--muted);
  display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }
.jt-s::-webkit-details-marker { display:none; }
.jt-s::before { content:"▸"; color:var(--muted); }
.jt[open] > .jt-s::before, .jt-more[open] > .jt-s::before { content:"▾"; }
.jt-s:hover { color:var(--fg); }
.jt-b { padding:2px 0 6px 4px; }
.jt-row { padding:2px 12px 2px 26px; font:13px/1.7 'IBM Plex Mono', var(--bkz-font-mono,monospace); }
.jt-k { color:var(--ui-ink-body,#c9cbc5); }
.jt-colon { color:var(--muted); }
.jt-type { color:var(--muted); font-style:italic; }
.jt-note { color:var(--bkz-warn-ink); font-size:.78rem; }
.jt-str { color:var(--bkz-success-ink); }
.jt-str a { color:var(--bkz-blue-deep,#8fc9ea); }
.jt-num { color:var(--bkz-blue-link); }
.jt-bool { color:var(--bkz-warn-ink); }
.jt-null { color:var(--ui-ink-faint,#6b6d68); }
.jt-prose { padding:8px 14px; font-family:var(--bkz-font-sans,ui-sans-serif); }
.jt .copy-btn { font-family:var(--bkz-font-sans,ui-sans-serif); margin-left:auto; }
.wiki figure { margin:0; }
.wiki figcaption.jt-s { cursor:default; border:1px solid var(--line); background:var(--panel); }

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

/* ---------- first-run review: the "your maps are ready" summary ----------
   Its four facts used the dashboard's .stat-strip, four-across inside a centred card —
   labels wrapped three lines deep and the strip read as a squeeze. A 2x2 grid with room
   to breathe; one accent (the dead-code figure, the product's wedge), everything else ink. */
.rv-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:1px;
  background:var(--bkz-border-hairline); border:1px solid var(--bkz-border-hairline);
  border-radius:var(--bkz-radius-md,8px); overflow:hidden; margin:20px 0 16px; }
.rv-card { background:var(--bkz-bg-panel); padding:22px 24px 18px; min-width:0; }
.rv-l { display:block; font-family:var(--bkz-font-mono); font-size:var(--bkz-text-xs);
  font-weight:500; letter-spacing:.09em; text-transform:uppercase; color:var(--bkz-muted);
  margin-bottom:10px; }
.rv-n { display:block; font-size:var(--bkz-text-5xl,2.4rem); font-weight:600;
  letter-spacing:-0.02em; line-height:1.05; color:var(--bkz-ink);
  font-variant-numeric:tabular-nums; }
.rv-n.brand { color:var(--brand-ink); }
.rv-s { display:block; margin-top:8px; font-size:var(--bkz-text-sm); color:var(--ui-ink-muted);
  line-height:1.45; }
/* The single earned fact, on the ordinary first run: one repository, one figure. Full width so
   it reads as the answer rather than as three quarters of a grid that failed to fill. */
.rv-one { grid-template-columns:1fr; }
.rv-one .rv-n { font-size:var(--bkz-text-6xl,3.1rem); }
.rv-repos { border:1px solid var(--bkz-border-hairline); border-radius:var(--bkz-radius-md,8px);
  overflow:hidden; margin:0 0 20px; }
/* The list's own heading, standing in for the repository-count card that used to be here. */
.rv-repos-l { margin:20px 0 8px; }
.rv-repo { display:flex; justify-content:space-between; align-items:baseline; gap:16px;
  padding:13px 18px; border-top:1px solid var(--bkz-border-hairline); }
.rv-repo:first-child { border-top:0; }
.rv-repo .mono { font-size:var(--bkz-text-sm); }
.rv-repo-facts { color:var(--ui-ink-muted); font-size:var(--bkz-text-sm); text-align:right; }
@media (max-width:560px) { .rv-grid { grid-template-columns:1fr; } }

/* ---------- the landing page ----------
   Black and white, nothing else. Four things in large type, one blunt sentence, and the
   button it points at. The pricing page borrows this nav (lp-nav / lp-cta / lp-ghost), so
   those classes are the shared monochrome chrome. */



@media (max-width: 700px) {
}

/* Allowance bars on the pricing/usage strip: full wears the danger colour — the moment the
   plan runs out, said visually where the upgrade buttons are one scroll away. */
.pz-bar { display:block; width:100%; height:4px; border-radius:999px; overflow:hidden; margin-top:8px;
  background: color-mix(in srgb, var(--bkz-border-hairline) 70%, transparent); }
.pz-bar span { display:block; height:100%; background: var(--brand); }
.pz-bar.pz-bar-out span { background: var(--bkz-danger); }
/* The exhaustion notice on the dashboard: the one line that points at the plans. It sits
   BELOW the stat strip and dresses like a footnote — hairline frame, small text, small
   button. The red lives in the tag alone: a red-framed box wedged above the numbers made
   a billing status outrank the data the page exists to show. */
.bl-note { display:flex; align-items:center; gap:12px; justify-content:space-between;
  border:1px solid var(--bkz-border-hairline); border-radius:var(--bkz-radius-md,8px);
  padding:8px 14px; margin:14px 0; font-size:var(--bkz-text-sm); color:var(--ui-ink-body); }
.bl-note .btn { flex:none; white-space:nowrap; }

/* ── Deprecation radar ─────────────────────────────────────────────────── */
/* Bare cards: one line each — marks, headline, status. The story lives in the drawer. */
.dp-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.dp-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 16px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-lg);
  background: var(--ui-surface); color: var(--ui-ink-body); cursor: pointer; font: inherit;
  transition: border-color var(--bkz-duration-base) var(--bkz-ease-settle); }
.dp-card:hover { border-color: var(--ui-border-hover); }
.dp-card-marks { flex: none; display: inline-flex; gap: 6px; align-items: center; }
.dp-card-marks .dp-mark { width: 15px; height: 15px; }
.dp-card-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-weight: 600; color: var(--ui-ink-strong); }
.dp-card .tag { flex: none; }

/* The drawer: slides in from the right, over a backdrop. */
.dp-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; }
.dp-drawer { position: fixed; top: 0; right: 0; height: 100dvh; width: min(560px, 94vw);
  z-index: 61; display: flex; flex-direction: column; background: var(--ui-surface);
  border-left: 1px solid var(--ui-border); box-shadow: var(--ui-shadow);
  transform: translateX(102%); visibility: hidden;
  transition: transform .28s var(--bkz-ease-settle), visibility 0s linear .28s; }
.dp-drawer.open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .dp-drawer { transition: none; } }
/* BREKEN_DRAWERS_LIGHT_1126: a closed drawer's contents are neither styled nor laid out on a page swap (300 closed cards: style and
   layout 150 ms -> 8 ms). Its content-visibility waits out the slide-out with visibility, so the card is seen leaving. Off: as above. */
@supports (transition-behavior: allow-discrete) {
  [data-drawers-light="on"] .dp-drawer:not(.open) { content-visibility: hidden; }
  @media (prefers-reduced-motion: no-preference) {
    [data-drawers-light="on"] .dp-drawer:not(.open) { transition: transform .28s var(--bkz-ease-settle), visibility 0s linear .28s,
      content-visibility 0s linear .28s allow-discrete; }
  }
}
.dp-drawer-head { flex: none; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--bkz-border-hairline); }
.dp-drawer-head .gd-tags { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.dp-close { border: 0; background: transparent; color: var(--ui-ink-muted); font-size: 1rem;
  cursor: pointer; padding: 4px 8px; text-decoration: none; line-height: 1; }
.dp-close:hover { color: var(--ui-ink-strong); }
.dp-drawer-scroll { flex: 1; overflow-y: auto; padding: 16px 18px; min-height: 0; }
.dp-drawer-title { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.35; color: var(--ui-ink-strong); }
.dp-drawer-note { margin: 2px 0 8px; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
/* Where the bug is, directly under its title. Reads as one line at any width: the path
   ellipsises from the left so `...path/file.ts:88` keeps the half that identifies it, and the
   repository name never wraps under it. */
.dp-anchor { display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  margin: 0 0 10px; padding: 7px 10px; border: 1px solid var(--bkz-border-hairline);
  border-radius: 8px; text-decoration: none; color: inherit; min-width: 0; }
a.dp-anchor:hover { background: var(--ui-sunk); border-color: var(--ui-border); }
.dp-anchor code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  direction: rtl; text-align: left; }
.dp-anchor .muted { flex: none; font-size: var(--bkz-text-sm); }
/* Introduced / found / fix — the three dates a reader wants before the argument, not after
   it. One row each, keys aligned, and the fix row only exists once a fix does. */
.dp-trace { list-style: none; margin: 12px 0 4px; padding: 10px 12px;
  border: 1px solid var(--bkz-border-hairline); border-radius: 8px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.dp-trace li { margin: 0; line-height: 1.5; }
.dp-trace b { display: inline-block; min-width: 4.5em; font-weight: 600;
  color: var(--ui-ink-body); }
.dp-files { display: flex; flex-direction: column; gap: 4px; }
.dp-file { display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  padding: 7px 10px; border: 1px solid var(--bkz-border-hairline); border-radius: 8px;
  text-decoration: none; color: inherit; min-width: 0; }
.dp-file:hover { background: var(--ui-sunk); border-color: var(--ui-border); }
.dp-file code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-file .muted { flex: none; font-size: var(--bkz-text-sm); }
.dp-drawer-actions { flex: none; display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-top: 1px solid var(--bkz-border-hairline); }
.dp-quiet { display: inline-flex; gap: 14px; margin-right: auto; }
.dp-link { border: 0; background: transparent; padding: 0; font: inherit; cursor: pointer;
  font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.dp-link:hover { color: var(--ui-ink-strong); }
.dp-open-pr { background: #fff; color: #16181d; border-color: #fff; font-weight: 600; }
.dp-open-pr:hover { background: #e9e9e9; border-color: #e9e9e9; }
.dp-delete { background: var(--bkz-danger-tint); color: var(--bkz-danger-ink);
  border: 1px solid var(--bkz-danger-border); font-weight: 600; }
.dp-delete:hover { border-color: var(--bkz-danger-ink); }
/* Account erasure is deliberately harder than an ordinary row action: the session-bound receipt
   is invisible, while the typed-login challenge and final button form one compact control. */
.account-delete-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px;
  width: min(340px, 42vw); white-space: normal; }
.account-delete-form > label, .account-delete-form > .input { grid-column: 1 / -1; }
.account-delete-form > .dp-delete { grid-column: 2; justify-self: end; }
/* Account → Email: the address and its Save button on one line. */
.acct-email-entry { display: flex; gap: 8px; align-items: center; }
.acct-email-entry .input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 880px) { .account-delete-form { width: min(100%, 340px); } }
/* The gates ran and cleared nothing. A whole sentence, not a chip: the reader's next move
   is the file it names, so it wraps to full width rather than being squeezed into the
   action row's remaining inches. */
.dp-blocked { flex: 1 1 100%; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted);
  line-height: 1.5; }
.dp-blocked code { color: var(--ui-ink-strong); }
.dp-drawer .dp-pick { margin: 0 18px 12px; max-width: none; }
.kb-says { display: flex; flex-direction: column; gap: 22px; padding: 18px 22px 24px; }
.kb-say-h { margin: 0 0 8px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; color: var(--ui-ink-faint); }
.kb-say .sub { margin: 0 0 10px; max-width: 68ch; line-height: 1.55; }
.kb-say .sub:last-child { margin-bottom: 0; }
.kb-say-list { margin: 0; padding-left: 1.15em; display: flex; flex-direction: column; gap: 10px;
  max-width: 68ch; line-height: 1.5; }
.kb-say-step { padding: 12px 0 0; margin-top: 12px; border-top: 1px solid var(--ui-line, rgba(255,255,255,0.08)); }
.kb-say-step:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.kb-say-b, .kb-say-step { min-width: 0; }
.kb-say-b .sub { max-width: 68ch; }

.dp-insight { margin: 8px 0 2px; line-height: 1.6; color: var(--ui-ink-body); max-width: 60ch; }
.dp-change { margin: 0 0 6px; }
.dp-change .dp-insight + .dp-insight { margin-top: 8px; }
.dp-gone-paths { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 8px 0 10px; max-width: 72ch; }
.dp-gone-paths .mono { font-size: var(--bkz-text-sm); color: var(--ui-ink-body); }
.dp-gone-dirs { list-style: none; margin: 10px 0 4px; padding: 0; display: flex;
  flex-direction: column; gap: 4px; max-width: 72ch; }
.dp-gone-dirs li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  font-size: var(--bkz-text-sm); }
.dp-gone-dirs .mono { color: var(--ui-ink-body); min-width: 0; overflow-wrap: anywhere; }
.dp-trust { display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  margin: 4px 0 10px; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.dp-trust-reason { display: block; overflow-wrap: anywhere; }
/* The claim's life in time order: said → seconded → re-checked → matched → shipped.
   Done steps carry their date; undone steps sit muted — they are the to-do list, and a
   reader locates the claim in its story at a glance instead of decoding an unordered
   sentence of facts. */
.dp-timeline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px;
  margin: 8px 0 16px; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.dp-step { white-space: nowrap; }
.dp-step-when { color: var(--ui-ink-muted); font-family: var(--bkz-font-mono);
  font-size: var(--bkz-text-xs); }
.dp-step-todo { color: var(--ui-ink-faint); }
.dp-step-arrow { color: var(--ui-ink-faint); }
/* The conversation as a timeline. A left rail with a dot per message says "sequence" without
   a single word of chrome; the newest row is the current word and gets the solid dot, a cited
   row — one the verdict quotes — gets the accent, and an original declaration stays plain.
   The distinction is the whole point: a reader can see WHICH message decided it. */
.dp-convo { display: flex; flex-direction: column; gap: 0; margin: 4px 0 10px; border-left: 1px solid var(--ui-border); padding-left: 14px; }
/* Collapsed by default: the drawer leads with what decides — title, insight, lifecycle,
   verdict — and the long-form sections sit behind folds whose summaries carry the counts,
   so a closed fold is a headline rather than a mystery. */
/* Folds as quiet rows. The summaries were uppercase, letter-spaced and led by a triangle —
   four shouting headlines in a column, each carrying a different number. Now: sentence
   case, one hairline between rows, the count sitting quietly at the right edge, and the
   only thing that moves on open is the row's own body. */
.dp-fold { margin: 0; border-top: 1px solid var(--bkz-border-hairline); }
.dp-fold:last-of-type { border-bottom: 1px solid var(--bkz-border-hairline); }
.dp-fold > .dp-fold-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  cursor: pointer; list-style: none; user-select: none; padding: 14px 0;
  font-size: var(--bkz-text-md); font-weight: 500; color: var(--ui-ink-body);
  outline: none; box-shadow: none; }
.dp-fold > .dp-fold-sum:hover { color: var(--ui-ink-strong); }
.dp-fold > .dp-fold-sum:focus, .dp-fold > .dp-fold-sum:focus-visible { outline: none; box-shadow: none;
  color: var(--ui-ink-strong); }
.dp-fold > .dp-fold-sum::-webkit-details-marker { display: none; }
/*
 * A fold that does not look like one is a heading nobody presses.
 *
 * Fix details, History and Code read as three section titles with nothing under them —
 * the marker was suppressed for the custom summary and never replaced. The triangle is
 * back, on the left where a reader looks for it, turning when the section opens.
 */
.dp-fold > .dp-fold-sum::before { content:"\25B8"; display:inline-block; margin-right:8px;
  color:var(--ui-ink-faint); font-size:10px; transition:transform 140ms ease; }
.dp-fold[open] > .dp-fold-sum::before { transform:rotate(90deg); }
.dp-fold > .dp-fold-sum:hover::before { color:var(--ui-ink-body); }
/* The summary is a flex row and the marker is its first item, so `space-between` was pushing
   the label to the far edge — a triangle alone on the left, its words alone on the right. The
   label sits beside its marker; only the count keeps the right edge. */
.dp-fold > .dp-fold-sum > span:first-of-type { margin-right:auto; }
.dp-fold-n { font-size: var(--bkz-text-sm); font-weight: 400; color: var(--ui-ink-muted);
  font-family: var(--bkz-font-mono); white-space: nowrap; }
.dp-fold[open] > .dp-fold-sum { color: var(--ui-ink-strong); }
.dp-fold[open] > :not(summary) { padding-bottom: 16px; }
/* A dead-only review can list dozens of declarations. Cap the open list so the
   prompt and the rest of the drawer stay on the same scroll, not two screens down. */
.dp-fold[open] > .rev-find-list { max-height: min(56vh, 28rem); overflow: auto; }
.dp-drawer-scroll > .dp-insight + .dp-fold { margin-top: 8px; }
.dp-fold + .dp-drawer-note { margin-top: 16px; }
/* Review findings in the drawer: one row, real padding, path wraps as its own line. */
.rev-find-list { display: flex; flex-direction: column; }
.rev-find { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0;
  border-top: 1px solid var(--bkz-border-hairline); }
.rev-find:first-child { border-top: 0; }
.rev-find > .tag { flex: none; margin-top: 2px; }
.rev-find-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rev-find-sum { line-height: 1.45; overflow-wrap: anywhere; color: var(--ui-ink-body); }
.rev-find-path { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); overflow-wrap: anywhere;
  width: fit-content; max-width: 100%; }
.rev-find-proof { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); overflow-wrap: anywhere; }
.rev-find .copy-btn { flex: none; margin-top: 1px; }
.rev-find-quiet { opacity: 0.72; }
.dp-tl-row { position: relative; padding: 4px 0 8px; }
.dp-tl-row::before { content: ''; position: absolute; left: -18px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--ui-surface); border: 1px solid var(--ui-ink-muted); }
.dp-tl-now::before { background: var(--ui-ink-body); border-color: var(--ui-ink-body); }
.dp-tl-cited::before { border-color: #2681c4; background: #2681c4; }
.dp-tl-mark { display: block; font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); margin-bottom: 3px; letter-spacing: 0.02em; }
.dp-tl-cited .dp-tl-mark { color: #2681c4; }
.dp-verdict { padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); background: var(--ui-sunk); font-size: var(--bkz-text-sm); line-height: 1.5; }
/* The case against a bug: the objection is the claim, the response is the answer under it.
   A definition list, because that is what this is — the reader scans the objections and
   drops into the one they were about to make themselves. */
.dp-objections { display: flex; flex-direction: column; gap: 16px; margin: 0;
  font-size: var(--bkz-text-sm); line-height: 1.5; }
.dp-obj { display: flex; flex-direction: column; gap: 8px; }
.dp-obj-q { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  margin: 0; font-weight: 600; color: var(--ui-ink-body); }
.dp-obj-q .tag { flex: none; }
.dp-obj-a { margin: 0; padding-left: 12px; border-left: 2px solid var(--ui-border);
  color: var(--ui-ink-muted); }
/* One declaration per row: the line first, because it is what a reviewer opens. */
.dp-drawer-lines { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 10px; }
.dp-line { font-size: var(--bkz-text-sm); line-height: 1.5; }
.dp-section-label { margin: 14px 0 4px; font-size: var(--bkz-text-sm); letter-spacing: .08em; text-transform: uppercase; color: var(--ui-ink-soft); }
.dp-evi { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: 4px 0; border: 1px solid var(--bkz-border-hairline); border-radius: 10px; text-decoration: none; color: inherit; }
a.dp-evi:hover { background: var(--ui-sunk); border-color: var(--ui-border); }
.dp-evi-dead { opacity: .8; cursor: default; }
.dp-evi-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--bkz-border-hairline); background: var(--ui-sunk); }
.dp-mark { width: 13px; height: 13px; }
.dp-evi-body { min-width: 0; display: block; }
.dp-evi-quote { display: block; line-height: 1.5; }
.dp-evi-meta { display: block; margin-top: 3px; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.dp-decide { display: inline-block; margin: 0 6px 0 0; }
.dp-pick { display: flex; gap: 8px; align-items: center; margin-top: 8px; max-width: 620px; }
.dp-pick .input { flex: 1; min-width: 0; font-size: var(--bkz-text-sm); }
.dp-pick .btn { flex: none; }
/* A row that is not a choice: shown so the person knows the org exists and why they
   cannot pick it, dimmed so it never competes with the ones they can. */
/* Dim the description, never the control. Dimming the whole row took the primary button
   down with it, which rendered a near-white "Install here" as flat grey and made the one
   thing on the row you are meant to press look like the disabled part. */
.ob-org-off { cursor: default; }
.ob-org-off .avatar, .ob-org-off .ob-org-n { opacity: .78; }
.ob-org-off .ob-why { text-align: right; }
.ob-org-off:hover { background: var(--ui-surface); }
.ob-ask { margin: 0; display: inline-flex; }

/* ---------- the account chooser: one status and one step per account ----------
   One grid, same four tracks on every row: face, name, status, action. Flex used to size
   the status to 46% of whatever was left, so tags and buttons sat in a different place on
   each row — and a missing avatar pulled that account's name left of the others. */
/* The account list is the page, not a box inside it: the setup card's 390px cap clipped the
   last accounts (an SSO row, the one most likely to need reading) behind an inner scroll. */
.auth2-card-wide .ob-panel:has(.ob-acct) { max-height: none; overflow: visible; }
.ob-acct { display: grid; grid-template-columns: 24px minmax(0, 1fr) 12rem 14.5rem;
  align-items: center; column-gap: 14px; }
.ob-acct > .avatar, .ob-acct > .ob-face { width: 24px; height: 24px; }
.ob-face { display: grid; place-items: center; flex: none; background: var(--ui-chip);
  color: var(--ui-ink-muted); font-size: 11px; font-weight: 650; line-height: 1; }
.ob-acct.ob-org-off .avatar, .ob-acct.ob-org-off .ob-org-n { opacity: 1; }
.ob-acct .ob-org-txt { min-width: 0; }
.ob-acct .ob-state { display: flex; align-items: center; justify-content: flex-start;
  min-width: 0; }
/* No row action: the tag is the right-hand thing, so it sits on that edge. */
.ob-acct .ob-state:has(+ .ob-ask:empty) { grid-column: 3 / -1; justify-content: flex-end; }
.ob-acct .ob-ask { display: flex; justify-content: flex-end; min-width: 0; width: 100%; }
.ob-status { white-space: nowrap; }
/* The status sits with its column, not centred by the amber tag's own rule. */
.ob-acct .ob-state > .tag { align-self: auto; }
.ob-actions { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 0; }
.ob-actions .ob-main { width: 100%; text-decoration: none; }
/* Under the main action: words only. The box belongs to the primary. */
.ob-actions .ob-more,
.ob-actions .ob-more:hover {
  margin-top: 0; width: 100%; height: auto; padding: 8px 0;
  border: 0; background: transparent; box-shadow: none;
}
@media (max-width: 560px) {
  .ob-acct { grid-template-columns: 24px minmax(0, 1fr) max-content;
    grid-template-areas: "face name ask" ". status status"; row-gap: 6px; }
  .ob-acct > .avatar, .ob-acct > .ob-face { grid-area: face; }
  .ob-acct .ob-org-txt { grid-area: name; }
  .ob-acct .ob-state { grid-area: status; }
  .ob-acct .ob-state:has(+ .ob-ask:empty) { justify-content: flex-end; }
  .ob-acct .ob-ask { grid-area: ask; justify-content: flex-end; }
}

/* Step four of the setup rail: the invite, sitting where the wait is. One row, so the
   field and its button read as one control rather than a form with an afterthought. */
.ob-invite { display: flex; gap: 8px; align-items: center; max-width: 560px; margin: 0; }
.ob-invite .input { flex: 1; min-width: 0; }
.ob-invite .btn { flex: none; }
/* Who has already been asked, so a reload does not read as though nothing happened. */
.ob-invited { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }

/* ---------- sidebar: the workspace switcher ----------
   Directly under the brand, where the thing you are looking at belongs. The account menu
   at the foot answers "who am I"; this answers "whose product is this", and until now only
   a cookie knew. The NAME and the chevron are ONE control that opens the picker — the
   founder's shape: clicking the org you are in asks which org you could be in. The gear
   sits alone at the right; home moved up to the brand mark. */
.sb-ws { position: relative; margin: 0 10px; display: flex; align-items: center; gap: 2px; }
/* The picker's own box must stay unpositioned so the menu anchors to the .sb-ws row. It
   holds only the arrow now, so it takes the arrow's width instead of the row's. */
.sb-ws-picker { flex: none; }
/* The name is a LINK to the workspace overview — the brand mark's destination, because the
   workspace's name and its logo mean the same thing. It takes the row's spare width so the
   two icon boxes beside it stay pinned at the right. */
.sb-ws-name { display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 1px; flex: 1; cursor: pointer; min-width: 0; padding: 6px 12px;
  border-radius: var(--bkz-radius-xl); color: var(--bkz-ink-rail); text-decoration: none;
  transition: all var(--bkz-duration-base); }
.sb-ws-name:hover { background: var(--ui-hover); text-decoration: none; color: var(--bkz-ink-strong); }
.sb-ws-name .lbl { font-size: var(--bkz-text-md); font-weight: 600; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; max-width: 100%; line-height: 1.25; }
.sb-ws-name .sub { font-size: var(--bkz-text-xs); color: var(--ui-ink-faint); flex: none;
  line-height: 1.2; }
/* Its own box, and it carries the hairline AT REST rather than only under the pointer.
   Hover-only chrome would have left the row looking exactly as it did when the name and the
   arrow were one control, which is the thing being fixed — a reader has to be able to see
   that the arrow is separately pressable without discovering it. The border also separates
   it from the gear beside it, and that difference is real: this one opens a menu in place,
   the gear navigates away. */
.sb-ws-chev { display: flex; width: 32px; height: 32px; flex: none; align-items: center;
  justify-content: center; list-style: none; cursor: var(--cursor-mark);
  border: 1px solid var(--bkz-border-hairline); border-radius: var(--bkz-radius-md);
  color: var(--ui-ink-faint); transition: all var(--bkz-duration-base); }
.sb-ws-chev::-webkit-details-marker { display: none; }
.sb-ws-chev:hover { background: var(--ui-hover); border-color: var(--ui-border-hover);
  color: var(--ui-ink-strong); }
.sb-ws-chev svg { width: 16px; height: 16px; transition: transform var(--bkz-duration-base) var(--bkz-ease-settle); }
/* Open is a state worth showing: the menu flies out to the side, so without this the only
   thing on screen that says where it came from is the arrow.

   AND IT POINTS AT THE MENU. Open used to flip the arrow to 180° — up — which is the
   convention for a menu that folds back into the control above it. This one does not fold
   anywhere; it flies out to the RIGHT (`.sb-ws-menu`, `left: calc(100% + 8px)`), so an arrow
   pointing up sent the eye to the one place the options are not. −90° turns the resting
   chevron east, at the menu. */
details.sb-ws-picker[open] > .sb-ws-chev { background: var(--ui-hover);
  border-color: var(--ui-border-hover); color: var(--ui-ink-strong); }
details.sb-ws-picker[open] .sb-ws-chev svg { transform: rotate(-90deg); }
/* The chevron's dtb tip sits in the same place the flyout does, and the pointer is still
   on the summary after click so :hover keeps painting it — z-index 70 over the menu's 45.
   Once the menu is open the tip restates the menu; hide it. */
details.sb-ws-picker[open] > .sb-ws-chev[data-tip]::after,
details.sb-ws-picker[open] > .sb-ws-chev[data-tip]::before,
details.sb-ws-picker[open] > .sb-ws-chev[data-tip]:hover::after,
details.sb-ws-picker[open] > .sb-ws-chev[data-tip]:hover::before {
  opacity: 0; visibility: hidden;
}
.sb-ws-menu { position: absolute; left: calc(100% + 8px); top: 0; width: 260px;
  display: flex; flex-direction: column; padding: 5px; z-index: 45;
  background: var(--ui-surface); border: 1px solid var(--ui-border); box-shadow: var(--ui-shadow); }
details.sb-ws-picker[open] > .sb-ws-menu { animation: sb-flyout 160ms var(--bkz-ease-settle); }
/* Switching is a POST — the route validates membership before it writes the cookie — so the
   control is a button wearing the same clothes as the links beside it. */
.sb-ws-form { margin: 0; display: block; }
.sb-ws-form .sb-link { width: 100%; border: 0; background: transparent; font: inherit;
  cursor: pointer; text-align: left; }
/* The current workspace: a marked fact, not a control. */
.sb-ws-menu div.sb-link { cursor: default; }
.sb-ws-menu .sb-link.on .lbl { color: var(--brand-ink); }

/* The rail's Workspace section: two fixed rows under the switcher that names the workspace
   they configure. `.sb-section` is `flex: 1` because it was written for the repository list,
   which is the one section that should absorb the leftover height — so a second section on
   the same rail has to opt out or the two split it down the middle. */
.sb-section.sb-fixed { flex: none; min-height: auto; }
/* Subtle but present: the workspace group is a fact about where you are, not a destination
   list, so its label recedes below the Repositories one — smaller, fainter, tighter. */
.sb-section.sb-fixed .sb-label { font-size: var(--bkz-text-2xs); color: var(--bkz-ink-ghost);
  padding-bottom: 3px; }

/* ---------- the org chooser: a row that is waiting on somebody else ----------
   Installing a GitHub App on an org you do not own does not fail and does not install —
   GitHub queues a request and mails the owners. That state used to render as "not connected
   yet" beside an Install button that had already been pressed, so people pressed it again.
   Amber says the ask is live and the row is not yours to act on. */
.ob-org-wait { cursor: default; background: var(--ui-warn-row); border-left: 2px solid var(--ui-warn-border); }
.ob-org-wait:hover { background: var(--ui-warn-row); }
.tag-wait { background: var(--bkz-warn-tint); color: var(--bkz-warn-ink); border-color: var(--ui-warn-border); }
/* Name over reason, in one shrinkable column.
   Side by side these fought: `.ob-org-n` holds `flex: 1`, so a whole sentence beside it had
   no width of its own and rendered straight across the name, while the tag wrapped mid-word
   trying to fit what was left. Stacked, the name is a name and the sentence gets the row. */
.ob-org-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ob-org-txt .ob-org-n { flex: none; }
.ob-why { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); line-height: 1.45; }
/* Never mid-word. `request sent` broken across two lines reads as two states. */
.tag-wait { white-space: nowrap; flex: none; align-self: center; }
/* The rows either side of a waiting one are single-line, so match their rhythm rather than
   letting a two-line row set its own. */
.ob-org-wait { align-items: center; }
/* BREKEN_INSTALL_RETURN_1201 (install-return-1201.ts): the request sent on GitHub, said once, on the page's own neutral surface: the panel's
   border and surface, its ink, one heading and one line, and a quiet link. The asked row and its chip are neutral too (off: the amber above). */
.ob-asked { margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); background: var(--ui-surface); }
.ob-asked-h { margin: 0; font-size: var(--bkz-text-md); font-weight: 600; line-height: 22px; color: var(--ui-ink-strong); }
.ob-asked-p { margin: 4px 0 0; font-size: var(--bkz-text-sm); line-height: 1.55; color: var(--ui-ink-soft); }
.ob-asked-own { margin: 10px 0 0; }
.ob-asked-own .auth2-link { font-size: var(--bkz-text-sm); line-height: 1.55; color: var(--ui-ink-soft); text-underline-offset: 3px; }
.ob-asked-own .auth2-link:hover { color: var(--ui-ink-body); }
.ob-org-asked { cursor: default; align-items: center; }
.ob-asked-tag { white-space: nowrap; flex: none; align-self: center; }
/* Said once above the list, not repeated per row. */
.ob-wait-note { display: flex; align-items: center; gap: 10px; margin: 14px 0 0;
  padding: 12px 16px; border: 1px solid var(--ui-warn-border); background: var(--ui-warn-row);
  color: var(--bkz-warn-ink); font-size: var(--bkz-text-sm); line-height: 1.55;
  border-radius: var(--bkz-radius-md); }
/* A live pulse, so a page that refreshes itself looks like it is working rather than stuck.
   Motion is the only thing on this screen that says "still going"; honour the setting that
   asks for none, and it falls back to a plain dot. */
.ob-pulse { flex: none; width: auto; height: auto; border-radius: 0; background: none;
  font: 600 13px/1 var(--bkz-font-mono); animation: dot-breathe 1.4s ease-in-out infinite; }
.ob-pulse::before { content: "\2022"; }
@media (prefers-reduced-motion: reduce) { .ob-pulse { animation: none; opacity: .8; } }
/* ---------- the operator console (/admin) ----------
   A fleet table is a shape this stylesheet did not have. `.trow` is a two- or three-column
   grid built for "name, detail, control"; the console needs ten columns of numbers that must
   line up down the page, and forcing that into `.trow` produced a row whose columns moved
   with their contents. So it gets its own grid — one template, shared by the header row and
   the data rows, which is what makes them line up — and nothing else: the tiles, tags, chips,
   inputs and page head are the classes above, unchanged. No colours are defined here; every
   value is a token, so the console follows the skin like everything else.

   Wider than the product column on purpose. `.main-inner` is 1152px because prose and cards
   read badly wider; ten columns read badly narrower, and this page has one reader. */
.page-admin { max-width: 1560px; }
/* Outreach roster. One grid shared by the header and the rows, so the YC list reads as
   links rather than as an empty page waiting on a worker. */
.orows { display: flex; flex-direction: column; margin-top: 4px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); overflow: hidden; }
.orow { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem 11rem 12.5rem; gap: 16px; align-items: center; padding: 8px 14px; font-size: var(--bkz-text-sm); border-top: 1px solid var(--bkz-border-hairline); background: var(--ui-surface); }
.orow > :nth-child(2),
.orow > :nth-child(3) { justify-self: start; white-space: nowrap; }
.orow-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.orow-actions form { margin: 0; }
.orow:first-child { border-top: 0; }
.orow-h { background: var(--ui-sunk); font-weight: 600; color: var(--ui-ink-body); font-size: var(--bkz-text-xs); letter-spacing: 0.04em; text-transform: uppercase; }
.orepo { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.orepo a { font-family: var(--bkz-font-mono); font-size: var(--bkz-text-xs); }
.orepo .muted { font-size: var(--bkz-text-xs); }
.or-quiet { margin: 0 0 4px; color: var(--ui-ink-muted); font-size: var(--bkz-text-sm); }
.or-add { margin-top: 16px; }
.or-add summary { cursor: pointer; color: var(--ui-ink-body); font-size: var(--bkz-text-sm); }
.or-add textarea { display: block; width: 100%; max-width: 520px; margin: 10px 0 8px; }
.or-add .btn { margin-top: 8px; }
@media (max-width: 720px) {
  .orow { grid-template-columns: minmax(0, 1fr) auto; }
  .orow-h { display: none; }
  .orow > :nth-child(3) { display: none; }
}
.page-admin .page-head { margin-bottom: 6px; }
.page-admin .page-head .page-title { margin: 0; }
.page-admin .page-head + .ops-note,
.page-admin .page-head .ops-note { margin-top: 6px; }
/* The console's only navigator. The bar names the page; Factory does not repeat it
   as an h1. Sticky because a table that scrolls still needs the way to Spend and
   the way out. */
.ops-bar { position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--ui-border);
  background: color-mix(in srgb, var(--bkz-bg) 86%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.ops-bar-inner { display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 12px; padding: 10px 16px; }
.ops-bar-brand { justify-self: start; font-size: var(--bkz-text-xs); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ui-eyebrow); white-space: nowrap; }
.ops-bar-brand:hover { color: var(--ui-ink-body); text-decoration: none; }
.ops-bar-nav { justify-self: center; display: inline-flex; align-items: center; gap: 2px;
  border-radius: var(--bkz-radius-md); padding: 2px; background: var(--ui-trough); }
.ops-bar-end { justify-self: end; display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-admin .stc-l { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
/* The live count, pulled out of the label's grey. A dot in the success colour ahead of it
   because "active" is a state, and the eye finds a dot before it reads a word. */
.stc-live { display: inline-flex; align-items: center; gap: 8px; padding: 3px 11px 3px 9px;
  border-radius: 9999px; background: var(--bkz-success-tint); color: var(--bkz-success-ink);
  border: 1px solid var(--bkz-success-border); letter-spacing: 0.04em; font-weight: 600;
  line-height: 1.35; }
/* The halo counts as width the flex gap cannot see, so the dot carries its own 3px of it as
   margin — without that the ring sits on the pill's border and the text crowds the dot. */
.stc-live::before { content: ''; width: 5px; height: 5px; margin: 0 3px; flex: none;
  border-radius: 9999px; background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
/* A caveat on the number beside it, not a status. Deliberately NOT `.stc-live`'s green pill:
   that one says "true right now" and this one says "and here is the part you should not read
   as good news". Quiet, because it qualifies the figure rather than competing with it. */
.stc-note { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 9999px;
  background: var(--ui-tint-5); color: var(--ui-ink-muted); border: 1px solid var(--ui-border);
  letter-spacing: 0.03em; font-weight: 500; line-height: 1.35; cursor: help; }
/* One row, one baseline. `.subnav` carries a 14px top margin for the places it stands alone,
   which inside a centred flex row read as the pill groups sitting below the row they are in;
   the row owns its own spacing instead. */
.ops-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.ops-controls .subnav { margin-top: 0; }
/* One control: the icon and the clear × sit inside the field's own box rather than beside it,
   so the row ends in a single shape instead of a box, a button, and sometimes a second button. */
.ops-search { position: relative; display: flex; align-items: center; margin-left: auto; }
.ops-search .input {
  box-sizing: border-box; width: 260px; height: 36px;
  padding: 0 12px 0 34px; line-height: 34px;
  appearance: none; -webkit-appearance: none;
}
.ops-search:has(.ops-search-x) .input { padding-right: 30px; }
.ops-search-i { position: absolute; left: 12px; top: 50%; margin-top: -7px;
  width: 14px; height: 14px; pointer-events: none; color: var(--bkz-muted); }
.ops-search:focus-within .ops-search-i { color: var(--ui-ink-body); }
.ops-search-x { position: absolute; right: 8px; top: 50%; margin-top: -9px;
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 9999px; font-size: 14px; line-height: 1;
  color: var(--bkz-muted); }
.ops-search-x:hover { background: var(--ui-trough); color: var(--ui-ink-strong); text-decoration: none; }
/* Off-screen rather than a 1px speck inside the field — that speck read as a stray rule. */
.ops-search-go { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.ops-search .input::-webkit-search-cancel-button,
.ops-search .input::-webkit-search-decoration { display: none; }
/* The table scrolls sideways INSIDE its own border rather than pushing the page wide: a
   horizontally scrolling document loses the stat strip and the filter the moment you look
   at the last column. */
/* Scrolls in BOTH axes inside its own border: sideways so the last column never pushes the
   page wide, and vertically so the header row's `position: sticky` has a scroll container to
   stick to. Five hundred workspaces with a header that scrolls away is a table of unlabelled
   numbers by row forty. */
.ops-tbl { margin-top: 12px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md);
  overflow: auto; max-height: calc(100vh - 300px); }
/* Eleven columns: estimated MRR beside billing, pipelines last — counted as 1 for every
   workspace until the factory can say otherwise. */
.ops-row { display: grid; grid-template-columns:
    minmax(180px, 2fr) 70px 90px 90px 70px 150px 160px 110px minmax(120px, 1fr) 90px 80px;
  gap: 14px; align-items: center; min-width: 1380px; padding: 10px 16px;
  border-top: 1px solid var(--bkz-border-hairline); background: var(--ui-surface);
  font-size: var(--bkz-text-sm); }
.ops-row > * { justify-self: center; text-align: center; }
.ops-row:first-child { border-top: 0; }
.ops-row:hover { background: var(--ui-row-hover); }
.ops-head { position: sticky; top: 0; z-index: 1; background: var(--ui-sunk); font-size: var(--bkz-text-xs);
  font-weight: 600; letter-spacing: var(--bkz-tracking-eyebrow-widest); text-transform: uppercase;
  color: var(--bkz-muted); }
.ops-head:hover { background: var(--ui-sunk); }
.ops-name { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.ops-login { font-weight: 600; color: var(--bkz-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-name .muted { font-size: var(--bkz-text-xs); }
.ops-sub { display: block; font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); font-variant-numeric: normal; }
.ops-fail { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ops-fail-n { color: var(--bkz-danger, #f87171); text-decoration: none; }
.ops-fail-n:hover { text-decoration: underline; text-underline-offset: 2px; }
a.ops-bugs { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
a.ops-bugs:hover { border-bottom-style: solid; }
.ops-retry { display: inline; margin: 0; }
.ops-retry-go {
  padding: 0; border: 0; background: none; color: var(--bkz-ink); cursor: pointer;
  font: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 2px;
}
.ops-retry-go:hover { color: var(--ui-ink-strong); }
.ops-retry-all { margin: 8px 0 0; }
.ops-row .tnum { color: var(--bkz-ink); font-variant-numeric: tabular-nums; }
/* A rehearsal row: the same row, one quiet tag beside the name, and a little less ink so
   the real fleet above it reads first. */
.ops-demo-tag { padding: 1px 6px; font-size: 9.5px; letter-spacing: .1em; vertical-align: middle; }
.ops-row.ops-demo .tnum, .ops-row.ops-demo .ops-login { color: var(--ui-ink-body); }
.ops-note { margin: 6px 0 12px; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); line-height: 1.5; max-width: 72ch; }
/* app.users as a sheet: the cell is the input, so typing does not look like a form
   stacked on a table. Save stays visible without JS; JS marks a dirty row. */
.ops-users { margin-top: 12px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md);
  overflow: auto; max-height: calc(100vh - 180px); }
.ops-users-row { display: grid; grid-template-columns:
    minmax(165px, 1.3fr) 88px 110px minmax(105px, 1fr) 52px 105px 57px 75px 150px 130px;
  gap: 8px; align-items: center; min-width: 1110px; padding: 6px 10px;
  border-top: 1px solid var(--bkz-border-hairline); background: var(--ui-surface);
  font-size: var(--bkz-text-sm); }
.ops-users-row > * { min-width: 0; }
.ops-users-row:first-child { border-top: 0; }
.ops-users-row:hover { background: var(--ui-row-hover); }
.ops-users-row[data-id] { position: relative; cursor: pointer; }
.ops-users-door { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ops-users-identity, .ops-users-acts, .ops-users-found { position: relative; z-index: 2; }
.ops-users-identity-meta { display: flex; align-items: center; gap: 4px; padding-left: 8px;
  font-size: var(--bkz-text-xs); white-space: nowrap; }
.ops-users-identity .ops-users-cell { height: 24px; }
.ops-users-github { width: 78px !important; height: 20px !important; padding: 0 3px !important;
  font-size: var(--bkz-text-xs) !important; }
.ops-users-head { position: sticky; top: 0; z-index: 1; background: var(--ui-sunk);
  font-size: var(--bkz-text-xs); font-weight: 600; letter-spacing: var(--bkz-tracking-eyebrow);
  text-transform: uppercase; color: var(--bkz-muted); padding-top: 8px; padding-bottom: 8px; }
.ops-users-head:hover { background: var(--ui-sunk); }
.ops-users-head > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-users-id { display: inline-block; max-width: 65px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ui-ink-muted); font-size: var(--bkz-text-xs); }
.ops-users-cell { box-sizing: border-box; width: 100%; min-width: 0; height: 32px;
  padding: 0 8px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--bkz-ink); font: inherit; cursor: text; }
.ops-users-cell:focus { outline: none; border-color: var(--ui-border); background: var(--ui-sunk); }
.ops-users-ws { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-users-found { min-width: 0; color: var(--bkz-ink); text-decoration: none; }
.ops-users-found:hover { text-decoration: underline; }
.ops-users-acts { position: sticky; right: 0; z-index: 3; isolation: isolate; display: flex; justify-content: flex-end; gap: 6px;
  background: var(--ui-surface); padding-left: 8px; }
.ops-users-head > :last-child { position: sticky; right: 0; background: var(--ui-sunk); }
.ops-users-row:hover .ops-users-acts { background: var(--ui-row-hover); }
.ops-users-row.dirty { background: color-mix(in srgb, var(--bkz-success-tint) 35%, var(--ui-surface)); }
.ops-users-row.dirty .ops-users-acts { background: color-mix(in srgb, var(--bkz-success-tint) 35%, var(--ui-surface)); }
.ops-users-row.deleting { opacity: 0.55; }
.ops-users-row.deleting .ops-users-acts { opacity: 1; }

/* ---------- the live spend log (/admin/spend) ----------
   Same reason the fleet table left `.trow`: seven facts on a call must line up down the
   page, and `.trow` is a two-column "name, detail" grid. Forcing the log into it stacked
   When/Model/Latency/Outcome in the left cell and Workspace/Tokens/Cost in the right, so
   the header and the rows never shared a column and each call spent a screen of height.
   The filters were a wall for a second reason: `.input` is `width: 100%`, so five selects
   each took the page. One row of controls, one seven-column grid, same tokens as Fleet. */
.spend-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }
.spend-filters .dd-field { width: auto; flex: 1 1 160px; min-width: 148px; max-width: 280px; }
.spend-filters .input { width: auto; flex: 1 1 140px; min-width: 132px;
  padding: 7px 10px; font-size: var(--bkz-text-sm); }
.spend-filters .btn { flex: none; }
.spend-tbl { margin-top: 12px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md);
  overflow: auto; max-height: calc(100vh - 520px); }
.spend-row { display: grid; grid-template-columns:
    minmax(148px, 0.9fr) minmax(140px, 1.4fr) minmax(140px, 1.2fr)
    minmax(76px, 0.55fr) minmax(72px, 0.5fr) minmax(64px, 0.45fr) minmax(80px, 0.5fr)
    minmax(72px, 0.55fr);
  gap: 12px; align-items: center; min-width: 1000px; padding: 9px 16px;
  border-top: 1px solid var(--bkz-border-hairline); background: var(--ui-surface);
  font-size: var(--bkz-text-sm); }
.spend-row:first-child { border-top: 0; }
.spend-row:hover { background: var(--ui-row-hover); }
.spend-head { position: sticky; top: 0; z-index: 1; background: var(--ui-sunk);
  font-size: var(--bkz-text-xs); font-weight: 600; letter-spacing: var(--bkz-tracking-eyebrow);
  text-transform: uppercase; color: var(--bkz-muted); padding-top: 8px; padding-bottom: 8px; }
.spend-head:hover { background: var(--ui-sunk); }
.spend-row > * { min-width: 0; }
.spend-when { font-variant-numeric: tabular-nums; color: var(--ui-ink-body); white-space: nowrap; }
.spend-who, .spend-model, .spend-out { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* Outcome is a mark, not a column of stretched boxes. Flex-column was stretching
   `.tag` to the cell width, so "ok" sat in a green slab. Hug the word and centre it. */
.spend-out { align-items: center; text-align: center; }
.spend-out .tag { width: max-content; justify-content: center; padding: 2px 7px; }
.spend-who-n { font-weight: 600; color: var(--bkz-ink); }
.spend-who-n, .spend-model-n, .spend-who .ops-sub, .spend-model .ops-sub {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spend-n, .spend-usd { text-align: right; font-variant-numeric: tabular-nums; color: var(--bkz-ink); }
.spend-head .spend-n, .spend-head .spend-usd { color: inherit; }
.spend-new { animation: spend-in 1.4s var(--bkz-ease-settle); }
@keyframes spend-in { from { background: var(--bkz-success-tint); } to { background: var(--ui-surface); } }
@media (prefers-reduced-motion: reduce) { .spend-new { animation: none; } }

/* This month by type / by model: Fleet's spend rows, without the per-kind models column. */
#spend-kinds, #spend-models { margin-top: 16px; padding: 14px 0 8px; }
#spend-kinds .panel-h, #spend-models .panel-h { padding: 0 16px 8px; }
#spend-kinds .adm-spend-row, #spend-models .adm-spend-row {
  grid-template-columns: minmax(132px, 1fr) minmax(72px, 1fr) 5.5rem 3.25rem minmax(168px, 1.4fr);
}
#spend-kinds .adm-spend-row > *, #spend-models .adm-spend-row > * { min-width: 0; }

/* Daily inference: one bar per calendar day above the all-time total. Bars, not a line —
   a day is a bucket. Today's bar is the brand mark so the live day is findable without
   reading the axis. Zero days keep a faint stub so the calendar still reads as days. */
.spend-trend { padding: 14px 18px 8px; margin-top: 6px; }
.spend-trend .panel-h { margin-bottom: 8px; }
.spend-chart { display: block; width: 100%; height: auto; overflow: visible; }
.spend-chart-bar { fill: color-mix(in srgb, var(--brand) 42%, transparent); }
.spend-chart-now { fill: var(--brand); }
.spend-chart-zero { fill: var(--ui-trough); }
.spend-chart-bar:hover { fill: var(--brand); }
.spend-chart-axis { stroke: var(--bkz-border-hairline); stroke-width: 1; }
.spend-chart-x, .spend-chart-peak {
  font-family: var(--bkz-font-mono); font-size: 11px; fill: var(--ui-ink-muted); }
.spend-chart-peak { font-variant-numeric: tabular-nums; }

/* ---------- the repository picker's row ----------
   Its own class, because it used to share `.ob-org` with the organisation chooser and the two
   lists are read differently. The chooser offers a handful of big targets and gets 58px of
   height for them; this list runs to hundreds of names and is read by scanning, so a row that
   tall turned a twenty-repository grant into several screens and pushed the action at the foot
   out of reach. Compact here, roomy there, one class each. */
.ob-pick { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0;
  cursor: pointer; color: inherit; font: inherit; text-align: left; }
.ob-pick input[type="checkbox"], .ob-pick input[type="radio"] { flex: none; margin: 0; }
/* A span, not a code chip: the chip's filled box reads as an input to type into at this size,
   and breaks mid-name on anything long. Ellipsis rather than wrap, so every row is one line
   and the list keeps a single rhythm; the full name is in the title. */
.ob-pick-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--bkz-font-mono); font-size: var(--bkz-text-sm); color: var(--ui-ink-body); }
.ob-pick:hover .ob-pick-n { color: var(--ui-ink-strong); }
.ob-pick-in { cursor: default; }
.ob-pick-in:hover .ob-pick-n { color: var(--ui-ink-body); }
.ob-in { flex: none; font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); letter-spacing: 0.02em; }
/* The row's own padding lives on the `.trow` that wraps it — a second set here is what made
   the label taller than the row containing it. */
.pick-form .trow { padding-top: 6px; padding-bottom: 6px;
  grid-template-columns: minmax(0, 1fr) auto; }
.pick-form .trow > :last-child { justify-self: end; }
/* The fork heads-up under a repository's name: its own line, lined up with the name rather
   than the checkbox (13px box + the row's 10px gap), wrapping anywhere so a long original's
   name never runs past the card on a phone. A row that carries one aligns its cells to the
   top, so the status sits beside the name instead of floating to the middle of two lines. */
.pick-fork { display: block; margin: 2px 0 0 23px; font-size: var(--bkz-text-xs); line-height: 1.5;
  overflow-wrap: anywhere; }
.pick-form .trow:has(.pick-fork) { align-items: start; }

/* ---------- a finished step is a way back ----------
   A ticked step used to be a decision with no way to revisit it, which reads as final — and
   choosing the wrong organisation is an ordinary thing to do. The gate already allowed every
   backwards route while setup runs; only the UI never offered them.

   Layout belongs to `.ob-s` and is NOT restated here. This rule set the step's own
   display/align/gap back when the mark was a rail row, and it sits later in the file than
   `.ob-s` does — so it silently won those three properties for exactly the ticked steps,
   giving them a different alignment rule and a 1px-wider gap than the step beside them.
   A link is a link; the strip decides the shape.

   The "change" hint that used to appear on hover went with the rail row it labelled: on a
   one-line strip the word doubled the width of the mark it was attached to, and the colour
   shift below already says the mark is a control. */
.ob-back { text-decoration: none; color: inherit; }
.ob-back:hover, .ob-back:focus-visible { text-decoration: none; }
/* The ingest table's three columns: name, what it is doing, what it found.
   The middle track used to be max-content. The meter inside it is width:100%, so the
   column's size depended on the bar and the bar's size depended on the column. The track
   collapsed and the name painted through the badge and the progress line. A fraction with
   a floor gives the bar a box, and the name ellipsises inside its own. */
.ing-rows .trow { grid-template-columns: minmax(8rem, 1.2fr) minmax(14rem, 1fr) minmax(0, 1.5fr); gap: 14px; }
.ing-rows .trow > span { min-width: 0; }
.ing-rows .ob-pick-n { display: block; width: 100%; }
.ing-act { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; white-space: nowrap; min-width: 0; }
.ing-credit-wait { color: var(--bkz-warn-ink); max-width: 62ch; line-height: 1.45; }
.ing-act .muted { white-space: nowrap; }
.ing-act form { display: inline-flex; margin: 0; }
/* After the ingest bar: air above, none of the 2rem hole `p.sub` leaves before the table. */
.ing-note { margin: 14px 0 0; max-width: 62ch; font-size: var(--bkz-text-md);
  line-height: 1.55; color: var(--ui-ink-muted); }
.ing-note + .ing-note { margin-top: 8px; }
.panel:has(> .ing-note) + .tbl { margin-top: 20px; }
/* Continue and the line that indexing is still running used to sit flush —
   the caption read as part of the button. Gap, not margin: `p { margin: 0 }`
   and a class the card never loaded both left them touching. */
.ing-continue { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ing-continue .btn-row { margin-top: 16px; }
.ing-continue p { max-width: 46ch; line-height: 1.45; }

/* ---------- the timeline: a debugging surface, not a dashboard ----------
   Every value here is a token, so this follows the skin like everything else. The only
   deliberate colour decisions are the four tiers and the two clocks, and both encode a fact
   rather than a mood: a tier says how much the row can support, and a clock says whether the
   time beside it can be ordered against its neighbours at all.

   Nothing is scored, summarised or clustered. The page exists to be distrusted — to let
   somebody hold twenty real incidents up to the light before anything is built on the joins
   underneath — so its job is to show the raw claim beside its reason and get out of the way. */
.tl { display: flex; flex-direction: column; margin-top: 14px;
  border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); overflow: hidden; }
.tl-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px;
  padding: 12px 14px; border-top: 1px solid var(--bkz-border-hairline); background: var(--ui-surface); }
.tl-row:first-child { border-top: 0; }
.tl-when { display: flex; flex-direction: column; gap: 4px; }
.tl-when .mono { font-variant-numeric: tabular-nums; color: var(--bkz-ink); font-size: var(--bkz-text-sm); }

/* The clock, on every row rather than once at the top. A reader scanning rows has to see it
   on the row they are scanning — `server` is a time we can reason about, `client` came off a
   visitor's machine and is wrong by however wrong that machine is. */
.tl-clock { font-size: 10.5px; letter-spacing: var(--bkz-tracking-eyebrow-widest);
  text-transform: uppercase; }
.tl-clock-server { color: var(--ui-ink-faint); }
.tl-clock-client { color: var(--bkz-warn-ink); }
.tl-clock-unknown { color: var(--bkz-danger-ink); }

.tl-what { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tl-head { display: flex; align-items: center; gap: 8px; }
.tl-provider { font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); }
.tl-src { margin-left: auto; font-size: var(--bkz-text-xs); }
.tl-body { color: var(--bkz-ink); font-size: var(--bkz-text-sm); overflow-wrap: anywhere; }
.tl-why { font-size: var(--bkz-text-xs); }
.tl-meta { font-size: var(--bkz-text-xs); color: var(--ui-ink-faint); overflow-wrap: anywhere; }

/* The tier badge. A is the only one that proves anything, so it is the only one that reads as
   an assertion; D is deliberately quiet, because a timeline that is mostly D is a timeline to
   distrust and it should LOOK that way before anyone reads the reasons. */
.tl-tier { flex: none; min-width: 20px; text-align: center; padding: 1px 6px;
  border-radius: var(--bkz-radius-sm); font-size: 10.5px; font-weight: 600;
  border: 1px solid transparent; }
.tl-seed { background: var(--ui-chip); color: var(--bkz-ink); border-color: var(--ui-border); }
.tl-A { background: var(--bkz-success-tint); color: var(--bkz-success-ink); border-color: var(--bkz-success-border); }
.tl-B { background: var(--ui-chip); color: var(--bkz-ink); border-color: var(--ui-border); }
.tl-C { background: var(--ui-sunk); color: var(--ui-ink-muted); border-color: var(--bkz-border-hairline); }
.tl-D { background: transparent; color: var(--ui-ink-faint); border-color: var(--bkz-border-hairline); }

/* The legend sits on the page, not in a tooltip: somebody auditing the engine needs the
   definitions in front of them while they read the rows, not one hover away. */
.tl-legend { display: flex; flex-direction: column; gap: 6px; margin-top: 12px;
  padding: 12px 14px; background: var(--ui-sunk); border: 1px solid var(--bkz-border-hairline);
  border-radius: var(--bkz-radius-md); }
.tl-legend-row { display: flex; align-items: baseline; gap: 10px; }

.tl-raw { margin-top: 2px; }
.tl-raw summary { cursor: pointer; font-size: var(--bkz-text-xs); }
.tl-raw pre { margin: 6px 0 0; padding: 10px; overflow-x: auto; font-size: var(--bkz-text-xs);
  background: var(--ui-sunk); border-radius: var(--bkz-radius-sm); color: var(--ui-ink-soft); }

@media (max-width: 720px) {
  .tl-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tl-when { flex-direction: row; align-items: baseline; gap: 8px; }
}

/* Ingestion pipeline panel (/integrations) — the connection→corpus→claims→signals→queue funnel.
   Three lines. The 22/26 pad made a Zendesk-only card look like an empty hero: a title,
   two sentences, and a box twice their height. The heading stays a `.panel-h`; the
   sentences stay a stack. The pad matches a normal panel, not a roomy one. */
.ing-panel { padding: 12px 16px; }
.ing-panel > .panel-h { margin-bottom: 0; }
.ing-status { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.ing-line { margin: 0; font-size: var(--bkz-text-sm); line-height: 1.5; color: var(--ui-ink-body); }
.ing-line.muted { font-size: var(--bkz-text-xs); color: var(--ui-ink-faint); }

/* The add-a-workspace title is one line, and the rail needs air under it.
   `auth2-h1` is sized for the two-line setup headlines, so a short one sat tight against the
   card below it and the two read as a single block. */
.ob-h1-one { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.15; margin-bottom: 26px; }
/* This title and the line under it each stay on one line. The shared one-line size
   still wraps "We found existing workspaces", and the longer lede wrapped with it. */
.ob-found-h { font-size: clamp(18px, 2.2vw, 24px); }
.ob-found-lede { font-size: 13px; line-height: 18px; }
/* The 26px is air before the account list. A lede under the title does not need that gap. */
.ob-h1-one:has(+ .auth2-lede) { margin-bottom: 8px; }
.ob-h1-one + .auth2-lede { margin-top: 0; }

/* ── History: the life of one feature ───────────────────────────────────────
   A spine with a node per episode. Phase is carried by the node's colour AND by a word
   beside it — colour alone would make the decisive moments invisible to a reader who
   cannot separate them, and "retired" is exactly the moment nobody can afford to miss. */
.tl-form { display: flex; gap: 10px; align-items: center; }
.tl-form .input { flex: 1 1 auto; }
.tl-suggest { margin: 10px 0 0; }
.tl-suggest a { color: var(--ui-ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.tl-suggest a:hover { color: var(--ui-ink-strong); }
.tl-note { font-size: var(--bkz-text-sm); line-height: 1.5; margin: 6px 0 0; }
.tl-prose { font-size: var(--bkz-text-md); line-height: 1.65; margin: 0; }
.tl-warn { font-size: var(--bkz-text-sm); line-height: 1.5; color: var(--bkz-danger-ink);
  background: var(--bkz-danger-tint); border: 1px solid var(--bkz-danger-border);
  border-radius: 8px; padding: 8px 12px; margin: 10px 0 0; }
.tl-counts { display: flex; flex-wrap: wrap; gap: 18px; margin: 4px 0 16px;
  font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.tl-counts b { color: var(--ui-ink-strong); font-weight: 600; }

.tl-spine { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.tl-spine::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 1px; background: var(--bkz-border-hairline); }
.tl-ep { position: relative; padding: 0 0 22px; }
.tl-ep:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -22px; top: 5px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--ui-sunk); border: 2px solid var(--ui-border); }
/* The moments that ended something get a filled node and a heavier label — a reader
   scanning for "when did we stop using this" should not have to read every row. */
.tl-ep-key .tl-dot { background: var(--bkz-danger-ink); border-color: var(--bkz-danger-ink); }
.tl-ep-key .tl-phase { color: var(--bkz-danger-ink); }
.tl-ph-broke .tl-dot { border-color: var(--bkz-danger-border); }
.tl-ep-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.tl-phase { font-weight: 600; font-size: var(--bkz-text-sm); letter-spacing: 0.02em;
  text-transform: uppercase; }
.tl-when { font-size: var(--bkz-text-sm); color: var(--ui-ink-strong); }
.tl-ep-head .muted { font-size: var(--bkz-text-sm); }
.tl-ep-why { margin: 2px 0 8px; font-size: var(--bkz-text-sm); }

.tl-hit { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px;
  border: 1px solid var(--bkz-border-hairline); border-radius: 8px;
  text-decoration: none; color: inherit; }
.tl-hit:hover { background: var(--ui-sunk); border-color: var(--ui-border); }
.tl-hit-dead { opacity: 0.75; }
.tl-quote { font-size: var(--bkz-text-sm); line-height: 1.55; }
.tl-meta { font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); }
/* The audit badge. Its title carries the tier's meaning, so the page never asks a reader
   to hold four letters in their head. */
.tl-tier { display: inline-block; min-width: 15px; text-align: center; border-radius: 4px;
  background: var(--ui-sunk); border: 1px solid var(--bkz-border-hairline);
  font-weight: 600; padding: 0 4px; cursor: help; }
.tl-more { margin: 8px 0 0; }
.tl-more summary { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); cursor: pointer; }
.tl-more summary:hover { color: var(--ui-ink-strong); }
.tl-more-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 0; }

/* A grid, not a table — the design system styles no table elements outside the wiki. */
.tl-grid { margin: 12px 0 0; font-size: var(--bkz-text-sm); }
.tl-row { display: grid; grid-template-columns: minmax(120px, 1.4fr) 84px 72px 96px 1fr;
  gap: 12px; align-items: baseline; padding: 6px 0;
  border-bottom: 1px solid var(--bkz-border-hairline); }
.tl-head { font-weight: 600; color: var(--ui-ink-muted); }
.tl-cell-num { text-align: right; font-variant-numeric: tabular-nums; }
.tl-cell-note { color: var(--ui-ink-muted); }
/* Struck words stay legible: the reader has to see WHAT was discarded, which is the
   entire point of showing this at all. */
.tl-struck { color: var(--ui-ink-muted); }
.tl-struck code { text-decoration: line-through; }
@media (max-width: 720px) {
  .tl-row { grid-template-columns: 1fr auto; }
  .tl-cell-verdict, .tl-cell-note { grid-column: 1 / -1; }
}
/* ── Investigation detail ─────────────────────────────────────────────────────
   A report page, so it is spaced like one. The first version stacked a back link, a status
   sentence, a 7xl headline and a panel as four consecutive <p>s with no margins between
   them, which put the title's own air where the paragraph's should have been and left the
   panel touching the repository name. Three stacks, each with one job: the back link is a
   control, the head is one tight block, the body is evenly spaced panels. */
/* The way back, on every page that has one.
   Above the workspace header, so the spacing belongs to the gap between the link and the page
   it introduces rather than to a body that is no longer beneath it. One rule, because the
   control moving between pages is an inconsistency a reader feels without being able to name
   it — this replaces `.inv-back` and `.subnav-crumb`, which were the same idea twice. */
.page-back { display: inline-block; margin-bottom: 12px; font-size: var(--bkz-text-sm);
  color: var(--ui-ink-muted); text-decoration: none; }
.page-back:hover { color: var(--ui-ink-strong); text-decoration: none; }
.inv-head { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: 16px; }
.inv-lead { display: flex; flex-direction: column; gap: 12px; }
.inv-title { display: block; margin: 0; line-height: 1.15; }
.inv-meta { margin: 0; font-size: var(--bkz-text-sm); color: var(--bkz-muted); }
.inv-state { margin: 0; font-size: var(--bkz-text-base); line-height: 1.55; color: var(--ui-ink-soft); max-width: 68ch; }
.inv-fail-block { display: flex; flex-direction: column; gap: 8px; max-width: 68ch; }
.inv-fail {
  margin: 0; padding: 12px 14px; max-width: 68ch;
  font-size: var(--bkz-text-base); line-height: 1.5;
  color: var(--bkz-danger-ink); background: var(--bkz-danger-tint);
  border: 1px solid var(--bkz-danger-border); border-radius: var(--bkz-radius-md);
}
.inv-head .inv-anchor { margin: 0; }
.inv-head .inv-cancel { margin: 0; }
.inv-anchor { margin: 16px 0 0; font-size: var(--bkz-text-base); line-height: 1.55; max-width: 68ch; }
.inv-body { display: flex; flex-direction: column; gap: 28px; }
/* Each band is a different rank in the argument, so they cannot share one frame.
   Same box, same type, same gap made "what happened" and "recommended fix" read as
   peers — they are not. */
.inv-body .inv-sec::before, .inv-body .inv-sec::after { display: none; }
.inv-sec-happened {
  border: 0; background: transparent; padding: 0;
}
.inv-sec-happened .panel-h {
  margin-bottom: 8px; font-size: var(--bkz-text-xs); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ui-ink-faint);
}
.inv-body .inv-sec-happened .sub {
  font-size: var(--bkz-text-xl); line-height: 1.4; font-weight: 500;
  color: var(--ui-ink-strong); max-width: 52rem;
}
.inv-sec-fails {
  border: 0; background: transparent; padding: 0 0 0 12px;
  border-left: 1px solid var(--ui-border);
}
.inv-sec-fails .panel-h {
  margin-bottom: 6px; font-size: var(--bkz-text-sm); font-weight: 500;
  color: var(--ui-ink-muted);
}
.inv-body .inv-sec-fails .sub { font-size: var(--bkz-text-md); line-height: 1.55; }
.inv-sec-cause, .inv-sec-cause-open {
  padding: 14px 16px; background: var(--ui-sunk);
}
.inv-sec-cause { border-color: color-mix(in srgb, var(--bkz-success-ink) 35%, var(--ui-border));
  border-left: 2px solid var(--bkz-success-ink); }
.inv-sec-cause-open { border-color: color-mix(in srgb, var(--bkz-warn-ink) 35%, var(--ui-border));
  border-left: 2px solid var(--bkz-warn-ink); }
.inv-sec-cause .panel-h, .inv-sec-cause-open .panel-h {
  margin-bottom: 8px; font-size: var(--bkz-text-lg); font-weight: 650;
}
.inv-sec-fix {
  padding: 20px 22px; background: var(--ui-surface);
  border-color: var(--ui-border-hover);
}
.inv-sec-fix .panel-h {
  margin-bottom: 16px; font-size: var(--bkz-text-2xl); font-weight: 650;
  color: var(--ui-ink-strong);
}
.inv-body .inv-sec-fix .sub { font-size: var(--bkz-text-md); line-height: 1.7; }
.inv-sec-act {
  padding: 20px 22px; background: var(--ui-surface);
  border-color: var(--ui-border-hover);
}
.inv-sec-act .panel-h {
  margin-bottom: 16px; font-size: var(--bkz-text-2xl); font-weight: 650;
  color: var(--ui-ink-strong);
}
.inv-body .inv-sec-act .sub { font-size: var(--bkz-text-md); line-height: 1.7; }
.inv-sec-act .sweepline { margin-top: 14px; }

/* The recommended fix as a recipe: the change in one line, then stages as
   sections and lettered steps as a list, with the patch in a figure rather
   than described. Hiding this behind "the whole fix" is how a reader finished
   the card still not knowing what to type. */
.inv-recipe { display: flex; flex-direction: column; gap: 20px; margin-top: 4px; }
.inv-fix-do {
  margin: 0; font-size: var(--bkz-text-xl); font-weight: 550;
  line-height: 1.35; color: var(--ui-ink-strong); max-width: none;
  overflow-wrap: anywhere;
}
.inv-body .inv-sec-act .inv-fix-do,
.inv-body .inv-sec-fix .inv-fix-do { font-size: var(--bkz-text-xl); line-height: 1.35; }
.inv-recipe > .sub.muted { margin: 0; color: var(--ui-ink-faint); }
.inv-stage { margin: 0; padding: 0; }
.inv-stage + .inv-stage {
  padding-top: 18px; border-top: 1px solid var(--bkz-border-hairline);
}
.inv-stage-h {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px;
  margin: 0 0 12px;
}
.inv-stage-n {
  font-size: var(--bkz-text-xs); font-weight: 650; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ui-ink-faint);
}
.inv-stage-t { font-size: var(--bkz-text-lg); font-weight: 600; color: var(--ui-ink-strong); }
.inv-stage-later { opacity: 0.78; }
.inv-changes {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.inv-change {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px;
  align-items: start;
}
.inv-change-mark {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--ui-sunk); border: 1px solid var(--ui-border);
  font-size: var(--bkz-text-sm); font-weight: 650; color: var(--ui-ink-strong);
}
.inv-change-body .sub { margin: 0; }
.inv-body .inv-recipe .sub { font-size: var(--bkz-text-md); line-height: 1.55; }
.inv-fix-pair {
  display: flex; flex-direction: column; gap: 8px; margin-top: 10px;
}
.inv-fix-src {
  margin: 10px 0 0; padding: 0; overflow: hidden;
  border: 1px solid var(--ui-border); background: var(--ui-sunk);
  border-radius: var(--bkz-radius-md);
}
.inv-fix-src figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 10px; font-size: 11px; font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ui-ink-faint);
  border-bottom: 1px solid var(--bkz-border-hairline);
}
.inv-fix-src-then figcaption span:first-child { color: var(--bkz-success-ink); }
.inv-fix-code {
  margin: 0; padding: 12px 14px; overflow: auto; max-height: 22rem;
  font-family: var(--bkz-font-mono); font-size: 12px; line-height: 1.55;
  color: var(--ui-ink-strong); white-space: pre;
}
.inv-fix-code code { font: inherit; color: inherit; background: none; padding: 0; }
.inv-sec-avoid {
  border: 0; background: transparent; padding: 12px 0 0;
  border-top: 1px solid var(--bkz-border-hairline);
}
.inv-sec-avoid .panel-h {
  margin-bottom: 8px; font-size: var(--bkz-text-xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ui-ink-faint);
}
.inv-body .inv-sec-avoid .sub { font-size: var(--bkz-text-sm); color: var(--ui-ink-faint); line-height: 1.6; }
.inv-sec-check { border: 0; background: transparent; padding: 0; }
.inv-sec-check .panel-h {
  margin-bottom: 10px; font-size: var(--bkz-text-base); font-weight: 650;
}
.inv-sec-verify { padding: 14px 16px 16px; }
.inv-sec-verify .panel-h {
  margin-bottom: 12px; font-size: var(--bkz-text-xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ui-ink-faint);
}
/* Verdict, then the run, then the caveats. `.tag` on every line (and again on the
   refusal) is what made this panel a stack of chips with the same sentence twice. */
.inv-run-v { margin: 0 0 14px; font-size: var(--bkz-text-md); font-weight: 600;
  line-height: 1.4; max-width: 56ch; }
.inv-run-v.bad { color: var(--bkz-danger-ink); }
.inv-run-v.warn { color: var(--bkz-warn-ink); }
.inv-run-v.ok { color: var(--bkz-success-ink); }
.inv-run { list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0; }
.inv-run li { display: grid; grid-template-columns: 8px 10.5rem minmax(0, 1fr);
  gap: 10px 12px; align-items: baseline; padding: 7px 0;
  border-top: 1px solid var(--bkz-border-hairline); font-size: var(--bkz-text-sm); }
.inv-run li:first-child { border-top: 0; padding-top: 0; }
.inv-run-m { display: block; width: 7px; height: 7px; margin-top: 0.4em; background: currentColor; }
.inv-run-m.ok { color: var(--bkz-success-ink); }
.inv-run-m.bad { color: var(--bkz-danger-ink); }
.inv-run-m.warn { color: var(--bkz-warn-ink); }
.inv-run-m.skip { color: var(--ui-ink-faint); }
.inv-run-k { font-weight: 600; color: var(--bkz-ink); }
.inv-run-d { color: var(--ui-ink-muted); }
.inv-run-notes { list-style: none; margin: 12px 0 0; padding: 10px 0 0;
  border-top: 1px solid var(--bkz-border-hairline); }
.inv-run-notes li { margin: 0; padding: 4px 0; font-size: var(--bkz-text-xs);
  line-height: 1.5; color: var(--ui-ink-muted); }
@media (max-width: 640px) {
  .inv-run li { grid-template-columns: 8px minmax(0, 1fr); }
  .inv-run-d { grid-column: 2; }
}
/* Panel prose: the paragraphs inside a section are the section's content, so they own the
   spacing between themselves and nothing above the first one. */
/* Prose fills its panel. The 76ch cap is the right default for a column of body text, and it
   was wrong here: these panels span the page, so the cap left a paragraph wrapping at 40% of
   its own container with two-thirds of the row empty beside it — which reads as a layout that
   failed rather than as a measure that was chosen. The dossier's fix and blast-radius
   paragraphs are the longest prose in the product and the ones most often read against the
   code beside them. */
.inv-body .panel .sub { margin: 0; font-size: var(--bkz-text-base); line-height: 1.8; }
.inv-body .panel .sub + .sub { margin-top: 10px; }
.inv-body .trow { padding: 9px 12px; align-items: start; }

/* The case page's hand-off block: the coding-agent prompt, selectable in one drag. */
.agent-prompt { margin: 6px 0 0; padding: 12px 14px; border-radius: var(--bkz-radius-md);
  background: var(--ui-sunk); border: 1px solid var(--ui-border);
  font-family: var(--bkz-font-mono); font-size: var(--bkz-text-xs); line-height: 17px;
  color: var(--ui-ink-body); white-space: pre-wrap; overflow-wrap: anywhere;
  max-height: 420px; overflow: auto; }

/* The switchboard's budget field: a number, not a paragraph. */
/* A number field sized to the number. Wider, it read as a text box somebody forgot to fill in
   rather than a dial with a value already in it. */
.input-num { width: 78px; text-align: center; }

/* ── Settings: model spend ──────────────────────────────────────────────────
   The cap input sits beside its Save in the row's right column; a number field
   left to its browser default would swallow the whole column. */
.spend-form { display: flex; gap: 8px; align-items: stretch; justify-content: flex-end; }
.spend-form .input, .spend-form .btn {
  box-sizing: border-box; height: 34px; padding: 0 12px;
  font-size: var(--bkz-text-sm); line-height: 1;
}
.spend-input { width: 110px; }

/* ── The case page: evidence, checklist, outcome ────────────────────────────
   A defect page is read in one pass — what happened, who said so, what was
   checked — so each block is a row with a fixed left gutter and prose that
   wraps inside it, rather than a table whose columns fight the sentence.
   The title keeps the priority on the same line; a long heading used to
   wrap the badge onto a second title-row. Section rules stay on the text,
   not a dashed line across empty column. */
.case-page { max-width: none; }
.case-page .page-title-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px 10px; margin: 0 0 12px;
}
.case-page .page-title {
  flex: 0 1 auto; width: fit-content; max-width: calc(100% - 3.75rem);
  margin: 0; font-size: var(--bkz-text-4xl); line-height: 1.2; text-wrap: balance;
}
.case-page .page-title-row .tag { flex: 0 0 auto; }
.case-page .lede-lg { margin: 0; max-width: none; }
.case-page > .sec-h {
  margin: 36px 0 14px; border-bottom: 0; padding-bottom: 0;
}
.case-page > .panel { margin-top: 28px; }
.case-did { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.case-did > p { margin: 0; font-size: var(--bkz-text-sm); line-height: 1.45; color: var(--ui-ink-body); }
.case-howto { max-width: 40rem; }
.case-howto p { margin: 0 0 10px; }
.case-howto ol { margin: 0 0 10px; padding-left: 1.25rem; }
.case-howto li { margin: 0 0 6px; }
.case-howto p:last-child { margin-bottom: 0; }
.inv-cta-row {
  position: fixed; bottom: 0; right: 0; z-index: 25;
  left: max(var(--rail-min), var(--rail-w, 280px));
  justify-content: center; gap: 10px; margin: 0; align-items: center;
  flex-wrap: wrap;
  padding: 16px 32px calc(20px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bkz-bg) 88%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--ui-border);
  box-shadow: 0 -16px 36px rgba(0, 0, 0, 0.4);
}
/* A refusal is a sentence, not a third button. Full width, above the controls, so
   "Opening…" never sits in a row with the reason it already failed. */
.inv-cta-row .inv-said,
.inv-cta-row .inv-refused {
  flex: 1 1 100%; order: -1; margin: 0; text-align: center;
  max-width: 52rem;
}
.inv-cta-row .sweepline {
  flex: 1 1 100%; justify-content: center; margin: 0; max-width: 40rem;
}
.main.main-collapsed .inv-cta-row { left: 60px; }
.main-inner:has(.inv-cta-row) { padding-bottom: 112px; }
@media (max-width: 880px) {
  .inv-cta-row { left: 0; padding-left: 18px; padding-right: 18px; }
}
/* The case page's own sticky bar. Same bones as the dossier's .inv-cta-row — it IS that
   rule — plus the two things this page puts in it that the dossier's does not: a repository
   picker, and the one line of small print that used to trail off the button as loose inline
   text. Aligned on a baseline row so the picker and the button read as one control.
   Stretch + `.input { width: 100% }` used to drop Investigate onto its own line and then
   grow it to the bar's height — a cream slab under the select. */
.case-cta-row { flex-wrap: wrap; }
.inv-cta-row .case-run { align-self: center; flex: none; min-width: max-content; }
.case-run { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center;
  gap: 10px; width: max-content; max-width: 100%; }
.case-run .dd-field {
  flex: none; width: 18rem; min-width: 12rem; max-width: 22rem;
  height: 42px; min-height: 42px; box-sizing: border-box;
}
/* Sits beside the button, not after it: at this size it is a caption on the control, and a
   dash-prefixed fragment ("— runs immediately") was a sentence continuing from a button. */
.case-cta-note { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); line-height: 1.35;
  max-width: 22ch; }
@media (max-width: 640px) {
  /* The note is the first thing to go: on a narrow bar the button must stay reachable, and
     the caption repeats what pressing it will tell them anyway. */
  .case-cta-note { display: none; }
  .inv-cta-row .case-run { min-width: 0; }
  .case-run { flex-wrap: wrap; width: min(22rem, 100%); }
  .case-run .dd-field { width: 100%; max-width: none; min-width: 0; }
}
.case-cta {
  flex: none; align-self: center; box-sizing: border-box;
  width: auto; min-width: 10rem; height: 42px; min-height: 42px; max-height: 42px;
  padding: 8px 16px; border: 1px solid transparent; border-radius: 0;
  font-size: var(--bkz-text-base); font-weight: 550; letter-spacing: 0.01em; line-height: 1.3;
  box-shadow: none;
}
.case-cta:hover { box-shadow: none; }
.btn-primary.case-cta, .btn-primary.case-cta:hover { box-shadow: none; }
.ev-row { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  padding: 12px 14px; border-bottom: 1px solid var(--ui-border); }
.ev-row:last-of-type { border-bottom: 0; }
.ev-mark { display: inline-flex; align-items: center; justify-content: center; }
.ev-mark .ig-mark { width: 18px; height: 18px; }
.ev-mark-sm .ig-mark { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; }
.ev-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ev-quote { color: var(--ui-ink-body); font-size: var(--bkz-text-sm); line-height: 19px;
  overflow-wrap: anywhere; }
.ev-who { font-size: var(--bkz-text-xs); color: var(--bkz-muted); }
/* A Sentry issue as Sentry knew it — time, counts, the stack, the trail.
   A one-line quote was a receipt with the stub torn off. */
.ev-card { border: 1px solid var(--ui-border); border-radius: 8px; background: var(--ui-sunk);
  margin: 0 0 14px; overflow: hidden; }
.ev-card .ev-row { padding: 14px 16px 12px; border-bottom: 0; }
.ev-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 12px 18px; padding: 0 16px 14px; }
.ev-fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-fact-k { font-family: var(--bkz-font-mono); font-size: var(--bkz-text-2xs);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ui-ink-faint); }
.ev-fact-v { font-size: var(--bkz-text-sm); color: var(--ui-ink-strong); line-height: 1.35; }
.ev-fact-v .ig-inline { display: inline; margin: 0 6px 4px 0; }
.owner-who { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 12px; background: var(--ui-sunk); border: 1px solid var(--ui-border);
  border-radius: 0; color: var(--ui-ink-muted); text-decoration: none; }
.owner-who-on { color: var(--ui-ink-strong); border-color: var(--ui-border-hover); }
.owner-pfp { width: 32px; height: 32px; flex: none; object-fit: cover;
  background: var(--ui-sunk); border-radius: 0; }
.ig-inline .btn.owner-who { display: inline-flex; border-radius: 0; }
.ev-fact-v:has(.owner-who), .ev-fact-v:has(.owner-why) {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px;
}
.ev-clock { display: block; font-size: var(--bkz-text-xs); color: var(--ui-ink-muted);
  font-variant-numeric: tabular-nums; margin-top: 1px; }
.ev-where { margin: 0; padding: 0 16px 12px; font-size: var(--bkz-text-sm);
  color: var(--ui-ink-body); line-height: 1.45; }
.ev-where.ev-machine, .ev-where.muted { color: var(--ui-ink-muted); font-size: var(--bkz-text-xs); }
.ev-block { padding: 0 16px 14px; }
.ev-block-k { display: block; font-family: var(--bkz-font-mono); font-size: var(--bkz-text-2xs);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ui-ink-faint); margin-bottom: 6px; }
.ev-stack, .ev-trail { margin: 0; padding: 0; list-style: none; }
.ev-stack li, .ev-trail li { font-size: var(--bkz-text-xs); line-height: 1.5; color: var(--ui-ink-body);
  padding: 2px 0; }
.ev-stack code { font-size: inherit; background: none; padding: 0; }

/* The checklist: a mark, a claim, and only the note that earns its place. */
.ck-list { border-radius: var(--bkz-radius-3xl); border: 1px solid var(--ui-border);
  background: var(--ui-sunk); overflow: hidden; }
.ck-row { display: grid; grid-template-columns: 20px minmax(0, 22rem) 1fr; gap: 12px;
  align-items: baseline; padding: 9px 14px; border-bottom: 1px solid var(--ui-border); }
.ck-row:last-child { border-bottom: 0; }
.ck { font-family: var(--bkz-font-mono); font-weight: 700; }
.ck-yes { color: var(--bkz-success-ink); }
.ck-no { color: var(--bkz-danger-ink); }
.ck-skip { color: var(--bkz-ink-slate); }
.ck-t { color: var(--ui-ink-body); font-size: var(--bkz-text-sm); }
.ck-n { color: var(--bkz-muted); font-size: var(--bkz-text-xs); line-height: 18px; }

/* What happened: the answer, before the working. */
.outcome { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
  border-radius: var(--bkz-radius-3xl); border: 1px solid var(--ui-border);
  background: var(--ui-sunk); }
.outcome .sub { max-width: 76ch; }
.outcome-r { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

/* A group's one line of explanation, under its heading and above its rows. */
.grp-blurb { margin: -2px 2px 8px; max-width: 76ch; }

/* ══════════════════════════════════════════════════════════════════════════
   ONE EDGE — the org overview (.page-overview) and repository Home (.page-home)

   The complaint these rules answer, measured rather than felt: on both screens the
   text started from nine different distances from the left. The column's own inset is
   28px (`.main-inner`, ≤1440px); the majority of content sat at 19px inside it (a
   `.panel`'s 18px padding plus its 1px border) — and then every nested frame added its
   own padding ON TOP of that inset, so the same page read at 19, 33, 37, 39, 41 and
   54px, with three bands (the quiet lines, the fold summaries, the empty notices) at
   0px in no frame at all. Nothing was wrong with any single number. The raggedness was
   the sum.

   So: the panel's 18px is the ONLY horizontal inset on these two screens, and every
   frame nested inside it contributes zero. One left edge, at 19px, for every word.

   The vertical half of the same complaint — "some boxes are stuck, some boxes are
   away" — was that `.panel` carries no margin at all. Two of the page's bands
   (`.dash-hero`, the old two-chart grid) supplied a 12px gap of their own and the rest supplied
   nothing, so most top-level boundaries were 0-4px. `.stack` replaces all of it with
   one gap, and 14px is not a taste either: `.panel::before`/`::after` draw the corner
   crosshairs at -6.5px, so at any gap under 13px one box's crosshair renders inside
   its neighbour.

   EVERY rule below is scoped to the two page classes on purpose. `.panel` has ~72
   other call sites and seven rules elsewhere in this file compensate for the insets
   being zeroed here; widening the scope would move all of them at once. ══════════ */

/* The page body's one gap. `.stack` is the file's existing column primitive (gap 10px);
   these two screens want the crosshair-safe 14. */
.page-overview > .stack, .page-home > .stack { gap: 14px; }

/* The funnel's two lanes, in ONE box with a hairline between them. Two `.panel`s meant
   two frames, two crosshair pairs and two headers for one idea — "what happened to what
   we found" is one outcome story told twice, not two subjects. */
/* Two charts share one panel, so their date axes face each other across the gutter.
   At the grid's 12px the left chart's last label and the right chart's first label
   collided into one unreadable string ("09-0118-03"); 34px is the width that keeps
   two axes legible as two. */

/* 28px, not 14px. Two lanes 14px apart, each of them three tight lines, made the whole
   panel one block of small type with a rule through it — the divider was doing the work
   the space should. The lanes are separate sentences about separate subjects; they read
   like it now. Both screens, one rule: this panel is the same panel on the org overview
   and on a repository, and the founder's note was "everywhere". */
.page-overview .funnel-row,
.page-home .funnel-row { padding-bottom: 10px; }
.page-overview .funnel-row + .funnel-row,
.page-home .funnel-row + .funnel-row {
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--bkz-border-soft);
}
/* One column: Tickets, Dead code, Bugs, each a full-width row. The hairline between
   them is the stacked rule above. */
.funnel-lanes { display: flex; flex-direction: column; }
/* The panel's own frame gets the same treatment, or spaced-out lanes just sit closer to
   the edges than they do to each other. */
.page-overview .panel:has(> .funnel-lanes),
.page-home .panel:has(> .funnel-lanes) { padding: 22px 22px 28px; }
/* Activity sits directly under the Outcomes lanes. The two panels were stacking their
   own padding plus the Activity header's 14px margin into a dark band above the punchcard. */
.page-overview .panel:has(> .insights),
.page-home .panel:has(> .insights) { padding: 18px 22px 22px; }
.page-overview .panel:has(> .insights) > .panel-h,
.page-home .panel:has(> .insights) > .panel-h { margin-bottom: 12px; }
/* The big numeral cell: 39px was `.panel`'s 18 plus `.stc`'s own 20, and its 16px top
   pushed the word ISSUES 30px below the panel's own first line. The right border went
   with them — a divider that used to sit 20px clear of the numeral hugs it once the
   padding is gone, and `.funnel-row`'s 22px column-gap already separates the cells. */
.page-overview .funnel-row > .stc, .page-home .funnel-row > .stc {
  padding: 0; border-right: 0;
}
/* The outlined, clickable box that sat here is gone with the hrefs that produced it —
   funnelRow no longer takes one. A number is a fact, not a control, and the border-radius
   this rule carried was also the last rounded corner on a page whose radius tokens are all
   zero. The evidence line owns the links. */

/* The chip strip (`.ag-stats`, 37px) and the call log's summaries (`.ag-log-s`, 37px)
   keep their vertical rhythm and give up their horizontal inset. The log's border-top
   then spans the panel's full inner width, which is what makes it read as a rule
   between sections rather than as a line that stops short of both edges. */
.page-overview .panel .ag-stats, .page-home .panel .ag-stats { padding: 0 0 4px; }
/* Knowledge is the one roomy panel on this page. The flatten above was written for the
   agents strip, and it also ate the header→chips gap here. Give that panel its own
   padding back so four equal columns sit under the fold instead of against it. */
.page-overview .panel.panel-roomy .ag-stats,
.page-home .panel.panel-roomy .ag-stats {
  padding: 12px 0 4px;
}
.page-overview .panel.panel-roomy > .fold[open] > summary.panel-h,
.page-home .panel.panel-roomy > .fold[open] > summary.panel-h {
  margin-bottom: 6px;
}
.page-overview .panel .ag-log-s, .page-home .panel .ag-log-s { padding-left: 0; padding-right: 0; }
/* 33-34px. The rows inside a panel are the panel's rows; only a `.botlist` (which draws
   its own frame, and neither of these screens has one any more) earns its own inset. */
.page-overview .panel .botrow, .page-home .panel .botrow { padding-left: 0; padding-right: 0; }
.page-overview .panel.panel-roomy .botlist .botrow,
.page-home .panel.panel-roomy .botlist .botrow { padding: 18px 16px; }
.page-overview .panel.panel-roomy .botlist .kb-row.botrow,
.page-home .panel.panel-roomy .botlist .kb-row.botrow { padding: 22px 24px; }
/* 41px, and 54px for a `.tbl` inside it. `.card-pad` is already a no-op ON a `.panel`
   (`.panel` is the later rule at equal specificity); it only ever bit when nested BARE
   inside one, which is exactly the case here. */
.page-overview .panel .card-pad, .page-home .panel .card-pad { padding-left: 0; padding-right: 0; }

/* The billing/access notices: 14px of padding inside a 1px border is 15px, one pixel
   shy of the 19px everything else lands on — near enough to look like a mistake and
   not near enough to look deliberate. The margin goes because the stack owns the gap
   now; keeping both would give these one band a doubled 28px. */
.page-overview .bl-note, .page-home .bl-note { padding-left: 18px; padding-right: 18px; margin: 0; }
.page-overview .panel > .note-warn,
.page-home .panel > .note-warn {
  margin: 4px 0 16px;
  border-color: color-mix(in srgb, #d97706 52%, var(--ui-border));
}
.page-overview [data-credit-exhaustion-summary],
.page-home [data-credit-exhaustion-summary] { margin: 12px 0 22px; }
.page-overview [data-credit-exhaustion-summary] .stc,
.page-home [data-credit-exhaustion-summary] .stc { padding: 22px 22px 20px; gap: 8px; }
.page-overview [data-credit-exhaustion-summary] > .sub,
.page-home [data-credit-exhaustion-summary] > .sub {
  margin: 14px 0 0; color: var(--bkz-muted); font-size: var(--bkz-text-sm);
  line-height: 1.55; max-width: 72ch;
}

/* An empty state is a sentence, and sentences on this page start at the left margin
   like every other sentence. It was centred in a 132px box — a paragraph floating in
   the middle of a frame six lines tall, saying one line's worth. */
.page-overview .panel-empty, .page-home .panel-empty {
  display: block; height: auto; min-height: 0; padding: 4px 0 6px; text-align: left;
}


/* ── The fold, as a header rather than a label floating above one ──────────────
   `<details class="fold"><summary>…</summary><div class="panel">` rendered the summary
   as a SIBLING of the box: bare, unframed, at 0px inset, and — collapsed — a line of
   text pointing at nothing at all. The summary belongs INSIDE the panel, dressed as
   the panel's own header, so the closed state is a titled box and the open state is
   the same box with its contents shown. */
.page-overview .panel > .fold > summary.panel-h,
.page-home .panel > .fold > summary.panel-h,
.case-page .panel > .fold > summary.panel-h,
.page-tickets .panel > .fold > summary.panel-h {
  padding: 0; margin-bottom: 0; cursor: pointer; list-style: none;
  font-size: var(--bkz-text-md); font-weight: 600; color: var(--bkz-ink);
}
/* More is a fold of leftovers, not a section. The shared header weight made it shout. */
.page-overview .panel > .fold > summary.panel-h {
  font-size: var(--bkz-text-xs); font-weight: 500; color: var(--ui-ink-muted);
}
.page-overview .panel > .fold > summary.panel-h::-webkit-details-marker,
.page-home .panel > .fold > summary.panel-h::-webkit-details-marker,
.case-page .panel > .fold > summary.panel-h::-webkit-details-marker,
.page-tickets .panel > .fold > summary.panel-h::-webkit-details-marker { display: none; }
.page-overview .panel > .fold[open] > summary.panel-h,
.page-home .panel > .fold[open] > summary.panel-h,
.case-page .panel > .fold[open] > summary.panel-h { margin-bottom: 14px; }
.page-tickets .panel > .fold[open] > summary.panel-h { margin-bottom: 6px; }
.page-tickets .panel:has(> .fold:not([open])) { padding-top: 10px; padding-bottom: 10px; }
/* The chevron IS the marker (the native one is suppressed above), so it has to move:
   a disclosure control that looks identical open and closed is not a control. */
.page-overview .fold-mark, .page-home .fold-mark, .case-page .fold-mark,
.page-tickets .fold-mark {
  display: inline-block; margin-left: 6px;
  transition: transform var(--bkz-duration-base) var(--bkz-ease-settle);
}
.page-overview .fold[open] > summary .fold-mark,
.page-home .fold[open] > summary .fold-mark,
.case-page .fold[open] > summary .fold-mark,
.page-tickets .fold[open] > summary .fold-mark { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
  .page-overview .fold-mark, .page-home .fold-mark, .case-page .fold-mark,
  .page-tickets .fold-mark { transition: none; }
}

/* ── The Garden: one card per removal, whichever engine found it ─────────────
   Deprecation and dead-code cards are the SAME card. The only difference a reader
   should have to notice is the mark in the header — Slack/Linear when a person said
   it, GitHub when the repository itself is the evidence — and the receipts, which
   only exist when there is somebody to quote. */
/* Rows on one surface, not a stack of cards.
   Every removal wore its own border, radius and raised background, so eight of them read as
   eight separate objects competing with the panel they sat in — and the tickets list, which
   is the same kind of list, reads as one surface with rows on it. Matched to `.botrow`:
   hairline separators, a hover wash, no per-row chrome. Roomier than a ticket, because a
   removal carries a title, a reason and a proof line where a ticket carries one line. */
/* The sweep's heartbeat, first thing on the Garden: shipping now, or died and says why.
   The brand left border is what makes it read as the machine speaking rather than another
   card; the dead variant borrows the danger ink because a failed first sweep IS the news. */
.sweep-now { border-left: 3px solid var(--brand); margin-bottom: 14px; }

.sweep-now .spin { margin-right: 6px; color: var(--brand); }
.sweep-now.sweep-dead { border-left-color: var(--bkz-danger); }
.sweep-quiet { margin: 0 0 14px; }
.sweep-quiet .sweep-line strong { font-weight: 500; color: var(--ui-ink-strong); }

/* The reference container for every list in the product: a top hairline, transparent rows,
   nothing boxed. `.botlist` (Code reviews, Tickets) matches THIS rather than the other way
   round — see its rule. */
.gd-list { display: flex; flex-direction: column; margin: 12px 0 26px;
  border-top: 1px solid var(--bkz-border-hairline); background: var(--ui-card); }
/* A button, so the whole row is the target and the keyboard reaches it for free — which is
   why everything inside is a span: a <p> inside a button is closed early by the parser and
   the row comes apart. */
/* The row every other list in the product is matched TO: transparent, separated by a single
   hairline, no box around it. Code reviews and Tickets were the odd ones out — bordered cards
   on `--ui-surface` — so `.botlist`/`.botrow` now take their background from here. */
.gd-card { border: 0; border-bottom: 1px solid var(--bkz-border-hairline); border-radius: 0;
  padding: 20px 22px; background: transparent; display: flex; flex-direction: column;
  gap: 10px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  transition: background .12s ease; }
.gd-card:hover { background: var(--ui-row-hover); }
.gd-head { display: flex; align-items: center; gap: 12px 16px; }
.gd-brand { flex: none; letter-spacing: 0.14em; color: var(--ui-ink-muted);
  margin-right: 2px; }
/* The title is nowrap flex 1 1 auto; the tag and the footprint chip must never be the
   things that give way when it runs long. */
.gd-head .tag, .gd-head .gd-out { flex: none; }
/* Importance: ten dots filled to the tournament percentile, beside the verdict word. A
   meter, not a control; the number lives in the tip. */
.gd-head .gd-importance { flex: none; letter-spacing: 0.08em; color: var(--ui-ink-muted); font-size: 12px; }
.gd-because, .gd-both, .gd-withheld { display: block; }
.gd-more { font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); white-space: nowrap; }
.gd-marks { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.gd-marks .dp-mark { width: 15px; height: 15px; display: block; }
.gd-title { font-weight: 600; font-size: var(--bkz-text-md); flex: 1 1 auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-because { margin: 0; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
/* Who is hurt, under the title and above the file. Reads as prose, not as metadata: this is
   the line that decides whether a reader keeps going, so it is not muted to the same level
   as the path. Clamped, because a repercussion is one sentence and a long one must not push
   the card's own geometry around. */
/* A bug drawer's deciding sections are rendered, not folded — same rule the removal drawer
   has always followed. The heading matches a fold's summary weight so the two read as one
   list, with the difference being only that these are already answered. */
.dp-sec-h {
  margin: var(--bkz-space-4) 0 var(--bkz-space-2);
  font-size: var(--bkz-text-sm); font-weight: 600;
  color: var(--ui-ink); letter-spacing: 0.01em;
}
.dp-bug-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 0;
}
.dp-bug-stack .dp-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.dp-bug-stack .dp-sec-h,
.dp-bug-stack .dp-verdict,
.dp-bug-stack .dp-trust,
.dp-bug-stack .dp-witness {
  margin: 0;
}
.dp-bug-stack + .dp-fold { margin-top: 16px; }
.dp-bug-stack .pb { margin: 0; }
.gd-harm {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; margin: 0; font-size: var(--bkz-text-sm);
  color: var(--ui-ink); line-height: 1.45;
}
.gd-kind { font-family: var(--bkz-mono, ui-monospace, monospace); font-size: var(--bkz-text-xs); }
/* Both engines agreeing is the strongest evidence here, so it is the one line that
   carries colour. */
.gd-both { margin: 0; font-size: var(--bkz-text-sm); color: var(--bkz-ok-ink, #2ea043); }
.gd-receipts { display: flex; flex-direction: column; gap: 6px; }
.gd-receipt { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px;
  border: 1px solid var(--bkz-border-hairline); border-radius: 8px;
  text-decoration: none; color: inherit; }
a.gd-receipt:hover { background: var(--ui-sunk); border-color: var(--ui-border); }
.gd-quote { font-size: var(--bkz-text-sm); line-height: 1.5; }
.gd-who { font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); }
.gd-paths { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gd-path { font-size: var(--bkz-text-xs); padding: 2px 6px; border-radius: 5px;
  background: var(--ui-sunk); }
.gd-withheld { margin: 0; font-size: var(--bkz-text-sm); line-height: 1.5;
  color: var(--bkz-danger-ink); background: var(--bkz-danger-tint);
  border: 1px solid var(--bkz-danger-border); border-radius: 8px; padding: 8px 10px; }
.gd-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--bkz-border-hairline); padding-top: 8px; width: 100%; }
/* With the proof line hoisted into the section header the footer carries only the affordance
   on its right, so the rule and the padding above it separate nothing. Kept as a row rather
   than removed, because that affordance still has to sit at the right edge. */
.gd-foot-bare { border-top: 0; padding-top: 0; margin-top: -2px; }
/* Lines LEAVING. On a page whose entire subject is deletion an unsigned figure makes the
   reader guess a direction, and two unsigned figures that disagree make them guess twice. */
.gd-out { font-variant-numeric: tabular-nums; color: var(--bkz-ok-ink, #2ea043); }
/* A DECIDE row removes nothing — it asks. It stays in the same list as the removals, because
   it came out of the same sweep; the difference is carried by a quiet left edge rather than
   by a separate section that would split one sweep's output in two. */
.gd-asks { border-left: 2px solid var(--ui-ink-muted); }
.gd-asks .gd-out { color: inherit; }
/* The drawer's own footer carries the decision, where a form is legal. */
.dp-drawer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  border-top: 1px solid var(--ui-border); padding: 16px 18px; }
/* The provenance line: which machinery established this. Small, always present — a
   removal whose proof cannot be named is one nobody should merge. */
.gd-tools { font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); }
.stc-s { font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); }
@media (max-width: 720px) {
  .gd-foot { flex-direction: column; align-items: flex-start; }
}
/* The decision sits with the evidence that argues for it, not in a drawer. */
.gd-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.gd-actions .pb { flex: 1 1 320px; max-width: 560px; }
.gd-decide { display: inline-flex; }

/* The setup call to action, as the Knowledge base panel's last line — with the loading
   buffer's own texture behind it.

   Third and fourth positions of one row, and both notes were right. As a hero at the top of
   the page it was a banner, and banners get scrolled past; demoted to a muted line at the
   bottom it read as a footnote — "too subtle" — which is the failure the hero was built to
   fix, arriving from the other side. Loudness was never the variable. This is the only live
   control on a page of settled numbers, so it earns TEXTURE rather than size: the halftone
   dither the buffer screen draws (loader.js — a noise field pushed through a Bayer matrix,
   monochrome, print-static), here as a still field that drifts.

   Pure CSS, no canvas and no script: two dot grids at different scales, offset, masked to
   fade out before the text so nothing is ever read through it. The `::before` is the field
   and the `::after` is the leading edge where it packs densest — that edge is what carries
   the eye, in place of the accent border the hero used to wear. */
.kb-setup { position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 20px;
  padding: 15px 18px; border-top: 1px solid var(--bkz-border-hairline); }
/* The field. Two grids, because one even grid reads as a screen-door pattern; the coarse
   layer at a half-step offset gives the clustered, ragged edge dithering is recognised by. */
.kb-setup::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(var(--ui-ink-faint) 0.5px, transparent 0.6px),
    radial-gradient(var(--ui-ink-faint) 0.5px, transparent 0.6px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 2px 3px;
  -webkit-mask-image: linear-gradient(97deg, #000 0%, rgba(0, 0, 0, 0.45) 34%, transparent 68%);
  mask-image: linear-gradient(97deg, #000 0%, rgba(0, 0, 0, 0.45) 34%, transparent 68%);
  opacity: 0.75; }
/* The leading edge: the densest column of the field, doing the job the hero's accent border
   did — saying "live" — without a second colour or a second frame. */
.kb-setup::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  pointer-events: none; background: var(--brand-ink); opacity: 0.9;
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 6px);
  mask-image: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 6px); }
/* It drifts, slowly, the way the buffer screen's static does — enough that the eye catches
   movement on a page where nothing else moves, far too slow to read as an animation. Held
   behind the motion query: this is decoration, and decoration is the first thing that goes. */
@media (prefers-reduced-motion: no-preference) {
  .kb-setup::before { animation: kb-dither 18s linear infinite; }
}
@keyframes kb-dither {
  to { background-position: 21px 12px, 30px -14px; }
}
.kb-setup > * { position: relative; }
.kb-setup-t { margin: 0; font-size: var(--bkz-text-sm); color: var(--ui-ink); max-width: 78ch; }
.kb-setup-t strong { color: var(--ui-ink-strong); font-weight: 600; }
/* Underlined, because the base sheet takes underlines off links and this one sits inside a
   sentence — without it the pull request reads as bold text rather than as the door to it. */
.kb-setup-t a { color: var(--ui-ink-strong); text-decoration: underline;
  text-underline-offset: 2px; }
.kb-setup-t code { font-family: var(--bkz-font-mono); font-size: 0.92em; color: var(--ui-ink-strong); }
.kb-setup .btn { flex: none; transform: none; }
@media (max-width: 760px) {
  .kb-setup { flex-direction: column; align-items: flex-start; gap: 12px; }
}


/* Where the inference went. One row per feature: name, proportion, cost, volume, models.
   The bar is the point — an operator reading this is looking for the long line, and finding
   it should not mean comparing four numbers to each other. */
.adm-spend { margin-top: 20px; }
/* A workspace row you can open. The summary IS the row, so an expandable workspace and a
   plain one line up to the same grid; the marker is dropped because the whole row is the
   affordance and a disclosure triangle in the first column would push the login off it. */
.ops-detail > summary { cursor: pointer; list-style: none; }
.ops-detail > summary::-webkit-details-marker { display: none; }
.ops-detail > summary:hover { background: var(--ui-row-hover); }
.ops-detail[open] > summary { background: var(--ui-row-hover); }
/* The caret rides on the name cell rather than a column of its own, so an openable row and a
   plain one share one grid and nothing shifts sideways when a workspace stops spending. */
.ops-detail > summary .ops-login::after {
  content: '\203a'; margin-left: 7px; color: var(--ui-ink-faint);
  display: inline-block; transition: transform 120ms ease;
}
.ops-detail[open] > summary .ops-login::after { transform: rotate(90deg); }
.ops-spend { padding: 4px 0 10px; background: var(--ui-tint-5); }
.ops-spend .adm-spend-row { border-top: 0; padding-left: 28px; }
/* One track recipe on every row. `auto` sized each row to its own copy and the
   dollars, percents and model lists walked off each other. */
.adm-spend-row { display: grid; align-items: center; gap: 12px; padding: 9px 14px;
  grid-template-columns: minmax(132px, 1fr) minmax(72px, 1fr) 5.5rem 3.25rem minmax(168px, 1.1fr) minmax(140px, 1.4fr);
  border-top: 1px solid var(--ui-border); font-size: var(--bkz-text-sm); }
.adm-spend-row:first-of-type { border-top: 0; }
.adm-spend-k { color: var(--ui-ink-strong);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-spend-bar { display: block; height: 6px; background: var(--ui-tint-10); overflow: hidden; }
.adm-spend-bar i { display: block; height: 100%; background: var(--brand-ink); width: 100%; }
/* Ten steps, because the console emits classes and never an inline width. Coarse on
   purpose: the bar is for finding the long line, and the exact share is printed beside it. */
.adm-w1 i { width: 10%; } .adm-w2 i { width: 20%; } .adm-w3 i { width: 30%; }
.adm-w4 i { width: 40%; } .adm-w5 i { width: 50%; } .adm-w6 i { width: 60%; }
.adm-w7 i { width: 70%; } .adm-w8 i { width: 80%; } .adm-w9 i { width: 90%; }
.adm-w10 i { width: 100%; }
.adm-spend-n, .adm-spend-p { font-family: var(--bkz-font-mono); font-variant-numeric: tabular-nums;
  text-align: right; white-space: nowrap; }
.adm-spend-n { color: var(--ui-ink-strong); }
.adm-spend-p, .adm-spend-s, .adm-spend-m { font-size: var(--bkz-text-xs); color: var(--ui-ink-faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-spend-s { font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .adm-spend-row { grid-template-columns: minmax(0, 1fr) 5.5rem minmax(0, 1.2fr); }
  .adm-spend-bar, .adm-spend-p, .adm-spend-m { display: none; }
  #spend-kinds .adm-spend-row, #spend-models .adm-spend-row { grid-template-columns: minmax(0, 1fr) 5.5rem minmax(0, 1.2fr); }
}

/* Why press Investigate rather than paste the ticket elsewhere. Sits under the CTA, quiet
   enough that a reader who already knows can skip it, present enough to answer the question
   the button raises. A block list inside the form, so it drops below the button rather than
   fighting it for the line. */
.case-why { margin: 10px 0 0; padding: 0; list-style: none;
  display: grid; gap: 4px; font-size: 12px; color: var(--ui-ink-muted); max-width: 62ch; }
.case-why li { position: relative; padding-left: 15px; line-height: 1.5; }
.case-why li::before { content: ''; position: absolute; left: 2px; top: 8px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--ui-ink-faint); }
/* The last line is the one that answers the question, so it is the one that is not grey. */
.case-why li:last-child { color: var(--ui-ink-body); }
.case-why-note { margin: -2px 0 8px; max-width: 62ch; }

/* ---------- the waitlist fold ----------
   The primary action on a card that is invite-only: while almost everybody arriving cannot
   use the GitHub button, the list is the only thing most readers can actually do, so it
   leads and GitHub sits under an `or`.

   Shut by default all the same. Shut it is one row — a label, a line of reason, a chevron —
   which is a decision to make, not a form to fill in. It opens for somebody who has just
   been refused, because for them it is the only thing left on the page. */
.wl { margin-top: 26px; border: 1px solid var(--ui-border); background: var(--ui-sunk); }
.wl:hover { border-color: var(--ui-border-hover); }
.wl[open] { background: var(--ui-surface); }
.wl > .wl-sum { display: flex; align-items: center; gap: 14px; padding: 15px 16px;
  cursor: var(--cursor-mark); list-style: none; }
.wl > .wl-sum::-webkit-details-marker { display: none; }

/* Solid blocks only, one row.
   The first version stacked half-height and shade glyphs (▄ ▀ ▓ ░) at 7px: the halves draw a
   lid and a floor on every cell and the shades dither to grey, so it rendered as a row of
   empty grid boxes and read as a broken font rather than a meter. `█` has no internal edge
   to alias and ships in every monospace face; the half that is lit is a colour, not a
   different character. */
.wl-led { flex: none; font-family: var(--bkz-font-mono); font-size: var(--bkz-text-sm);
  line-height: 1; letter-spacing: -0.5px; color: var(--ui-border-hover); }
.wl-led i { font-style: normal; color: var(--ui-ink-strong); }
.wl[open] .wl-led i { color: var(--ui-accent-btn); }

.wl-cta { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.wl-cta-h { font-size: var(--bkz-text-md); font-weight: 600; color: var(--ui-ink-strong); }
.wl-cta-s { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
/* Turns rather than swaps: a chevron that flips to a different glyph reads as two icons. */
.wl-chev { flex: none; color: var(--ui-ink-muted); font-size: var(--bkz-text-md);
  transition: transform var(--bkz-duration-base); }
.wl[open] .wl-chev { transform: rotate(90deg); }

.wl-form { display: flex; flex-direction: column; gap: 7px; padding: 18px 16px 18px;
  border-top: 1px solid var(--bkz-border-hairline); }
.wl-label { font-family: var(--bkz-font-mono); text-transform: uppercase;
  letter-spacing: 0.10em; font-size: var(--bkz-text-2xs); color: var(--ui-ink-muted); }
.wl-form .auth2-primary { margin-top: 12px; }
.wl-note { margin: 10px 0 0; font-size: var(--bkz-text-xs); line-height: 17px;
  color: var(--ui-ink-muted); }

/* The seam between the two doors. A rule with a word in it, rather than a gap the reader has
   to interpret: without it the demoted GitHub button reads as part of the panel above it. */
.wl-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 2px;
  font-family: var(--bkz-font-mono); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: var(--bkz-text-2xs); color: var(--ui-ink-muted); }
.wl-or::before, .wl-or::after { content: ""; flex: 1; height: 1px; background: var(--grid-rail); }
.wl-form .btn { margin-top: 6px; }
.wl-note { margin: 2px 0 0; font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); }

/* ---------- runtimes: a waiting machine is not a live one ----------
   The page used to dump name, empty capabilities, empty sources, a broken link form
   and the install button in one untitled panel. `rt-inline` and `rt-choice` had no
   rules, so Link dropped under two full-width selects and the Droplet radios read
   as one cramped line. */ 
.rt-page { display: flex; flex-direction: column; gap: 28px; margin-top: 8px; }
.rt-page > .flash { margin-bottom: 0; }
.rt-sec { display: flex; flex-direction: column; gap: 12px; }
.rt-sec > h2, .rt-connect > h2, .rt-install > h2 {
  margin: 0; font-size: var(--bkz-text-xl); font-weight: 650; letter-spacing: -0.02em;
}
.rt-lead { margin: 0; max-width: 44rem; font-size: var(--bkz-text-base); line-height: 1.55;
  color: var(--ui-ink-muted); }
.rt-connect > .rt-lead, .rt-install > .rt-lead { margin: 8px 0 0; }

.rt-card { padding: 20px 22px 16px; }
.rt-card + .rt-card { margin-top: 12px; }
.rt-card-wait { border-color: var(--ui-warn-border); }
.rt-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rt-head h3 { margin: 0; font-size: var(--bkz-text-lg); font-weight: 650; letter-spacing: -0.015em; }
.rt-meta { margin: 6px 0 0; font-size: var(--bkz-text-sm); line-height: 1.5; color: var(--ui-ink-muted); }
.rt-k { display: block; margin: 0 0 6px; font: 550 10.5px/1.4 var(--bkz-font-mono);
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ui-ink-faint); }
.rt-block { margin-top: 16px; }
.rt-facts { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.rt-facts .rt-block { margin-top: 0; }
.rt-hint { margin: 0; font-size: var(--bkz-text-sm); line-height: 1.5; color: var(--ui-ink-muted); }
.rt-linked { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.rt-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.rt-fold { margin: 0; }
.rt-fold > summary { cursor: pointer; color: var(--ui-ink-muted); font-size: var(--bkz-text-sm); }
.rt-card-wait > .rt-fold { margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--bkz-border-hairline); }
.rt-fold > ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--ui-ink-body);
  font-size: var(--bkz-text-sm); }

/* The only next move on a waiting row. Helper sits under the button so the row
   does not tilt around a sentence. */
.rt-next { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--ui-warn-border);
  background: var(--bkz-warn-tint); border-radius: var(--bkz-radius-md); }
.rt-next p { margin: 0 0 10px; color: var(--bkz-warn-ink); font-size: var(--bkz-text-base); line-height: 1.5; }
.rt-next form { margin: 0; }
.rt-next .rt-hint { margin: 8px 0 0; color: var(--bkz-warn-ink); opacity: 0.85; }

/* Repo + environment + Link on one row — the old stack left Link orphaned. */
.rt-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(132px, 168px) auto;
  gap: 8px; align-items: center; margin-top: 10px; }
.rt-map .input { width: 100%; }
.rt-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--bkz-border-hairline); }
.rt-foot form { margin: 0; }

.rt-connect { padding: 22px 24px 20px; }
details.rt-opt > summary {
  cursor: pointer; font-size: var(--bkz-text-lg); font-weight: 650; letter-spacing: -0.02em;
  list-style: none;
}
details.rt-opt > summary::-webkit-details-marker { display: none; }
details.rt-opt[open] > summary { margin-bottom: 4px; }
.rt-targets { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; max-width: 36rem; }
.rt-choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0;
  border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md);
  background: var(--ui-sunk); cursor: pointer; }
.rt-choice:hover { border-color: var(--ui-border-hover); background: var(--ui-hover); }
.rt-choice:has(input:checked) { border-color: var(--ui-brand-border); background: var(--brand-softer); }
.rt-choice input { flex: none; accent-color: var(--brand); }
.rt-choice-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rt-choice-txt strong { font-weight: 600; color: var(--ui-ink-strong); }
.rt-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 200px);
  gap: 4px 18px; margin-top: 18px; max-width: 36rem; }
.rt-fields .field { margin-bottom: 10px; }
.rt-connect .btn-row { margin-top: 8px; }

.rt-install { padding: 22px 24px 20px; }
.rt-update { margin-top: 14px; }
.rt-update .rt-hint { margin: 8px 0; }
.rt-update .rt-cmd-box { margin: 8px 0 0; }
.rt-cmd-box { margin: 14px 0; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md);
  background: var(--ui-sunk); overflow: hidden; }
.rt-cmd-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-bottom: 1px solid var(--bkz-border-hairline); }
.rt-cmd { margin: 0; padding: 14px 16px; overflow-x: auto; white-space: pre-wrap;
  word-break: break-all; font-size: var(--bkz-text-sm); line-height: 1.55; color: var(--ui-ink-strong); }
.rt-install #rt-wait { margin-top: 12px; }

@media (max-width: 640px) {
  .rt-map, .rt-fields { grid-template-columns: 1fr; }
}

/* Slack ingestion as a bar. A paused walk (budget spent, resumes next time) is striped, so a
   bar sitting at 30% reads as "waiting", not "done at 30%". */
.ing-slack { margin: 16px 0 12px; }
.ing-slack + .ing-status { margin-top: 4px; }
.ing-slack-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: 6px; }
.ing-bar { height: 8px; border-radius: 4px; background: var(--ui-sunk); border: 1px solid var(--ui-border); overflow: hidden; }
.ing-bar-fill { height: 100%; background: #2681c4; transition: width 400ms ease; }
.ing-bar-paused { background: repeating-linear-gradient(45deg, #2681c4 0 6px, #24455e 6px 12px); }
/* One line per channel: name, count, freshness, state. A grid so the columns line up across
   forty rows; a warn tag only on "not yet read", which is the row a person acts on. */
.ing-channels { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto auto; gap: 4px 14px; align-items: baseline; margin: 8px 0 6px; font-size: var(--bkz-text-sm); }
.ing-ch { display: contents; }
.ing-ch .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The row's proof of life leads, and never wraps away from its label. */
.ing-read { white-space: nowrap; }
.ing-read b { font-weight: 600; }

/* Confidence ladder chip on a deprecation card. A derived score, so it climbs on its own as
   evidence lands; three steps, cool→warm→green, so "proven" reads as arrival. */
.gd-conf { font-size: var(--bkz-text-xs); text-transform: lowercase; letter-spacing: .02em; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--ui-border); color: var(--ui-ink-muted); }
.gd-conf-firming { color: var(--ui-ink-muted); }
.gd-conf-strong { color: #d9a441; border-color: color-mix(in srgb, #d9a441 40%, transparent); }

/* The disconnect confirmation bar: the question, the destructive act, and the way out, on
   one line. Inline forms inside a flash otherwise stack as blocks. */
.ig-confirm { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ig-confirm > span { flex: 1 1 260px; }
.ig-confirm-act { display: inline-flex; margin: 0; }

/* The investigation line — one row per slot, in the order the factory works them.
   Built from the same tokens as .set-list so the queue page reads as one surface: a
   second visual language for the same kind of list is how one product looks like two. */
.pl-line { border-radius: var(--bkz-radius-3xl); border: 1px solid var(--ui-glass-border-solid);
  background: var(--ui-glass-solid); overflow: hidden; margin-bottom: 14px; }
.pl-line.pl-empty { padding: 13px 18px; font-size: var(--bkz-text-sm); }
.pl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 11px 18px; border-bottom: 1px solid var(--bkz-border-hairline);
  font-weight: 600; font-size: var(--bkz-text-md); color: var(--ui-ink-strong); }
.pl-slots { list-style: none; margin: 0; padding: 0; }
.pl-slot { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; gap: 12px;
  align-items: baseline; padding: 10px 18px; font-size: var(--bkz-text-sm);
  border-bottom: 1px solid var(--bkz-border-hairline); }
.pl-slot:last-child { border-bottom: 0; }
/* The lead is the state, and it is the column a reader scans: what is being worked, what
   is waiting and in what position, and — the one that needs to stand out — what is held
   by nothing. */
.pl-lead { font-weight: 600; color: var(--ui-ink-muted); }
.pl-running .pl-lead { color: var(--ui-ink-strong); }
.pl-stalled .pl-lead { color: var(--bkz-danger, #b4341f); }
.pl-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-note { padding: 9px 18px 12px; margin: 0; }
@media (max-width: 620px) {
  .pl-slot { grid-template-columns: minmax(0, 1fr) auto; }
  .pl-lead { grid-column: 1 / -1; }
}

/* ── The Garden's Bugs row ───────────────────────────────────────────────── */
/* A proven bug wears the danger edge where an ask wears the muted one: the row is a defect,
   not a proposal, and the eye should sort them before the words do. */
.gd-bug { border-left: 2px solid var(--bkz-danger-border); }
/* This scan's bugs wear the brand, the earlier ones keep the danger stripe: one look per group. */
.gd-bug.gd-from-scan { border-left: 3px solid var(--brand-ink, #4da3ff); background: color-mix(in srgb, var(--brand-ink, #4da3ff) 4%, transparent); }
.gd-bug.gd-waiting-merge { border-left: 3px solid var(--bkz-success-ink); background: color-mix(in srgb, var(--bkz-success-ink) 8%, transparent); }
.gd-bug.gd-from-scan:not(.gd-solving),
.gd-bug.gd-waiting-merge:not(.gd-solving),
.gd-bug:not(.gd-solving) { animation: none; }
.gd-bug.gd-solving { animation:none; background:transparent; box-shadow:none; }
.gd-group-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 4px 0 0; padding: 8px 0 6px;
  font: 600 11px/1.6 var(--bkz-font-mono); letter-spacing: .10em; text-transform: uppercase; color: var(--ui-ink-soft); border-bottom: 1px solid var(--ui-border); }
.gd-decided-row { position: relative; }
.gd-decided-row.is-merged .gd-bug { border-left: 3px solid #a371f7;
  background: color-mix(in srgb, #a371f7 8%, transparent); }
:root[data-theme="light"] .gd-decided-row.is-merged .gd-bug { border-left-color: #8250df;
  background: color-mix(in srgb, #8250df 8%, transparent); }
.gd-unresolve { position: absolute; top: 12px; right: 22px; z-index: 2; margin: 0; }
.gd-group-h + .gd-group-h { margin-top: 18px; }
.gd-group-scan { padding-inline: 12px; color: var(--brand-ink, #4da3ff); border-bottom-color: color-mix(in srgb, var(--brand-ink, #4da3ff) 45%, transparent); }
.gd-group-fixing { padding-inline: 12px; color: var(--bkz-success-ink); border-bottom-color: color-mix(in srgb, var(--bkz-success-ink) 45%, transparent); }
.gd-card + .gd-group-h { margin-top: 18px; }
/* A workspace page's section per repository: a band across the column — the name in full
   ink at the cards' own left edge (their 22px inset, so nothing hangs out to the left), a
   brand rule down its side, the count at the right — then that repository's cards. The
   founder's reading of the first cut: the name sat at the column edge, small, with the
   cards indented past it, so it read as a stray label rather than a section. */
.gd-group-repo { font: 700 14px/1.4 var(--bkz-font-mono); letter-spacing: .04em; text-transform: none; color: var(--ui-ink-strong);
  padding: 14px 22px; margin: 22px 0 0; border-bottom: 1px solid var(--bkz-border-hairline);
  border-left: 3px solid var(--brand-ink, #4da3ff); background: var(--ui-row-hover); }
/* `.fold > summary` is `padding: 4px 0` and more specific than this class alone — without
   the element in the selector the name sat on the brand rule and the count on the right edge. */
.fold > summary.gd-group-repo { padding: 14px 22px; }
.gd-group-repo:first-child { margin-top: 0; }
.gd-group-repo > span:last-child,
.gd-group-repo .gd-repo-go + span { font-weight: 500; font-size: 11.5px; letter-spacing: .04em; color: var(--ui-ink-muted); }
.gd-repo-go { color: inherit; text-decoration: none; min-width: 0; }
.gd-repo-go:hover { color: var(--brand-ink); text-decoration: none; }
.gd-card + .gd-group-repo, .revrow + .gd-group-repo { margin-top: 22px; }
/* A note a teammate typed in the editor: recorded, not derived. Quieter than a removal. */
.gd-recorded { border-left: 2px solid var(--ui-ink-muted); }
/* The chain steps in a bug's drawer, one per line, in the drawer's own text size. */
.dp-lines { display: flex; flex-direction: column; gap: 4px; }
/* The path's file:line, quiet at the end of its sentence — the step is what is read. */
.dp-step-at { background: none; padding: 0; font-size: 11px; color: var(--ui-ink-muted); overflow-wrap: anywhere; }
.gd-row { margin: 0 0 22px; }
.gd-row-h { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  gap: 6px; flex-wrap: nowrap; text-align: left; padding-bottom: 18px; }
.gd-row-h .gd-row-aside { color: var(--ui-ink-muted); font-size: var(--bkz-text-sm); margin-left: 0;
  font-weight: 400; word-spacing: 0.04em; }

/* How a section knows what it knows, said before any card is read.
   One muted tone; no red/amber/green status vocabulary, because none of
   these are states of health. */
.gd-evidence { font-size: var(--bkz-text-xs); letter-spacing: .04em; text-transform: lowercase;
  padding: 2px 8px; border: 1px solid var(--ui-line); border-radius: 999px;
  color: var(--ui-ink-muted); white-space: nowrap; font-weight: 500; }

/* ── Two sections, both on screen ───────────────────────────────────────────
   Bugs and Dead code each ask the same question of their two halves — which of
   these is worth my afternoon — and stacked, the second half started below the
   fold on every screen. A `.gd-card` is a head line, a reason and its tools at
   20px padding, so five of them is a viewport and the section under them may as
   well not exist.

   Two columns, and inside them every row is ONE LINE. That is what makes the
   columns fit rather than merely halving the width: the per-row "how we know"
   moved up into the section header, where it is said once instead of on every
   card, and everything else a reader needs is already in the drawer this row
   opens. `minmax(0, 1fr)` because a long symbol name in a grid child will
   otherwise widen the track instead of truncating. */
/* The ratio is the reader's, and `split.js` remembers it. `--gd-split` is the fraction the
   LEFT column takes; the handle is its own 34px track, so the gap and the divider are the
   same object rather than two things that must agree. */
.gd-split { display: grid;
  grid-template-columns: minmax(0, calc((100% - 34px) * var(--gd-split, .5))) 34px minmax(0, 1fr);
  align-items: start; }
/* The line, made honest about what it can do. Invisible until you are near it: the divider
   a reader already sees is the 1px rule below, and this is the 34px of forgiveness around
   it that a pointer actually needs. */
/* A repository group on the workspace lists is a fold: the header is the summary, the rows
   sit under it, and a reader who does not want a repository's rows closes it — remembered
   per repository (folds.js). The chevron is the fold's own; the header keeps its words. */
.gd-fold > summary { cursor: pointer; list-style: none; }
.gd-fold > summary::-webkit-details-marker { display: none; }
.gd-fold > summary > span:last-child::after { content: '\203A'; display: inline-block; margin-left: 8px; color: var(--ui-ink-faint);
  transform: rotate(90deg); transition: transform var(--bkz-duration-base) var(--bkz-ease-settle); }
.gd-fold:not([open]) > summary > span:last-child::after { transform: rotate(0deg); }
.gd-fold:not([open]) > summary { opacity: .72; }
/* Several sweeps in one banner: a header line, then one row per repository. */
.sweep-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ui-border); }
/* The receipt under the words: technical detail, one more fold down. */
.sweep-detail { margin-top: 6px; }
.sweep-detail > summary { cursor: pointer; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.sweep-detail > p { margin: 4px 0 0; word-break: break-word; font-size: var(--bkz-text-xs); }
/* What was read, as the kit's dots: the meter and the caption that says what it measures. */
.ing-meter { margin: 6px 0 4px; font-family: var(--bkz-font-mono); letter-spacing: .04em; color: var(--brand-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ing-meter .muted { font-family: var(--bkz-font-sans); letter-spacing: 0; margin-left: 10px; }
/* The owner's reason, beside the face. */
.owner-why { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); margin-left: 10px; }
.gd-split-bar { position: relative; align-self: stretch; min-height: 120px;
  border: 0; background: transparent; padding: 0; cursor: col-resize;
  display: flex; align-items: center; justify-content: center; }
.gd-split-bar::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--grid-rail); }
.gd-split-grip { position: relative; width: 3px; height: 26px; border-radius: 2px;
  background: var(--ui-ink-faint); opacity: 0; transition: opacity .14s ease; }
.gd-split-bar:hover .gd-split-grip,
.gd-split-bar:focus-visible .gd-split-grip,
.gd-split-bar.is-dragging .gd-split-grip { opacity: .55; }
.gd-split-bar:focus-visible { outline: none; }
.gd-split-bar:focus-visible::before { background: var(--ui-ink-strong); }
/* While dragging, the columns must not fight the pointer for the text under it. */
.gd-split.is-dragging { user-select: none; cursor: col-resize; }

/* Said once, on arrival, and quietly enough that nobody watches it finish. A control
   nobody knows about is the same as no control; a control that keeps announcing itself is
   worse than either. Three seconds, then it is the reader's to find again. */
@keyframes gd-split-hint {
  0%, 100% { opacity: 0; }
  18%, 72% { opacity: .5; }
}
.gd-split-bar.is-hinting .gd-split-grip { animation: gd-split-hint 3s ease-in-out 1; }
@media (prefers-reduced-motion: reduce) {
  .gd-split-bar.is-hinting .gd-split-grip { animation: none; opacity: .4; }
}
/* The divider owns the space to its right; the grid gap owns the space to its left. Two
   numbers, one on each side, rather than a padding and a negative margin cancelling out —
   which read as symmetric and was not, and moved whenever either number changed. */
.gd-split > .gd-row { min-width: 0; }
/* The divider is the gap, drawn once, rather than a border on each column. */
/* The rule lives on the handle now, so the columns need no border of their own — two
   places drawing one line is how they came to disagree about where it was. */

/* ── The row inside a column ────────────────────────────────────────────────
   Two lines, not one. The one-line row was `gd-head` beside a `width: 100%` footer
   in a flex row: at any column narrower than the head's fixed-width chips the footer
   had nowhere to go and drew "See the evidence" straight over the file count and the
   age (2026-09-04, the founder's screenshot). It also made every row a 9px sliver
   under a header, which read as a page with nothing on it.

   Now: the title has the first line to itself, the chips take the second and wrap when
   they must, and the affordance sits at the bottom-right of the row beside them. The
   card is a two-column grid so that last piece is aligned with the chips rather than
   stacked under them, and the columns come from `minmax(0, 1fr) auto` so the head
   truncates instead of pushing the affordance out of the row. */
.gd-split > .gd-row { container-type: inline-size; }
.gd-split .gd-card { display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: 6px 14px; padding: 16px 18px; }
.gd-split .gd-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  min-width: 0; }
/* The title claims the whole first line — its basis is the line less the mark beside it —
   so everything after it wraps to the second, whatever the column's width. */
.gd-split .gd-title { flex: 1 1 calc(100% - 32px); min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; line-height: 1.35; }
.gd-split .gd-brand, .gd-split .gd-marks, .gd-split .gd-head .tag,
.gd-split .gd-out, .gd-split .gd-conf, .gd-split .tip-wrap { flex: none; }
.gd-split .gd-head .tag { white-space: nowrap; }
/* The reason is the SECTION's now, said once in its header. Kept in the DOM for the
   drawer and for anything reading the page, hidden here because repeating "nothing
   reaches it" on eighteen consecutive rows is the thing that made them tall. A bug's
   line is the exception: `path:line` is different on every row, and it is the one
   thing a reader scans the scans column for. */
.gd-split .gd-because, .gd-split .gd-both { display: none; }
.gd-split .gd-bug .gd-because { display: block; grid-column: 1 / -1; order: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-split .gd-withheld { grid-column: 1 / -1; }
/* The footer is a grid cell now, not a full-width band. */
.gd-split .gd-foot { width: auto; margin: 0; gap: 0; justify-content: flex-end;
  align-self: end; }
.gd-split .gd-foot .gd-tools:empty { display: none; }
.gd-split .gd-more { flex: none; line-height: 1.6; }
.gd-split .gd-card:hover .gd-more { color: var(--ui-ink-strong); }
.gd-split .gd-list { margin: 8px 0 14px; }
/* The reviews column keeps the same rhythm, and its chips never break inside themselves. */
.gd-split .revrow { padding: 16px 18px; gap: 10px 20px; }
.gd-split .revrow-aside { align-self: center; }

/* A column that is narrow — because the reader dragged the divider that way — drops the
   right-hand cell under the left rather than squeezing both. Measured on the column, not
   the window: the window can be wide while one column is not. */
@container (max-width: 400px) {
  .gd-split .gd-card, .gd-split .revrow { grid-template-columns: minmax(0, 1fr); }
  .gd-split .gd-foot { justify-content: flex-start; }
  .gd-split .revrow-aside { padding-bottom: 0; }
}

/* Two columns of rows on a phone is neither. */
@media (max-width: 1080px) {
  .gd-split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* One column: there is nothing to divide, so the handle is not a control, it is clutter. */
  .gd-split-bar { display: none; }
  .gd-split .gd-card { padding: 20px 22px; }
  /* Both of the lines the column folds away, not one of them: `gd-both` carries the
     quote that IS the deprecated card's evidence, and restoring the reason without it
     would leave the claim on screen and its proof off. */
  .gd-split .gd-because, .gd-split .gd-both { display: block; grid-column: 1 / -1; }
}

.gd-row-standing { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 8px 0 10px; color: var(--ui-ink-muted); font-size: var(--bkz-text-sm); }
/* The only action on a board that has never been scanned: one big door, in the middle. */
/* A lane's one control sits quietly at the right of the lane, in the board's own button,
   never a white slab floating in the middle (founder: "i hate the white bugs"). */
.gd-row-standing.gd-scan-cta { display: flex; justify-content: flex-start; padding: 0; margin: 0; }
.gd-card:focus-visible { outline: 2px solid var(--bkz-ink-strong); outline-offset: 3px; }
/* A finding's title is its meaning; the old ellipsis hid the actual failure on narrow columns. */
.gd-bug .gd-head { flex-wrap: wrap; }
.gd-bug .gd-tags { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px;
  flex: 0 0 100%; }
.gd-bug .gd-title, .gd-split .gd-bug .gd-title { flex-basis: 100%; white-space: normal; overflow-wrap: anywhere; }
.gd-split .gd-bug .gd-head { grid-column: 1 / -1; }
.gd-split .gd-bug .gd-foot { grid-column: 1 / -1; order: 2; }
/* The dead-logs row: one sentence about the last run, and the button that starts the next.
   The button sits at the end of the row rather than beside the header, because on this page a
   header is a label and the thing a person presses should be next to the words that told them
   why to press it. */
/* Beats `p.sub { margin: 0 0 2rem }` from the page sheet so the empty line sits
   on the header the way Deprecated code does, not a padded lecture block. */
p.sub.gd-row-empty { margin: 14px 0 0; padding: 0; max-width: none;
  letter-spacing: 0; word-spacing: normal; }
.gd-row-body { padding: 4px 0 0; }
/* Dead logs sits under the split. `.sec-h` still wants 28px above a section; the
   columns already spent their `.gd-row` bottom margin, and stacking both left a
   hole the deprecated empty line does not have. */
.gd-split + .gd-row > .sec-h { margin-top: 0; }
.gd-row-run, .gd-logs-run { display: flex; justify-content: flex-end; padding: 8px 0 12px; }
/* On the header line the control sits at the right of the counts, and the band under the
   rule that used to hold it is gone. */
.gd-row-h .gd-row-aside { display: flex; align-items: center; gap: 12px; width: 100%; }
.gd-row-h .gd-row-aside .gd-scan-next { min-width: 0; flex: 1 1 auto; text-transform: none;
  letter-spacing: 0; font: 400 13px/1.5 var(--bkz-font-sans); color: var(--ui-ink-soft); }
.gd-row-h .gd-row-aside .gd-row-run, .gd-row-h .gd-row-aside .gd-logs-run { margin-left: auto; padding: 0; }
.gd-row-run .btn, .gd-logs-run .btn { white-space: nowrap; }
.gd-row-more { display: flex; justify-content: flex-end; padding: 10px 0 0; }
.gd-chips { display: inline-flex; gap: 6px; }
.gd-chips a { text-decoration: none; }
.gd-chips a[aria-current="true"] { font-weight: 600; }
.gd-dismiss summary { list-style: none; cursor: pointer; }
.gd-dismiss summary::-webkit-details-marker { display: none; }
.gd-actions { align-items: center; }
.gd-action-menu, .gd-dismiss { position: relative; }
.gd-action-menu > summary, .gd-dismiss > summary { list-style: none; cursor: pointer; }
.gd-action-menu > summary::-webkit-details-marker, .gd-dismiss summary::-webkit-details-marker { display: none; }
.gd-action-menu-pop { position: absolute; z-index: 80; right: 0; bottom: calc(100% + 8px); display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 220px; padding: 10px; border: 1px solid var(--ui-border); background: var(--ui-raised, var(--ui-sunk)); box-shadow: 0 12px 28px rgb(0 0 0 / .28); }
.gd-action-menu-pop > form, .gd-action-menu-pop > span, .gd-action-menu-pop > details { display: block; width: 100%; }
.gd-action-menu-pop .btn { width: 100%; text-align: left; }
.gd-dismiss .gd-dismiss-form { position: absolute; z-index: 81; right: 0; bottom: calc(100% + 8px); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; width: min(420px, calc(100vw - 48px)); margin: 0; padding: 12px; border: 1px solid var(--ui-border); background: var(--ui-raised, var(--ui-sunk)); box-shadow: 0 12px 28px rgb(0 0 0 / .28); }
.gd-dismiss .gd-dismiss-form .dd, .gd-dismiss .gd-dismiss-form .input { flex: 1 1 100%; min-width: 0; }
.dp-witness { white-space: pre-wrap; max-height: 260px; overflow: auto; font-size: var(--bkz-text-xs); }
/*
 * A diff does not wrap.
 *
 * `.dp-witness` is `pre-wrap` because a transcript and a source excerpt are prose and should
 * reflow. A patch is not prose: wrap one long line and the `-`/`+` column stops lining up, so a
 * two-line change reads as four and the reader can no longer see what is being replaced with
 * what. It scrolls sideways instead — the same choice every diff viewer makes.
 */
.dp-diff { white-space: pre; overflow-x: auto; }
/* Inline: the `\n` in the source is what makes the line, so the text that travels to the
   agent prompt has the same shape as the text on screen. */
.dp-d-row { display: inline; }
.dp-d-n { color: var(--ui-ink-faint); user-select: none; }
.dp-d-s { user-select: none; }
/* The changed text itself — the only part of a diff row worth copying, which is why the
   gutter and the sign beside it are not selectable. `pre` and not `pre-wrap`: a wrapped
   line breaks the -/+ column and a two-line change reads as four. */
.dp-d-t { white-space: pre; }
.dp-d-del { color: var(--bkz-danger-ink, #f0a7a7); }
.dp-d-add { color: var(--bkz-success-ink); }
.dp-d-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 4px; font-size: var(--bkz-text-sm); }
.dp-d-head code { background: none; padding: 0; overflow-wrap: anywhere; }
.dp-d-count { flex: none; font: 500 10px/1.6 var(--bkz-font-mono); color: var(--ui-ink-faint); letter-spacing: .04em; }
/* A proven interface finding's photographs: before, after, or the failing element outlined. */
.dp-shots { display: flex; flex-wrap: wrap; gap: 10px; }
.dp-shot { margin: 0; flex: 1 1 240px; max-width: 100%; }
.dp-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--bkz-line, #2a2a2a); border-radius: 4px; background: #111; }
.dp-shot figcaption { font-size: var(--bkz-text-xs); margin-top: 4px; }
/* The bug lane's ramp: a third family beside the blue (tickets) and red (orphaned code)
   ramps — desaturated violet, never amber, which the palette test reserves for warnings. */
.fb-1 { background: #3d3560; } .fb-2 { background: #6d5cc2; } .fb-3 { background: #b9adf0; }
.fr-1 { background: #3d8fd4; }
[data-theme="light"] .fb-3 { background: #4a3b9a; } [data-theme="light"] .fb-1 { background: #c9c0f2; }
[data-theme="light"] .fr-1 { background: #155a86; }
/* ── Compounding memory: the knowledge page and the case's "what the team already knows" ── */
.kb-page { display: block; }
.kb-list { min-width: 0; }
@media (max-width: 640px) {
  .kb-row.botrow { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px 18px; }
  .kb-row > .tag { justify-self: start; }
}

.kb-see-all .botrow-title { justify-content: center; }
.botrow-end { width: 0; }
.known-row .botrow-sub code { font-size: var(--bkz-text-xs); }

/* ── The case page: four facts, one card ──
   14px rows with a 2px muted follow-on made Cause / Fix / Evidence one wall: the path
   chip sat on the sentence, the avoid-note sat on the fix, and "read it" wrapped onto
   its own line still wearing the middot. Each row is a labelled block now, and anything
   under the sentence is a second beat. */
.facts { display: flex; flex-direction: column; border: 1px solid var(--ui-border);
  border-radius: var(--bkz-radius-md); background: var(--ui-surface); margin-top: 20px;
  overflow: hidden; }
.fact { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px;
  padding: 22px 24px; border-top: 1px solid var(--bkz-border-hairline); align-items: start; }
.fact:first-child { border-top: 0; }
.fact-k { font-size: var(--bkz-text-2xs); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ui-ink-faint); padding-top: 5px; }
.fact-v { font-size: var(--bkz-text-md); line-height: 1.55; color: var(--bkz-ink); min-width: 0; }
.fact-v .muted { display: block; font-size: var(--bkz-text-sm); line-height: 1.5;
  margin-top: 10px; color: var(--ui-ink-faint); }
.fact-v .muted + .muted { margin-top: 8px; }
.fact-v > .muted code.mono {
  display: inline-block; padding: 3px 8px;
  background: var(--ui-sunk); border: 1px solid var(--ui-border);
  border-radius: var(--bkz-radius-sm); color: var(--ui-ink-muted);
}
.fact-v code { font-size: var(--bkz-text-xs); }
.fact-open { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 22px 0 0; }
.fact-open .btn {
  flex: none; padding: 12px 22px; font-size: var(--bkz-text-md); font-weight: 600;
}
/* Full report and the draft-PR receipt sit in the same sticky row at the
   bottom of the viewport — stacked they looked like two pages of the same
   control, and they scrolled off the facts the reader still had on screen. */
.case-open { flex-direction: row; flex-wrap: wrap; align-items: stretch;
  justify-content: center; width: auto; min-width: 0; margin: 0; }
.case-open > .btn,
.case-open > .inv-open {
  flex: 1 1 12rem; width: auto; min-width: 0; max-width: 18rem; min-height: 48px;
  box-sizing: border-box;
  padding: 12px 22px; font-size: var(--bkz-text-md); font-weight: 600;
}
.case-open > .inv-open { margin: 0; padding: 0; }
.case-open .inv-open .tag,
.case-open .inv-open .btn {
  flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 16px; margin: 0;
  font-size: var(--bkz-text-md); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
/* Make a PR / Retry already wrap themselves in .inv-cta-row. Inside this bar
   they must not become a second fixed footer. */
.case-open > .inv-cta-row {
  position: static; left: auto; right: auto; bottom: auto; z-index: auto;
  flex: 0 1 auto; width: auto; margin: 0; padding: 0;
  background: none; border: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.fact-open-hint { font-size: var(--bkz-text-sm); line-height: 1.4; color: var(--ui-ink-muted); }
.case-open > .fact-open-hint {
  flex: 1 1 100%; order: 1; margin: 0; text-align: center;
}
.fact-open + .inv-open { margin-top: 14px; }
/* Retry used to sit flush under the Full-report row — same stack, no gap. */
.fact-open + .inv-retry { margin-top: 20px; }
.case-page .inv-phases { margin-top: 20px; }
@media (max-width: 720px) { .fact { grid-template-columns: 1fr; gap: 8px; } }

/* ── The case report: everything, printable ── */
.report-page .inv-title { display: none; }
/* The report hides the dossier h1, so this label is the title — it should sit on
   the meta line, not a section-gap above it. */
.case-page.report-page > .sec-h:has(+ .inv-head) { margin-bottom: 2px; }
.report-page .inv-lead { gap: 0; }
.report-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 6px 0 4px; }
/* How the ticket arrived: a label, then the sentence or the exception. A <strong> plus
   an inline code chip made "Reported" and "Error" the same weight as the text they name. */
.rpt-facts { display: flex; flex-direction: column; gap: 16px; }
.rpt-row { display: flex; flex-direction: column; gap: 7px; }
.rpt-k {
  font: 600 11px/1.4 var(--bkz-font-mono); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ui-ink-muted);
}
.rpt-v { margin: 0; max-width: none; font-size: var(--bkz-text-base); line-height: 1.5;
  color: var(--ui-ink-body); }
.rpt-err {
  margin: 0; padding: 11px 13px; max-width: none;
  font-family: var(--bkz-font-mono); font-size: var(--bkz-text-sm); line-height: 1.45;
  color: var(--bkz-danger-ink); background: var(--bkz-danger-tint);
  border: 1px solid var(--bkz-danger-border); border-radius: var(--bkz-radius-md);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
/* Same fixed bar as the ticket page — stays on the viewport while the write-up scrolls.
   The dossier's own `.inv-cta-row` (Make a PR) stays in the Fix card so two bars
   do not stack on top of each other. */
.report-page .inv-sec-act .inv-cta-row {
  position: static; left: auto; right: auto; bottom: auto; z-index: auto;
  margin-top: 22px; padding: 0; background: none; border: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  justify-content: flex-start;
}
.report-cta { margin: 0; }
.report-cta > .inv-retry,
.report-cta > .case-cta { flex: 1 1 12rem; max-width: 20rem; }
.report-cta > .inv-retry .case-cta { width: 100%; }
.report-cta .inv-retry { margin: 0; }
@media print {
  .sidebar, .rail, .page-back, .report-head .btn, .tip-pop, nav, .rail-modal,
  .report-page .inv-cta-row, .report-page .inv-fix, .report-page .inv-retry,
  .report-page .inv-sec-act, .report-page .report-cta, .case-open { display: none !important; }
  .main, .main-inner { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  body { background: #fff !important; color: #111 !important; }
  .panel, .facts, .tbl, .botrow { border-color: #ccc !important; background: #fff !important; break-inside: avoid; }
  details.inv-deep, details.inv-thought-log { display: block; }
  details.inv-deep > summary, details.inv-thought-log > summary { display: none; }
  a { color: #111 !important; text-decoration: none; }
}
/* The onboarding sandbox's jump bar. Deliberately not styled like the product: it must never
   be mistaken for a control a customer has, and it only exists when CODEINTEL_SANDBOX=1. */
.sbx { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 14px; background: #1d1206; border-top: 2px solid #ff9f45;
  font-family: var(--bkz-font-mono); font-size: 12px; color: #ffd9ad; }
.sbx-tag { font-weight: 700; letter-spacing: .12em; color: #ff9f45; }
.sbx-note { color: #b8875a; margin-right: 6px; }
.sbx-link { color: #ffd9ad; text-decoration: none; border: 1px solid #6b4a22;
  padding: 3px 10px; border-radius: 4px; }
.sbx-link:hover { background: #33200c; border-color: #ff9f45; color: #fff; }
.sbx-form { margin: 0; display: inline-flex; }
.sbx-next { cursor: pointer; font-family: var(--bkz-font-mono); font-size: 12px; font-weight: 700;
  background: #ff9f45; color: #1d1206; border: 0; border-radius: 4px; padding: 5px 14px; }
.sbx-next:hover { background: #ffb96f; }

/* ── the onboarding preferences leg ─────────────────────────────────────────
   The frame (logo, identity, bar) never repaints; only .onb-main's contents swap. The bar is
   fixed to the bottom centre of the VIEWPORT, not the card, so it holds its place while pages
   of different heights slide through above it. */
.onb { padding-bottom: 96px; }
.onb-card { position: relative; }
/* The swap wrapper is `.main` so nav.js swaps only it — but `.main` is the PRODUCT shell:
   280px of sidebar-rail padding-left, and `.main-inner`'s 1152px max-width + auto margins.
   Inside the onboarding card none of that applies; the card's own padding is the only inset,
   so every one of those is reset to zero here. Without this the whole flow sits in the right
   half of the card with the rail's width as dead space on the left. */
.onb-main { display: block; min-height: 0; padding: 0;
  /* `.main` paints the product's 168px drafting grid. Inside the card that grid ran behind the
     copy (a vertical hairline through the text column on a phone), so the card's content sits on
     the card's own opaque surface and no line crosses it. */
  background: var(--ui-surface); }
.onb-inner { margin: 0; max-width: none; padding: 0; min-width: 0; }

.onb-repos-empty { margin: 28px 0 4px; padding: 30px; border: 1px solid var(--ui-border); background: var(--ui-surface); }
.onb-repos-empty h2 { margin: 0 0 8px; font-size: var(--bkz-text-xl); font-weight: 600; }
.onb-repos-empty p { margin: 0 0 22px; max-width: 540px; color: var(--ui-ink-muted); line-height: 1.6; }

/* Page one's four tiles. The checkbox is the state; the card is the control. */
.onb-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 6px; }
@media (max-width: 640px) { .onb-goals { grid-template-columns: 1fr; } }
.onb-goal { display: flex; }
.onb-goal input { position: absolute; opacity: 0; }
.onb-goal-card { position: relative; overflow: hidden; flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px;
  border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-lg); cursor: pointer;
  background: var(--ui-surface); transition: border-color .12s ease, background .12s ease; }

/* ---------- picking a goal, in the product's own alphabet ----------
   A checkbox going blue is a correct answer to "did that register" and a dull one. The card is
   made of the ascii.js ramp for a moment instead — the same characters the mark on the front
   door is drawn from — and a column of that field lights up and travels across it, left to
   right, like a line being read. Then it burns off and what remains is the ordinary selected
   state, not a decoration that has to be looked at twice.

   This replaced a single line of glyphs across the middle of the card, which is exactly what
   it looked like: a rule sliding past, too small to register as the product doing something.
   The field is the whole card now, and the travelling part is the LIGHT on it rather than the
   text itself. */
/* The field and its motion are the shared component (.ascii-sweep, below); the card is its host. */
/* BEHIND the words. The sweep is absolutely positioned and its siblings are not, so it paints
   over them by default — which put a field of glyphs across the label exactly while somebody
   was looking at the card to confirm what they had just picked. Raising the text instead of
   sinking the field, because `z-index: -1` would drop the field behind the card's own
   background and hide it completely. */
.onb-goal-l, .onb-goal-s { position: relative; z-index: 1; }
/* Correct stacking was not enough on its own: the words were on top and still hard to read,
   because what sat behind them had turned into noise. A halo in the card's own background
   colour carries them over it — which is what lets the field stay bold instead of being dimmed
   until it is a texture nobody notices. Only while the band is travelling; the card at rest
   has nothing to be legible against. */
.onb-goal.is-sweeping .onb-goal-l,
.onb-goal.is-sweeping .onb-goal-s {
  text-shadow:
    0 0 7px var(--ui-surface),
    0 0 4px var(--ui-surface),
    0 0 2px var(--ui-surface);
}

/* The card answers on the same beat rather than changing colour by itself once the sweep is
   over: the border lights as the column starts and the tick lands with it. */
.onb-goal.is-sweeping .onb-goal-card { border-color: var(--brand-ink); }
.onb-goal.is-sweeping .onb-goal-l::before { animation: onb-goal-tick .34s var(--bkz-ease-settle) both; }
@keyframes onb-goal-tick {
  0%   { opacity: 0; transform: translateX(-4px); }
  100% { opacity: 1; transform: none; }
}

/* Asked for no motion: the field never lights, and the selected state is the whole of it. */
@media (prefers-reduced-motion: reduce) {
  .onb-goal.is-sweeping .onb-goal-l::before { animation: none; }
}

/* ---------- the ascii sweep: one component (ui/kit.ts ASCII_SWEEP, ascii-sweep.js) ----------
   The field of ramp glyphs covers its host and is inert until a moment happens. A column of it
   then lights and travels left to right, like a line being read, and burns off.

   The travelling part is a clip band, not a mask: with an oversized mask a percentage position
   resolves against a NEGATIVE length and runs backwards, putting the lit window hundreds of
   pixels off the host. `clip-path: inset()` has four edges that interpolate linearly, and a band
   that starts just off the left and ends just off the right is exactly what those numbers say.
   The glyphs hold still and the WINDOW moves: text being read, not a bar sliding past.

   Hosts: `position: relative; overflow: hidden`, and their own content raised above the field
   (`position: relative; z-index: 1`), because a field painted over the label is noise exactly
   while somebody is looking at it to confirm what they picked. */
/* `span.` and the row rule's two classes: a host that styles its own spans (a credit pack's
   `.credit-pack span`) must not restyle the field inside it. */
span.ascii-sweep {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; justify-content: center;
  font: 11px/1.42 var(--bkz-font-mono); letter-spacing: 1px; color: var(--brand-ink);
  white-space: nowrap; overflow: hidden; border-radius: inherit;
  pointer-events: none; user-select: none;
  opacity: 0;
}
.ascii-sweep .ascii-sweep-row { display: block; color: inherit; font: inherit; letter-spacing: inherit; }
.is-sweeping > .ascii-sweep, .is-sweeping > * > .ascii-sweep { animation: ascii-sweep-read .58s linear both; }
/* Something under way (a payment in flight): the same read, again and again, until it settles. */
.is-sweeping-loop > .ascii-sweep, .is-sweeping-loop > * > .ascii-sweep { animation: ascii-sweep-read 1.15s linear infinite; }
@keyframes ascii-sweep-read {
  /* Band just off the left: right edge at 0%, left edge 26% behind it. */
  0%   { opacity: 1; clip-path: inset(0 100% 0 -26%); }
  84%  { opacity: 1; }
  /* And just off the right: left edge at 100%, right edge 26% beyond. */
  100% { opacity: 0; clip-path: inset(0 -26% 0 100%); }
}
/* Asked for no motion: the field never lights, and the state change is the whole of it. */
@media (prefers-reduced-motion: reduce) {
  .is-sweeping > .ascii-sweep, .is-sweeping > * > .ascii-sweep,
  .is-sweeping-loop > .ascii-sweep, .is-sweeping-loop > * > .ascii-sweep { animation: none; }
}
/* Hover belongs to the cards that are NOT picked.
   `:hover` here scores (0,4,0) and the checked rule below scores (0,3,1), so hovering a card
   you had already chosen repainted its blue border back to the neutral hover grey — the one
   card the pointer was on was the one card that stopped looking selected. Narrowed to the
   unchecked case so the two rules can no longer describe the same card. */
.onb-goal:not(.onb-goal-disabled):hover input:not(:checked) + .onb-goal-card {
  border-color: var(--ui-border-hover);
}
.onb-goal-disabled { opacity: .45; cursor: not-allowed; }
/* Chosen and not a choice (Bug fixes in setup): the selected look, without the pointer. */
.onb-goal-included .onb-goal-card { cursor: default; }
.onb-goal input:checked + .onb-goal-card { border-color: var(--brand-ink);
  background: var(--ui-tint-5); }
.onb-goal input:focus-visible + .onb-goal-card { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.onb-goal-l { font-weight: 600; color: var(--ui-ink-strong); }
.onb-goal-l::before { content: '✓  '; opacity: 0; color: var(--brand-ink); }
.onb-goal input:checked + .onb-goal-card .onb-goal-l::before { opacity: 1; }
.onb-goal-s { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); line-height: 1.5; }

/* Rows shared by toggles and connect doors. */
.onb-list { display: flex; flex-direction: column; gap: 4px; margin: 16px 0;
  border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-lg); overflow: hidden; }
.onb-row, .onb-conn { display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  background: var(--ui-surface); }
.onb-row + .onb-row, .onb-conn + .onb-conn, .onb-row + .onb-conn, .onb-conn + .onb-row {
  border-top: 1px solid var(--ui-border); }
.onb-row-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.onb-row-l { font-weight: 600; color: var(--ui-ink-strong); }
.onb-row-s { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); line-height: 1.5; }
.onb-conn-mark { flex: none; width: 22px; height: 22px; display: inline-flex;
  align-items: center; justify-content: center; }
.onb-conn-mark svg { width: 20px; height: 20px; }
.onb-agent-mark { color: var(--brand-ink); font-size: 16px; }

/* Not available yet: honestly dimmed, visibly labelled, nothing clickable. */
.onb-soon { opacity: .45; filter: saturate(.4); pointer-events: none; user-select: none; }
.onb-soon-mark { border-radius: 50%; background: var(--ui-sunk); }
.onb-soon-btn { cursor: default; }

.onb-fold { margin: 4px 0 0; }
.onb-fold summary { cursor: pointer; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted);
  padding: 8px 2px; }
.onb-fold[open] summary { color: var(--ui-ink-body); margin-bottom: 4px; }
/* A control in a row is a FIXED-width trailing element, never a flex-growing one: a full-width
   text field starved the label's column and wrapped the title one word per line. `.onb-ctl`
   caps it and stops it shrinking, so `.onb-row-text` keeps flex:1 and its full paragraph. */
.onb-row .onb-ctl { flex: none; width: 200px; }
.onb-row .onb-ctl-wide { width: 260px; }
@media (max-width: 620px) {
  /* On a narrow card the row stacks: the paragraph above, the control full-width below it,
     rather than two columns fighting over ~300px. */
  .onb-row { flex-wrap: wrap; }
  .onb-row .onb-ctl, .onb-row .onb-ctl-wide { width: 100%; }
}

.onb-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
/* Keep repository names, option copy and controls on the same inset and column grid. These
   rules live in the shared sheet because onboarding swaps only .main between steps. */
.onb-repo-form { margin-top: 24px; }
.onb-repo-features { display: grid; gap: 16px; }
.onb-repo-feature { border: 1px solid var(--ui-border); background: var(--ui-surface); }
.onb-repo-feature h2 { margin: 0; padding: 16px 20px; font-size: 15px; line-height: 1.4; }
.onb-repo-feature .onb-row { display: grid; grid-template-columns: minmax(0, 1fr) 20px;
  gap: 20px; min-height: 68px; padding: 13px 20px; border-top: 1px solid var(--ui-border); }
.onb-repo-feature .onb-row input { justify-self: center; margin: 0; }
/* Bug scans during setup: on, and not a switch. */
.onb-repo-feature .onb-row-locked input { accent-color: var(--brand-ink); cursor: not-allowed; }
.onb-repo-form .onb-actions { margin-top: 24px; }
@media (max-width: 560px) {
  .onb-repo-feature h2, .onb-repo-feature .onb-row { padding-left: 16px; padding-right: 16px; }
}
/* Setup's repository table (pages.ts onbRepositoryFeaturesPage): one line per repository, the
   map's own facts under its name as the evidence it is known, and one column per choice. A grid
   of divs, not a <table>, so the phone layout can fold each column into a labelled cell. */
.onb-pick { border: 1px solid var(--ui-border); background: var(--ui-surface); }
.onb-pick-head, .onb-pick-row { display: grid; align-items: center; column-gap: 16px; padding: 0 20px; }
.onb-pick-1 .onb-pick-head, .onb-pick-1 .onb-pick-row { grid-template-columns: minmax(0, 1fr) 140px; }
.onb-pick-2 .onb-pick-head, .onb-pick-2 .onb-pick-row { grid-template-columns: minmax(0, 1fr) 140px 120px; }
.onb-pick-3 .onb-pick-head, .onb-pick-3 .onb-pick-row { grid-template-columns: minmax(0, 1fr) 120px 140px 120px; }
.onb-pick-head { min-height: 40px; border-bottom: 1px solid var(--ui-border);
  font-family: var(--bkz-font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ui-ink-muted); }
.onb-pick-row { min-height: 68px; padding-top: 14px; padding-bottom: 14px; }
.onb-pick-row + .onb-pick-row { border-top: 1px solid var(--ui-border); }
.onb-pick-repo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.onb-pick-repo code { font-family: var(--bkz-font-mono); font-size: 14px; color: var(--ui-ink-strong);
  background: none; padding: 0; overflow-wrap: anywhere; }
.onb-pick-facts { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); line-height: 1.4; }
.onb-pick-building::before { content: '\25CF  '; color: var(--brand-ink); }
.onb-pick-credits { color: var(--bkz-warn-ink); }
.onb-pick-credits::before { content: '\25CF  '; color: var(--bkz-warn-ink); }
.onb-pick-cell { display: flex; align-items: center; min-width: 0; }
.onb-pick-locked, .onb-pick-switch { display: inline-flex; align-items: center; gap: 8px; }
.onb-pick-switch { cursor: pointer; }
/* Bug scans during setup: on, and not a switch. A lock and the word at every width, in the brand
   ink so it reads as included rather than unavailable. The checked, disabled box beside them is
   for assistive technology only and is not drawn. */
.onb-pick-locked { position: relative; cursor: default; color: var(--brand-ink); }
.onb-pick-locked input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.onb-pick-lock { flex: none; display: block; }
.onb-pick-note { font-family: var(--bkz-font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-ink); }
/* The dead-code switch says On or Off beside itself, following the box as it changes. */
.onb-pick-state { font-family: var(--bkz-font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ui-ink-muted); min-width: 3ch; }
.onb-pick-on { display: none; color: var(--brand-ink); }
.onb-pick-switch:has(input:checked) .onb-pick-on { display: inline; }
.onb-pick-switch:has(input:checked) .onb-pick-off { display: none; }
.onb-pick-foot { margin: 12px 0 0; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); line-height: 1.55; }
@media (max-width: 560px) {
  /* On a phone the columns fold under the name: each cell says which choice it is. */
  .onb-pick-head { display: none; }
  /* One choice per line: side by side, "Bug scans" wrapped and the lock's word ran past its box. */
  .onb-pick-1 .onb-pick-row, .onb-pick-2 .onb-pick-row, .onb-pick-3 .onb-pick-row {
    grid-template-columns: minmax(0, 1fr); row-gap: 8px; padding: 16px; }
  .onb-pick-repo { grid-column: 1 / -1; }
  .onb-pick-cell { justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 12px;
    border: 1px solid var(--ui-border); }
  .onb-pick-cell::before { content: attr(data-col); font-size: var(--bkz-text-sm); color: var(--ui-ink-body); white-space: nowrap; }
}
.onb-warn { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); line-height: 1.55;
  border-left: 2px solid var(--ui-border-hover); padding-left: 12px; margin: 14px 0 0; }
.onb-btw { font-family: var(--bkz-font-mono); font-size: var(--bkz-text-sm);
  color: var(--brand-ink); margin: 0 0 4px; }

/* The three plan cards; the recommended one carries the flag and the primary button. */
.onb-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
@media (max-width: 720px) { .onb-plans { grid-template-columns: 1fr; } }
.onb-plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px;
  border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-lg); background: var(--ui-surface); }
.onb-plan-rec { border-color: var(--brand-ink); background: var(--ui-tint-5); }
.onb-plan-flag { position: absolute; top: -9px; left: 14px; padding: 1px 8px;
  font: 600 10px/1.6 var(--bkz-font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--bkz-bg); background: var(--brand-ink); border-radius: 999px; }
.onb-plan-name { font-weight: 700; color: var(--ui-ink-strong); }
.onb-plan-price { font-size: var(--bkz-text-xl); font-weight: 700; color: var(--ui-ink-strong); }
.onb-plan-sub { flex: 1; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); line-height: 1.5; }

/* ── The investigation page: six stages on one line, the ladder folded ── */
.nowrap { white-space: nowrap; }
.inv-conf { white-space: nowrap; }
.inv-conf[data-tip]::after { max-width: 420px; }
.inv-track { display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 100%; padding: 28px 16px 32px; box-sizing: border-box; }
.inv-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 8px 0; font-size: var(--bkz-text-sm); color: var(--ui-ink-faint); }
.inv-strip > li { display: flex; align-items: center; }
.inv-strip > li + li::before { content: ''; display: inline-block; width: 22px; height: 1px; margin: 0 6px; background: var(--ui-border); }
.inv-strip-s { display: inline-flex; align-items: center; gap: 8px; }
.inv-strip-m {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; flex: 0 0 22px; box-sizing: border-box;
  border-radius: 50%; border: 1px solid var(--ui-border); color: var(--ui-ink-faint);
}
.inv-strip-m svg { display: block; width: 12px; height: 12px; }
.inv-strip-done { color: var(--bkz-ink); }
.inv-strip-done .inv-strip-m { color: var(--bkz-success-ink); border-color: var(--bkz-success-border); background: var(--bkz-success-tint); }
.inv-strip-running { color: var(--bkz-ink-strong); }
.inv-strip-running .inv-strip-m { color: var(--bkz-ink-strong); border-color: var(--ui-border-hover); animation: dot-breathe 1.4s ease-in-out infinite; }
.inv-strip-failed .inv-strip-m { color: var(--bkz-danger-ink); border-color: var(--bkz-danger-border); background: var(--bkz-danger-tint); }
.inv-strip-skipped .inv-strip-m { color: var(--ui-ink-faint); }
.inv-progress { margin: 0; width: 100%; }
.inv-progress > summary { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 0.55em;
  list-style: none; cursor: var(--cursor-mark); font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.inv-progress-clock { color: var(--ui-ink-faint); }
.inv-progress > summary::-webkit-details-marker { display: none; }
.inv-progress > summary::before { content: '▸ '; color: var(--ui-ink-faint); }
.inv-progress[open] > summary::before { content: '▾ '; }
.inv-progress > .inv-phases { margin-top: 10px; }
.inv-more { margin-top: 8px; }
.inv-more > summary { cursor: var(--cursor-mark); font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); list-style: none; }
.inv-more > summary::-webkit-details-marker { display: none; }
.inv-more > summary::before { content: '▸ '; color: var(--ui-ink-faint); }
.inv-more[open] > summary::before { content: '▾ '; }
.inv-more[open] > summary { margin-bottom: 8px; }

.inv-fix { display: inline-flex; align-items: center; gap: 10px; }
.onb-checkout { min-height: 420px; margin: 18px 0; }

/* Breken's morning, per workspace. Four faces, and the colour carries the one an
   operator is looking for: a workspace that should have shipped and did not (`due`).
   `clean` is deliberately quiet — a repository with nothing left to delete is the goal,
   not a warning — and `later` is quieter still, because before six the whole fleet is
   waiting and a page of amber would train somebody to ignore the column. */
.ops-daily { display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  max-width: 160px; padding-bottom: 3px; font-size: var(--bkz-text-xs); }
/* Plain words, not a code: the head says what happened, the sub-line says when or why. The
   colour of the head is still the face (sent / clean / held / due / later). */
.ops-daily-h { font-weight: 600; letter-spacing: .01em; }
.ops-daily-s { color: var(--ui-ink-muted); font-weight: 400; }
a.ops-daily { text-decoration: none; }
a.ops-daily[data-tip] { border-bottom: 1px dotted currentColor; cursor: pointer; }
.ops-daily[data-tip] { z-index: 2; }
/* Dead Code sits near the right edge of a clipped table; a centred 260px tip would
   shear off. Anchor right so the exact time reads over the columns to its left. */
.ops-daily[data-tip].dtb::after { left: auto; right: 0; transform: translateY(-3px); }
.ops-daily[data-tip].dtb::before { left: auto; right: 12px; }
.ops-daily[data-tip].dtb:hover::after { transform: translateY(0); }
.ops-daily-sent { color: var(--bkz-ok, #4ade80); }
.ops-daily-clean { color: var(--ui-ink-muted); }
.ops-daily-due { color: var(--bkz-warn, #f5a524); }
/* Held is louder than due on purpose: due can be a quiet morning, held cannot. */
.ops-daily-held { color: var(--bkz-danger, #f87171); }
.ops-daily-later { color: var(--ui-ink-muted); }
.ops-daily-running { color: var(--brand-ink, #4da3ff); }
/* Nothing will sweep until a person changes something (off, paused, not indexed). */
.ops-daily-off { color: var(--ui-ink-muted); }
.ops-bill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.ops-bill .tag { padding: 1px 6px; line-height: 1.3; letter-spacing: 0.06em; }
.ops-bill-st { font-size: var(--bkz-text-xs); letter-spacing: 0.04em; text-transform: uppercase; }
.ops-bill-seats { font-size: var(--bkz-text-xs); white-space: nowrap; }
.ops-back { margin: 0 0 8px; font-size: var(--bkz-text-sm); }
.ops-back a { color: var(--ui-ink-muted); }
.cx-ws { margin: 14px 0 0; }
.cx-ws-name { margin: 0 0 8px; font-size: var(--bkz-text-sm); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ui-ink-muted); }
.cx-ws-aside { margin: 0 0 10px; font-size: var(--bkz-text-sm); }
.cx-ws-box { margin: 0 0 8px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md);
  overflow: hidden; background: var(--ui-surface); }
.cx-ws-box > summary { cursor: pointer; padding: 10px 14px; font-weight: 600;
  font-size: var(--bkz-text-sm); list-style-position: outside; }
.cx-ws-box[open] > summary { border-bottom: 1px solid var(--bkz-border-hairline); }
.cx-ws-box .cx-funnel { border: 0; border-radius: 0; max-width: 28rem; }
.cx-ws-box .cx-funnel-row { grid-template-columns: minmax(8rem, 14rem) 5.5rem; }
.cx-funnel { overflow: auto; }
.cx-funnel-row { display: grid; grid-template-columns: minmax(10rem, 0.9fr) 5.5rem minmax(12rem, 1.4fr);
  gap: 12px 20px; align-items: baseline; padding: 10px 16px;
  border-top: 1px solid var(--bkz-border-hairline); font-size: var(--bkz-text-sm); }
.cx-funnel-row:first-child { border-top: 0; }
.cx-funnel-head { font-size: var(--bkz-text-xs); font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ui-ink-muted); }
.cx-funnel-metric { font-weight: 600; }
.cx-funnel-n { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.cx-funnel-learn { color: var(--ui-ink-muted); }
.cx-scans, #admin-scan-engines { margin: 14px 0 24px; letter-spacing: normal; word-spacing: normal; }
#admin-scan-engines .cx-scan { margin: 10px 0 0; padding: 14px 16px; }
.cx-scan-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cx-scan-name { margin: 0; font-size: var(--bkz-text-md); font-weight: 600; letter-spacing: normal; }
.cx-scan-meta { margin: 6px 0 12px; color: var(--ui-ink-muted); font-size: var(--bkz-text-sm);
  font-variant-numeric: tabular-nums; }
.cx-scan-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--bkz-border-hairline); }
.cx-scan-stage { padding: 10px 12px 2px 0; border-right: 1px solid var(--bkz-border-hairline); min-width: 0; }
.cx-scan-stage:last-child { border-right: 0; padding-right: 0; }
.cx-scan-k { display: block; font-size: var(--bkz-text-xs); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ui-ink-muted); }
.cx-scan-v { display: block; margin-top: 2px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cx-scan-v.is-live { color: var(--brand-ink, #4da3ff); }
.cx-scan-v.is-ok { color: var(--bkz-success-ink); }
.cx-scan-v.is-warn { color: var(--bkz-warn-ink); }
.cx-scan-v.is-bad { color: var(--bkz-danger-ink); }
@media (max-width: 720px) {
  .cx-scan-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-scan-stage:nth-child(2) { border-right: 0; }
  .cx-scan-stage:nth-child(n+3) { border-top: 1px solid var(--bkz-border-hairline); }
}
.cx-repo { --cx-col-name: minmax(14rem, 1.2fr); --cx-col-state: 10.5rem;
  --cx-col-when: minmax(11rem, 1fr);
  display: grid; grid-template-columns: var(--cx-col-name) var(--cx-col-state) var(--cx-col-when);
  column-gap: 16px; row-gap: 10px; letter-spacing: normal; word-spacing: normal; }
.cx-repo .tag { max-width: 100%; white-space: nowrap; letter-spacing: 0.06em; }
.cx-repo > .ops-note, .cx-repo > [role="status"], .cx-flags { grid-column: 1 / -1; margin: 0; }
.cx-repo-h, .cx-jobs, .cx-job { display: grid; grid-template-columns: subgrid;
  grid-column: 1 / -1; column-gap: inherit; }
.cx-repo-h { align-items: center; padding-bottom: 2px; }
.cx-repo-h .ops-ship-title { margin: 0; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.cx-repo-h .tag { justify-self: start; }
.cx-flags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.cx-jobs { margin-top: 2px; padding-top: 2px; border-top: 1px solid var(--bkz-border-hairline);
  row-gap: 0; }
.cx-job { padding: 10px 0; border-bottom: 1px solid var(--bkz-border-hairline);
  row-gap: 6px; align-items: start; }
.cx-job:last-child { border-bottom: 0; }
.cx-job-name { font-weight: 600; min-width: 0; padding-top: 3px; }
.cx-job-state { min-width: 0; }
.cx-job-when { font-variant-numeric: tabular-nums; white-space: nowrap; justify-self: start;
  text-align: left; padding-top: 3px; }
.cx-job-note { grid-column: 2 / -1; margin: 0; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.cx-job-note summary { cursor: pointer; }
@supports not (grid-template-columns: subgrid) {
  .cx-repo { display: block; }
  .cx-repo-h, .cx-job { display: grid;
    grid-template-columns: minmax(14rem, 1.2fr) 10.5rem minmax(11rem, 1fr); }
  .cx-jobs { display: block; margin-top: 12px; }
  .cx-repo > .ops-note { margin-top: 10px; }
}
@media (max-width: 720px) {
  .cx-repo, .cx-repo-h, .cx-jobs, .cx-job { grid-template-columns: minmax(0, 1fr); }
  .cx-repo-h .tag, .cx-job-when { justify-self: start; text-align: left; }
  .cx-job-note { grid-column: 1; }
  .cx-job-when { white-space: normal; }
}
.ops-ship { margin: 20px 0 0; padding: 16px 18px; border: 1px solid var(--ui-border);
  border-radius: var(--bkz-radius-md); background: var(--ui-surface); }
.ops-ship.is-merged { border-color: color-mix(in srgb, #a371f7 55%, var(--ui-border));
  background: color-mix(in srgb, #a371f7 10%, var(--ui-surface)); }
.ops-ship-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ops-ship-h .revrow-lifecycle { flex: none; margin-top: 2px; }
.ops-ship-title { margin: 0 0 6px; font-size: var(--bkz-text-lg); font-weight: 600; }
.ops-ship-meta { margin: 0 0 12px; color: var(--ui-ink-muted); font-size: var(--bkz-text-sm); }
.ops-ship-files { margin-top: 8px; }
.ops-ship-files summary { cursor: pointer; color: var(--ui-ink-muted); font-size: var(--bkz-text-sm); }
.ops-ship-paths { margin: 8px 0 0; padding: 0; list-style: none; }
.ops-ship-paths li { padding: 2px 0; font-size: var(--bkz-text-sm); color: var(--bkz-ink);
  word-break: break-all; }

/* The walker's sentence under a scan card: what it did and why, never a bare dash. */
.cx-scan-walk { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--bkz-border-hairline);
  font-size: var(--bkz-text-sm); display: flex; flex-direction: column; gap: 2px; }
.cx-scan-walk-h { font-weight: 600; }
.cx-scan-walk-why { color: var(--ui-ink-muted); }
.cx-scan-walk.is-ran .cx-scan-walk-h { color: var(--bkz-success-ink); }
.cx-scan-walk.is-failed .cx-scan-walk-h { color: var(--bkz-danger-ink); }
.cx-scan-walk.is-not-attempted .cx-scan-walk-h { color: var(--bkz-warn-ink); }
.cx-scan-walk-log { margin: 4px 0 0; font-size: 12px; color: var(--ui-ink-muted); }
.cx-scan-walk-log summary { cursor: pointer; }
.cx-scan-walk-log pre { margin: 6px 0 0; max-height: 16rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11.5px; }

/* The Factory login is the door to the workspace page. */
a.ops-ws-link { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
a.ops-ws-link:hover { border-bottom-style: solid; }

/* /admin/workspaces/:id — one workspace, every fact, in the metrics-table shape. */
.aw-page { padding-bottom: 64px; }
.aw-doors { margin: 6px 0 0; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.aw-nav { margin: 12px 0 4px; flex-wrap: wrap; position: sticky; top: 0; z-index: 3; background: var(--ui-bg, var(--ui-sunk)); padding: 6px 0; }
.aw-strip { margin: 10px 0 4px; }
.aw-stc { font-size: var(--bkz-text-2xl, 22px); }
.aw-sec { margin: 28px 0 0; scroll-margin-top: 56px; }
.aw-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 10px; font-size: var(--bkz-text-lg, 18px); font-weight: 600; }
.aw-aside { font-size: var(--bkz-text-sm); font-weight: 400; color: var(--ui-ink-muted); }
.aw-h4 { margin: 18px 0 8px; font-size: var(--bkz-text-xs); font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ui-ink-muted); }
.aw-metrics .cx-funnel-row { grid-template-columns: minmax(11rem, 0.7fr) minmax(16rem, 1.6fr) minmax(12rem, 1fr); }
.aw-metrics .cx-funnel-n { text-align: left; font-weight: 500; font-variant-numeric: tabular-nums; }
.aw-v.is-ok { color: var(--bkz-success-ink); }
.aw-v.is-warn { color: var(--bkz-warn-ink); }
.aw-v.is-bad { color: var(--bkz-danger-ink); }
.aw-sub { display: block; margin-top: 2px; font-size: var(--bkz-text-xs); font-weight: 400; color: var(--ui-ink-muted); }
.aw-sub.is-bad { color: var(--bkz-danger-ink); }
.aw-tbl-wrap { overflow: auto; margin-top: 10px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); }
.aw-when { white-space: nowrap; }
.aw-tbl { width: 100%; border-collapse: collapse; font-size: var(--bkz-text-sm); }
.aw-tbl th { position: sticky; top: 0; background: var(--ui-sunk); text-align: left; padding: 8px 12px;
  font-size: var(--bkz-text-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ui-ink-muted); white-space: nowrap; }
.aw-tbl td { padding: 9px 12px; border-top: 1px solid var(--bkz-border-hairline); vertical-align: top; }
.aw-tbl tr:hover td { background: var(--ui-row-hover); }
.aw-title { color: var(--ui-ink-body); }
.aw-ci { font-size: var(--bkz-text-sm); }
.aw-ci.is-ok { color: var(--bkz-success-ink); }
.aw-ci.is-warn { color: var(--bkz-warn-ink); }
.aw-ci.is-bad { color: var(--bkz-danger-ink); }
.aw-ci.is-none { color: var(--ui-ink-muted); }
.aw-sched.is-ok { color: var(--bkz-success-ink); }
.aw-sched.is-warn { color: var(--bkz-warn-ink); }
.aw-sched.is-bad { color: var(--bkz-danger-ink); }
.aw-walk { display: flex; flex-direction: column; gap: 2px; }
.aw-walk-h { font-weight: 600; }
.aw-walk-why { font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); max-width: 60ch; }
.aw-walk.is-ok .aw-walk-h { color: var(--bkz-success-ink); }
.aw-walk.is-bad .aw-walk-h { color: var(--bkz-danger-ink); }
.aw-walk.is-warn .aw-walk-h { color: var(--bkz-warn-ink); }
.aw-walk.is-live .aw-walk-h { color: var(--brand-ink, #4da3ff); }
.aw-repo { margin: 14px 0 0; padding: 14px 16px 16px; }
.aw-repo-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.aw-repo-h h3 { margin: 0; font-size: var(--bkz-text-md); font-weight: 600; }
.aw-tl { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); }
.aw-tl-row { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 16px; padding: 8px 14px;
  border-top: 1px solid var(--bkz-border-hairline); font-size: var(--bkz-text-sm); }
.aw-tl-row:first-child { border-top: 0; }
.aw-tl-at { font-family: var(--bkz-font-mono); font-size: var(--bkz-text-xs); color: var(--ui-ink-body); white-space: nowrap; }
.aw-tl-row.is-ok { box-shadow: inset 3px 0 0 var(--bkz-success-ink); }
.aw-tl-row.is-warn { box-shadow: inset 3px 0 0 var(--bkz-warn-ink); }
.aw-tl-row.is-bad { box-shadow: inset 3px 0 0 var(--bkz-danger-ink); }
@media (max-width: 720px) {
  .aw-metrics .cx-funnel-row { grid-template-columns: 1fr; gap: 2px; }
  .aw-tl-row { grid-template-columns: 1fr; gap: 2px; }
  /* Admin strip labels are nowrap (.page-admin .stc-l); two columns at phone width ran
     "PRS REVIEWED 30D" into its neighbour and clipped "DEAD CODE TODAY". Let them wrap. */
  .aw-strip .stc { padding: 12px 14px; }
  .aw-strip .stc-l { white-space: normal; }
}

.ops-found-sec { margin-top: 28px; }
.ops-found-h { margin: 0 0 10px; font-size: var(--bkz-text-lg); font-weight: 600; }
details.ops-found-sec > summary.ops-found-h { cursor: pointer; list-style-position: outside; }
details.ops-found-sec[open] > summary.ops-found-h { margin-bottom: 10px; }
.ops-found { border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); overflow: auto; }
.ops-found-row { display: grid; grid-template-columns:
    88px minmax(180px, 1.6fr) minmax(140px, 1fr) minmax(140px, 1fr) 88px 88px;
  gap: 10px; align-items: start; min-width: 860px; padding: 8px 14px;
  border-top: 1px solid var(--bkz-border-hairline); font-size: var(--bkz-text-sm); }
.ops-found-bugs .ops-found-row, .ops-found.ops-found-bugs .ops-found-row {
  /* Shared tracks so Origin / proof, Triage, and Fix line up across rows. */
  grid-template-columns: 92px 118px minmax(200px, 1.6fr) minmax(140px, 1fr)
    minmax(168px, 1fr) minmax(228px, 0.9fr) 104px minmax(132px, 0.7fr);
  gap: 12px 18px; min-width: 1260px; width: 100%; align-items: start; padding: 10px 16px; }
.ops-found-bugs.ops-found-head { letter-spacing: 0.06em; }
.ops-found-bugs .ops-found-row > .tag { white-space: nowrap; }
/* The fix cell: what happened, and under it the one thing an operator can do about it. */
.ops-found-bugs .ops-retry { display: block; margin-top: 2px; white-space: nowrap; }
.ops-found-bugs .tag { padding: 2px 7px; letter-spacing: 0.03em; line-height: 1.3; white-space: nowrap; }
.ops-proof { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.ops-proof-pills { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ops-proof .ops-sub { line-height: 1.35; }
.ops-proof .tag { width: max-content; max-width: 100%; overflow-wrap: normal; }
.ops-place { overflow-wrap: break-word; }
.ops-triage { white-space: nowrap; }
.ops-fix-cell { display: flex; align-items: center; gap: 7px; min-width: max-content; }
.ops-inline-form { margin: 0; }
.ops-found-row:first-child { border-top: 0; }
.ops-found-head { background: var(--ui-sunk); font-size: var(--bkz-text-xs); font-weight: 600;
  letter-spacing: var(--bkz-tracking-eyebrow-widest); text-transform: uppercase; color: var(--bkz-muted); }
.ops-found-scans .ops-found-row, .ops-found.ops-found-scans .ops-found-row {
  grid-template-columns: max-content minmax(160px, 1fr) max-content max-content max-content max-content;
  align-items: center; }
.ops-found-scans .ops-found-row > * { white-space: nowrap; }
.ops-task-list { border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); overflow: auto; }
.ops-task-row { display: grid; grid-template-columns: 180px minmax(220px, 1fr) 160px 145px 150px;
  gap: 12px; align-items: center; min-width: 940px; padding: 9px 12px;
  border-top: 1px solid var(--bkz-border-hairline); font-size: var(--bkz-text-sm); }
.ops-task-row:first-child { border-top: 0; }
.ops-task-row small { display: block; margin-top: 2px; }
.ops-repo-diagnostics { margin-top: 14px; }
.ops-repo-diagnostics > summary { cursor: pointer; color: var(--ui-ink-muted); }
.ops-repo-diagnostics[open] > article { margin-top: 10px; }
.ops-found-repos .ops-found-row, .ops-found.ops-found-repos .ops-found-row {
  grid-template-columns: minmax(200px, 1.4fr) minmax(120px, 0.8fr) 120px 72px; }
.ops-found-failed .ops-found-row, .ops-found.ops-found-failed .ops-found-row {
  grid-template-columns: minmax(200px, 1.3fr) 148px minmax(180px, 1.4fr) 72px; }

.ops-set-card { margin: 0 0 16px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md);
  overflow: hidden; background: var(--ui-surface); }
.ops-set-h { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 14px;
  background: var(--ui-sunk); border-bottom: 1px solid var(--bkz-border-hairline); }
.ops-set-h h3 { margin: 0; flex: 1; font-size: var(--bkz-text-md); font-weight: 600; }
.ops-set-h .muted { margin-right: auto; }
.ops-set-group { padding: 10px 14px 4px; font-size: var(--bkz-text-xs); font-weight: 600;
  letter-spacing: var(--bkz-tracking-eyebrow-widest); text-transform: uppercase; color: var(--bkz-muted); }
.ops-set-row { display: flex; align-items: center; gap: 16px; padding: 8px 14px;
  border-top: 1px solid var(--bkz-border-hairline); font-size: var(--bkz-text-sm); }
.ops-set-group + .ops-set-row { border-top: 0; }
.ops-set-copy { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1;
  white-space: nowrap; }
.ops-set-t { font-weight: 600; color: var(--bkz-ink); flex: none; }
.ops-set-s { color: var(--ui-ink-muted); font-size: var(--bkz-text-xs); line-height: 1.3;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ops-set-r { flex: none; margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ops-set-pick { width: auto; min-width: 11rem; }
.ops-set-authors { width: 16rem; }
.ops-set-repos { padding: 4px 14px 12px; }
.ops-set-repo { display: flex; align-items: center; gap: 12px; padding: 6px 0;
  border-top: 1px solid var(--bkz-border-hairline); font-size: var(--bkz-text-sm);
  white-space: nowrap; }
.ops-set-repo:first-child { border-top: 0; }
.ops-set-repo .mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ops-set-check { display: inline-flex; align-items: center; gap: 6px; color: var(--ui-ink-muted);
  white-space: nowrap; }

/* "No urgent tickets" is an ANSWER, not an empty state — so it carries the weight of a
   row rather than the grey of a placeholder. A workspace whose whole queue is P3 was
   rendering forty full-weight rows to say the same thing implicitly. The rule under it is
   the same hairline the lists use, so the fold below reads as a second thing rather than
   as more of this one. */
.tk-none { display: flex; align-items: center; gap: 10px; margin: 0 0 18px;
  padding: 0 0 16px; border-bottom: 1px solid var(--bkz-border-hairline);
  color: var(--bkz-ink); font-size: var(--bkz-text-base); }
.tk-none-mark { width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--bkz-ok, var(--ui-ink-faint)); }

/* The remainder, quiet beside the action. "Show 5 more" is the verb; "of 35" is the
   scale, and a reader needs both — one to press, one to decide whether to. */
.gd-more-of { margin-left: 7px; color: var(--ui-ink-faint); font-variant-numeric: tabular-nums; }
/* An age, on every row of every list. Muted: it is orientation, never the point. */
.gd-when { color: var(--ui-ink-faint); font-size: var(--bkz-text-xs); white-space: nowrap;
  font-variant-numeric: tabular-nums; }

/* Tickets · intake line and the refused fold: one quiet sentence about what intake did,
   and a list where every refused ticket carries the reason it was refused. */
.intake-line { margin: 4px 0 14px; }
.intake-line .warn { color: var(--ui-warn, #d9a03c); }
.intake-refused { list-style: none; margin: 0; padding: 0; }
.intake-refused li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--bkz-border-hairline); }
.intake-refused li:first-child { border-top: 0; }
.intake-refused .intake-title { color: var(--ui-ink-body); }
.intake-refused .muted { font-size: var(--bkz-text-sm); }
.intake-imported { list-style: none; margin: 0; padding: 0; }
.intake-imported > li { padding: 12px 0; border-top: 1px solid var(--bkz-border-hairline); }
.intake-imported > li:first-child { border-top: 0; }
.intake-imported p { margin: 0; overflow-wrap: anywhere; }
.intake-imported p + p { margin-top: 5px; }
.intake-imported .muted { font-size: var(--bkz-text-sm); line-height: 1.5; }

/* Knowledge base: filters, groups, the tag chips on every row, the tag menu. */
.kb-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.kb-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kb-filter { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ui-border); background: var(--ui-sunk); padding: 3px 10px; border-radius: var(--bkz-radius-full); font-size: var(--bkz-text-xs); color: var(--ui-ink); text-decoration: none; }
.kb-filter:hover { background: var(--ui-row-hover); text-decoration: none; }
.kb-filter.is-on { background: var(--brand-soft); border-color: var(--brand-ink); color: var(--brand-ink); }
.kb-filter-n { color: var(--ui-ink-muted); font-variant-numeric: tabular-nums; }
.kb-filter.is-on .kb-filter-n { color: inherit; }
.kb-search { display: flex; flex: 1 1 300px; gap: 6px; min-width: 0; max-width: 440px; margin: 0; }
.kb-search input[type="search"] { flex: 1; min-width: 0; }
.kb-panel { padding: 0; }
.kb-group + .kb-group { border-top: 1px solid var(--bkz-border-hairline); }
.kb-group-h, .kb-fold-h { margin: 0; padding: 14px 24px 8px; font: 500 10.5px/1.6 var(--bkz-font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ui-ink-muted); }
.kb-fold { border-top: 1px solid var(--bkz-border-hairline); }
.kb-fold-h { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.kb-fold-h::-webkit-details-marker { display: none; }
.kb-fold-h::before { content: '\25B8'; margin-right: 6px; }
.kb-fold[open] .kb-fold-h::before { content: '\25BE'; }
.kb-fold-sub { text-transform: none; letter-spacing: 0; font: 400 var(--bkz-text-xs)/1.5 var(--bkz-font-sans, inherit); }
.kb-row.botrow { align-items: start; gap: 16px 28px; padding: 22px 24px; }
.kb-row .botrow-title { gap: 8px; }
.kb-row .botrow-title > strong { line-height: 1.4; padding-right: 8px; }
.kb-row .kb-line { display: block; margin-top: 0; line-height: 1.5; }
.kb-row .botrow-title > .botrow-sub:last-of-type { margin-top: 2px; line-height: 1.45; }
.kb-row > .tag { margin-top: 2px; white-space: nowrap; }
.kb-line { display: block; }

/* The chips: a coloured dot and a word. Solid for kinds, a ring for bug types, a square for areas. */
.kb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0; }
.kb-tag { --kb-c: var(--ui-ink-muted); display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ui-border); background: var(--ui-sunk); padding: 3px 10px 3px 8px; border-radius: var(--bkz-radius-full); font: 500 11.5px/1.6 var(--bkz-font-sans, inherit); text-transform: none; letter-spacing: 0; color: var(--ui-ink); cursor: pointer; text-decoration: none; }
.kb-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--kb-c); flex: none; }
[data-kb-ns="area"] .kb-dot { border-radius: 2px; }
[data-kb-ns="bug"] .kb-dot { background: transparent; box-shadow: inset 0 0 0 2.5px var(--kb-c); }
.kb-tags-note { font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); }
.kb-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; margin-bottom: 14px; }
.kb-tags .kb-chips { margin: 0; }
.kb-tags-k { font: 500 10.5px/1.6 var(--bkz-font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ui-ink-muted); }

/* One hue per value. */
[data-kb-ns="kind"][data-kb-value="fix"] { --kb-c: #4ade80; }
[data-kb-ns="kind"][data-kb-value="trap"] { --kb-c: #fb923c; }
[data-kb-ns="kind"][data-kb-value="removal"] { --kb-c: #9ca3af; }
[data-kb-ns="kind"][data-kb-value="decision"] { --kb-c: #a78bfa; }
[data-kb-ns="kind"][data-kb-value="runbook"] { --kb-c: #60a5fa; }
[data-kb-ns="kind"][data-kb-value="answer"] { --kb-c: #2dd4bf; }
[data-kb-ns="kind"][data-kb-value="gotcha"] { --kb-c: #facc15; }
[data-kb-ns="bug"][data-kb-value="race"] { --kb-c: #f87171; }
[data-kb-ns="bug"][data-kb-value="auth"] { --kb-c: #c084fc; }
[data-kb-ns="bug"][data-kb-value="swallowed-error"] { --kb-c: #fb923c; }
[data-kb-ns="bug"][data-kb-value="leak"] { --kb-c: #f59e0b; }
[data-kb-ns="bug"][data-kb-value="off-by-one"] { --kb-c: #fbbf24; }
[data-kb-ns="bug"][data-kb-value="duplicate-side-effect"] { --kb-c: #f472b6; }
[data-kb-ns="bug"][data-kb-value="dead-control"] { --kb-c: #94a3b8; }
[data-kb-ns="bug"][data-kb-value="stuck-ui"] { --kb-c: #38bdf8; }
[data-kb-ns="bug"][data-kb-value="false-success"] { --kb-c: #34d399; }
[data-kb-ns="bug"][data-kb-value="data-loss"] { --kb-c: #ef4444; }
[data-kb-ns="bug"][data-kb-value="no-confirm"] { --kb-c: #e879f9; }
[data-kb-ns="bug"][data-kb-value="double-submit"] { --kb-c: #fb7185; }
[data-kb-ns="bug"][data-kb-value="config"] { --kb-c: #a3a3a3; }
[data-kb-ns="bug"][data-kb-value="perf"] { --kb-c: #22d3ee; }
[data-kb-ns="bug"][data-kb-value="dependency"] { --kb-c: #818cf8; }
.kb-tag-l { white-space: nowrap; }
[data-kb-ns="kind"][data-kb-value="lead"] { --kb-c: #7dd3fc; }
[data-kb-ns="bug"][data-kb-value="crash"] { --kb-c: #dc2626; }

/* The Outcomes lanes wear the rail's icons beside their names: lane and door are one thing. */
.stc-l { display: inline-flex; align-items: center; gap: 7px; }
.stc-ico { display: inline-flex; align-items: center; opacity: .75; }
.stc-ico svg { width: 14px; height: 14px; }


/* The one progress bar: title, track, phases, the queue line, the worker's last words, one action. */
.pb { display: block; padding: 12px 14px; border: 1px solid var(--ui-border); border-radius: 0; background: transparent; margin: 8px 0; }
.pb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.pb-title { font-weight: 600; color: var(--ui-ink-strong); display: inline-flex; align-items: center; gap: 8px; }
.pb-mark { display: inline-block; min-width: 1em; text-align: center; }
.pb-mark:empty { display: none; }
.pb-mark-done { color: var(--bkz-ok-ink, #4ade80); }
/*
 * A slow step is not a broken one.
 *
 * "Stalled" here means only that the worker has not spoken for two minutes, which a long
 * sandbox rebuild does routinely — and the card answered with a red cross, a red bar and a red
 * heading over a job that was thirty-nine minutes into doing exactly what it should (founder,
 * 2026-09-15: "absolutely fucking hate the red ui"). Red is kept for FAILED, which is a
 * verdict. Quiet for stalled, which is a silence.
 */
.pb-mark-failed { color: var(--bkz-danger-ink); }
.pb-mark-stalled { color: var(--bkz-warn-ink, #f5a524); }
.pb-of { font: 500 11px/1.4 var(--bkz-font-mono); color: var(--ui-ink-muted); white-space: nowrap; }
.pb-track { position: relative; height: 6px; border-radius: 0; background: color-mix(in srgb, var(--brand-ink, #4da3ff) 14%, transparent); overflow: hidden; }
.pb-fill { height: 100%; border-radius: 0; background: var(--brand-ink); transition: width .4s ease; }
.pb-indeterminate .pb-fill { animation: dot-march 1.4s ease-in-out infinite; }
.pb-stalled .pb-fill { background: color-mix(in srgb, var(--ui-ink-strong) 35%, transparent); animation: none; }
[data-status="done"] .pb-fill { background: var(--bkz-ok-ink, #4ade80); }
@keyframes dot-march { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
.pb-phases { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.pb-phase { display: grid; grid-template-columns: 16px 110px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.pb-phase-now { color: var(--ui-ink-strong); }
.pb-phase-bad { color: var(--bkz-warn-ink, #f5a524); }
.pb-failed .pb-phase-bad { color: var(--bkz-danger-ink); }
.pb-phase-mark { text-align: center; }
.pb-phase-name { font: 500 11px/1.6 var(--bkz-font-mono); text-transform: lowercase; letter-spacing: .02em; }
.pb-phase-what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-line { margin: 8px 0 0; font-size: var(--bkz-text-sm); }
.pb-reason { color: var(--bkz-danger-ink); }
.pb-actions { display: flex; gap: 8px; margin-top: 10px; }
.pb-action-form { display: inline-flex; margin: 0; }
.pb-poll { margin: 6px 0 0; font-size: var(--bkz-text-xs); }
.pending-why { margin: 6px 0 0; font-size: var(--bkz-text-sm); color: var(--bkz-danger-ink); }
.pb-inline { margin: 0; padding: 10px 12px; }
/* Fix progress is one quiet line, with no flashing panel or moving track. */
.pb.pb-fix,.pb.pb-solving { padding:0; margin:4px 0; border:0; background:transparent; animation:none; box-shadow:none; }
.pb-fix .pb-head { margin:0; }
.pb-fix .pb-title { color:var(--ui-ink-muted); font-size:12px; font-weight:500; }
.pb-fix .pb-track,.pb-fix .pb-phases,.pb-solving .pb-line,.pb-solving .pb-of { display:none; }
.pb-chip {
  display: flex; flex-direction: column; gap: 5px;
  width: min(220px, 42vw); margin: 0; padding: 6px 8px;
  border: 1px solid var(--ui-border);
  border-radius: 0; background: transparent;
}
.pb-chip .pb-head { margin: 0; }
.pb-chip .pb-title { font-weight: 500; font-size: 12px; line-height: 1.2; color: var(--ui-ink-strong); gap: 4px; }
.pb-chip .pb-track { height: 3px; }
.pb-chip .pb-phases, .pb-chip .pb-line, .pb-chip .pb-of, .pb-chip .pb-actions, .pb-chip .pb-poll { display: none; }
.pb-chip[data-status="done"], .pb-chip[hidden] { display: none; }
/* A bar in a tag's clothes: the Garden card's status slot, polling the ship job. */
.pb-tag { display: inline-block; padding: 2px 8px; border-radius: 0; font-size: var(--bkz-text-xs); vertical-align: middle; min-width: 8em; }
.pb-tag .pb-head { margin: 0; }
.pb-tag .pb-track, .pb-tag .pb-phases, .pb-tag .pb-of { display: none; }
/* The Now strip: one compact row per live job. Idle is just the word, small, on the
   right of the container — no box, no track. */
.pb-now { display: block; padding: 10px 14px; border: 1px solid var(--ui-border); border-radius: 0; background: transparent; margin: 0 0 12px; }
.pb-now[data-busy="no"] {
  display: flex; align-items: center; justify-content: flex-end;
  border: 0; background: transparent; padding: 0; margin: 0 0 8px; min-height: 1.2em;
}
.pb-now[data-busy="no"] .pb-track, .pb-now[data-busy="no"] .pb-now-bar { display: none; }
.pb-now[data-busy="no"] .pb-now-quiet { font-size: 11px; line-height: 1.2; color: var(--ui-ink-muted); }
.pb-now[data-busy="no"] .pb-now-q { font-weight: 500; }
.pb-now-head { margin: 0 0 6px; font: 600 10.5px/1.4 var(--bkz-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ui-ink-muted); }
.pb-now-row { display: grid; grid-template-columns: 16px minmax(120px, max-content) minmax(0, 1fr) 120px max-content max-content; gap: 4px 10px; align-items: center; padding: 4px 0; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.pb-now-row[data-status="running"] .pb-now-title, .pb-now-row[data-status="stalled"] .pb-now-title { color: var(--ui-ink-strong); }
.pb-now-mark { text-align: center; }
.pb-now-title { font-weight: 600; white-space: nowrap; }
.pb-now-what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-now-bar { position: relative; height: 4px; border-radius: 0; background: color-mix(in srgb, var(--brand-ink, #4da3ff) 14%, transparent); overflow: hidden; }
.pb-now-bar i { display: block; height: 100%; border-radius: 0; background: var(--brand-ink); transition: width .4s ease; }
.pb-now-bar.pb-indeterminate i { animation: dot-march 1.4s ease-in-out infinite; }
.pb-now-row[data-status="stalled"] .pb-now-bar i { background: color-mix(in srgb, var(--ui-ink-strong) 35%, transparent); animation: none; }
.pb-now-when { font: 500 11px/1.4 var(--bkz-font-mono); color: var(--ui-ink-muted); white-space: nowrap; min-width: 4.5em; text-align: right; }
.pb-now-act { font-size: var(--bkz-text-xs); color: var(--brand-ink); text-decoration: none; }
.pb-now-act:hover { text-decoration: underline; }
.pb-now-phases { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 11px/1.6 var(--bkz-font-mono); color: var(--ui-ink-muted); }
.pb-now-ph-now { color: var(--ui-ink-strong); }
.pb-now-ph-bad { color: var(--bkz-danger-ink); }
@media (max-width: 720px) { .pb-now-row { grid-template-columns: 16px minmax(0, 1fr) max-content; } .pb-now-what, .pb-now-bar { grid-column: 2 / -1; } }

/* The solved judge's facts under an "Already fixed?" lead: a short, quiet list. */
.fact-list { margin: 4px 0 0; padding-left: 16px; font-size: 12px; line-height: 1.5; }
.fact-list li { margin: 0; }

/* ---------- BrekenBench (/admin/evals/deadcode) ----------
   Two scorecards and a queue, on the same tokens as Fleet and the spend log. A scorecard is a
   three-column grid — label, Breken, Knip — because the whole point of the page is reading two
   numbers against each other on one line, and `.trow` is a two-column "name, detail" grid that
   stacks the comparison into a column. No table markup here for the same reason it is absent
   everywhere else: the design system styles none. */
.main-inner.page-admin { padding-top: 10px; }
.eval-card { margin-top: 8px; }
.eval-card > .panel-h { margin-bottom: 4px; }
.eval-pins { margin: 4px 0 0; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); line-height: 1.5; }
.eval-run-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 8px 0 0; padding: 12px 16px; border: 1px solid var(--ui-border);
  border-radius: var(--bkz-radius-md); background: var(--ui-sunk);
  font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); line-height: 1.5; }
.eval-run-when, .eval-run-repos { min-width: 0; }
.eval-run-repos { overflow-wrap: anywhere; }
.eval-fail { color: var(--bkz-danger-ink); }
.eval-run { display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px; margin: 0; padding: 4px 16px 8px; }
.eval-run .ops-sub { display: inline; }
.eval-run .input { width: min(360px, 100%); }

.eval-tbl { margin-top: 12px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md);
  overflow: hidden; }
.eval-tbl.eval-wide { overflow-x: auto; }
.eval-n-2 { --eval-n: 2; } .eval-n-3 { --eval-n: 3; } .eval-n-4 { --eval-n: 4; }
.eval-n-5 { --eval-n: 5; } .eval-n-6 { --eval-n: 6; } .eval-n-7 { --eval-n: 7; } .eval-n-8 { --eval-n: 8; }
.eval-wide .eval-row { grid-template-columns: minmax(180px, 1.2fr) repeat(var(--eval-n, 3), minmax(110px, 1fr)); }
.eval-row { display: grid; grid-template-columns: minmax(200px, 1.6fr) minmax(120px, 1fr) minmax(120px, 1fr);
  gap: 14px; align-items: baseline; padding: 10px 16px;
  border-top: 1px solid var(--bkz-border-hairline); background: var(--ui-surface);
  font-size: var(--bkz-text-sm); }
.eval-row:first-child { border-top: 0; }
.eval-row.eval-head { background: var(--ui-sunk); font-size: var(--bkz-text-xs); font-weight: 600;
  letter-spacing: var(--bkz-tracking-eyebrow-widest); text-transform: uppercase; color: var(--bkz-muted); }
.eval-k { color: var(--ui-ink-body); }
.eval-v { color: var(--bkz-ink); font-variant-numeric: tabular-nums; }
.eval-v .tnum { color: inherit; }
.eval-k .ops-sub { display: block; }
.eval-row.eval-lead { background: var(--ui-sunk); padding-top: 18px; padding-bottom: 18px;
  align-items: center; }
.eval-row.eval-lead .eval-k { color: var(--bkz-ink); font-weight: 600; }
.eval-pct { display: block; font-size: var(--bkz-text-4xl); font-weight: 700; line-height: 1.05;
  letter-spacing: var(--bkz-tracking-tight); color: var(--bkz-ink-strong);
  font-variant-numeric: tabular-nums; }

.eval-fold { margin-top: 12px; }
.eval-fold > summary { cursor: pointer; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.eval-fold .eval-queue { margin-top: 8px; }
.eval-fold .ops-controls { margin-top: 10px; }
.eval-candidates { margin-top: 12px; }
.eval-candidates-h { margin: 0; font-size: var(--bkz-text-sm); font-weight: 500; color: var(--ui-ink-muted); }
.eval-candidates .eval-queue { margin-top: 8px; }
.eval-candidates .ops-controls { margin-top: 10px; }

/* One card per candidate rather than a row: a candidate carries four facts and a reason, and
   five columns of mixed prose and tags is the shape that made the fleet table need a horizontal
   scrollbar. Vertical here, scannable by the mono path on the first line. */
.eval-queue { margin-top: 12px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md);
  overflow: auto; max-height: calc(100vh - 320px); }
a.eval-case { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.eval-case { padding: 12px 16px; border-top: 1px solid var(--bkz-border-hairline); background: var(--ui-surface); }
.eval-case:first-child { border-top: 0; }
.eval-case:hover { background: var(--ui-row-hover); }
.eval-case.is-open { box-shadow: inset 3px 0 0 var(--brand-ink, var(--bkz-ink)); }
.eval-case-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; min-width: 0; }
.eval-case-go { margin-left: auto; font-size: var(--bkz-text-xs); letter-spacing: var(--bkz-tracking-eyebrow-widest);
  text-transform: uppercase; color: var(--bkz-muted); }
.eval-case-h .mono { color: var(--bkz-ink); overflow-wrap: anywhere; }
.eval-sym { font-family: var(--bkz-font-mono); color: var(--brand-ink); }
.eval-case-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; }
.eval-fact { display: inline-flex; align-items: center; gap: 6px; font-size: var(--bkz-text-sm); }
.eval-fact-k { font-family: var(--bkz-font-mono); font-size: var(--bkz-text-xs);
  letter-spacing: var(--bkz-tracking-eyebrow-widest); text-transform: uppercase; color: var(--bkz-muted); }
.eval-said { color: var(--ui-ink-body); }
.eval-why { margin: 8px 0 0; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); line-height: 1.5; max-width: 84ch; }

.eval-compare { position: fixed; inset: 0; z-index: 1100; }
.eval-compare-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.eval-compare-card { position: relative; margin: 4vh auto; width: min(1400px, 96vw); height: 88vh;
  background: var(--bkz-bg, #0a0a0a); border: 1px solid var(--ui-border);
  border-radius: var(--bkz-radius-lg, 8px); box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display: flex; flex-direction: column; overflow: hidden; }
.eval-compare-h { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--bkz-border-soft);
  flex: 0 0 auto; }
.eval-compare-h h2 { margin: 0; font-size: var(--bkz-text-base); font-weight: 600;
  color: var(--bkz-ink); overflow-wrap: anywhere; }
.eval-compare-h .ops-sub { margin: 4px 0 0; }
.eval-compare-x { font-size: 22px; line-height: 1; color: var(--bkz-ink-slate);
  text-decoration: none; padding: 2px 8px; border-radius: var(--bkz-radius-md); }
.eval-compare-x:hover { background: var(--ui-hover); color: var(--bkz-ink-strong); }
.eval-compare-miss { margin: 0; padding: 10px 16px; font-size: var(--bkz-text-sm);
  color: var(--ui-ink-muted); border-bottom: 1px solid var(--bkz-border-hairline);
  flex: 0 0 auto; }
.eval-compare-split { display: grid; grid-template-columns: repeat(var(--eval-n, 2), minmax(200px, 1fr));
  align-items: stretch; border-bottom: 1px solid var(--bkz-border-soft); overflow-x: auto;
  flex: 0 0 auto; }
.eval-compare-why { margin: 0; padding: 12px 16px; font-size: var(--bkz-text-md);
  font-weight: 550; color: var(--ui-ink-strong); border-bottom: 1px solid var(--bkz-border-hairline);
  background: var(--ui-sunk); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px;
  flex: 0 0 auto; }
.eval-compare-choice { padding: 12px 16px 14px; min-width: 0; min-height: 9rem;
  box-shadow: inset 0 4px 0 currentColor; }
.eval-compare-choice .eval-compare-who { display: block; font-size: var(--bkz-text-xs); font-weight: 600;
  letter-spacing: var(--bkz-tracking-eyebrow-widest); text-transform: uppercase; color: var(--bkz-muted); }
.eval-compare-choice strong { display: block; margin: 6px 0 2px; font-size: 18px; font-weight: 600;
  line-height: 1.25; overflow-wrap: anywhere; color: inherit; }
.eval-compare-method { display: block; margin-top: 10px; padding: 9px 11px;
  border-radius: var(--bkz-radius-md); background: var(--ui-surface);
  color: var(--ui-ink-strong); border: 1px solid var(--ui-border);
  box-shadow: inset 3px 0 0 currentColor;
  font-size: var(--bkz-text-md); font-weight: 600; line-height: 1.4;
  letter-spacing: -0.01em; overflow-wrap: anywhere; }
.eval-jump { display: inline-block; margin-top: 8px; padding: 3px 10px;
  border: 1px solid currentColor; border-radius: var(--bkz-radius-md);
  font-size: var(--bkz-text-xs); font-weight: 600; letter-spacing: var(--bkz-tracking-eyebrow-widest);
  text-transform: uppercase; text-decoration: none; color: inherit; }
.eval-jump:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.eval-src-line { display: flex; gap: 12px; scroll-margin-top: 8px; }
.eval-src-line.is-jump, .eval-src-line:target { background: var(--bkz-warn-tint, rgba(255, 200, 80, 0.16)); }
.eval-src-n { flex: 0 0 36px; text-align: right; color: var(--bkz-muted); user-select: none; }
.eval-compare-src { white-space: normal; }
.eval-compare-choice.is-del { background: var(--bkz-danger-tint); color: var(--bkz-danger-ink); }
.eval-compare-choice.is-del .eval-compare-who,
.eval-compare-choice.is-del .eval-said { color: var(--bkz-danger-ink); }
.eval-compare-choice.is-del .eval-compare-method { box-shadow: inset 3px 0 0 var(--bkz-danger-ink); }
.eval-compare-choice.is-keep { background: var(--bkz-success-tint); color: var(--bkz-success-ink); }
.eval-compare-choice.is-keep .eval-compare-who,
.eval-compare-choice.is-keep .eval-said { color: var(--bkz-success-ink); }
.eval-compare-choice.is-keep .eval-compare-method { box-shadow: inset 3px 0 0 var(--bkz-success-ink); }
.eval-compare-choice.is-mid { background: var(--bkz-warn-tint); color: var(--bkz-warn-ink); }
.eval-compare-choice.is-mid .eval-compare-method { box-shadow: inset 3px 0 0 var(--bkz-warn-ink); }
.eval-compare-cols { display: grid; grid-template-columns: repeat(var(--eval-n, 2), minmax(240px, 1fr));
  flex: 1 1 auto; min-height: 0; overflow: auto;
  border-radius: 0 0 var(--bkz-radius-lg, 8px) var(--bkz-radius-lg, 8px); }
.eval-compare-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0;
  border-left: 1px solid var(--bkz-border-hairline); }
.eval-compare-pane:first-child { border-left: 0; }
.eval-compare-pane-h { padding: 10px 14px; border-bottom: 1px solid var(--bkz-border-hairline); }
.eval-compare-pane-h h3 { margin: 0; font-size: var(--bkz-text-xs); font-weight: 600;
  letter-spacing: var(--bkz-tracking-eyebrow-widest); text-transform: uppercase; color: var(--bkz-muted); }
.eval-compare-src { flex: 1 1 auto; margin: 0; padding: 8px 10px; overflow: auto;
  font-family: var(--bkz-font-mono); font-size: 12px; line-height: 1.5; white-space: normal;
  color: var(--bkz-ink); background: var(--ui-sunk, transparent); }
.eval-compare-empty { margin: 0; padding: 20px 16px; font-size: var(--bkz-text-sm);
  color: var(--ui-ink-body); line-height: 1.5; max-width: 46ch; }
@media (max-width: 800px) {
  .eval-compare-split { grid-template-columns: 1fr; }
  .eval-compare-cols { grid-template-columns: 1fr; overflow: auto; }
  .eval-compare-pane { border-left: 0; border-top: 1px solid var(--bkz-border-hairline); min-height: 40vh; }
  .eval-compare-pane:first-child { border-top: 0; }
}

.eval-hist { margin-top: 12px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md);
  max-height: 280px; overflow: auto; }
.eval-hist-row { display: grid;
  grid-template-columns: 90px 130px minmax(140px, 1fr) minmax(180px, 1.1fr) 96px 88px 110px 96px 130px;
  gap: 12px; align-items: center; min-width: 1080px; padding: 10px 16px;
  border-top: 1px solid var(--bkz-border-hairline); background: var(--ui-surface);
  font-size: var(--bkz-text-sm); color: inherit; }
.eval-hist-row:first-child { border-top: 0; }
a.eval-hist-row { text-decoration: none; color: inherit; cursor: pointer; }
a.eval-hist-row:hover { background: var(--ui-row-hover); }
a.eval-hist-row.is-open { box-shadow: inset 3px 0 0 var(--brand-ink, var(--bkz-ink)); }
.eval-hist-row.eval-head { position: sticky; top: 0; z-index: 1;
  background: var(--ui-sunk); font-size: var(--bkz-text-xs); font-weight: 600;
  letter-spacing: var(--bkz-tracking-eyebrow-widest); text-transform: uppercase; color: var(--bkz-muted); }

@media (max-width: 900px) { .eval-row { grid-template-columns: 1fr; gap: 4px; } }

.page-admin .panel-h .sec-h { align-items: center; gap: 8px; }
.eval-row.field-rank,
.field-rank .eval-row { grid-template-columns: minmax(140px, 1.2fr) repeat(4, minmax(88px, 1fr)); }
.eval-v.eval-span { grid-column: 2 / -1; }
.field-sub { margin: 20px 0 8px; font-size: var(--bkz-text-sm); }
.field-synth { margin: 12px 0 0; padding-left: 1.2em; max-width: 84ch;
  color: var(--ui-ink-body); font-size: var(--bkz-text-sm); line-height: 1.6; }
.field-list { margin-top: 8px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md);
  overflow: hidden; }
.field-tool { padding: 10px 16px; border-top: 1px solid var(--bkz-border-hairline); background: var(--ui-surface); }
.field-tool:first-child { border-top: 0; }
.field-tool > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.field-dumps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.field-dump { min-width: 0; }
.field-sample { margin: 8px 0 0; padding-left: 1.1em; font-size: var(--bkz-text-xs);
  color: var(--ui-ink-body); overflow-wrap: anywhere; }
@media (max-width: 800px) { .field-dumps { grid-template-columns: 1fr; } }

/* ── The Field page: two products, two charts ──────────────────────────────────────
 *
 * Series colours are categorical: they name an entity, never a rank, so Prune stays violet
 * whether it comes first or last. Both triples were run through the palette validator against
 * the console's own surfaces — lightness band, chroma floor, adjacent CVD separation, the
 * normal-vision floor and 3:1 contrast all pass on dark (#1c1a18) and on light (#ffffff).
 * Re-run it before changing a value; "these look different enough" is how a chart stops being
 * readable for the tenth of the team that cannot see the difference. */
:root {
  --fld-prune: #8b6df0; --fld-atlas: #2ba894; --fld-rival: #bd8226;
}
:root[data-theme="light"] {
  --fld-prune: #7a5ce0; --fld-atlas: #009480; --fld-rival: #a76f14;
}

.fld-prods { display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: 12px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md);
  overflow: hidden; }
.fld-prod { padding: 14px 16px 16px; background: var(--ui-surface); min-width: 0; }
.fld-prod + .fld-prod { border-left: 1px solid var(--bkz-border-hairline); }
.fld-prod-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 2px;
  font-size: var(--bkz-text-base); font-weight: 600; }
.fld-prod-h .mono { color: var(--bkz-ink); }
.fld-prod .eval-why { max-width: none; }
.fld-src { border-top: 1px dashed var(--grid-rail); padding-top: 8px; }
.fld-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.fld-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; align-self: center; }
.fld-dot.fld-prune { background: var(--fld-prune); }
.fld-dot.fld-atlas { background: var(--fld-atlas); }
@media (max-width: 820px) {
  .fld-prods { grid-template-columns: 1fr; }
  .fld-prod + .fld-prod { border-left: 0; border-top: 1px solid var(--bkz-border-hairline); }
}

.fld-fig { margin: 10px 0 0; }
.fld-chart { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.fld-cap { margin: 8px 0 0; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted);
  line-height: 1.5; max-width: 84ch; }

/* Text wears text tokens; only the marks carry the series colour. A hue light enough to read
   as a bar on this surface is not legible as 11px type on it. */
.fld-chart text { font-family: var(--bkz-font-mono); font-size: 11px; fill: var(--ui-ink-muted); }
.fld-name { fill: var(--ui-ink-body); }
.fld-name-tool { fill: var(--ui-ink-muted); }
.fld-val { fill: var(--ui-ink-body); font-variant-numeric: tabular-nums; }
.fld-tick { fill: var(--ui-ink-faint); }
.fld-none { fill: var(--ui-ink-faint); font-style: italic; }
.fld-grid { stroke: var(--ui-border); stroke-width: 1; }
.fld-root { fill: var(--ui-border); }
.fld-bar, .fld-seg { shape-rendering: crispEdges; }
.fld-bar.fld-prune { fill: var(--fld-prune); }
.fld-bar.fld-rival { fill: var(--fld-rival); }
.fld-seg.fld-ok { fill: var(--bkz-success-ink); }
.fld-seg.fld-bad { fill: var(--bkz-danger-ink); }
.fld-seg.fld-unk { fill: var(--ui-ink-faint); }
.fld-seg.fld-none-seg { fill: var(--ui-track); }
.fld-bar:hover, .fld-seg:hover { opacity: 0.82; }

.fld-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0;
  list-style: none; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.fld-legend li { display: inline-flex; align-items: center; gap: 7px; }
.fld-swatch { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }

/* ── The Field page: the first screen ───────────────────────────────────────────────
 *
 * Four tiles, one row, one size. The count of false positives is deliberately as large as
 * the count of wins: for a deletion tool it is the only catastrophic outcome, and a precision
 * percentage hides it inside a denominator. Tone is carried by an ink colour AND by the word
 * under the number, never by colour alone. */
.fld-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 12px;
  border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); overflow: hidden; }
.fld-board-3 { grid-template-columns: repeat(3, 1fr); }
.fld-tile { padding: 16px 18px 18px; background: var(--ui-surface); min-width: 0;
  display: flex; flex-direction: column; gap: 2px; }
.fld-tile + .fld-tile { border-left: 1px solid var(--bkz-border-hairline); }
.fld-tile-n { font-size: var(--bkz-text-4xl); font-weight: 700; line-height: 1.05;
  letter-spacing: var(--bkz-tracking-tight); color: var(--bkz-ink); font-variant-numeric: tabular-nums; }
.fld-tile-k { font-size: var(--bkz-text-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--bkz-tracking-eyebrow-widest); color: var(--ui-ink-body); }
.fld-tile-w { margin-top: 4px; font-size: var(--bkz-text-sm); line-height: 1.45; color: var(--ui-ink-muted); }
.fld-tile-good .fld-tile-n { color: var(--bkz-success-ink); }
.fld-tile-bad .fld-tile-n { color: var(--bkz-danger-ink); }
@media (max-width: 900px) {
  .fld-board, .fld-board-3 { grid-template-columns: 1fr 1fr; }
  .fld-tile:nth-child(odd) { border-left: 0; }
  .fld-tile:nth-child(n+3) { border-top: 1px solid var(--bkz-border-hairline); }
}
@media (max-width: 560px) {
  .fld-board, .fld-board-3 { grid-template-columns: 1fr; }
  .fld-tile + .fld-tile { border-left: 0; border-top: 1px solid var(--bkz-border-hairline); }
}

/* Two tools, the same five rows, so a reader compares by running one eye down a column. */
.fld-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 12px;
  border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); overflow: hidden; }
.fld-col { padding: 14px 18px 16px; background: var(--ui-surface); min-width: 0; }
.fld-col + .fld-col { border-left: 1px solid var(--bkz-border-hairline); }
.fld-col-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font-size: var(--bkz-text-base); font-weight: 600; color: var(--bkz-ink); }
.fld-line { display: flex; align-items: baseline; gap: 10px; padding: 5px 0;
  border-top: 1px solid var(--bkz-border-hairline); }
.fld-line:first-of-type { border-top: 0; }
.fld-line-n { flex: 0 0 3.4em; font-size: var(--bkz-text-lg); font-weight: 600;
  color: var(--bkz-ink); font-variant-numeric: tabular-nums; }
.fld-line-k { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.fld-line-good .fld-line-n { color: var(--bkz-success-ink); }
.fld-line-bad .fld-line-n { color: var(--bkz-danger-ink); }
@media (max-width: 820px) {
  .fld-vs { grid-template-columns: 1fr; }
  .fld-col + .fld-col { border-left: 0; border-top: 1px solid var(--bkz-border-hairline); }
}

/* Folded method. The panel chrome inside is stripped: a panel nested in a panel draws a
   second border around content that is already boxed. */
.fld-more > summary { cursor: pointer; list-style: none; }
.fld-more > summary::-webkit-details-marker { display: none; }
.fld-more > summary .sec-h { margin: 0; }
.fld-more > summary .ops-sub { display: inline; }
.fld-more > summary:hover .sec-h, .fld-more > summary:hover .fld-open { color: var(--ui-ink-strong); }
.fld-more:not(.fld-more-panel) > summary { margin-top: 14px; font-size: var(--bkz-text-sm); }
.fld-open { color: var(--ui-ink-body); font-weight: 600; }
.fld-open::after { content: ' →'; color: var(--ui-ink-faint); }
.fld-more[open] > summary .fld-open::after { content: ' ↑'; }
.fld-more-body > .panel { border: 0; border-radius: 0; background: none; padding: 0; margin: 0; }
.fld-more-body > .panel + .panel { margin-top: 18px; }

.fld-foot > summary { cursor: pointer; list-style: none; }
.fld-foot > summary::-webkit-details-marker { display: none; }
.fld-foot > summary .sec-h { margin: 0; }
.fld-foot > summary .ops-sub { display: inline; }
.fld-foot > summary:hover .sec-h { color: var(--ui-ink-strong); }

/* ── The dot, everywhere ──────────────────────────────────────────────────────────────
   One glyph, one size, one motion. These rules finish what the loader started: the bars
   listed below (a job, a sync, a sweep, a budget, onboarding) are rows of the dot filled to
   their number. `.fbar` (the Outcomes lanes' thick bars, coloured per lane by `.fi-*`,
   `.fd-*` and `.fb-*`) and `.hrow-bar` (the ranking rows, the repository index cell and the
   onboarding Ingesting bar, which borrows the class) keep their solid fills — the
   founder's call on 2026-09-08, "make it exactly how it was"; every step mark is the dot,
   coloured by its state and breathing while it runs; a pressed button breathes three dots
   in front of its words; an empty state carries the globe's still. Source order wins, so
   this block sits last. */
.pb-track, .pb-now-bar, .sweep-bar, .ing-bar, .pz-bar, .adm-spend-bar, .onb-bar-track {
  height: 8px; border-radius: 0; overflow: hidden;
  background: radial-gradient(circle, var(--ui-ink-faint) 1.1px, transparent 1.5px) 0 50% / 7px 7px repeat-x; }
.pb-fill, .pb-now-bar i, .sweep-bar-fill, .ing-bar-fill, .pz-bar i, .pz-bar span, .adm-spend-bar > i, .onb-bar-fill {
  height: 100%; border-radius: 0;
  background: radial-gradient(circle, var(--brand-ink, #4da3ff) 1.6px, transparent 2px) 0 50% / 7px 7px repeat-x; }
.pb-stalled .pb-fill { background-image: radial-gradient(circle, var(--bkz-danger-ink) 1.6px, transparent 2px); }
[data-status="done"] .pb-fill { background-image: radial-gradient(circle, var(--bkz-ok-ink, #4ade80) 1.6px, transparent 2px); }
/* The scan tile's marks: the dot, coloured; the running one breathes. */
.scan-tile-steps .st-mark { font-weight: 600; }
.scan-tile-steps .st-mark[data-mark="now"] { animation: dot-breathe 1.4s ease-in-out infinite; }
.scan-tile-bar { letter-spacing: .04em; }
/* A pressed button: three dots breathe in front of the new words. */
.btn.is-pending::before { content: "\2022\2022\2022"; font: 600 11px/1 var(--bkz-font-mono); letter-spacing: 1px; margin-right: 7px; animation: dot-breathe 1.1s ease-in-out infinite; }
/* BREKEN_PRESS_FEEDBACK_1126 (nav.js pressShown): every pressed form button says so in the frame it is pressed. A .btn wears the three
   dots above before its own words; any other button (a link-like or icon button) dims and shows the busy cursor, never moving its layout. */
[data-press-feedback="on"] button[data-pressed]:not(.btn), [data-press-feedback="on"] input[data-pressed] { opacity: .6; cursor: progress; }
/* The empty state's still: the globe at rest, small, beside the words. */
.empty .empty-glyph { opacity: 1; margin-bottom: 2px; }
.empty .empty-glyph .bkz-loader-grid { margin: 0; font: 8px/1 var(--bkz-font-mono); color: var(--ui-ink-faint); letter-spacing: .02em; }
/* Coverage, found, fixed — Scan now sits under Bugs with the next-scan time. */
.gd-scan-bar { display: flex; flex-flow: row wrap; align-items: center; gap: 10px 16px;
  margin: 0 0 16px; min-width: 0; }
.gd-scan-bar:has(.gd-scan-rest) { padding-bottom: 12px;
  border-bottom: 1px solid var(--bkz-border-hairline); }
.gd-scan-bar > .scan-tile, .gd-scan-bar > .panel, .gd-scan-bar > .activity-view { flex: 1 1 100%; }
.gd-scan-bar > .gd-scan-rest { flex: 1 1 auto; min-width: 0; margin: 0; }
.gd-scan-bar > .gd-row-standing.gd-scan-cta, .gd-scan-bar > .gd-scan-cta { flex: 0 0 auto; margin: 0 0 0 auto; }
/* The path to a complete scan: what one costs and takes, then the press that asks for it. Its own line, under the rest. */
.gd-scan-bar > .gd-scan-complete { flex: 1 1 100%; }
.gd-scan-complete { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  margin: 0; font-size: 11px; line-height: 1.5; color: var(--ui-ink-soft); }
.gd-scan-complete .gd-decide { margin: 0; }
.bug-board > .sec-h, .bug-board > .gd-scan-bar, .bug-board > .gd-list, .bug-board > .bug-toolbar, .bug-board > .pager { clear: both; }
/* The workspace page's one line on the scan: the dot, the repository, the door. */
.scan-brief { display: flex; align-items: baseline; gap: 8px; margin: 0 0 16px;
  font-size: 11px; line-height: 1.5; color: var(--ui-ink-soft); }

.scan-brief strong { color: var(--ui-ink-muted); font-weight: 500; }
.scan-brief-mark { color: var(--ui-ink-faint); }
.scan-brief-live .scan-brief-mark { color: var(--brand-ink, #4da3ff); animation: dot-breathe 1.4s ease-in-out infinite; }
.scan-brief-text { min-width: 0; flex: 1; }
.scan-brief-go { white-space: nowrap; color: var(--ui-ink-muted); text-decoration: none; }
.scan-brief-go:hover { color: var(--ui-ink-strong); }

/* How much was read, what it found, what it fixed, when it comes back. */
.gd-scan-rest { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  margin: 0; font-size: 11px; line-height: 1.5; color: var(--ui-ink-soft); }
/* The board's rules divide a workspace list by repository; inside a review list they need the list's own gap. */
.botlist > .gd-group-h { border-top: 0; }
/* A sweep that did not ship: one line, the reason one fold away. */
.sweep-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.sweep-retry { margin-left: auto; }
.sweep-line .pb { flex: 1 1 100%; width: 100%; margin: 8px 0 0; }
.sweep-why { display: inline; }
.sweep-why summary { display: inline; cursor: pointer; color: var(--ui-ink-muted); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.sweep-why[open] summary { color: var(--ui-ink-strong); }
.sweep-why p { flex-basis: 100%; margin: 6px 0 0; font-size: var(--bkz-text-xs); line-height: 1.5; word-break: break-word; }
/* The dot key's landing: a brief outline on the live thing it scrolled to. */
.is-pointed { outline: 2px solid var(--brand-ink, #4da3ff); outline-offset: 3px; transition: outline-color .6s; }
/* People are prints too: the photo stays, with a light dot screen over it. The first
   screen was one background-coloured dot every 3px at nearly full opacity, which punched
   the face into a lattice. A coarser, faint screen keeps the grid and leaves the photo.
   Only over a photo: two letters under a screen are just harder to read. */
.avatar { position: relative; }
.avatar:has(img)::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, var(--bkz-bg) 0 .4px, transparent .65px) 0 0 / 6px 6px; opacity: .32; }
/* New to you: a filled dot on a row that arrived since you last looked at this page.
   seen.js adds the class from a per-page stamp in localStorage; the server only carries
   the row's own time in `data-since`. The dot sits in the row's left padding. */
.is-new-to-you { position: relative; }
.is-new-to-you::before { content: "\2022"; position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  color: var(--brand-ink, #4da3ff); font: 600 13px/1 var(--bkz-font-mono); pointer-events: none; }
.botrow.is-new-to-you::before { left: 7px; }
.revrow.is-new-to-you::before, .uilist-row.is-new-to-you::before { left: 8px; }
/* The Overview's Activity panel: thirty days as a stacked histogram, and what is new
   to this reader. One column per day; height is that day's total; a quiet day is blank. */
.ah-win { font: 600 11px/1 var(--bkz-font-mono); letter-spacing: .04em; color: var(--ui-ink-muted);
  border: 1px solid var(--bkz-border-soft); border-radius: 9999px; padding: 4px 8px; font-weight: 600; }
.ah { min-width: 0; }
.ah-totals { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--bkz-border-soft); font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.ah-totals strong { color: var(--ui-ink-strong); font-weight: 600; margin-right: 5px; }
.ah-plot { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: 168px auto;
  column-gap: 8px; position: relative; }
.ah-y { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between;
  align-items: flex-end; font: 11px/1 var(--bkz-font-mono); color: var(--ui-ink-faint); padding: 0 2px 0 0; }
.ah-grid { grid-column: 2; grid-row: 1; position: relative; pointer-events: none; }
.ah-grid i { position: absolute; left: 0; right: 0; height: 1px;
  background: color-mix(in srgb, var(--ui-ink-faint) 22%, transparent); }
.ah-bars { grid-column: 2; grid-row: 1; display: flex; align-items: stretch; min-width: 0; }
.ah-col { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center;
  cursor: var(--cursor-mark); }
.ah-col.is-today, .ah-col:hover { background: color-mix(in srgb, var(--ui-ink-strong) 5%, transparent); }
/* A centred tip on the first or last days ran off the panel (the last one past the window's
   edge, cut mid-word). The outer days anchor their tip to their own edge instead. */
.ah-col:nth-child(-n+4)[data-tip]::after { left: 0; transform: translateY(3px); }
.ah-col:nth-child(-n+4)[data-tip]:hover::after { transform: translateY(0); }
.ah-col:nth-last-child(-n+4)[data-tip]::after { left: auto; right: 0; transform: translateY(3px); }
.ah-col:nth-last-child(-n+4)[data-tip]:hover::after { transform: translateY(0); }
.ah-stack { display: flex; flex-direction: column-reverse; width: 62%; min-height: 2px; align-self: flex-end;
  border-radius: 2px 2px 0 0; overflow: hidden; }
.ah-seg { display: block; min-height: 1px; }
.ah-seg.ah-rev, .ah-leg.ah-rev::before { background: #3d8fd4; }
.ah-seg.ah-bug, .ah-leg.ah-bug::before { background: #8b6cc9; }
.ah-seg.ah-fix, .ah-leg.ah-fix::before { background: #3cbfb0; }
.ah-x { grid-column: 2; grid-row: 2; display: flex; justify-content: space-between; margin-top: 8px;
  font: 11px/1.2 var(--bkz-font-mono); color: var(--ui-ink-muted); }
.ah-x span { flex: none; white-space: nowrap; }
.ah-leg { display: inline-flex; align-items: center; gap: 8px; }
.ah-leg::before { content: ""; width: 8px; height: 8px; border-radius: 1px; flex: none; }
.ntu { min-width: 0; }
.ntu-list { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; max-height: 300px; overflow-y: auto; padding-right: 6px; }
.ntu-item { display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 8px; align-items: baseline;
  padding: 4px 6px 4px 2px; text-decoration: none; color: inherit; border-radius: 0; }
.ntu-item:hover { background: var(--ui-row-hover); text-decoration: none; }
.ntu-dot { color: var(--brand-ink, #4da3ff); font: 600 13px/1 var(--bkz-font-mono); }
.ntu-title { font-size: var(--bkz-text-sm); color: var(--ui-ink-body); min-width: 0; }
.ntu-sub { grid-column: 2; font-size: var(--bkz-text-xs); }
/* The pill's shape lives on the base and its colour on the kind, so adding a second kind is
   one line and cannot drift from the first. */
.ntu-kind { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 9999px;
  border: 1px solid transparent; font-weight: 600; letter-spacing: 0.04em; line-height: 1.3; }
.ntu-kind-bug { background: var(--bkz-danger-tint); color: var(--bkz-danger-ink);
  border-color: var(--bkz-danger-border); }
@media (prefers-reduced-motion: reduce) {
  .sb-link .st-dot.st-indexing, .tag-pulse, .ph-running .ph-dot, .ob-pulse, .dp .spin, .scan-tile-steps .st-mark[data-mark="now"], .btn.is-pending::before, .scan-brief-live .scan-brief-mark { animation: none; }
}

/* ================= the week under a repository ===   Seven cells of the week (reviews per day, today last) and the one fact the row carries,
   under the name in the rail. A building repository shows the map filling instead of the
   week. The line is mono, small and slate, so the dot and the name still lead. */
.sb-link .sub.sb-week { display: flex; align-items: baseline; gap: 8px; margin: 1px 0 0 20px; min-width: 0;
  font: 400 11px/1.4 var(--bkz-font-mono); color: var(--bkz-ink-slate); white-space: nowrap; }
.sb-spark { flex: none; letter-spacing: .06em; color: var(--bkz-ink-faint); }
.sb-spark b { font-weight: 400; color: var(--bkz-ink-strong); }
.sb-spark.sb-fill { letter-spacing: .1em; color: var(--bkz-blue-link); }
.sb-fact { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sb-fact.sb-bad { color: var(--bkz-danger-ink); }
.sb-link.on .sub.sb-week { color: var(--brand-ink); }

/* The map filling in: a black tile of the globe's glyphs, lit cell by cell as far as the
   index has read (loader.js draws it from data-pct). Kept for any leftover fill host. */
.idx-meter { display: flex; flex-direction: column; align-items: stretch; width: 100%; min-width: 0; }
.idx-meter .hrow-bar { width: 100%; height: 6px; border-radius: 3px; }
.idx-meter .hrow-bar span { border-radius: 3px; }
.idx-meter .sub { margin-top: 6px; }
.bkz-fill { display: inline-block; vertical-align: top; background: #0a0a0a; padding: 4px 7px; margin: 0 10px 6px 0; }
.bkz-fill-grid { margin: 0; font: 11px/12px var(--bkz-font-mono); letter-spacing: .06em; white-space: pre; color: var(--bkz-ink-faint); }
.bkz-fill-grid .on { color: var(--brand); }
.bkz-fill-grid .off { color: var(--bkz-ink-faint); opacity: .55; }

/* One root cause, several places: the lead card names the rest; the drawer lists them. */
.gd-also { opacity: .8; }
.dp-places { margin: 0; padding-left: 1.1em; }
.dp-places li { margin: .25em 0; }

.scan-tile-activity { margin: 6px 0 10px; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .dp-anchor { flex-wrap: wrap; }
  .dp-anchor code { white-space: normal; overflow-wrap: anywhere; }
}

.dp-bug-stack .dp-verdict b { margin-right: 6px; }
/* Operations navigation remains usable with the Workers tab on narrow screens. */
@media (max-width: 700px) {
  .ops-bar-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 16px; }
  .ops-bar-nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; max-width: 100%; }
  .ops-bar-end { grid-column: 2; grid-row: 1; }
  .ops-bar-brand { letter-spacing: .08em; }
}

/* Workers share the operations palette; one column per Render service. */
.worker-board-summary { display:flex; flex-wrap:wrap; gap:24px; padding:18px 0; border-bottom:1px solid var(--ui-border); font-size:var(--bkz-text-sm); color:var(--ui-ink-body); }
.worker-board-summary b { color:var(--bkz-ink); font-variant-numeric:tabular-nums; }
.worker-board-summary>.muted { margin-left:auto; }
.worker-board-scroll { overflow-x:auto; margin:20px 0; padding-bottom:8px; }
.activity-services { display:grid; grid-template-columns:repeat(var(--worker-columns),minmax(250px,1fr)); gap:14px; align-items:start; }
.activity-service { min-width:0; border:1px solid var(--ui-border); border-radius:var(--bkz-radius-md); background:var(--ui-trough); }
body.is-queue-dragging { cursor:grabbing; }
body.is-queue-dragging .queue-row-draggable,
body.is-queue-dragging .queue-drag-ghost { pointer-events:none; }
body.is-queue-dragging .queue-row-draggable.is-dragging { opacity:.4; }
body.is-queue-dragging .queue-row-draggable.is-drop-target td { box-shadow:inset 0 2px 0 0 var(--bkz-blue-deep); }
body.is-queue-dragging .queue-row-draggable.is-drop-after td { box-shadow:inset 0 -2px 0 0 var(--bkz-blue-deep); }
body.is-queue-dragging .activity-service.is-drop-ready { box-shadow:inset 0 0 0 1px var(--bkz-blue-deep); }
.activity-service.is-drop-target { box-shadow:inset 0 0 0 2px var(--bkz-blue-deep); background:color-mix(in srgb, var(--bkz-blue-deep) 12%, var(--ui-trough)); }
.activity-service.is-drop-forbidden { box-shadow:inset 0 0 0 2px var(--bkz-danger-ink); opacity:.55; }
.activity-service>header { padding:16px; border-bottom:1px solid var(--ui-border); }
.activity-service h2 { margin:0 0 12px; font-size:var(--bkz-text-sm); font-weight:600; overflow-wrap:anywhere; }
.activity-service>header>div,.activity-service>footer,.worker-task-state { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--ui-ink-muted); font-size:var(--bkz-text-xs); }
.worker-column-counts { display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.worker-lane-kinds { margin:10px 0 0; }
.worker-lane-kinds > summary { cursor:pointer; color:var(--ui-ink-soft); font-size:11px; list-style:none; }
.worker-lane-kinds > summary::-webkit-details-marker { display:none; }
.worker-lane-kinds > summary::after { content:' ▾'; }
.worker-lane-kinds[open] > summary::after { content:' ▴'; }
.worker-lane-kinds ul { display:flex; flex-direction:column; gap:4px; margin:8px 0 0; padding:0; max-height:min(240px,40vh); overflow:auto; list-style:none; }
.worker-lane-kinds li { margin:0; padding:4px 8px; border:1px solid var(--ui-border); color:var(--ui-ink-soft); font-size:11px; line-height:1.35; }
.worker-column-tasks { padding:12px; display:grid; gap:10px; min-height:190px; align-content:start; }
.activity-task { padding:14px; border:1px solid var(--ui-border); border-radius:var(--bkz-radius-md); background:var(--bkz-bg); }
.activity-task[data-log-instance] { cursor:pointer; }
.activity-task[data-log-instance]:hover,.activity-task[data-log-instance]:focus-visible { border-color:var(--ui-ink-soft); }
.activity-task-queued { border-style:dashed; }
.activity-task h3 { font-size:var(--bkz-text-sm); margin:14px 0 6px; font-weight:600; }
.activity-task p { overflow-wrap:anywhere; margin:4px 0; font-size:var(--bkz-text-xs); }
.worker-task-repo { color:var(--ui-ink-body); }.worker-task-workspace,.worker-task-phase,.worker-task-pr { color:var(--ui-ink-muted); }
.worker-task-repo a,.worker-task-pr a { color:inherit; text-decoration:underline; text-underline-offset:2px; }
.worker-task-progress { display:flex; gap:10px; align-items:center; margin-top:14px; color:var(--ui-ink-muted); font-size:var(--bkz-text-xs); white-space:nowrap; }
.worker-task-progress progress { width:100%; min-width:0; height:5px; accent-color:var(--bkz-success-ink); }
.activity-task>footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:14px; padding-top:10px; border-top:1px solid var(--ui-border); font-size:11px; color:var(--ui-ink-muted); }
.activity-service>footer { padding:12px 16px; border-top:1px solid var(--ui-border); }
.worker-column-empty { padding:36px 10px; text-align:center; font-size:var(--bkz-text-sm); color:var(--ui-ink-body); }
.worker-column-empty span { display:block; margin-top:8px; color:var(--ui-ink-muted); font-size:var(--bkz-text-xs); }
.activity-warning { color:var(--bkz-warn-ink); padding:12px 0; }
.worker-diagnostics { margin:16px 0; border-top:1px solid var(--ui-border); }
.worker-diagnostics>summary { cursor:pointer; color:var(--ui-ink-muted); padding:14px 0; font-size:var(--bkz-text-xs); }
.page-workers .page-head { margin-top: 20px; }
.page-workers #activity-live { font-size:var(--bkz-text-xs); color:var(--ui-ink-muted); }
.create-job-dialog { border: 1px solid var(--ui-border); border-radius: 0; background: var(--ui-raised, var(--ui-sunk)); color: var(--ui-ink-strong); padding: 36px 40px 32px; width: min(720px, calc(100vw - 48px)); max-width: 720px; box-shadow: none; }
.create-job-dialog::backdrop { background: rgb(0 0 0 / 0.45); }
.create-job-dialog h2 { margin: 0 0 28px; font-size: var(--bkz-text-2xl, var(--bkz-text-xl)); font-weight: 650; }
.create-job-dialog .field { margin-bottom: 22px; }
.create-job-dialog .field > span { margin-bottom: 10px; }
.create-job-dialog .input { padding: 12px 14px; font-size: var(--bkz-text-md, var(--bkz-text-base)); }
.create-job-dialog .btn-row { margin-top: 8px; gap: 12px; }
/* The repository list: radio rows in the menu's own row style (label.dd-item), scrolled in place —
   a list to pick from, not a platform listbox. */
.create-job-repos { height: 18rem; margin-top: 10px; padding: 5px; overflow-y: auto; display: flex; flex-direction: column;
  border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); background: var(--ui-surface);
  font-size: var(--bkz-text-md, var(--bkz-text-base)); line-height: 1.7; }
.create-job-repos .dd-item { padding: 6px 14px; }
.create-job-dialog .dd-field > summary { padding: 12px 14px; font-size: var(--bkz-text-md, var(--bkz-text-base)); }
.create-job-extra[hidden] { display: none; }
.create-job-status { min-height: 1.4em; margin: 0 0 16px; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.create-job-status.is-ok { color: var(--bkz-success-ink, #9fd7ab); }
.create-job-status.is-bad { color: var(--bkz-danger-ink, #ff918a); }
.worker-logs-dialog { border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-panel, 8px); background: var(--ui-raised, var(--ui-sunk)); color: var(--ui-ink-strong); padding: 0; width: min(1040px, calc(100vw - 48px)); max-width: 1040px; max-height: calc(100vh - 48px); overflow: auto; box-shadow: 0 24px 80px rgb(0 0 0 / 0.45); }
.worker-logs-dialog::backdrop { background: rgb(0 0 0 / 0.55); }
.worker-logs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0; padding: 20px 24px 16px; border-bottom: 1px solid var(--ui-border); position: sticky; top: 0; background: var(--ui-raised, var(--ui-sunk)); z-index: 1; }
.worker-logs-dialog h2 { margin: 0 0 4px; font-size: var(--bkz-text-xl); font-weight: 650; letter-spacing: -0.02em; }
.worker-logs-meta { margin: 0; font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); font-variant-numeric: tabular-nums; }
.worker-logs-dialog > #worker-logs-summary,
.worker-logs-dialog > .worker-logs-lede,
.worker-logs-dialog > .worker-logs-tools,
.worker-logs-dialog > #worker-logs-reading,
.worker-logs-dialog > .worker-logs-body { margin-left: 24px; margin-right: 24px; }
.worker-logs-dialog > #worker-logs-summary { margin-top: 16px; }
.worker-logs-dialog > .worker-logs-body { margin-bottom: 20px; }
.worker-logs-lede { max-width: none; }
.worker-logs-body { margin: 0; max-height: min(52vh, 560px); overflow: auto; padding: 0; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); background: var(--bkz-bg); color: var(--ui-ink-body); font: 12px/1.55 var(--bkz-font-mono, ui-monospace, monospace); white-space: pre-wrap; overflow-wrap: anywhere; }
@media(max-width:600px){.worker-board-summary{gap:12px}.worker-board-summary>.muted{margin-left:0}.activity-services{grid-template-columns:repeat(var(--worker-columns),minmax(270px,85vw))}}

/* Integrations remain visible as a noninteractive preview. */
.ig-coming-soon { opacity: .72; filter: grayscale(1); }
.page-integrations .workspace-integrations-preview>.sec-h:first-child{margin-top:26px}
.page-integrations .workspace-integrations-preview .ig-grid{gap:20px;margin:12px 0 26px}
.page-integrations .workspace-integrations-preview .ig-card{min-height:84px;box-shadow:none}

.dp-export-bug { margin-bottom: 16px; }
.dp-export-prompt { width: 100%; min-height: 180px; margin-bottom: 16px; font-family: var(--bkz-font-mono, monospace); }

.dp-export-bug.copy-label-return { animation: copy-label-return .3s ease-out; }
@keyframes copy-label-return { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .dp-export-bug.copy-label-return { animation: none; }
}

.pending-queue-head{display:flex;align-items:center;gap:16px;margin:0 0 16px;flex-wrap:wrap}
.pending-queue-pick{margin:0;flex:0 1 320px;max-width:min(100%,320px)}
.pending-queue-status{flex:1 1 12rem;min-width:0}
.pending-queue-status h2,.pending-board h2{margin:0;font-size:var(--bkz-text-sm);font-weight:600;color:var(--ui-ink-strong)}
.pending-boards{display:block}
.pending-board .queue-group{margin:18px 0 6px;font-size:var(--bkz-text-sm);font-weight:600;color:var(--ui-ink-strong)}
.pending-board .queue-group:first-child{margin-top:0}
.pending-board .queue-group-note{margin:0 0 8px;font-size:12px}
.queue-removed{margin:18px 0 0}.queue-removed summary{cursor:pointer;font-size:var(--bkz-text-sm);font-weight:600;color:var(--ui-ink-strong)}
.admin-pending-queue{margin:28px 0 0;padding-top:24px;border-top:1px solid var(--ui-border)}
.admin-pending-queue #queue-status{margin:0 0 12px;color:var(--ui-ink-strong)}
.admin-pending-queue #queue-status.is-error{color:var(--bkz-red,#c44)}
.admin-pending-queue #queue-status:empty{display:none}
.queue-filters{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.queue-filters button{border:1px solid transparent;background:transparent;color:var(--ui-ink-soft);border-radius:0;padding:7px 10px;font:inherit;font-size:12px;cursor:pointer}
.queue-filters button[aria-pressed="true"]{background:var(--ui-surface);border-color:var(--ui-border);color:var(--ui-ink-strong)}
.queue-lane th{padding-top:14px;font-weight:600;letter-spacing:.02em}.queue-horizon td{opacity:.7}
.queue-actions{display:flex;gap:6px;white-space:nowrap}.queue-actions button:disabled{opacity:.35;cursor:default}
.queue-row-draggable{cursor:grab;user-select:none;-webkit-user-select:none;touch-action:none}.queue-row-draggable:active{cursor:grabbing}
.queue-row-draggable td{touch-action:none;-webkit-user-select:none;user-select:none}
.queue-drag-handle{display:inline-block;width:14px;margin-right:8px;color:var(--ui-ink-strong);cursor:grab;vertical-align:middle}
.queue-row-draggable:hover .queue-drag-handle{color:var(--bkz-blue-link, #4da3ff)}
.queue-drag-ghost{position:fixed;z-index:10000;pointer-events:none;padding:8px 12px;border:1px solid var(--bkz-blue-deep);border-radius:0;background:var(--bkz-bg);box-shadow:none;font-size:var(--bkz-text-sm);max-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ui-ink-strong)}

/* The before-and-after of a browser proof, in the drawer where the decision is made. */
.dp-shots{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.dp-shot{margin:0;max-width:220px}
.dp-shot img{width:100%;height:auto;border:1px solid var(--line);border-radius:4px;display:block}
.dp-shot figcaption{font-size:11px;letter-spacing:.04em;text-transform:uppercase;opacity:.6;margin-top:4px}

/* Compact bug board: a title and one grey line per row, then four fixed chip slots. */
.bug-board { min-width: 0; overflow-anchor:none; }
.bug-toolbar { display:flex; align-items:center; gap:18px; padding:12px 0; border-bottom:1px solid var(--ui-border); flex-wrap:wrap; }
.bug-toolbar > .bug-search,.bug-filter { display:flex; align-items:center; gap:7px; color:var(--ui-ink-muted); font-size:12px; }
.bug-search input { color:var(--ui-ink-strong); font:inherit; background:var(--ui-surface); border:1px solid var(--ui-border); border-radius:6px; padding:7px 9px; }
.bug-toolbar .bug-search { margin-right:auto; }
.gd-scan-cta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.bug-filter .dd-menu { left:auto; right:0; }
.bug-filter .dd-cur { min-width:90px; }
.bug-search input { width:200px; background:transparent; }
.bug-count { color:var(--ui-ink-muted); font-size:12px; font-variant-numeric:tabular-nums; }
.bug-board .gd-list { display:block; border:0; background:transparent; }
.bug-row { background:var(--ui-card); display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px; border-bottom:1px solid var(--bkz-border-hairline); padding:0 22px 0 0; min-width:0; }
.bug-row:has(.bug-pick) { grid-template-columns:auto minmax(0,1fr) auto; }
.bug-pick { display:flex; align-items:center; justify-content:center; padding-left:18px; min-width:32px; min-height:32px; box-sizing:border-box; }
.bug-toolbar .bug-select-all { padding-left:0; gap:6px; font-size:12px; color:var(--ui-ink-muted); cursor:pointer; }
.bug-pick input { width:14px; height:14px; margin:0; accent-color:var(--ui-blue, #5aa8e0); cursor:pointer; }
.bug-row[hidden],.bug-empty[hidden] { display:none; }
/*
 * The bulk bar: the card's three presses, for the ticked bugs (bug-board.js `mountBulk`).
 *
 * Under the rows, not above them — a bar that appears above the list on the first tick moves
 * every row down under the pointer, and the second tick lands on the wrong bug. Here it docks
 * after the last row and sticks to the bottom of the window while a long list scrolls, so it
 * is on screen from the first tick and nothing the person is pointing at moves.
 *
 * As wide as what it holds and no wider (founder: "don't make it look so elongated"): the
 * count in the mono label voice, the card's own three buttons at the small size, and the
 * do-both rail cut to four cells a side.
 */
.bug-bulk { position:sticky; bottom:12px; z-index:4; display:flex; flex-direction:column; align-items:flex-start; gap:6px; margin:12px 0 0;
  pointer-events:none; }
/* The strip is as wide as the list but only its two panels take the pointer: the empty
   width beside them floats over rows and must not swallow a click meant for one. */
.bug-bulk > * { pointer-events:auto; }
.bug-bulk[hidden],.bug-bulk-bar[hidden],.bug-bulk-result[hidden] { display:none; }
.bug-bulk-bar { display:inline-flex; align-items:center; flex-wrap:wrap; gap:12px; max-width:100%; box-sizing:border-box; margin:0;
  padding:6px 6px 6px 14px; background:var(--ui-surface); border:1px solid var(--ui-border);
  box-shadow:0 10px 28px -14px rgba(0,0,0,.55); }
.bug-bulk-count { font:600 11px/1 var(--bkz-font-mono); letter-spacing:.06em; text-transform:uppercase; color:var(--ui-ink-strong);
  font-variant-numeric:tabular-nums; white-space:nowrap; }
.bug-bulk-actions { display:inline-flex; align-items:center; flex-wrap:wrap; gap:8px; }
.bug-bulk .gd-both { margin:0 -4px; }
.bug-bulk-clear { background:none; border:0; padding:6px 8px; font:500 11px/1 var(--bkz-font-mono); letter-spacing:.06em;
  text-transform:uppercase; color:var(--ui-ink-faint); cursor:pointer; }
.bug-bulk-clear:hover { color:var(--ui-ink-strong); }
.bug-bulk-clear:disabled { opacity:.4; cursor:default; }
.bug-bulk-clear:focus-visible { outline:2px solid var(--ui-blue, #5aa8e0); outline-offset:1px; }
/* What each bug's press came to: one line a bug, the outcome in the label voice. */
.bug-bulk-result { width:min(760px,100%); box-sizing:border-box; background:var(--ui-surface); border:1px solid var(--ui-border);
  box-shadow:0 10px 28px -14px rgba(0,0,0,.55); }
.bug-bulk-result-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:6px 6px 6px 14px;
  border-bottom:1px solid var(--bkz-border-hairline); }
.bug-bulk-result-sum { font:600 11px/1.4 var(--bkz-font-mono); letter-spacing:.06em; text-transform:uppercase; color:var(--ui-ink-muted); }
.bug-bulk-lines { list-style:none; margin:0; padding:4px 0; max-height:min(40vh,300px); overflow:auto; }
.bug-bulk-lines li { display:grid; grid-template-columns:104px minmax(0,1fr); column-gap:12px; row-gap:1px; padding:5px 14px; font-size:12.5px; line-height:1.45; }
.bug-bulk-what { font:600 10.5px/1.75 var(--bkz-font-mono); letter-spacing:.05em; text-transform:uppercase; white-space:nowrap; color:var(--ui-ink-faint); }
.bug-bulk-lines li.is-done .bug-bulk-what { color:var(--bkz-success-ink); }
.bug-bulk-lines li.is-partial .bug-bulk-what { color:var(--bkz-warn-ink); }
.bug-bulk-bug { all:unset; box-sizing:border-box; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ui-ink-strong); cursor:pointer; }
.bug-bulk-bug:hover { text-decoration:underline; text-underline-offset:2px; }
.bug-bulk-bug:focus-visible { outline:2px solid var(--ui-blue, #5aa8e0); outline-offset:1px; }
.bug-bulk-why { grid-column:2; color:var(--ui-ink-muted); font-size:12px; overflow-wrap:anywhere; }
@media (max-width:700px) {
 .bug-bulk { bottom:8px; }
 .bug-bulk-bar { display:flex; width:100%; gap:8px; padding:8px 8px 8px 12px; }
 .bug-bulk-count { flex:1; }
 .bug-bulk-actions { order:3; flex:1 0 100%; }
 .bug-bulk-actions > *,.bug-bulk-actions .btn { flex:1 1 0; min-width:0; }
 .bug-bulk-actions .btn { padding:7px 8px; }
 /* A phone wraps the row and cannot hover: the rail comes off, as it does in the drawer. */
 .bug-bulk .gd-both-arm { display:none; }
 .bug-bulk .gd-both { display:flex; margin:0; }
 .bug-bulk .gd-both .btn { width:100%; }
 .bug-bulk-lines { max-height:28vh; }
 .bug-bulk-lines li { grid-template-columns:minmax(0,1fr); }
 .bug-bulk-why { grid-column:1; }
}
.bug-row:hover { background:var(--ui-row-hover); }
/* The Dead code row's shape (`.uilist-row`): the title on one line, one grey line under it,
   the chips on the right. Same sizes as that board: 14px title, 12px meta line, 10.5px mono
   chips, square corners. Unlike it, the chips here sit in fixed slots (below). */
.bug-board .bug-row-main.gd-card { display:flex; flex-direction:column; align-items:stretch; gap:3px; width:100%; box-sizing:border-box; min-width:0; margin:0; padding:15px 0 15px 22px; border:0; border-radius:0; box-shadow:none; animation:none; background:transparent; text-align:left; letter-spacing:inherit; }
.bug-board .bug-row-main:hover { background:transparent; }
/* A found row not on the board yet is the same card (plain-board-words.ts): a link or a plain block in the button's place,
   and an empty tick box slot, so every title starts at the same x. */
.bug-board a.bug-row-main.gd-card, .bug-board div.bug-row-main.gd-card { color:inherit; text-decoration:none; font:inherit; }
.bug-board div.bug-row-main.gd-card { cursor:default; }
.bug-pick:empty { visibility:hidden; }
/* Two lines, not one: a bug's title is the bug. On one line most real titles ("Clicking the
   '20 a day' option on the settings page shifts the whole page…") lost their second half at
   1440 and every narrower width, with room to spare below. */
.bug-board .bug-row .gd-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; min-width:0; overflow:hidden; white-space:normal; overflow-wrap:anywhere; font-size:14px; line-height:1.35; font-weight:550; }
.bug-cell { display:flex; flex-wrap:nowrap; align-items:center; gap:7px; min-width:0; color:var(--ui-ink-muted); font-size:12px; line-height:1.4; }
/* Every part of the grey line can shrink, so a long repository name or `+12 places` ends in
   an ellipsis instead of running into the chips. */
.bug-where { overflow:hidden; }
.bug-where > span { flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bug-where > * + *::before { content:"·"; margin-right:7px; color:var(--ui-ink-faint); }
/* The vendored mark (migration 0538): a small info icon beside the path of a row in code the
   customer copied in, its sentence on hover AND on keyboard focus. The line's clipping and its
   "·" separator would eat the tooltip and its arrow, so a line carrying one lets it out. */
.vendored-mark { display:inline-flex; align-items:center; justify-content:center; flex:none; width:14px; height:14px; margin-left:4px; font-size:12px; line-height:1; color:var(--ui-ink-faint); cursor:help; border-radius:50%; font-style:normal; }
.vendored-mark:hover, .vendored-mark:focus-visible { color:var(--ui-ink); }
.vendored-mark:focus-visible { outline:2px solid var(--ui-blue, #5aa8e0); outline-offset:1px; }
.vendored-mark[data-tip]:focus::after, .vendored-mark[data-tip]:focus-visible::after { opacity:1; transform:translateX(-50%) translateY(0); }
.vendored-mark[data-tip]:focus::before, .vendored-mark[data-tip]:focus-visible::before { opacity:1; }
.bug-where:has(.vendored-mark) { overflow:visible; }
.bug-where > .vendored-mark { overflow:visible; flex:none; margin-left:-3px; }
.bug-where > .vendored-mark::before { content:''; margin-right:0; }
.dp-anchor-row { display:flex; align-items:center; gap:6px; min-width:0; }
.dp-anchor-row > .dp-anchor { flex:1 1 auto; min-width:0; }
/* The path gives way first (it is the longest part and the drawer shows it in full); the
   repository and author only shrink once the path has nothing left to give. */
.bug-where code { flex:0 100 auto; font:inherit; color:inherit; background:none; padding:0; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* Where the row was found (BREKEN_ROW_SOURCE_AND_MEDIA): the line's last word gives way before its state on a narrow row. */
.bug-where > .bug-source { flex:0 2 auto; }
/* Four slots — severity, area, status, found — each the same width on every row, so each
   fact lands at the same x and an empty slot keeps its place. */
.bug-row-state { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:nowrap; }
.bug-row-state > * { display:flex; align-items:center; min-width:0; flex:none; }
.bug-row-state > .bug-severity { order:1; }
.bug-row-state > .bug-cell-area { order:2; }
/* Status sits on the right, one thin line, beside the time. */
.bug-row-state > .bug-status { order:3; display:flex; flex-wrap:nowrap; align-items:center; gap:6px; }
.bug-row-state > .bug-seen { order:4; justify-content:flex-end; margin-left:4px; }
/* Fix PR, issue and verdict chips wear the `.tag` box (see the `.tag` rule), with no
   underline, capped to their slot, a hover colour on links, and green once merged or resolved. */
/* One line, the same chip as every other tag. Wrapping let "Fix did not ship" collapse
   into a tall narrow box beside the area tag. */
.bug-pr,.bug-outcome { max-width:none; text-decoration:none; white-space:nowrap; }
.bug-row-state .bug-outcome { display:inline-flex; flex:none; width:max-content; white-space:nowrap; padding:1px 7px; letter-spacing:0.04em; line-height:1.4; font-size:10px; }
.bug-row-state .bug-outcome-why { display:inline; font-weight:inherit; }
.bug-row-state .bug-outcome-sep { display:inline; }
.bug-area[data-tip], .bug-outcome[data-tip] { cursor:var(--cursor-mark); }
.bug-pr:hover { color:var(--brand-ink); border-color:currentColor; }
.bug-pr.is-merged,.bug-outcome.is-resolved { color:var(--bkz-success-ink); }
/*
 * The area chip: the `.tag` box — same size, font and square corners as its neighbours — in
 * its area's colour, with a small marker. Eight accent slots, assigned per area in
 * bug-area.ts, so `auth` and `payments` differ at a glance before any word is parsed.
 */
.bug-area { --area-ink:var(--ui-ink-body); --area-tint:var(--ui-sunk); --area-edge:var(--bkz-border-hairline);
  border-color:var(--area-edge); background:var(--area-tint); color:var(--area-ink); }
.bug-area::before { content:""; width:4px; height:4px; background:currentColor; flex:none; opacity:.85; }
.bug-area-red { --area-ink:#f29690; --area-tint:color-mix(in srgb, #dc2626 14%, #131211); --area-edge:color-mix(in srgb, #dc2626 34%, #131211); }
.bug-area-amber { --area-ink:#e6b86f; --area-tint:color-mix(in srgb, #d97706 14%, #131211); --area-edge:color-mix(in srgb, #d97706 34%, #131211); }
.bug-area-green { --area-ink:#86d6ac; --area-tint:color-mix(in srgb, #059669 14%, #131211); --area-edge:color-mix(in srgb, #059669 34%, #131211); }
.bug-area-blue { --area-ink:#8fc9ea; --area-tint:color-mix(in srgb, #2563eb 14%, #131211); --area-edge:color-mix(in srgb, #2563eb 34%, #131211); }
.bug-area-violet { --area-ink:#bda6f0; --area-tint:color-mix(in srgb, #7c3aed 14%, #131211); --area-edge:color-mix(in srgb, #7c3aed 34%, #131211); }
.bug-area-cyan { --area-ink:#7fd0dd; --area-tint:color-mix(in srgb, #0891b2 14%, #131211); --area-edge:color-mix(in srgb, #0891b2 34%, #131211); }
.bug-area-pink { --area-ink:#efa0c4; --area-tint:color-mix(in srgb, #db2777 14%, #131211); --area-edge:color-mix(in srgb, #db2777 34%, #131211); }
.bug-area-slate { --area-ink:#a5b0bf; --area-tint:color-mix(in srgb, #64748b 16%, #131211); --area-edge:color-mix(in srgb, #64748b 34%, #131211); }
:root[data-theme="light"] .bug-area-red { --area-ink:#a3261d; --area-tint:#fdf2f1; --area-edge:#f0d3d0; }
:root[data-theme="light"] .bug-area-amber { --area-ink:#7c5310; --area-tint:#f9f3e8; --area-edge:#ecdcc2; }
:root[data-theme="light"] .bug-area-green { --area-ink:#2f6741; --area-tint:#f1fbf4; --area-edge:#cfe8d7; }
:root[data-theme="light"] .bug-area-blue { --area-ink:#1d4ed8; --area-tint:#eff4fe; --area-edge:#cddcfa; }
:root[data-theme="light"] .bug-area-violet { --area-ink:#5b21b6; --area-tint:#f5f1fe; --area-edge:#ddd0f7; }
:root[data-theme="light"] .bug-area-cyan { --area-ink:#155e75; --area-tint:#eef8fb; --area-edge:#c8e4ec; }
:root[data-theme="light"] .bug-area-pink { --area-ink:#9d174d; --area-tint:#fdf1f6; --area-edge:#f4d2e2; }
:root[data-theme="light"] .bug-area-slate { --area-ink:#475569; --area-tint:#f4f5f7; --area-edge:#e2e5ea; }
/* Below 1360px the four slots (~600px) would squeeze the title to a few words, and on a
   phone to nothing. So the row stacks: title, the grey line, then the chips. Nothing shares a
   line with the title. */
@media (max-width:1360px) {
 .bug-row { grid-template-columns:minmax(0,1fr); gap:0; padding:0; }
 .bug-row:has(.bug-pick) { grid-template-columns:auto minmax(0,1fr); }
 .bug-pick { align-self:start; padding:16px 0 0 16px; }
 .bug-row-state { grid-column:1 / -1; }
 .bug-board .bug-row-main.gd-card { padding:13px 16px 8px; }
 .bug-row-state { flex-wrap:wrap; justify-content:flex-end; gap:6px; padding:0 16px 13px; }
 .bug-row-state > .bug-cell-area:empty, .bug-row-state > .bug-status:empty { display:none; }
 .bug-row-state > .bug-seen { margin-left:8px; }
 .bug-row-state > .bug-status { flex-wrap:nowrap; }
}
/*
 * A bug the scan that just ran is the first to find.
 *
 * The board had Status, Severity and Area and nothing telling a row minutes old from one days
 * old, so after pressing Scan now there was no way to see what had arrived. Accent, not alarm:
 * new is not a severity, and it stops meaning anything once the row is decided.
 */
/*
 * When the board first saw this bug, on the right of its row.
 *
 * Tabular figures and a fixed minimum width so `now`, `3d` and `11mo` all occupy the same
 * box: a column of timestamps that shifts left and right as the numbers change reads as
 * noise, and this one sits at the end of every row. Muted and small: an aside at the end of
 * the chip slots, not a control.
 */
.bug-seen { display:inline-flex; align-items:center; gap:5px; flex:none; }
/* Only in the drawer, where there is room for the word that says what the number means. */
.bug-seen-word { font-size:11px; line-height:1.5; color:var(--ui-ink-faint); }
.bug-ago { font:400 12px/1.4 var(--bkz-font-sans); color:var(--ui-ink-faint);
  font-variant-numeric:tabular-nums; min-width:3ch; text-align:right;
  white-space:nowrap; cursor:default; }
/*
 * The dot: a bug no earlier scan had seen.
 *
 * Asked for as "a small dot next to the timestamps of all the issues I'm seeing for the first
 * time". A dot and not a word because the row's chips already sit right beside it,
 * and because "new" is not a severity — it earns colour, not weight. The ring keeps it
 * visible against both the card and the hover fill.
 */
.bug-seen.is-new .bug-ago { color:var(--bkz-blue-link); }
.bug-seen-dot { width:6px; height:6px; border-radius:9999px; flex:none;
  background:var(--bkz-blue-link);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--bkz-blue-link) 18%,transparent); }
/*
 * Why an issue could not be filed, under the buttons that would have filed it.
 * Shipped today with no rule at all, so a refusal ran into the controls above it at full
 * body size. It is an explanation, not an alarm: muted, small, and allowed to wrap.
 */
.gd-issue-note { margin:6px 0 0; font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
/* "Coming Soon" under the Integrations heading — emitted since that page shipped and
   styled by nothing, so a placeholder read at full body weight. */
.dim { color:var(--ui-ink-muted); }
.bug-empty { padding:28px 12px; text-align:center; color:var(--ui-ink-muted); font-size:13px; }
.bug-detail.dp-drawer { width:min(700px,100vw); }
.bug-detail .dp-drawer-head { padding:14px 24px; min-height:58px; }
.bug-detail .dp-drawer-scroll { padding:22px 28px; }
.bug-detail .dp-drawer-title { font-size:19px; line-height:1.35; font-weight:600; letter-spacing:-.015em;
  margin:0 0 8px; text-wrap:balance; }
.bug-detail .dp-anchor { border:0; border-radius:0; padding:0; margin-bottom:10px; flex-wrap:wrap; gap:4px 16px; font-size:12px; }
.bug-detail .dp-anchor code { background:none; padding:0; white-space:normal; overflow-wrap:anywhere; }
.bug-detail .dp-anchor .muted { font-size:11px; }
.bug-detail .dp-insight { font-size:14px; line-height:1.55; margin:0 0 14px; color:var(--ui-ink-body); max-width:60ch; }
.bug-detail .dp-impact { margin:0 0 14px; color:var(--ui-ink-body); }
.bug-detail .dp-impact summary { display:flex; align-items:baseline; gap:10px; cursor:pointer; font-size:14px; line-height:1.55; list-style:none; }
.bug-detail .dp-impact summary::-webkit-details-marker { display:none; }
.bug-detail .dp-impact summary::before { content:"▸"; color:var(--ui-ink-faint); font-size:11px; }
.bug-detail .dp-impact summary span { flex:none; color:var(--ui-ink-faint); font:500 10px/1.6 var(--bkz-font-mono); letter-spacing:.08em; text-transform:uppercase; }
.bug-detail .dp-impact[open] summary::before { transform:rotate(90deg); }
.bug-detail .dp-impact p { margin:10px 0 0 21px; font-size:13px; line-height:1.6; color:var(--ui-ink-muted); }
.bug-detail .dp-bug-stack { display:block; }
.bug-detail .dp-sec { margin:0 0 14px; padding:0; border:0; background:none; }
.bug-detail .dp-sec-h { margin:0 0 10px; font-size:12px; font-weight:600; color:var(--ui-ink-strong); }
/*
 * Expected · Actual · When · How read as one thing, not four.
 *
 * They are four rows of the same shape, so they get one shape: a label column in the
 * product's small mono caps, the sentence beside it, one hairline between rows. The eye
 * crosses one boundary per fact instead of stopping at four headings of equal weight.
 */
.bug-detail .dp-verdict { display:grid; grid-template-columns:76px minmax(0,1fr); gap:0 14px;
  margin:0; padding:9px 0; border:0; border-bottom:1px solid var(--bkz-border-hairline);
  border-radius:0; background:none; font-size:13px; line-height:1.6; }
.bug-detail .dp-verdict b { display:block; margin:1px 0 0; color:var(--ui-ink-faint);
  font:500 10px/1.6 var(--bkz-font-mono); letter-spacing:.06em; text-transform:uppercase; }
.bug-detail .dp-verdict:not(:has(b)) { grid-template-columns:minmax(0,1fr); }
/* A long path or identifier in a sentence ("apps/api/src/controllers/v2/types.ts:2543") breaks
   inside its column rather than widening the drawer past a phone's edge. */
.bug-detail .dp-verdict > span { overflow-wrap:anywhere; }
.bug-detail .dp-trust { font-size:12px; line-height:1.6; padding:0 0 14px; gap:5px; }
/* In the head the wrapper is not a box, so its chip lines up with severity and area as one
   more item of the same row rather than a nested column with its own padding. */
.bug-detail .dp-drawer-head .dp-trust { display:contents; }
.bug-detail .dp-trust .tag { font-size:10px; letter-spacing:.025em; }
.bug-detail .dp-fold { border:0; border-top:1px solid var(--bkz-border-hairline); margin:0; border-radius:0; }
.bug-detail .dp-fold-sum { font-size:13px; padding:12px 0; }
/* Inside the deck it needs neither: the deck supplies the edge and the padding, and a second
   rule line there was the band this removes. */
.bug-detail .dp-drawer-foot .bug-detail-export { padding:0; border:0; }
.bug-detail-export { padding:8px 24px; border-top:1px solid var(--bkz-border-hairline); }
/*
 * The export, drawn as what it produces: a line of terminal input.
 *
 * It was eleven grey pixels with no border, the quietest thing on a deck of four bordered
 * controls — so the one action that hands this whole bug to the reader's own coding agent read
 * as a caption, and people did not find it. It is a control now, and it says which KIND of
 * control by the one idiom nobody has to be taught: a shell prompt and a block caret. The
 * thing on the other end of this button is an agent in a terminal, and the button looks like
 * the place you would type to one.
 *
 * It is still not one of the four. Mono against their sans, a hairline against their border,
 * and its own line above them: near enough to be obviously pressable, far enough that the row
 * underneath is still where the decision gets made.
 */
.bug-detail-export .dp-export-bug { display:inline-flex; align-items:center; gap:7px;
  margin:0; padding:6px 10px; border:1px solid var(--bkz-border-hairline); border-radius:5px;
  background:transparent; color:var(--ui-ink-muted);
  font:500 11.5px/1 var(--bkz-font-mono); letter-spacing:.01em; }
/* The prompt. */
.bug-detail-export .dp-export-bug::before { content:"\276F"; flex:none;
  font-weight:700; color:var(--brand-ink); opacity:.85; }
/* The caret, breathing on the product's one keyframe — never a second spinner vocabulary. */
.bug-detail-export .dp-export-bug::after { content:"\258C"; flex:none; width:7px;
  overflow:hidden; white-space:nowrap; color:var(--ui-ink-faint);
  animation:dot-breathe 1.9s ease-in-out infinite; }
.bug-detail-export .dp-export-bug:hover { color:var(--ui-ink-strong); background:transparent;
  border-color:var(--brand-ink); }
.bug-detail-export .dp-export-bug:hover::after { color:var(--brand-ink); opacity:1; animation:none; }
/*
 * Copied: the caret fills the way a tape does.
 *
 * `copy.js` owns the words — it swaps the label to "Copied to clipboard" and adds `.copied` —
 * and this owns the picture, which is why both live in their own file and neither had to be
 * touched to change the other. Four blocks revealed left to right, in four steps, so the
 * confirmation is the same glyph language as the rails two lines below it.
 */
.bug-detail-export .dp-export-bug.copied { border-color:var(--bkz-success-border);
  color:var(--bkz-success-ink); }
.bug-detail-export .dp-export-bug.copied::before { color:var(--bkz-success-ink); opacity:1; }
.bug-detail-export .dp-export-bug.copied::after { content:"\2588\2588\2588\2588";
  color:var(--bkz-success-ink); opacity:1; animation:ex-tape 340ms steps(4,end) both; }
@keyframes ex-tape { from { width:0; } to { width:28px; } }
@media(prefers-reduced-motion:reduce) {
 .bug-detail-export .dp-export-bug::after { animation:none; }
 .bug-detail-export .dp-export-bug.copied::after { animation:none; width:28px; }
}
/*
 * The action deck.
 *
 * Everything above it is reading; this is the doing, so it is the one lit surface in the
 * drawer and it never scrolls away. Inside it the order is fixed: what state the bug is in,
 * the controls, and one line saying what pressing the first one gets you. The primary button
 * is the only large control on the screen — "do both" and "File an issue" keep the small
 * size, so weight alone says which is the default without a second colour.
 */
.bug-detail .dp-drawer-foot { flex-direction:column; align-items:stretch; gap:8px;
  padding:12px 24px 14px; background:var(--ui-sunk); }
.bug-detail .gd-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
/*
 * One band: four controls, one height, one type size.
 *
 * The deck used to carry three weights at once — a `btn-lg` primary stretched to 340px, two
 * small buttons, and a small summary — for four things a person does to the SAME bug. Three
 * sizes is not hierarchy, it is three answers to "how important is this", and the combined
 * press suffered worst: "do both" claims to be the two buttons either side of it taken
 * together, while being visibly smaller than one of them and a third the width. The rails ran
 * from a giant to a chip.
 *
 * Emphasis comes from FILL and from position instead, which is the one channel that does not
 * distort the row: Ship a fix is the only filled control and the first, and that is enough to
 * read as the default without also being three times the size of its own alternative. The
 * `gd-ship` stretch goes with it — a primary that grows to fill pushed the rails and the issue
 * to the right edge and made the row look like a form, not a toolbar.
 */
.bug-detail .gd-actions .btn { font-size:13px; padding:9px 14px; line-height:1.25; }
.bug-detail .gd-ship,.bug-detail .gd-ship .gd-decide { display:inline-flex; }
/*
 * A half that is underway is a status, not a control.
 *
 * "Fix · Being solved", "Issue · Being filed": the half's name, then its state, at the
 * height of a button so the row does not jump when a press turns into one, but with no fill
 * and no pointer, so nothing about it invites a second press. The breathing dot is the
 * product's one sign of work in flight (app.css dot-breathe), never a spinner.
 */
.gd-half { display:inline-flex; align-items:center; gap:8px; min-height:36px; padding:0 12px;
  border:1px dashed var(--ui-line, rgba(127,127,127,.35)); border-radius:8px; font-size:13px;
  color:var(--ui-ink-muted); cursor:default; }
.gd-half-name { font-weight:600; color:var(--ui-ink, inherit); }
.gd-half-name::after { content:"\00B7"; margin-left:8px; font-weight:400; color:var(--ui-ink-muted); }
.gd-half.is-working .gd-half-state::before,
.gd-half.is-working .pb::before { content:""; display:inline-block; width:6px; height:6px; margin-right:6px;
  border-radius:50%; background:currentColor; vertical-align:middle; animation:dot-breathe 1.6s ease-in-out infinite; }
.gd-half .pb,.gd-half .pb.pb-fix { display:inline-flex; align-items:center; margin:0; flex:0 0 auto; max-width:none; }
.gd-half .pb .pb-title { font-size:13px; }
@media (prefers-reduced-motion: reduce) { .gd-half.is-working .gd-half-state::before,.gd-half.is-working .pb::before { animation:none; } }
/*
 * "do both", and the two rails that say what both means.
 *
 * The control is the middle weight of the row, so the BUTTON is unremarkable — small, the
 * same size as the issue beside it — and the arms carry the meaning. They are a glyph ramp
 * in the landing field's own characters, one cell per span so both.js can address them; what
 * is in the markup is the resting frame, and it is also the whole of what a reader under
 * `prefers-reduced-motion` or a failed script ever sees. Fixed-width cells: a ramp that
 * reflows as its characters change width is a jitter, not a wave.
 */
/*
 * The rail runs INTO the buttons; it is not parked between them.
 *
 * The arms carried 4px of their own padding and sat inside the row's 8px flex gap, so twelve
 * pixels of nothing stood at each end of a line whose job is to join two controls. The rail
 * reached neither of them and the deck looked like it had come apart. The padding goes and the
 * group pulls back into the gap, so the arrowhead lands a couple of pixels off the button it
 * points at and the eye reads one circuit rather than three objects and some dots.
 */
.gd-both { display:inline-flex; align-items:center; gap:0; margin:0 -4px; }
.gd-both-arm { display:inline-flex; align-items:center; padding:0; user-select:none;
  font:600 11px/1 var(--bkz-font-mono); color:var(--ui-ink-faint); }
.gd-both-arm > i,.gd-both-arm > b { display:inline-block; width:6px; text-align:center;
  font-style:normal; font-weight:600; opacity:.55; transition:color 120ms linear; }
/* The arrowhead is the termination, so it is the one cell that is always legible. */
.gd-both-arm > b { opacity:.8; }
/* The crest, set by both.js one cell at a time. */
.gd-both-arm > i.is-hot { color:var(--brand-ink); opacity:1; }
.gd-both:hover .gd-both-arm > b,.gd-both:focus-within .gd-both-arm > b { color:var(--brand-ink); opacity:1; }
.gd-both-btn { letter-spacing:.01em; }
.gd-both:hover .gd-both-btn,.gd-both:focus-within .gd-both-btn { border-color:var(--brand-ink); color:var(--brand-ink); }
/*
 * Both neighbours light, because that is the entire claim the button makes.
 *
 * Without this the arms are an animation pointing at nothing in particular; with it, the
 * press is legible before it is made — these two, together, once.
 */
.bug-detail .gd-actions:has(.gd-both:hover) .gd-ship .btn,
.bug-detail .gd-actions:has(.gd-both:focus-within) .gd-ship .btn,
.bug-detail .gd-actions:has(.gd-both:hover) .gd-issue .btn,
.bug-detail .gd-actions:has(.gd-both:focus-within) .gd-issue .btn {
  border-color:var(--brand-ink);
  box-shadow:0 0 0 1px color-mix(in srgb, var(--brand-ink) 35%, transparent); }
/* The arrival itself: set by both.js when a front runs off the end of that button's arm, and
   dropped 210ms later. The fade-out is the transition, so the beat lands hard and leaves soft. */
.bug-detail .gd-actions .btn.is-struck {
  border-color:var(--brand-ink);
  box-shadow:0 0 0 2px color-mix(in srgb, var(--brand-ink) 60%, transparent);
  transition:box-shadow 200ms ease-out, border-color 200ms ease-out; }
@media(prefers-reduced-motion:reduce) {
 /* both.js does not start; the rendered ramp is the picture, held a little brighter. */
 .gd-both-arm > i,.gd-both-arm > b { opacity:.7; transition:none; }
}
.dp-sec-eyebrow { font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ui-ink-faint); margin:0 0 6px; }
.bug-detail .dp-insight { font-size:13.5px; line-height:1.6; color:var(--ui-ink-body); max-width:68ch; }
.bug-detail .dp-drawer-foot .btn { font-size:13px; padding:9px 14px; }
/* The menu's own choices are not row controls; they keep the smaller size inside the popover,
   and the export stays the quietest thing on the deck. */
.bug-detail .gd-action-menu-pop .btn { font-size:12px; padding:7px 10px; }
/* The deck's one-size rule is for the four ROW controls; the export keeps its terminal strip. */
.bug-detail .dp-drawer-foot .bug-detail-export .dp-export-bug { font-size:11.5px; padding:6px 10px; }
/* A status line appears only when the last attempt needs attention. */
.bug-state { display:flex; gap:8px; align-items:baseline; margin:0; font-size:12px;
  line-height:1.6; color:var(--ui-ink-body); }
.bug-state summary { cursor:pointer; color:var(--ui-ink-muted); list-style:none; }
.bug-state summary::-webkit-details-marker { display:none; }
.bug-state summary::before { content:"!"; display:inline-grid; place-items:center; width:14px; height:14px; margin-right:7px;
  border-radius:50%; background:var(--bkz-warn-tint); color:var(--bkz-warn-ink); font:700 10px/1 var(--bkz-font-mono); }
.bug-state p { margin:7px 0 0 21px; color:var(--ui-ink-muted); }
.bug-state + .bug-state { margin-top:-2px; }
/*
 * What the OTHER half of a "do both" press did, said under the row rather than inside it.
 *
 * Muted, because "the issue is being filed" is the ordinary good outcome of half a press and
 * `.pending-why` is danger ink. A refusal still uses `.pending-why` and still reads as one.
 */
.bug-state-note { margin:6px 0 0; color:var(--ui-ink-muted); }
.bug-state + .bug-state .bug-state-dot { color:var(--ui-ink-faint); }
.bug-state .muted { color:var(--ui-ink-muted); }
.bug-state code { overflow-wrap:anywhere; }
.bug-state-dot { flex:none; font-size:9px; line-height:2; color:var(--bkz-warn-ink); }
.gd-ship-btn { letter-spacing:-.01em; }
@media(max-width:700px) {
 .bug-toolbar { gap:10px; }
 .bug-toolbar .bug-search { flex:1; }
 .bug-search input { width:100%; min-width:120px; }
 /* A phone gives the title up to four lines across the row's width (see the severity rule below). */
 .bug-board .bug-row .gd-title { -webkit-line-clamp:4; }
 .bug-detail .dp-drawer-scroll { padding:20px; }
 .bug-detail .dp-drawer-title { font-size:20px; }
 .bug-detail .dp-drawer-head,.bug-detail .dp-drawer-foot { padding:12px 20px; }
}
@media(max-width:700px) {
 .bug-board .bug-row-main.gd-card { width:100%; box-sizing:border-box; }
 body:has(.bug-board) .sidebar { flex-wrap:wrap; overflow:visible; box-sizing:border-box; }
 body:has(.bug-board) .sb-top { flex:1; }
 body:has(.bug-board) .sb-palette { flex:none; margin:0; }
 body:has(.bug-board) .sb-ws { flex:1 0 100%; margin:0; min-width:0; }
 body:has(.bug-board) .sb-ws-menu { left:auto; right:0; top:100%; width:min(300px,calc(100vw - 24px)); }
}
/* The workspace menu on a phone, on every page: under the header row and inside the screen.
   It flew out to the right of the rail, which on a phone is off the screen — and the menu is the
   only place a phone shows "Other repositories you can access", because the rail's sections are
   hidden at this width. */
@media(max-width:700px) {
 .sidebar { flex-wrap:wrap; overflow:visible; box-sizing:border-box; }
 .sb-top { flex:1; }
 .sb-palette { flex:none; margin:0; }
 .sb-ws { flex:1 0 100%; margin:0; min-width:0; position:relative; }
 .sb-ws-menu { left:auto; right:0; top:100%; width:min(300px,calc(100vw - 24px)); }
}
/* Hidden tooltip boxes must not widen the page, on any page at any width. An idle tip is
   transparent but still laid out: the rail's switcher made every page 484px wide at 390, the
   bug board's compact list spilled sideways, and the activity chart's last columns made a
   repository's Home 1448px wide in a 1440 window - a sideways wobble on every trackpad.
   `@starting-style` keeps the short fade the tips had when they were always in the layout. */
[data-tip]:not(:hover):not(:focus-within)::before,
[data-tip]:not(:hover):not(:focus-within)::after { display:none; }
@starting-style {
 [data-tip]:hover::before, [data-tip]:focus-within::before,
 [data-tip]:hover::after, [data-tip]:focus-within::after { opacity: 0; }
}
/* Every menu opens where it can be read (BREKEN_POPOVERS_IN_VIEW; menu.js keepInView places a list
   sideways). Between a phone and a laptop (701-880px) the rail is a strip that scrolls sideways, and
   the workspace menu still flew out to the strip's right, past the screen and cut off by the strip:
   it drops under its row there too, as it does on a phone, and the strip lets it out while it is open
   (the escape-while-open idiom of the menus above). The open switcher's own tip only restates the
   menu, and laid out (the pressed arrow keeps focus) it made a phone's page scroll sideways: it is
   not drawn while the menu is open. Off (html[data-popovers-in-view="off"]): none of this applies. */
html:not([data-popovers-in-view="off"]) details.sb-ws-picker[open] > .sb-ws-chev[data-tip]::after,
html:not([data-popovers-in-view="off"]) details.sb-ws-picker[open] > .sb-ws-chev[data-tip]::before { display:none; }
@media (min-width:701px) and (max-width:880px) {
 html:not([data-popovers-in-view="off"]) .sidebar:has(details.sb-ws-picker[open]) { overflow:visible; }
 html:not([data-popovers-in-view="off"]) .sb-ws-menu { left:auto; right:0; top:100%; width:min(300px,calc(100vw - 24px)); }
}

.bug-action-receipt { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:12px; color:var(--bkz-success-ink); }
.bug-action-receipt p { margin:0; }
.bug-action-error { color:var(--bkz-warn-ink); font-size:12px; margin:6px 0; }

.bug-detail .btn.is-pending::before { content:none; animation:none; }

/* Activity, not an estimate: shared by Bugs and Dead code. */
.activity-view { padding: 18px 0 20px; border: 0; border-bottom: 1px solid var(--ui-border); background: transparent; font-family: var(--bkz-font-sans); font-size: 14px; }
.activity-view[hidden], .bug-row[hidden] { display: none !important; }
.activity-view .scan-tile-rule { margin: 0; padding: 0; border: 0; flex-wrap: wrap; text-transform: none; letter-spacing: 0; font-size: 12px; }
.activity-view .scan-tile-title { color: var(--brand-ink); font-weight: 500; }
.activity-view .scan-tile-activity { font-size: 20px; line-height: 1.4; font-weight: 500; margin: 10px 0; color: var(--ui-ink-strong); }
/*
 * The live panel: a turning buffer, and the fewest words that are true beside it.
 *
 * The globe is the only thing on this screen that moves, so it is what says the work is
 * running — the copy beside it stopped trying to do that job and got shorter. Under 600px
 * the buffer keeps its place: it is the reassurance, and dropping it on a phone drops the
 * one thing the panel exists to show.
 */
.gd-ship,.gd-ship .gd-decide { display:inline-flex; align-items:center; }

@media(max-width:700px) {
 /*
  * The same four equals, wrapped into tidy rows.
  *
  * A full-width primary over three small buttons is the ordinary phone pattern and it is the
  * desktop problem again in a narrower window — the complaint was that these four are drawn at
  * different sizes, and "except on a phone" is not an answer to it. They share the row instead:
  * each grows to fill what is left, so a wrap produces even boxes rather than a ragged edge.
  */
 .bug-detail .gd-actions { gap:8px; }
 .bug-detail .gd-actions > * { flex:1 1 auto; }
 .bug-detail .gd-ship,.bug-detail .gd-ship .gd-decide,.bug-detail .gd-ship-btn,
 .bug-detail .gd-issue,.bug-detail .gd-issue .gd-decide,
 .bug-detail .gd-actions .btn { width:100%; justify-content:center; }
 /*
  * And the rails come off.
  *
  * They point at the control either side of the button, and a wrapped row puts at least one of
  * those on another line — an arrow aimed at empty space. A phone cannot hover either, so the
  * wave they exist to carry can never play. The word says it alone.
  */
 .bug-detail .gd-both-arm { display:none; }
 .bug-detail .gd-both { display:flex; }
 .bug-detail .gd-both .gd-decide,.bug-detail .gd-both-btn { width:100%; }
}
/*
 * ── The bug row, calm (founder, 2026-09-26) ─────────────────────────────────────────────
 *
 * "The rows look extremely cluttered and visually unpleasing." Four uppercase chips of four
 * widths on the right of every row, so nothing lined up. Now one grid with fixed tracks:
 * severity as a small pill at the START of the row (in the drawer button, beside the title),
 * the area as a quiet word with its colour kept as one small square, ONE status in sentence
 * case with a tone dot, and the age at the far right. Every right-hand track has a fixed width,
 * so each fact lands at the same x on every row ([[list rows use their width]]).
 *
 * Scoped to `.bug-row-grid`, which the Suggestions rows below wear too (see ADVICE).
 */
.bug-board .bug-row.bug-row-grid { display:grid; grid-template-columns:minmax(0,1fr) 268px 44px; align-items:center;
  column-gap:20px; padding:0 20px 0 0; }
.bug-board .bug-row.bug-row-grid:has(.bug-pick) { grid-template-columns:auto minmax(0,1fr) 268px 44px; column-gap:14px; }
.bug-row-grid .bug-pick { align-self:center; padding:0 0 0 18px; }
.bug-board .bug-row-grid .bug-row-main.gd-card { display:grid; grid-template-columns:62px minmax(0,1fr); column-gap:14px; row-gap:3px;
  align-items:center; padding:14px 0 14px 20px; }
.bug-board .bug-row-grid:has(.bug-pick) .bug-row-main.gd-card { padding-left:0; }
.bug-row-grid .bug-row-main > .bug-sev { grid-column:1; grid-row:1; }
.bug-row-grid .bug-row-main > .gd-title { grid-column:2; grid-row:1; }
.bug-row-grid .bug-row-main > .bug-where { grid-column:2; grid-row:2; }
/* The filter row on one line at desktop widths: the "All" box (bug-board.js) joined it and
   pushed Area onto a second line at 1440. Tighter gaps and a shorter search box; a narrow
   window still wraps. */
@media (min-width:1280px) {
 .bug-board .bug-toolbar { gap:12px; }
 .bug-board .bug-toolbar .bug-search input { width:160px; }
}
/* Area | status: two fixed tracks inside the state cell, which bug-live.js repaints. */
.bug-row-grid .bug-row-state { display:grid; grid-template-columns:104px minmax(0,1fr); column-gap:14px; align-items:center;
  justify-content:start; padding:0; flex-wrap:nowrap; grid-column:auto; min-width:0; }
.bug-row-grid .bug-row-state > * { min-width:0; }
.bug-row-grid .bug-row-state > .bug-cell-area, .bug-row-grid .bug-row-state > .bug-status { display:flex; align-items:center; }
/* Pinned to their tracks: an unplaced bug's empty area cell must not pull its status left. */
.bug-row-grid .bug-row-state > .bug-cell-area { grid-column:1; }
.bug-row-grid .bug-row-state > .bug-status { grid-column:2; }
.bug-row-grid > .bug-seen { justify-self:end; margin:0; }
.bug-row-grid .bug-where > .bug-value { flex:none; }
.bug-value-low { color:var(--ui-ink-faint); }

/* Severity: the one uppercase word on a row, in its own colour, one width for every row. */
.bug-sev { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; width:100%; height:20px;
  padding:0 6px; border:1px solid var(--bkz-border-hairline); background:transparent; color:var(--ui-ink-muted);
  font:600 10px/1 var(--bkz-font-mono); letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; }
.bug-sev-critical { color:var(--bkz-danger-alert-ink); border-color:var(--bkz-danger-alert-border);
  background:color-mix(in srgb, #dc2626 28%, transparent); }
.bug-sev-high { color:var(--bkz-danger-ink); border-color:var(--bkz-danger-border); background:var(--bkz-danger-tint); }
.bug-sev-medium { color:var(--bkz-warn-ink); border-color:var(--ui-warn-border); background:var(--bkz-warn-tint); }

/* The area: a lowercase word, its colour as one small square. */
.bug-area-word { display:inline-flex; align-items:center; gap:7px; min-width:0; max-width:100%; overflow:hidden;
  font:500 12.5px/1.4 var(--bkz-font-sans); color:var(--ui-ink-muted); white-space:nowrap; cursor:var(--cursor-mark); }
/* Real elements, not ::before: on a [data-tip] element the pseudo-elements are the tooltip. */
.bug-area-mark { flex:none; width:6px; height:6px; background:var(--area-ink, var(--ui-ink-faint)); }

/* The one status: sentence case, a tone dot, the detail on hover. */
.bug-st { display:inline-flex; align-items:center; gap:7px; max-width:100%; min-width:0; overflow:hidden;
  font:500 12.5px/1.4 var(--bkz-font-sans); color:var(--ui-ink-body); text-decoration:none; white-space:nowrap;
  letter-spacing:0; text-transform:none; cursor:var(--cursor-mark); }
.bug-st-dot { flex:none; width:6px; height:6px; border-radius:50%; background:var(--ui-ink-faint); }
.bug-st-ok .bug-st-dot { background:var(--bkz-success-ink); }
.bug-st-warn .bug-st-dot { background:var(--bkz-warn-ink); }
.bug-st-live { color:var(--bkz-blue-link); }
a.bug-st { cursor:pointer; }
a.bug-st:hover { color:var(--ui-ink-strong); text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--ui-border-hover); }
a.bug-st > span[aria-hidden] { color:var(--ui-ink-faint); }
.bug-st.tag-solving { position:relative; padding-bottom:3px; overflow:visible; }
.bug-st.tag-solving .tag-pulse { margin-left:0; order:-1; }
.bug-st .tag-progress { bottom:-1px; }

/* Between the phone and the full desktop: area and status drop under the path, aligned with
   the title, so the title keeps the width it needs. */
@media (max-width:1199px) {
 .bug-board .bug-row.bug-row-grid { grid-template-columns:minmax(0,1fr) 44px; column-gap:14px; padding:0 18px 0 0; }
 .bug-board .bug-row.bug-row-grid:has(.bug-pick) { grid-template-columns:auto minmax(0,1fr) 44px; }
 .bug-row-grid .bug-pick { align-self:start; padding:17px 0 0 18px; }
 .bug-board .bug-row-grid .bug-row-main.gd-card { grid-column:-3 / -2; grid-row:1; padding-bottom:6px; }
 .bug-row-grid > .bug-seen { grid-column:-2 / -1; grid-row:1; align-self:start; padding-top:16px; }
 .bug-row-grid .bug-row-state { grid-column:-3 / -2; grid-row:2; display:flex; flex-wrap:wrap; gap:6px 18px;
   padding:0 0 14px 76px; }
 .bug-board .bug-row-grid:not(:has(.bug-pick)) .bug-row-state { padding-left:96px; }
 .bug-row-grid .bug-row-state > .bug-cell-area:empty, .bug-row-grid .bug-row-state > .bug-status:empty { display:none; }
}
@media (max-width:700px) {
 .bug-board .bug-row.bug-row-grid { column-gap:10px; padding-right:14px; }
 .bug-row-grid .bug-pick { padding:15px 0 0 14px; }
 /* The severity sits above the title on a phone, so the title has the row's whole width: beside
    a 54px badge it had about 150px and real titles were cut after three lines. */
 .bug-board .bug-row-grid .bug-row-main.gd-card { grid-template-columns:minmax(0,1fr); column-gap:10px; row-gap:6px; padding-top:13px; }
 .bug-board .bug-row-grid:not(:has(.bug-pick)) .bug-row-main.gd-card { padding-left:14px; }
 .bug-row-grid .bug-row-main > .bug-sev { grid-column:1; grid-row:1; justify-self:start; align-self:start; width:auto; min-width:58px; padding:0 6px; margin-top:1px; }
 .bug-row-grid .bug-row-main > .gd-title { grid-column:1; grid-row:2; }
 .bug-row-grid .bug-row-main > .bug-where { grid-column:1; grid-row:3; }
 .bug-row-grid > .bug-seen { padding-top:14px; }
 .bug-board .bug-row.bug-row-grid, .bug-board .bug-row.bug-row-grid:has(.bug-pick) { grid-template-columns:auto minmax(0,1fr) 30px; }
 /* Area over status, the same two lines on every row, rather than sharing a line only when
    both happen to fit. */
 .bug-row-grid .bug-row-state { flex-direction:column; align-items:flex-start; padding:0 0 13px 0; gap:3px; }
 .bug-board .bug-row-grid:not(:has(.bug-pick)) .bug-row-state { padding-left:14px; }
 /* The grey line wraps on a phone; a separator would start the second line, so the parts are
    spaced instead of dotted. */
 .bug-row-grid .bug-where { flex-wrap:wrap; column-gap:10px; row-gap:0; }
 .bug-row-grid .bug-where > * + *::before { content:none; }
 /* Each part wraps on its own line rather than being cut before its key words ("Couldn’t check yet: our copy’s setup, not y…", 11-20 renders, 06 at 390 px). */
 .bug-row-grid .bug-where > span { white-space:normal; overflow:visible; overflow-wrap:anywhere; }
}

/*
 * ── The bug card (founder, 2026-09-26) ─────────────────────────────────────────────────
 *
 * "The card itself has so much text and it's all unstructured", then "still too much text and
 * not very legible". Now: the title, then two labelled answers — what happens (the situation,
 * expected against actual) and where (the file and three lines of it) — then one quiet line
 * saying how we know and where the bug has got to, and one "More details" group holding
 * everything else, the full description first.
 */
.bug-detail .bd-head { gap:10px 12px; }
.bug-detail .bd-head .bug-sev { width:auto; min-width:58px; }
.bug-detail .bd-head .bug-area-word { font-size:12.5px; }
.bd-quiet { font-size:12px; color:var(--ui-ink-muted); cursor:var(--cursor-mark); }
.bug-detail .dp-drawer-title { margin-bottom:14px; }
.bd-facts { margin:0; padding:0; }
.bd-fact { display:grid; grid-template-columns:108px minmax(0,1fr); column-gap:18px; padding:13px 0;
  border-top:1px solid var(--bkz-border-hairline); }
.bd-fact:first-child { border-top:0; padding-top:2px; }
.bd-fact > dt { margin:0; padding-top:3px; font:500 10.5px/1.6 var(--bkz-font-mono); letter-spacing:.08em;
  text-transform:uppercase; color:var(--ui-ink-faint); }
.bd-fact > dd { margin:0; min-width:0; font-size:13.5px; line-height:1.6; color:var(--ui-ink-body); }
.bug-detail .bd-fact .dp-insight { margin:0; max-width:none; font-size:14px; line-height:1.6; color:var(--ui-ink-body); }
.bug-detail .bd-fact .dp-anchor { margin:0; padding-top:1px; font-size:12.5px; }
.bug-detail .bd-fact .dp-anchor code { color:var(--ui-ink-strong); }
/* The lines themselves, the bug's own line marked. Code does not wrap and never scrolls
   sideways: a long line ends in an ellipsis, and the whole excerpt is under More details. */
.bd-snippet { margin:10px 0 0; padding:8px 0; background:var(--ui-sunk); border:1px solid var(--bkz-border-hairline);
  font:12px/1.7 var(--bkz-font-mono); color:var(--ui-ink-body); white-space:pre; overflow:hidden; }
.bd-sn { display:inline-block; width:100%; box-sizing:border-box; padding-right:12px; vertical-align:top;
  overflow:hidden; text-overflow:ellipsis; }
.bd-sn-n { display:inline-block; padding:0 8px 0 4px; color:var(--ui-ink-faint); user-select:none; }
.bd-sn-t { white-space:pre; }
.bd-sn.is-hit { background:color-mix(in srgb, var(--bkz-warn-ink) 11%, transparent); box-shadow:inset 2px 0 0 var(--bkz-warn-ink); }
.bd-sn.is-hit .bd-sn-n { color:var(--bkz-warn-ink); }
/* Expected against actual: the situation as a caption, then the two sentences side by side. */
.bd-when { margin:0 0 8px; font-size:13.5px; line-height:1.55; color:var(--ui-ink-body); }
.bd-when b, .bd-cell b { font:500 10px/1.6 var(--bkz-font-mono); letter-spacing:.08em; text-transform:uppercase; color:var(--ui-ink-faint); }
.bd-when b { margin-right:8px; }
.bd-when code { background:none; padding:0; overflow-wrap:anywhere; }
.bd-steps { margin:0 0 8px; font-size:13.5px; line-height:1.55; color:var(--ui-ink-body); }
.bd-steps b { font:500 10px/1.6 var(--bkz-font-mono); letter-spacing:.08em; text-transform:uppercase; color:var(--ui-ink-faint); }
.bd-steps ol { margin:2px 0 0; padding-left:20px; }
.bd-pair { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:8px; }
.bd-cell { padding:9px 12px 10px; border:1px solid var(--bkz-border-hairline); background:var(--ui-card); }
.bd-cell b { display:flex; align-items:center; gap:7px; }
.bd-cell b::before { content:""; flex:none; width:6px; height:6px; border-radius:50%; background:var(--ui-ink-faint); }
.bd-cell[data-cell="expected"] b::before { background:var(--bkz-success-ink); }
.bd-cell[data-cell="actual"] b::before { background:var(--bkz-danger-ink); }
.bd-cell p { margin:3px 0 0; font-size:13px; line-height:1.55; color:var(--ui-ink-body); overflow-wrap:anywhere; }
.bd-cell.muted p { color:var(--ui-ink-muted); }
.bd-happens dd > .dp-shots, .bd-happens dd > .dp-shot-strip { margin-top:10px; }
/* The proof and reach lines, and a step with no picture, follow the pair (bug-drawer-facts.ts). */
.bd-pair + .bd-when { margin-top:10px; }
.bd-cause dd > span { margin-right:6px; }
/* How we know · where it has got to: one quiet line under the answers, the links kept. */
.bd-foot { margin:0; padding:12px 0; border-top:1px solid var(--bkz-border-hairline);
  font-size:12.5px; line-height:1.6; color:var(--ui-ink-muted); }
.bd-foot-know { white-space:nowrap; }
.bd-st code { background:none; padding:0; overflow-wrap:anywhere; }
.bd-st-link { color:var(--ui-ink-body); text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--ui-border-hover); }
.bd-st-link:hover { color:var(--ui-ink-strong); text-decoration-color:currentColor; }
/* More details: everything else, one closed group, what is inside said on its summary. */
.bd-more { margin:6px 0 0; border-top:1px solid var(--bkz-border-hairline); }
.bd-more > .bd-more-sum { display:flex; align-items:baseline; gap:10px; padding:14px 0; cursor:pointer; list-style:none;
  font-size:13.5px; font-weight:500; color:var(--ui-ink-body); }
.bd-more > .bd-more-sum::-webkit-details-marker { display:none; }
.bd-more > .bd-more-sum::before { content:"\25B8"; font-size:10px; color:var(--ui-ink-faint); transition:transform 140ms ease; }
.bd-more[open] > .bd-more-sum::before { transform:rotate(90deg); }
.bd-more > .bd-more-sum:hover, .bd-more[open] > .bd-more-sum { color:var(--ui-ink-strong); }
.bd-more-what { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:right;
  font:400 11.5px/1.4 var(--bkz-font-mono); color:var(--ui-ink-faint); }
.bd-more-body { padding:0 0 4px 18px; }
.bug-detail .bd-more-body .dp-fold:first-child { border-top:0; }
/* The deck: the presses on one line with Decide at its end, the export under them. */
.bug-detail .dp-drawer-foot { gap:10px; }
.bug-detail .gd-actions > .gd-action-menu { margin-left:auto; }
.bug-detail .dp-drawer-foot > .bug-detail-export { display:flex; }
@media (max-width:700px) {
 .bd-fact { grid-template-columns:minmax(0,1fr); row-gap:5px; padding:12px 0; }
 .bd-fact > dt { padding-top:0; }
 .bd-pair { grid-auto-flow:row; }
 .bd-more-what { display:none; }
 .bd-more-body { padding-left:0; }
 /* Three tidy rows instead of five: Ship a fix alone, then do both beside File an issue, then
    Decide beside the export. The deck's own box steps aside so all six share one wrap. */
 .bug-detail .dp-drawer-foot { flex-direction:row; flex-wrap:wrap; }
 .bug-detail .dp-drawer-foot > .gd-actions { display:contents; }
 .bug-detail .gd-actions > * { flex:1 1 calc(50% - 5px); min-width:0; }
 .bug-detail .gd-actions > .gd-ship, .bug-detail .gd-actions > .gd-half[data-half="fix"],
 .bug-detail .gd-actions > .dp-open-pr { flex-basis:100%; }
 .bug-detail .gd-actions > .gd-both { margin:0; }
 .bug-detail .gd-actions > .gd-action-menu { margin-left:0; flex:0 0 auto; }
 .bug-detail .gd-actions > .gd-action-menu > summary { padding-left:16px; padding-right:16px; }
 /* Wide enough for its own label, or it takes a row of its own: never squeezed past it. */
 .bug-detail .dp-drawer-foot > .bug-detail-export { flex:1 1 212px; min-width:0; }
 .bug-detail .dp-drawer-foot > .bug-detail-export .dp-export-bug { width:100%; justify-content:center; padding:9px 10px; }
}
.activity-live { display:flex; align-items:center; gap:18px; }
/*
 * The quiet reviews, and the one press that shows them.
 *
 * A workspace at its review limit fills this list with rows that each correctly say nothing
 * happened, and they push what was FOUND off the screen. Hidden by default, counted on the
 * button so nothing is secretly missing, and one press away.
 *
 * A checkbox and a label — no script. It works on the first paint, and a failed asset cannot
 * leave a reader unable to see their own rows. The glyph ramp fills left to right as the
 * hidden rows come out and drains when they go back.
 */
/* The reveal: a button at the foot of the rows, not a caption across them.
   
   It was an inline-flex label in a flex column, which stretches — so a control the width of
   its words became a bar the width of the list, in 10px muted uppercase mono, and read as a
   status line. It wears `.btn` now, the class every other press in this product wears, plus
   a chevron that turns; the bar around it is what keeps it off the rows. Staging still
   emits the bar above the list; `order` puts it under the rows either way. */
[data-review-list] > .rv-quiet-bar { order: 2; }
[data-review-list] > .pager { order: 3; }
.rv-quiet-bar { display:flex; align-items:center; justify-content:flex-end; gap:10px; padding:10px 22px; }
.rv-quiet.btn { display:inline-flex; align-items:center; gap:7px; cursor:pointer; user-select:none; }
.rv-quiet-chev { display:inline-flex; color:var(--ui-ink-muted); transition:transform 180ms ease, color 140ms ease; }
.rv-quiet.btn:hover .rv-quiet-chev { color:inherit; }
.rv-quiet-glyphs { display:inline-flex; align-items:center; gap:3px; font-size:9px; color:var(--ui-ink-faint); }
.rv-quiet-glyphs i { font-style:normal; opacity:.25; transition:opacity 220ms ease; }
.rv-quiet-bar:hover .rv-quiet-glyphs i { animation:gd-rail 1s linear infinite; }
.rv-quiet-glyphs i:nth-child(2) { animation-delay:.11s; }
.rv-quiet-glyphs i:nth-child(3) { animation-delay:.22s; }
.rv-quiet-glyphs i:nth-child(4) { animation-delay:.33s; }
.rv-quiet-hide { display:none; }
/* The GROUP goes, not the row inside it: the row's history and the group's separator belong
   to the same unit, and hiding only the row left a floating "> N earlier attempts" band with
   no title above it. See dashboard.ts `reviewRow`. */
.revrow-group[data-rv-quiet] { display:none; }
/* Pressed: the chevron turns up, the ramp lights end to end, the rows come out, and the
   button says how to put them back. */
.rv-quiet-input:checked ~ .rv-quiet-bar .rv-quiet-chev { transform:rotate(180deg); color:inherit; }
.rv-quiet-input:checked ~ .rv-quiet-bar .rv-quiet-glyphs i { opacity:.9; animation:none; }
.rv-quiet-input:checked ~ .rv-quiet-bar .rv-quiet-show { display:none; }
.rv-quiet-input:checked ~ .rv-quiet-bar .rv-quiet-hide { display:inline; }
.rv-quiet-input:checked ~ .revlist .revrow-group[data-rv-quiet],
.rv-quiet-input:checked ~ * .revrow-group[data-rv-quiet] { display:flex; }
/* The checkbox is the control; the label is its face. Visually hidden rather than `hidden`,
   so Tab reaches it and Space presses it, with the ring drawn where the reader is looking. */
.rv-quiet-input:focus-visible ~ .rv-quiet-bar .rv-quiet { outline:2px solid var(--brand); outline-offset:2px; }
@media (prefers-reduced-motion: reduce) {
  .rv-quiet-bar:hover .rv-quiet-glyphs i { animation:none; opacity:.6; }
  .rv-quiet-chev { transition:none; }
}
.activity-live { display:flex; align-items:flex-start; gap:20px; }
/*
 * The buffer gets a screen of its own.
 *
 * Two problems, one frame. A .bkz-loader is an empty <pre> until loader.js fills it, so the
 * column had no width on the first paint and the text sat hard against the panel's edge;
 * then the globe painted WIDER than the space reserved for it and its ragged glyph edge
 * ran under the sentence beside it. A fixed, bordered, clipped box is the same shape before
 * and after the first frame, contains the ramp's overshoot, and reads as what it is — a
 * small screen with the work moving on it, beside the words about the work.
 */
.activity-buffer { flex:none; width:136px; height:104px; display:flex; align-items:center; justify-content:center;
  overflow:hidden; border:1px solid var(--bkz-border-hairline); border-radius:4px; background:var(--ui-sunk); }
.activity-buffer .bkz-loader { margin:0; }
.activity-buffer .bkz-loader-grid { font-size:11px; line-height:1.05; }
/* The card lost its decorative halftone square (see `activityFrame`), so the words that were
   beside it now have the whole width. Kept as a flex child rather than rewritten, because the
   same frame is used by the sweep card and by the scan card. */
.activity-said { min-width:0; flex:1; }
/* Running, as a state: the pulse and the clock, not a small blue heading. */
.activity-state { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 6px; }
.activity-state .tag { flex:none; }
.activity-state-what { color:var(--ui-ink-body); font-size:12px; }
.activity-state-when { color:var(--ui-ink-soft); font-size:11px; margin-left:auto; font-variant-numeric:tabular-nums; }
@media (max-width: 600px) { .activity-buffer { width:96px; height:76px; } .activity-buffer .bkz-loader-grid { font-size:8px; } .activity-state-when { margin-left:0; } }
.activity-counts { margin:6px 0 10px; color:var(--ui-ink-muted); font-size:13px; font-variant-numeric:tabular-nums; }
@media (max-width: 600px) { .activity-live { gap:12px; } .activity-buffer { transform:scale(.85); transform-origin:left top; } }
.activity-metrics { margin: 8px 0; font-variant-numeric: tabular-nums; color: var(--ui-ink-body); }
.activity-context { margin: 6px 0 14px; color: var(--ui-ink-muted); font-size: 13px; max-width: 80ch; }
.activity-details > summary { width: fit-content; cursor: pointer; color: var(--ui-ink-muted); font-size: 13px; padding: 4px 0; }
.activity-details[open] > summary { margin-bottom: 12px; }
.activity-view .scan-tile-steps { font-size: 13px; }
.activity-view .scan-tile-steps .st-mark { animation: none; }
.activity-view .scan-tile-log, .activity-view .scan-tile-aside { margin: 12px 0 0; }
.activity-view .scan-tile-actions:empty { display: none; }
.activity-view .scan-tile-actions { margin-top: 12px; }
/* The bar under a long list — one component, on the bug board and on the code reviews both
   (kit.ts `pager`). Size on the left, where-you-are beside it, the two steps pushed right.
   The menu opens UPWARD: this sits at the foot of the page, and a menu that drops below it
   opens off the bottom of the document. */
.pager { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 20px 20px; border-top: 1px solid var(--ui-border); font-size: 13px; }
.pager-size { display: flex; align-items: center; gap: 7px; color: var(--ui-ink-muted); font-size: 12px; }
.pager-size > span { white-space: nowrap; }
.pager .dd { min-width: 72px; }
.pager-range { font-variant-numeric: tabular-nums; }
.pager-controls { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.pager-at { min-width: 3em; text-align: center; font-variant-numeric: tabular-nums; }
.pager .dd-menu { top: auto; bottom: calc(100% + 6px); }
@media (max-width: 600px) {
  .activity-view .scan-tile-when { width: 100%; margin: 0; }
  .activity-view .scan-tile-activity { font-size: 17px; }
  .activity-view .scan-tile-steps li { grid-template-columns: 14px minmax(0, 1fr); }
  .activity-view .st-what { grid-column: 2; }
  .pager { gap: 12px; }
  .pager-controls { width: 100%; justify-content: space-between; }
}

/* ── Today's two numbers, and a pull request's earlier reviews ────────────────────────────
   `.rv-today` is one quiet line above the review list: what is still open from today and
   what went in clean. It reads as a caption, never as a status banner — the founder has
   twice called a stretched mono count a status line, so this is body register, left, one
   line, and it renders nothing at all when both numbers are zero. Same 22px gutter as the
   rows, and padding under the line so it does not sit on the first title.

   `.rvh` is the per-pull-request review history: every push re-reviews, and the earlier
   attempts now sit behind one disclosure on the row instead of stacking as rows of their
   own. Closed by default, flush with the row's left text column so it reads as belonging to
   that row, and absent entirely when a pull request was reviewed once. */
.rv-today { margin: 0; padding: 16px 22px; color: var(--ui-ink-soft); font-size: 13px; line-height: 1.45; }
.rv-today strong { color: var(--ui-ink-strong); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── A pull request's earlier reviews, attached to the row they belong to ─────────────────
   The disclosure used to be a sibling in the list, so it rendered as a detached band in the
   dead space below its row: three floating "> N earlier reviews" lines with nothing saying
   which pull request each belonged to. `.revrow-group` is the row and its history as one
   unit — the group owns the separator, the row inside it draws none. */
.revrow-group { display: flex; flex-direction: column; border-bottom: 1px solid var(--bkz-border-hairline); }
.revrow-group > .uilist-row, .revrow-group > .revrow { border-bottom: 0; }

/* The control, which has to LOOK like one. It was a 10px chevron and grey text in the
   margin; the founder could not see it. It is a chip now: bordered, hovered, aligned under
   the row's title so it reads as belonging to that row and to nothing else. */
.rvh { margin: 0 0 10px; padding: 0 22px 0 22px; }
.rvh > summary {
  display: inline-flex; align-items: center; gap: 7px; width: fit-content;
  padding: 4px 10px 4px 7px; border: 1px solid var(--ui-border); border-radius: 0;
  background: var(--ui-sunk); color: var(--ui-ink-soft);
  font-size: 12px; cursor: pointer; list-style: none;
  transition: border-color var(--bkz-duration-base, 140ms) var(--bkz-ease-settle, ease),
              color var(--bkz-duration-base, 140ms) var(--bkz-ease-settle, ease);
}
/* The summary carries this class as well as being `.rvh > summary`; the rules above reach it
   by position, and a class the sheet never defines is the defect this product files against
   other people's code. Named here so the two agree. */
.rvh-open { cursor: pointer; }
.rvh > summary::-webkit-details-marker { display: none; }
.rvh > summary:hover { border-color: var(--ui-border-hover); color: var(--ui-ink-strong); }
.rvh > summary:focus-visible { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ui-blue, #5aa8e0) 45%, transparent); }
.rvh-arrow { display: inline-flex; color: var(--ui-ink-faint); transition: transform var(--bkz-duration-base, 140ms) var(--bkz-ease-settle, ease); }
.rvh[open] > summary .rvh-arrow { transform: rotate(90deg); }
.rvh > summary:hover .rvh-arrow { color: var(--ui-ink-body); }
.rvh-label { font-weight: 500; }
/* Says what pressing it gets you. Hidden on a narrow screen, where the label is enough. */
.rvh-hint { color: var(--ui-ink-faint); }
@media (max-width: 700px) { .rvh-hint { display: none; } }

/* THE LIST OPENS IN PLACE, AND ALL OF IT DOES.
   The first attempt collapsed the list with `grid-template-rows: 0fr`. That is the right
   trick for a wrapper holding ONE child and the wrong one here: `.rvh-list` holds one row
   per earlier review, so `0fr` sized only the FIRST track and left every other row at its
   full height. Measured on the shipped build in the founder's own browser, three earlier
   reviews: closed tracks `0px 44.8px 44.8px`. Two rows of the three were already full
   height, so pressing it revealed about ninety pixels instantly and animated forty-five —
   the jump it was supposed to remove, most of it still there.
   A `details` also hides its content outright while closed, so a transition declared on a
   descendant has nothing to run from on the way open. `::details-content` is the box the
   browser itself reveals; animating that animates the whole disclosure, once, and
   `interpolate-size` is what permits `auto` as an endpoint. It is set on `.rvh` rather than
   `:root` because it inherits, and turning keyword interpolation on application-wide would
   quietly change every other transition in the product. */
.rvh { interpolate-size: allow-keywords; }
.rvh::details-content {
  block-size: 0; overflow: hidden; overflow-anchor: none;
  transition: block-size var(--bkz-duration-slow, 220ms) var(--bkz-ease-settle, ease),
              content-visibility var(--bkz-duration-slow, 220ms) allow-discrete;
}
.rvh[open]::details-content { block-size: auto; }
.rvh-list { list-style: none; margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) { .rvh::details-content { transition: none; } }

.rvh-row {
  display: grid; grid-template-columns: max-content max-content minmax(0, 1fr) max-content max-content;
  align-items: center; gap: 10px; padding: 7px 10px 7px 12px;
  border-left: 2px solid var(--ui-border); text-decoration: none; color: inherit;
}
.rvh-row:first-child { margin-top: 6px; }
.rvh-row:hover { background: var(--ui-row-hover); border-left-color: var(--ui-blue, #5aa8e0); text-decoration: none; }
.rvh-when { color: var(--ui-ink-faint); font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; white-space: nowrap; }
.rvh-when time { border: 0; }
/* What it found, in its own words — the part the reader opened this for. */
.rvh-said { color: var(--ui-ink-body); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rvh-where { color: var(--ui-ink-faint); font-size: 11px; white-space: nowrap; }
/* Our own retries, reported once and quietly: a customer's pull request should not carry a
   column of red chips about a provider blip on our side. Two columns, not five — there is no
   verdict to show and no file to point at. */
.rvh-quiet { grid-template-columns: max-content minmax(0, 1fr) max-content; color: var(--ui-ink-faint); }
.rvh-quiet .rvh-said { color: var(--ui-ink-faint); font-style: italic; }
.rvh-go { color: var(--ui-ink-faint); font-size: 11px; }
.rvh-row:hover .rvh-go { color: var(--ui-blue, #5aa8e0); }
@media (max-width: 700px) {
  .rvh-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rvh-where { display: none; }
}

/* ── The scan lane's button ───────────────────────────────────────────────────────────────
   Dead code's "Find removable code" sits alone on the right of its row; "Scan now" used to
   sit inline in a sentence, between "next scheduled scan in 5 days" and "Weekly · next
   automatic scan", so the one pressable thing on the row was the hardest to find and the two
   lanes of one page disagreed about where a button lives. `.gd-scan-cta` now takes
   `.gd-row-run` for the position, and this is the tone.

   Its own colour rather than the cream primary, because two identical buttons on one page —
   one per lane — are a coin flip. The blue is `--ui-eyebrow`'s #5aa8e0, already this theme's
   accent for repository names and section labels, so nothing new is introduced; it is mixed
   with the surface so it reads as a tint in the dark theme rather than a saturated chip, and
   stated again under the light theme where the same mix would wash out. */
:root { --ui-blue: #5aa8e0; }
.btn-blue {
  background: color-mix(in srgb, var(--ui-blue) 16%, var(--ui-surface));
  border-color: color-mix(in srgb, var(--ui-blue) 42%, var(--ui-border));
  color: color-mix(in srgb, var(--ui-blue) 62%, var(--ui-ink-strong));
}
.btn-blue:hover {
  background: color-mix(in srgb, var(--ui-blue) 26%, var(--ui-surface));
  border-color: color-mix(in srgb, var(--ui-blue) 62%, var(--ui-border));
  color: var(--ui-ink-strong);
}
.btn-blue:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ui-blue) 45%, transparent); }
:root[data-theme="light"] .btn-blue {
  background: color-mix(in srgb, var(--ui-blue) 12%, #ffffff);
  border-color: color-mix(in srgb, var(--ui-blue) 48%, var(--ui-border));
  color: #1d4f77;
}
:root[data-theme="light"] .btn-blue:hover { background: color-mix(in srgb, var(--ui-blue) 20%, #ffffff); color: #13364f; }
/* The CTA keeps `gd-row-run`'s right alignment; its older rule pinned it left. */
.gd-row-standing.gd-scan-cta.gd-row-run { justify-content: flex-end; padding: 8px 0 12px; }

/* ── The dead-code toolbar, which is the bug board's toolbar ──────────────────────────────
   `.dcq-toolbar` now carries `.bug-toolbar` as well, so the layout, the search field, the
   live count and the menus are the SAME rules the Bugs tab uses rather than a second set that
   drifts from it. What remains here is only what this board has and Bugs does not: the
   Open PRs / History group, which stays two buttons because it is the one dimension where
   both counts have to be readable without opening anything. */
.dcq-toolbar.bug-toolbar .dcq-filters { display: flex; gap: 4px; align-items: center; }
.dcq-toolbar.bug-toolbar .dcq-filters button {
  border: 1px solid transparent; background: transparent; color: var(--ui-ink-soft);
  border-radius: 0; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer;
}
.dcq-toolbar.bug-toolbar .dcq-filters button[aria-pressed=true] {
  background: var(--ui-surface); border-color: var(--ui-border); color: var(--ui-ink-strong);
}
.dcq-toolbar.bug-toolbar .dcq-filters button span { margin-left: 6px; opacity: .7; font-variant-numeric: tabular-nums; }
/* The pager sits under the list, never inside it. */
[data-deadcode-queue] > .pager { margin-top: 4px; }
[data-deadcode-queue] > .pager[hidden] { display: none; }

/* ── A pull request's GitHub labels, in GitHub's own colours ──────────────────────────────
   The hex comes from `DEADCODE_LABELS` — the same list that creates these labels on the
   repository — so a label reads the same colour on the board and on GitHub, and editing one
   changes both. `--gh` is that hex; a label we did not create carries no `--gh` and falls
   back to the ordinary chip rather than a guessed hue.

   Drawn GitHub's way: the colour at low alpha behind its own text with a matching border.
   Mixed against the surface so one rule serves both themes. */
/* THE ELLIPSIS HAS TO HAVE SOMETHING TO WORK ON.
   `.tag` is `display: inline-flex`, and `text-overflow` applies only to a BLOCK container —
   so this rule declared an ellipsis and painted none, cutting the word in half instead:
   `DEADCODE: SUPERSE`. `inline-block` is the whole fix; these chips hold one text child, so
   nothing needed the flex box.
   And the cap was a third smaller than it read. `22ch` counts 22 zero-widths of the mono
   face and knows nothing about the `0.12em` tracking `.tag` adds to every character, nor
   about the 18px of padding inside the border box — so it admitted about fifteen characters,
   not twenty-two. The tracking is dropped here (these are words, not the two-word micro-labels
   the letterspacing was drawn for) and the cap restated at a width that matches the longest
   name the vocabulary can now produce, `discarded computation`. */
.dcq-label { display: inline-block; max-width: 26ch; letter-spacing: .04em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcq-label[style*="--gh"] {
  background: color-mix(in srgb, var(--gh) 16%, var(--ui-surface));
  border-color: color-mix(in srgb, var(--gh) 44%, var(--ui-border));
  color: color-mix(in srgb, var(--gh) 55%, var(--ui-ink-strong));
}
:root[data-theme="light"] .dcq-label[style*="--gh"] {
  background: color-mix(in srgb, var(--gh) 14%, #ffffff);
  border-color: color-mix(in srgb, var(--gh) 50%, var(--ui-border));
  color: color-mix(in srgb, var(--gh) 72%, #202020);
}
/* The closed reveal is the review list's bar; only its placement in this list is local. */
.dcq-closed-bar { margin-top: 4px; }

/* ── How far the fix has got, inside the tag that says it is happening ────────────────────
   "being solved" alone is a black box over a run that takes minutes. The bar is the run's own
   phase log — the same five-step ladder the pull request comment renders — drawn as a
   hairline along the BOTTOM EDGE of the tag rather than as a second control beside it: the
   tag says what is happening and this says how far, one object rather than two.

   It inherits the live tone, so it cannot drift from the tag it sits in. `bug-live.js`
   repaints `.bug-row-state` every few seconds, so the width moves on its own. */
.tag-solving { position: relative; overflow: hidden; }
.tag-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: color-mix(in srgb, currentColor 16%, transparent);
}
.tag-progress > i {
  display: block; height: 100%; background: currentColor; opacity: .85;
  transition: width var(--bkz-duration-slow, 220ms) var(--bkz-ease-settle, ease);
}
@media (prefers-reduced-motion: reduce) { .tag-progress > i { transition: none; } }

/* The clause that says why a fix did not ship — quieter than the tag it qualifies, because
   the tag is the fact and this is the footnote. The full reason is on the tag's hover. */
.bug-outcome-why { color: var(--ui-ink-faint); font-weight: 400; }

/* ── Both does two things, so the Fix cell says two things ───────────────────────────────
   Each half on its own line: what happened to it, and a link to what it made. A press that
   filed nothing and said nothing is what sent the founder back to this screen twice. */
.ops-half { display: block; line-height: 1.5; }
.ops-half + .ops-half { margin-top: 1px; }
.ops-half a { text-decoration: underline; text-underline-offset: 2px; }
.ops-half-bad { color: var(--ui-ink-soft); cursor: help; }

/*
 * ADVICE — the walker's second register, and it must not look like a bug.
 *
 * A defect earns a severity chip, a red edge and a fix button. A suggestion earns none of those,
 * because nothing is broken: it is something this product does nearly everywhere and one place
 * it does not, counted from the product's own screens. Styled quieter than a bug row on purpose —
 * same rhythm and the same hairline, so it reads as part of the board, but no alarm colour and
 * no action, so nobody triages it as a defect.
 */
.advice-board .gd-list { border-top: 1px solid var(--bkz-border-hairline); }
.advice-lede { margin: 0 0 10px; color: var(--ui-ink-muted); font-size: var(--bkz-text-sm); max-width: 68ch; line-height: 1.5; }
/* A suggestion is a bug row (`.bug-row-grid`, see adviceRow): the same fixed tracks, so its kind
   and its one status start at the same x as the bugs' area and status above it, and the empty
   "found" track keeps its width. It has no severity pill, so the title takes the pill's track,
   and where area and status drop under the path they line up with the title. */
.bug-board .advice-row.bug-row-grid .bug-row-main.gd-card { grid-template-columns:minmax(0,1fr); }
.advice-row.bug-row-grid .bug-row-main > .gd-title, .advice-row.bug-row-grid .bug-row-main > .bug-where { grid-column:1; }
/* The bug rows above close their gaps to 14px when they carry a tick box; so do these, or the
   two status columns sit 6px apart. */
@media (min-width:1200px) { [data-bug-board]:has(.bug-pick) ~ .advice-board .bug-row.advice-row.bug-row-grid { column-gap:14px; } }
/* Below the desktop width the found stamp sits beside the title; a suggestion has none, so its
   title and labels take that track rather than wrap early beside an empty one. */
@media (max-width:1199px) {
 .bug-board .advice-row.bug-row-grid .bug-row-main.gd-card, .bug-board .advice-row.bug-row-grid .bug-row-state { grid-column:-3 / -1; }
 .bug-board .advice-row.bug-row-grid .bug-row-state { padding-left:20px; }
}
@media (max-width:700px) { .bug-board .advice-row.bug-row-grid .bug-row-state { padding-left:14px; } }

/* Readable outcomes alongside the existing worker diagnostics and raw logs. */
.worker-outcome { margin:12px 0; padding:12px; border:1px solid var(--ui-border); border-radius:6px; }
.worker-outcome dl { margin:8px 0; }
.worker-outcome dl > div { display:flex; justify-content:space-between; gap:16px; margin:5px 0; }
.worker-outcome dt { color:var(--ui-ink-body); }
.worker-outcome dd { margin:0; font-weight:600; }
.worker-outcome > details { margin-top:10px; }
.worker-outcome > details > summary { cursor:pointer; }
.worker-outcome details details { margin-top:10px; }
.worker-outcome .mono { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; }
.worker-log-explanation { font-family:var(--bkz-font-body,sans-serif); font-size:14px; padding-top:12px; color:var(--ui-ink-body); }
.worker-log-raw { opacity:.8; }
#worker-logs-summary { max-height:40vh; overflow:auto; }
#worker-logs-summary .worker-outcome dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 24px; }
@media(max-width:600px){#worker-logs-summary .worker-outcome dl{grid-template-columns:1fr}}

/* Long verification output stays in the bug cell. Tags and proof stay one line. */
.ops-found-bugs .ops-found-row > * { min-width: 0; }
.ops-found-bugs .ops-bug-content, .ops-found-bugs .ops-bug-preview { overflow-wrap: anywhere; }
.ops-found-bugs .ops-found-row > .ops-proof { min-width: 0; overflow-wrap: normal; }
.ops-found-bugs .ops-found-row .tag { white-space: nowrap; }
.ops-bug-preview { margin-top: 8px; }
.ops-bug-preview summary { cursor: pointer; color: var(--bkz-muted); }
.ops-bug-preview dt { font-weight: 600; margin-top: 8px; }
.ops-bug-preview dd { margin: 2px 0 8px; }
.ops-bug-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }

/* Evidence viewer: a native modal keeps the underlying bug drawer intact. */
.dp-shot-open { display:block; width:100%; padding:0; border:0; background:none; cursor:zoom-in; }
.dp-shot-open:focus-visible { outline:2px solid var(--bkz-blue-link); outline-offset:4px; }
.shot-viewer { font-family:'Space Grotesk',sans-serif; width:min(1120px,94vw); max-height:92dvh; box-sizing:border-box; padding:20px; border:1px solid #8fc9ea66; border-radius:8px; background:#111415; color:#f2efe9; overflow:auto; box-shadow:0 24px 100px #000a; }
.shot-viewer::backdrop { background:#080a0dd9; backdrop-filter:blur(8px); }
.shot-viewer-art { position:absolute; inset:0; margin:0; overflow:hidden; color:#8fc9ea14; font:12px/18px monospace; pointer-events:none; user-select:none; }
.shot-viewer header,.shot-viewer footer { position:relative; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.shot-viewer-kicker { color:#8fc9ea; font:11px/1.5 monospace; letter-spacing:.14em; }
.shot-viewer h2 { margin:4px 0 0; font-size:18px; }
.shot-viewer-canvas { position:relative; margin:20px 0; display:flex; justify-content:center; background:#080a0d; border:1px solid #ffffff16; border-radius:4px; overflow:auto; }
.shot-viewer-canvas img { display:block; max-width:100%; max-height:68dvh; object-fit:contain; }
.shot-viewer footer [role=status] { font-size:12px; color:#afbdc5; }
html:has(.shot-viewer[open]) { overflow:hidden; }
@media(max-width:600px) { .shot-viewer { padding:12px; } .shot-viewer h2 { font-size:15px; } .shot-viewer footer { align-items:flex-start; } }

/* Operator preview uses the customer board and drawers, with admin actions below. */
.ops-customer-board{margin-bottom:32px}
.ops-bug-operations{margin:24px 0}
.ops-bug-operations>summary{cursor:pointer;font-size:14px;color:var(--ui-ink-strong);padding:12px 0;border-bottom:1px solid var(--ui-border)}
.ops-bug-operations .ops-found{margin-top:12px}

.worker-reader-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.worker-reader-controls p { margin: 0; flex: 1; }
.worker-reader-controls label, .worker-reader-controls .worker-pick, .worker-reader-controls .worker-since { display: flex; align-items: center; gap: 8px; }
.worker-pick .dd-field, .worker-since .dd-field { width: auto; min-width: 11rem; }
.worker-reader-controls input { min-width: 160px; max-width: 100%; }
.worker-logs-tools { gap: 8px 10px; padding: 10px 0; margin: 4px 0 8px; border-top: 1px solid var(--ui-border); }
.worker-logs-tools label { font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); font-weight: 550; }
.worker-logs-tools .input { width: auto; padding: 6px 10px; font-size: var(--bkz-text-sm); }
.worker-logs-tools select.input { min-width: 148px; }
.worker-logs-tools-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.worker-logs-filter { flex: 1 1 220px; min-width: 0; }
.worker-logs-filter .input { flex: 1; min-width: 0; width: auto; }
#worker-logs-reading { margin: 0 0 8px; font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); }
.worker-logs-dialog .worker-cost { margin: 0; padding: 14px 16px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); background: var(--ui-surface); }
.worker-logs-dialog .worker-cost-figure { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.worker-logs-dialog .worker-cost-figure strong { font-size: 22px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ui-ink-strong); }
.worker-logs-dialog .worker-cost-figure span { font-size: var(--bkz-text-sm); color: var(--ui-ink-soft); }
.worker-logs-dialog .worker-cost-split { margin: 6px 0 0; font-size: var(--bkz-text-sm); color: var(--ui-ink-body); font-variant-numeric: tabular-nums; }
.worker-logs-dialog .worker-cost .ops-note { margin: 8px 0 0; max-width: none; font-size: var(--bkz-text-xs); }
.worker-logs-dialog .worker-outcome { margin: 0; padding: 0; border: 0; background: transparent; }
.worker-logs-dialog .worker-outcome-more { margin-top: 8px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-md); background: var(--ui-sunk); }
.worker-logs-dialog .worker-outcome-more > summary { padding: 10px 14px; cursor: pointer; font-size: var(--bkz-text-sm); font-weight: 600; color: var(--ui-ink-strong); }
.worker-logs-dialog .worker-outcome-more > :not(summary) { margin: 0 14px 12px; }
.worker-logs-dialog .worker-outcome-more dl { margin: 0 14px 12px; }
.worker-log-row { overflow-anchor: none; padding: 10px 14px; border-bottom: 1px solid var(--bkz-border-hairline, var(--ui-border)); }
.worker-log-row:last-child { border-bottom: 0; }
.worker-logs-body { overflow-anchor: none; }
.worker-log-explanation { font-family: var(--bkz-font-body, sans-serif); font-size: var(--bkz-text-sm); font-weight: 600; line-height: 1.4; padding: 0 0 4px; color: var(--ui-ink-strong); }
.worker-log-raw { opacity: 1; color: var(--ui-ink-muted); font-size: 12px; line-height: 1.5; }
.worker-history { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ui-border); }
.worker-history > p { color: var(--ui-ink-muted); margin: 12px 0; }
#task-history-form { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); align-items: end; gap: 16px; }
#task-history-form label, #task-history-form .worker-pick, #task-history-form .worker-since { flex-direction: column; align-items: stretch; font-size: 12px; }
#task-history-form .worker-pick .dd-field, #task-history-form .worker-since .dd-field { width: 100%; }
#task-history-form .worker-since-custom[hidden] { display: none; }
#task-history-form .input { width: 100%; min-width: 0; }
#task-history-form button { justify-self: start; }
#task-history-results pre { white-space: pre-wrap; overflow-wrap: anywhere; }
#task-history-results dd { overflow-wrap: anywhere; }

/* ---------- other people's repositories this person can access ----------
   A heading inside the workspace menu, set apart from the workspaces above it: these are
   repositories in somebody else's account, not places this person can switch to. */
.sb-ws-menu .sb-ws-group { padding: 12px 12px 4px; margin-top: 6px; border-top: 1px solid var(--bkz-border-hairline); }

/* What maintainers said (src/ui/oss-replies.ts). On the landing: one slow strip along the
   bottom of the mark, every reply in rank order, twice so the loop has no seam. */
.as-replies { position: absolute; left: 0; right: 0; bottom: clamp(12px, 2.6vh, 26px); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.as-replies-track { display: flex; gap: 56px; width: max-content; margin: 0; padding: 0; list-style: none;
  animation: as-replies-scroll 420s linear infinite; }
.as-replies:hover .as-replies-track, .as-replies:focus-within .as-replies-track { animation-play-state: paused; }
.as-reply { flex: none; white-space: nowrap; }
.as-reply a { color: inherit; text-decoration: none; }
.as-reply-text { font: 500 13px/1.4 var(--bkz-font-sans); letter-spacing: -0.01em; color: rgba(242,242,242,.8); }
.as-reply a:hover .as-reply-text, .as-reply a:focus-visible .as-reply-text { color: #ffffff; }
.as-reply-by { margin-left: 12px; font: 500 10px/1 var(--bkz-font-mono); letter-spacing: .12em; color: rgba(242,242,242,.5); }
@keyframes as-replies-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .as-replies { overflow-x: auto; }
  .as-replies-track { animation: none; }
}

/*
 * REAL-WORLD FAILURES (src/product/real-world/board.ts): "Bugs people and agents hit" and
 * "Features they asked for". The rows ARE bug rows (`.bug-row-grid`, same tracks); what is new is
 * only what they carry that a scan bug does not — an agent's words as a quotation, the counts in
 * the area track, the loop's four steps, the sandbox transcript, the audit log.
 */
.rwf-intent { font-style:italic; color:var(--ui-ink-muted); }
.rwf-counts { cursor:var(--cursor-mark); font-variant-numeric:tabular-nums; }
.bug-sev.rwf-accounts { color:var(--ui-ink-body); border-color:var(--bkz-border-hairline); background:var(--ui-sunk); text-transform:none; letter-spacing:0; }
.rwf-ladder { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 12px; padding:0; list-style:none; font:500 11px/1.4 var(--bkz-font-mono); }
.rwf-ladder > li { padding:2px 8px; border:1px solid var(--bkz-border-hairline); color:var(--ui-ink-faint); }
.rwf-ladder > li.is-done { color:var(--ui-ink-muted); }
.rwf-ladder > li.is-now { color:var(--ui-ink-strong); border-color:var(--ui-border-hover); }
.rwf-ladder > li.is-bad { color:var(--bkz-danger-ink); border-color:var(--bkz-danger-border); }
.rwf-transcript { max-height:320px; overflow:auto; margin:6px 0 0; padding:10px; background:var(--ui-sunk); border:1px solid var(--ui-border);
  font:12px/1.5 var(--bkz-font-mono); white-space:pre-wrap; word-break:break-word; color:var(--ui-ink-body); }
.rwf-pending, .rwf-quotes, .rwf-audit { margin:6px 0 0; padding-left:18px; font-size:var(--bkz-text-sm); line-height:1.5; color:var(--ui-ink-body); }
.rwf-pending > li, .rwf-quotes > li, .rwf-audit > li { margin:3px 0; }
.rwf-quotes label { cursor:pointer; }
.rwf-merged .gd-decide, .rwf-inline { display:inline-flex; margin-left:6px; vertical-align:middle; }
.rwf-merge-into { margin-right:6px; max-width:60%; }
/* Scout's three groups: a quiet heading with its count, one line saying what the group holds. */
.rwf-group + .rwf-group { margin-top: 18px; }
.rwf-group-h { display:flex; align-items:baseline; gap:8px; margin:14px 0 2px; font:600 var(--bkz-text-sm)/1.4 var(--bkz-font-sans); color:var(--ui-ink-strong); }
.rwf-group-n { font:500 11px/1.4 var(--bkz-font-mono); color:var(--ui-ink-faint); font-variant-numeric:tabular-nums; }
.rwf-group-lede { margin:0 0 8px; max-width:72ch; font-size:12px; line-height:1.5; color:var(--ui-ink-muted); }
.rwf-empty { margin:6px 0 4px; max-width:68ch; font-size:var(--bkz-text-sm); line-height:1.55; color:var(--ui-ink-muted); }
.bug-outcome.is-bad { color:var(--bkz-danger-ink); }

/* Scout's section of Settings: the same list and rows as every other section, one switch a
   repository. The mark is the ▚▚ pixels, drawn in the ink colour so it follows the theme. */
.scout-settings .set-sec-h > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.scout-mark {
  display: inline-block; width: 22px; height: 10px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='10'%3E%3Crect width='5' height='5'/%3E%3Crect x='5' y='5' width='5' height='5'/%3E%3Crect x='12' width='5' height='5'/%3E%3Crect x='17' y='5' width='5' height='5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='10'%3E%3Crect width='5' height='5'/%3E%3Crect x='5' y='5' width='5' height='5'/%3E%3Crect x='12' width='5' height='5'/%3E%3Crect x='17' y='5' width='5' height='5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.scout-settings .scout-repo .srow-t { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.scout-settings .scout-repo-name { overflow-wrap: anywhere; font-weight: 500; }
.scout-settings .srow-r { gap: 10px; }
.scout-settings .srow-r form { margin: 0; }
.scout-settings .btn { letter-spacing: 0; }
.scout-data summary { cursor: pointer; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.scout-data[open] summary { margin-bottom: 6px; }
.scout-data ul { margin: 0; padding-left: 18px; max-width: 80ch; font-size: var(--bkz-text-sm); line-height: 1.55; color: var(--ui-ink-muted); }
.scout-data li + li { margin-top: 6px; }
.scout-data b { color: var(--ui-ink-body); font-weight: 600; }
.scout-autofix-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--bkz-border-hairline); }
.scout-autofix-t { margin: 0 0 2px; font-size: var(--bkz-text-sm); font-weight: 600; color: var(--ui-ink-strong); }
.scout-autofix-row form { margin: 0; flex: none; }
.scout-foot { margin: 10px 2px 0; }
.scout-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* A phone: the switch and the setup link go under the words rather than squeezing them. */
@media (max-width: 600px) {
  .scout-settings .scout-repo { grid-template-columns: minmax(0, 1fr); }
  .scout-settings .scout-repo .srow-r { grid-column: 1; grid-row: 3; justify-self: start; flex-wrap: wrap; white-space: normal; margin-top: 8px; }
}
.scout-test { margin-top: 14px; font-size: 12px; }
.scout-test summary { cursor: pointer; color: var(--ui-ink-muted); }
.scout-test[open] summary { margin-bottom: 10px; }
.scout-test [data-scout-test-status], .scout-test [data-scout-api-status] { margin: 10px 0; }
/* One card per task-path scan run on the worker board (operations/worker-activity.ts groupScanUnits). */
.activity-task-group .worker-task-units summary { cursor:pointer; font-size:var(--bkz-text-xs); color:var(--ui-ink-muted); margin-top:8px; }
.activity-task-group .worker-unit-row { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:6px 0; font-size:var(--bkz-text-xs); color:var(--ui-ink-body); }
.activity-task-group .worker-unit-row[data-log-instance] { cursor:pointer; }
/* A class that opens no pull request, said once per repository (deadcode-queue.ts suggestionRows).
   It is a fact, not a link: its title wears the ink, not the link blue, and wraps on a phone. */
.dcq-suggestions { margin: 6px 0 0; }
.dcq-suggestion .uilist-title { color: var(--ui-ink-strong); white-space: normal; }

/* ── Simulated users on the Bugs board (product/society-board.ts) ─────────────
   Their complaints are bug rows like any other; what is theirs is said quietly: a source
   mark on the grey line, their words as the title, and in the drawer who they were, the
   promise and the replay. Above the list, two lines in the scan bar's own register: your
   promises, and how far people got. Tokens only, so the light flip is free. */
.bug-society { color: color-mix(in srgb, var(--bkz-blue-link) 82%, var(--ui-ink-muted)); }
.bug-society-new { color: var(--bkz-warn-ink); }
/* On the grey line the source, the count and "new" never shrink; who they were gives way first. */
.bug-where > .bug-society, .bug-where > .bug-society-n, .bug-where > .bug-society-new { flex: none; }
.bug-where > .bug-society-who { flex: 0 100 auto; }
.bd-head .bug-society, .bd-head .bug-society-new { font-size: 11.5px; line-height: 1.6; align-self: center; }
.bd-head .bug-society-new::before { content: '·'; margin: 0 6px 0 2px; color: var(--ui-ink-faint); }

.soc-top { --soc-ok: var(--bkz-success-ink); --soc-bad: var(--bkz-danger-ink); margin: -4px 0 12px; min-width: 0;
  interpolate-size: allow-keywords; }
.soc-line { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ui-ink-soft); }
.soc-line + .soc-line { margin-top: 4px; }
.soc-line > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; cursor: pointer; list-style: none; padding: 3px 0; }
.soc-line > summary::-webkit-details-marker { display: none; }
.soc-line > summary::after { content: '\203A'; color: var(--ui-ink-faint); transition: transform var(--bkz-duration-base) var(--bkz-ease-settle); }
.soc-line[open] > summary::after { transform: rotate(90deg); }
.soc-line > summary:hover { color: var(--ui-ink-body); }
.soc-line::details-content { block-size: 0; overflow: hidden;
  transition: block-size var(--bkz-duration-base) var(--bkz-ease-settle), content-visibility var(--bkz-duration-base) allow-discrete; }
.soc-line[open]::details-content { block-size: auto; }
.soc-flat { padding: 3px 0; }
.soc-k { font: 500 10.5px/1.7 var(--bkz-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ui-ink-muted); }
.soc-n { font: 600 12px var(--bkz-font-mono); color: var(--ui-ink-strong); margin-left: -6px; font-variant-numeric: tabular-nums; }
.soc-part { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ui-ink-body); white-space: nowrap; }
.soc-part-bad { color: var(--soc-bad); }
.soc-why { color: var(--bkz-blue-link); }
.soc-asof { color: var(--ui-ink-faint); }
.soc-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ui-ink-faint); transform: translateY(-1px); }
.soc-dot.soc-ok { background: var(--soc-ok); }
.soc-dot.soc-bad { background: var(--soc-bad); }
.soc-fs { color: var(--ui-ink-body); min-width: 0; }
.soc-more-n { color: var(--ui-ink-muted); }
/* The lead journey's stages as cells, each filled to the share of people who reached it. */
.soc-meter { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 36px; gap: 3px; height: 6px; align-self: center; }
.soc-meter i { display: block; background: linear-gradient(90deg, var(--bkz-blue-link) var(--w, 0%), var(--ui-track) 0); }

/* The opened lines: the promises, each quoted; the journeys, a track per stage. */
.soc-plist { list-style: none; margin: 6px 0 10px; padding: 0; border-top: 1px solid var(--bkz-border-hairline); }
.soc-prow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--bkz-border-hairline); }
.soc-pstat { display: inline-flex; gap: 6px; }
.soc-pq q { color: var(--ui-ink-strong); font-size: 13.5px; line-height: 1.5; quotes: '\201C' '\201D'; }
.soc-pq code { display: block; margin-top: 2px; font-size: 11px; color: var(--ui-ink-faint); background: none; padding: 0; overflow-wrap: anywhere; }
.soc-pwhy { color: var(--ui-ink-soft); }
.soc-pcards { display: grid; gap: 2px; margin-top: 4px; }
.soc-pcards a { color: var(--ui-ink-strong); text-decoration: underline; text-decoration-color: var(--ui-border-hover); text-underline-offset: 3px; }
.soc-pcards a:hover { text-decoration-color: currentColor; }
@media (min-width: 900px) { .soc-prow { grid-template-columns: 132px minmax(0, 1fr) 280px; align-items: start; } }
.soc-fbody { display: grid; gap: 10px; margin: 8px 0 10px; }
.soc-funnel { padding: 12px 14px 14px; background: var(--ui-card); border: 1px solid var(--bkz-border-hairline); }
.soc-funnel-h { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; font-weight: 550; color: var(--ui-ink-strong); }
.soc-funnel-h .muted { font: 11px var(--bkz-font-mono); font-weight: 400; white-space: nowrap; }
.soc-stage { display: grid; grid-template-columns: minmax(0, 1fr) 64px; grid-template-areas: "l n" "t t"; gap: 3px 10px; align-items: center; margin-top: 6px; }
.soc-stage-l { grid-area: l; color: var(--ui-ink-body); }
.soc-track { grid-area: t; display: block; height: 6px; background: var(--ui-track); }
.soc-track i { display: block; height: 100%; background: var(--bkz-blue-link); }
.soc-stage-n { grid-area: n; text-align: right; font: 11px var(--bkz-font-mono); color: var(--ui-ink-muted); font-variant-numeric: tabular-nums; }
.soc-stage-n b { color: var(--ui-ink-strong); font-weight: 600; }
@media (min-width: 900px) { .soc-stage { grid-template-columns: 220px minmax(0, 1fr) 64px; grid-template-areas: "l t n"; } }
.soc-drops { margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--ui-border); }
.soc-drops-h { color: var(--ui-ink-strong); font-weight: 500; margin-bottom: 6px; }
.soc-drops ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.soc-drops blockquote { margin: 0; color: var(--ui-ink-body); font-size: 13px; line-height: 1.55; }
.soc-drops blockquote::before { content: '\201C'; color: var(--ui-ink-faint); }
.soc-drops blockquote::after { content: '\201D'; color: var(--ui-ink-faint); }
.soc-drops-more { margin: 6px 0 0; }
.soc-dlist { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 6px; }

/* The honest states: not walked yet, and a build that would not start. */
.soc-state { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; padding: 3px 0; font-size: 12px; line-height: 1.5; color: var(--ui-ink-soft); }
.soc-state .soc-dot { margin-right: 2px; }
/* The sentence shrinks beside its dot: as one long flex item it wrapped below it, leaving the dot alone on a line. */
.soc-state-text { flex: 1 1 0; min-width: 0; }
.soc-state-bad { color: var(--ui-ink-body); }
.soc-state-bad + .soc-line { margin-top: 4px; }
.soc-boot { flex: 1 1 100%; }
.soc-boot > summary { cursor: pointer; width: fit-content; color: var(--ui-ink-muted); }
.soc-boot-reason { margin: 6px 0; padding: 8px 10px; background: var(--ui-sunk); border: 1px solid var(--ui-border); font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ui-ink-body); }
.soc-boot .muted { margin: 0; }

/* In the drawer: their words, who they were, the promise, the replay. */
.soc-words { margin: 0 0 6px; padding-left: 12px; border-left: 2px solid var(--soc-bad, var(--bkz-danger-ink)); color: var(--ui-ink-strong); font-size: 13.5px; line-height: 1.6; }
.soc-who { margin: 0; color: var(--ui-ink-body); }
.soc-who .muted { color: var(--ui-ink-muted); }
.soc-promise { margin: 0; }
.soc-promise q { color: var(--ui-ink-strong); quotes: '\201C' '\201D'; }
.soc-promise code { font-size: 11px; color: var(--ui-ink-faint); background: none; padding: 0; margin-left: 4px; }
.soc-promise-more { margin: 4px 0 0; font-size: 12.5px; }
.soc-promise-more q { quotes: '\201C' '\201D'; }
.soc-replay { display: grid; gap: 8px; }
.soc-frame { margin: 0; }
.soc-frame-open { display: block; width: 100%; padding: 0; border: 1px solid var(--ui-border); background: var(--ui-sunk); cursor: zoom-in; }
.soc-frame img { display: block; width: 100%; max-height: 540px; object-fit: contain; object-position: top center; }
.soc-frame figcaption { margin-top: 6px; font-size: 12.5px; line-height: 1.45; }
.soc-frame-n { display: block; font: 11px var(--bkz-font-mono); color: var(--ui-ink-muted); }
.soc-frame-n b { color: var(--bkz-danger-ink); font-weight: 600; }
.soc-frame-a { display: block; color: var(--ui-ink-strong); overflow-wrap: anywhere; }
.soc-frame-i { display: block; color: var(--ui-ink-muted); }
.soc-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.soc-ticks { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.soc-tick { min-width: 22px; height: 22px; padding: 0 4px; border: 1px solid var(--ui-border); background: transparent; cursor: pointer; font: 11px var(--bkz-font-mono); color: var(--ui-ink-muted); }
.soc-tick:hover { border-color: var(--ui-border-hover); color: var(--ui-ink-strong); }
.soc-tick.on { background: var(--ui-ink-strong); border-color: var(--ui-ink-strong); color: var(--ui-on-accent); }
.soc-tick-bad { border-color: var(--bkz-danger-border); color: var(--bkz-danger-ink); }
.soc-tick-bad.on { background: var(--bkz-danger-ink); border-color: var(--bkz-danger-ink); color: var(--ui-on-accent); }
.soc-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.soc-checks li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 4px; }
.soc-checks q { quotes: '\201C' '\201D'; }
.soc-check { color: var(--bkz-success-ink); }
.soc-steps { margin: 0; padding-left: 20px; display: grid; gap: 5px; }
.soc-steps li > span { display: block; }
.soc-steps .muted { font-size: 12px; }

/* How thorough: who tried what, folded under the board, one dot per person. */
.soc-thorough { margin: 14px 0 0; font-size: 12px; color: var(--ui-ink-soft); }
.soc-thorough > summary { cursor: pointer; list-style: none; width: fit-content; padding: 3px 0; }
.soc-thorough > summary::-webkit-details-marker { display: none; }
.soc-thorough > summary::after { content: '\203A'; display: inline-block; margin-left: 8px; color: var(--ui-ink-faint); transition: transform var(--bkz-duration-base) var(--bkz-ease-settle); }
.soc-thorough[open] > summary::after { transform: rotate(90deg); }
.soc-thorough > summary:hover { color: var(--ui-ink-body); }
.soc-cond { margin: 8px 0 8px; line-height: 2; }
.soc-cond .muted { margin-right: 4px; }
.soc-chip { display: inline-block; max-width: 100%; margin-right: 6px; padding: 0 7px; border: 1px solid var(--ui-border); line-height: 20px; color: var(--ui-ink-body); }
.soc-cov-wrap { overflow-x: auto; border-top: 1px solid var(--bkz-border-hairline); }
.soc-cov { display: grid; grid-template-columns: minmax(96px, max-content) repeat(var(--cols, 1), minmax(64px, 1fr)); min-width: 0; }
.soc-cov-row { display: contents; }
.soc-cov-h, .soc-cov-k, .soc-cov-c { padding: 6px 12px 6px 0; border-bottom: 1px solid var(--bkz-border-hairline); align-self: stretch; display: flex; align-items: center; min-width: 0; }
.soc-cov-h { font: 500 10.5px/1.3 var(--bkz-font-mono); letter-spacing: .04em; color: var(--ui-ink-muted); padding-top: 9px; align-items: flex-end; }
.soc-cov-k { font-weight: 450; color: var(--ui-ink-body); }
.soc-dots { font-size: 28px; line-height: .6; letter-spacing: -1px; white-space: nowrap; vertical-align: middle; }
.soc-dots i, .soc-legend i { font-style: normal; }
.soc-c-ok { color: var(--bkz-success-ink); }
.soc-c-bad { color: var(--bkz-danger-ink); }
.soc-c-mid { color: var(--ui-ink-faint); }
.soc-none { color: var(--ui-ink-faint); }
.soc-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; }
.soc-legend i { font-size: 15px; vertical-align: -1px; }
@media (max-width: 640px) {
  .soc-cov { grid-template-columns: minmax(84px, max-content) repeat(var(--cols, 1), minmax(52px, 1fr)); }
  .soc-cov-h, .soc-cov-k, .soc-cov-c { padding: 6px 6px 6px 0; }
  .soc-cov-h { font-size: 10px; letter-spacing: 0; }
  .soc-meter { display: none; }
}
/* The layers a bug passed to be on the board (bug-layers.ts), compact, in the drawer's How we know. */
.bd-layers { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; font-size: var(--bkz-text-sm); line-height: 1.45; }
.bd-layers li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; }
.bd-layers b { color: var(--ui-ink-muted); font-weight: 500; }

/* ── Home: what your users never had to hit (bugs-and-fixes-view.ts) ─────────────────────────
 *
 * One number, one river, the bugs with their proof. Colour is rationed the way the rest of the
 * console rations it: the river is one body of water in the ink's own tint (one unit, one series,
 * so one colour), status tints appear only where a status is being said (a stall, a harm), and
 * every figure is ink. Both themes come from the tokens; nothing here names a hex. */
:root {
  --bfu-water: color-mix(in srgb, var(--ui-ink-strong) 13%, transparent);
  --bfu-water-on: color-mix(in srgb, var(--ui-ink-strong) 34%, transparent);
}
:root[data-theme="light"] {
  --bfu-water: color-mix(in srgb, var(--ui-ink-strong) 10%, transparent);
  --bfu-water-on: color-mix(in srgb, var(--ui-ink-strong) 26%, transparent);
}

.bfu-hero { padding: 22px 24px 18px; }
.bfu-eyebrow { margin: 0 0 14px; }
.bfu-hero-row { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; }
.bfu-hero-n { font-family: var(--bkz-font-sans); font-size: 64px; font-weight: 600; line-height: .95;
  letter-spacing: -0.045em; color: var(--ui-ink-strong); }
.bfu-hero-n.is-zero { color: var(--ui-ink-faint); }
.bfu-hero-words { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bfu-hero-l { font-size: 19px; font-weight: 550; letter-spacing: -0.015em; color: var(--ui-ink-strong); line-height: 1.25; }
.bfu-hero-m { font-size: var(--bkz-text-lg); color: var(--ui-ink-soft); }
.bfu-hero-m b { color: var(--bkz-success-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bfu-receipt { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--bkz-border-hairline);
  font-size: var(--bkz-text-sm); line-height: 1.55; color: var(--ui-ink-muted); max-width: 86ch; }

/* Bands of the page. A stage's door lands on the list with room above it. */
.bfu-flow, .bfu-quality { padding-bottom: 12px; }
.bfu-bugs { scroll-margin-top: 16px; }
.bfu-caught.has-moments { border-color: var(--bkz-success-border); }

/* The river: five columns over one band. The numbers sit above the water, the names below it. */
.bfu-river { position: relative; margin: 4px 0 6px; }
.bfu-band { position: absolute; left: 0; right: 0; top: 46px; width: 100%; height: 76px; pointer-events: none; }
.bfu-band-water { fill: var(--bfu-water); }
.bfu-band-on { fill: var(--bfu-water-on); }
.bfu-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.bfu-stage-li { min-width: 0; }
.bfu-stage { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding: 0 6px 6px;
  border-radius: var(--bkz-radius-md); color: inherit; text-decoration: none; min-width: 0; }
.bfu-stage:hover { background: var(--ui-row-hover); text-decoration: none; }
.bfu-stage:focus-visible { outline: 2px solid var(--bkz-blue-deep); outline-offset: 2px; }
.bfu-stage-n { font-family: var(--bkz-font-sans); font-size: 30px; font-weight: 600; letter-spacing: -0.03em;
  line-height: 46px; height: 46px; color: var(--ui-ink-strong); }
.bfu-stage-n.is-zero { color: var(--ui-ink-faint); }
.bfu-stage-gap { display: block; height: 76px; }
.bfu-stage-l { margin-top: 8px; font-size: var(--bkz-text-md); font-weight: 600; color: var(--ui-ink-strong); }
.bfu-stage-c { margin-top: 2px; font-size: var(--bkz-text-sm); line-height: 1.35; color: var(--ui-ink-muted); }
.bfu-stage.on .bfu-stage-l { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bfu-stage-bar { display: none; }
.bfu-river-empty { height: 96px; }

/* Where it is standing still. Each line is a door to the bugs it counts. */
.bfu-stalls { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bkz-border-hairline); display: flex; flex-direction: column; gap: 2px; }
.bfu-stalls-h { margin: 0 0 6px; font-size: var(--bkz-text-sm); font-weight: 600; color: var(--ui-ink-strong); }
.bfu-stalls-h .muted { font-weight: 400; }
.bfu-stalls-none { margin: 0; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.bfu-stall { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) 14px; align-items: baseline; gap: 10px;
  padding: 7px 8px; margin: 0 -8px; border-radius: var(--bkz-radius-sm); color: var(--ui-ink-body);
  text-decoration: none; font-size: var(--bkz-text-md); line-height: 1.45; }
.bfu-stall:hover, .bfu-stall.on { background: var(--ui-row-hover); text-decoration: none; }
.bfu-stall-n { font-family: var(--bkz-font-sans); font-weight: 600; font-size: var(--bkz-text-xl); color: var(--ui-ink-strong);
  text-align: right; font-variant-numeric: tabular-nums; }
.bfu-stall-n.is-warn { color: var(--bkz-warn-ink); }
.bfu-stall-w { min-width: 0; }
.bfu-stall-go { color: var(--ui-ink-faint); justify-self: end; }
.bfu-stall:hover .bfu-stall-go { color: var(--ui-ink-strong); }

/* The bugs, worst harm first: a stack of cards with fixed right-hand tracks (list-rows-use-their-width). */
.bfu-cards { display: flex; flex-direction: column; border-top: 1px solid var(--bkz-border-hairline); }
.bfu-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 0;
  border-bottom: 1px solid var(--bkz-border-hairline); }
.bfu-card:last-child { border-bottom: 0; padding-bottom: 4px; }
.bfu-card-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bfu-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bfu-card-repo { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); min-width: 0; overflow-wrap: anywhere; }
.bfu-card-title { font-size: var(--bkz-text-xl); font-weight: 550; line-height: 1.35; color: var(--ui-ink-strong);
  text-decoration: none; overflow-wrap: anywhere; }
.bfu-card-title:hover { color: var(--bkz-blue-deep); text-decoration: none; }
.bfu-who { margin: 0; display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; font-size: var(--bkz-text-md);
  line-height: 1.5; color: var(--ui-ink-body); }
.bfu-who b { font-weight: 500; color: var(--ui-ink-muted); }
.bfu-proof { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.bfu-proof-k { color: var(--ui-ink-muted); }
.bfu-proof-k.is-proven { color: var(--bkz-success-ink); }
.bfu-proof-k.is-proven::before, .bfu-proof-a::before { content: "\2713"; margin-right: 6px; }
.bfu-proof-a { color: var(--ui-ink-body); }
.bfu-harm { padding: 1px 7px; }
.bfu-harm-security { color: var(--bkz-danger-ink); border-color: var(--bkz-danger-border); background: var(--bkz-danger-tint); }
.bfu-harm-lost-work { color: var(--bkz-warn-ink); border-color: var(--ui-warn-border); background: var(--bkz-warn-tint); }
.bfu-harm-wrong-result, .bfu-harm-blocked, .bfu-harm-silent, .bfu-harm-leak { color: var(--ui-ink-body); }
.bfu-shots { display: flex; gap: 8px; min-width: 0; }
.bfu-shot { margin: 0; display: flex; flex-direction: column; gap: 4px; width: 132px; min-width: 0; }
.bfu-shot a { display: block; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-sm); overflow: hidden; background: var(--ui-sunk); }
.bfu-shot img { display: block; width: 100%; height: 84px; object-fit: cover; object-position: top left; }
.bfu-shot figcaption { font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); line-height: 1.3; }
.bfu-fix { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.bfu-fix-l { font-size: var(--bkz-text-sm); line-height: 1.45; color: var(--ui-ink-muted); }
.bfu-pr { color: var(--bkz-blue-deep); text-decoration: none; font-variant-numeric: tabular-nums; }
.bfu-pr:hover { text-decoration: underline; }
.bfu-foot { display: flex; justify-content: flex-end; padding-top: 10px; }
.bfu-more, .bfu-clear { color: var(--bkz-blue-deep); text-decoration: none; font-size: var(--bkz-text-sm); }
.bfu-more:hover, .bfu-clear:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .bfu-card { grid-template-columns: minmax(0, 1fr) 216px; gap: 18px; }
  .bfu-card.has-shots { grid-template-columns: minmax(0, 1fr) 272px 216px; }
}

/* Caught before users: the moment, with its lead time, or the honest empty slot. */
.bfu-caught-list { display: flex; flex-direction: column; }
.bfu-moment { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 16px; align-items: start; padding: 12px 0;
  border-top: 1px solid var(--bkz-border-hairline); }
.bfu-moment:first-child { border-top: 0; padding-top: 2px; }
.bfu-moment-n { font-family: var(--bkz-font-sans); font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -0.03em;
  color: var(--bkz-success-ink); display: flex; flex-direction: column; gap: 4px; }
.bfu-moment-n small { font-size: var(--bkz-text-sm); font-weight: 500; letter-spacing: 0; color: var(--ui-ink-muted); }
.bfu-moment-w { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bfu-moment-l { font-size: var(--bkz-text-md); font-weight: 600; color: var(--ui-ink-strong); }
.bfu-moment-s { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.bfu-moment-s a { color: var(--bkz-blue-deep); text-decoration: none; }

/* Fix quality: three cells, each a figure the product records. */
.bfu-qgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--bkz-border-hairline); }
.bfu-q { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 4px; min-width: 0;
  border-left: 1px solid var(--bkz-border-hairline); }
.bfu-q:first-child { border-left: 0; padding-left: 0; }
.bfu-q-l { font-size: var(--bkz-text-sm); font-weight: 600; color: var(--ui-ink-strong); }
.bfu-q-n { font-family: var(--bkz-font-sans); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
  color: var(--ui-ink-strong); }
.bfu-q-n.is-zero { color: var(--ui-ink-faint); }
.bfu-q-of { font-size: .55em; font-weight: 500; color: var(--ui-ink-faint); letter-spacing: 0; }
.bfu-q-s { font-size: var(--bkz-text-sm); line-height: 1.45; color: var(--ui-ink-muted); }

/* Dead code: the one secondary line. A door, quiet. */
.bfu-dead { display: grid; grid-template-columns: auto minmax(0, 1fr) 14px; align-items: baseline; gap: 14px;
  color: var(--ui-ink-body); text-decoration: none; font-size: var(--bkz-text-md); }
.bfu-dead:hover { text-decoration: none; border-color: var(--ui-border-hover); }
.bfu-dead:hover .bfu-stall-go { color: var(--ui-ink-strong); }
.bfu-dead-l { font-size: var(--bkz-text-sm); font-weight: 600; color: var(--ui-ink-strong); }
.bfu-dead-w b { color: var(--ui-ink-strong); font-weight: 600; }

@media (max-width: 760px) {
  .bfu-hero { padding: 18px 16px 14px; }
  .bfu-hero-n { font-size: 52px; }
  .bfu-hero-l { font-size: 17px; }
  /* The river turns: one row per stage, the band becomes a bar per row on the same scale. */
  .bfu-band { display: none; }
  .bfu-stages { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bfu-stage { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); grid-template-areas: "n l" "n c" "bar bar";
    align-items: baseline; text-align: left; gap: 0 12px; padding: 8px 8px 10px; margin: 0 -8px; }
  .bfu-stage-n { grid-area: n; font-size: 24px; line-height: 1.1; height: auto; text-align: right; }
  .bfu-stage-gap { display: none; }
  .bfu-stage-l { grid-area: l; margin-top: 0; }
  .bfu-stage-c { grid-area: c; }
  .bfu-stage-bar { grid-area: bar; display: block; height: 6px; margin-top: 8px; border-radius: 99px; background: var(--ui-track); overflow: hidden; }
  .bfu-stage-bar > i { display: block; height: 100%; background: var(--bfu-water-on); border-radius: 99px; }
  .bfu-stall { grid-template-columns: 2.6em minmax(0, 1fr) 12px; }
  .bfu-who { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bfu-shot { width: calc(50% - 4px); }
  .bfu-shot img { height: 96px; }
  .bfu-qgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bfu-q { padding: 12px 12px 10px 0; border-left: 0; border-top: 1px solid var(--bkz-border-hairline); }
  .bfu-q:nth-child(-n+2) { border-top: 0; }
  .bfu-moment { grid-template-columns: 4em minmax(0, 1fr); gap: 12px; }
  .bfu-moment-n { font-size: 28px; }
  .bfu-dead { grid-template-columns: minmax(0, 1fr) 12px; }
  .bfu-dead-l { grid-column: 1 / -1; }
}

/* The scan, live, above the workspace's Bugs board (src/product/bugs-live.ts): drawn only while a scan runs. */
.bsl { border: 1px solid var(--ui-border); background: var(--ui-card); padding: 12px 14px; }
.bsl-run + .bsl-run { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bkz-border-hairline); }
.bsl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: var(--bkz-text-sm); color: var(--ui-ink-strong); margin-bottom: 10px; }
.bsl-head .muted { font-size: var(--bkz-text-xs); overflow-wrap: anywhere; }
.bsl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bkz-success-ink); align-self: center; animation: bsl-pulse 1.6s ease-in-out infinite; }
@keyframes bsl-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .bsl-dot { animation: none; } }
.bsl-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.bsl-panel { min-width: 0; }
.bsl-panel .dp-sec-eyebrow, .bsl-pictures .dp-sec-eyebrow, .bsl-stream .dp-sec-eyebrow { margin-bottom: 4px; }
.bsl-line { margin: 2px 0; font-size: var(--bkz-text-xs); line-height: 1.45; color: var(--ui-ink-body); overflow-wrap: anywhere; }
.bsl-line.muted { color: var(--bkz-muted); }
/* The severity beside the title; a long title is cut to three lines (its row below has it whole). */
.bsl-arrived { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0; }
.bsl-arrived .bug-sev { flex: none; width: auto; padding: 0 6px; }
.bsl-arrived a { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.bsl-bar { height: 6px; background: var(--ui-sunk); position: relative; margin: 4px 0 6px; }
.bsl-bar > span { position: absolute; inset: 0 auto 0 0; background: var(--bkz-success-ink); }
.bsl-pictures { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--bkz-border-hairline); }
.bsl-pictures .dp-shots { margin: 4px 0 0; }
.bsl-stream { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--bkz-border-hairline); }
.bsl-stream ol { list-style: none; margin: 4px 0 0; padding: 0; }
.bsl-stream li { font-size: var(--bkz-text-xs); line-height: 1.5; color: var(--ui-ink-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bsl-stream li:first-child { color: var(--ui-ink-strong); }
.bsl-at { display: inline-block; min-width: 3.6em; font-variant-numeric: tabular-nums; }
.repo-learning { width: 100%; max-width: 960px; margin: 0 auto; padding: 24px 0; }
.repo-learning section { margin: 32px 0; }
.repo-learning h1 { font-size: clamp(24px, 4vw, 36px); line-height: 1.2; margin: 12px 0; }
.repo-learning h2 { font-size: 18px; margin-bottom: 16px; }
.repo-learning h3 { font-size: 15px; margin: 0; }
.repo-learning p { line-height: 1.6; margin: 10px 0; overflow-wrap: anywhere; }
.repo-learning code { overflow-wrap: anywhere; }
.repo-learn-list { list-style: none; margin: 0; padding: 0; }
.repo-learn-list li { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--ui-border, #d5d5d5); }
.repo-learn-capability { border: 1px solid var(--ui-border, #d5d5d5); border-radius: 8px; padding: 12px 14px; margin: 8px 0; }
.repo-learn-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.repo-learning details { margin-top: 12px; }
.repo-learning summary { cursor: pointer; }
.ing-learning { display: block; margin-top: 8px; font-size: 12px; }
@media (max-width: 600px) { .repo-learning { padding: 16px 0; } .repo-learn-capability { padding: 12px; } }
@media (max-width: 720px) { .bsl-stream li:nth-child(n+5) { display: none; } }

/* Fast setup (connect, choose, first scan): the settings under the repository list, the one
   sentence of what happens next, and the first-scan screen. Tokens only. */
.onb-fast { margin-top: 8px; }
.onb-fast .onb-list { margin: 12px 0; }
.onb-fast-note, .onb-fast-next { font-size: var(--bkz-text-sm); color: var(--ui-ink-muted);
  line-height: 1.5; margin: 10px 0 0; }
/* BREKEN_ONBOARDING_CLEAN_1127 (src/app/onboarding-clean.ts): the dashboard's one line while the first scan waits for its card. */
.onb-card-line { margin: 0 0 12px; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.onb-card-line a { text-decoration: underline; text-underline-offset: 2px; }
.pick-form[data-setup] .btn-row { justify-content: flex-end; }
.fs-list { list-style: none; margin: 18px 0; padding: 0; border: 1px solid var(--ui-border);
  border-radius: var(--bkz-radius-lg); overflow: hidden; }
.fs-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 6px 16px;
  align-items: center; padding: 13px 16px; background: var(--ui-surface); }
.fs-row + .fs-row { border-top: 1px solid var(--ui-border); }
.fs-name { font-weight: 600; color: var(--ui-ink-strong); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.fs-what { font-size: var(--bkz-text-sm); color: var(--ui-ink-body); min-width: 0; }
.fs-stage.fs-done { color: var(--ui-ink-strong); }
.fs-stage.fs-stopped { color: var(--ui-ink-muted); }
.fs-bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--ui-sunk);
  overflow: hidden; }
.fs-bar > span { display: block; height: 100%; background: var(--brand-ink);
  transition: width .6s ease; }
.fs-row[data-stage="done"] .fs-bar > span { opacity: .55; }
@media (max-width: 620px) {
  .fs-row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .fs-bar > span { transition: none; } }

/* The third setup step uses the same shell, width, and primary action as the picker. */
.onb-pref-section { border: 0; border-top: 1px solid var(--grid-rail); padding: 18px 0; margin: 0; min-width: 0; }
.onb-pref-section legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-weight: 500; }
.onb-pref-section legend + * { clear: both; }
.onb-pref-section h2 { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 500; margin: 0 0 12px; }
.onb-pref-section .sub { color: var(--ui-ink-muted); font-size: 12px; margin: 12px 0 0; }
.onb-pref-section form { margin-top: 14px; }
.onb-pref-destinations { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.onb-pref-choice { position: relative; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--grid-rail); padding: 18px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.onb-pref-choice:hover { border-color: #66645d; }
.onb-pref-choice:has(input:checked) { border-color: #427fb0; background: rgba(66,127,176,.08); }
.onb-pref-choice:has(input:focus-visible) { outline: 2px solid #70a7d2; outline-offset: 3px; }
.onb-pref-choice input { appearance: none; position: absolute; top: 18px; right: 14px; margin: 0; width: 16px; height: 16px; border: 1px solid #68665f; border-radius: 2px; cursor: pointer; }
.onb-pref-choice input:checked { background: #427fb0; border-color: #427fb0; }
.onb-pref-choice input:checked::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.onb-pref-choice-title { padding-right: 24px; font-weight: 500; font-size: 14px; }
.onb-pref-choice-detail { color: var(--ui-ink-muted); font-size: 11px; line-height: 1.5; }
.onb-pref-daily-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.onb-pref-daily-row p { margin: 0 0 5px; font-size: 14px; }
.onb-pref-stepper { display: flex; border: 1px solid var(--grid-rail); flex-shrink: 0; height: 42px; }
.onb-pref-stepper button { width: 38px; border: 0; background: transparent; color: var(--ui-ink-strong); font: inherit; font-size: 20px; cursor: pointer; }
.onb-pref-stepper button:hover { background: rgba(255,255,255,.06); }
.onb-pref-stepper button:disabled { opacity: .3; cursor: default; }
.onb-pref-stepper input { appearance: textfield; -moz-appearance: textfield; width: 44px; padding: 0; text-align: center; border: 0; border-left: 1px solid var(--grid-rail); border-right: 1px solid var(--grid-rail); border-radius: 0; background: transparent; color: var(--ui-ink-strong); font: inherit; font-variant-numeric: tabular-nums; }
.onb-pref-stepper input::-webkit-inner-spin-button, .onb-pref-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.onb-preferences { margin-top: 24px; }
@media(max-width:560px) {
  .onb-pref-destinations { grid-template-columns: 1fr; }
  .onb-pref-choice { padding: 12px 14px; gap: 4px; }
  .onb-pref-choice input { top: 15px; }
  .onb-pref-daily-row { gap: 12px; }
}
.onb-pref-status { min-height: 20px; font-size: 12px; color: var(--ui-ink-muted); margin: 0 0 14px; }
.onb-pref-continue { display: flex; width: 100%; justify-content: center; box-sizing: border-box; }

/* Settings save actions should read as controls, not faint section captions. */
.page-settings .set-sec-h .btn { padding: 5px 12px; border: 1px solid var(--grid-rail); background: var(--ui-surface); color: var(--ui-ink-strong); }
.page-settings .set-sec-h .btn:hover { border-color: var(--ui-ink-muted); }
.page-settings .set-sec-h .btn:focus-visible { outline: 2px solid #70a7d2; outline-offset: 3px; }

/* A compact purchase flow, shared by one-time and monthly credits. */
:is(.page-pricing,.credit-add-page) .credit-checkout .credit-pack{min-height:112px}
.credit-add-page .credit-checkout.credit-inline-payment{margin:24px auto 28px}
.credit-add-page .credit-checkout.credit-code-redemption{max-width:680px;margin:28px auto 0;padding:24px 0 0;border-top:1px solid var(--bkz-border-hairline)}
.credit-code-redemption .credit-code-form{display:grid;grid-template-columns:1fr;gap:10px}
.credit-code-redemption .credit-code-form label{color:var(--ui-ink-strong);font-size:14px;font-weight:500}
.credit-code-entry{display:flex;gap:10px;align-items:stretch}
.credit-code-redemption .credit-code-entry .input{flex:1;min-width:0;margin:0;height:42px}
.credit-code-entry .btn{flex-shrink:0;min-height:42px;padding:0 20px}
.credit-purchase-history{margin:16px 0 0;font-size:12px;color:var(--ui-ink-muted)}
.credit-purchase-history a{color:inherit}
.credit-checkout .credit-monthly-explainer{margin-bottom:24px}
.credit-pay-stage[data-state=ready],.credit-pay-stage[data-state=idle]{min-height:0}
.credit-pay-stage:is([data-state=ready],[data-state=idle]) [data-credit-payment-mount]{min-height:0}
.credit-add-page .credit-elements-payment h2{margin:0 0 18px}
/* Keep preferences and its final action together in one desktop viewport. */
.auth2.onb:has(.onb-preferences){box-sizing:border-box;min-height:100svh;padding:44px 20px 24px}
.onb-card:has(.onb-preferences){box-sizing:border-box;width:min(980px,100%);padding:24px 30px}
.onb-card:has(.onb-preferences) .auth2-brand{margin-bottom:16px}
.onb-card:has(.onb-preferences) .ob-strip{margin-bottom:16px}
.onb-card:has(.onb-preferences) .auth2-h1{margin:0 0 12px;font-size:36px}
.onb-card:has(.onb-preferences) .auth2-lede{margin:0;font-size:14px;line-height:21px}
.onb-preferences{margin-top:20px}
.onb-preferences .onb-pref-section{padding:14px 0}
.onb-preferences .onb-pref-section legend{margin-bottom:10px}
.onb-preferences .onb-pref-choice{padding:14px;gap:5px}
.onb-preferences .onb-pref-choice input{top:14px}
.onb-preferences .onb-pref-section .sub{margin-top:8px;line-height:18px}
.onb-preferences .onb-pref-section h2{margin-bottom:8px;font-size:14px}
.onb-preferences .onb-pref-section form{margin-top:10px}
.onb-preferences .onb-pref-status{margin:0 0 8px;min-height:18px;line-height:18px}
.onb-preferences .onb-pref-continue{min-height:42px;padding:10px 16px}
@media(min-width:800px){
  .onb-preferences{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:28px}
  #onb-preferences-form{display:contents}
  #onb-preferences-form>.onb-pref-section:first-child,.onb-pref-status,.onb-pref-continue{grid-column:1/-1}
  .onb-preferences .onb-pref-daily{grid-column:1;grid-row:2}
  .onb-preferences .onb-pref-slack{grid-column:2;grid-row:2}
  .onb-pref-slack>.btn{margin-top:10px}
}
@media(max-width:560px){
  .auth2.onb:has(.onb-preferences){padding:44px 16px 20px}
  .onb-card:has(.onb-preferences){padding:22px 20px}
  .onb-card:has(.onb-preferences) .auth2-h1{font-size:30px}
}

/* Auto top-up sits beside the one-time and monthly purchase choices. */
.credit-purchase-tabs a{font:inherit;color:#999;background:none;border:0;border-bottom:2px solid transparent;padding:12px 0;text-decoration:none;white-space:nowrap}
.credit-purchase-tabs a:hover{color:var(--ui-ink-strong);text-decoration:none}
.credit-purchase-tabs a[aria-current=page]{color:#eee;border-bottom-color:#eee}
.credit-purchase-tabs a:focus-visible{outline:2px solid var(--bkz-blue-link);outline-offset:3px}
@media(max-width:520px){.credit-purchase-tabs{gap:16px}.credit-purchase-tabs :is(a,button){font-size:12px}}
/* Delivery questions on the preferences step (BREKEN_DELIVERY_UI). */
.onb-pref-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ui-ink-muted); min-width: 0; }
.onb-pref-field select, .onb-pref-field input { height: 38px; padding: 0 10px; border: 1px solid var(--grid-rail); border-radius: 0; background: transparent; color: var(--ui-ink-strong); font: inherit; font-size: 14px; }
.onb-pref-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.onb-pref-where-line { margin: 0 0 12px; font-size: 14px; }
@media (max-width: 640px) { .onb-pref-grid { grid-template-columns: 1fr; } }
.set-labels { width: 220px; max-width: 100%; }
.onb-pref-monthly { margin-top: 12px; }

/* Auto-reload expands within workspace Credits settings. */
.set-auto-reload > summary{display:flex;align-items:center;gap:12px;padding:18px 20px;cursor:pointer;list-style:none;font-weight:500}
.set-auto-reload > summary::-webkit-details-marker{display:none}
.set-auto-reload > summary::after{content:'⌄';margin-left:auto;transition:transform .15s}
.set-auto-reload[open] > summary::after{transform:rotate(180deg)}
.set-auto-reload > summary:focus-visible{outline:2px solid #70a7d2;outline-offset:-3px}
.set-auto-reload-body{padding:0 20px 20px}
.set-auto-reload-body .credit-checkout.credit-auto-reload{max-width:680px;margin:0;padding:0;border:0}
.set-auto-reload-body .credit-auto-head{display:none}

/* Onboarding: the left panel changes width by step and scrolls independently. */
.onb-split { --onb-panel-width:clamp(400px,32vw,480px); height:100svh; overflow:hidden; }
.onb-split[data-onboarding-screen="workspaces"],.onb-split[data-onboarding-screen="connect"] { --onb-panel-width:clamp(480px,38vw,560px); }
.onb-split[data-onboarding-screen="repositories"] { --onb-panel-width:clamp(520px,42vw,620px); }
.onb-split[data-onboarding-screen="preferences"] { --onb-panel-width:clamp(560px,46vw,680px); }
.onb-split > .as-visual { position:fixed; inset:0 0 0 var(--onb-panel-width); view-transition-name:onboarding-art; }
.onb-panel { box-sizing:border-box; width:var(--onb-panel-width); height:100svh; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; display:flex; flex-direction:column; padding:0 28px 64px; border-right:1px solid var(--grid-rail); view-transition-name:onboarding-panel; }
/* "Back" is the panel's own top row (the panel is the scroller): pinned with the ground behind it, so the heading and the
   lede scroll under it, never through it (v3 S3/S4: the fixed link sat on the heading once the list was scrolled to). */
.onb-back { position:sticky; z-index:5; top:0; align-self:stretch; flex-shrink:0; display:flex; align-items:center; gap:10px; margin:0 -28px 31px; padding:24px 28px 12px; color:var(--ui-ink-muted); font-size:13px; text-decoration:none; background:var(--bkz-bg); }
.onb-back:hover { color:var(--ui-ink-strong); }
.onb-back span { font-size:21px; }
.onb-panel .onb-card { box-sizing:border-box; width:100%; padding:30px; margin:auto 0; flex-shrink:0; }
/* Keep clearance after the picker in the scrollable content, so the sticky Continue band reaches the panel's edge.
   A trailing spacer preserves that clearance while both card margins stay auto and share the spare vertical space.
   A fixed bottom margin left only the top margin auto, pushing short pickers to the bottom of the panel. */
.onb-panel:has(.pick-form) { padding-bottom:0; }
.onb-panel:has(.pick-form)::after { content:""; flex:0 0 64px; }
.onb-panel .auth2-brand { margin:0 0 30px; font-size:19px; }
.onb-panel .onb-main { view-transition-name:onboarding-step; }
.onb-panel .auth2-h1 { font-size:32px; line-height:1.14; letter-spacing:-.035em; margin:0 0 18px; }
.onb-panel .auth2-lede { font-size:14px; line-height:1.7; margin:0 0 28px; }
.onb-panel .onb-preferences { display:block; margin-top:28px; }
.onb-panel #onb-preferences-form { display:block; }
.onb-panel .onb-pref-section { padding:28px 0; }
.onb-panel .onb-pref-section legend { font-size:14px; margin-bottom:18px; }
.onb-panel .onb-pref-destinations { display:flex; flex-direction:column; gap:12px; }
.onb-panel .onb-pref-choice { display:grid; grid-template-columns:1fr; padding:18px 44px 18px 18px; gap:7px; }
.onb-panel .onb-pref-choice-title { font-size:14px; }
.onb-panel .onb-pref-choice-detail { font-size:12px; }
.onb-panel .onb-pref-choice input { top:50%; transform:translateY(-50%); right:18px; }
.onb-panel .onb-pref-section .sub { font-size:12px; line-height:1.7; margin-top:14px; }
.onb-panel .onb-pref-daily-row { gap:18px; }
.onb-panel .onb-pref-daily-row p { font-size:14px; }
.onb-panel .onb-pref-stepper button,.onb-panel .onb-pref-stepper input { width:40px; height:40px; }
.onb-panel .onb-pref-slack h2 { font-size:14px; gap:10px; line-height:1.5; }
.onb-panel .onb-pref-slack form { margin-top:20px; }
.onb-panel .onb-pref-slack .btn { font-size:13px; padding:12px 16px; }
.onb-panel .onb-pref-status { font-size:12px; line-height:1.6; margin:4px 0 20px; }
.onb-panel .onb-pref-continue { font-size:14px; min-height:48px; }
.onb-panel .onb-fast-next { font-size:12px; line-height:1.7; margin-top:24px; }
.onb-panel .pick-form .tbl { margin-top:24px; }
.onb-panel .ob-acct { display:flex; flex-wrap:wrap; gap:12px; padding:18px 12px; }
.onb-panel .ob-org-txt { flex:1; min-width:100px; }
.onb-panel .ob-state { font-size:11px; }
.onb-panel .ob-ask { margin-left:auto; }
.onb-panel .ob-panel { margin-top:24px; }
/* Setup help up front (BREKEN_SETUP_UP_FRONT_1122; world-file-onboarding.ts setupUpFrontCardHtml): the recommended step right after the
   repository list. A card on the setup card: the picker's ground lifted a step toward the brand, a hairline in the brand border token and
   the brand left rule the scan strips use (.surgical-strip, .sweep-now), so the eye lands on it after the list. Tokens only. */
.onb-setup-card { margin: 16px 0 4px; padding: 14px 16px 16px; border: 1px solid var(--ui-brand-border); border-left: 3px solid var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, var(--pick-ground, var(--ui-surface))); }
.onb-setup-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 15px; line-height: 1.4;
  font-weight: 650; letter-spacing: -0.01em; color: var(--ui-ink-strong); }
.onb-setup-h .tag { padding: 1px 7px; }
.onb-setup-time { font-size: var(--bkz-text-sm); font-weight: 400; letter-spacing: 0; color: var(--ui-ink-muted); }
.onb-setup-why { margin: 6px 0 0; font-size: var(--bkz-text-sm); line-height: 1.5; color: var(--ui-ink-body); }
/* The card's one action: the tinted secondary (.btn-blue), a step below Continue's filled primary. */
.onb-setup-act { margin: 12px 0 0; }
.onb-setup-act .btn { min-height: 40px; font-weight: 600; }
.onb-setup-then { margin: 8px 0 0; font-size: var(--bkz-text-sm); line-height: 1.5; color: var(--ui-ink-muted); }
.onb-setup-paste { margin: 12px 0 0; }
.onb-setup-card textarea { box-sizing: border-box; width: 100%; resize: vertical; }
.onb-setup-pasted { margin: 8px 0 0; font-size: var(--bkz-text-sm); line-height: 1.5; color: var(--bkz-success-ink); }
.onb-setup-pasted[hidden] { display: none; }
.onb-setup-more { margin: 12px 0 0; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.onb-setup-more > summary { cursor: pointer; color: var(--ui-ink-body); }
.onb-setup-more > p { margin: 8px 0 0; line-height: 1.5; }
.onb-setup-prompt { display: block; margin-top: 8px; padding: 10px 12px; font-size: 12px; line-height: 1.55; }
.onb-setup-never { margin: 12px 0 0; font-size: var(--bkz-text-xs); line-height: 1.5; color: var(--ui-ink-muted); }
/* Skip beside Continue in the pinned bar. Continue stays the form's first submit (repos.js, product-span.js) and the wide primary;
   Skip is the quiet secondary at its side, the same height. A product's stacked bar (.ob-more) keeps its own column. */
.pick-form .btn-row:has(> .onb-setup-skip):not(:has(.ob-more)) { flex-wrap: nowrap; gap: 10px; }
.pick-form .btn-row:has(> .onb-setup-skip):not(:has(.ob-more)) .auth2-primary { flex: 1 1 auto; width: auto; min-width: 0; }
.pick-form .onb-setup-skip { flex: none; height: 44px; }
/* The pinned bar never hides a control: focus and scroll-into-view stop above it. */
.onb-panel:has(.onb-setup-card) { scroll-padding-bottom: 88px; }
@media (max-width: 560px) {
 .pick-form .btn-row:has(> .onb-setup-skip):not(:has(.ob-more)) { flex-direction: column; align-items: stretch; gap: 8px; }
 .pick-form .btn-row:has(> .onb-setup-skip):not(:has(.ob-more)) .auth2-primary { flex: none; width: 100%; }
 .pick-form .onb-setup-skip { height: 40px; }
 .onb-panel:has(.onb-setup-card) { scroll-padding-bottom: 132px; }
 .onb-setup-card { padding: 12px 12px 14px; }
 .onb-setup-act .btn { width: 100%; white-space: normal; text-align: center; }
}
/* The setup card, said plainly (BREKEN_SETUP_CARD_CLEAR_1123; world-file-onboarding.ts setupCardClearHtml): the same card ground, brand rule and Copy
   press; the time quiet beside the heading; the paste box in a fold that starts open; the file's name, what you never have to do and the prompt in
   small print under Advanced. Tokens only. */
.onb-setup-clear .onb-setup-h { font-size: 16px; }
.onb-setup-fold { margin: 14px 0 0; }
.onb-setup-fold > summary { cursor: pointer; font-size: var(--bkz-text-sm); font-weight: 600; color: var(--ui-ink-strong); }
.onb-setup-fold > textarea { display: block; margin-top: 8px; }
.onb-setup-clear .onb-setup-more { margin-top: 14px; }
.onb-setup-small { margin: 8px 0 0; font-size: var(--bkz-text-xs); line-height: 1.5; color: var(--ui-ink-muted); }
@media (max-width: 560px) {
 .onb-setup-clear .onb-setup-h { font-size: 15px; }
}
@view-transition { navigation:auto; }
::view-transition-group(onboarding-panel),::view-transition-group(onboarding-art) { animation-duration:420ms; animation-timing-function:cubic-bezier(.22,.8,.25,1); }
::view-transition-old(onboarding-step) { animation:onb-slide-out 180ms ease both; }
::view-transition-new(onboarding-step) { animation:onb-slide-in 360ms cubic-bezier(.2,.8,.2,1) both; }
::view-transition-old(root),::view-transition-new(root) { animation:none; }
@keyframes onb-slide-out { to { opacity:0; transform:translateX(-24px); } }
@keyframes onb-slide-in { from { opacity:0; transform:translateX(32px); } to { opacity:1; transform:translateX(0); } }
@media (max-width:760px) {
 .onb-split[data-onboarding-screen] { --onb-panel-width:100%; }
 .onb-split > .as-visual { display:none; }
 .onb-panel { padding:0 18px 64px; }
 .onb-panel .onb-card { padding:26px 20px; }
 /* Its own row on a phone: pinned to the top of the panel (the scroller) with the ground behind it, so the heading and
    the lede scroll under it; a hairline marks its edge on a phone. */
 .onb-back { margin:0 -18px 8px; padding:18px 18px 14px; border-bottom:1px solid var(--bkz-border-hairline); }
 .onb-panel .auth2-h1 { font-size:29px; }
}
@media (prefers-reduced-motion:reduce) {
 ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*) { animation:none!important; }
}
/* The canvas keeps its original pixels and dimensions during step changes. */
.onb-split > .as-visual { transition:left 420ms cubic-bezier(.22,.8,.25,1); }
.onb-split .as-viz { left:50%; right:auto; transform:translateX(-50%); }
.onb-panel { transition:width 420ms cubic-bezier(.22,.8,.25,1); }
@media(prefers-reduced-motion:reduce) { .onb-panel,.onb-split > .as-visual { transition:none; } }

/* A single switch reveals the auto top-up form. */
.set-auto-reload{padding:22px 24px;scroll-margin-top:32px}
.set-auto-reload .credit-checkout.credit-auto-reload{max-width:none;margin:0;padding:0;border:0}
.credit-auto-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}
.credit-auto-heading h2{margin:0;font-size:16px;font-weight:600}
.credit-auto-heading .sub{margin:6px 0 0;font-size:13px}
.credit-auto-heading .credit-auto-switch{margin:0;gap:12px;font-size:12px;font-weight:400;color:var(--ui-ink-muted)}
.credit-auto-heading .credit-auto-switch input{width:38px;height:22px;border:1px solid var(--ui-ink-muted);border-radius:999px!important;background:var(--ui-surface)}
.credit-auto-heading .credit-auto-switch input::after{width:16px;height:16px;top:2px;left:2px;border-radius:50%!important;background:var(--ui-ink-muted)}
.credit-auto-heading .credit-auto-switch input:checked{background:var(--bkz-blue-link);border-color:var(--bkz-blue-link)}
.credit-auto-heading .credit-auto-switch input:checked::after{background:#fff}
.credit-auto-options{margin-top:24px;padding-top:24px;border-top:1px solid var(--bkz-border-soft)}
.credit-auto-options .credit-auto-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0;opacity:1!important;max-width:850px}
.credit-auto-field{min-width:0}
.credit-auto-field>label{display:block;margin-bottom:9px;color:var(--ui-ink-strong);font-size:13px}
.credit-auto-field>small{display:block;margin-top:8px;color:var(--ui-ink-muted);font-size:12px;line-height:1.5}
.credit-auto-field .credit-auto-input{display:flex;gap:8px;padding:0 12px;border:1px solid var(--bkz-border-soft);background:var(--ui-surface);border-radius:6px}
.credit-auto-field .credit-auto-input:focus-within{outline:2px solid var(--bkz-blue-link);outline-offset:2px}
.credit-auto-field .credit-auto-input>span{font-size:13px;color:var(--ui-ink-muted)}
.credit-auto-field .credit-auto-input .input{height:40px;padding:0;min-width:0;background:transparent;border:0;box-shadow:none;text-align:left;outline:none}
.credit-auto-footer{margin-top:22px}
.credit-auto-footer .sub{font-size:12px;margin:0 0 14px}
.credit-auto-actions{display:flex;align-items:center;gap:20px;font-size:12px}
.credit-auto-actions .btn{width:auto;min-width:90px;padding:9px 16px}
.credit-auto-settings-link{font-size:13px;margin:0 0 20px}
@media(max-width:680px){.set-auto-reload{padding:18px 16px}.credit-auto-options .credit-auto-fields{grid-template-columns:1fr;gap:18px}.credit-auto-heading{gap:12px}.credit-auto-heading .sub{max-width:240px}.credit-auto-actions{flex-wrap:wrap}}
[data-list-row][hidden] { display: none !important; }
[data-list-pagination] .pager { flex-wrap: wrap; gap: 12px; }
.sb-top { min-height: 72px; }
.sb-brand { gap: 12px; }


/* The default bug card answers impact first; the complete technical record stays expandable. */
.bug-detail .bd-impact { margin:0; font-size:15px; line-height:1.7; color:var(--ui-ink-body); }
.bug-detail .bd-fact.bd-impact { display:block; padding:4px 0 20px; }
.bug-detail .bd-fact.bd-impact > dt { display:none; }
.bd-verification { display:flex; flex-direction:column; gap:4px; padding:12px 0; font-size:12px; }
.bd-verification b { font-weight:500; }
.bd-verification span { color:var(--ui-ink-muted); }
.gd-candidates { border-top:1px solid var(--bkz-border-hairline); margin-top:24px; }
.gd-candidates > summary { cursor:pointer; padding:16px 0; font-size:13px; color:var(--ui-ink-muted); }
.gd-candidates > summary span { margin-left:8px; }
/* A count in brackets sits against them: "Being checked (1)", never "( 1)" (11-20 renders, 06). */
.gd-being-checked > summary span[data-candidate-count], .gd-not-checked > summary span[data-not-checked-count] { margin-left:0; }
/* The closed fold ("Closed, not verified · Ruled out") sits under the being-checked one on the same hairline rhythm;
   its summary is two labelled parts, so only each count is spaced off its label, not the parts or the separator. */
.gd-candidates + .gd-closed { margin-top:0; }
/* Read in the code, not run (dashboard.ts readInCodeList): never a bug, so visibly secondary, after the bugs and being checked. */
.gd-candidates + .gd-read-in-code { margin-top:0; }
.gd-read-in-code > .gd-list, .gd-read-in-code > .gd-read-in-code-note { opacity:.72; }
.gd-read-in-code-note { margin:0 0 8px; font-size:12px; }
.gd-closed > summary span { margin-left:0; }
.gd-closed > summary [data-bug-closed-count] { margin-left:8px; }

/* Workspace delivery: compact rows expand into the same bordered settings surface. */
.delivery-setting + .delivery-setting { border-top:1px solid var(--border, #30302c); }
.delivery-setting > .srow { border:0; }
.delivery-setting-fields { display:grid; grid-template-columns:1fr 1fr; gap:20px; padding:0 22px 24px; max-width:640px; }
.delivery-setting-fields[hidden] { display:none; }
.delivery-setting-fields .field { display:grid; gap:9px; min-width:0; }
.delivery-setting-fields .input { width:100%; box-sizing:border-box; }
.delivery-connection { grid-column:1/-1; display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.settings-save-status { font-family:inherit; font-size:12px; letter-spacing:0; text-transform:none; }
@media(max-width:600px) { .delivery-setting-fields { grid-template-columns:1fr; gap:16px; } }

.repo-feature-setting[data-feature="bugs"] .swt { min-width:0; justify-content:flex-end; }
/* Bugs while scans are always on: a locked On with the reason, nothing to press. */
.repo-feature-locked { flex-direction: column; align-items: flex-end; gap: 2px; }
.repo-feature-locked .swt { cursor: default; gap: 8px; }
.repo-feature-locked .swt:hover .swt-track { border-color: var(--brand-ink); }
.repo-feature-reason { max-width: 320px; color: var(--ui-ink-muted); font-size: var(--bkz-text-xs); text-align: right; }
/* A refusal's own reason can be a sentence: wrap it rather than run off the row. */
.repo-feature-error { width: max-content; max-width: min(320px, 80vw); white-space: normal; text-align: right; }

/* Keep connection management available even when ticket delivery is paused. */
.delivery-setting > .delivery-connection { padding:0 22px 20px; }
.linear-connection-status { display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--ui-ink); }
.linear-connection-status::before { content:""; width:6px; height:6px; border-radius:50%; background:#79afd5; flex-shrink:0; }
.linear-teams-page { max-width:1040px; }
.linear-teams-back { display:inline-block; margin-bottom:24px; color:var(--ui-ink-muted); font-size:13px; }
.linear-teams-intro { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:24px; }
.linear-teams-intro .srow-s { margin-top:10px; max-width:650px; }
.linear-teams-intro .settings-save-status { white-space:nowrap; color:var(--ui-ink-muted); }
.linear-teams-columns,.linear-team-row { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:24px; padding:18px 22px; align-items:center; }
.linear-teams-columns { font-size:12px; color:var(--ui-ink-muted); border-bottom:1px solid var(--bkz-border-hairline); }
.linear-team-repo { min-width:0; }
.linear-team-repo .srow-t { overflow-wrap:anywhere; margin-top:4px; }
.linear-team-row .dd { width:100%; min-width:0; }
.linear-teams-hint { margin-top:16px; }
.linear-teams-empty { padding:22px; }
@media(max-width:650px) {
 .linear-teams-intro { flex-direction:column; gap:12px; }
 .linear-teams-columns { display:none; }
 .linear-team-row { grid-template-columns:minmax(0,1fr); gap:16px; }
}

.account-profile-settings { width:100%; }
.account-profile-settings .srow { padding:24px; column-gap:24px; row-gap:6px; }
.account-profile-settings .srow-s { margin-top:8px; max-width:540px; line-height:1.65; }
.account-email-card { padding:28px 24px; border:1px solid var(--bkz-border-hairline); background:var(--ui-surface); }
.account-email-card > label { display:block; }
.account-email-card .srow-s { margin:8px 0 20px; }
.account-email-card .acct-email-entry { max-width:620px; gap:12px; align-items:stretch; }
.account-email-card .acct-email-entry .btn { flex-shrink:0; padding-inline:24px; }
.account-email-note { font-size:13px; line-height:1.6; color:var(--ui-ink-muted); margin:16px 0 0; }
@media(max-width:500px) {
 .account-profile-settings .srow,.account-email-card { padding:20px; }
 .account-email-card .acct-email-entry { flex-direction:column; }
 .account-email-card .acct-email-entry .btn { min-height:42px; }
}
/* HOW WE PROVED IT (product/proof-player.ts, proof-player.js): a browser proof's replay as video.
   Square, mono, quiet. A move's kind is told by the mark's shade, not a new palette: navigate faint,
   click strong, type the link blue already in use, observe muted; the failing moment the danger ink. */
.bd-fact.bd-proved { grid-template-columns:minmax(0,1fr); row-gap:8px; }
/* What it looked like (BREKEN_ROW_PICTURES): a row's pictures on the card, the width of the proof. */
.bd-fact.bd-seen { grid-template-columns:minmax(0,1fr); row-gap:8px; }
.pp { display:grid; gap:8px; }
.pp-sum { margin:0; font-size:13.5px; line-height:1.6; color:var(--ui-ink-body); }
.pp-screen { border:1px solid var(--bkz-border-hairline); background:#000; line-height:0; }
.pp-video { display:block; width:100%; height:auto; aspect-ratio:16 / 10; background:#000; }
.pp-bar { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:10px;
  font:500 11px/1 var(--bkz-font-mono); color:var(--ui-ink-muted); }
.pp-btn { min-width:30px; height:24px; padding:0 8px; border:1px solid var(--bkz-border-hairline); border-radius:0;
  background:transparent; color:var(--ui-ink-strong); font:500 11px/1 var(--bkz-font-mono); cursor:pointer; }
.pp-btn:hover, .pp-btn:focus-visible { border-color:var(--ui-border-hover); }
.pp-track { position:relative; height:18px; cursor:pointer; touch-action:none; }
.pp-track::before { content:""; position:absolute; left:0; right:0; top:8px; height:2px; background:var(--ui-track); }
.pp-track:focus-visible { outline:1px solid var(--ui-border-hover); outline-offset:2px; }
.pp-fill { position:absolute; left:0; top:8px; height:2px; width:0; background:var(--ui-ink-soft); }
.pp-mark { position:absolute; top:3px; width:2px; height:12px; margin-left:-1px; background:var(--pp-ink); pointer-events:none; }
.pp-time { font-variant-numeric:tabular-nums; white-space:nowrap; }
.pp-k-navigate { --pp-ink:var(--bkz-ink-faint); }
.pp-k-click { --pp-ink:var(--bkz-ink-strong); }
.pp-k-type { --pp-ink:var(--bkz-blue-link); }
.pp-k-observe { --pp-ink:var(--bkz-ink-slate); }
.pp-fail { --pp-ink:var(--bkz-danger-ink); }
.pp-mark.pp-fail { width:3px; height:18px; top:0; }
/* A write the page sent (a POST): a short tick under the line, at its own moment. */
.pp-mark.pp-w { top:11px; height:7px; width:2px; background:var(--bkz-warn-ink); }
.pp-switch { display:flex; gap:0; }
.pp-tab { height:24px; padding:0 10px; border:1px solid var(--bkz-border-hairline); border-radius:0; margin-right:-1px;
  background:transparent; color:var(--ui-ink-muted); font:500 11px/1 var(--bkz-font-mono); cursor:pointer; }
.pp-tab[aria-selected="true"] { color:var(--ui-ink-strong); border-color:var(--ui-border-hover); background:var(--ui-row-hover); position:relative; }
.pp-run { display:grid; gap:8px; }
.pp-run[hidden] { display:none; }
.pp-write { color:var(--ui-ink-soft); }
.pp-body { color:var(--bkz-warn-ink); min-width:0; overflow:hidden; text-overflow:ellipsis; }
.pp-steps { list-style:none; margin:0; padding:0; border-top:1px solid var(--bkz-border-hairline); }
.pp-step { padding:6px 0 6px 10px; border-bottom:1px solid var(--bkz-border-hairline); border-left:2px solid var(--pp-ink); }
.pp-step.pp-on { background:var(--ui-row-hover); }
.pp-seek { display:grid; grid-template-columns:52px 58px minmax(0,1fr); gap:8px; width:100%; padding:0; border:0; background:none;
  color:inherit; text-align:left; font:inherit; cursor:pointer; }
.pp-t, .pp-kind { font:500 11px/1.6 var(--bkz-font-mono); color:var(--ui-ink-faint); font-variant-numeric:tabular-nums; }
.pp-kind { text-transform:uppercase; letter-spacing:.06em; color:var(--pp-ink); }
.pp-what { font-size:13px; line-height:1.5; color:var(--ui-ink-body); }
.pp-step.pp-fail .pp-what { color:var(--ui-ink-strong); }
.pp-nets, .pp-cons { list-style:none; margin:4px 0 0 118px; padding:0; font:400 11px/1.55 var(--bkz-font-mono); color:var(--ui-ink-faint); }
.pp-net { display:flex; gap:6px; min-width:0; white-space:nowrap; }
.pp-path { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.pp-bad, .pp-cons li { color:var(--bkz-danger-ink); }
.pp-cons li { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pp-more { color:var(--ui-ink-faint) !important; }
:root[data-theme="light"] .pp-screen, :root[data-theme="light"] .pp-video { background:#111; }
/* WHAT HAPPENED (product/person-moments.ts seenClipHtml, proof-player.js wireClip): a person's last seconds before a report,
   frame by frame, on the proof player's own bar and buttons; the frame at the testers' page shape until it loads. */
.dp-clip { display:grid; gap:8px; max-width:640px; margin:10px 0 0; }
.dp-clip figcaption { font-size:var(--bkz-text-xs); color:var(--ui-ink-muted); }
.dp-clip-screen { border:1px solid var(--bkz-border-hairline); line-height:0; }
.dp-clip-screen img { display:block; width:100%; height:auto; aspect-ratio:auto 1366 / 900; }
.dp-clip-bar { grid-template-columns:auto auto auto minmax(0,1fr) auto; }
.dp-clip-bar[hidden], .dp-clip-frames[hidden] { display:none; }
.dp-clip-range { width:100%; min-width:0; margin:0; accent-color:var(--ui-ink-soft); }
@media (max-width:520px) { .dp-clip-bar { grid-template-columns:auto auto auto minmax(0,1fr); } .dp-clip-bar .pp-time { grid-column:1 / -1; } }
/* When and what (BREKEN_PEOPLE_CLIPS): the frame's moves and answer under the bar; a video's moment says how long before the
   report and its clock time beside its words. */
.dp-clip-what { margin:0; font-size:var(--bkz-text-xs); color:var(--ui-ink-soft); overflow-wrap:anywhere; }
.dp-video .pp { margin:0; }
/* TO THE POINT (BREKEN_REPLAY_TO_THE_POINT, product/person-moments.ts seenToThePointHtml): the request that failed, then the seconds up
   to the bug on the proof player's own bar, its step marked; what shows nothing of the bug folded under its length. */
.dp-replay { display:grid; gap:8px; max-width:640px; margin:10px 0 0; }
.dp-replay .dp-clip { margin:0; }
.dp-request { display:grid; gap:4px; padding:8px 10px; border:1px solid var(--bkz-border-hairline); font-size:var(--bkz-text-xs); color:var(--ui-ink-soft); overflow-wrap:anywhere; }
.dp-request p { margin:0; }
.dp-request ul { margin:0; padding-left:16px; }
.dp-request code { color:var(--bkz-danger-ink); }
.dp-request-again, .dp-replay-none { color:var(--ui-ink-muted); }
.dp-replay-expected, .dp-replay-none { margin:0; font-size:var(--bkz-text-xs); color:var(--ui-ink-soft); overflow-wrap:anywhere; }
.dp-video-fold > summary { cursor:pointer; font-size:var(--bkz-text-xs); color:var(--ui-ink-muted); }
.dp-video-fold[open] > summary { margin-bottom:8px; }
.pp-when { display:block; grid-column:-2 / -1; font-size:var(--bkz-text-xs); color:var(--ui-ink-faint); }
@media (max-width:520px) { .pp-nets, .pp-cons { margin-left:0; } .pp-seek { grid-template-columns:52px minmax(0,1fr); } .pp-kind { display:none; } }
/* BUG VIDEOS ARE SHARP (scan/audit/sharp-videos.ts): each rule only where its switch put the class or element. The
   video framed at its own shape (a phone-width page stands upright, never cropped); a line under the picture, never
   over it (a toast or banner at the page's foot is often the bug), saying the move running now, its edge the danger
   ink at the failing moment, two lines tall so the bar below never jumps; a ring where the press landed, for a moment. */
.pp-screen.pp-fit .pp-video { aspect-ratio:auto 16 / 10; max-height:min(72vh, 760px); }
.pp-screen.pp-over { position:relative; overflow:hidden; }
.pp-cap { margin:0; padding:5px 9px; box-sizing:border-box; min-height:calc(2.9em + 10px); border-left:2px solid #c9c9c9;
  background:#0c0c0c; color:#f2f2f2; font:500 12.5px/1.45 var(--bkz-font-sans, system-ui, sans-serif);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pp-cap[hidden], .pp-layer[hidden] { display:none; }
.pp-cap.pp-cap-fail { border-left-color:#ff6b5e; }
.pp-layer { position:absolute; pointer-events:none; }
.pp-ring { position:absolute; box-sizing:border-box; border-radius:4px; outline:2px solid #ffb02e; outline-offset:3px;
  box-shadow:0 0 0 5px rgba(0,0,0,.28); opacity:0; transition:opacity .15s; }
.pp-ring.pp-dot { width:22px !important; height:22px !important; margin:-11px 0 0 -11px; border-radius:50%; outline-offset:0; }
.pp-ring.pp-ring-on { opacity:1; }
@media (prefers-reduced-motion:no-preference) { .pp-ring.pp-ring-on { animation:pp-press .5s ease-out 1; } }
@keyframes pp-press { from { outline-offset:12px; opacity:.25; } to { outline-offset:3px; opacity:1; } }
@media (max-width:520px) { .pp-cap { font-size:11.5px; } }

.settings-payments{scroll-margin-top:24px}.settings-payments .credit-auto-reload{max-width:none;width:100%;margin:16px 0 0;padding:24px;border:1px solid var(--bkz-border-soft);background:var(--ui-surface);box-sizing:border-box}.settings-payments .credit-auto-heading h2{font-size:16px}.settings-payments .credit-auto-fields.is-monthly-usage{grid-template-columns:minmax(0,1fr)}.settings-payments .credit-auto-input{max-width:240px}.settings-payments .credit-monthly-manage{margin-bottom:24px}

.onb-slack-connected{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.onb-slack-connected .tag{padding:8px 12px}

.onb-email-form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.onb-email-form .input { width: 100%; box-sizing: border-box; min-height: 46px; }
.onb-email-form .btn { align-self: stretch; }
.onb-email-expiry { margin: 12px 0 0; color: var(--ui-ink-muted); font-size: 12px; line-height: 1.6; }
.onb-email-expiry + .onb-email-form { margin-top: 24px; }
.onb-email-change { margin: 12px 0 0; font-size: 12px; line-height: 1.6; }
.onb-email-cancel { margin: 16px 0 0; }
.onb-email-cancel-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; line-height: 1.6; color: var(--ui-ink-muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.onb-email-cancel-btn:hover { color: var(--ui-ink); }

/* Keep payment settings aligned with the surrounding settings rows. */
.credit-purchase-tabs .credit-manage-topup{margin-left:auto;font-size:12px;color:var(--bkz-blue-link);border-bottom:0;align-self:center;padding:8px 0}
.settings-payments .credit-auto-reload{padding:18px;scroll-margin-top:24px}
.settings-payments .credit-auto-heading{align-items:flex-start}
.settings-payments .credit-auto-heading h2{font-size:var(--bkz-text-md);line-height:20px}
.settings-payments .credit-auto-heading .sub{font-size:var(--bkz-text-sm);line-height:19px;margin-top:4px;max-width:none}
.settings-payments .credit-auto-heading .credit-auto-switch{flex-shrink:0}
.settings-payments .credit-auto-options{margin-top:18px;padding-top:18px}
.settings-payments .credit-auto-options .credit-auto-fields{max-width:none}
.settings-payments .credit-auto-field{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:4px 24px;align-items:center}
.settings-payments .credit-auto-field>label{margin:0;font-size:var(--bkz-text-md);font-weight:600;line-height:20px}
.settings-payments .credit-auto-field>small{grid-column:1;grid-row:2;margin:0;font-size:var(--bkz-text-sm);line-height:19px;max-width:65ch}
.settings-payments .credit-auto-field .credit-auto-input{grid-column:2;grid-row:1 / span 2;width:100%;max-width:none;box-sizing:border-box;border-radius:0}
.settings-payments .credit-auto-footer{margin-top:18px;padding-top:18px;border-top:1px solid var(--bkz-border-soft);display:flex;align-items:center;justify-content:space-between;gap:16px}
.settings-payments .credit-auto-footer .sub{margin:0;font-size:var(--bkz-text-sm);line-height:19px}
.settings-payments .credit-auto-actions{flex-shrink:0;gap:16px;font-size:var(--bkz-text-sm)}
@media(max-width:680px){
  .credit-purchase-tabs:has(.credit-manage-topup){flex-wrap:wrap;column-gap:18px;row-gap:0}
  .credit-purchase-tabs .credit-manage-topup{margin-left:0}
  .settings-payments .credit-auto-field{grid-template-columns:minmax(0,1fr)}
  .settings-payments .credit-auto-field .credit-auto-input{grid-column:1;grid-row:3;max-width:240px;margin-top:8px}
  .settings-payments .credit-auto-footer{align-items:flex-start;flex-direction:column}
  .settings-payments .credit-auto-actions{flex-wrap:wrap}
}

.settings-payments .credit-auto-options[hidden]{display:none!important}
.settings-payments .credit-auto-reload{margin-top:0}

.settings-provider-logo{display:inline-block;width:20px;height:20px;vertical-align:middle;margin-right:9px;object-fit:contain}

/* ── Inside ──────────────────────────────────────────────────────────────────
   /inside: one section. A centred head, then four cards that stack as the page scrolls (sticky,
   each a few pixels lower than the last). Each card is a live ASCII scene with a small readout
   over it, beside a kicker, a title and one paragraph. inside.js draws the scenes. */
.mf-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 0; }
.mf-ctas .mf-cta { margin-top: clamp(10px, 2vh, 22px); }
.mf-inside { margin-top: clamp(10px, 2vh, 22px); font: 500 var(--bkz-text-sm)/1 var(--bkz-font-mono);
  letter-spacing: .04em; color: rgba(242,242,242,.7); text-decoration: none; text-shadow: 0 0 8px #0a0a0a; }
.mf-inside:hover, .mf-inside:focus-visible { color: #fff; text-decoration: none; }

.as-whisper { display: flex; align-items: baseline; gap: 1px; margin-top: 16px; width: max-content;
  min-height: 1.5em; white-space: nowrap;
  font: 500 clamp(11px, .85vw, 13px)/1.5 var(--bkz-font-mono); letter-spacing: .04em;
  color: rgba(242,242,242,.82); text-decoration: none;
  text-shadow: 0 0 3px #0a0a0a, 0 0 6px #0a0a0a, 0 0 12px #0a0a0a, 0 0 22px #0a0a0a, 0 1px 2px #0a0a0a;
  animation: as-rise 900ms cubic-bezier(.16, .84, .28, 1) 420ms backwards; transition: color 200ms ease; }
/* Feathered, like the topbar's: the field shows around it but never through the letters. */
.as-whisper { position: relative; isolation: isolate; }
.as-whisper::before { content: ''; position: absolute; z-index: -1; inset: -22px -70px -22px -40px; pointer-events: none;
  background: radial-gradient(closest-side, #0a0a0a, rgba(10,10,10,.94) 74%, transparent); }
.as-whisper:hover, .as-whisper:focus-visible { color: var(--brand-ink); text-decoration: none; }
.as-whisper-t { min-width: 0; }
.as-whisper-k { color: var(--brand-ink); animation: in-blink 1s steps(1) infinite; }
html.as-intro .as-whisper { animation: none; opacity: 0; }
.as-stage.is-open .as-whisper { animation: none; }



.in { position: relative; z-index: 1; grid-column: 1 / -1; width: min(1080px, calc(100% - 32px)); margin: 0 auto;
  --in-blue: #4a95d6; --in-blue-ink: #1f5f9e;
  padding: clamp(20px, 3vw, 36px) 0 clamp(60px, 10vh, 120px); color: rgba(242,242,242,.72); }
.in-back { display: inline-block; font-weight: 600; font-size: var(--bkz-text-sm); color: rgba(242,242,242,.6); text-decoration: none; }
.in-back:hover, .in-back:focus-visible { color: #fff; text-decoration: none; }
.in-runhead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0;
  border-bottom: 1px solid rgba(242,242,242,.14);
  font: 500 10.5px/1.4 var(--bkz-font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(242,242,242,.5); }
.in-runhead .in-back { font: inherit; letter-spacing: inherit; }
.in-cta { display: inline-block; padding: 12px 22px; border: 1px solid #fff; border-radius: 2px;
  font: 600 var(--bkz-text-sm)/1 var(--bkz-font-sans); color: #0a0a0a; background: #fff; text-decoration: none;
  transition: transform 180ms cubic-bezier(.16,.84,.28,1); }
.in-cta:hover, .in-cta:focus-visible { color: #0a0a0a; text-decoration: none; transform: translateY(-1px) scale(1.03); }

/* ── /inside ─────────────────────────────────────────────────────────────────
   A framed hero (the street as glyphs, inside.js), four steps under it, the thesis, the
   engine's four cards, the integrations table with marks drawn as text, the method's four
   panels, the close. One column, 24px from the window's edge, the way Pylon frames a page. */
.xp { position: relative; z-index: 1; grid-column: 1 / -1; --in-blue: #5ea2e0; --xp-line: rgba(242,242,242,.1); --xp-dim: rgba(242,242,242,.56); --xp-pad: clamp(16px, 2vw, 28px); --xp-copy-pad: clamp(28px, 4vw, 56px);
  background: #0a0a0a; color: #f2f2f2; font-family: var(--bkz-font-sans); padding: 0 var(--xp-pad); }
.xp-bar { position: absolute; top: 0; left: var(--xp-pad); right: var(--xp-pad); z-index: 3; display: flex; align-items: center; gap: 28px; padding: 16px 4px; border: 0; }
.xp-bar-nav { display: flex; gap: 22px; margin-left: 12px; }
.xp-bar-a { font: 500 12px/1 var(--bkz-font-mono); letter-spacing: .08em; color: var(--xp-dim); text-decoration: none; }
.xp-bar-a:hover, .xp-bar-a:focus-visible { color: #fff; text-decoration: none; }
.xp-bar-cta { margin-left: auto; padding: 9px 14px; border: 1px solid rgba(242,242,242,.3); border-radius: 2px; font: 600 12px/1 var(--bkz-font-sans); color: #f2f2f2; text-decoration: none; transition: border-color 140ms ease; }
.xp-bar-cta:hover, .xp-bar-cta:focus-visible { border-color: #fff; color: #fff; text-decoration: none; }
.xp-kick { margin: 0 0 16px; font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--in-blue); }
.xp-h2 { margin: 0; font: 500 clamp(28px, 3.1vw, 44px)/1.1 var(--bkz-font-sans); letter-spacing: -0.03em; color: #f2f2f2; }
.xp-sub { margin: 16px 0 0; max-width: 56ch; font: 400 clamp(15px, 1.15vw, 17.5px)/1.55 var(--bkz-font-sans); color: var(--xp-dim); }
.xp-p { margin: 0 0 20px; font: 400 clamp(16px, 1.2vw, 18px)/1.65 var(--bkz-font-sans); color: rgba(242,242,242,.8); }
.xp-p:last-child { margin-bottom: 0; }
.xp-text { margin: 0; font: 400 15.5px/1.65 var(--bkz-font-sans); color: rgba(242,242,242,.76); }
.xp-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.xp-ghost { display: inline-block; padding: 12px 18px; border: 1px solid rgba(242,242,242,.35); border-radius: 2px; font: 600 var(--bkz-text-sm)/1 var(--bkz-font-sans); color: #f2f2f2; text-decoration: none; transition: border-color 140ms ease; }
.xp-ghost:hover, .xp-ghost:focus-visible { border-color: #fff; color: #fff; text-decoration: none; }
[data-rise] { opacity: 0; transform: translateY(12px); transition: opacity 700ms cubic-bezier(.16,.84,.28,1), transform 700ms cubic-bezier(.16,.84,.28,1); }
[data-rise].is-in, .xp:not(.is-js) [data-rise] { opacity: 1; transform: none; }

/* Full-viewport ASCII hero, with navigation and copy over the footage. */
.xp-hero { position: relative; min-height: 100vh; min-height: 100svh; margin-inline: calc(-1 * var(--xp-pad)); border-radius: 0; overflow: hidden; background: #0a0a0a; display: grid; align-items: end; }
.xp-video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.xp:not(.is-js) .xp-video { inset: 0; width: 100%; height: 100%; opacity: .4; object-fit: cover; filter: grayscale(1) contrast(1.2); }
.xp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.xp:not(.is-js) .xp-canvas { display: none; }
.xp-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(10,10,10,.35), rgba(10,10,10,0) 30%, rgba(10,10,10,0) 48%, rgba(10,10,10,.45) 78%, rgba(10,10,10,.72)); }
.xp-hero-in { position: static; z-index: 1; padding: 160px calc(var(--xp-pad) + 5px + var(--xp-copy-pad)) clamp(88px, 14vh, 160px); }
.xp-hero-grid { position: relative; z-index: 1; }
.xp-kick--hero { position: absolute; z-index: 1; top: 104px; left: calc(var(--xp-pad) + 5px + var(--xp-copy-pad)); margin: 0; text-shadow: 0 0 10px #0a0a0a; }
.xp-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(40px, 6vw, 120px); align-items: end; }
.xp-h1 { margin: 0; font: 500 clamp(36px, 4.6vw, 68px)/1.02 var(--bkz-font-sans); letter-spacing: -0.04em; color: #fff; text-shadow: 0 2px 30px #0a0a0a; }
.xp-lede { margin: 0; font: 400 clamp(15px, 1.2vw, 18px)/1.55 var(--bkz-font-sans); color: rgba(242,242,242,.84); text-shadow: 0 1px 16px #0a0a0a; }
.xp-hero-side .xp-cta { margin-top: 22px; }

/* The steps. */
.xp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 36px 4px 0; }
.xp-step { padding-top: 16px; border-top: 1px solid rgba(242,242,242,.22); }
.xp-step:first-child { border-top-color: var(--in-blue); }
.xp-step-n { margin: 0 0 10px; font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .14em; color: var(--xp-dim); }
.xp-step-t { margin: 0 0 8px; font: 500 18px/1.2 var(--bkz-font-sans); letter-spacing: -0.02em; color: #f2f2f2; }
.xp-step-x { margin: 0; font: 400 14.5px/1.55 var(--bkz-font-sans); color: rgba(242,242,242,.66); }

/* The thesis. */
.xp-thesis { padding: clamp(80px, 12vh, 140px) 4px; }
.xp-thesis-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(40px, 6vw, 96px); }
.xp-thesis .xp-h2 { max-width: 12ch; font-size: clamp(34px, 4vw, 58px); letter-spacing: -0.04em; }
.xp-thesis-r { padding-top: 10px; }

/* A section: a head, then its content. */
.xp-sec { padding: clamp(64px, 9vh, 110px) 4px; border-top: 1px solid var(--xp-line); }
.xp-sec-head { max-width: 760px; margin-bottom: 44px; }

/* The engine: four cards, a mock each. */
.xp-engs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.xp-eng { display: flex; flex-direction: column; border: 1px solid var(--xp-line); background: rgba(14,14,15,.8); }
.xp-eng-art { padding: 16px; border-bottom: 1px solid var(--xp-line); background: rgba(94,162,224,.05); }
.xp-eng-h { margin: 0; padding: 20px 18px 8px; font: 500 19px/1.2 var(--bkz-font-sans); letter-spacing: -0.02em; color: #f2f2f2; }
.xp-eng-x { margin: 0; padding: 0 18px 22px; font: 400 14.5px/1.55 var(--bkz-font-sans); color: rgba(242,242,242,.68); }
.xp-mock { border: 1px solid rgba(242,242,242,.14); background: rgba(8,8,9,.95); font: 500 10.5px/1.5 var(--bkz-font-mono); letter-spacing: .03em; }
.xp-mock-head { padding: 9px 12px; border-bottom: 1px solid rgba(242,242,242,.12); color: var(--xp-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-mock-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; border-bottom: 1px solid rgba(242,242,242,.06); }
.xp-mock-row:last-child { border-bottom: 0; }
.xp-mock-k { flex: none; color: var(--xp-dim); }
.xp-mock-v { color: #f2f2f2; text-align: right; min-width: 0; }
.xp-mock-row--blue .xp-mock-v { color: var(--in-blue); }
.xp-mock-row--red .xp-mock-k, .xp-mock-row--red .xp-mock-v { color: #e0665e; }
.xp-mock-row--green .xp-mock-v { color: #6fc48a; }

/* The frame: the formula, then its six axes, in the engine's cards. */
.xp-formula { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin: 0 0 16px; padding: 22px 24px; border: 1px solid var(--xp-line); background: rgba(14,14,15,.8);
  font: 500 clamp(15px, 1.4vw, 21px)/1.3 var(--bkz-font-mono); letter-spacing: -0.01em; color: #f2f2f2; }
.xp-fx { font-style: italic; }
.xp-fop { color: var(--in-blue); }
.xp-axes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.xp-axis { display: flex; flex-direction: column; border: 1px solid var(--xp-line); background: rgba(14,14,15,.8); }
.xp-axis-n { padding: 14px 18px 0; font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .14em; color: var(--xp-dim); }
.xp-axis-k { padding: 10px 18px 0; font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--in-blue); }
.xp-axis-name { padding: 14px 18px 8px; font: 500 19px/1.2 var(--bkz-font-sans); letter-spacing: -0.02em; color: #f2f2f2; }
.xp-axis-x { padding: 0 18px 22px; font: 400 14.5px/1.55 var(--bkz-font-sans); color: rgba(242,242,242,.68); }

/* The method: four panels, each a dithered still and a card beside the words. */
.xp-panels { display: grid; gap: 16px; }
.xp-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border: 1px solid var(--xp-line); background: rgba(14,14,15,.8); overflow: hidden; }
.xp-panel--flip .xp-panel-art { order: 2; }
.xp-panel-art { position: relative; min-height: 400px; background: #0a0a0a; }
.xp-dither { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.xp-panel-n { position: absolute; z-index: 1; left: 20px; top: 18px; font: 500 12px/1 var(--bkz-font-mono); letter-spacing: .14em; color: #fff; text-shadow: 0 0 8px #0a0a0a; }
.xp-panel-copy { display: flex; flex-direction: column; justify-content: center; padding: var(--xp-copy-pad); min-width: 0; }
.xp-h3 { margin: 0 0 16px; font: 500 clamp(24px, 2.3vw, 32px)/1.12 var(--bkz-font-sans); letter-spacing: -0.03em; color: #f2f2f2; }
.xp-panel-copy .xp-text { max-width: 46ch; }
.xp-card { position: absolute; z-index: 1; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(380px, calc(100% - 40px)); padding: 14px 16px 12px;
  border: 1px solid rgba(242,242,242,.14); background: rgba(8,8,9,.92); box-shadow: 0 24px 60px rgba(0,0,0,.6); font: 500 11px/1.5 var(--bkz-font-mono); letter-spacing: .04em; }
.xp-card-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(242,242,242,.12); color: var(--xp-dim); }
.xp-card-status { color: var(--in-blue); }
.xp-card-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(242,242,242,.06); }
.xp-card-k { color: var(--xp-dim); }
.xp-card-v { color: #f2f2f2; text-align: right; }
.xp-card-v--blue { color: var(--in-blue); }
.xp-card-v--red { color: #e0665e; }
.xp-card-v--green { color: #6fc48a; }
.xp-card-foot { padding-top: 10px; font-size: 10px; color: rgba(242,242,242,.42); }

/* The close, and the footer. */
.xp-close { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: clamp(64px, 10vh, 120px) calc(5px + var(--xp-copy-pad)); border-top: 1px solid var(--xp-line); }
.xp-close-copy { min-width: 0; }
.xp .xp-logo-ascii { position: relative; inset: auto; opacity: 1; pointer-events: auto; height: auto; display: block; width: min(740px, 50vw); max-width: none; aspect-ratio: 1; justify-self: center; }
.xp-h2--close { max-width: 14ch; font-size: clamp(34px, 4.4vw, 64px); letter-spacing: -0.04em; }
.xp-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 4px 40px; border-top: 1px solid var(--xp-line); }
.xp-foot-mark { display: inline-flex; align-items: baseline; gap: 8px; font: 600 18px/1 var(--bkz-font-sans); letter-spacing: -0.03em; color: #f2f2f2; text-decoration: none; }
.xp-foot-mark:hover, .xp-foot-mark:focus-visible { color: #fff; text-decoration: none; }
.xp-foot-seal { font: 500 11px/1 var(--bkz-font-mono); color: var(--in-blue); }
.xp-foot-nav { display: flex; gap: 28px; }
.xp-foot-a, .xp-foot-c { font: 500 12px/1 var(--bkz-font-mono); letter-spacing: .08em; color: var(--xp-dim); text-decoration: none; }
.xp-foot-a:hover, .xp-foot-a:focus-visible { color: #fff; text-decoration: none; }

@media (max-width: 1100px) {
  .xp-engs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-axes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .xp-hero-grid, .xp-thesis-grid { grid-template-columns: 1fr; gap: 24px; }
  .xp-close { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .xp .xp-logo-ascii { width: min(620px, calc(100vw - 24px)); }
  .xp-thesis-r { padding-top: 0; }
  .xp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .xp-panel { grid-template-columns: 1fr; }
  .xp-panel--flip .xp-panel-art { order: 0; }
  .xp-panel-art { min-height: 320px; }
}
@media (max-width: 640px) {
  .xp-bar-nav { display: none; }
  .xp-hero { min-height: 100vh; min-height: 100svh; }
  .xp-steps, .xp-engs, .xp-axes { grid-template-columns: 1fr; }
  .xp-foot { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { [data-rise] { transition: none; } }

/* ── Articles ────────────────────────────────────────────────────────────────
   /articles and /articles/<slug>: breken's writing. The front is the open-source wall's design
   (see "Articles on the open-source wall" below); a piece is one reading column with a contents
   rail that follows along and a reading line across the top, over the landing's field, faint. */
.ar, .ar-index { --ar-ink: #f2f2f2; --ar-body: rgba(242,242,242,.8); --ar-dim: rgba(242,242,242,.52); --ar-faint: rgba(242,242,242,.34);
  --ar-line: rgba(242,242,242,.11); --ar-blue: #5ea2e0; --ar-blue-soft: rgba(94,162,224,.14); }
.ar { position: relative; z-index: 1; grid-column: 1 / -1; width: min(1180px, calc(100% - 40px)); margin: 0 auto;
  padding-bottom: 140px; font-family: var(--bkz-font-sans); color: var(--ar-ink); }
.ar-main { display: block; }
.ar-dot { margin: 0 8px; color: var(--ar-faint); }

/* The reading line: how far down the piece the reader is. */
.ar-progress { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 2px; background: rgba(242,242,242,.05); pointer-events: none; }
.ar-progress-bar { display: block; height: 100%; background: var(--ar-blue); transform: scaleX(0); transform-origin: 0 50%;
  box-shadow: 0 0 14px rgba(94,162,224,.65); }

/* The bar: the open-source wall's two corners, in flow above the piece. */
.ar-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0 18px; border-bottom: 1px solid var(--ar-line); }

.ar-tag { display: inline-block; padding: 5px 8px 4px; border: 1px solid rgba(94,162,224,.42); border-radius: 2px;
  font: 500 10.5px/1 var(--bkz-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ar-blue); }
.ar-ava { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(94,162,224,.5);
  border-radius: 50%; font: 600 12px/1 var(--bkz-font-mono); letter-spacing: .04em; color: var(--ar-blue); background: var(--ar-blue-soft); }

/* A piece: its head. */
.ar-article { padding-top: clamp(48px, 8vh, 88px); }
.ar-head { max-width: 700px; margin: 0 auto 44px; }
.ar-meta { display: flex; align-items: center; flex-wrap: wrap; margin: 0 0 24px; font: 500 12px/1 var(--bkz-font-mono); letter-spacing: .06em; color: var(--ar-dim); }
.ar-title { margin: 0; font-size: clamp(38px, 5vw, 66px); font-weight: 500; line-height: 1.02; letter-spacing: -0.04em; color: var(--ar-ink);
  text-shadow: 0 2px 26px rgba(10,10,10,.95); }
.ar-deck { margin: 22px 0 0; max-width: 36em; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; color: var(--ar-dim); }
.ar-byline { display: flex; align-items: center; gap: 14px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--ar-line); }
.ar-by { display: flex; flex-direction: column; gap: 4px; }
.ar-by-name { font-size: 14.5px; font-weight: 600; line-height: 1; color: var(--ar-ink); }
.ar-by-handle { font: 400 12px/1 var(--bkz-font-mono); color: var(--ar-dim); text-decoration: none; }
.ar-by-handle:hover, .ar-by-handle:focus-visible { color: var(--ar-blue); text-decoration: none; }
.ar-src { margin-left: auto; }
.ar-src-a { font: 500 12px/1 var(--bkz-font-mono); letter-spacing: .06em; color: var(--ar-blue); text-decoration: none; }
.ar-src-a:hover, .ar-src-a:focus-visible { color: var(--ar-blue); text-decoration: underline; text-underline-offset: 3px; }

/* A piece: the rail beside the column. */
.ar-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr); column-gap: 48px; }
.ar-rail { grid-column: 1; justify-self: end; width: min(100%, 220px); }
.ar-toc { position: sticky; top: 36px; }
.ar-toc-h { margin: 0 0 14px; font: 600 10.5px/1 var(--bkz-font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ar-faint); }
.ar-toc-list { margin: 0; padding: 0; list-style: none; counter-reset: ar-toc; }
.ar-toc-list li { margin: 0 0 10px; }
.ar-toc-a { display: flex; gap: 10px; font-size: 13px; line-height: 1.4; color: var(--ar-dim); text-decoration: none; transition: color 140ms ease; }
.ar-toc-a::before { counter-increment: ar-toc; content: counter(ar-toc, decimal-leading-zero); flex: none; font: 500 11px/1.65 var(--bkz-font-mono); color: var(--ar-faint); }
.ar-toc-a:hover, .ar-toc-a:focus-visible { color: var(--ar-ink); text-decoration: none; }
.ar-toc-a.is-active { color: var(--ar-ink); }
.ar-toc-a.is-active::before { color: var(--ar-blue); }
.ar-col { grid-column: 2; min-width: 0; counter-reset: ar-sec; }

/* A piece: the text. */
.ar-lead { margin: 0 0 28px; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; color: var(--ar-ink); }
.ar-h2 { margin: 60px 0 18px; font-size: clamp(24px, 2.2vw, 31px); font-weight: 500; line-height: 1.18; letter-spacing: -0.025em; color: var(--ar-ink);
  scroll-margin-top: 28px; counter-increment: ar-sec; }
.ar-h2::before { content: counter(ar-sec, decimal-leading-zero); display: block; margin: 0 0 12px; font: 500 12px/1 var(--bkz-font-mono); letter-spacing: .14em; color: var(--ar-blue); }
.ar-h3 { margin: 36px 0 10px; font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -0.012em; color: var(--ar-ink); }
.ar-p { margin: 0 0 22px; font-size: 18px; line-height: 1.72; color: var(--ar-body); }
.ar-p strong, .ar-lead strong { font-weight: 600; color: var(--ar-ink); }
.ar-a { color: var(--ar-ink); text-decoration: underline; text-decoration-color: rgba(94,162,224,.55); text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color 140ms ease; }
.ar-a:hover, .ar-a:focus-visible { color: var(--ar-blue); text-decoration-color: var(--ar-blue); }
.ar-code { padding: 1px 5px; border-radius: 3px; background: rgba(242,242,242,.07); font: 400 .88em var(--bkz-font-mono); color: var(--ar-ink); }
.ar-note { margin: -8px 0 28px; font: 500 11.5px/1.5 var(--bkz-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ar-blue); }
.ar-note .ar-a { color: var(--ar-blue); text-decoration: none; border-bottom: 1px solid rgba(94,162,224,.4); }
.ar-quote { margin: 8px 0 28px; padding: 4px 0 4px 22px; border-left: 2px solid var(--ar-blue); font-size: 21px; line-height: 1.5; letter-spacing: -0.01em; color: var(--ar-ink); }
.ar-fig { margin: 10px 0 30px; padding: 22px 24px; border: 1px solid var(--ar-line); border-radius: 4px; background: rgba(7,7,8,.92); overflow-x: auto;
  font: 400 13px/1.5 var(--bkz-font-mono); color: rgba(150,196,236,.95); white-space: pre; }
.ar-close { margin: 56px 0 0; font-size: clamp(22px, 2vw, 28px); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; color: var(--ar-ink); }
.ar-cite { margin-left: 1px; font: 600 .6em/1 var(--bkz-font-mono); vertical-align: super; }
.ar-cite a { color: var(--ar-blue); text-decoration: none; }
.ar-cite a:hover, .ar-cite a:focus-visible { text-decoration: underline; }
.ar-try { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin: 48px 0 0; padding-top: 32px; border-top: 1px solid var(--ar-line); }
.ar-share { font: 500 12px/1 var(--bkz-font-mono); letter-spacing: .06em; color: var(--ar-dim); text-decoration: none; transition: color 140ms ease; }
.ar-share:hover, .ar-share:focus-visible { color: var(--ar-blue); text-decoration: none; }
.ar-sources { margin: 64px 0 0; padding-top: 22px; border-top: 1px solid var(--ar-line); }
.ar-sources-h { margin: 0 0 12px; font: 600 10.5px/1 var(--bkz-font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ar-faint); }
.ar-sources ol { margin: 0; padding-left: 20px; }
.ar-sources li { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: var(--ar-dim); scroll-margin-top: 24px; }
.ar-sources li:target { color: var(--ar-ink); }
.ar-sources li::marker { font: 500 11px var(--bkz-font-mono); color: var(--ar-blue); }
.ar-ref-link { font: 400 12.5px var(--bkz-font-mono); color: var(--ar-blue); }
.ar-more { margin-top: 96px; padding-top: 28px; border-top: 1px solid var(--ar-line); }
.ar-more-h { margin: 0 0 4px; font: 600 10.5px/1 var(--bkz-font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ar-faint); }

/* A comparison inside a piece. */
.ar-cmp { margin: 8px 0 28px; border: 1px solid var(--ar-line); border-radius: 4px; background: rgba(8,8,8,.88); }
.ar-cmp-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 12px 16px;
  border-top: 1px solid var(--ar-line); }
.ar-cmp-head { border-top: 0; }
.ar-cmp-cell { font-size: 14px; line-height: 1.45; color: var(--ar-body); }
.ar-cmp-th { font: 600 10.5px/1.4 var(--bkz-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ar-dim); }
.ar-cmp-k { font: 500 12.5px/1.45 var(--bkz-font-mono); color: var(--ar-ink); }
.ar-cmp-v { color: var(--ar-body); }

@media (max-width: 1200px) {
  .ar-layout { grid-template-columns: minmax(0, 700px); justify-content: center; }
  .ar-rail { display: none; }
  .ar-col { grid-column: 1; }
}
@media (max-width: 760px) {
  .ar { width: calc(100% - 32px); }
  .ar-byline { flex-wrap: wrap; }
  .ar-src { flex-basis: 100%; margin-left: 52px; }
  .ar-p { font-size: 17px; }
  .ar-fig { padding: 16px; font-size: 11.5px; }
  .ar-cmp-head { display: none; }
  .ar-cmp-row { grid-template-columns: 1fr; gap: 3px; }
}

/* Saved registration selections use onboarding typography. */
.launch-repos{list-style:none;padding:0;margin:28px 0;border-top:1px solid var(--border,#34332f)}
.launch-repos li,.launch-repos label{display:block;padding:14px 0;border-bottom:1px solid var(--border,#34332f);overflow-wrap:anywhere}
#launch-purpose{width:100%;resize:vertical;min-height:130px;line-height:1.6}
.launch-answer [hidden]{display:none!important}
.launch-answer-success{padding:32px 0;text-align:center;outline:none}
.launch-answer-success svg{width:64px;height:64px;fill:none;stroke:#7bd9a5;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;animation:launch-answer-in .3s ease-out both}
.launch-answer-success circle{stroke-opacity:.35}
.launch-answer-success path{stroke-dasharray:48;stroke-dashoffset:48;animation:launch-answer-check .4s .15s ease-out forwards}
.launch-answer-success p{margin:16px 0 0;color:var(--muted,#aaa)}
@keyframes launch-answer-in{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}
@keyframes launch-answer-check{to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){.launch-answer-success svg,.launch-answer-success path{animation:none;stroke-dashoffset:0}}
/* Keep the confirmation action and secondary navigation comfortably separated. */
.launch-confirm-actions{display:flex;flex-direction:column;align-items:flex-start;gap:22px;margin-top:32px}
.launch-confirm-actions form,.launch-confirm-actions p{margin:0}
.launch-confirm-actions .btn{max-width:100%;white-space:normal}
/* The card last (BREKEN_CARD_LAST_1126, app/card-last.ts): confirm setup, then the card on one screen. */
.cl-steps{display:flex;flex-wrap:wrap;gap:6px 18px;list-style:none;margin:0 0 22px;padding:0;font-size:12px;color:var(--ui-ink-muted)}
.cl-steps li{display:flex;align-items:center;gap:7px}
.cl-steps li span{display:inline-grid;place-items:center;width:20px;height:20px;border:1px solid var(--bkz-border-soft,#34332f);border-radius:50%;font-size:11px}
.cl-steps li.is-done span{border-color:#4fb477;background:#4fb477;color:#0f0f0e}
.cl-steps li.is-on{color:var(--ui-ink-strong)}
.cl-steps li.is-on span{border-color:var(--brand,#5799c4);color:var(--ui-ink-strong)}
.cl-confirm{display:grid;gap:18px;margin:0}
.cl-confirm section h2,.cl-scan h2{margin:0 0 6px}
.cl-agent,.cl-draft{display:grid;gap:10px;padding:16px 18px;border:1px solid var(--bkz-border-soft,#34332f)}
.cl-agent{border-left:3px solid var(--brand,#5799c4)}
.cl-h2{margin:0;font-size:var(--bkz-text-md);font-weight:600;color:var(--ui-ink-strong)}
.cl-agent textarea,.cl-edit textarea,.cl-field textarea{box-sizing:border-box;width:100%;resize:vertical}
.cl-agent p,.cl-draft p{margin:0}
.cl-state{font-size:var(--bkz-text-sm);color:var(--ui-ink-body)}
.cl-state.is-received,.cl-state.is-confirmed{color:#4fb477}
.cl-summary{margin:0}
.cl-summary li{padding:8px 0}
.cl-edit summary,.cl-extras summary,.cl-other summary{cursor:pointer;font-size:var(--bkz-text-sm);color:var(--ui-ink-body)}
.cl-extras{padding:12px 14px;border:1px solid var(--bkz-border-soft,#34332f)}
.cl-extras fieldset{margin:12px 0 0;padding:0;border:0;display:grid;gap:8px}
.cl-extras legend{padding:0;margin:0 0 4px;font-weight:600;font-size:var(--bkz-text-sm)}
.cl-field{display:grid;gap:4px;margin:10px 0 0;font-size:var(--bkz-text-sm)}
.cl-field .input{width:100%;box-sizing:border-box}
.cl-field small,.cl-choice small,.cl-other small{color:var(--ui-ink-muted);font-size:12px}
.cl-radio{display:flex;align-items:center;gap:8px;font-size:var(--bkz-text-sm)}
.cl-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.cl-notices{margin:16px 0 0}
.cl-notices [role=alert]{color:var(--ui-ink-body)}
.cl-scan{margin:22px 0 0;padding:16px 18px;border:1px solid var(--bkz-border-soft,#34332f)}
.cl-scan p{margin:4px 0 0}
.cl-price b{font-weight:600;color:var(--ui-ink-strong)}
.cl-pay,.cl-guarantee{margin:14px 0 0;color:var(--ui-ink-body)}
.cl-card{display:grid;gap:12px;margin:18px 0 0}
.cl-card form{display:grid;gap:14px;margin:0}
.cl-limits{display:grid;gap:10px;margin:0;padding:0;border:0}
.cl-limits legend{padding:0;margin:0 0 6px;font-weight:600}
.cl-choice{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid var(--bkz-border-soft,#34332f);cursor:pointer;line-height:1.5}
.cl-choice:has(input:checked){border-color:#427fb0;background:rgba(66,127,176,.08)}
.cl-choice input{margin:4px 0 0;flex:0 0 auto}
.cl-choice>span{display:grid;gap:2px}
.cl-other .credit-auto-input{margin-top:10px;max-width:240px}
.cl-card .acs-cta{justify-self:start;padding:12px 20px;border:0;background:var(--bkz-blue-deep,#427fb0);color:var(--ui-on-accent,#fff);font:600 14px 'Space Grotesk',sans-serif;cursor:pointer}
.cl-card .acs-fine{margin:0;font-size:12px;color:var(--ui-ink-muted)}
@media(max-width:560px){.cl-actions .btn{width:100%}.cl-card .acs-cta{justify-self:stretch}}
/* Your copy (BREKEN_SETUP_CHECK_1126, app/setup-check-view.ts): the copy's status, the failing step's ask, the short checklist. */
.sc-copy{display:grid;gap:12px;margin:0 0 18px;padding:16px 18px;border:1px solid var(--bkz-border-soft,#34332f)}
.sc-copy p{margin:0}
.sc-head{font-size:var(--bkz-text-sm);color:var(--ui-ink-body)}
.sc-head.is-ready{color:#4fb477}
.sc-head.is-failed,.sc-head.is-handoff{color:var(--ui-ink-strong)}
.sc-lines{display:grid;gap:6px;list-style:none;margin:8px 0;padding:0;font-size:var(--bkz-text-sm)}
.sc-lines li{display:flex;flex-wrap:wrap;gap:4px 8px;padding-left:20px;position:relative;color:var(--ui-ink-muted)}
.sc-lines li::before{content:'';position:absolute;left:0;top:.45em;width:9px;height:9px;border-radius:50%;border:1px solid var(--bkz-border-soft,#34332f)}
.sc-lines li b{font-weight:600;color:var(--ui-ink-body)}
.sc-lines li.is-done::before{background:#4fb477;border-color:#4fb477}
.sc-lines li.is-now::before{border-color:var(--brand,#5799c4);background:var(--brand,#5799c4);opacity:.6}
.sc-lines li.is-failed::before{background:#d9664f;border-color:#d9664f}
.sc-lines li.is-failed b{color:var(--ui-ink-strong)}
.sc-lines li.is-skipped{opacity:.7}
.sc-asks{display:grid;gap:12px}
.sc-ask,.sc-list{display:grid;gap:8px;margin:0;padding:12px 14px;border:1px solid var(--bkz-border-soft,#34332f)}
.sc-ask{border-left:3px solid #d9664f}
.sc-ask textarea{box-sizing:border-box;width:100%;resize:vertical}
.sc-agent summary{cursor:pointer;font-size:var(--bkz-text-sm);color:var(--ui-ink-body)}
.sc-agent[open]{display:grid;gap:8px}
.sc-items{display:grid;gap:12px;list-style:none;margin:0;padding:0}
.sc-modes{display:flex;flex-wrap:wrap;gap:6px 16px}
.sc-recheck{margin:0}
.sc-list-fold>summary{cursor:pointer;font-size:var(--bkz-text-sm);color:var(--ui-ink-body)}
.sc-list-fold[open]>summary{margin-bottom:8px}

/* Full-page workspace settings with a persistent category rail. */
.workspace-settings-layout { display:grid; grid-template-columns:190px minmax(0,1fr); gap:40px; align-items:start; }
.workspace-settings-nav { position:sticky; top:24px; display:flex; flex-direction:column; gap:5px; border-right:1px solid var(--ui-border); padding-right:20px; }
.workspace-settings-nav a { display:block; padding:11px 14px; border-radius:0; color:var(--ui-ink-body); text-decoration:none; }
.workspace-settings-nav a:hover { background:rgba(255,255,255,.05); }
.workspace-settings-nav a[aria-current="page"] { background:rgba(128,128,128,.2); color:var(--ui-ink-strong); font-weight:600; }
.workspace-settings-content { min-width:0; }
/* Contact support (BREKEN_SETTINGS_CONTACT_SUPPORT): one small button at the bottom right of Settings. */
.settings-support { display:flex; justify-content:flex-end; margin-top:32px; }
.workspace-settings-content [data-settings-panel][hidden] { display:none; }
.workspace-settings-heading { margin:0 0 28px; font-size:22px; }
.workspace-settings-content .set-sec:first-of-type { margin-top:0; }
@media(max-width:850px) {
  .workspace-settings-layout { grid-template-columns:1fr; gap:24px; }
  .workspace-settings-content { min-height:0; }
  .workspace-settings-nav { position:static; flex-direction:row; flex-wrap:wrap; border-right:0; border-bottom:1px solid var(--ui-border); padding:0 0 12px; }
  .workspace-settings-nav a { padding:9px 12px; }
}

.workspace-code-entry { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.workspace-code-entry .input { flex:1; min-width:140px; }

/* Stripe owns the secure fields; the surrounding card follows Breken's settings styling. */
.billing-card-page { max-width:640px; margin:clamp(24px,8vh,88px) auto; }
.billing-card-page h1 { margin:28px 0 12px; }
.billing-card-fields { margin-top:28px; padding:24px; background:var(--ui-surface); border:1px solid var(--ui-border); }
.billing-card-fields [data-card-payment] { margin:24px 0; }
.billing-card-fields [data-card-error] { color:#f29690; }
.billing-saved-cards { margin-top:24px; border-top:1px solid var(--ui-border); padding-top:20px; }
.billing-saved-card { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:14px 0; border-bottom:1px solid var(--ui-border); }
.billing-saved-card:last-child { border-bottom:0; }
.billing-saved-card .billing-card-brand { text-transform:capitalize; }
@media(max-width:600px) { .billing-card-fields { padding:16px; } }

/* Keep the complete settings frame centered, with navigation and content sharing a top edge. */
.main-inner.page-settings { width:100%; max-width:1152px; margin-inline:auto; padding:40px 32px 80px; box-sizing:border-box; }
.page-settings .page-head { margin-bottom:32px; }
.settings-payments .credit-auto-reload { padding:24px; text-align:left; }
.settings-payments .credit-auto-reload > h2 { margin:0 0 10px; }
.settings-payments .credit-auto-reload > .sub { margin:0; max-width:68ch; line-height:1.6; }
.settings-payments .credit-auto-options { display:grid; gap:24px; margin-top:24px; padding-top:24px; }
.settings-payments .credit-auto-field { align-items:start; gap:8px 24px; }
.settings-payments .credit-auto-field .credit-auto-input { align-self:start; align-items:center; }
.settings-payments .credit-auto-heading { display:grid; grid-template-columns:minmax(0,1fr) 180px; gap:24px; }
.settings-payments .credit-auto-heading > input { justify-self:end; margin:0; }
.settings-payments .credit-auto-heading label { font-size:var(--bkz-text-md); font-weight:600; line-height:1.5; }
.settings-payments .credit-auto-heading .sub { margin:8px 0 0; max-width:65ch; }
.settings-payments .credit-auto-footer { margin-top:0; padding-top:24px; align-items:start; }
.settings-payments .credit-auto-footer .btn { flex-shrink:0; }
.settings-payments .credit-auto-footer .btn:only-child { margin-left:auto; }
.settings-payments .credit-auto-footer .sub { max-width:52ch; }
@media(max-width:850px) { .main-inner.page-settings { padding:24px 20px 56px; } }
@media(max-width:680px) {
  .settings-payments .credit-auto-reload { padding:20px 16px; }
  .settings-payments .credit-auto-heading { grid-template-columns:minmax(0,1fr) auto; gap:16px; }
}

/* Settings dialogs remain in the workspace context. */
.settings-dialog { width:min(640px, calc(100vw - 32px)); max-height:calc(100dvh - 64px); margin:auto; padding:28px; box-sizing:border-box; overflow:auto; background:var(--ui-panel, #1b1a17); color:var(--ui-text, #edece7); border:1px solid var(--ui-border); border-radius:0; font:inherit; }
.settings-dialog::backdrop { background:rgb(0 0 0 / 70%); }
.settings-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:24px; }
.settings-dialog-heading h2 { margin:0; }
.billing-card-dialog { position:fixed; inset:0; overscroll-behavior:contain; }
.billing-card-dialog .billing-card-fields { padding:0; border:0; }
.billing-card-fields > .sub { margin:20px 0; line-height:1.65; }
.billing-card-fields [data-card-save] { margin-top:8px; margin-bottom:8px; }
.settings-linear-dialog { width:min(840px, calc(100vw - 32px)); }
.settings-linear-dialog .linear-teams-back { display:none; }
.settings-linear-dialog .linear-teams-page { margin-top:0; }
.settings-linear-dialog .linear-team-row { flex-wrap:wrap; }
.workspace-settings-content .usage-dashboard { padding:0; max-width:none; }
.workspace-settings-content .monthly-spending > .btn { margin-top:20px; }

.monthly-limit-caption { display:flex; justify-content:space-between; align-items:baseline; gap:16px; margin:12px 0; }
.monthly-limit-caption > span { white-space:nowrap; }
.monthly-spending > .credit-monthly-progress { display:block; width:100%; height:8px; margin:0 0 16px; }
.monthly-spending > .credit-monthly-progress::-webkit-progress-value { background:#edece7; }
.monthly-spending > .credit-monthly-progress::-moz-progress-bar { background:#edece7; }
.workspace-settings-content .monthly-spending-total { font-size:14px; }
/* Usage shares the settings section headers, cards and type scale. */
.workspace-settings-content .usage-dashboard { gap:28px; }
.workspace-settings-content .usage-dashboard .set-sec { margin:0; }
.workspace-settings-content .usage-dashboard .monthly-spending,
.workspace-settings-content .usage-dashboard .monthly-repositories { padding:24px; font-size:var(--bkz-text-sm); }
.workspace-settings-content .usage-dashboard .monthly-spending-total { font-size:var(--bkz-text-md); margin:16px 0 8px; }
.workspace-settings-content .usage-dashboard .monthly-spending .sub { font-size:var(--bkz-text-sm); line-height:1.6; }
.workspace-settings-content .usage-dashboard .monthly-repositories td:first-child { overflow-wrap:anywhere; }
/* BREKEN_WALKTHROUGH_FITS_THE_WORKSPACE: included usage beside monthly usage, one line to the invoices and payments. */
.workspace-settings-content .usage-dashboard .monthly-repositories .num { text-align:right; white-space:nowrap; padding-left:20px; font-variant-numeric:tabular-nums; }
.workspace-settings-content .usage-dashboard .usage-ledger-link { margin:0; font-size:var(--bkz-text-sm); }
.billing-card-priority { display:flex; gap:6px; margin-left:auto; }
.billing-card-rank { font-variant-numeric:tabular-nums; color:var(--ui-ink-muted); }

.billing-email { display:flex; flex-direction:column; gap:6px; margin-bottom:20px; font-size:14px; }
.billing-email .input { width:100%; font:inherit; font-size:16px; border-radius:0; }
/* BREKEN_CARD_ASK_SMALL_1125: the card form's country and postal code, side by side; stacked on a phone. */
.billing-card-place { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:0 12px; }
@media(max-width:600px) { .billing-card-place { grid-template-columns:minmax(0,1fr); } }
/* Behind long text the field is quieter still: present, never under a sentence. */
.as-ascii.mf-field.is-ready:has(+ .ar) { opacity: .028; }

/* Looped panel footage is sampled into the existing two-tone canvas. */
.xp-panel-video{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.xp:not(.is-js) .xp-panel-video{inset:0;width:100%;height:100%;opacity:1;object-fit:cover;filter:grayscale(1)}

.billing-card-summary { display:flex; align-items:center; gap:12px; min-width:0; }
.billing-card-icon { width:56px; height:35px; flex-shrink:0; }
.billing-card-identity { min-width:0; }
.billing-card-identity .sub { margin:4px 0 0; }
/* Homepage navigation and backers share the Inside layout. */
.xp-bar { justify-content: flex-end; gap: 12px; }
.xp-bar-cta { margin-left: 0; background: #f2f2f2; color: #0a0a0a; border-color: #f2f2f2; padding: 12px 18px; }
.xp-bar-cta:hover, .xp-bar-cta:focus-visible { background: #fff; color: #0a0a0a; }
.xp-bar-oss { display: inline-flex; align-items: center; padding: 12px 18px; border: 1px solid rgba(242,242,242,.35); border-radius: 2px; font: 600 12px/1 var(--bkz-font-sans); color: #f2f2f2; text-decoration: none; }
.xp-bar-oss:hover, .xp-bar-oss:focus-visible { border-color: #fff; color: #fff; text-decoration: none; }
/* The benchmark's way back home, top left (founder 10-21). */
.xp-bar .bm-home { margin-right: auto; }
.xp-backers { grid-column: 1 / -1; justify-self: center; text-align: center; width: 100%; }
.xp-backers-label { margin: 0 0 24px; font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--xp-dim); }
.xp-backers-list { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px 44px; list-style: none; padding: 0; margin: 0; }
.xp-backers-list img { display: block; width: auto; max-width: 140px; height: 58px; object-fit: contain; filter: brightness(0) invert(1); opacity: .8; }
@media (max-width: 640px) { .xp-backers-list { gap: 12px 24px; } .xp-backers-list img { max-width: 110px; height: 48px; } }

/* Larger public-page typography and calls to action. */
.xp-h1 { font-size: clamp(40px, 5vw, 74px); }
.xp-lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; }
.xp-text { font-size: clamp(17px, 1.3vw, 19px); }
.xp-h3 { font-size: clamp(28px, 2.8vw, 40px); }
.xp-h2--close { font-size: clamp(42px, 5.3vw, 78px); }
.xp-kick, .xp-backers-label { font-size: 12px; }
.xp .in-cta, .xp-ghost, .xp-bar-cta, .xp-bar-oss,
.ar .in-cta, .oss-cta, .mf-cta { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 16px 24px; font-size: 16px; line-height: 1.2; }
.xp-cta { gap: 16px; margin-top: 32px; }
.xp-hero-side .xp-cta { margin-top: 28px; }
.oss-h1 { font-size: clamp(32px, 3.5vw, 54px); }
.mf-h1 { font-size: clamp(32px, 3.5vw, 48px); }
.mf-p { font-size: clamp(16px, 1.25vw, 18px); }
.ar-title { font-size: clamp(44px, 5.8vw, 78px); }
.ar-deck { font-size: clamp(20px, 1.8vw, 26px); }
.ar-p { font-size: 20px; }
@media (max-width: 640px) {
  .xp-hero-in { padding-top: 136px; padding-bottom: 76px; }
  .xp-bar { gap: 10px; }
  .xp-bar-cta, .xp-bar-oss { font-size: 14px; padding: 14px 16px; min-height: 48px; }
  .xp .in-cta, .xp-ghost, .ar .in-cta, .oss-cta, .mf-cta { font-size: 15px; padding: 15px 20px; }
  .ar-p { font-size: 19px; }
}

/* Closing copy, backers and mark share one vertical center. */
.xp-close { grid-template-columns: minmax(0, 1fr) minmax(160px, .5fr) minmax(0, 1fr); gap: 28px; }
.xp-close-copy { grid-column: 1; grid-row: 1; }
.xp-backers { grid-column: 2; grid-row: 1; align-self: center; }
.xp-backers-list { flex-direction: column; gap: 14px; }
.xp .xp-logo-ascii { grid-column: 3; grid-row: 1; width: min(740px, 40vw); background: transparent; transform: translateX(20px); }
@media (min-width: 901px) and (max-width: 1400px) {
  .xp-close { grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr); gap: 20px; }
  .xp .xp-logo-ascii { width: 40vw; transform: translateX(10px); }
}
@media (max-width: 900px) {
  .xp-close { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .xp-close-copy, .xp-backers, .xp .xp-logo-ascii { grid-column: 1; grid-row: auto; }
  .xp .xp-logo-ascii { width: min(620px, calc(100vw - 24px)); transform: none; }
  .xp-backers-list { flex-direction: row; }
}

/* Articles share the new homepage's quiet black surface and generous type. */
body:has(.ar) { background: #0a0a0a; }
.ar { --xp-dim: rgba(242,242,242,.56); --xp-line: rgba(242,242,242,.1); --in-blue: #5ea2e0; width: min(1360px, calc(100% - 56px)); padding-bottom: 0; }
.ar-bar { padding: clamp(20px, 3.4vw, 40px) 0 0; border-bottom: 0; }
.ar-bar .mf-back { margin: 0; }
.ar-bar .oss-cta { position: static; }
.ar-tag { padding: 0; border: 0; border-radius: 0; font-size: 11px; }
.ar-ava { border-radius: 2px; background: transparent; border-color: var(--ar-line); }
.ar-article { padding-top: clamp(64px, 10vh, 112px); }
.ar-head { max-width: 760px; margin-bottom: 56px; }
.ar-title { font-size: clamp(42px, 5.3vw, 78px); text-shadow: none; }
.ar-deck { font-size: clamp(20px, 1.8vw, 25px); color: var(--ar-body); line-height: 1.55; }
.ar-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 760px) minmax(0, 1fr); column-gap: 36px; }
.ar-lead { font-size: 23px; line-height: 1.65; }
.ar-p { font-size: 20px; line-height: 1.75; }
.ar-h2 { font-size: clamp(29px, 2.8vw, 38px); }
.ar-h3 { font-size: 24px; }
.ar-fig, .ar-cmp { border-radius: 0; background: #0e0e0f; }
@media (max-width: 1200px) {
  .ar-layout { grid-template-columns: minmax(0, 760px); }
}
@media (max-width: 760px) {
  .ar { width: calc(100% - 32px); }
  .ar-lead { font-size: 21px; }
  .ar-p { font-size: 19px; }
}

/* Inside's bar wraps on a narrow screen. */
.xp-bar { flex-wrap: wrap; }
@media (max-width: 480px) {
  .xp-bar { gap: 8px; }
  .xp-bar-oss, .xp-bar-cta { padding: 12px; font-size: 13px; }
}

/* Read a gallery article without leaving the gallery. */
.ar-modal { position: fixed; inset: 0; margin: auto; width: min(1040px, calc(100vw - 64px)); max-width: none; height: calc(100dvh - 64px); max-height: none; padding: 0; border: 1px solid var(--ar-line); border-radius: 0; background: #0e0e0f; color: var(--ar-ink); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.ar-modal::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.ar-modal-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; border-bottom: 1px solid var(--ar-line); background: #0e0e0f; font: 500 12px/1 var(--bkz-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ar-dim); }
.ar-modal-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--ar-line); background: transparent; color: #f2f2f2; font: 400 28px/1 var(--bkz-font-sans); cursor: pointer; }
.ar-modal-close:hover { border-color: #f2f2f2; }
.ar-modal-close:focus-visible { outline: 2px solid var(--ar-blue); outline-offset: 3px; }
.ar-modal-content { padding: 40px clamp(24px, 5vw, 64px) 64px; }
.ar-modal .ar-article { padding-top: 0; }
.ar-modal .ar-head { max-width: 760px; }
.ar-modal .ar-title { font-size: clamp(36px, 4.5vw, 60px); }
.ar-modal .ar-layout { display: block; max-width: 760px; margin-inline: auto; }
.ar-modal [id] { scroll-margin-top: 96px; }
@media (max-width: 640px) {
  .ar-modal { width: calc(100vw - 16px); height: calc(100dvh - 16px); }
  .ar-modal-bar { padding: 8px 16px; }
  .ar-modal-content { padding: 28px 20px 48px; }
}

/* ── Articles on the open-source wall ──────────────────────────────────────────
   /articles IS the open-source page's design, built from its own classes: the landing's field
   faint behind (.oss-field), the corners (.mf-back, .oss-cta), the headline and mono count
   (.oss-h1, .oss-count), the wall's grid and cards (.oss-collage, .oss-wall, .oss-card,
   .oss-card-text, .oss-card-name, .oss-card-meta, .oss-card-by) and its sign-off (.oss-more).
   What is here is only what writing needs that a merged pull request does not: a plate of
   glyphs where the logo is, a title that wraps, a standfirst, and the tiles' spans.

   The spans close into one rectangle at every column count the wall steps through: the lead
   piece is a square twice a tile's side, and four tiles fill the square beside it. */
.ar-tile { grid-column: span 4; grid-row: span 4; }
.ar-tile--lead { grid-column: span 8; grid-row: span 8; }
@media (max-width: 1439px) {
  .ar-tile { grid-column: span 3; grid-row: span 3; }
  .ar-tile--lead { grid-column: span 6; grid-row: span 6; }
}
@media (max-width: 1279px) { .ar-tile--lead { grid-row: span 3; } }
@media (max-width: 899px) {
  .ar-tile { grid-column: span 2; grid-row: span 2; }
  .ar-tile--lead { grid-column: span 4; grid-row: span 3; }
}
@media (max-width: 640px) { .ar-tile--lead { grid-column: span 2; grid-row: span 2; } }
.ar-plate { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ar-tile-n { position: absolute; z-index: 1; top: 12px; left: 14px; font: 500 11px/1 var(--bkz-font-mono);
  letter-spacing: .14em; color: rgba(242,242,242,.45); }
.ar-tile-text { z-index: 1; gap: 6px; padding: 56px 16px 14px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.92) 42%); }
.ar-tile-meta { text-transform: uppercase; letter-spacing: .12em; }
.ar-tile-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; white-space: normal;
  font-size: clamp(18px, 1.45vw, 24px); line-height: 1.15; }
.ar-tile--lead .ar-tile-title { -webkit-line-clamp: 4; font-size: clamp(26px, 3vw, 46px); line-height: 1.06; letter-spacing: -0.03em; }
.ar-tile-sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font: 400 12px/1.45 var(--bkz-font-mono); color: rgba(242,242,242,.62); }
.ar-tile--lead .ar-tile-sub { -webkit-line-clamp: 3; max-width: 60ch; font-size: 13px; }
.ar-tile--lead .ar-tile-text { gap: 10px; padding: 96px clamp(16px, 2vw, 28px) clamp(14px, 1.6vw, 24px); }
.ar-tile-link:focus-visible { outline: 2px solid #f2f2f2; outline-offset: -2px; }
/* The sign-off carries the other public doors, in the count's register. */
.ar-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; margin-top: clamp(28px, 5vh, 56px); }
.ar-foot a { color: inherit; text-decoration: none; white-space: nowrap; }
.ar .ar-foot { padding-bottom: clamp(28px, 5vh, 48px); }
.ar-foot a:hover, .ar-foot a:focus-visible { color: #f2f2f2; text-decoration: none; }
/* Under a piece, two more: the same tiles, side by side, not on the wall's square grid. */
.ar-more .oss-collage { margin-top: 20px; }
.ar-more .ar-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 16px; }
.ar-more .ar-tile { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
@media (max-width: 640px) {
  .ar-more .ar-wall { grid-template-columns: minmax(0, 1fr); }
  .ar-more .ar-tile { aspect-ratio: 1; }
  .ar-tile--lead .ar-tile-title { font-size: 26px; }
  .ar-tile-text { padding: 40px 14px 12px; }
}

/* ── The manifesto over the landing's globe ───────────────────────────────────
   The manifesto's backdrop is the landing's hero itself (pages.ts landingGlobe, drawn by
   inside.js), pinned to the viewport and held still on scroll, so "Read our manifesto" opens
   onto the world the visitor was just looking at rather than the field the landing used to be.
   A scrim, darkest under the reading column, keeps the words readable over it. */
.xp.mf-xp { position: fixed; inset: 0; z-index: 0; padding: 0; background: #0a0a0a; pointer-events: none; }
.mf-xp .xp-hero { position: absolute; inset: 0; min-height: 0; margin: 0; }
.mf-xp .xp-hero::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 58% 80% at 50% 50%, rgba(10,10,10,.9) 40%, rgba(10,10,10,.55)); }
@media (max-width: 640px) { .mf-xp .xp-hero::after { background: rgba(10,10,10,.84); } }

/* ── The auth pages and the manifesto on the current landing (BREKEN_AUTH_LANDING_CURRENT_1123) ──
   product/auth-landing-current.ts. Invite, sign-in and sign-up: one card over the landing's globe (pinned and
   dimmed as the manifesto's), Back a link to "/". The manifesto: the globe pushed far back and the words on a solid
   panel, one type scale (48 / 24 / 18 / 14) on an 8px rhythm, the wordmark and its links one row at the column's foot. */
.xp.au-xp { position: fixed; inset: 0; z-index: 0; padding: 0; background: #0a0a0a; pointer-events: none; }
.auth-split:has(> .au-xp), .auth-split:has(> .mf2-xp) { background: #0a0a0a; }
.au-xp .xp-hero { position: absolute; inset: 0; min-height: 0; margin: 0; }
.au-xp .xp-hero::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 56% 70% at 50% 50%, rgba(10,10,10,.88) 38%, rgba(10,10,10,.5)); }
.xp-backbar { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center;
  padding: clamp(12px, 2vw, 28px) clamp(12px, 3vw, 40px); }
.xp-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
  font: 600 var(--bkz-text-sm)/1 var(--bkz-font-sans); color: rgba(242,242,242,.72); text-decoration: none;
  text-shadow: 0 0 10px #0a0a0a; transition: color 140ms ease; }
.xp-back:hover, .xp-back:focus-visible { color: #fff; text-decoration: none; }
.au { position: relative; z-index: 1; grid-column: 1 / -1; box-sizing: border-box; min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; padding: 88px 16px 48px; }
.au-pane { display: contents; }
.au .auth2-card { box-sizing: border-box; width: min(430px, 100%); box-shadow: 0 24px 80px rgba(0,0,0,.6); }
.au .auth2-card-invite { width: min(560px, 100%); }
@media (max-width: 560px) {
  .au { place-items: start center; padding: 72px 16px 32px; }
  .au-xp .xp-hero::after { background: rgba(10,10,10,.8); }
}

.mf2-xp .xp-hero::after { background: rgba(10,10,10,.7); }
.mf2 { position: relative; z-index: 1; grid-column: 1 / -1; box-sizing: border-box; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 96px 16px 64px; }
.mf2-panel { box-sizing: border-box; width: min(720px, 100%); padding: 56px 64px;
  background: rgba(10,10,10,.92); border: 1px solid rgba(242,242,242,.1); border-radius: 4px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 32px 120px rgba(0,0,0,.6); }
.mf2-h1 { margin: 0 0 32px; font: 600 clamp(36px, 4vw, 48px)/1.08 var(--bkz-font-sans); letter-spacing: -0.035em;
  color: #f2f2f2; text-wrap: balance; }
.mf2-p { margin: 0 0 24px; font: 400 18px/1.65 var(--bkz-font-sans); color: rgba(242,242,242,.76); }
.mf2-pull { margin: 32px 0; font: 600 24px/1.3 var(--bkz-font-sans); letter-spacing: -0.015em; color: #f2f2f2; text-wrap: balance; }
.mf2-sign { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(242,242,242,.12); }
.mf2-sign .mf-fix { margin: 0; line-height: 1; }
.mf2-sign .mf-name { font-size: 40px; }
.mf2-sign .mf-seal { font-size: 14px; margin-left: 8px; }
.mf2-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 0; }
.mf2-cta { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border: 1px solid #fff; border-radius: 2px; background: #fff; color: #0a0a0a;
  font: 600 16px/1 var(--bkz-font-sans); text-decoration: none; transition: transform 180ms cubic-bezier(.16,.84,.28,1); }
.mf2-cta:hover, .mf2-cta:focus-visible { color: #0a0a0a; text-decoration: none; transform: translateY(-1px); }
.mf2-inside { display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  font: 500 14px/1 var(--bkz-font-mono); letter-spacing: .04em; color: rgba(242,242,242,.72); text-decoration: none; }
.mf2-inside:hover, .mf2-inside:focus-visible { color: #fff; text-decoration: none; }
@media (max-width: 640px) {
  .mf2 { justify-content: flex-start; padding: 72px 16px 32px; }
  .mf2-panel { padding: 32px 20px; }
  .mf2-h1 { margin-bottom: 24px; font-size: 34px; }
  .mf2-p { margin-bottom: 20px; font-size: 17px; line-height: 1.6; }
  .mf2-pull { margin: 24px 0; font-size: 21px; }
  .mf2-sign { flex-direction: column; align-items: flex-start; margin-top: 32px; padding-top: 24px; }
  .mf2-sign .mf-name { font-size: 36px; }
  .mf2-ctas { width: 100%; }
  .mf2-cta { flex: 1 1 100%; }
}

.monthly-spending > .credit-monthly-progress-inactive { opacity:.35; }
.monthly-spending > .credit-monthly-progress-inactive::-webkit-progress-value { background:#8a8880; }
.monthly-spending > .credit-monthly-progress-inactive::-moz-progress-bar { background:#8a8880; }
.github-member-table { overflow-x:auto; }
.github-member-table table { width:100%; border-collapse:collapse; }
.github-member-table th,.github-member-table td { padding:16px 0; text-align:left; border-bottom:1px solid var(--ui-border); }
.github-member-table th { font-size:var(--bkz-text-sm); color:var(--ui-ink-muted); font-weight:500; }
.github-member-name { color:var(--ui-ink-muted); }
.github-member-table form { display:flex; justify-content:flex-end; align-items:center; gap:12px; flex-wrap:wrap; }
.github-member-table .input { width:240px; max-width:100%; }
[data-member-more] { margin-top:16px; }

/* ── /benchmark ──────────────────────────────────────────────────────────────
   ESCAPES. An article in the /inside register: black sheet, Space Grotesk, Plex Mono labels,
   hairlines, one blue. A 220px contents rail and a 760px reading column, as the articles.
   Every chart is divs coloured by class; the only inline style is a width or offset in
   percent, which is data. No table element: grids with table semantics instead. */
body:has(.bm) { background: #0a0a0a; }
.bm { --bm-ink: #f2f2f2; --bm-body: rgba(242,242,242,.8); --bm-dim: rgba(242,242,242,.52); --bm-faint: rgba(242,242,242,.34);
  --bm-line: rgba(242,242,242,.11); --bm-line2: rgba(242,242,242,.2); --bm-blue: #5ea2e0; --bm-grey: #8a8a8a; min-width: 0; overflow-x: clip;
  -webkit-font-smoothing: antialiased; }
.bm :target { scroll-margin-top: 28px; }
.bm a:focus-visible { outline: 2px solid var(--bm-blue); outline-offset: 3px; }
.bm ::selection { background: var(--bm-ink); color: #0a0a0a; }

/* Frame: hero and body in the right column, the contents rail in the left. */
.bm-ar { width: min(1360px, 100%); margin: 0 auto; padding: 118px 0 120px; display: grid; grid-template-columns: 220px minmax(0, 760px); column-gap: 120px; justify-content: start; }
.bm-head { grid-column: 2; min-width: 0; }
.bm-tag { margin: 0; font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bm-blue); }
.bm-tag-sep { color: var(--bm-faint); margin: 0 8px; }
.bm-h1 { margin: 22px 0 26px; font: 500 clamp(42px, 5.3vw, 78px)/1.02 var(--bkz-font-sans); letter-spacing: -.04em; color: var(--bm-ink); }
.bm-dek { margin: 0; font: 400 23px/1.45 var(--bkz-font-sans); color: var(--bm-dim); max-width: 720px; }

/* The hero chart. */
.bm-cmpf { margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--bm-line); }
.bm-ct { margin: 0 0 8px; font: 500 19px/1.35 var(--bkz-font-sans); color: var(--bm-ink); letter-spacing: -.01em; }
.bm-cs { margin: 0 0 24px; font: 400 15.5px/1.6 var(--bkz-font-sans); color: var(--bm-dim); max-width: 700px; }
.bm-cmp { display: block; }
.bm-cmp-r { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(0, 2.2fr) 120px; gap: 18px; align-items: center; padding: 10px 0; }
.bm-cmp-nm { font: 400 16px/1.3 var(--bkz-font-sans); color: var(--bm-body); }
.bm-cmp-how { display: block; font: 500 10.5px/1.6 var(--bkz-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bm-faint); margin-top: 2px; }
.bm-cmp-r--hi .bm-cmp-nm { color: var(--bm-ink); font-weight: 500; }
.bm-cmp-t { position: relative; height: 14px; background-image: linear-gradient(90deg, var(--bm-line) 1px, transparent 1px); background-size: 25% 100%; }
.bm-cmp-i { position: absolute; left: 0; top: 0; height: 14px; background: var(--bm-grey); min-width: 2px; }
.bm-cmp-r--hi .bm-cmp-i { background: var(--bm-ink); }
.bm-cmp-v { font: 500 13.5px/1 var(--bkz-font-mono); text-align: right; color: var(--bm-ink); font-variant-numeric: tabular-nums; }
.bm-cmp-ax { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(0, 2.2fr) 120px; gap: 18px; margin-top: 8px; }
.bm-ax-s { grid-column: 2; display: flex; justify-content: space-between; font: 400 11px/1 var(--bkz-font-mono); color: var(--bm-faint); }
.bm-ax-s b { font-weight: 400; }
.bm-cap { margin: 14px 0 0; font: 400 14px/1.55 var(--bkz-font-sans); color: var(--bm-dim); }
.bm-cap--hero { margin-top: 20px; max-width: 700px; font-size: 15px; }

/* Contents rail. */
.bm-rail { grid-column: 1; grid-row: 2; align-self: start; position: sticky; top: 36px; padding-top: 96px; }
.bm-rail-h { margin: 0 0 14px; font: 600 10.5px/1 var(--bkz-font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--bm-faint); }
.bm-rail-l { margin: 0; padding: 0; list-style: none; }
.bm-rail-i { margin: 0 0 10px; }
.bm-rail-a { display: flex; gap: 10px; font: 400 13px/1.4 var(--bkz-font-sans); color: var(--bm-dim); text-decoration: none; }
.bm-rail-a:hover, .bm-rail-a:focus-visible { color: var(--bm-ink); text-decoration: none; }
.bm-rail-n { flex: none; font: 500 11px/1.65 var(--bkz-font-mono); color: var(--bm-faint); }

/* Body. */
.bm-bd { grid-column: 2; grid-row: 2; padding-top: 96px; min-width: 0; }
.bm-bd > .bm-sec:first-child .bm-h2 { margin-top: 0; }
.bm-sec { min-width: 0; }
.bm-h2 { margin: 88px 0 18px; font: 500 clamp(29px, 2.8vw, 38px)/1.18 var(--bkz-font-sans); letter-spacing: -.025em; color: var(--bm-ink); scroll-margin-top: 28px; }
.bm-h2-n { display: block; margin: 0 0 12px; font: 500 12px/1 var(--bkz-font-mono); letter-spacing: .14em; color: var(--bm-blue); }
.bm-h3 { margin: 44px 0 12px; font: 600 22px/1.35 var(--bkz-font-sans); letter-spacing: -.012em; color: var(--bm-ink); }
.bm-h4 { margin: 24px 0 6px; font: 600 15px/1.4 var(--bkz-font-sans); color: var(--bm-ink); }
.bm-p { margin: 0 0 22px; font: 400 20px/1.75 var(--bkz-font-sans); color: var(--bm-body); }
.bm-p--after { margin-top: 24px; }
.bm-p strong, .bm-small strong { font-weight: 600; color: var(--bm-ink); }
.bm-small { margin: 12px 0 0; font: 400 15px/1.6 var(--bkz-font-sans); color: var(--bm-dim); }
.bm-small--top { margin: 0 0 10px; }
.bm-small strong { font-weight: 500; color: var(--bm-body); }
.bm-lab { margin: 40px 0 6px; font: 600 10.5px/1 var(--bkz-font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--bm-faint); }

/* The PDF's bullet list. */
.bm-pts { margin: 6px 0 30px; padding: 0; list-style: none; }
.bm-pt { position: relative; padding: 9px 0 9px 24px; font: 400 17.5px/1.6 var(--bkz-font-sans); color: var(--bm-body); }
.bm-pt::before { content: ''; position: absolute; left: 4px; top: 19px; width: 5px; height: 5px; border-radius: 50%; background: var(--bm-blue); }
.bm-pt b { color: var(--bm-ink); font-weight: 600; }
.bm-pt--q::before { background: var(--bm-faint); }

/* Rows: key and text. */
.bm-rows { margin: 8px 0 28px; border-top: 1px solid var(--bm-line); }
.bm-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--bm-line); font: 400 16px/1.55 var(--bkz-font-sans); color: var(--bm-body); }
.bm-row--n { grid-template-columns: 40px minmax(0, 1fr); }
.bm-row--w { grid-template-columns: 190px minmax(0, 1fr); }
.bm-row--r3 { grid-template-columns: 130px minmax(0, 1fr) 150px; }
.bm-row-em { font: 500 12.5px/1.6 var(--bkz-font-mono); font-style: normal; color: var(--bm-dim); text-align: right; }
.bm-k { font: 500 12.5px/1.6 var(--bkz-font-mono); color: var(--bm-ink); padding-top: 3px; }
.bm-k--m { color: var(--bm-faint); }
.bm-k--b { color: var(--bm-blue); }
.bm-row b { color: var(--bm-ink); font-weight: 600; }
.bm-row-t { display: block; margin-bottom: 2px; }
.bm-row-sub { display: block; font: 500 11px/1.7 var(--bkz-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bm-faint); }
.bm-f { display: inline-block; font: 400 13px/1.6 var(--bkz-font-mono); color: var(--bm-ink); }
.bm-f-note { display: block; font-size: 14px; color: var(--bm-dim); margin-top: 4px; }

/* Stat tiles. */
.bm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 0 8px; padding: 18px 0 22px; border-top: 1px solid var(--bm-line); }
.bm-stat { min-width: 0; }
.bm-stat-n { display: block; font: 500 34px/1 var(--bkz-font-sans); letter-spacing: -.03em; color: var(--bm-ink); }
.bm-stat-l { display: block; font: 400 14px/1.45 var(--bkz-font-sans); color: var(--bm-dim); margin-top: 8px; }

/* Folds. */
.bm-dxs { display: block; }
.bm-dx { border-top: 1px solid var(--bm-line); }
.bm-dx:last-of-type { border-bottom: 1px solid var(--bm-line); }
.bm-sum { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bm-dim); }
.bm-sum::-webkit-details-marker { display: none; }
.bm-sum::after { content: '+'; font: 400 16px/1 var(--bkz-font-mono); color: var(--bm-faint); }
.bm-dx[open] .bm-sum::after { content: '−'; }
.bm-sum:hover { color: var(--bm-ink); }
.bm-in { padding: 2px 0 18px; }
.bm-in .bm-rows { margin-top: 0; }

/* Figures. */
.bm-fig { margin: 28px 0 40px; min-width: 0; }
.bm-fig--in { margin-top: 12px; }
.bm-ft { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 18px; font: 500 10.5px/1.5 var(--bkz-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bm-faint); flex-wrap: wrap; }
.bm-ft-b { color: var(--bm-dim); font-weight: 500; }
.bm-fs { margin: -8px 0 18px; font: 400 14.5px/1.6 var(--bkz-font-sans); color: var(--bm-dim); }
.bm-key { display: flex; gap: 22px; font: 400 13px/1 var(--bkz-font-sans); color: var(--bm-dim); margin-bottom: 18px; flex-wrap: wrap; }
.bm-key-i { display: inline-block; width: 14px; height: 8px; margin-right: 8px; vertical-align: 0; background: var(--bm-ink); }
.bm-key-i--g { background: var(--bm-grey); }

/* Figure 2: pairs of bars per "what the bug needs". */
.bm-prs { display: block; }
.bm-pr { display: grid; grid-template-columns: minmax(160px, 1.1fr) minmax(0, 2fr) 56px; gap: 16px; align-items: center; padding: 7px 0; }
.bm-pr-nm { font: 400 15px/1.35 var(--bkz-font-sans); color: var(--bm-body); }
.bm-pr-n { color: var(--bm-faint); font-size: 12.5px; margin-left: 6px; }
.bm-pr-bs { display: grid; gap: 2px; }
.bm-pr-b { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; align-items: center; }
.bm-pr-t { position: relative; height: 8px; background-image: linear-gradient(90deg, var(--bm-line) 1px, transparent 1px); background-size: 25% 100%; }
.bm-pr-i { position: absolute; left: 0; top: 0; height: 8px; background: var(--bm-ink); min-width: 2px; }
.bm-pr-i--g { background: var(--bm-grey); }
.bm-pr-v { font: 500 12px/1 var(--bkz-font-mono); font-style: normal; color: var(--bm-ink); font-variant-numeric: tabular-nums; }
.bm-pr-v--g { color: var(--bm-dim); }
.bm-pr-ax { display: grid; grid-template-columns: minmax(160px, 1.1fr) minmax(0, 2fr) 56px; gap: 16px; margin-top: 6px; }

/* Bugs by language. */
.bm-lgs { display: block; }
.bm-lg { display: grid; grid-template-columns: minmax(160px, 1.1fr) minmax(0, 2fr) 56px; gap: 16px; align-items: center; padding: 7px 0; }
.bm-lg-nm { font: 400 15px/1.35 var(--bkz-font-sans); color: var(--bm-body); }
.bm-lg-n { color: var(--bm-faint); font-size: 12.5px; margin-left: 6px; }
.bm-lg-t { position: relative; height: 9px; background-image: linear-gradient(90deg, var(--bm-line) 1px, transparent 1px); background-size: 25% 100%; }
.bm-lg-i { position: absolute; left: 0; top: 0; height: 9px; background: var(--bm-ink); min-width: 2px; }
.bm-lg-v { font: 500 13px/1 var(--bkz-font-mono); text-align: right; color: var(--bm-ink); font-variant-numeric: tabular-nums; }
.bm-lg-ax { display: grid; grid-template-columns: minmax(160px, 1.1fr) minmax(0, 2fr) 56px; gap: 16px; margin-top: 6px; }

/* Figure 1: the weighted score from a zero line. */
.bm-ws { display: block; }
.bm-w { display: grid; grid-template-columns: minmax(200px, 1.2fr) minmax(0, 2fr) 70px; gap: 16px; align-items: center; padding: 9px 0; }
.bm-w-nm { font: 400 15px/1.35 var(--bkz-font-sans); color: var(--bm-body); }
.bm-w-sub { display: block; font: 400 11.5px/1.5 var(--bkz-font-mono); color: var(--bm-faint); margin-top: 2px; }
.bm-w--hi .bm-w-nm { color: var(--bm-ink); font-weight: 500; }
.bm-w-t { position: relative; height: 14px; background-image: linear-gradient(90deg, var(--bm-line) 1px, transparent 1px); background-size: 25% 100%; }
.bm-w-t::after { content: ''; position: absolute; left: 50%; top: -5px; bottom: -5px; width: 1px; background: var(--bm-line2); }
.bm-w-i { position: absolute; top: 2px; height: 10px; background: var(--bm-grey); }
.bm-w--hi .bm-w-i { background: var(--bm-ink); }
.bm-w-v { font: 500 13px/1 var(--bkz-font-mono); text-align: right; color: var(--bm-ink); font-variant-numeric: tabular-nums; }
.bm-w-ax { display: grid; grid-template-columns: minmax(200px, 1.2fr) minmax(0, 2fr) 70px; gap: 16px; margin-top: 8px; }

/* Grids with table semantics. */
.bm-tw { overflow-x: auto; margin: 10px 0 6px; }
.bm-tbl { display: block; font: 400 15px/1.45 var(--bkz-font-sans); color: var(--bm-body); }
.bm-tr { display: grid; gap: 0 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--bm-line); }
.bm-tr--h { padding: 0 0 12px; border-bottom: 1px solid var(--bm-line2); align-items: end; }
.bm-tr--h .bm-td--r { white-space: normal; }
.bm-tr--h .bm-td { font: 600 10.5px/1.4 var(--bkz-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bm-dim); white-space: nowrap; }
.bm-td { min-width: 0; }
.bm-td--r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bm-td--k { color: var(--bm-ink); font-weight: 500; }
.bm-td--m { font: 400 12.5px/1.5 var(--bkz-font-mono); color: var(--bm-dim); }
.bm-td--dim { color: var(--bm-dim); }
.bm-td-note { display: block; font-weight: 400; color: var(--bm-dim); }
.bm-tr--hi .bm-td { color: var(--bm-ink); }
.bm-tr--hi .bm-td--k { color: var(--bm-blue); }
.bm-tr--grp { padding-top: 20px; }
.bm-tr--grp .bm-td { font: 500 10.5px/1.4 var(--bkz-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bm-faint); }
.bm-tbl--res { min-width: 760px; font-size: 13.5px; }
.bm-tbl--res .bm-tr { grid-template-columns: minmax(10rem, 1.5fr) repeat(8, minmax(0, 1fr)); gap: 0 7px; }
.bm-tbl--res .bm-tr--h .bm-td { letter-spacing: .1em; white-space: normal; line-height: 1.35; }
.bm-rk { font: 500 11px/1 var(--bkz-font-mono); color: var(--bm-faint); margin-right: 10px; }
.bm-sys-how { display: block; font: 500 10.5px/1.6 var(--bkz-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bm-faint); margin-left: 21px; }
.bm-tbl--fit .bm-tr { grid-template-columns: minmax(8rem, 1fr) minmax(0, 2fr) minmax(0, 2fr); }
.bm-tbl--kind { min-width: 640px; }
.bm-tbl--kind .bm-tr { grid-template-columns: minmax(12rem, 2fr) repeat(5, minmax(0, 1fr)); }
.bm-tbl--fail .bm-tr { grid-template-columns: minmax(9rem, 1fr) 4rem minmax(0, 3fr); }
.bm-tbl--prod { min-width: 640px; }
.bm-tbl--prod .bm-tr { grid-template-columns: minmax(14rem, 2fr) minmax(8rem, 2fr) 6rem 3.5rem 6rem; }
.bm-tbl--prod .bm-tr--grp { grid-template-columns: minmax(0, 1fr); }
.bm-tbl--mode .bm-tr { grid-template-columns: 6rem minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.2fr); }

/* Code. */
.bm-pre { margin: 12px 0 18px; padding: 0 0 4px; overflow: auto; font: 400 12.5px/1.65 var(--bkz-font-mono); color: var(--bm-body); white-space: pre; }
.bm-c { color: var(--bm-faint); }
.bm-kw { color: var(--bm-ink); }

/* Cases. */
.bm-case { padding: 30px 0 0; }
.bm-case .bm-rows { margin-bottom: 0; }
.bm-case-h { margin: 0 0 6px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; font-size: 20px; }
.bm-case-tag { font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bm-blue); white-space: nowrap; }
.bm-case-tag--miss { color: var(--bm-faint); }
.bm-case-meta { margin: 0 0 14px; font: 500 11px/1.6 var(--bkz-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bm-faint); }

/* End of the open-benchmark section. */
.bm-hash { margin: 24px 0 0; font: 400 12.5px/1.8 var(--bkz-font-mono); color: var(--bm-faint); word-break: break-all; }
.bm-hash-k { color: var(--bm-dim); font-weight: 500; margin-right: 10px; }
.bm-try { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin: 56px 0 0; padding-top: 32px; border-top: 1px solid var(--bm-line); }
.bm-try-a, .bm-try-p { font: 500 16px/1.2 var(--bkz-font-sans); padding: 16px 24px; border: 1px solid rgba(242,242,242,.3); text-decoration: none; color: var(--bm-ink); }
.bm-try-p { background: var(--bm-ink); color: #0a0a0a; border-color: var(--bm-ink); }
.bm-try-a:hover, .bm-try-p:hover, .bm-try-a:focus-visible, .bm-try-p:focus-visible { text-decoration: none; border-color: #fff; }
.bm .xp-foot { width: min(1360px, 100%); margin: 0 auto; }

@media (max-width: 1100px) {
  .bm-ar { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .bm-head, .bm-bd { grid-column: 1; }
  .bm-rail { display: none; }
  .bm-bd { grid-row: auto; padding-top: 64px; }
}
@media (max-width: 760px) {
  .bm-stats { grid-template-columns: 1fr 1fr; }
  .bm-cmp-r, .bm-cmp-ax { grid-template-columns: 1fr 110px; }
  .bm-cmp-nm { grid-column: 1 / -1; }
  .bm-cmp-ax .bm-ax-s { grid-column: 1; }
  .bm-row, .bm-row--w, .bm-row--r3 { grid-template-columns: 1fr; gap: 4px; }
  .bm-row--n { grid-template-columns: 40px minmax(0, 1fr); }
  .bm-row-em { text-align: left; }
  .bm-pr, .bm-pr-ax, .bm-lg, .bm-lg-ax { grid-template-columns: 1fr 50px; }
  .bm-pr-nm, .bm-lg-nm { grid-column: 1 / -1; }
  .bm-pr-ax .bm-ax-s, .bm-lg-ax .bm-ax-s { grid-column: 1; }
  .bm-w, .bm-w-ax { grid-template-columns: 1fr 60px; }
  .bm-w-nm { grid-column: 1 / -1; }
  .bm-w-ax .bm-ax-s { grid-column: 1; }
  .bm-p { font-size: 18px; }
  .bm-dek { font-size: 20px; }
  .bm-pt { font-size: 16.5px; }
}

/* ---------- the question page (/repo/<owner>/<name>/fix, repo-fix-page.ts): mobile first ---------- */
.fix-page { max-width: 640px; }
.fix-head { margin: 4px 0 14px; }
.fix-h { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--ui-ink-strong); }
.fix-progress { margin: 6px 0 0; font-size: var(--bkz-text-base); color: var(--ui-ink-muted); }
.fix-intro { margin: 0 0 16px; font-size: var(--bkz-text-base); line-height: 1.55; color: var(--ui-ink-muted); }
.fix-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fix-card { padding: 18px 16px; border-radius: var(--bkz-radius-3xl); border: 1px solid var(--ui-glass-border-solid); background: var(--ui-glass-solid); }
.fix-card-h { margin: 0 0 6px; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--ui-ink-strong); }
.fix-why { margin: 0 0 10px; font-size: var(--bkz-text-sm); line-height: 1.55; color: var(--ui-ink-muted); }
.fix-q { margin: 0 0 14px; font-size: var(--bkz-text-base); line-height: 1.5; color: var(--ui-ink-strong); }
.fix-big { display: block; box-sizing: border-box; width: 100%; min-height: 48px; padding-top: 12px; padding-bottom: 12px; font-size: var(--bkz-text-base); line-height: 1.35; text-align: center; white-space: normal; }
.fix-tag { font-weight: 400; opacity: 0.85; }
.fix-next { margin: 8px 0 0; font-size: var(--bkz-text-sm); line-height: 1.5; color: var(--ui-ink-muted); }
.fix-hint { display: block; margin: 6px 0 10px; font-size: var(--bkz-text-sm); line-height: 1.5; color: var(--ui-ink-muted); }
.fix-form .field { margin-top: 10px; }
.fix-form textarea.input { resize: vertical; min-height: 64px; font: inherit; }
.fix-form .input { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 44px; font-size: 16px; }
.fix-more, .fix-skip, .fix-saved { margin-top: 12px; }
.fix-more > summary, .fix-skip > summary, .fix-saved > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.fix-more > summary { color: var(--ui-ink-strong); text-decoration: underline; text-underline-offset: 3px; }
.fix-saved { margin-top: 24px; }
.fix-saved .set-list { margin-top: 6px; }
.fix-more > summary:focus-visible, .fix-skip > summary:focus-visible, .fix-saved > summary:focus-visible, .fix-big:focus-visible { outline: 2px solid var(--ui-ink-strong); outline-offset: 2px; }
.fix-inline { display: inline; margin: 0; }
.fix-done { padding: 16px; border-radius: var(--bkz-radius-3xl); margin: 0 0 16px; border: 1px solid var(--bkz-success-border); background: var(--bkz-success-tint); color: var(--bkz-success-ink); }
.fix-done-t { margin: 0 0 12px; font-size: var(--bkz-text-base); font-weight: 600; line-height: 1.5; }
.fix-done-s { margin: 10px 0 0; font-size: var(--bkz-text-sm); }
.fix-recheck .fix-hint { color: inherit; opacity: 0.85; }
.fix-ok { padding: 10px 12px; border-radius: var(--bkz-radius-3xl); font-size: var(--bkz-text-sm); line-height: 1.55; margin: 0 0 14px;
  border: 1px solid var(--bkz-success-border); background: var(--bkz-success-tint); color: var(--bkz-success-ink); }
.fix-page .srow-s.muted { font-size: var(--bkz-text-sm); }
.fix-page .srow { grid-template-columns: minmax(0, 1fr); }
.fix-page .srow-r { grid-column: 1; grid-row: 3; justify-self: start; }
@media (min-width: 720px) {
  .fix-card { padding: 22px 24px; }
  .fix-big { width: auto; display: inline-block; padding-left: 20px; padding-right: 20px; }
  .fix-page .srow { grid-template-columns: minmax(0, 1fr) auto; }
  .fix-page .srow-r { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) { .fix-page * { transition: none !important; } }
/* A private key pasted on the question page: masked like a password field where the browser supports it. */
.fix-form textarea.fix-secret { -webkit-text-security: disc; font-family: var(--bkz-font-mono); }
/* The question page is ONE centered column under the repository's tabs (founder 10-30: "why is this not centered"): the column is
   the page, its header and its cards share its width; full width on a phone (main-inner's own padding). */
.main-inner.page-fix { max-width: 720px; }
.main-inner.page-fix .fix-page { max-width: none; }
/* The lead question as a popup (ask-pop.js, BREKEN_ASK_HONEST): a native modal dialog, so the browser's own modal rules center it
   on both axes; no margin, top or position here. Its card loses its own frame inside the dialog's. */
.ask-pop { box-sizing: border-box; width: min(560px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px;
  border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-3xl); background: var(--ui-raised, var(--ui-sunk)); color: var(--ui-ink-strong); box-shadow: 0 24px 80px rgb(0 0 0 / 0.35); }
.ask-pop::backdrop { background: rgb(0 0 0 / 0.45); }
.ask-pop > .fix-card, .ask-pop > .fix-ok, .ask-pop > .us-wb-q { display: block; margin: 0; padding: 0; border: 0; background: none; color: inherit; }
.ask-pop > .btn-row { margin-top: 16px; justify-content: flex-end; }

/* A PRODUCT OF SEVERAL REPOSITORIES (product-parts-page.ts, BREKEN_MULTI_REPO). Mobile-first: one column, full-width
   choices big enough for a thumb; the panel's actions wrap under the part on a narrow screen. */
.pcard { margin: 14px 0; padding: 16px; border: 1px solid var(--ui-glass-border-solid); border-radius: var(--bkz-radius-3xl); background: var(--ui-glass-solid); }
.pcard-h { margin: 0 0 6px; font-size: var(--bkz-text-md, 16px); font-weight: 600; color: var(--ui-ink-strong); line-height: 1.3; }
.pcard-parts { margin: 0 0 8px; font-size: var(--bkz-text-md, 16px); color: var(--ui-ink-body); overflow-wrap: anywhere; }
.pcard-parts b { color: var(--ui-ink-strong); font-weight: 600; }
.pcard-role { color: var(--ui-ink-muted); }
.pcard-ev, .pcard-note, .pcard-bill { margin: 0 0 10px; font-size: var(--bkz-text-sm, 14px); line-height: 1.45; color: var(--ui-ink-muted); overflow-wrap: anywhere; }
.pcard-why { color: var(--ui-ink-soft); }
.pcard-bill { margin: 10px 0 0; }
.pcard-set { margin: 4px 0 12px; padding: 0; border: 0; display: grid; gap: 8px; }
.pcard-q { margin: 0 0 4px; padding: 0; font-weight: 600; color: var(--ui-ink-strong); }
.pcard-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; min-height: 44px; border: 1px solid var(--ui-glass-border-solid); border-radius: var(--bkz-radius-xl, 10px); cursor: pointer; }
.pcard-opt:has(input:checked) { border-color: var(--ui-ink-soft); }
.pcard-opt input { margin-top: 3px; flex: none; }
.pcard-opt b { display: block; color: var(--ui-ink-strong); font-weight: 600; }
.pcard-sub { display: block; font-size: var(--bkz-text-sm, 14px); color: var(--ui-ink-muted); }
.pcard-go { width: 100%; }
.pp .set-list { margin-top: 2px; }
.pp-this { font-weight: 400; font-size: var(--bkz-text-sm, 14px); }
.pp-row .srow-s .mono { overflow-wrap: anywhere; }
.pp-acts { flex-wrap: wrap; justify-content: flex-end; }
.pp-op { margin: 0; }
.pp-state { color: var(--ui-ink-body); }
.pp-stand-in { color: var(--ui-ink-muted); }
.pp-add { margin: 12px 2px 0; }
.pp-add > summary { list-style: none; display: inline-flex; cursor: pointer; }
.pp-add > summary::-webkit-details-marker { display: none; }
.pp-add-form { display: grid; gap: 10px; margin-top: 10px; max-width: 520px; }
.pp-add-form .field { display: grid; gap: 4px; }
.pp-add-form .dd { width: 100%; }
.pp-notice { margin: 0 2px 10px; font-size: var(--bkz-text-sm, 14px); color: var(--ui-ink-body); }
.pp-solo, .pp-bill { margin: 10px 2px 0; }
/* v3 (S7): each repository at its commit; ONE inline suggestion under the list; the add list is the picker's rows. */
.pp-sha { margin-left: 6px; font-weight: 400; font-size: var(--bkz-text-sm, 14px); color: var(--ui-ink-muted); }
.pp-standin { font-weight: 400; color: var(--ui-ink-muted); }
.pp .pp-suggest { margin: 10px 0 0; padding: 12px 14px; border: 1px solid var(--ui-border); background: var(--ui-surface); }
.pp .ob-suggest-a { gap: 8px 16px; }
.pp .ob-suggest-in { display: inline-flex; align-items: center; text-decoration: none; }
.pp .ob-link { min-height: 40px; padding: 0; border: 0; background: none; color: var(--ui-ink-muted); font: inherit;
  font-size: var(--bkz-text-sm); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pp .ob-link:hover { color: var(--ui-ink-strong); }
.pp-pick { max-height: 320px; overflow: auto; }
.pp-pick .trow { grid-template-columns: minmax(0, 1fr); padding-top: 6px; padding-bottom: 6px; }
.pp-pick .ob-pick { min-height: 32px; }
@media (max-width: 560px) {
  .pp-row { grid-template-columns: minmax(0, 1fr); }
  .pp-row .srow-r { grid-column: 1; grid-row: 3; justify-self: start; padding-top: 6px; }
  .pp-add-form .btn { width: 100%; }
}
@media (min-width: 720px) { .pcard { padding: 20px 22px; } .pcard-go { width: auto; } }

/* ── A product of several repositories, in the picker (pages.ts partBox / productSummary / productLink, product-span.js;
   BREKEN_MULTI_REPO). Nothing shows until one repository is picked. Then: ONE inline suggestion under the picked row,
   a summary line above the button once a part is in, and a quiet link under it. The picker's own tokens and rhythm;
   mobile first, every target at least 40px tall. */
.pick-form .ob-suggest { padding: 10px 12px 12px 35px; border-bottom: 1px solid var(--ui-border);
  background: color-mix(in srgb, var(--ui-ink-strong) 4%, var(--pick-ground)); }
.pick-form .ob-suggest[hidden] { display: none; }
.ob-suggest-t { margin: 0; font-size: var(--bkz-text-sm); line-height: 1.5; color: var(--ui-ink-body); overflow-wrap: anywhere; }
.ob-suggest-t b { font-family: var(--bkz-font-mono); font-weight: 600; color: var(--ui-ink-strong); }
.ob-suggest-a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; }
.ob-suggest-in { min-height: 40px; padding: 0 16px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-lg);
  background: var(--ui-surface); color: var(--ui-ink-strong); font: inherit; font-size: var(--bkz-text-sm); font-weight: 600; cursor: pointer; }
.ob-suggest-in:hover { border-color: var(--ui-ink-muted); }
.pick-form .ob-link { min-height: 40px; padding: 0; border: 0; background: none; color: var(--ui-ink-muted); font: inherit;
  font-size: var(--bkz-text-sm); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pick-form .ob-link:hover { color: var(--ui-ink-strong); }
/* The band holds the summary, the button and the link stacked; the summary and link only when shown. */
.pick-form .btn-row:has(.ob-sum, .ob-more) { flex-direction: column; align-items: stretch; gap: 6px; }
.pick-form .ob-sum[hidden], .pick-form .ob-more[hidden] { display: none; }
.ob-sum-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.ob-chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding-left: 10px; border: 1px solid var(--ui-border);
  border-radius: 999px; background: var(--ui-surface); color: var(--ui-ink-strong); font-family: var(--bkz-font-mono); }
.ob-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-chip-x { flex: none; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--ui-ink-muted); font-size: 12px; cursor: pointer; border-radius: 999px; }
.ob-chip-x:hover { color: var(--ui-ink-strong); }
.ob-sum-n { white-space: nowrap; }
.ob-sum-note { margin: 2px 0 0; font-size: var(--bkz-text-xs); line-height: 1.45; color: var(--ui-ink-muted); }
.pick-form .ob-more { margin: 0; text-align: center; }
/* The part list ("Add them"): only the picked repository's installation, one tick per row where the pick was. */
.pick-form .trow .ob-part { display: none; }
.pick-form .ob-part-main[hidden] { display: none; }
/* In the part list the first cell is one line: a 34px lead (the part's tick, or "Main" on the picked repo), then the name. */
.pick-form[data-parts-mode] .trow:has(.ob-part) > :first-child { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; min-width: 0; }
.pick-form[data-parts-mode] .trow .ob-part:not([hidden]),
.pick-form[data-parts-mode] .ob-part-main:not([hidden]) { display: flex; align-items: center; flex: none; width: 34px; min-height: 24px; }
/* An included part's own row: ticked in the list as it is in the summary line (v3: the list and the chips agree). */
.pick-form .trow.is-part .ob-pick-n { color: var(--ui-ink-strong); }
.pick-form .ob-part-of { flex: none; margin-left: auto; padding: 1px 8px; border: 1px solid var(--bkz-border-hairline); border-radius: 999px; font-size: 11px; line-height: 18px; color: var(--ui-ink-muted); white-space: nowrap; }
.pick-form .ob-part-of::before { content: "\2713\00a0"; color: var(--ui-ink-strong); }
.pick-form .trow .ob-part { cursor: pointer; }
.pick-form .trow .ob-part input { margin: 0; cursor: pointer; }
.pick-form .ob-part-main { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ui-ink-muted); }
.pick-form[data-parts-mode] .trow:has(.ob-part) .ob-pick { flex: 1 1 0; width: auto; min-width: 0; }
.pick-form[data-parts-mode] .trow:has(.ob-part) .pick-fork { flex-basis: 100%; }
.pick-form[data-parts-mode] .ob-pick input[name="repo"] { display: none; }
.pick-form[data-parts-mode] .trow.is-off { display: none; }
.pick-form[data-parts-mode] [data-repo-all] { visibility: hidden; }

/* THE ADD-CARD STRIP (app/add-card-offer.ts): a workspace admitted without credits, until its card is on. One ask. */
.add-card-strip { display: flex; align-items: center; gap: 24px; margin: 0 0 18px; padding: 16px 18px 16px 20px; border: 1px solid color-mix(in srgb, var(--bkz-blue-deep) 30%, var(--glass-border)); border-left: 2px solid var(--bkz-blue-deep); background: linear-gradient(100deg, color-mix(in srgb, var(--bkz-blue-deep) 9%, transparent), transparent 70%), var(--ui-glass-solid); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: var(--ui-shadow-sm-wide, none), var(--ui-sheen); animation: bkz-fade-up .45s var(--bkz-ease-settle) both; }
.add-card-strip .acs-copy { flex: 1; min-width: 0; display: grid; gap: 4px; }
.add-card-strip p { margin: 0; }
.add-card-strip .acs-about { font: 11px/1.5 'IBM Plex Mono', monospace; color: var(--ui-ink-muted); overflow-wrap: anywhere; }
.add-card-strip .acs-about::before { content: '▸ '; color: var(--bkz-blue-deep); }
.add-card-strip .acs-about b { font-weight: 500; color: var(--ui-ink-strong); }
.add-card-strip .acs-title { font: 500 15px/1.4 'Space Grotesk', sans-serif; color: var(--ui-ink-strong); letter-spacing: -.1px; }
.add-card-strip .acs-sub { font-size: 12px; line-height: 1.5; color: var(--ui-ink-body); }
.add-card-strip .acs-sub span { color: var(--ui-ink-muted); }
.add-card-strip .acs-cta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; background: var(--bkz-blue-deep); color: var(--ui-on-accent); font: 600 13px 'Space Grotesk', sans-serif; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 22px color-mix(in srgb, var(--bkz-blue-deep) 26%, transparent); transition: filter .2s, box-shadow .2s, transform .15s; }
.add-card-strip .acs-cta:hover { color: var(--ui-on-accent); text-decoration: none; filter: brightness(1.06); box-shadow: 0 8px 28px color-mix(in srgb, var(--bkz-blue-deep) 38%, transparent); }
.add-card-strip .acs-cta:active { transform: scale(.98); }
.add-card-strip .acs-cta:focus-visible { outline: 2px solid var(--bkz-blue-deep); outline-offset: 3px; }
.add-card-strip .acs-cta span { font-family: 'IBM Plex Mono', monospace; }
/* The add-card invite (BREKEN_ADD_CARD_INVITE, app/add-card-offer.ts inviteStrip): the button with its small print under it. */
.add-card-strip .acs-act { flex: 0 0 auto; display: grid; justify-items: center; gap: 8px; max-width: 100%; }
.add-card-strip .acs-fine { font-size: 11px; line-height: 1.5; color: var(--ui-ink-muted); text-align: center; }
@media (max-width: 699px) { .add-card-strip { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; } .add-card-strip .acs-cta { justify-content: center; } .add-card-strip .acs-act { justify-items: stretch; } }
@media (prefers-reduced-motion: reduce) { .add-card-strip { animation: none; } .add-card-strip .acs-cta { transition: none; } }
/* The default depth row (scan-quote-view.ts defaultDepthRowHtml): the menu draws its own field and focus, so the row is not a boxed input. */
.credit-auto-field[data-default-depth] .credit-auto-input{padding:0;border:0;background:none;align-items:center}
.credit-auto-field[data-default-depth] .credit-auto-input:focus-within{outline:none}
.credit-auto-field[data-default-depth] .dd-field{flex:1;max-width:220px}
/* Payments (founder 11-03): one column of rows, label left and control right on one line, then Payment methods with its one button. */
.settings-payments .credit-auto-options{display:flex;flex-direction:column;gap:16px}
.settings-payments .credit-auto-field{display:flex;align-items:center;justify-content:space-between;gap:24px}
.settings-payments .credit-auto-field>label{margin:0}
.settings-payments .credit-auto-field .credit-auto-input{flex:0 1 240px}
.settings-payments .credit-auto-heading{align-items:center}
.settings-payments [data-payment-save-status]{margin:0;font-size:12px}
.settings-payments [data-payment-save-status]:empty{display:none}
.settings-payments .billing-saved-cards{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:24px;padding-top:24px;border-top:1px solid var(--bkz-border-soft)}
.settings-payments .billing-saved-cards h3{margin:0;font-size:14px;font-weight:600}
.settings-payments .billing-no-cards{margin:0;font-size:13px;color:var(--ui-ink-muted)}
.settings-payments .billing-saved-card{align-self:stretch;align-items:center;padding:12px 0}
.settings-payments .billing-saved-card .billing-card-summary{flex:1}
.settings-payments .billing-saved-card>strong{font-size:12px;font-weight:500;color:var(--ui-ink-muted)}
.settings-payments .billing-saved-card:last-of-type{border-bottom:1px solid var(--ui-border)}
.settings-payments .billing-ledger{display:flex;flex-direction:column;gap:12px;margin-top:24px;padding-top:24px;border-top:1px solid var(--bkz-border-soft)}
.settings-payments .billing-ledger h3{margin:0;font-size:14px;font-weight:600}
.settings-payments .billing-ledger table{width:100%;border-collapse:collapse;font-size:13px}
.settings-payments .billing-ledger th,.settings-payments .billing-ledger td{padding:10px 12px 10px 0;border-bottom:1px solid var(--ui-border);text-align:left;vertical-align:top}
.settings-payments .billing-ledger th{font-weight:500;color:var(--ui-ink-muted)}
.settings-payments .billing-ledger .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.settings-payments .credit-auto-field>label{white-space:nowrap}
.onb-pref-choice.is-soon,.delivery-setting.is-soon{opacity:.45;cursor:not-allowed}
.onb-pref-choice.is-soon input{cursor:not-allowed}
.delivery-setting.is-soon .srow-t .tag{margin-left:10px;font-size:11px}
/* Sideways two-finger scroll moves between a repository's tabs (tab-swipe.js), not back through history. */
html:has(.repo-subnav){overscroll-behavior-x:none}
/* The first card's ask (BREKEN_CARD_ASK_LIGHT_1123, product/credits/card-ask-light.ts 1, 5): "Add a payment method", primary, above the scan
   size's Save with "Nothing is charged today" under it; on a phone, right under the panel's heading. The card dialog's first line. */
.credit-auto-reload .billing-add-first{display:grid;justify-items:start;gap:8px;margin:24px 0}
.credit-auto-reload .billing-add-first .sub{margin:0;font-size:var(--bkz-text-sm);line-height:19px;color:var(--ui-ink-muted)}
.billing-card-fields > .billing-card-value{margin:0 0 20px;font-weight:600;color:var(--ui-ink-strong)}
@media(max-width:680px){
  .settings-payments .credit-auto-reload.card-ask-light{display:flex;flex-direction:column}
  .credit-auto-reload.card-ask-light>*{order:3}
  .credit-auto-reload.card-ask-light>h2,.credit-auto-reload.card-ask-light>p{order:1}
  .credit-auto-reload.card-ask-light>.billing-add-first{order:2;justify-items:stretch;margin:16px 0 0}
  .credit-auto-reload.card-ask-light>.billing-add-first .btn{justify-content:center}
}
/* Settings › Payments, tidy (BREKEN_PAYMENTS_TIDY_1123, product/credits/payments-tidy.ts): one column. Each row is its label, its control and one quiet
   line, in order: the payment method, the monthly limit, finish past the limit, the weekly scan depth, then "Have a code?" folded. */
.settings-payments .payments-tidy{display:flex;flex-direction:column;gap:22px}
.payments-tidy>p[role=status],.payments-tidy>p[role=alert]{margin:0}
.payments-tidy .pt-form{display:flex;flex-direction:column;gap:22px;margin:0}
.payments-tidy .pt-row{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;margin:0}
.payments-tidy .pt-label{margin:0;font-size:var(--bkz-text-md);font-weight:600;line-height:20px;color:var(--ui-ink-strong)}
.payments-tidy .pt-quiet{margin:0;font-size:var(--bkz-text-sm);line-height:19px;color:var(--ui-ink-muted)}
.payments-tidy .pt-covers{color:var(--ui-ink-strong)}
/* BREKEN_CARD_ASK_SMALL_1125 (product/credits/card-ask-small.ts 3): a first card's ask, what the board proved and the guarantee, above the panel. */
.credit-auto-reload [data-card-ask-small]{margin:0;font-size:var(--bkz-text-md);line-height:22px;font-weight:600;color:var(--ui-ink-strong);overflow-wrap:anywhere}
.credit-auto-reload:not(.payments-tidy) [data-card-ask-small]{margin:12px 0 16px}
.payments-tidy .pt-cards{display:flex;flex-direction:column;align-self:stretch}
.payments-tidy .pt-cards .billing-saved-card{flex-wrap:wrap;gap:8px 12px;padding:6px 0;border:0;align-items:center}
.payments-tidy .pt-cards .billing-card-summary{flex:1 0 auto}
.payments-tidy .pt-cards .billing-saved-card:only-child .billing-card-rank{display:none}
.payments-tidy .billing-card-identity strong{white-space:nowrap}
.payments-tidy .pt-input{display:flex;align-items:center;gap:8px;width:200px;max-width:100%;padding:0 12px;border:1px solid var(--bkz-border-soft);background:var(--ui-surface);box-sizing:border-box}
.payments-tidy .pt-input:focus-within{outline:2px solid var(--bkz-blue-link);outline-offset:2px}
.payments-tidy .pt-input>span{font-size:13px;color:var(--ui-ink-muted)}
.payments-tidy .pt-input .input{flex:1;width:auto;min-width:0;max-width:none;height:40px;padding:0;border:0;background:transparent;box-shadow:none;outline:none;text-align:left;font-variant-numeric:tabular-nums}
.payments-tidy .pt-sep:has(+[data-limit-hours]:empty){display:none}
.payments-tidy .pt-line{display:flex;align-items:center;justify-content:space-between;gap:16px;align-self:stretch}
.payments-tidy .pt-line .swt{padding:4px 0}
.payments-tidy .pt-status{margin:0;font-size:var(--bkz-text-sm);line-height:19px;color:var(--ui-ink-muted)}
.payments-tidy .pt-status:empty{display:none}
.payments-tidy .pt-status[data-saved]::before{content:"\2713";margin-right:6px;color:var(--bkz-ok-ink,#2ea043)}
.payments-tidy .pt-status[data-failed]{color:var(--bkz-danger-ink,#f29690)}
.payments-tidy .pt-depth{padding-top:22px;border-top:1px solid var(--bkz-border-soft)}
.payments-tidy .pt-depth .us-hours{align-self:stretch;margin:0}
.payments-tidy .pt-depth .us-hours-head{font-size:var(--bkz-text-md);line-height:20px;color:var(--ui-ink-strong)}
/* Three stops (Max past Deep) share the row's width on a phone: a stop's name and hours wrap after the name, never inside the hours (as the Scan menu's do). */
.payments-tidy .pt-depth .us-hours-stops{grid-auto-columns:minmax(0,1fr)}
.payments-tidy .pt-depth .us-hours-h{white-space:normal}
.payments-tidy .pt-depth .us-hours-hw{white-space:nowrap}
.payments-tidy .pt-save{display:flex;align-items:center;gap:12px}
html.payments-tidy-js .payments-tidy .pt-depth:not(.pt-save-shown) [data-depth-save]{display:none}
.payments-tidy .billing-ledger{margin:0;padding-top:22px}
.payments-tidy .pt-code{padding-top:18px;border-top:1px solid var(--bkz-border-soft);align-self:stretch}
.payments-tidy .pt-code>summary{cursor:pointer;width:max-content;font-size:var(--bkz-text-sm);line-height:19px;color:var(--ui-ink-muted)}
.payments-tidy .pt-code>summary:hover{color:var(--ui-ink-strong)}
.payments-tidy .pt-code[open]>summary{margin-bottom:12px}
.payments-tidy .pt-code-form{display:flex;flex-direction:column;gap:8px;max-width:420px}
.payments-tidy .pt-code .flash{margin:0 0 12px}
/* A large repository's two limit choices in Payments (BREKEN_LIMIT_CHOICES_BY_SIZE, product/credits/limit-choices.ts). */
.credit-auto-reload .credit-limit-choices{display:grid;gap:10px}
.credit-auto-reload .credit-limit-choices-label{font-size:var(--bkz-text-md);font-weight:600;line-height:20px}
.credit-auto-reload .credit-limit-choice{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid var(--bkz-border-soft);cursor:pointer;line-height:1.5}
.credit-auto-reload .credit-limit-choice:has(input:checked){border-color:#427fb0;background:rgba(66,127,176,.08)}
.credit-auto-reload .credit-limit-choice input{margin:4px 0 0;flex:0 0 auto}
.credit-auto-reload .credit-limit-other summary{cursor:pointer;font-size:var(--bkz-text-sm);color:var(--ui-ink-muted)}
.credit-auto-reload .credit-limit-other .credit-auto-input{margin-top:10px;max-width:240px}
.credit-auto-reload .credit-limit-choices>small{display:block;margin:0;font-size:var(--bkz-text-sm);line-height:19px;max-width:65ch}

/* A bug drawer the page fetches on open (radar.js, BREKEN_LAB_BUGS_FAST): the pressed row shows it is on its way. */
a[aria-busy="true"], button[aria-busy="true"] { cursor: progress; opacity: .6; }

/* The OSS setup (oss-setup.ts): the picker's panel and choice cards, three steps, two choices a row, the Payments panel as Settings draws it. */
.onb-split[data-onboarding-screen="oss"] { --onb-panel-width:clamp(520px,42vw,620px); }
/* After the width above, or it would beat the phone rule (max-width:760px, full width) that comes earlier in this file. */
@media (max-width:760px) { .onb-split[data-onboarding-screen="oss"] { --onb-panel-width:100%; } }
.oss-steps { display:flex; gap:22px; list-style:none; margin:0 0 30px; padding:0; font-size:13px; color:var(--ui-ink-muted); }
.oss-step { display:flex; align-items:center; gap:8px; }
.oss-step-dot { display:inline-grid; place-items:center; width:22px; height:22px; border:1px solid var(--grid-rail); border-radius:50%; font-size:12px; font-variant-numeric:tabular-nums; }
.oss-step.is-now { color:var(--ui-ink-strong); }
.oss-step.is-now .oss-step-dot { border-color:#427fb0; background:#427fb0; color:#fff; }
.oss-step.is-done .oss-step-dot { border-color:#427fb0; color:#70a7d2; }
.onb-pref-destinations.oss-pair { grid-template-columns:repeat(2,minmax(0,1fr)); }
.oss-pref .onb-pref-section:last-of-type { border-bottom:1px solid var(--grid-rail); margin-bottom:24px; }
.oss-pref .alert, .onb-inner > .alert { margin:0 0 18px; }
/* The card step (pages.ts ossCardPage): Settings' Payments form, laid out as the preferences step is — ruled rows, one label
   and one control a row, no small print — then the saved card, then one full-width button. Scoped to .oss-pay: Settings is untouched. */
/* Every rule is under .oss-pay .credit-auto-reload (R): credits.css loads after this file and would win a tie. */
.oss-pay { margin:0 0 24px; }
.oss-pay .credit-checkout.credit-auto-reload { max-width:none; margin:0; padding:0; border:0; background:none; }
.oss-pay .credit-auto-reload .oss-pay-title,
.oss-pay .credit-auto-reload [data-payment-save-status] { position:absolute; width:1px; height:1px; margin:0; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.oss-pay .credit-auto-reload > p[role="status"], .oss-pay .credit-auto-reload > p[role="alert"], .oss-pay .credit-auto-reload > .oss-pay-note,
.oss-pay .credit-auto-reload [data-payment-save-status][data-failed] {
  position:static; width:auto; height:auto; overflow:visible; clip:auto; white-space:normal;
  margin:0 0 18px; padding:12px 14px; border:1px solid var(--grid-rail); font-size:14px; line-height:1.5; color:var(--ui-ink-strong); }
.oss-pay .credit-auto-reload > p[role="alert"], .oss-pay .credit-auto-reload [data-payment-save-status][data-failed] { border-color:#a3473f; }
.oss-pay .credit-auto-reload .credit-auto-form { margin:0; padding:0; border:0; }
.oss-pay .credit-auto-reload .credit-auto-options { display:block; margin:0; padding:0; border:0; }
.oss-pay .credit-auto-reload .credit-auto-field, .oss-pay .credit-auto-reload .credit-auto-heading { display:flex; align-items:center; justify-content:space-between; gap:20px;
  max-width:none; min-height:76px; box-sizing:border-box; margin:0; padding:16px 0; border:0; border-top:1px solid var(--grid-rail); }
.oss-pay .credit-auto-reload .credit-auto-field label, .oss-pay .credit-auto-reload .credit-auto-heading label { margin:0; font-size:14px; font-weight:500; color:var(--ui-ink-strong); }
.oss-pay .credit-auto-reload .credit-auto-heading > div { flex:1; }
/* The limit's one line (founder 11-10), on its own row under the label and the box. */
.credit-auto-reload .credit-auto-field:has(.oss-pay-limit-note) { flex-wrap:wrap; row-gap:8px; }
.credit-auto-reload .oss-pay-limit-note { flex:0 0 100%; margin:0; font-size:14px; line-height:20px; color:var(--ui-ink-muted); }
.settings-payments .credit-auto-field>.oss-pay-limit-note.is-settings { grid-column:1 / -1; grid-row:2; font-size:var(--bkz-text-sm); line-height:19px; }
.oss-pay .credit-auto-reload .credit-auto-input { display:flex; align-items:center; gap:0; width:180px; max-width:none; height:44px; margin:0; box-sizing:border-box; border:1px solid var(--grid-rail); background:transparent; }
.oss-pay .credit-auto-reload .credit-auto-input:focus-within { border-color:#427fb0; }
.oss-pay .credit-auto-reload .credit-auto-input span { padding:0 0 0 14px; color:var(--ui-ink-muted); font-size:15px; }
.oss-pay .credit-auto-reload .credit-auto-input .input { flex:1; min-width:0; width:auto; height:100%; margin:0; padding:0 14px 0 6px; border:0; background:transparent; font-size:15px; text-align:right; font-variant-numeric:tabular-nums; box-shadow:none; }
.oss-pay .credit-auto-reload .credit-auto-input .input:focus { outline:none; }
.oss-pay .credit-auto-reload input[role="switch"] { margin:0; align-self:center; }
.oss-pay .credit-auto-reload .billing-saved-cards { display:block; margin:0; padding:16px 0 0; border:0; border-top:1px solid var(--grid-rail); }
.oss-pay .credit-auto-reload .billing-saved-cards h3 { margin:0 0 14px; font-size:14px; font-weight:500; color:var(--ui-ink-strong); }
.oss-pay .credit-auto-reload .billing-saved-cards > p[role="status"] { margin:0 0 14px; font-size:14px; }
.oss-pay .credit-auto-reload .billing-saved-card { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:nowrap; margin:0; padding:14px;
  border:1px solid #427fb0; background:rgba(66,127,176,.08); animation:oss-pay-in .32s cubic-bezier(.2,.8,.2,1); }
.oss-pay .credit-auto-reload .billing-saved-card + .billing-saved-card { margin-top:10px; }
.oss-pay .credit-auto-reload .billing-card-summary { flex:1; display:flex; align-items:center; gap:14px; min-width:0; }
.oss-pay .credit-auto-reload .billing-card-rank { display:none; }
.oss-pay .credit-auto-reload .billing-card-icon { width:48px; height:30px; }
.oss-pay .credit-auto-reload .billing-card-identity { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; min-width:0; }
.oss-pay .credit-auto-reload .billing-card-identity strong { font-size:14px; font-weight:500; color:var(--ui-ink-strong); }
.oss-pay .credit-auto-reload .billing-card-identity .sub { margin:0; font-size:14px; color:var(--ui-ink-muted); }
.oss-pay .credit-auto-reload .billing-saved-card > strong { font-size:14px; font-weight:400; color:#70a7d2; white-space:nowrap; }
.oss-pay .credit-auto-reload .oss-pay-add { display:flex; width:100%; justify-content:center; box-sizing:border-box; margin:0; }
.oss-pay-skip { background:transparent; border:1px solid var(--grid-rail); color:var(--ui-ink-strong); }
.oss-pay-skip:hover { border-color:#66645d; color:var(--ui-ink-strong); text-decoration:none; }
.oss-pay .billing-card-dialog [data-card-save] { display:flex; width:100%; height:48px; justify-content:center; align-items:center; margin:8px 0 0; font-size:15px; }
@keyframes oss-pay-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .oss-pay .credit-auto-reload .billing-saved-card { animation:none; } }
@media (max-width:560px) { .oss-pay .credit-auto-reload .credit-auto-input { width:140px; } }
@media (max-width:560px) { .onb-pref-destinations.oss-pair { grid-template-columns:1fr; } .oss-steps { gap:14px; } }
.oss-cobrand { display:flex; align-items:center; gap:10px; }
.oss-cobrand-x { color:var(--ui-ink-muted); font-weight:300; margin:0 4px; }
.oss-cobrand-logo { height:26px; width:auto; max-width:140px; object-fit:contain; }
.auth2-switch { margin:0; }
.auth2-switch .auth2-secondary { width:100%; margin-top:12px; }

/* ── Breken Bounty (founder 11-12): the landing's band after its hero, and /bounty (src/app/bounty-page.ts). ── */
.bty-live { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--in-blue); }
.bty-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--in-blue); }
.bty-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--in-blue); animation: bty-ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes bty-ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bty-dot::after { animation: none; } }
.bty-chart { position: relative; }
.bty-axis { display: flex; justify-content: space-between; gap: 16px; padding: 0 0 12px; border-bottom: 1px solid var(--xp-line); font: 500 10.5px/1.3 var(--bkz-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--xp-dim); }
.bty-rows { list-style: none; margin: 0; padding: 0; }
.bty-row { display: grid; grid-template-columns: 34px minmax(0, 11rem) 1fr 34px; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--xp-line); }
.bty-rk { font: 500 12px/1 var(--bkz-font-mono); letter-spacing: .08em; color: var(--xp-dim); }
.bty-tm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 15px/1.2 var(--bkz-font-sans); color: #f2f2f2; }
.bty-tag { margin-left: 10px; padding: 3px 6px; border: 1px solid rgba(94,162,224,.55); border-radius: 2px; font: 500 9.5px/1 var(--bkz-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--in-blue); vertical-align: 2px; }
.bty-bar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bty-blocks { display: inline-flex; flex-wrap: nowrap; gap: 3px; }
.bty-blocks i { display: block; width: 12px; height: 12px; border-radius: 2px; background: rgba(242,242,242,.42); }
.bty-row:hover .bty-blocks i { background: rgba(242,242,242,.7); }
.bty-row--lead .bty-blocks i { background: var(--in-blue); }
.bty-more { font: 500 11px/1 var(--bkz-font-mono); color: var(--xp-dim); }
.bty-clean { padding: 3px 8px; border: 1px dashed rgba(94,162,224,.6); border-radius: 2px; font: 500 10.5px/1 var(--bkz-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--in-blue); }
.bty-n { text-align: right; font: 500 20px/1 var(--bkz-font-sans); font-variant-numeric: tabular-nums; color: #fff; }
.bty-row--lead .bty-n, .bty-row--lead .bty-rk { color: var(--in-blue); }
.bty-row--ghost .bty-rk, .bty-row--ghost .bty-tm, .bty-row--ghost .bty-n { color: rgba(242,242,242,.28); }
.bty-ghostbar { display: block; width: 100%; height: 12px; border: 1px dashed rgba(242,242,242,.16); border-radius: 2px; }
.bty-empty { margin: 18px 0 0; font: 500 11px/1.4 var(--bkz-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--xp-dim); }
.bty-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) { .bty-row { grid-template-columns: 26px minmax(0, 7rem) 1fr 28px; gap: 10px; } .bty-blocks i { width: 9px; height: 9px; } .bty-tag { display: none; } }
.xp-bounty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 48px; padding: clamp(64px, 10vh, 120px) calc(5px + var(--xp-copy-pad)); border-top: 1px solid var(--xp-line); }
.xp-bounty-copy { min-width: 0; }
.xp-bounty-prize { margin: 0 0 6px; font: 500 clamp(64px, 8.4vw, 124px)/.92 var(--bkz-font-sans); letter-spacing: -0.05em; color: #fff; text-shadow: 0 2px 30px #0a0a0a; }
.xp-bounty .xp-h2 { max-width: 14ch; }
@media (max-width: 900px) { .xp-bounty { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.bty { min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.bty-hero { position: relative; padding: clamp(120px, 18vh, 180px) var(--xp-pad) clamp(56px, 9vh, 96px); }
.bty-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(242,242,242,.045) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(242,242,242,.045) 1px, transparent 1px) 0 0 / 56px 100%;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.bty-wrap { position: relative; max-width: 1180px; margin: 0 auto; }
.bty-prize { margin: 0; font: 600 clamp(88px, 17vw, 236px)/.86 var(--bkz-font-sans); letter-spacing: -0.06em; color: #fff;
  text-shadow: 0 2px 30px #0a0a0a; }
.bty-h1 { margin: 18px 0 0; max-width: 16ch; font: 500 clamp(30px, 4vw, 58px)/1.02 var(--bkz-font-sans); letter-spacing: -0.04em; color: #fff; }
.bty-dek { margin: 22px 0 0; max-width: 54ch; font: 400 clamp(16px, 1.3vw, 19px)/1.55 var(--bkz-font-sans); color: rgba(242,242,242,.8); }
.bty-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 34px 0 0; }
.bty-go { display: inline-block; padding: 16px 26px; border: 1px solid #fff; border-radius: 2px; background: #fff; color: #0a0a0a; font: 600 15px/1 var(--bkz-font-sans); text-decoration: none; transition: transform .15s ease; }
.bty-go:hover, .bty-go:focus-visible { transform: translateY(-1px) scale(1.03); color: #0a0a0a; text-decoration: none; }
.bty-ghost { display: inline-block; padding: 16px 22px; border: 1px solid rgba(242,242,242,.35); border-radius: 2px; color: #f2f2f2; font: 600 15px/1 var(--bkz-font-sans); text-decoration: none; }
.bty-ghost:hover, .bty-ghost:focus-visible { border-color: #fff; color: #fff; text-decoration: none; }
.bty-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0 var(--xp-pad); list-style: none; }
.bty-rules-in { max-width: 1180px; margin: 0 auto; width: 100%; display: contents; }
.bty-rule { padding: 26px 26px 30px 0; border-top: 1px solid var(--xp-line); }
.bty-rule + .bty-rule { padding-left: 26px; border-left: 1px solid var(--xp-line); }
.bty-rule:first-child { border-top-color: var(--in-blue); }
.bty-rule-n { display: block; margin: 0 0 18px; font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .16em; color: var(--in-blue); }
.bty-rule-t { margin: 0; font: 500 clamp(19px, 1.7vw, 24px)/1.25 var(--bkz-font-sans); letter-spacing: -0.02em; color: #fff; }
.bty-rule-t b { color: var(--in-blue); font-weight: 600; }
.bty-board { padding: clamp(64px, 10vh, 112px) var(--xp-pad) 72px; }
.bty-board-h { margin: 0 0 28px; font: 500 clamp(28px, 3.1vw, 44px)/1.1 var(--bkz-font-sans); letter-spacing: -0.03em; color: #fff; }
.bty-foot { width: 100%; max-width: 1180px; margin: auto auto 0; padding: 0 var(--xp-pad); box-sizing: border-box; }
@media (max-width: 760px) { .bty-rules { grid-template-columns: 1fr; } .bty-rule + .bty-rule { padding-left: 0; border-left: 0; } }
.xp-bounty-board { min-width: 0; }
.bty-chart--empty .bty-rows { opacity: .9; }

/* ── Public docs (BREKEN_AGENT_DOCS_1126; src/app/agent-docs.ts; the pricing page and its rules went 11-30) ─────────────────────────
   The landing's own type, colours and buttons (.xp, .mf2) on one readable column: a bar, then the page, then the landing's footer. */
.auth-split:has(> .pubd) { background: #0a0a0a; }
/* The landing bar's Docs and Pricing: no room beside its three on a phone, where the footer carries them (its links wrap there). */
@media (max-width: 640px) { .xp-bar .xp-bar-doc { display: none; } .xp-foot-nav { flex-wrap: wrap; gap: 12px 24px; } }
.pubd { --in-blue: #5ea2e0; --xp-line: rgba(242,242,242,.1); --xp-dim: rgba(242,242,242,.56); --xp-pad: clamp(16px, 2vw, 28px);
  grid-column: 1 / -1; box-sizing: border-box; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: #0a0a0a; color: #f2f2f2; font-family: var(--bkz-font-sans); padding: 0 var(--xp-pad); }
.pubd a { color: #f2f2f2; text-underline-offset: 3px; }
.pubd a:hover, .pubd a:focus-visible { color: #fff; }
.pubd-p a, .pubd-ul a, .pubd-ol a, .pubd-def a { text-decoration: underline; text-decoration-color: rgba(242,242,242,.35); }
.pubd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; width: 100%; max-width: 1180px; margin: 0 auto; padding: 16px 4px; box-sizing: border-box; }
.pubd .pubd-brand { display: inline-flex; align-items: baseline; gap: 8px; margin-right: auto; font: 600 18px/1 var(--bkz-font-sans); letter-spacing: -0.03em; text-decoration: none; }
.pubd-brand-seal { font: 500 11px/1 var(--bkz-font-mono); color: var(--in-blue); }
.pubd-bar-links { display: flex; gap: 20px; }
.pubd .pubd-bar-a { font: 500 12px/1 var(--bkz-font-mono); letter-spacing: .08em; color: var(--xp-dim); text-decoration: none; }
.pubd .pubd-bar-a:hover, .pubd .pubd-bar-a:focus-visible, .pubd .pubd-bar-a.is-on { color: #fff; }
.pubd .pubd-bar-cta { padding: 12px 18px; border: 1px solid #f2f2f2; border-radius: 2px; background: #f2f2f2; color: #0a0a0a; font: 600 12px/1 var(--bkz-font-sans); text-decoration: none; }
.pubd .pubd-bar-cta:hover, .pubd .pubd-bar-cta:focus-visible { background: #fff; color: #0a0a0a; }
.pubd-kick { margin: 0 0 16px; font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--in-blue); }
.pubd-h1 { margin: 0 0 16px; font: 600 clamp(32px, 3.6vw, 44px)/1.1 var(--bkz-font-sans); letter-spacing: -0.035em; color: #f2f2f2; text-wrap: balance; }
.pubd-lede { margin: 0 0 32px; max-width: 60ch; font: 400 clamp(17px, 1.3vw, 19px)/1.55 var(--bkz-font-sans); color: rgba(242,242,242,.72); }
.pubd-h2 { margin: 48px 0 16px; font: 600 clamp(22px, 2vw, 26px)/1.2 var(--bkz-font-sans); letter-spacing: -0.02em; color: #f2f2f2; scroll-margin-top: 24px; }
.pubd-p { margin: 0 0 16px; max-width: 68ch; font: 400 16.5px/1.65 var(--bkz-font-sans); color: rgba(242,242,242,.8); }
.pubd-ul, .pubd-ol { margin: 0 0 16px; padding-left: 22px; max-width: 68ch; font: 400 16.5px/1.65 var(--bkz-font-sans); color: rgba(242,242,242,.8); }
.pubd-ul li + li, .pubd-ol li + li { margin-top: 8px; }
.pubd-ol li::marker { font-family: var(--bkz-font-mono); color: var(--in-blue); }
.pubd-code { padding: 1px 6px; border: 1px solid var(--xp-line); border-radius: 2px; background: rgba(242,242,242,.05); font: 400 .88em/1.4 var(--bkz-font-mono); color: #f2f2f2; overflow-wrap: anywhere; }
.pubd-pre { margin: 0 0 16px; padding: 16px 18px; max-width: 100%; box-sizing: border-box; border: 1px solid var(--xp-line); border-radius: 2px; background: #111;
  font: 400 13px/1.6 var(--bkz-font-mono); color: rgba(242,242,242,.88); white-space: pre-wrap; overflow-wrap: anywhere; }
.pubd-defs { margin: 0 0 16px; max-width: 68ch; }
.pubd-def { padding: 16px 0; border-top: 1px solid var(--xp-line); }
.pubd-def:last-child { border-bottom: 1px solid var(--xp-line); }
.pubd-def dt { margin: 0 0 6px; font: 600 16px/1.3 var(--bkz-font-sans); color: #f2f2f2; }
.pubd-def dd { margin: 0; font: 400 16px/1.6 var(--bkz-font-sans); color: rgba(242,242,242,.76); }
.pubd-md { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--xp-line); font: 500 12px/1 var(--bkz-font-mono); letter-spacing: .06em; }
.pubd .pubd-md a, .pubd .pubd-side-md a { color: var(--xp-dim); }
.pubd-docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; width: 100%; max-width: 1180px; margin: 0 auto; padding: 48px 4px 96px; box-sizing: border-box; flex: 1; }
.pubd-docs--one { grid-template-columns: minmax(0, 1fr); }
.pubd-side { position: sticky; top: 24px; align-self: start; }
.pubd-side-list { margin: 0; padding: 0; list-style: none; }
.pubd .pubd-side-a { display: block; padding: 8px 0 8px 12px; border-left: 1px solid var(--xp-line); font: 500 14px/1.3 var(--bkz-font-sans); color: rgba(242,242,242,.62); text-decoration: none; }
.pubd .pubd-side-a:hover, .pubd .pubd-side-a:focus-visible { color: #fff; }
.pubd .pubd-side-a.is-on { border-left-color: var(--in-blue); color: #fff; }
.pubd-side-md { margin: 24px 0 0; font: 500 12px/1 var(--bkz-font-mono); letter-spacing: .06em; }
.pubd-art { min-width: 0; max-width: 760px; overflow-wrap: break-word; }
.pubd-foot { width: 100%; max-width: 1180px; margin: auto auto 0; box-sizing: border-box; flex-wrap: wrap; }
.pubd-foot .xp-foot-nav { flex-wrap: wrap; gap: 16px 28px; }
@media (max-width: 900px) {
  .pubd-docs { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 24px; }
  .pubd-side { position: static; }
  .pubd-side-list { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .pubd .pubd-side-a { padding: 6px 0; border-left: 0; border-bottom: 1px solid transparent; }
  .pubd .pubd-side-a.is-on { border-bottom-color: var(--in-blue); }
}
@media (max-width: 640px) {
  .pubd { padding: 0 16px; }
  .pubd-bar-links { order: 3; width: 100%; }
}

/* ── Trust pages: how we handle your code, privacy, terms (BREKEN_LEGAL_PAGES_1126; src/app/legal-pages.ts) ─────────────────────────
   The docs' bar, type and footer (.pubd) in both themes: the visitor's own light or dark (prefers-color-scheme, or a data-theme on the root).
   Every colour is a token on .lgl; the dark values are the docs' own. Tables are role="table" grids, as the pricing grid is. */
.pubd.lgl { --lgl-bg: #0a0a0a; --lgl-ink: #f2f2f2; --lgl-strong: #fff; --lgl-body: rgba(242,242,242,.8); --lgl-dim: rgba(242,242,242,.56);
  --lgl-line: rgba(242,242,242,.1); --lgl-card: #0f0f10; --lgl-card-2: rgba(242,242,242,.03); --lgl-accent: #5ea2e0; --lgl-accent-soft: rgba(94,162,224,.12);
  --lgl-no: #e58a7f; --lgl-no-soft: rgba(229,138,127,.1); --lgl-code: rgba(242,242,242,.05);
  --lgl-ph-bg: rgba(240,180,60,.14); --lgl-ph-ink: #f3c86f; --lgl-ph-line: rgba(240,180,60,.6);
  --in-blue: var(--lgl-accent); --xp-line: var(--lgl-line); --xp-dim: var(--lgl-dim); background: var(--lgl-bg); color: var(--lgl-ink); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .pubd.lgl { --lgl-bg: #f7f6f3; --lgl-ink: #141414; --lgl-strong: #000; --lgl-body: rgba(20,20,20,.8); --lgl-dim: rgba(20,20,20,.58);
    --lgl-line: rgba(20,20,20,.12); --lgl-card: #fff; --lgl-card-2: rgba(20,20,20,.025); --lgl-accent: #1f6aa8; --lgl-accent-soft: rgba(31,106,168,.08);
    --lgl-no: #b3443a; --lgl-no-soft: rgba(179,68,58,.07); --lgl-code: rgba(20,20,20,.05);
    --lgl-ph-bg: #fff1cc; --lgl-ph-ink: #6e4600; --lgl-ph-line: #d29a2e; color-scheme: light; }
  :root:not([data-theme="dark"]) .auth-split:has(> .lgl) { background: #f7f6f3; }
}
:root[data-theme="light"] .pubd.lgl { --lgl-bg: #f7f6f3; --lgl-ink: #141414; --lgl-strong: #000; --lgl-body: rgba(20,20,20,.8); --lgl-dim: rgba(20,20,20,.58);
  --lgl-line: rgba(20,20,20,.12); --lgl-card: #fff; --lgl-card-2: rgba(20,20,20,.025); --lgl-accent: #1f6aa8; --lgl-accent-soft: rgba(31,106,168,.08);
  --lgl-no: #b3443a; --lgl-no-soft: rgba(179,68,58,.07); --lgl-code: rgba(20,20,20,.05);
  --lgl-ph-bg: #fff1cc; --lgl-ph-ink: #6e4600; --lgl-ph-line: #d29a2e; color-scheme: light; }
:root[data-theme="light"] .auth-split:has(> .lgl) { background: #f7f6f3; }
.auth-split:has(> .lgl) { background: #0a0a0a; }
.lgl a { color: var(--lgl-ink); }
.lgl a:hover, .lgl a:focus-visible { color: var(--lgl-strong); }
.lgl .pubd-p a, .lgl .pubd-ul a, .lgl .pubd-ol a, .lgl-cell a, .lgl-tldr a, .lgl-note a { text-decoration: underline; text-decoration-color: var(--lgl-dim); text-underline-offset: 3px; }
.lgl .pubd-bar-a:hover, .lgl .pubd-bar-a:focus-visible, .lgl .pubd-bar-a.is-on { color: var(--lgl-ink); }
.lgl .pubd-bar-cta { border-color: var(--lgl-ink); background: var(--lgl-ink); color: var(--lgl-bg); }
.lgl .pubd-bar-cta:hover, .lgl .pubd-bar-cta:focus-visible { background: var(--lgl-strong); color: var(--lgl-bg); }
.lgl .pubd-h1, .lgl .pubd-h2 { color: var(--lgl-ink); }
.lgl .pubd-lede { color: var(--lgl-body); }
.lgl .pubd-p, .lgl .pubd-ul, .lgl .pubd-ol { color: var(--lgl-body); }
.lgl .pubd-code { border-color: var(--lgl-line); background: var(--lgl-code); color: var(--lgl-ink); }
.lgl .xp-foot-mark { color: var(--lgl-ink); }
.lgl .xp-foot-mark:hover, .lgl .xp-foot-mark:focus-visible, .lgl .xp-foot-a:hover, .lgl .xp-foot-a:focus-visible { color: var(--lgl-strong); }
.lgl-hero { width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(40px, 7vh, 88px) 4px 0; box-sizing: border-box; }
.lgl-hero .pubd-h1 { max-width: 20ch; font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -0.04em; }
.lgl-hero .pubd-lede { max-width: 62ch; margin-bottom: 20px; }
.lgl-meta { margin: 0 0 32px; font: 500 12px/1.6 var(--bkz-font-mono); letter-spacing: .06em; color: var(--lgl-dim); }
.lgl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 0 0; border-bottom: 1px solid var(--lgl-line); }
.lgl .lgl-tab { position: relative; padding: 12px 4px 14px; margin-right: 20px; font: 500 14px/1.2 var(--bkz-font-sans); color: var(--lgl-dim); text-decoration: none; }
.lgl .lgl-tab:hover, .lgl .lgl-tab:focus-visible { color: var(--lgl-ink); }
.lgl .lgl-tab.is-on { color: var(--lgl-ink); }
.lgl .lgl-tab.is-on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--lgl-accent); }
.lgl-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; width: 100%; max-width: 1180px; margin: 0 auto; padding: 40px 4px 96px; box-sizing: border-box; flex: 1; }
.lgl-toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; }
.lgl-toc-h { margin: 0 0 12px; font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--lgl-accent); }
.lgl-toc-list { margin: 0; padding: 0; list-style: none; }
.lgl .lgl-toc-a { display: block; padding: 6px 0 6px 12px; border-left: 1px solid var(--lgl-line); font: 500 13.5px/1.35 var(--bkz-font-sans); color: var(--lgl-dim); text-decoration: none; }
.lgl .lgl-toc-a:hover, .lgl .lgl-toc-a:focus-visible { color: var(--lgl-ink); border-left-color: var(--lgl-accent); }
.lgl-art { min-width: 0; max-width: 780px; overflow-wrap: break-word; }
.lgl-art > .pubd-h2:first-child { margin-top: 8px; }
.lgl .pubd-h2 { scroll-margin-top: 24px; }
.lgl-h3 { margin: 28px 0 10px; font: 600 17px/1.3 var(--bkz-font-sans); letter-spacing: -0.01em; color: var(--lgl-ink); }
.lgl-tldr { margin: 0 0 40px; padding: 24px 28px; border: 1px solid var(--lgl-line); border-left: 3px solid var(--lgl-accent); border-radius: 2px; background: var(--lgl-accent-soft); }
.lgl-tldr-h { margin: 0 0 14px; font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--lgl-accent); }
.lgl-tldr-list { margin: 0; padding: 0; list-style: none; }
.lgl-tldr-list li { position: relative; padding: 6px 0 6px 24px; font: 500 16.5px/1.5 var(--bkz-font-sans); color: var(--lgl-ink); }
.lgl-tldr-list li::before { content: '▚'; position: absolute; left: 0; top: 9px; font: 500 11px/1.6 var(--bkz-font-mono); color: var(--lgl-accent); }
.lgl-never { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.lgl-never li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--lgl-line); border-radius: 2px; background: var(--lgl-card);
  font: 400 15.5px/1.5 var(--bkz-font-sans); color: var(--lgl-body); }
.lgl-never-x { flex: none; padding: 3px 6px; border-radius: 2px; background: var(--lgl-no-soft); font: 600 10.5px/1.2 var(--bkz-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--lgl-no); }
.lgl-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 8px 0 20px; padding: 0; list-style: none; border: 1px solid var(--lgl-line); border-radius: 2px; background: var(--lgl-card); }
.lgl-step { padding: 18px 16px 20px; min-width: 0; }
.lgl-step + .lgl-step { border-left: 1px solid var(--lgl-line); }
.lgl-step-n { display: block; margin: 0 0 12px; font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .16em; color: var(--lgl-accent); }
.lgl-step-t { display: block; margin: 0 0 8px; font: 600 15.5px/1.3 var(--bkz-font-sans); color: var(--lgl-ink); }
.lgl-step-d { display: block; font: 400 14px/1.5 var(--bkz-font-sans); color: var(--lgl-body); }
.lgl-grid { margin: 8px 0 20px; border: 1px solid var(--lgl-line); border-radius: 2px; background: var(--lgl-card); }
.lgl-row { display: grid; border-top: 1px solid var(--lgl-line); }
.lgl-row:first-child { border-top: 0; }
.lgl-grid--2 .lgl-row { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.lgl-grid--3 .lgl-row { grid-template-columns: minmax(0, .6fr) minmax(0, 1.2fr) minmax(0, 1.2fr); }
.lgl-grid--4 .lgl-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.3fr); }
.lgl-grid--narrow .lgl-row { grid-template-columns: minmax(0, .75fr) minmax(0, .6fr) minmax(0, 1.65fr); }
.lgl-head { background: var(--lgl-card-2); }
.lgl-head .lgl-cell { font: 500 11px/1.3 var(--bkz-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lgl-dim); }
.lgl-cell { min-width: 0; padding: 13px 16px; font: 400 14.5px/1.5 var(--bkz-font-sans); color: var(--lgl-body); }
.lgl-row:not(.lgl-head) .lgl-cell:first-child { font-weight: 600; color: var(--lgl-ink); }
.lgl-cell-k { display: none; margin: 0 0 4px; font: 500 10.5px/1.2 var(--bkz-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lgl-dim); }
.lgl-note { margin: 8px 0 20px; padding: 18px 20px; border: 1px dashed var(--lgl-line); border-radius: 2px; background: var(--lgl-card-2); font: 400 15px/1.6 var(--bkz-font-sans); color: var(--lgl-body); }
.lgl-note-h { display: block; margin: 0 0 6px; font: 500 11px/1 var(--bkz-font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--lgl-dim); }
.lgl-ph { padding: 1px 6px; border: 1px dashed var(--lgl-ph-line); border-radius: 2px; background: var(--lgl-ph-bg); font: 500 .86em/1.4 var(--bkz-font-mono); color: var(--lgl-ph-ink); white-space: normal; }
.lgl-md { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--lgl-line); font: 500 12px/1.6 var(--bkz-font-mono); letter-spacing: .06em; color: var(--lgl-dim); }
.lgl .lgl-md a { color: var(--lgl-dim); }
.auth2-legal { margin: 14px 0 0; font-size: var(--bkz-text-sm); line-height: 1.5; color: var(--ui-ink-muted); }
.auth2-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) {
  .lgl-body { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 24px; }
  .lgl-toc { display: none; }
  .lgl-steps { grid-template-columns: minmax(0, 1fr); }
  .lgl-step + .lgl-step { border-left: 0; border-top: 1px solid var(--lgl-line); }
  .lgl-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; }
  .lgl-step-n { grid-row: 1 / span 2; margin: 3px 0 0; }
}
@media (max-width: 640px) {
  .lgl-never { grid-template-columns: minmax(0, 1fr); }
  .lgl-tldr { padding: 20px 18px; }
  .lgl-grid .lgl-row { grid-template-columns: minmax(0, 1fr); padding: 8px 0; }
  .lgl-head { display: none; }
  .lgl-cell { padding: 6px 16px; }
  .lgl-cell-k { display: block; }
  .lgl-cell:first-child .lgl-cell-k { display: none; }
  .lgl .lgl-tab { margin-right: 14px; font-size: 13.5px; }
}

/* Step 3, Breken first (11-26): the agent prompt and Breken's draft are optional folds. */
.cl-agent-fold>summary,.cl-draft-fold>summary{cursor:pointer;font-size:var(--bkz-text-sm);color:var(--ui-ink-body)}
.cl-agent-fold[open]>summary,.cl-draft-fold[open]>summary{margin-bottom:8px}
.cl-agent-fold{margin-top:16px}

/* BREKEN STATES 11-27 (BREKEN_STATES_1127; src/product/breken-states/mark.ts stateMark, public/breken-states.js): the mark, moving. The canvas
   carries its own size (its width and height, then the script's CSS size), and its ramp is read from the ink it sits in, so these rules only
   place it. Off: nothing emits these classes. */
.bks-mark { display: inline-block; vertical-align: middle; flex: none; }
/* The rail row of a repository with a scan at work: the mark over its dot's slot. The bullet keeps its width (hidden, not removed), so the
   names still line up down the column; the mark is centred on it and stands in the gap. */
.sb-link .st-dot:has(> .bks-rail) { position: relative; animation: none; }
.sb-link .st-dot:has(> .bks-rail)::before { visibility: hidden; }
.sb-link .st-dot > .bks-rail { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
/* The Connect GitHub wait: the mark in Connecting, in the halftone loader's place and height (12 rows of 12 px), so the pinned card keeps
   its layout. */
.bks-wait { display: flex; align-items: center; justify-content: center; min-height: 144px; }
/* The loaders (11-28, founder: "change the loading to one of the breken animations we decided"): the mark in Reading where the globe turned.
   nav.js's page-change skeleton ("Loading settings", "Loading bugs"): the mark above the words, inked by the skeleton's own theme. The rail
   modal's overlay is always the dark stage (#0a0a0a), so its mark takes the dark ramp in either theme. The empty state's still mark reads
   the strong ink, so its ramp follows the page's theme (the muted ink sits too near the middle to say which). */
.nav-skeleton-mark { display: flex; align-items: center; justify-content: center; }
.rail-modal-loading .bks-mark { color: #f2f2f2; }
.empty canvas.empty-glyph { color: var(--ui-ink-strong); }

/* THE AGENTS TAB, SIMPLE (BREKEN_AGENTS_TAB_SIMPLE_1128; src/app/agents-simple.ts, public/agents-simple.js): one heading, one line, one tile per coding
   agent (Claude Code the whole width, the rest two by two, one column on a phone), each with one action and one line; then the connected list and
   one quiet fold. Built on the panel's surface, .cmd and .btn; off: nothing emits these classes. */
.agt-sec { margin-top: 18px; }
.agt-h { margin: 0 2px 6px; font-size: var(--bkz-text-4xl); font-weight: 700; letter-spacing: var(--bkz-tracking-snug); line-height: var(--bkz-leading-tight); color: var(--bkz-ink); }
.agt-lede { margin: 0 2px 20px; max-width: 64ch; font-size: var(--bkz-text-lg); line-height: var(--bkz-leading-snug); color: var(--ui-ink-body); }
.agt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.agt-tile { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 18px; border-radius: var(--bkz-radius-3xl);
  border: 1px solid var(--ui-glass-border-solid); background: var(--ui-glass-solid); }
.agt-first { grid-column: 1 / -1; }
.agt-tile[data-connected] { border-color: color-mix(in srgb, var(--bkz-success-ink) 40%, var(--ui-glass-border-solid)); }
.agt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; flex-wrap: wrap; }
.agt-name { margin: 0; font-size: var(--bkz-text-xl); font-weight: 600; color: var(--bkz-ink); }
.agt-state { display: inline-flex; align-items: center; gap: 8px; font-size: var(--bkz-text-sm); font-weight: 500; color: var(--ui-ink-muted); }
.agt-state[hidden] { display: none; }
.agt-on { color: var(--bkz-success-ink); }
.agt-used { font-weight: 400; color: var(--ui-ink-muted); }
.agt-used:empty { display: none; }
.agt-used::before { content: "· "; }
.agt-tile .cmd { margin: 0; }
.agt-cmd code { word-break: normal; overflow-wrap: anywhere; }
.agt-cmd .btn { flex: none; }
.agt-copy.copied { color: var(--bkz-success-ink); }
.agt-act { display: flex; align-items: center; gap: 8px; }
.agt-next { margin: 0; font-size: var(--bkz-text-base); line-height: var(--bkz-leading-snug); color: var(--ui-ink-muted); }
.agt-say { font-weight: 600; color: var(--bkz-ink); }
.agt-list { margin-top: 22px; }
.agt-list:empty { display: none; }
.agt-list-h { margin: 0 2px 8px; font-size: var(--bkz-text-md); font-weight: 600; color: var(--bkz-ink); }
.agt-list > .panel { padding: 2px 0; }
.agt-list .srow form { margin: 0; }
.agt-more { margin-top: 22px; }
.agt-more > summary { cursor: pointer; width: max-content; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); }
.agt-more > summary:hover { color: var(--ui-ink-strong); }
.agt-more-body { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; padding: 16px 18px; border-radius: var(--bkz-radius-3xl);
  border: 1px solid var(--ui-glass-border-solid); background: var(--ui-glass-solid); }
.agt-more-part { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.agt-more-part .sub { margin: 0; font-size: var(--bkz-text-base); line-height: var(--bkz-leading-snug); color: var(--ui-ink-muted); }
.agt-more-part .cmd { margin: 0; }
.agt-more-h { margin: 0; font-size: var(--bkz-text-md); font-weight: 600; color: var(--bkz-ink); }
@media (max-width: 760px) {
  .agt-grid { grid-template-columns: minmax(0, 1fr); }
  .agt-h { font-size: var(--bkz-text-3xl); }
  .agt-lede { font-size: var(--bkz-text-md); }
}

/* BREKEN_BLUE_MARK_1128 (src/app/blue-mark.ts): the blue breken mark beside the wordmark. Only a page with the switch on carries .bk-mark,
   so these rules change nothing with it off. One size rule: 20 to 26 px boxes (the SVG keeps the PNG's own margin, so the drawn mark is about
   three quarters of the box), the word's own size and colour untouched. */
.bk-mark { display: inline-block; flex-shrink: 0; width: 24px; height: 24px; vertical-align: middle; user-select: none; -webkit-user-drag: none; border-radius: 0; }
.auth2-brand img.bk-mark { display: block; width: 26px; height: 26px; margin-right: 0; border-radius: 0; }
/* The public bar's and the footers' brand line up on the word's baseline, and a picture's baseline is its bottom edge: lowered onto the word
   (relative, so the bar keeps its height). */
.pubd .pubd-brand .bk-mark { width: 26px; height: 26px; margin-top: -8px; position: relative; top: 5px; }
.xp-foot-mark .bk-mark { width: 24px; height: 24px; margin-top: -8px; position: relative; top: 5px; }
.xp-bar-brand { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; font: 600 18px/1 var(--bkz-font-sans); letter-spacing: -0.03em; color: #f2f2f2; text-decoration: none; }
.xp-bar-brand:hover, .xp-bar-brand:focus-visible { color: #fff; text-decoration: none; }
.xp-bar-brand .bk-mark { width: 26px; height: 26px; }
.xp-back .bk-mark { width: 20px; height: 20px; }
.mf-back .bk-mark { width: 20px; height: 20px; margin: -2px 6px 0 0; vertical-align: middle; }
.slack-verify-brand:has(> .bk-mark) { display: flex; align-items: center; gap: 10px; }
.slack-verify-brand .bk-mark { width: 26px; height: 26px; }

/* TEST FROM YOUR CODING AGENT (BREKEN_AGENT_NUDGE_1129; src/app/agent-nudge.ts): on the first scan's page, under its rows, one calm panel with the
   Agents tab's own lines (each agent's name over its command and Copy, or its one-click button), what to say then, and a quiet Not now; once the
   scan is done, one quiet line to the Agents tab. Built on .cmd, .copy-btn and .btn, so it follows both themes and a phone's width; off: nothing
   emits these classes. */
.agn { margin: 18px 0 4px; padding: 14px 16px 10px; border: 1px solid var(--ui-border); border-radius: var(--bkz-radius-lg); background: var(--ui-surface); }
.agn-h { margin: 0; font-size: var(--bkz-text-md); font-weight: 600; line-height: 22px; color: var(--ui-ink-strong); }
.agn-lede { margin: 4px 0 10px; font-size: var(--bkz-text-sm); line-height: 1.5; color: var(--ui-ink-muted); }
.agn-rows { display: flex; flex-direction: column; gap: 10px; }
.agn-row { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.agn-name { font-size: var(--bkz-text-sm); font-weight: 600; color: var(--ui-ink-body); }
.agn .cmd { margin: 0; padding: 6px 8px 6px 10px; }
.agn .cmd code { font-size: var(--bkz-text-xs); line-height: 17px; }
.agn .copy-btn { flex: none; align-self: flex-start; }
.agn-act { display: flex; }
.agn-fine { margin: 10px 0 0; font-size: var(--bkz-text-sm); line-height: 1.5; color: var(--ui-ink-muted); }
.agn-later { margin: 6px 0 0; font-size: var(--bkz-text-sm); text-align: right; }
.agn-later a { color: var(--ui-ink-muted); text-decoration: none; }
.agn-later a:hover, .agn-later a:focus-visible { color: var(--ui-ink-strong); text-decoration: underline; }
.agn-next { margin: 14px 0 0; font-size: var(--bkz-text-sm); line-height: 1.5; }

/* BREKEN_FIRST_RUN_1129 (src/app/pages.ts firstScanPage with the switch on; first-run-page-1129.ts, agent-nudge.ts agentStepsHtml): the first scan's page, made
   of the onboarding's own parts (.ob-step and .ob-dot, .ob-panel, .agn, .sc-lines, .fs-bar): a wider panel, the coding agent's two steps on top (a done step's
   badge is the brand's check), the two halves as cards side by side (stacked on a phone), the first Confirmed bugs as compact rows. Nothing else uses these. */
.onb-split[data-onboarding-screen="first-scan"] { --onb-panel-width: clamp(560px, 50vw, 760px); }
/* A phone: the whole width, as every other screen there (the "oss" screen's own rule, the same reason: this one is declared after the shared one). */
@media (max-width: 760px) { .onb-split[data-onboarding-screen="first-scan"] { --onb-panel-width: 100%; } }
.frn-steps { margin: 22px 0 6px; padding: 18px 20px 10px; }
.frn-steps .agn-lede { margin: 4px 0 18px; }
.frn-step-list .ob-t { font-size: var(--bkz-text-md); line-height: 26px; }
.frn-step-list .ob-b { padding: 8px 0 18px; }
.frn-step-list .ob-b:empty { height: 14px; padding: 0; }
.frn-step-list .ob-done .ob-dot { background: var(--brand); color: var(--brand-contrast); }
.frn-step-list .ob-b .agn-fine { margin: 8px 0 0; }
.frn-step-list .ob-b .sc-lines { margin: 6px 0 0; }
.frn-steps .agn-later { margin: 0; }
.frn-steps + .agn { margin-top: 10px; }
.frn-full { margin: 22px 0 6px; padding: 18px 20px 12px; }
.frn-price { margin: 2px 0 8px; font-size: var(--bkz-text-md); font-weight: 600; color: var(--ui-ink-strong); }
.frn-full-act { margin: 14px 0 6px; }
.frn-full + .frn-steps { margin-top: 12px; }
.frn-use .sc-lines { gap: 4px; margin: 8px 0 2px; }
.frn-use .sc-lines li { padding-left: 0; color: var(--ui-ink-body); }
.frn-use .sc-lines li::before { display: none; }
.frn-repo { margin: 18px 0 0; }
.frn-repo + .frn-repo { margin-top: 26px; }
.frn-repo-name { margin: 0 0 8px; font-weight: 600; color: var(--ui-ink-strong); }
.frn-halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.frn-half-b { padding: 14px 18px 16px; }
.frn-half .sc-head { margin: 0; line-height: 1.5; }
.frn-half .sc-lines { margin: 12px 0 2px; }
.frn-half .sub { margin: 10px 0 0; font-size: var(--bkz-text-sm); color: var(--ui-ink-muted); line-height: 1.5; }
.frn-code { margin: 0; font-size: var(--bkz-text-md); color: var(--ui-ink-strong); line-height: 1.45; }
.frn-half .fs-bar { display: block; margin-top: 14px; }
.frn-bugs { margin-top: 12px; }
.frn-bug { display: flex; align-items: baseline; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--bkz-border-hairline); color: var(--ui-ink-body); text-decoration: none; font-size: var(--bkz-text-sm); line-height: 1.45; }
.frn-bug:last-child { border-bottom: 0; }
.frn-bug:hover { background: var(--ui-hover); }
.frn-sev { flex: none; min-width: 56px; font-size: var(--bkz-text-xs); color: var(--ui-ink-muted); }
.frn-bug-t { min-width: 0; color: var(--ui-ink-strong); }
@media (max-width: 760px) { .frn-halves { grid-template-columns: 1fr; } .frn-steps { padding: 16px 16px 8px; } }
