/* Evergreen web — prototype styles.
   Tokens follow the page exports and the 2026-09-17 decisions: Newsreader for
   display, Space Mono for data, Inter for interface, the warm surface, pine as
   the only brand accent, hairlines that share a hue with the text. */
:root {
  color-scheme: light;
  /* revamp-all (2026-11-30): the cool off-white the new website uses between
     sections, so the dashboard and the site read as one product. Was #fcf9f8. */
  --surface: #f6f8f7;
  --paper: #ffffff;
  --ink: #0f0f0f;
  --ink-2: rgba(15, 15, 15, 0.72);
  /* 0.56 measured 4.32:1 on `--surface`, just under WCAG AA's 4.5:1, and it
     is the colour behind most of this site's muted text. 0.62 clears it. */
  --ink-3: rgba(15, 15, 15, 0.62);
  --rule: rgba(15, 15, 15, 0.1);
  --rule-strong: rgba(15, 15, 15, 0.44);
  --pine: #1a3a2e;
  /* The export's `primary`. Deeper than `--pine` on purpose: the hero is a
     full-width field of it, and if it matched the 98% slab exactly the slab
     would stop reading as the page's one dominant element. */
  --pine-deep: #022419;
  --pine-soft: rgba(26, 58, 46, 0.07);
  /* revamp-all: the emerald on every button of the new website, and its mint. */
  --cta: #0b5d47;
  --mint: #8ff0cf;
  --sage: #7fa893;
  --off-black: #262626;

  --ok: #00a7b5;
  --ok-ink: #00737d;
  --warn: #c07c26;
  --warn-ink: #965d17;
  --crit: #c0392b;
  --crit-ink: #a93226;
  --und: #7c6bb0;
  --und-ink: #5d4e8c;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --step-0: clamp(1rem, 1rem + 0vw, 1rem);
  --step-1: clamp(1.25rem, 1.2156rem + 0.1467vw, 1.333rem);
  --step-2: clamp(1.5625rem, 1.4737rem + 0.379vw, 1.7769rem);
  --step-3: clamp(1.9531rem, 1.781rem + 0.7345vw, 2.3686rem);
  --step-4: clamp(2.4414rem, 2.1448rem + 1.2657vw, 3.1573rem);
  --step-5: clamp(3.0518rem, 2.5724rem + 2.0455vw, 4.2087rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--pine);
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
  border-radius: 3px;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
.mono {
  font-family: var(--mono);
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* Header ------------------------------------------------------------------ */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-block: 14px;
}
.brand {
  font: 400 1.35rem/1 var(--serif);
  letter-spacing: -0.01em;
  color: var(--pine);
  text-decoration: none;
}
.views {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 13px/1 var(--sans);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 100vw;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  transition:
    background-color 150ms ease-in-out,
    border-color 150ms ease-in-out;
}
.pill:hover {
  background: var(--pine-soft);
}
.pill[aria-current='page'] {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--surface);
}
.quiet-link {
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
}
.quiet-link:hover {
  color: var(--pine);
}

/* Layout ------------------------------------------------------------------ */
main {
  padding-block: 32px 96px;
  display: grid;
  gap: 28px;
}
section {
  display: grid;
  gap: 14px;
}
.eyebrow {
  margin: 0;
  font: 400 12.5px/1.3 var(--mono);
  color: var(--ink-3);
}
h1.page {
  margin: 0;
  font: 400 var(--step-3)/1.12 var(--serif);
  letter-spacing: -0.02em;
}
h2.section {
  margin: 0;
  font: 400 var(--step-2)/1.2 var(--serif);
  letter-spacing: -0.015em;
}
p {
  margin: 0;
  max-width: 72ch;
}
p + p {
  margin-top: 10px;
}
.muted {
  color: var(--ink-2);
}
.small {
  font-size: 13.5px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.card-pad {
  padding: 20px 22px;
}
.stack {
  display: grid;
  gap: 16px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Scan field -------------------------------------------------------------- */
.field-label {
  font: 400 12px/1.3 var(--sans);
  /* 0.06em was set for uppercase, where wide tracking separates capitals that
     have no ascenders to tell them apart. Without the uppercase it is just
     loose, which the audit flagged the moment the caps came off. */
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
input[type='text'],
textarea,
input[type='number'] {
  width: 100%;
  font: 400 14px/1.5 var(--mono);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 12px 14px;
}
textarea {
  min-height: 128px;
  resize: vertical;
}
button {
  font: 500 14px/1 var(--sans);
  /* A pill label never wraps (DES, 2026-11-23); a narrow table scrolls in
     .table-wrap instead. */
  white-space: nowrap;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 100vw;
  border: 1px solid var(--cta);
  background: var(--cta);
  color: #fff;
  transition:
    background-color 150ms ease-in-out,
    border-color 150ms ease-in-out;
}
button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
button:disabled {
  opacity: 0.55;
  cursor: progress;
}
details summary {
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-2);
}
details[open] summary {
  margin-bottom: 10px;
}

/* Status ------------------------------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font: 400 12px/1 var(--mono);
  padding: 5px 10px;
  border-radius: 100vw;
}
.shape {
  width: 9px;
  height: 9px;
  flex: none;
}
.chip.healthy {
  color: var(--ok-ink);
  background: rgba(0, 167, 181, 0.1);
}
.chip.healthy .shape {
  border-radius: 50%;
  background: var(--ok);
}
.chip.warning {
  color: var(--warn-ink);
  background: rgba(192, 124, 38, 0.1);
}
.chip.warning .shape {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid var(--warn);
}
.chip.critical {
  color: var(--crit-ink);
  background: rgba(192, 57, 43, 0.09);
}
.chip.critical .shape {
  background: var(--crit);
  transform: rotate(45deg);
  width: 8px;
  height: 8px;
}
.chip.expired {
  color: var(--surface);
  background: var(--ink);
}
.chip.expired .shape {
  background: var(--surface);
}
.chip.undetermined {
  color: var(--und-ink);
  background: rgba(124, 107, 176, 0.1);
}
.chip.undetermined .shape {
  border-radius: 50%;
  border: 2px solid var(--und);
}

/* Verdict ----------------------------------------------------------------- */
.verdict {
  display: grid;
  gap: 14px;
  padding: 22px 24px;
  border-radius: 8px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
}
.verdict.warning {
  border-color: rgba(192, 124, 38, 0.5);
  background: rgba(192, 124, 38, 0.05);
}
.verdict.critical {
  border-color: rgba(192, 57, 43, 0.5);
  background: rgba(192, 57, 43, 0.045);
}
.verdict.undetermined,
.verdict.unknown {
  border-color: rgba(124, 107, 176, 0.5);
  background: rgba(124, 107, 176, 0.05);
}
.verdict .headline {
  margin: 0;
  font: 400 var(--step-1)/1.35 var(--serif);
  letter-spacing: -0.01em;
  max-width: 62ch;
}
.verdict .coverage {
  margin: 0;
  font: 400 var(--step-1)/1.35 var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink-2);
  max-width: 52ch;
}
.verdict .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font: 400 12.5px/1.4 var(--mono);
  color: var(--ink-3);
}

/* Tables ------------------------------------------------------------------ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  font: 400 12px/1.3 var(--sans);
  letter-spacing: 0.02em;
  color: var(--ink-3);
  padding: 13px 16px 9px;
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.binding-tag {
  font: 400 10.5px/1 var(--mono);
  color: var(--warn-ink);
  background: rgba(192, 124, 38, 0.12);
  padding: 4px 7px;
  border-radius: 4px;
  margin-left: 8px;
}
.copy {
  background: none;
  border: 0;
  padding: 2px 6px;
  color: var(--ink-3);
  font: 400 11px/1 var(--mono);
  cursor: pointer;
  border-radius: 4px;
}
.copy:hover {
  color: var(--pine);
  background: var(--pine-soft);
}

/* Cards for our contracts -------------------------------------------------- */
.contract-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .contract-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.contract-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  align-content: start;
}
.contract-card .name {
  font: 600 14px/1.3 var(--sans);
}
.contract-card .id {
  font: 400 11.5px/1.4 var(--mono);
  color: var(--ink-3);
  word-break: break-all;
}
.contract-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0;
  font-size: 13px;
}
.contract-card dt {
  color: var(--ink-3);
}
.contract-card dd {
  margin: 0;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Panels ------------------------------------------------------------------- */
.panel {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 8px;
}
.panel.undetermined {
  background: rgba(124, 107, 176, 0.08);
  border: 1px solid rgba(124, 107, 176, 0.35);
}
.panel.note {
  background: var(--paper);
  border: 1px solid var(--rule);
}
.panel h3 {
  margin: 0;
  font: 600 14px/1.35 var(--sans);
}
.panel p {
  font-size: 14px;
}
.terminal {
  background: var(--off-black);
  color: #ececec;
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
  font: 400 12.5px/1.6 var(--mono);
  white-space: pre;
}
.error-box {
  border: 1px solid rgba(192, 57, 43, 0.5);
  background: rgba(192, 57, 43, 0.05);
  border-radius: 8px;
  padding: 16px 18px;
}

/* Graph -------------------------------------------------------------------- */
.graph-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px;
}
.graph-wrap svg.graph {
  display: block;
  min-width: 640px;
}
.graph-wrap svg.graph .edge {
  stroke: var(--sage);
  stroke-width: 1.5;
  fill: none;
}
.graph-wrap svg.graph .node {
  fill: var(--paper);
  stroke: var(--rule-strong);
}
.graph-wrap svg.graph .node.shared {
  fill: var(--pine);
  stroke: var(--pine);
}
.graph-wrap svg.graph text {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--ink);
}
.graph-wrap svg.graph text.on-pine {
  fill: var(--surface);
}
.graph-wrap svg.graph text.dim {
  fill: var(--ink-3);
}
.graph-wrap svg.graph text.dim.on-pine {
  fill: rgba(252, 249, 248, 0.8);
}

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 48px;
}
footer.site .wrap {
  padding-block: 20px 40px;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--paper);
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 5;
}

/* Marketing surface — `/`, `/docs/`, `/about/` -------------------------------
   Everything here is scoped under `body.site`. The dashboard's twelve routes
   use `body.app` and share only the tokens at the top of this file, so a
   decision made for the landing cannot reach a live read.

   Three rules govern the whole surface, and each one is a measurement rather
   than a taste:

   1. FIVE type sizes, and nothing is bold. Hierarchy is carried by size and
      colour alone. The reference this was taken from sets every element in its
      own typeface at weight 400 — the 600s in its DOM belong to simulated app
      UI inside screenshots. Eleven sizes used eleven times is a scale with no
      hierarchy, which is the same defect as having no point of view.

   2. Tracking flips at 16px. Below it, positive (+0.01em); above it, negative
      and scaling with size (−0.0125em at 28px, −0.03em at 72px). Standard
      typographic practice, free, and legible as craft.

   3. ONE element over 40px on any page. A page that shouts on every screen has
      no dominant element anywhere. `scripts/check-design.mjs` asserts this.

   What is deliberately absent: gradients, decorative icons, drop shadows, a
   nav that moves when you scroll, and any border that is a grey hex rather
   than an alpha of the foreground. */
body.site {
  --m-max: 1300px;
  --m-gutter: clamp(20px, 5vw, 32px);
  --m-rhythm: 4.2rem;
  --m-ease: 150ms cubic-bezier(0.4, 0, 0.2, 1);

  --t-figure: 72px;
  --t-head: 28px;
  --t-lead: 16px;
  --t-body: 14px;
  --t-label: 12px;

  /* The height of the hero's fade into the surface below it. Not part of the
     section rhythm — it is a transition, and it is the only one on the site. */
  --hero-fade: clamp(120px, 12vw, 180px);
  --closing-fade: clamp(180px, 18vw, 300px);

  background: var(--surface);
  font: 400 var(--t-body) / 1.5 var(--sans);
  letter-spacing: 0.01em;
}
body.site main {
  display: block;
  padding: 0;
}
body.site section {
  display: block;
  padding-block: var(--m-rhythm);
}
.site-wrap {
  max-width: var(--m-max);
  margin: 0 auto;
  padding-inline: var(--m-gutter);
}
/* `ch` is the advance of `0`, which in Inter is far wider than the average
   glyph — so 68ch renders as roughly 95 actual characters, not 68. These
   values are set from measured characters per line, not from the unit's
   apparent promise. Space Mono is fixed-pitch, so `ch` is literal there and
   the mono widths below need no such correction. */
body.site p {
  margin: 0;
  max-width: 54ch;
}
body.site p + p {
  margin-top: 12px;
}

/* Type — the whole scale, in one place ------------------------------------- */
body.site h1,
body.site h2 {
  margin: 0;
  font: 400 var(--t-head) / 1.22 var(--serif);
  letter-spacing: -0.0125em;
  max-width: 26ch;
}
body.site h1 {
  max-width: 22ch;
}
body.site h3 {
  margin: 0;
  font: 400 var(--t-lead) / 1.5 var(--sans);
  letter-spacing: 0.005em;
}
body.site .lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--ink-2);
  max-width: 52ch;
}
body.site .eyebrow,
body.site .note,
body.site .provenance {
  font: 400 var(--t-label) / 1.4 var(--mono);
  letter-spacing: 0.02em;
  color: var(--ink-3);
  max-width: 70ch;
}
body.site .note,
body.site .provenance {
  margin-top: 20px;
}

/* Nav — static, 52px, three zones. It scrolls away; see site.mjs for why. --- */
.site-nav {
  position: relative;
  height: 52px;
  background: var(--surface);
}
/* On the landing the bar is part of the hero's green field, so it takes the
   hero's background rather than sitting on top of it. This is the page's own
   colour, decided at build time — nothing here reacts to scrolling. */
.site-nav.on-dark {
  background: var(--pine-deep);
}
.site-nav.on-dark .site-brand {
  color: var(--surface);
}
.site-nav.on-dark .site-mark {
  background: var(--surface);
}
.site-nav.on-dark .site-link {
  color: rgba(252, 249, 248, 0.62);
}
.site-nav.on-dark .site-link:hover,
.site-nav.on-dark .site-link.current {
  color: var(--surface);
}
.site-nav-inner {
  max-width: var(--m-max);
  margin: 0 auto;
  padding-inline: var(--m-gutter);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* The button that collapses the bar on a phone.
   Three bars drawn in CSS rather than an icon file: it is a control's label,
   it inherits the bar's colour on both the light pages and the green one, and
   it adds nothing to download. */
.site-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.site-burger[hidden] {
  display: none;
}
.site-nav.on-dark .site-burger {
  color: var(--surface);
}
.site-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentcolor;
}
.site-bars::before,
.site-bars::after {
  content: '';
  position: absolute;
  left: 0;
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentcolor;
  transition: transform var(--m-ease);
}
.site-bars::before {
  top: -6px;
}
.site-bars::after {
  top: 6px;
}
.site-nav[data-menu='open'] .site-bars {
  background: transparent;
}
.site-nav[data-menu='open'] .site-bars::before {
  transform: translateY(6px) rotate(45deg);
}
.site-nav[data-menu='open'] .site-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* At 390px the three zones are 92 + 89 + 160 = 341px of content in a 390px
   bar, and holding them there took 29px clawed back from padding and gaps.
   That was a fit, not a layout. Below 760px they go behind the button.

   `[data-menu]` is set by the script, so the collapse only happens once the
   button works. Without JavaScript the links stay in the bar — tight, but
   reachable, which is exactly what shipped before the button existed. */
@media (max-width: 759px) {
  .site-nav-inner {
    padding-inline: 16px;
    gap: 10px;
  }
  .site-brand {
    gap: 8px;
  }
  .site-centre {
    gap: 12px;
  }
  .site-cta {
    padding-inline: 11px;
  }
  .site-nav[data-menu] .site-links {
    position: absolute;
    inset: 52px 0 auto;
    z-index: 9;
    display: grid;
    justify-items: start;
    gap: 20px;
    padding: 22px 16px 26px;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
  }
  .site-nav.on-dark[data-menu] .site-links {
    background: var(--pine-deep);
    border-bottom-color: rgba(252, 249, 248, 0.16);
  }
  .site-nav[data-menu] .site-centre {
    display: grid;
    justify-items: start;
    gap: 20px;
  }
  .site-nav[data-menu='closed'] .site-links {
    display: none;
  }
}
@media (min-width: 760px) {
  .site-nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  /* The wrapper exists only so the phone has something to collapse. Here it
     gets out of the way and its children are the three-zone grid's own
     items, so the desktop bar is unchanged. */
  .site-links {
    display: contents;
  }
  .site-centre {
    justify-self: center;
  }
  .site-nav-inner .site-cta {
    justify-self: end;
  }
  .site-burger {
    display: none;
  }
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 400 var(--t-lead) / 1 var(--serif);
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-mark {
  width: 24px;
  height: 24px;
  flex: none;
  background: var(--pine);
}
.site-centre {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 26px);
}
.site-link {
  font-size: var(--t-body);
  letter-spacing: 0.01em;
  color: var(--ink-3);
  text-decoration: none;
  transition: color var(--m-ease);
  white-space: nowrap;
}
.site-link:hover,
.site-link.current {
  color: var(--ink);
}

/* The only button on the surface: filled foreground, background-coloured text. */
.site-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--t-body);
  letter-spacing: 0.01em;
  padding: 7px 14px;
  border-radius: 100vw;
  background: var(--pine);
  color: var(--surface);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--m-ease);
}
.site-cta:hover {
  background: #0f2b20;
}
/* Filled foreground with background-coloured text, both ways round: a dark
   pill on the warm surface, a light pill on the hero's green. */
.site-nav.on-dark .site-cta,
body.site .hero .site-cta,
body.site .closing .site-cta {
  background: var(--surface);
  color: var(--pine-deep);
}
.site-nav.on-dark .site-cta:hover,
body.site .hero .site-cta:hover,
body.site .closing .site-cta:hover {
  background: #ffffff;
}
body.site .hero .site-more {
  color: var(--surface);
}
/* Accent, and only here: an inline text link that continues the sentence. */
.site-more {
  font-size: var(--t-body);
  letter-spacing: 0.01em;
  color: var(--pine);
  text-decoration: none;
  transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.site-more:hover {
  opacity: 0.66;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 28px;
}

/* Hero — green, and the only gradient on the site -------------------------- */
body.site .hero {
  position: relative;
  background: var(--pine-deep);
  color: var(--surface);
  /* The rhythm value is still the rhythm value; the fade is added to it so the
     content clears the transition rather than sitting inside it. */
  padding-block: 7rem calc(var(--m-rhythm) + var(--hero-fade));
}
/* One transition, at the single most important one on the page, and nowhere
   else. `in oklab` because sRGB interpolation between a dark green and a warm
   off-white runs through a grey mud in the middle; the sRGB declaration above
   it is the fallback for anything that cannot parse the second. */
body.site .hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: var(--hero-fade);
  pointer-events: none;
  background: linear-gradient(to bottom, #022419 0%, #fcf9f8 100%);
  background: linear-gradient(to bottom in oklab, #022419 0%, #fcf9f8 100%);
  background: linear-gradient(
    to bottom,
    #022419 0%,
    color-mix(in oklab, #fcf9f8 4.3%, #022419) 12.5%,
    color-mix(in oklab, #fcf9f8 15.6%, #022419) 25%,
    color-mix(in oklab, #fcf9f8 31.6%, #022419) 37.5%,
    color-mix(in oklab, #fcf9f8 50%, #022419) 50%,
    color-mix(in oklab, #fcf9f8 68.4%, #022419) 62.5%,
    color-mix(in oklab, #fcf9f8 84.4%, #022419) 75%,
    color-mix(in oklab, #fcf9f8 95.7%, #022419) 87.5%,
    #fcf9f8 100%
  );
}
body.site .hero .site-wrap {
  position: relative;
  z-index: 1;
}
body.site .hero .eyebrow {
  color: rgba(252, 249, 248, 0.62);
}
body.site .hero h1 {
  margin-top: 0;
}
body.site .hero .lead {
  margin-top: 20px;
  color: rgba(252, 249, 248, 0.82);
}

/* The hero's artefact slot.
   16:9, matching the artefact at 1920x1080, and it takes the whole container
   at every width — 1236 x 695 at 1300px and up, and the same shape the whole
   way down to 350 x 197 on a phone. No max-width and no breakpoint: one
   ratio, and the width is whatever the container has.

   The ratio lives on the container, so the space exists before the file does
   and swapping one in reflows nothing. Empty, it is a hairline in an alpha of
   the hero's foreground and nothing else: no placeholder text, no icon, no
   dashed edge, no shimmer. */
.hero-art {
  margin-top: 44px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(252, 249, 248, 0.18);
  overflow: hidden;
}
.hero-media {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

/* Feature — a narrow caption beside a large artefact, about 31/69 ----------- */
.feature-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.feature-text {
  display: grid;
  gap: 14px;
  align-content: start;
  max-width: 400px;
}
.feature-text p {
  font-size: var(--t-body);
  color: var(--ink-2);
}
@media (min-width: 980px) {
  .feature-grid {
    grid-template-columns: minmax(0, 0.31fr) minmax(0, 0.69fr);
    gap: 56px;
  }
  .feature.flip .feature-grid {
    grid-template-columns: minmax(0, 0.69fr) minmax(0, 0.31fr);
  }
  .feature.flip .feature-text {
    order: 2;
  }
  .feature.flip .feature-art {
    order: 1;
  }
}

/* Artefact 1 — the one number over 40px on this page. */
.figure {
  background: var(--pine);
  color: var(--surface);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 10px;
  justify-items: start;
}
.figure-label {
  font: 400 var(--t-label) / 1.4 var(--mono);
  letter-spacing: 0.02em;
  color: rgba(252, 249, 248, 0.62);
}
.figure-value {
  font: 400 var(--t-figure) / 1.06 var(--serif);
  letter-spacing: -0.03em;
}
.figure-caption {
  font-size: var(--t-body);
  letter-spacing: 0.01em;
  color: rgba(252, 249, 248, 0.78);
  max-width: 44ch;
}

/* Artefact 2 — unedited output. No window chrome, no label, no dots.
   `pre-wrap` rather than `pre`: three lines of the capture are prose over 130
   characters, and a terminal at any width wraps them. The bytes are the
   committed file's; only the column count is this page's. */
body.site .terminal {
  background: var(--off-black);
  color: #ececec;
  border-radius: 4px;
  padding: clamp(20px, 3vw, 32px);
  font: 400 var(--t-label) / 1.65 var(--mono);
  letter-spacing: 0.02em;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* Artefact 3 — a finished fact. The inverted cell is emphasis, not an error. */
.ended {
  background: var(--ink);
  color: var(--surface);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 14px;
  justify-items: start;
}
.ended-label {
  font: 400 var(--t-label) / 1.4 var(--mono);
  letter-spacing: 0.02em;
  color: rgba(252, 249, 248, 0.62);
}
.ended-word {
  font: 400 var(--t-head) / 1.1 var(--serif);
  letter-spacing: -0.0125em;
}
.ended-facts {
  margin: 0;
  display: grid;
  gap: 10px;
}
.ended-facts > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.ended-facts dt {
  font-size: var(--t-body);
  letter-spacing: 0.01em;
  color: rgba(252, 249, 248, 0.62);
  min-width: 72px;
}
.ended-facts dd {
  margin: 0;
  font-size: var(--t-body);
  letter-spacing: 0.01em;
}

/* The four kinds — a continuous hairline row, square where borders meet ----- */
body.site .plain h2 {
  margin-top: 18px;
}
body.site .plain .lead {
  margin-top: 16px;
}
.kinds {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--rule);
  overflow: hidden;
}
@media (min-width: 640px) {
  .kinds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .kinds {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.kind {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  border-top: 1px solid var(--rule);
}
.kind:first-child {
  border-top: 0;
}
@media (min-width: 640px) {
  .kind {
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
  .kind:nth-child(odd) {
    border-left: 0;
  }
  .kind:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
}
@media (min-width: 1000px) {
  .kind:nth-child(n) {
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
  .kind:first-child {
    border-left: 0;
  }
}
.kind-name {
  font: 400 var(--t-lead) / 1.2 var(--mono);
  letter-spacing: 0.005em;
}
.kind-holds {
  font-size: var(--t-body) !important;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}
.kind.inverted {
  background: var(--ink);
  color: var(--surface);
}
.kind.inverted .kind-holds {
  color: rgba(252, 249, 248, 0.78);
}

/* How it works — three columns and nothing around them --------------------- */
.how {
  margin-top: 32px;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 860px) {
  .how {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
  }
}
.how > div {
  display: grid;
  gap: 10px;
  align-content: start;
}
.how-name {
  font: 400 var(--t-label) / 1.4 var(--mono);
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.how p:not(.how-name) {
  font-size: var(--t-body);
  color: var(--ink-2);
}

/* Closing — the page's last beat, and the second of its two gradients ------
   The hero fades green into the surface; this fades the surface back into
   green, so the page opens and closes on the same field. That is a SECOND
   gradient on a page briefed to carry one, added at Fatih's direction on
   2026-09-25 — the budget in `check-design.mjs` moved from one to two so a
   THIRD still fails.

   Centred, and only here. The rest of the site is left-aligned against a rail
   or a measure; the closing is the one place where centring is the point,
   because there is nothing after it to align to. */
body.site .closing {
  position: relative;
  background: var(--pine-deep);
  color: var(--surface);
  padding-block: calc(var(--m-rhythm) + var(--closing-fade)) 8.4rem;
}
body.site .closing::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: var(--closing-fade);
  pointer-events: none;
  background: linear-gradient(to bottom, #fcf9f8 0%, #022419 100%);
  background: linear-gradient(to bottom in oklab, #fcf9f8 0%, #022419 100%);
  background: linear-gradient(
    to bottom,
    #fcf9f8 0%,
    color-mix(in oklab, #022419 4.3%, #fcf9f8) 12.5%,
    color-mix(in oklab, #022419 15.6%, #fcf9f8) 25%,
    color-mix(in oklab, #022419 31.6%, #fcf9f8) 37.5%,
    color-mix(in oklab, #022419 50%, #fcf9f8) 50%,
    color-mix(in oklab, #022419 68.4%, #fcf9f8) 62.5%,
    color-mix(in oklab, #022419 84.4%, #fcf9f8) 75%,
    color-mix(in oklab, #022419 95.7%, #fcf9f8) 87.5%,
    #022419 100%
  );
}
.closing-inner {
  position: relative;
  z-index: 1;
  display: grid;
  /* A grid item will not shrink below its content either, so the track has to
     say so explicitly. Without this the command pill widened the section by
     221px on a phone even after the code could scroll. */
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 20px;
  text-align: center;
}
/* The only sixth type size on the surface, and it is size alone that does the
   work: nothing here is bold. A 600 was tried on 2026-09-25 and looked heavy
   in Newsreader at this size, so the rule the rest of the rework follows —
   hierarchy by size and colour, never by weight — holds without exception.
   36px keeps it UNDER 40px on purpose: the page is still allowed exactly one
   element above that line, and that is the 98%. */
body.site .closing h2 {
  font-size: 36px;
  line-height: 1.16;
  letter-spacing: -0.018em;
  max-width: 20ch;
}
body.site .closing .lead {
  color: rgba(252, 249, 248, 0.78);
  max-width: 54ch;
}
body.site .closing .hero-actions {
  justify-content: center;
  margin-top: 10px;
}

/* The command. A control surface, not a card: it holds a button, its text is
   selectable, and it is the one thing on the page a visitor is meant to take
   away with them. The command itself is the README's quickstart verbatim. */
.command {
  display: flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  margin-top: 8px;
  padding: 9px 9px 9px 16px;
  border: 1px solid rgba(252, 249, 248, 0.2);
  /* A command is a surface, not a control: 6px, not a lozenge. A full pill
     around a line of monospace is the shape that reads as generated. */
  border-radius: 6px;
  background: rgba(252, 249, 248, 0.05);
}
.command code {
  /* A flex item will not shrink below its content without this, so the
     command's 95 characters pushed the row 463px past a 390px phone. The code
     scrolls inside the pill instead. */
  min-width: 0;
  overflow-x: auto;
  font: 400 var(--t-label) / 1.6 var(--mono);
  letter-spacing: 0.02em;
  color: var(--surface);
  white-space: pre;
}
.command-prompt {
  flex: none;
  font: 400 var(--t-label) / 1.6 var(--mono);
  color: var(--sage);
}
.command-copy {
  flex: none;
  padding: 6px 12px;
  border: 0;
  border-radius: 4px;
  background: rgba(252, 249, 248, 0.1);
  color: rgba(252, 249, 248, 0.72);
  font: 400 var(--t-label) / 1 var(--mono);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background-color var(--m-ease),
    color var(--m-ease);
}
.command-copy:hover,
.command-copy.done {
  background: rgba(252, 249, 248, 0.18);
  color: var(--surface);
}
.command-copy[hidden] {
  display: none;
}

/* The second action. Transparent, a hairline in the foreground's alpha — the
   filled pill stays the only solid button on the surface. */
.site-ghost {
  display: inline-flex;
  align-items: center;
  font-size: var(--t-body);
  letter-spacing: 0.01em;
  padding: 7px 14px;
  border: 1px solid rgba(252, 249, 248, 0.28);
  border-radius: 100vw;
  color: var(--surface);
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color var(--m-ease),
    background-color var(--m-ease);
}
.site-ghost:hover {
  border-color: rgba(252, 249, 248, 0.6);
  background: rgba(252, 249, 248, 0.06);
}

/* Reference pages — a label rail, and the substance beside it ------------- */
body.site .page-intro-wrap {
  padding-block: 0;
}
.page-intro {
  border-top: 0;
  padding-block: 7rem 0;
}
/* A hairline per section, and the rhythm split evenly across it.
   A label rail groups HORIZONTALLY — heading left, its substance right — so a
   heading has nothing directly beneath it, and vertical spacing alone leaves
   it as near to the block above as to the one it introduces. The rule says
   where each section starts without enclosing anything, which is what a
   hairline is for and what a card would get wrong. */
body.site .ref {
  padding-block: 0;
}
.ref-grid {
  border-top: 1px solid var(--rule);
  padding-block: var(--m-rhythm);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 980px) {
  .ref-grid {
    grid-template-columns: minmax(0, 0.31fr) minmax(0, 0.69fr);
    gap: 56px;
  }
}
.ref-label {
  display: grid;
  gap: 12px;
  align-content: start;
  max-width: 340px;
}
.ref-body {
  display: grid;
  gap: 16px;
  align-content: start;
}
.ref-body p {
  font-size: var(--t-body);
  color: var(--ink-2);
}
.ref-body .mono {
  font-size: var(--t-label);
  letter-spacing: 0.02em;
}
/* A table is a table: hairlines, no card around it, no radius. The dashboard's
   `.table-wrap` is a bordered, rounded, paper-filled box — correct inside a
   dense instrument, and exactly the uniform rounded container the rework was
   asked to remove from these three pages. */
body.site .table-wrap {
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: none;
}
body.site table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-body);
  /* A two-column table stretched across the content column puts 91 characters
     on a line. The table is narrow content; it does not need the column. */
  max-width: 620px;
}
body.site thead th {
  font: 400 var(--t-label) / 1.4 var(--mono);
  letter-spacing: 0.02em;
  color: var(--ink-3);
  text-align: left;
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--rule);
}
body.site tbody td {
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  letter-spacing: 0.01em;
}
body.site tbody td.num {
  font-family: var(--mono);
  white-space: nowrap;
}
.people {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 860px) {
  .people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
  }
}
.people > div {
  display: grid;
  gap: 10px;
  align-content: start;
}

/* Documentation — sidebar, page, contents ---------------------------------
   Three columns at 1300px, proportioned from the reference Fatih named:
   260px of navigation, a 704px text column, 240px of contents. The text
   column is the number that matters; its paragraphs still cap at the site's
   own 54ch, so nothing runs past 80 characters a line.

   One new type size lives here and nowhere else: a 20px sub-heading. Twenty
   pages of reference need a step between the 28px page title and 14px body,
   and 16px against 14px is not a step, it is a wobble. Nothing here is bold —
   the reference this layout came from sets seventeen size-and-weight
   combinations and uses 700 freely; copying that would split the site into
   two languages a visitor crosses at the navbar. */
body.site {
  --t-sub: 20px;
  --docs-rail: 260px;
  --docs-toc: 240px;
}
.docs-shell {
  padding-block: 3rem var(--m-rhythm);
}
.docs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
@media (min-width: 980px) {
  .docs-grid {
    grid-template-columns: var(--docs-rail) minmax(0, 1fr);
    gap: 48px;
  }
}
@media (min-width: 1200px) {
  .docs-grid {
    grid-template-columns: var(--docs-rail) minmax(0, 1fr) var(--docs-toc);
  }
}

/* The rail. No fill and no border: it is a column of links, not a panel. */
.docs-aside {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.docs-nav {
  display: grid;
  gap: 26px;
}
.docs-group {
  display: grid;
  gap: 2px;
}
.docs-group .eyebrow {
  margin-bottom: 8px;
}
.docs-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  font-size: var(--t-body);
  letter-spacing: 0.01em;
  color: var(--ink-3);
  text-decoration: none;
  transition: color var(--m-ease);
}
.docs-link:hover {
  color: var(--ink);
}
.docs-link.current {
  color: var(--pine);
}
.docs-tag {
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.02em;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 2px 5px;
}

/* The page. */
.docs-main {
  max-width: 704px;
  min-width: 0;
}
.docs-head {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
}
body.site .docs-main h2 {
  font-size: var(--t-sub);
  line-height: 1.3;
  letter-spacing: -0.005em;
  max-width: 34ch;
  margin-top: 44px;
  margin-bottom: 14px;
}
body.site .docs-main h3 {
  margin-top: 26px;
  margin-bottom: 8px;
  color: var(--ink);
}
body.site .docs-main p {
  font-size: var(--t-body);
  color: var(--ink-2);
}
/* Emphasis by colour, not by weight. `strong` keeps its meaning for a screen
   reader — it still announces emphasis — while rendering as full-strength ink
   against the body's 72%. Reference prose needs to be able to stress a
   sentence; this site carries hierarchy by size and colour, and that rule does
   not get an exception just because there is a lot of text. */
body.site .docs-main strong,
body.site .docs-main b {
  font-weight: inherit;
  color: var(--ink);
}
body.site .docs-main ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: var(--t-body);
  color: var(--ink-2);
  max-width: 54ch;
}
/* `pre`, not `pre-wrap`, and it scrolls.
   A help text aligns its flag descriptions in columns, and wrapping it at the
   text measure breaks that alignment and splits sentences mid-clause. The
   landing wraps its capture because that capture is prose; this one is a
   layout, and the line breaks in it are the tool's rather than this page's. */
body.site .docs-main .terminal {
  margin-top: 4px;
  white-space: pre;
  overflow-x: auto;
}
body.site .docs-main .provenance {
  margin-top: 16px;
}
/* A callout, in this site's own language: a hairline and a shift of ink, not a
   box and not an emoji.

   `.note` is Space Mono elsewhere, which suits the one-line provenance it was
   built for and is hard work for a paragraph of prose. On a reference page a
   note carries an argument — why a default is what it is, what a reader will
   otherwise assume — so here it reads as prose and is set apart by position. */
body.site .docs-main .note {
  margin-top: 20px;
  padding-left: 18px;
  border-left: 2px solid var(--rule);
  font-family: var(--sans);
  font-size: var(--t-body);
  letter-spacing: 0.01em;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
}

/* The contents. Hidden below 1200px, where the rail is already the map. */
.docs-toc {
  display: none;
}
@media (min-width: 1200px) {
  .docs-toc {
    display: grid;
    gap: 2px;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
}
.docs-toc .eyebrow {
  margin-bottom: 8px;
}
.docs-toc-link {
  padding: 5px 0;
  font-size: var(--t-body);
  letter-spacing: 0.01em;
  color: var(--ink-3);
  text-decoration: none;
  transition: color var(--m-ease);
}
.docs-toc-link:hover {
  color: var(--ink);
}

/* Next page. A hairline above it, and nothing around it. */
.docs-next {
  display: grid;
  gap: 6px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
}
.docs-next-title {
  font: 400 var(--t-lead) / 1.4 var(--serif);
  letter-spacing: -0.005em;
  color: var(--pine);
}
.docs-next-blurb {
  font-size: var(--t-body);
  letter-spacing: 0.01em;
  color: var(--ink-3);
  max-width: 54ch;
}

/* On a phone the rail collapses, for the same reason the navbar does. */
.docs-menu-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  color: var(--ink-2);
  font: 400 var(--t-body) / 1 var(--sans);
  letter-spacing: 0.01em;
  cursor: pointer;
}
.docs-menu-button[hidden] {
  display: none;
}
.docs-menu-mark {
  /* Rotated 45 degrees, so its bounding box is the diagonal — about 12.7px for
     a 9px square. That overhang was the 2px the overflow check caught. */
  margin-right: 3px;
  width: 9px;
  height: 9px;
  border-right: 1px solid currentcolor;
  border-bottom: 1px solid currentcolor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--m-ease);
}
.docs-shell[data-docs='open'] .docs-menu-mark {
  transform: translateY(2px) rotate(-135deg);
}
@media (min-width: 980px) {
  .docs-menu-button {
    display: none;
  }
}
@media (max-width: 979px) {
  .docs-shell[data-docs='closed'] .docs-aside {
    display: none;
  }
}

/* Shared instrument classes on the documentation surface ------------------
   `/docs/evidence/` moved out of the dashboard and brought its stat strip
   with it. Those classes are declared once for both surfaces, so the rules
   that normalised them under `body.app` — 12px labels at weight 400, a figure
   on the scale — have to be stated here too, or the page silently reverts to
   the 600-weight labels the audit removed. */
body.site .stat-label,
body.site .stat-caption {
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
body.site .stat-figure {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
}
body.site .stat-caption {
  color: var(--ink-2);
}

/* Footer — a plain link list. No logo lockup, no newsletter, no social row. - */
.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: 40px 56px;
}
/* On the landing the closing section is green to the page's end, so the footer
   stays in that field rather than cutting it off with a cream band. The page
   then opens and closes on the same colour. */
.site-foot.on-dark {
  background: var(--pine-deep);
  border-top-color: rgba(252, 249, 248, 0.16);
}
.site-foot.on-dark .site-link {
  color: rgba(252, 249, 248, 0.62);
}
.site-foot.on-dark .site-link:hover {
  color: var(--surface);
}
.site-foot.on-dark .site-foot-note {
  color: rgba(252, 249, 248, 0.54);
}
.site-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-bottom: 26px;
}
.site-foot-note {
  font-size: var(--t-label);
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.site-foot-note + .site-foot-note {
  margin-top: 6px;
}

/* App shell — sidebar, status bar, stat strip, decay chart ------------------- */
body.app {
  background: var(--surface);
}
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
}
@media (min-width: 960px) {
  .shell {
    grid-template-columns: 264px minmax(0, 1fr);
  }
}
.sidebar {
  /* revamp-all: the website's hero and footer gradient, with its emerald glow. */
  background:
    radial-gradient(120% 40% at 50% 108%, rgba(25, 194, 160, 0.3), transparent 70%),
    linear-gradient(180deg, #02110d 0%, #04261d 62%, #073a2d 100%);
  color: var(--surface);
  padding: 20px 16px;
  display: grid;
  gap: 22px;
  align-content: start;
}
@media (max-width: 959px) {
  .sidebar {
    padding-bottom: 8px;
  }
}
.sidebar .brand {
  color: var(--surface);
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}
.brand-mark {
  width: 24px;
  height: 24px;
  flex: none;
  background: var(--surface);
}
.site-mark,
.brand-mark {
  display: block;
  -webkit-mask: url('/assets/evergreen-logo-mask.svg') center / contain no-repeat;
  mask: url('/assets/evergreen-logo-mask.svg') center / contain no-repeat;
  mask-mode: alpha;
}
.brand-name {
  display: block;
  font: 400 1.2rem/1.1 var(--serif);
}
.brand-sub {
  display: block;
  font: 400 11px/1.3 var(--mono);
  color: rgba(252, 249, 248, 0.66);
}
.nav-group {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}
.nav-section {
  margin: 0 0 2px;
  font: 600 10.5px/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(252, 249, 248, 0.55);
}
.nav-item {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: rgba(252, 249, 248, 0.88);
  text-decoration: none;
  transition: background-color 150ms ease-in-out;
}
.nav-item:hover {
  background: rgba(252, 249, 248, 0.1);
}
/* revamp-all: a mint glass pill, like the website's navbar, instead of a solid cream one. */
.nav-item.active {
  background: rgba(143, 240, 207, 0.13);
  color: #fff;
  font-weight: 600;
  box-shadow:
    inset 0 0 0 1px rgba(143, 240, 207, 0.28),
    inset 3px 0 0 var(--mint);
}
.sidebar-foot {
  font-size: 12.5px;
  color: rgba(252, 249, 248, 0.7);
  display: grid;
  gap: 6px;
}
.sidebar-foot .mono {
  color: var(--sage);
}
.content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}
.statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  padding: 10px clamp(16px, 4vw, 40px);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  font: 400 12.5px/1.4 var(--mono);
  color: var(--ink-2);
}
.statusbar .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 7px;
}
.statusbar .right {
  margin-left: auto;
}
.status-item.dim,
.dim {
  color: var(--ink-3);
}
main.main {
  padding: 32px clamp(16px, 4vw, 40px) 64px;
  display: grid;
  /* `.content` gives main the 1fr row, so on a short page the grid stretched
     its rows to fill the screen and pushed eyebrow, heading and lead apart
     (the watchlist's empty state showed it worst). Rows sit at the top. */
  align-content: start;
  gap: 28px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}
.page-head {
  display: grid;
  gap: 12px;
}
.page-head h1 {
  margin: 0;
  font: 400 var(--step-3)/1.12 var(--serif);
  letter-spacing: -0.02em;
}
p.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 68ch;
}
.content footer.site {
  margin-top: 0;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: space-between;
  /* Baseline, so the two texts sit on one line rather than their boxes being
     aligned to each other. */
  align-items: baseline;
  /* The same gutter and measure `main.main` uses. The footer is a sibling of
     the main element rather than a child, so it inherited neither, and at
     1440px the row ran edge to edge with the GitHub link clipped against it. */
  padding-inline: clamp(16px, 4vw, 40px);
  max-width: 1180px;
  width: 100%;
}
/* The global `p + p` rule adds 10px above any paragraph following another.
   Down a column that is the paragraph rhythm; across a flex ROW it pushed the
   GitHub link 10px below the line it shares, which is why one sat high and
   the other low. Measured: left box 29px tall against the link's 19px, both
   ending on the same bottom edge. */
.foot-row > p + p {
  margin-top: 0;
}

/* Stat strip */
.stat-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.stat {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px 22px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.stat-label {
  margin: 0;
  font: 400 12px/1.3 var(--sans);
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.stat-figure {
  margin: 0;
  font: 400 var(--step-4)/1 var(--serif);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-figure.warning {
  color: var(--warn-ink);
}
.stat-figure.critical {
  color: var(--crit-ink);
}
.stat-figure.healthy {
  color: var(--ok-ink);
}
.stat-figure.undetermined,
.stat-figure.unknown {
  color: var(--und-ink);
}
.stat-caption {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
}

/* Contract role cards */
.name {
  font: 600 15px/1.3 var(--sans);
}
.id {
  font-size: 11.5px;
  color: var(--ink-3);
  word-break: break-all;
}
dl.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 0;
  font-size: 13.5px;
}
dl.facts dt {
  color: var(--ink-3);
}
dl.facts dd {
  margin: 0;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Decay chart */
svg.decay {
  display: block;
  width: 100%;
  height: auto;
}
.decay-line {
  stroke: var(--pine);
  stroke-width: 2;
  fill: none;
}
.decay-dash {
  stroke: var(--ink-3);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}
.decay-dot {
  fill: var(--pine);
}
.decay-step {
  fill: var(--sage);
  stroke: var(--pine);
  stroke-width: 1.5;
}
.decay-step-label {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--ink-2);
}
.decay-step-label a {
  fill: var(--pine);
}
.decay-band {
  stroke: var(--warn);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  opacity: 0.7;
}
.decay-band-label {
  font-family: var(--mono);
  font-size: 10.5px;
  fill: var(--warn-ink);
}
.decay-expiry {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--crit-ink);
}
.decay-axis {
  font-family: var(--mono);
  font-size: 10.5px;
  fill: var(--ink-3);
}

/* ---------------------------------------------------------------------------
   Expired.

   Not a failure state the page is coping with — for guinea-pig B it is the
   finished proof, and it should read as the most settled cell on the page.
   The inverted cell is the spec's `--status-expired`, and inversion is
   Stellar's own mechanism for emphasis rather than for error.
   --------------------------------------------------------------------------- */
.expired-card {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}
.expired-card .id,
.expired-card dt,
.expired-card .small {
  color: rgba(252, 249, 248, 0.72);
}
.expired-card dd,
.expired-card .name {
  color: var(--surface);
}
.expired-headline {
  font-family: var(--serif);
  font-size: var(--step-3);
  line-height: 1.05;
  margin: 0.25rem 0 0.5rem;
  color: var(--surface);
}
.stat-expired {
  background: var(--ink);
  color: var(--surface);
}
.stat-expired .stat-label,
.stat-expired .stat-caption {
  color: rgba(252, 249, 248, 0.72);
}
.stat-expired .stat-figure {
  font-family: var(--serif);
  color: var(--surface);
}
.expired-cell {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 2px;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--mono);
  font-size: var(--step--1);
}
tr.row-expired td {
  background: rgba(15, 15, 15, 0.04);
}
.excluded {
  border-top: 1px solid var(--hair);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}
.excluded ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

/* A word, not a figure. `archived` at the numeric display size overflows a
   stat cell and clipped to "arc…" at 1280px — the one cell on the page that
   most needs to be readable. */
.stat-expired .stat-figure {
  font-size: var(--step-1);
  letter-spacing: 0.01em;
}
.stat-expired .stat-caption {
  overflow-wrap: anywhere;
}

/* The status bar already wrapped between items, but each item was an
   unbreakable flex child: "ledger close 5.000000 s ± 0.000050 · measured, not
   assumed" is 437px, so at 390px it stretched the whole shell and every page
   scrolled sideways. Found by the layout check, not by looking — it is on
   every page and showed up on two.

   Information is wrapped rather than hidden; a status bar that drops the
   measurement on a phone is a status bar that lies by omission. */
.statusbar .status-item {
  /* `min-width: 0` alone is not enough: in a wrapping flex container an item
     wider than the line gets its own line and keeps its max-content width.
     `max-width: 100%` is what makes it fit. */
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
@media (max-width: 680px) {
  .statusbar .right {
    margin-left: 0;
  }
}

/* A contract ID is 56 unbreakable characters. At 467px it set the width of its
   card, then the grid, then the whole shell, and every page scrolled sideways
   on a phone — which the SOW says the assessor may be using. Mono strings that
   are addresses wrap; they are read in pieces anyway. */
.id,
.row-id,
.contract-card .id,
.id.mono {
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* Grid blowout. `main.main` and the page sections are grids with no explicit
   column, so their implicit track sized to the widest min-content on the page
   — a 56-character contract address — and every ancestor inherited that width.
   `minmax(0, 1fr)` lets a track be narrower than its content, which is what
   allows the address to wrap instead of setting the width of the site.

   This is why the two pages that overflowed were the two with a full contract
   ID rendered outside a scroll container. */
main.main,
.content,
.stack,
.card,
.contract-card {
  grid-template-columns: minmax(0, 1fr);
}

/* Sections are grid items of `main`; without this they size to min-content and
   re-create the blowout one level down. */
.main > section {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

/* Ledger keys and Wasm hashes are long unbreakable base64 run inline through
   prose. They are read in pieces, so they may break anywhere rather than set
   the width of the paragraph that contains them. */
.mono {
  overflow-wrap: anywhere;
}

/* Below the two-column breakpoint the sidebar is a drawer (Rakha, #697; taken
   2026-11-29). The old horizontal tab row scrolled Tools and Settings off the
   screen. Menu opens the drawer; the backdrop and Escape close it. Inside, the
   groups and labels are the desktop sidebar's, every item visible. */
.nav-toggle,
.nav-backdrop {
  display: none;
}
@media (max-width: 959px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    margin: 12px 16px 0;
    padding: 8px 14px;
    border: 1px solid var(--rule);
    border-radius: 100vw;
    background: var(--surface);
    color: var(--ink);
    font: 400 14px/1 var(--sans);
    cursor: pointer;
  }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(15, 15, 15, 0.4);
  }
  .nav-backdrop[hidden] {
    display: none;
  }
  .sidebar {
    position: fixed;
    z-index: 21;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(280px, 86vw);
    padding: 20px 16px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 160ms ease-out;
    visibility: hidden;
  }
  body.nav-open .sidebar {
    transform: none;
    visibility: visible;
  }
  .sidebar nav,
  .nav-group {
    display: grid;
    gap: 4px;
  }
  .sidebar .nav-section {
    display: block;
  }
  .nav-item {
    white-space: normal;
  }
}

/* The landing's bands carry their own vertical rhythm, so `main`'s top padding
   is spacing the page twice. It was invisible while the first section after
   the hero was light; now that the blast-radius band leads and is dark, it
   showed as a 32px cream stripe between two dark blocks. */
.landing main {
  padding-block-start: 0;
}

/* Dashboard type, consolidated ---------------------------------------------
   The dashboard never had the rework the marketing pages got, and the audit
   on 2026-09-26 said so in numbers: FOURTEEN distinct type sizes across
   twenty-three size-and-weight combinations, and ten to twenty bold elements
   per page, against five sizes and zero bold on the marketing surface.

   Six sizes, all weight 400. Hierarchy is size and colour — the same rule the
   rest of the site is held to by `check-design.mjs`, now extended here.

   Two things this also fixes, both of which the audit found independently:
   nothing functional renders below 12px any more (the floor for legibility is
   11px, and 10.5px labels were failing it), and `.stat-figure` no longer means
   two different sizes depending on which page it lands on. */
body.app {
  --d-figure: 40px;
  --d-h1: 28px;
  --d-h2: 20px;
  --d-lead: 16px;
  --d-body: 14px;
  --d-label: 12px;
}

body.app h1,
body.app h1.page {
  font-size: var(--d-h1);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.0125em;
}
body.app h2,
body.app h2.section {
  font-size: var(--d-h2);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
body.app h3 {
  font-size: var(--d-h2);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
body.app .stat-figure {
  font-size: var(--d-figure);
  font-weight: 400;
}
/* A word, not a figure: `archived` at the numeric size overflows its cell. */
body.app .stat-expired .stat-figure,
body.app .expired-headline {
  font-size: var(--d-h2);
}
body.app p,
body.app li,
body.app .muted {
  font-size: var(--d-lead);
  /* 72ch of Inter renders as roughly 97 characters, which the audit measured
     on seven of eight pages. `ch` is the advance of `0`, not the average
     glyph, so the unit promises more than it delivers. */
  max-width: 54ch;
}
body.app p.lead {
  font-size: var(--d-lead);
  max-width: 54ch;
}
body.app .small,
body.app .small.muted,
body.app .stat-caption,
body.app dt,
body.app dd,
body.app td,
body.app .nav-item,
body.app button,
body.app summary,
body.app .name {
  font-size: var(--d-body);
  font-weight: 400;
}
body.app footer.site p,
body.app footer.site a,
body.app .terminal,
body.app .sidebar-foot,
body.app .status-item,
body.app .chip,
body.app .stat-label,
body.app .field-label,
body.app th,
body.app .id,
body.app .brand-sub,
body.app .nav-section {
  font-size: var(--d-label);
  font-weight: 400;
}
body.app .brand-name {
  font-size: var(--d-lead);
  font-weight: 400;
}

/* Emphasis by colour, never by weight — the same rule the documentation
   surface follows. `strong` keeps its meaning for a screen reader. */
body.app strong,
body.app b {
  font-weight: inherit;
  color: var(--ink);
}
/* The active nav item was 600 against 400. It already carries a cream fill
   and pine text, so only the weight had to go — overriding the colour as
   well made it cream on cream, which the contrast probe caught at 1:1. */
body.app .nav-item.active {
  font-weight: 400;
}

/* Chart annotations, on the same 12px step as every other label. They were
   11px, which sits on the legibility floor rather than clear of it, and the
   audit read them as body text below 12px. Checked against the decay chart:
   at 12px the band labels, step labels and axis still clear their marks. */
body.app svg text {
  font-size: var(--d-label);
}

/* A bordered box whose contents touch the border reads as a rendering fault.
   The audit found this on every table on the site. */
body.app .table-wrap {
  padding: 4px;
}

/* On a phone the footer text ran flush to both edges — measured at left 0,
   right 0 at 390px. Content does not touch the screen. */

/* Alert preferences. Weight 400, existing sizes, no new colour token.
   The off track uses the approved input border, rgba(15, 15, 15, 0.5),
   not a new custom property. */
body.app .alerts {
  font-synthesis: none;
  min-width: 0;
}
body.app .alerts .fine {
  font-size: var(--d-label);
  color: var(--ink-3);
  max-width: 62ch;
}
body.app .alerts .pref-title,
body.app .alerts .email-to {
  font-size: var(--d-body);
  font-weight: 400;
  color: var(--ink);
  overflow-wrap: anywhere;
}
body.app .alerts .email-to {
  font-family: var(--sans);
}
body.app .alerts .panel {
  padding: 20px 22px;
}
body.app .alerts .pref-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  min-width: 0;
}
body.app .alerts .pref-copy,
body.app .alerts .req-row {
  min-width: 0;
}
body.app .alerts .req-row {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
body.app .alerts .alert-switch {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font-weight: 400;
}
body.app .alerts .alert-switch .track {
  display: flex;
  align-items: center;
  width: 36px;
  height: 20px;
  padding: 0 3px;
  border-radius: 100vw;
  background: var(--pine);
  box-sizing: border-box;
}
body.app .alerts .alert-switch[aria-checked='false'] .track {
  background: var(--paper);
  border: 1px solid rgba(15, 15, 15, 0.5);
  justify-content: flex-start;
}
body.app .alerts .alert-switch[aria-checked='true'] .track {
  justify-content: flex-end;
}
body.app .alerts .alert-switch .knob {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  display: block;
}
body.app .alerts .alert-switch[aria-checked='false'] .knob {
  background: var(--ink);
}
body.app .alerts .switch-word {
  font-family: var(--mono);
  font-size: var(--d-label);
  font-weight: 400;
}
body.app .alerts .switch-word[data-on='true'] {
  color: var(--ink);
}
body.app .alerts .switch-word[data-on='false'],
body.app .alerts .switch-word[data-on='saving'] {
  color: var(--ink-3);
}
body.app .alerts .mark-incomplete {
  display: inline-block;
  width: 9px;
  height: 2px;
  background: var(--ink-2);
  outline: 1px solid var(--rule);
  vertical-align: middle;
}

/* /allowance/ (PH2-E3-05, components.md § "B, C, D"). The standing line is one
   sentence and at most one chip; the review panel is label-over-value lines on
   hairlines, and its cap is the page's only serif number. */
.standing-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  max-width: 62ch;
  margin: 0;
  color: var(--ink-2);
}
.review-lines {
  margin: 0;
  display: grid;
}
.review-lines > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.review-lines dt {
  color: var(--ink-3);
  font-size: 12px;
}
.review-lines dd {
  margin: 0;
  min-width: 0;
}
.review-lines dd.lines {
  display: grid;
  gap: 4px;
}
.cap-figure {
  font: 400 20px/1.3 var(--serif);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cap-stroops {
  font-size: 12px;
  color: var(--ink-3);
}
.addr {
  overflow-wrap: anywhere;
}
#autopilot-rows td.mono {
  white-space: nowrap;
}
.crit-ink {
  color: var(--crit-ink);
}
/* Step D is a `.stack` (display: grid), which beats the UA's [hidden] rule.
   It must stay out of the page until a matching read-back (DES, #654). */
#autopilot-step[hidden] {
  display: none;
}
#hosted-actions {
  max-width: 200px;
}
.stop-section {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
@media (max-width: 600px) {
  .review-lines > div {
    grid-template-columns: minmax(0, 1fr);
  }
  #approve-button {
    width: 100%;
  }
}
/* The result replaces the sign button after an approve (DES, #660). `.row`
   is flex and would beat [hidden]. */
#sign-row[hidden],
#sign-help[hidden] {
  display: none;
}
/* Step D at phone width: each row stacks label over value, like the review
   panel, so the budget fields are never off screen (DES, #660). */
@media (max-width: 640px) {
  #autopilot-rows table,
  #autopilot-rows tbody,
  #autopilot-rows tr,
  #autopilot-rows td {
    display: block;
  }
  #autopilot-rows thead {
    display: none;
  }
  #autopilot-rows tr {
    padding: 12px 0;
    border-top: 1px solid var(--rule);
  }
  #autopilot-rows td {
    padding: 4px 12px;
    border: 0;
  }
  #autopilot-rows td::before {
    content: attr(data-label);
    display: block;
    font: 400 12px/1.6 var(--sans);
    color: var(--ink-3);
  }
  #autopilot-rows td.mono {
    white-space: normal;
  }
  #autopilot-rows td:first-child {
    overflow-wrap: anywhere;
  }
}

/* ==== Dashboard revamp (components.md § "Dashboard revamp", 2026-11-24) ==== */
/* Dashboard revamp reference, every screen. Loaded after
   alert-preferences.css (the shell) and autopilot-approve.css (buttons, mono).
   No colour, face, or weight is introduced here. */

/* The site token (apps/web/src/styles.css); templates/base.css has no copy. */

main.main.overview {
  max-width: none;
}

.ov-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: end;
  justify-content: space-between;
}

/* The one dominant element: the contract that needs attention first. */
.next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: end;
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--rule);
}

.next .label {
  font: 400 12px/1.4 var(--sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.next .next-figure {
  font: 400 72px/1 var(--serif);
  letter-spacing: -0.02em;
  color: var(--warn-ink);
}

.next .next-unit {
  font: 400 20px/1 var(--serif);
  color: var(--ink-2);
  margin-left: 8px;
}

.next .who {
  font: 400 20px/1.3 var(--serif);
}

.next .caption {
  color: var(--ink-2);
}

/* Four small facts. Space separates them; no boxes. */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.fact-cell {
  display: grid;
  gap: 4px;
  align-content: start;
}

.fact-cell .k {
  font: 400 12px/1.4 var(--sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fact-cell .v {
  font: 400 28px/1.15 var(--serif);
}

.fact-cell .s {
  font-size: 13px;
  color: var(--ink-2);
}

.block {
  display: grid;
  gap: 12px;
  padding-top: 28px;
}

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

/* The contracts list. One line per contract; the whole row opens the panel. */
table.list {
  width: 100%;
  border-collapse: collapse;
}

table.list th {
  text-align: left;
  font: 400 12px/1.4 var(--sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--rule-strong);
}

table.list td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
  white-space: nowrap;
}

table.list td.num,
table.list th.num {
  text-align: right;
}

table.list tr.open td {
  background: rgba(15, 15, 15, 0.04);
}

table.list .name {
  display: grid;
  gap: 2px;
}

table.list .id {
  font: 400 12px/1.3 var(--mono);
  color: var(--ink-3);
}

.chev {
  color: var(--ink-3);
}

table.list .chip {
  font-size: 12px;
}

/* Recent activity: one line per job. */
.activity {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.activity .when {
  font: 400 12px/1.6 var(--mono);
  color: var(--ink-3);
}

/* The side panel. Opens because the person asked; no slide-in. */
.with-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100%;
}

body.panel-open .with-panel {
  grid-template-columns: minmax(0, 1fr) 380px;
}

/* Inside the narrow panel each job stacks. */
.panel-side .activity li {
  grid-template-columns: 1fr auto;
}

.panel-side .activity .when {
  grid-column: 1 / -1;
}

.panel-side {
  border-left: 1px solid var(--rule);
  background: var(--paper);
  padding: 24px;
  display: grid;
  gap: 20px;
  align-content: start;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.close {
  font: 400 14px/1 var(--sans);
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 100vw;
  padding: 8px 14px;
  color: var(--ink);
}

.kv {
  margin: 0;
  display: grid;
}

.kv > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
}

.kv dt {
  color: var(--ink-3);
}

.kv dd {
  margin: 0;
}

.panel-h {
  font: 400 12px/1.4 var(--sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .next {
    grid-template-columns: 1fr;
  }

  .next .next-figure {
    font-size: 56px;
  }

  .sidebar-foot {
    display: none;
  }

  main.main.overview {
    padding: 24px 16px;
  }

  table.list .hide-m {
    display: none;
  }

  .activity li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .activity .when {
    grid-column: 1 / -1;
  }

  body.panel-open .with-panel {
    grid-template-columns: 1fr;
  }

  .panel-side {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
}

/* ---- Shared by the other revamp screens ---- */

.next .next-figure.ink {
  color: var(--ink);
}

.next .next-figure.ok {
  color: var(--ok-ink);
}

.fact-cell .v.mono-v {
  font: 400 20px/1.4 var(--mono);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.app a.filter {
  padding: 7px 14px;
  border-radius: 100vw;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

body.app a.filter.active {
  border-color: var(--ink);
  color: var(--ink);
}

.filter .mono {
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 4px;
}

.search {
  padding: 10px 14px;
  border: 1px solid rgba(15, 15, 15, 0.5);
  border-radius: 6px;
  background: var(--paper);
  font: 400 14px/1.2 var(--sans);
  color: var(--ink);
  min-width: 0;
}

.search.mono {
  font-family: var(--mono);
}

.scan-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scan-row .wide {
  flex: 1 1 360px;
}

.muted-cell {
  color: var(--ink-3);
}

.when-cell {
  font-size: 12px;
  color: var(--ink-3);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
}

.chart-wrap {
  margin: 0;
  display: grid;
  gap: 8px;
  padding-top: 24px;
}

.chart {
  width: 100%;
  height: auto;
}

.chart .t {
  font: 400 12px var(--mono);
  fill: var(--ink-2);
}

.chart .band {
  stroke: var(--warn);
  stroke-width: 1;
}

.chart .line {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.5;
}

.chart .proj {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.chart .dot {
  fill: var(--pine);
}

.kv.wide-kv {
  max-width: 640px;
}

.kv.wide-kv > div:last-child {
  border-bottom: 1px solid var(--rule);
}

.toggles {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
}

.toggles li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.toggles.fixed li {
  grid-template-columns: 1fr;
  color: var(--ink-2);
}

.toggle {
  font: 400 12px/1 var(--mono);
  padding: 6px 12px;
  border-radius: 100vw;
  border: 1px solid var(--rule-strong);
  min-width: 36px;
  text-align: center;
}

.toggle.on {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--surface);
}

.signin-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.empty {
  display: grid;
  gap: 14px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

@media (max-width: 760px) {
  .toggles li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .toggles li .note {
    grid-column: 1;
    grid-row: 2;
  }

  .steps li {
    grid-template-columns: 1fr auto;
  }
}

/* Text cells may wrap; figures, times and chips do not. */
table.list td {
  white-space: normal;
}

table.list td.num,
table.list td.when-cell,
table.list td .chip {
  white-space: nowrap;
}

.fact-cell .v {
  overflow-wrap: anywhere;
}

/* ---- Blast radius: the dependency map ---- */

.graph-head {
  display: flex;
  justify-content: space-between;
  font: 400 12px/1.4 var(--sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.graph {
  width: 100%;
  height: auto;
}

.graph .edge {
  fill: none;
  stroke: var(--rule-strong);
  stroke-width: 1;
  opacity: 0.5;
}

.graph .edge.on {
  stroke: var(--pine);
  stroke-width: 2;
  opacity: 1;
}

.graph .node {
  fill: var(--paper);
  stroke: var(--rule-strong);
  stroke-width: 1;
}

.graph .node.sel {
  fill: var(--pine);
  stroke: var(--pine);
}

.graph .node.arch {
  fill: var(--ink);
  stroke: var(--ink);
}

.graph .n {
  font: 400 14px var(--sans);
  fill: var(--ink);
}

.graph .d {
  font: 400 12px var(--mono);
  fill: var(--ink-2);
}

.graph .inv {
  fill: var(--surface);
}

.graph .d.inv {
  fill: rgba(252, 249, 248, 0.78);
}

.graph .dim-node {
  opacity: 0.5;
}

.graph .s-ok {
  fill: var(--ok);
}

.graph .s-warn {
  fill: var(--warn);
}

.graph .s-und {
  fill: none;
  stroke: var(--und);
  stroke-width: 2;
}

.graph .s-exp {
  fill: var(--ink);
}

/* ---- TTL decay ---- */

.chart-card {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.chart-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: end;
}

.chart-top .label {
  font: 400 12px/1.4 var(--sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sel-figure {
  font: 400 36px/1.1 var(--serif);
  color: var(--ok-ink);
}

.sel-unit {
  color: var(--ink-2);
}

.legend {
  display: flex;
  gap: 16px;
  font: 400 12px/1 var(--mono);
  color: var(--ink-2);
}

.legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.legend i {
  display: inline-block;
}

.lg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pine);
}

.lg-ext {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--pine);
  background: var(--surface);
}

.lg-proj {
  width: 18px;
  border-top: 2px dashed var(--sage);
}

.chart.big .grid {
  stroke: var(--rule);
  stroke-width: 1;
}

.chart.big .future {
  fill: rgba(15, 15, 15, 0.03);
}

.chart .warn-b {
  stroke: var(--warn);
  stroke-dasharray: 2 4;
}

.chart .act-b,
.spark .act-b {
  stroke: var(--warn);
  stroke-width: 1;
}

.chart .band-t {
  fill: var(--warn-ink);
}

.chart .now {
  stroke: var(--ink-3);
  stroke-width: 1;
}

.chart .now-t {
  fill: var(--ink-2);
}

.chart .step {
  stroke: var(--pine);
  stroke-width: 1.5;
}

.chart .ext {
  fill: var(--surface);
  stroke: var(--pine);
  stroke-width: 2;
}

.chart .ext-t {
  fill: var(--pine);
}

.chart .tip rect {
  fill: var(--paper);
  stroke: var(--rule-strong);
}

.chart .tt {
  font: 400 13px var(--sans);
  fill: var(--ink);
}

.chart .tt.d {
  font: 400 12px var(--mono);
  fill: var(--ink-2);
}

.strips {
  list-style: none;
  margin: 0;
  padding: 0;
}

.strip {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 110px 110px;
  gap: 16px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid var(--rule);
}

.strip.open {
  background: rgba(15, 15, 15, 0.04);
}

.strip .name {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.spark {
  width: 100%;
  height: 44px;
  display: block;
}

.spark .line {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.5;
}

.spark .dot {
  fill: var(--pine);
}

.num-cell {
  text-align: right;
}

.end-cell {
  color: var(--ink-2);
}

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

  .strip .spark-cell {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .strip .end-cell {
    display: none;
  }

  .legend {
    display: none;
  }
}

/* Sparklines stretch to their cell; strokes keep their width. */
.spark line,
.spark polyline {
  vector-effect: non-scaling-stroke;
}

/* ---- Dashboard revamp, site glue (WEBF) ---- */
/* A link that looks like the button beside it. */
a.pill {
  display: inline-block;
  font: 500 14px/1 var(--sans);
  white-space: nowrap;
  padding: 12px 20px;
  border-radius: 100vw;
  border: 1px solid var(--pine);
  background: var(--pine);
  color: var(--surface);
  text-decoration: none;
}
a.pill.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
/* A value whose API route is not built yet: the words, never a zero. */
.unavailable,
.fact-cell .v.unavailable {
  font: 400 14px/1.6 var(--sans);
  color: var(--ink-3);
}
button.linkish {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
table.list tbody tr {
  cursor: pointer;
}
table.list tbody tr:hover td {
  background: rgba(15, 15, 15, 0.03);
}
/* `.stack`, `.facts` and the panel are grid boxes; [hidden] must still hide them. */
#ov-signed-out[hidden],
#ov-add[hidden],
#ov-summary[hidden],
#ov-actions[hidden],
#side-panel[hidden] {
  display: none;
}
.with-panel > main.main {
  min-width: 0;
}
main.main.overview {
  max-width: none;
  margin: 0;
}
@media (max-width: 760px) {
  .sidebar-foot {
    display: none;
  }
}
.ov-head h1 {
  margin: 0;
  font: 400 var(--step-3)/1.12 var(--serif);
  letter-spacing: -0.02em;
}
.ov-head {
  margin-bottom: 8px;
}
main.overview h2,
.panel-side h2 {
  margin: 0;
  font: 400 var(--step-2)/1.2 var(--serif);
  letter-spacing: -0.015em;
}
/* The revamp spaces blocks itself; the prose rule `p + p` adds a gap here. */
main.overview p + p,
.panel-side p + p {
  margin-top: 0;
}
.scan-row input[type='text'] {
  width: auto;
  flex: 0 1 220px;
}
.scan-row input[type='text'].wide {
  flex: 1 1 360px;
}
/* `body.app p` sets the prose size and measure; the revamp's labels, figures
   and notes are not prose, so they restate theirs at the same specificity. */
body.app main.overview p,
body.app .panel-side p {
  max-width: none;
}
body.app .panel-h,
body.app .next .label,
body.app .fact-cell .k,
body.app .chart-top .label {
  font-size: 12px;
}
body.app .fact-cell .s {
  font-size: 13px;
}
body.app .note,
body.app .fact-cell .v.unavailable,
body.app .unavailable {
  font-size: 14px;
}
body.app .next .who {
  font-size: 20px;
}
body.app .fact-cell .v {
  font-size: 28px;
}
.ov-head > div:first-child {
  display: grid;
  gap: 8px;
}
#cl-body[hidden] {
  display: none;
}
#cl-body {
  display: grid;
  gap: 16px;
}
.toolbar .search {
  width: 260px;
  max-width: 100%;
}
/* An empty figure: the em dash in the sans face (DES, #670). */
.none {
  font-family: var(--sans);
  color: var(--ink-3);
}
body.app .panel-links,
body.app .panel-links a,
body.app .panel-links button {
  font-size: 14px;
}
/* One line on a phone: the cadence note stays on desktop only (DES, #670). */
@media (max-width: 760px) {
  .statusbar .status-item.dim {
    display: none;
  }
}
body.app a.filter {
  font-size: 14px;
}
#al-flow > summary {
  font: 400 var(--step-2)/1.2 var(--serif);
  color: var(--ink);
  padding: 8px 0;
}
.al-flow-body {
  padding-top: 16px;
  gap: 28px;
}
/* `.main > section` sets one column for blowout safety; the facts row keeps four. */
.main > section.facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.main > section.next {
  grid-template-columns: minmax(0, 1fr) auto;
}
@media (max-width: 760px) {
  .main > section.facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .main > section.next {
    grid-template-columns: minmax(0, 1fr);
  }
}
body.app .fact-cell .v.mono-v {
  font-size: 20px;
}

/* Blast radius map: nodes are the controls. */
#br-add[hidden],
#br-next[hidden],
#br-map[hidden],
#br-status[hidden] {
  display: none;
}
.graph.map {
  display: block;
  max-width: 716px;
}
.graph.map [data-select] {
  cursor: pointer;
}
.graph.map [data-select]:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}
.graph.map .dim-node:hover {
  opacity: 0.8;
}
#br-add textarea {
  min-height: 96px;
}
/* "Copy CLI command" is a pill, not the small inline copy control. */
button.secondary.copy {
  font: 500 14px/1 var(--sans);
  padding: 12px 20px;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}
button.secondary.copy {
  border-radius: 100vw;
}
/* On a phone the map keeps a readable size and scrolls sideways in its box. */
#br-svg {
  overflow-x: auto;
}
@media (max-width: 760px) {
  .graph.map {
    min-width: 560px;
  }
}
/* Alerts, revamped: one line per switch; the rules fold under "How alerts work". */
body.app .alerts .toggles li.pref-row {
  grid-template-columns: minmax(0, 1fr) auto auto 44px;
  column-gap: 16px;
  align-items: center;
  padding: 8px 0;
  border-top: 0;
}
body.app .alerts .toggles li.pref-row .pref-status:empty,
body.app .alerts .toggles li.pref-row .pref-extra:empty {
  display: none;
}
body.app .alerts .toggles li.pref-row .pref-status,
body.app .alerts .toggles li.pref-row .pref-extra {
  grid-column: 1 / -1;
}
body.app .alerts .toggles li.req-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 0;
}
body.app .alerts .pref-title {
  font: 400 16px/1.4 var(--sans);
  margin: 0;
}
body.app .alerts .alerts-how summary {
  font: 400 20px/1.3 var(--serif);
}
body.app .alerts .alerts-how .kv dd {
  font-size: 14px;
}
@media (max-width: 760px) {
  body.app .alerts .toggles li.pref-row {
    grid-template-columns: minmax(0, 1fr) auto 44px;
  }
  body.app .alerts .toggles li.pref-row > .note:not(.pref-status) {
    grid-column: 1;
    grid-row: 2;
  }
}
#email-section[hidden] {
  display: none;
}
/* Below the sidebar breakpoint the sidebar is a bar: its row takes only its
   content, and the page row takes the rest of the viewport (DES QA). */
@media (max-width: 959px) {
  .shell {
    grid-template-rows: auto minmax(0, 1fr);
  }
}
#al-facts[hidden] {
  display: none;
}
body.app .al-how summary {
  font: 400 20px/1.3 var(--serif);
}
/* TTL decay: one reading, a dot, and a dashed projection; never a solid line. */
#td-chart[hidden],
#td-all[hidden],
#td-status[hidden] {
  display: none;
}
.spark .proj {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}
.spark .pt {
  stroke: var(--pine);
  stroke-width: 7;
  stroke-linecap: round;
}
.strip[data-open] {
  cursor: pointer;
}
.strip[data-open]:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: -2px;
}
body.app .strips li.strip,
body.app .strips li.strip p {
  max-width: none;
}
.chart-wrap {
  overflow-x: auto;
}
@media (max-width: 760px) {
  .chart.big {
    min-width: 640px;
  }
}
body.app p.legend {
  font: 400 12px/1 var(--mono);
  max-width: none;
}
#stop-section[hidden] {
  display: none;
}

/* Activity: room between the pills and the list, as on Contracts' toolbar. */
body.app #ac-filters {
  margin-bottom: 24px;
}
.only-m {
  display: none;
}
.nowrap,
body.app table.list td.nowrap {
  white-space: nowrap;
}
.identity .mono {
  font-size: 12px;
  white-space: nowrap;
}
body.panel-open #ac-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) {
  table.list .only-m {
    display: inline;
  }
  /* Long names end in an ellipsis rather than pushing the page wider than the phone. */
  body.app table.list td.clip {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
/* Activity panel steps: a narrower label column so "charged 141,960" fits beside its tx link. */
#side-panel .steps li {
  grid-template-columns: 84px minmax(0, 1fr) auto;
  column-gap: 10px;
}

/* Extend now (option A). A native dialog: the confirmation is a decision, so
   it takes focus and Escape cancels. No slide, no fade. */
dialog.extend-now {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 24px;
  box-sizing: border-box;
}

dialog.extend-now::backdrop {
  background: rgba(15, 15, 15, 0.32);
}

dialog.extend-now > div {
  display: grid;
  gap: 16px;
}

dialog.extend-now h2 {
  margin: 0;
  font: 400 var(--step-2) / 1.15 var(--serif);
  overflow-wrap: anywhere;
}

dialog.extend-now p {
  margin: 0;
}

dialog.extend-now .kv > div {
  grid-template-columns: 120px minmax(0, 1fr);
}

dialog.extend-now .kv .total {
  font-weight: 600;
  border-top-color: var(--rule-strong);
}

.warn-line {
  color: var(--warn-ink);
}

@media (max-width: 480px) {
  dialog.extend-now .kv > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Rename in the side panel: the name with a quiet link beside it, swapped
   in place for a one-field form. */
.name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.name-line h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.name-line .rename {
  font-size: 14px;
  color: var(--ink-2);
}

.rename-form {
  display: grid;
  gap: 10px;
  margin-bottom: 6px;
}

.rename-form input {
  width: 100%;
  box-sizing: border-box;
}

/* A prompt: a message that blocks the next step, with its one action (DES,
   /allowance/ fix spec A, 2026-11-28). Full ink, never muted; muted text
   stays for explanations. */
.prompt {
  background: var(--paper);
  border: 1px solid rgba(15, 15, 15, 0.16);
  border-left: 3px solid var(--sage);
  padding: 12px 16px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.prompt p {
  margin: 0;
  color: var(--ink);
  flex: 1 1 240px;
}
.prompt-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.field-error {
  color: var(--ink);
  margin: 0;
}
.field-error:empty {
  display: none;
}
.stepper {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(15, 15, 15, 0.16);
  border-radius: 999px;
  overflow: hidden;
}
.stepper button {
  border: 0;
  border-radius: 0;
}
.manual-rent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.stepper input {
  width: 4ch;
  text-align: center;
  border-radius: 0;
}
.stepper button {
  min-width: 44px;
}
.suffixed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cap-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}
.stepper output {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11ch;
  padding: 0 12px;
  border-left: 1px solid rgba(15, 15, 15, 0.16);
  border-right: 1px solid rgba(15, 15, 15, 0.16);
  font-family: var(--mono);
  color: var(--ink);
}
.cap-live {
  display: flex;
  flex-direction: column;
}
.cap-live-xlm {
  font-family: var(--serif);
  font-size: var(--step-2);
  color: var(--ink);
  line-height: 1.2;
}
.cap-live-stroops {
  font-size: 12px;
  color: var(--ink-2);
}
.cap-short {
  color: var(--ink);
  font-weight: 500;
}

/* Overview setup list (Rakha, #697; DES fixes 2026-11-29). Compact: one row
   per step, only the current step has an action, so the dominant figure below
   still shows on a 900px-tall screen. */
.setup {
  padding: 12px 0 4px;
}
#ov-setup[hidden] {
  display: none;
}
.setup-h {
  margin: 0 0 4px;
  font: 400 12px/1.4 var(--sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.steps.setup-steps li {
  grid-template-columns: 96px minmax(0, 1fr) auto;
  padding: 5px 0;
  align-items: baseline;
}
.steps.setup-steps .step-state {
  font-size: 12px;
  color: var(--ink-3);
}
.steps.setup-steps li.done {
  color: var(--ink-3);
}
.steps.setup-steps li.now .step-state {
  color: var(--pine);
  font-weight: 500;
}
.steps.setup-steps li.waiting {
  color: var(--ink-3);
}

/* Side panel: the status chip with "Open page →" beside it (DES, 2026-11-29). */
.panel-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
body.app a.pill.small-pill {
  padding: 4px 12px;
  font-size: 13px;
}

/* /dashboard/contract/: a page, not a pasted panel. Headline and chart on top,
   then facts | autopilot and Extend now in two columns, one on a phone. */
#ct-status[hidden],
#ct-body[hidden] {
  display: none;
}
.contract-page {
  display: grid;
  gap: 20px;
}
.contract-page .ct-top {
  display: grid;
  gap: 6px;
}
.contract-page .ct-top .name-line h2 {
  margin: 0;
  font: 400 var(--step-3)/1.12 var(--serif);
}
.contract-page .ct-top .panel-state {
  margin: 0;
}
.contract-page .ct-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.contract-page .ct-runs {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.contract-page .ct-runs .panel-h {
  margin-top: 0;
}
@media (max-width: 760px) {
  .contract-page .ct-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

/* Allowance wizard (Rakha, #697): one step shown at a time; tabs are buttons. */
.wizard-step[hidden],
#al-next[hidden],
#al-flow[hidden],
#al-how[hidden],
#al-note[hidden],
#stop-section[hidden] {
  display: none;
}
body.app button.filter {
  font: inherit;
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 100vw;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
}
body.app button.filter.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  color: var(--ink);
  font-weight: 500;
}
body.app button.filter:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.wizard-tabs {
  flex-wrap: wrap;
}

/* Signed-out views: one sentence and the scan box, never a figure. */
.signed-out {
  max-width: 44rem;
}
/* A grid item's min-width is its content's by default: the chart's SVG pushed
   the contract page wider than a phone (QA, 2026-11-29). */
.contract-page,
.contract-page > *,
.contract-page .ct-col {
  min-width: 0;
}
.contract-page .chart {
  width: 100%;
  height: auto;
}
