/* ===========================================================
   GENERATED FILE — DO NOT EDIT.
   Source:  src/parts/*.html  (the CSS: regions)
   Build:   npm run build     (src/assemble.sh --components)
   Staleness is detected and failed by src/verify.sh check 6.

   The single definition of every component's rules. Consumed by
   src/index.html and by src/masterclass/index.html, so a component
   changes in both places at once. Tokens live in build/app.css,
   which every consumer imports first.
   =========================================================== */
/* ==========================================================================
   Claude design system showcase.
   Every design value below resolves to a token from src/theme.css. Derived
   values are marked with a GAP comment and collected in the Token gaps
   section. Scope is contracted by INVENTORY.md and enforced by verify.sh.
   ========================================================================== */

/* --- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-body);
  /* GAP(font-stacks): font tokens are emitted as ONE quoted string, so the token names a
     family that does not exist and the documented stack below catches it. */
  font-family: var(--font-body-md), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-body-md);
  font-weight: var(--font-weight-body-md);
  line-height: 1.55; /* GAP(line-height): no line-height tokens exist */
  -webkit-font-smoothing: antialiased;
}


/* --- type helpers ------------------------------------------------------- */
.serif {
  font-family: var(--font-display-md), "Tiempos Headline", "EB Garamond", Garamond, "Times New Roman", serif;
  font-weight: var(--font-weight-display-md);
}
.mono {
  font-family: var(--font-code), "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--text-code);
  font-weight: var(--font-weight-code);
}
.eyebrow {
  font-family: var(--font-caption-uppercase), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-caption-uppercase);
  font-weight: var(--font-weight-caption-uppercase);
  letter-spacing: var(--tracking-caption-uppercase);
  text-transform: uppercase;
  color: var(--color-muted);
}
.caption {
  font-family: var(--font-caption), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-caption);
  font-weight: var(--font-weight-caption);
  color: var(--color-muted);
  line-height: 1.4;
}

/* --- focus ring --------------------------------------------------------- */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible,
.is-focus {
  outline: calc(var(--spacing-xxs) / 2) solid var(--color-primary-active);
  outline-offset: calc(var(--spacing-xxs) / 2);
}
.on-dark :where(a, button, input, select):focus-visible,
.on-dark .is-focus {
  outline-color: var(--color-on-dark);
}

/* --- page shell --------------------------------------------------------- */
/* The sidebar and main column carry token-derived flex bases and wrap on their
   own when the viewport can no longer fit both. That intrinsic wrap is the
   right default, but it is NOT a substitute for the breakpoints in DESIGN.md's
   Responsive Behavior table: a wrapped sidebar is still a sticky, transparent,
   full-width block lying over whatever scrolls beneath it. The explicit rules
   are at the end of this stylesheet, under "responsive chrome". */
.shell {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--spacing-xxl);
  max-width: calc(var(--spacing-section) * 15);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

/* --- sidebar (quiet chrome) --------------------------------------------- */
.sidebar {
  flex: 1 1 calc(var(--spacing-xxl) * 5);
  max-width: 100%;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  padding: var(--spacing-xl) 0 var(--spacing-xxl);
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
}
.sidebar__wordmark {
  font-family: var(--font-title-md), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-title-md);
  font-weight: var(--font-weight-title-md);
  color: var(--color-ink);
}
.spike { display: block; flex: none; color: var(--color-ink); }
/* Hidden until the mobile band turns it on; the nav is visible without it at
   every wider width, so the button is chrome for one breakpoint only. */
.sidebar__toggle {
  display: none;
  align-items: center;
  gap: var(--spacing-xs);
  margin-left: auto;
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 1px solid var(--color-stroke);
  border-radius: var(--radius-sm);
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-button), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-button);
  font-weight: var(--font-weight-button);
  cursor: pointer;
}
.sidebar__toggle:hover, .sidebar__toggle.is-hover { background: var(--color-surface-soft); }
.sidebar__toggle-bars { display: block; flex: none; }
/* The bars become a cross when the sheet is open, so one control reads as both
   affordances rather than the label alone carrying the state. */
.sidebar__toggle[aria-expanded="true"] .sidebar__toggle-bars > path:nth-child(2) { opacity: 0; }
.sidebar__nav { display: flex; flex-direction: column; gap: 0; }
.sidebar__link {
  display: block;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  text-decoration: none;
  font-family: var(--font-nav-link), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-nav-link);
  font-weight: var(--font-weight-nav-link);
  line-height: 1.4;
}
.sidebar__link:hover, .sidebar__link.is-hover { background: var(--color-surface-soft); color: var(--color-ink); }
.sidebar__link[aria-current="true"] { background: var(--color-surface-card); color: var(--color-ink); }

/* --- main + sections ---------------------------------------------------- */
.main { flex: 999 1 calc(var(--spacing-section) * 6); min-width: 0; padding: var(--spacing-xl) 0 var(--spacing-section); }
.masthead { padding: var(--spacing-xxl) 0 var(--spacing-section); }
.masthead h1 {
  margin: 0 0 var(--spacing-md);
  font-family: var(--font-display-xl), "Tiempos Headline", "EB Garamond", Garamond, "Times New Roman", serif;
  /* clamp() rather than a breakpoint: the token is the ceiling, the display-md
     token the floor, so the hero scales without a literal media condition. */
  font-size: clamp(var(--text-display-md), 7vw, var(--text-display-xl));
  font-weight: var(--font-weight-display-xl);
  letter-spacing: var(--tracking-display-xl);
  line-height: 1.05; /* GAP(line-height): no line-height tokens */
  color: var(--color-ink);
}
/* No measure cap on any of the three, by decision — see DESIGN.md, Measure, the
   single-column exception. This is the showcase's own documentation prose and it
   has nothing beside it: capped at a reading measure it left 42% of a 1087px
   column empty, which read as a layout fault rather than as pacing. The measure
   ladder still governs the components below; it does not govern annotation that
   owns the full width of a reference page.

   These three shared one px cap before, which meant three different line lengths
   — 576px is 51 characters at the masthead's 18px, 66 at the note's 14px and 74
   at the section head's 12px. That is the bug the measure tokens exist to stop,
   and it is worth knowing it was here even though the cap is now gone. */
.masthead p {
  margin: 0;
  font-size: var(--text-title-md);
  line-height: 1.55;
  color: var(--color-body);
}

.section { padding-bottom: var(--spacing-section); scroll-margin-top: var(--spacing-md); }
.section__head { margin-bottom: var(--spacing-xl); }
.section__head h2 {
  margin: var(--spacing-xs) 0 var(--spacing-xs);
  font-family: var(--font-display-md), "Tiempos Headline", "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: var(--text-display-md);
  font-weight: var(--font-weight-display-md);
  letter-spacing: var(--tracking-display-md);
  line-height: 1.15;
  color: var(--color-ink);
}
.section__head p { margin: 0; color: var(--color-muted); }

.sub {
  margin: var(--spacing-xxl) 0 var(--spacing-md);
  font-family: var(--font-title-lg), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-title-lg);
  font-weight: var(--font-weight-title-lg);
  line-height: 1.3;
  color: var(--color-ink);
}
.sub--tight { margin-top: var(--spacing-xl); }
.note { margin: 0 0 var(--spacing-md); font-size: var(--text-body-sm); line-height: 1.55; color: var(--color-muted); }

/* --- generic demo surfaces ---------------------------------------------- */
.demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  background: var(--color-canvas);
}
/* nowrap is required: .demo sets flex-wrap:wrap for the horizontal case, and
   inheriting it into a column container makes every row stretch to the tallest
   flex line instead of hugging its content. */
.demo--col { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.demo--soft { background: var(--color-surface-soft); }
.demo--plain { border: 0; padding: 0; background: none; }
.stack { display: flex; flex-direction: column; gap: var(--spacing-md); }
.stack--sm { gap: var(--spacing-xs); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-sm); }
.grid {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: repeat(auto-fill, minmax(min(calc(var(--spacing-section) * 2), 100%), 1fr));
}
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(calc(var(--spacing-section) * 3), 100%), 1fr)); }

/* labelled state permutation rows */
.perm { display: grid; gap: var(--spacing-sm); grid-template-columns: repeat(auto-fill, minmax(min(calc(var(--spacing-xxl) * 2.5), 100%), 1fr)); }
.perm__cell { display: flex; flex-direction: column; align-items: flex-start; gap: var(--spacing-xs); }
.perm__label {
  font-family: var(--font-caption-uppercase), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-caption-uppercase);
  font-weight: var(--font-weight-caption-uppercase);
  letter-spacing: var(--tracking-caption-uppercase);
  text-transform: uppercase;
  /* These labels sit on the permutation grid, which is surface-soft — one
     step off the canvas muted-soft was chosen against. */
  color: var(--color-muted);
}

/* --- global utilities --------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.on-dark { color: var(--color-on-dark); }

/* --- responsive chrome -------------------------------------------------- */
/* The three bands are DESIGN.md's Responsive Behavior table. The widths are
   registered in src/BREAKPOINTS.txt and verify.sh check 2b fails any width that
   is not; a media condition cannot read a custom property, so a breakpoint is
   the one design value that has to be written as a literal.
   Last in the file so these rules win on source order alone -- every selector
   below is one already defined above, at the same specificity. */

/* Tablet and below: the sidebar stops being a column and becomes a bar across
   the top. It has to be given an OPAQUE background at the same time. A sticky
   element that wraps to full width and keeps a transparent background paints
   its own links straight over the content scrolling underneath, which is the
   artifact this block exists to remove; verify.sh's render pass asserts it. */
@media (max-width: 1023px) {
  .shell { display: block; padding: 0 var(--spacing-md); }
  .sidebar {
    position: sticky;
    top: 0;
    /* GAP(z-index): the system tokenises no stacking order. Only two layers
       exist here -- the page, and the chrome bar over it -- so this is an order,
       not a scale. The open nav sheet needs no layer of its own: it hangs off
       the bar's bottom edge rather than competing with it. */
    z-index: 1;
    max-width: none;
    max-height: none;
    overflow: visible;
    padding: var(--spacing-sm) 0;
    background: var(--color-canvas);
    border-bottom: 1px solid var(--color-hairline);
  }
  .sidebar__brand { margin-bottom: 0; }
  /* Tablet keeps the links visible and tightens them into a wrapped row. */
  .sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--spacing-xxs);
    padding-top: var(--spacing-sm);
  }
  .main { padding-top: var(--spacing-lg); }
}

/* Mobile: the row collapses behind the toggle and opens as a full-screen cream
   sheet. The bar itself stays above the sheet so the control that opened it is
   still the control that closes it. */
@media (max-width: 767px) {
  .sidebar__toggle { display: inline-flex; }
  .sidebar__eyebrow { display: none; }
  .sidebar__nav { display: none; }
  /* Anchored to the bar rather than to the viewport. A `position: fixed; inset:
     0` sheet is a child of the bar, so it paints INSIDE the bar's stacking
     context and covers the very button that opened it -- a z-index on the bar
     cannot win against its own descendant. Hanging the sheet off the bar's
     bottom edge sidesteps the ordering question: the toggle is never underneath
     it. `100%` here is the bar's own height, so the sheet is exactly the rest of
     the viewport without anyone having to write down how tall the bar is. */
  .sidebar__nav[data-open="true"] {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 100%);
    /* Cancels .shell's gutter so the sheet reaches both edges of the screen. */
    margin-inline: calc(var(--spacing-md) * -1);
    padding: var(--spacing-md);
    flex-direction: column;
    gap: var(--spacing-xxs);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--color-surface-soft);
  }
  .sidebar__link { padding: var(--spacing-sm); }
}
/* --- 1. foundations: color ---------------------------------------------- */
.swatches { display: grid; gap: var(--spacing-md); grid-template-columns: repeat(auto-fill, minmax(min(calc(var(--spacing-section) * 2), 100%), 1fr)); }
.swatch {
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-canvas);
}
.swatch__chip { height: calc(var(--spacing-xxl) + var(--spacing-md)); }
.swatch__meta { padding: var(--spacing-sm); border-top: 1px solid var(--color-hairline); }
.swatch__name {
  display: block;
  font-family: var(--font-code), "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--text-caption);
  color: var(--color-ink);
  word-break: break-all;
}
.swatch__val { display: flex; justify-content: space-between; gap: var(--spacing-xs); margin-top: var(--spacing-xxs); font-size: var(--text-caption-uppercase); color: var(--color-muted); }
.swatch__ratio.is-low { color: var(--color-error); font-weight: var(--font-weight-caption); }

/* --- 1. foundations: type ----------------------------------------------- */
.specimen { padding: var(--spacing-md) 0; border-bottom: 1px solid var(--color-hairline-soft); }
.specimen:last-child { border-bottom: 0; }
.specimen__meta { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); margin-bottom: var(--spacing-xs); }
.specimen__tok { font-family: var(--font-code), "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-caption); color: var(--color-primary-active); }
.specimen__spec { font-size: var(--text-caption); color: var(--color-muted-soft); }
.specimen__text { margin: 0; color: var(--color-ink); }

/* --- 1. foundations: spacing + radius ----------------------------------- */
.scale__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-md); padding: var(--spacing-xxs) 0; }
.scale__key { flex: none; width: calc(var(--spacing-section) * 1.5); font-family: var(--font-code), "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-caption); color: var(--color-ink); }
/* the section bar is drawn at 3x its token, wider than a phone — let it wrap
   onto its own line rather than pushing the page sideways */
.scale__bar { height: var(--spacing-md); max-width: 100%; border-radius: var(--radius-xs); background: var(--color-primary); }
.scale__val { font-size: var(--text-caption); color: var(--color-muted); }
.radii { display: flex; flex-wrap: wrap; gap: var(--spacing-lg); }
.radius__box {
  width: calc(var(--spacing-xxl) + var(--spacing-lg));
  height: calc(var(--spacing-xxl) + var(--spacing-lg));
  background: var(--color-surface-cream-strong);
  border: 1px solid var(--color-hairline);
}
.radius__cell { display: flex; flex-direction: column; align-items: center; gap: var(--spacing-xs); }

/* --- 1. foundations: elevation ------------------------------------------ */
.elev {
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  background: var(--color-canvas);
  font-size: var(--text-body-sm);
  color: var(--color-body);
}
.elev--hairline { border: 1px solid var(--color-hairline); }
.elev--card { background: var(--color-surface-card); }
.elev--dark { background: var(--color-surface-dark); color: var(--color-on-dark); }
/* GAP(elevation): no elevation/shadow tokens. DESIGN.md documents one faint ink-at-8%
   drop shadow; reproduced here via color-mix off --color-ink. */
.elev--shadow { box-shadow: 0 1px calc(var(--spacing-xxs) - 1px) color-mix(in oklab, var(--color-ink) 8%, transparent); }


/* --- 1. foundations: focus ring + grounds -------------------------------- */
.fnd-ring-row { display: flex; flex-wrap: wrap; gap: var(--spacing-md); padding: var(--spacing-md); border-radius: var(--radius-md); }
.fnd-ring-row--canvas { background: var(--color-canvas); border: 1px solid var(--color-hairline); }
.fnd-ring-row--soft { background: var(--color-surface-soft); }
.fnd-ring-row--card { background: var(--color-surface-card); }
.fnd-ring-row--dark { background: var(--color-surface-dark); }
.fnd-ground {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: var(--text-body-sm);
  color: var(--color-body);
}
.fnd-ground code { font-family: var(--font-code), "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-caption); }
.fnd-ground--canvas { background: var(--color-canvas); border: 1px solid var(--color-hairline); }
.fnd-ground--soft { background: var(--color-surface-soft); }
.fnd-ground--card { background: var(--color-surface-card); }
.fnd-ground--strong { background: var(--color-surface-cream-strong); }
.fnd-ground--dark { background: var(--color-surface-dark); color: var(--color-on-dark-soft); }
.fnd-ground--dark code { color: var(--color-on-dark); }
.fnd-nest { margin-top: var(--spacing-sm); }
/* --- 2. layout ----------------------------------------------------------- */
/* Demo scaffolding is prefixed `lay-` so it cannot collide with another part. */
.lay-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  background: var(--color-surface-cream-strong);
  color: var(--color-body-strong);
  font-size: var(--text-caption);
  font-weight: var(--font-weight-caption);
  white-space: nowrap;
}
.lay-box--tall { min-height: var(--spacing-xxl); }
/* An item longer than the container must wrap rather than widen the page —
   nowrap is right for the short chips, wrong for the 80-char stress case. */
.lay-box--wrap { white-space: normal; max-width: 100%; text-align: center; }
.lay-box--coral { background: var(--color-primary); color: var(--color-on-primary); }

.lay-container {
  max-width: calc(var(--spacing-section) * 5);
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 1px dashed var(--color-hairline);
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  text-align: center;
  color: var(--color-muted);
  font-size: var(--text-caption);
}

.lay-stack { display: flex; flex-direction: column; }
.lay-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-sm); }
.lay-grid {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: repeat(auto-fit, minmax(min(calc(var(--spacing-section) * 1.5), 100%), 1fr));
}

.lay-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-hairline);
}
.lay-page-header__text { flex: 1 1 calc(var(--spacing-section) * 2.5); min-width: 0; }
.lay-page-header h4 {
  margin: var(--spacing-xxs) 0 var(--spacing-xxs);
  font-family: var(--font-display-sm), "Tiempos Headline", "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: var(--text-display-sm);
  font-weight: var(--font-weight-display-sm);
  letter-spacing: var(--tracking-display-sm);
  line-height: 1.2; /* GAP(line-height): no line-height tokens */
  color: var(--color-ink);
}
.lay-page-header p { margin: 0; font-size: var(--text-body-sm); color: var(--color-muted); }

/* Section header is the marketing-band counterpart to .lay-page-header above,
   and the differences are the point: display scale rather than title scale, no
   bottom hairline, no action cluster, and a centred form. Anything that needs a
   rule or a trailing button is app chrome and belongs in .lay-page-header.

   The box fills its container and the two text elements carry the measure —
   DESIGN.md's box-fill invariant. It used to be the other way round: an
   uncentred `max-width` on this box, which is a cap with no stated alignment,
   so normal flow put all the residual space on the end side and the whole
   header became a left-pinned cell. In the showcase that reads as white space,
   because a lone specimen in a demo box has nothing beside it to measure
   against. On a consumer page it sits directly above a full-width sibling and
   reads as broken: src/bootcamp/bootcamp.html rendered every one of its six
   headers 768px wide inside a 1136px column, with the .dl below it spanning
   the full width.

   `:is(h2, h3, h4)` rather than `h4`, for the same reason: in the showcase this
   component always sits under a section h2 and a sub-heading h3, but at the top
   of a real page's outline it carries the h2 itself, and an `h4` selector never
   reaches it. Both consumer pages were re-declaring this rule at their own
   heading level to work around that. */
.lay-section-header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}
.lay-section-header :is(h2, h3, h4) {
  margin: 0;
  font-family: var(--font-display-lg), "Tiempos Headline", "EB Garamond", Garamond, "Times New Roman", serif;
  /* clamp() rather than a breakpoint: display-md is the floor, display-lg the
     ceiling, so a band heading scales down without a literal media condition. */
  font-size: clamp(var(--text-display-md), 5vw, var(--text-display-lg));
  font-weight: var(--font-weight-display-lg);
  letter-spacing: var(--tracking-display-lg);
  line-height: 1.1; /* GAP(line-height): no line-height tokens */
  color: var(--color-ink);
  text-wrap: balance;
}
.lay-section-header__lede {
  margin: 0;
  font-size: var(--text-title-md);
  line-height: 1.55; /* GAP(line-height): no line-height tokens */
  color: var(--color-body);
}
/* No `margin-inline: auto`: the box is full-width now, so there is no residual
   space for it to divide. The capped text elements are what get centred, and
   `align-items` is what centres them. */
.lay-section-header--centred { align-items: center; text-align: center; }

.lay-split {
  display: flex;
  align-items: stretch;
  min-height: calc(var(--spacing-section) * 1.5);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-canvas);
}
.lay-split__pane { padding: var(--spacing-md); font-size: var(--text-body-sm); color: var(--color-body); min-width: 0; }
.lay-split__pane--start { flex: 0 0 38%; background: var(--color-surface-soft); }
.lay-split__pane--end { flex: 1; }
.lay-split__bar {
  flex: none;
  width: var(--spacing-xs);
  border: 0;
  padding: 0;
  background: var(--color-hairline);
  cursor: col-resize;
}
.lay-split__bar:hover, .lay-split__bar.is-hover { background: var(--color-primary); }

.lay-shell {
  display: flex;
  min-height: calc(var(--spacing-section) * 2);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.lay-shell__rail {
  flex: 0 0 calc(var(--spacing-xxl) * 2.5);
  padding: var(--spacing-sm);
  background: var(--color-surface-dark);
  color: var(--color-on-dark-soft);
  font-size: var(--text-caption);
}
.lay-shell__rail strong { display: block; color: var(--color-on-dark); margin-bottom: var(--spacing-xs); }
.lay-shell__rail span { display: block; padding: var(--spacing-xxs) var(--spacing-xs); border-radius: var(--radius-xs); }
.lay-shell__rail span[aria-current="page"] { background: var(--color-surface-dark-elevated); color: var(--color-on-dark); }
.lay-shell__main { flex: 1; padding: var(--spacing-md); background: var(--color-canvas); font-size: var(--text-body-sm); color: var(--color-body); min-width: 0; }
.lay-shell__bar {
  padding: var(--spacing-xs) var(--spacing-md);
  border-bottom: 1px solid var(--color-hairline);
  background: var(--color-surface-soft);
  font-size: var(--text-caption);
  color: var(--color-muted);
}
/* --- 2. actions: buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  height: calc(var(--spacing-lg) + var(--spacing-md)); /* 40px per DESIGN.md */
  padding: 0 calc(var(--spacing-md) + var(--spacing-xxs)); /* 20px */
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-button), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-button);
  font-weight: var(--font-weight-button);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  /* A button is sized by its label, so a label longer than the room available
     used to push the page sideways: the 91-character case INVENTORY.md requires
     for this row overflowed the viewport at 500px, and nothing caught it until
     that case was actually rendered. The cap is the floor under every button;
     .btn--wrap below is what a genuinely long label should use. */
  max-width: 100%;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn--sm { height: var(--spacing-xl); padding: 0 var(--spacing-sm); font-size: var(--text-caption); }
.btn--lg { height: var(--spacing-xxl); padding: 0 var(--spacing-lg); font-size: var(--text-body-md); }

/* Long labels wrap rather than clip. The height token becomes a floor here --
   a wrapped label needs two lines of room and the 40px in DESIGN.md is written
   for one -- so the block padding restores the same optical inset above and
   below. Text stays centred, which is what makes two ragged lines read as one
   label. */
.btn--wrap {
  white-space: normal;
  height: auto;
  min-height: calc(var(--spacing-lg) + var(--spacing-md));
  padding-block: var(--spacing-xs);
  line-height: 1.35; /* GAP(line-height): no line-height tokens */
  text-align: center;
}

.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--color-primary-active); }
/* GAP(primary-pressed): no pressed token darker than primary-active */
.btn--primary:active, .btn--primary.is-active { background: color-mix(in oklab, var(--color-primary-active) 86%, var(--color-ink)); }

.btn--secondary { background: var(--color-canvas); color: var(--color-ink); border-color: var(--color-hairline); }
.btn--secondary:hover, .btn--secondary.is-hover { background: var(--color-surface-soft); }
.btn--secondary:active, .btn--secondary.is-active { background: var(--color-surface-cream-strong); }

.btn--ghost { background: transparent; color: var(--color-ink); }
.btn--ghost:hover, .btn--ghost.is-hover { background: var(--color-surface-card); }
.btn--ghost:active, .btn--ghost.is-active { background: var(--color-surface-cream-strong); }

.btn--danger { background: var(--color-error); color: var(--color-on-primary); }
/* GAP(error-active): no error-active token */
.btn--danger:hover, .btn--danger.is-hover { background: color-mix(in oklab, var(--color-error) 84%, var(--color-ink)); }
.btn--danger:active, .btn--danger.is-active { background: color-mix(in oklab, var(--color-error) 70%, var(--color-ink)); }

.btn:disabled, .btn.is-disabled {
  background: var(--color-primary-disabled);
  color: var(--color-muted);
  border-color: transparent;
  cursor: not-allowed;
}
/* The label is not dimmed while loading: on-primary is already only 3.28:1
   on the coral fill, so 90% of it drops under the floor. The spinner and
   the progress cursor carry the state. */
.btn.is-loading { cursor: progress; }

.btn--icon { width: calc(var(--spacing-lg) + var(--spacing-sm)); height: calc(var(--spacing-lg) + var(--spacing-sm)); padding: 0; border-radius: var(--radius-full); }
.btn--icon.btn--secondary { background: var(--color-canvas); border-color: var(--color-hairline); }

/* Capped and shrinkable for the same reason .btn is: a group is sized by the
   sum of its labels, and three comfortable labels are wider than a 320px phone.
   The cap is the floor -- it stops the group pushing the page sideways at any
   width -- and the mobile rule below is what keeps the labels readable instead
   of merely clipped. */
.btn-group { display: inline-flex; max-width: 100%; }
.btn-group .btn { border-radius: 0; margin-left: -1px; min-width: 0; }
.btn-group .btn:first-child { border-start-start-radius: var(--radius-md); border-end-start-radius: var(--radius-md); margin-left: 0; }
.btn-group .btn:last-child { border-start-end-radius: var(--radius-md); border-end-end-radius: var(--radius-md); }
.btn-group .btn[aria-pressed="true"] { background: var(--color-surface-cream-strong); }

/* Tighten the joined buttons at phone width. DESIGN.md's 20px button padding is
   a desktop measurement; three grouped labels only fit a 320px viewport once it
   comes down. Breakpoint registered in src/BREAKPOINTS.txt. */
@media (max-width: 767px) {
  .btn-group .btn { padding: 0 var(--spacing-xs); }
}

/* --- 2. actions: links -------------------------------------------------- */
/* Coral as text, not as a fill: --color-primary is 3.11:1 on canvas and 2.5:1
   on the strongest cream, under the floor npm run verify:render derives.
   --color-primary-active is the same hue two steps down and clears it
   everywhere (4.8:1 on canvas). DESIGN.md Colors: fills primary, text
   primary-active. */
.link { color: var(--color-primary-active); text-decoration: none; }
.link:hover, .link.is-hover { text-decoration: underline; }
.link:active, .link.is-active { color: var(--color-primary-active); text-decoration: underline; }
.link--visited, .link:visited { color: var(--color-primary-active); }
.link--standalone { display: inline-flex; align-items: center; gap: var(--spacing-xxs); font-weight: var(--font-weight-caption); }
/* A measure on a text element, which is where DESIGN.md says measure belongs.
   The px form it replaces was the same length by arithmetic — 72ch at body-md
   is 576px — but only at body-md; as a token it stays a character count. */
.prose { color: var(--color-body); }


/* --- 2. actions: split button -------------------------------------------- */
.split-btn { display: inline-flex; }
.split-btn .btn:first-child { border-start-end-radius: 0; border-end-end-radius: 0; }
.split-btn .btn:last-child {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  padding-left: var(--spacing-xs);
  padding-right: var(--spacing-xs);
  /* GAP(split-divider): no divider-on-fill token; derived from the on-primary ink */
  border-left: 1px solid color-mix(in oklab, var(--color-on-primary) 35%, transparent);
}
.split-btn--secondary .btn:last-child { border-left-color: var(--color-hairline); }
/* --- 3. forms ----------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--spacing-xxs); min-width: 0; }
.field__label {
  font-family: var(--font-title-sm), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-title-sm);
  color: var(--color-ink);
}
.field__req { color: var(--color-error); }
.field__help { font-size: var(--text-caption); color: var(--color-muted); line-height: 1.4; }
.field__msg { display: flex; align-items: center; gap: var(--spacing-xxs); font-size: var(--text-caption); line-height: 1.4; }
.field__msg--error { color: var(--color-error); }
.field__msg--ok { color: var(--color-primary-active); }

.input, .select, .textarea {
  width: 100%;
  height: calc(var(--spacing-lg) + var(--spacing-md)); /* 40px */
  padding: 0 var(--spacing-sm);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-body-md), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-body-md);
  font-weight: var(--font-weight-body-md);
  line-height: 1.55;
}
.textarea { height: auto; min-height: calc(var(--spacing-section) + var(--spacing-xs)); padding: var(--spacing-xs) var(--spacing-sm); resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--color-muted-soft); }
.input:hover, .input.is-hover { border-color: var(--color-muted-soft); }
/* text-input-focused: border shifts to coral, plus the coral-at-15% outer ring */
.input:focus, .input.is-focus, .textarea:focus, .select:focus, .select.is-focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 calc(var(--spacing-xxs) - 1px) color-mix(in oklab, var(--color-primary) 15%, transparent);
}
.input.is-error, .textarea.is-error { border-color: var(--color-error); }
.input.is-error:focus, .input.is-error.is-focus { box-shadow: 0 0 0 calc(var(--spacing-xxs) - 1px) color-mix(in oklab, var(--color-error) 15%, transparent); }
/* GAP(semantic-tint): no success-border token pairing; success hue reused from semantic scale */
.input.is-ok { border-color: var(--color-success); }
.input:disabled, .input.is-disabled { background: var(--color-surface-card); color: var(--color-muted-soft); cursor: not-allowed; }
.input:read-only:not(:disabled) { background: var(--color-surface-soft); color: var(--color-body); }
.select { appearance: none; padding-right: var(--spacing-xl); background-repeat: no-repeat; background-position: right var(--spacing-sm) center; }
.select[multiple] { height: auto; min-height: calc(var(--spacing-section) + var(--spacing-lg)); padding: var(--spacing-xs); }
.select[multiple] option { padding: var(--spacing-xxs); border-radius: var(--radius-xs); }

.affix { display: flex; align-items: stretch; border: 1px solid var(--color-hairline); border-radius: var(--radius-md); background: var(--color-canvas); overflow: hidden; }
.affix:focus-within { border-color: var(--color-primary); }
.affix__part {
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-sm);
  background: var(--color-surface-soft);
  color: var(--color-muted);
  font-size: var(--text-body-sm);
  white-space: nowrap;
}
.affix .input { border: 0; border-radius: 0; }
.affix .input:focus { box-shadow: none; }

.search { position: relative; display: flex; align-items: center; }
.search .input { padding-left: var(--spacing-xl); }
.search__icon { position: absolute; left: var(--spacing-xs); display: flex; color: var(--color-muted-soft); pointer-events: none; }

.check { display: flex; align-items: flex-start; gap: var(--spacing-xs); cursor: pointer; }
.check input { flex: none; width: var(--spacing-md); height: var(--spacing-md); margin: 0; accent-color: var(--color-primary); cursor: pointer; }
.check input[type="radio"] { border-radius: var(--radius-full); }
.check__text { font-size: var(--text-body-sm); line-height: 1.4; color: var(--color-ink); }
.check__text small { display: block; font-size: var(--text-caption); color: var(--color-muted); }
.check input:disabled, .check input:disabled + .check__text { cursor: not-allowed; color: var(--color-muted-soft); }

.switch { display: inline-flex; align-items: center; gap: var(--spacing-xs); cursor: pointer; }
.switch__track {
  position: relative;
  flex: none;
  width: calc(var(--spacing-xl) + var(--spacing-xs));
  height: var(--spacing-lg);
  border-radius: var(--radius-pill);
  background: var(--color-primary-disabled);
  transition: background-color 120ms ease;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: var(--spacing-xxs);
  left: var(--spacing-xxs);
  width: var(--spacing-md);
  height: var(--spacing-md);
  border-radius: var(--radius-full);
  background: var(--color-canvas);
  transition: transform 120ms ease;
}
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch input:checked + .switch__track { background: var(--color-primary); }
.switch input:checked + .switch__track::after { transform: translateX(var(--spacing-md)); }
.switch input:focus-visible + .switch__track { outline: calc(var(--spacing-xxs) / 2) solid var(--color-primary-active); outline-offset: calc(var(--spacing-xxs) / 2); }
.switch input:disabled + .switch__track { background: var(--color-hairline-soft); cursor: not-allowed; }

.range { width: 100%; accent-color: var(--color-primary); }
.file { font-size: var(--text-body-sm); color: var(--color-body); }
.file::file-selector-button {
  margin-right: var(--spacing-sm);
  height: var(--spacing-xl);
  padding: 0 var(--spacing-sm);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-button), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-caption);
  font-weight: var(--font-weight-button);
  cursor: pointer;
}

.fieldset { margin: 0; padding: var(--spacing-lg); border: 1px solid var(--color-hairline); border-radius: var(--radius-lg); background: var(--color-canvas); }
.fieldset legend { padding: 0 var(--spacing-xs); font-family: var(--font-title-sm), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: var(--text-title-sm); font-weight: var(--font-weight-title-sm); color: var(--color-ink); }
.form-grid { display: grid; gap: var(--spacing-md); grid-template-columns: repeat(auto-fit, minmax(min(calc(var(--spacing-section) * 2.2), 100%), 1fr)); }


/* --- 4. forms: listbox, segmented control, actions bar ------------------- */
/* Owned here because the advanced-forms part composes them; defining a
   selector in two parts is a cascade bug the collision check only warns about. */
.lb-pop {
  margin-top: calc(var(--spacing-xxs) * -1);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  box-shadow: 0 1px calc(var(--spacing-xxs) - 1px) color-mix(in oklab, var(--color-ink) 10%, transparent); /* GAP(elevation): no elevation token */
  overflow: hidden;
}
.lb-opt {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--text-body-sm);
  color: var(--color-body);
  cursor: pointer;
}
.lb-opt small { color: var(--color-muted); font-size: var(--text-caption); }
.lb-opt:hover, .lb-opt.is-hover { background: var(--color-surface-soft); color: var(--color-ink); }
/* GAP(selected-tint): no selected-surface token; derived from --color-primary */
.lb-opt[aria-selected="true"] { background: color-mix(in oklab, var(--color-primary) 10%, var(--color-canvas)); color: var(--color-ink); }
.lb-opt[aria-disabled="true"] { color: var(--color-muted-soft); cursor: not-allowed; }
.lb-empty { padding: var(--spacing-sm); font-size: var(--text-caption); color: var(--color-muted); }

.seg { display: inline-flex; max-width: 100%; padding: var(--spacing-xxs); border-radius: var(--radius-md); background: var(--color-surface-soft); }
.seg button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: var(--spacing-xxs) var(--spacing-sm);
  background: none;
  color: var(--color-muted);
  font-family: var(--font-button), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-button);
  font-weight: var(--font-weight-button);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xxs);
}
.seg button[aria-checked="true"] { background: var(--color-canvas); color: var(--color-ink); }
.seg button:hover, .seg button.is-hover { color: var(--color-ink); }
.seg button:disabled { color: var(--color-muted-soft); cursor: not-allowed; }

/* The control is capped at its container, so its segments have to be allowed to
   give way rather than summing past it; at phone width they also tighten, which
   is what keeps four segments legible at 320 instead of clipped. */
.seg button { min-width: 0; overflow: hidden; }
@media (max-width: 767px) {
  .seg button { padding: var(--spacing-xxs) var(--spacing-xs); }
}

.form-actions { display: flex; align-items: center; gap: var(--spacing-xs); padding-top: var(--spacing-md); }
.form-actions__spacer { flex: 1; }
.form-actions--sticky { border-top: 1px solid var(--color-hairline); background: var(--color-canvas); padding: var(--spacing-md) 0 0; }
/* --- 5. forms, advanced -------------------------------------------------- */
/* Reuses .field / .input / .field__label from the forms part. New roots are
   prefixed `fa-` so they cannot collide with another part's classes. */

.fa-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xxs);
  min-height: calc(var(--spacing-lg) + var(--spacing-md));
  padding: var(--spacing-xxs) var(--spacing-xs);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
}
.fa-tags:focus-within { border-color: var(--color-primary); }
.fa-tags__input { flex: 1; min-width: calc(var(--spacing-section) / 2); border: 0; background: none; color: var(--color-ink); font-family: var(--font-body-md), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: var(--text-body-sm); }
.fa-tags__input:focus { outline: none; }

.fa-track { position: relative; height: var(--spacing-xs); border-radius: var(--radius-pill); background: var(--color-hairline); }
.fa-track__fill { position: absolute; top: 0; bottom: 0; border-radius: var(--radius-pill); background: var(--color-primary); }
.fa-thumb {
  position: absolute;
  top: 50%;
  width: var(--spacing-md);
  height: var(--spacing-md);
  margin-top: calc(var(--spacing-xs) * -1);
  margin-left: calc(var(--spacing-xs) * -1);
  padding: 0;
  border: 1px solid var(--color-primary-active);
  border-radius: var(--radius-full);
  background: var(--color-canvas);
  cursor: grab;
}
.fa-scale { display: flex; justify-content: space-between; margin-top: var(--spacing-xs); font-size: var(--text-caption); color: var(--color-muted); }

.fa-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--color-hairline); border-radius: var(--radius-md); background: var(--color-canvas); overflow: hidden; }
.fa-stepper:focus-within { border-color: var(--color-primary); }
.fa-stepper__btn {
  width: calc(var(--spacing-lg) + var(--spacing-xs));
  border: 0;
  background: var(--color-surface-soft);
  color: var(--color-ink);
  font-size: var(--text-body-md);
  cursor: pointer;
}
.fa-stepper__btn:hover, .fa-stepper__btn.is-hover { background: var(--color-surface-cream-strong); }
.fa-stepper__btn:disabled { color: var(--color-muted-soft); cursor: not-allowed; }
.fa-stepper__field { width: calc(var(--spacing-xxl) + var(--spacing-md)); border: 0; background: none; color: var(--color-ink); font-family: var(--font-body-md), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: var(--text-body-md); text-align: center; }
.fa-stepper__field:focus { outline: none; }
.fa-stepper.is-error { border-color: var(--color-error); }

.fa-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xl) var(--spacing-lg);
  border: 1px dashed var(--color-hairline);
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
  text-align: center;
  color: var(--color-muted);
  font-size: var(--text-body-sm);
}
.fa-drop.is-hover { border-color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 6%, var(--color-canvas)); } /* GAP(dropzone-active): no drop-active surface */
.fa-drop[aria-disabled="true"] { color: var(--color-muted-soft); background: var(--color-surface-card); }
.fa-files { list-style: none; margin: var(--spacing-md) 0 0; padding: 0; }
.fa-file { display: flex; align-items: center; gap: var(--spacing-sm); padding: var(--spacing-xs) 0; border-bottom: 1px solid var(--color-hairline-soft); font-size: var(--text-body-sm); }
.fa-file:last-child { border-bottom: 0; }
.fa-file__name { flex: 1; min-width: 0; color: var(--color-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fa-file__meta { flex: none; color: var(--color-muted-soft); font-size: var(--text-caption); }
.fa-file__err { color: var(--color-error); font-size: var(--text-caption); }

.fa-cal { width: 100%; max-width: calc(var(--spacing-section) * 3); border: 1px solid var(--color-hairline); border-radius: var(--radius-lg); background: var(--color-canvas); overflow: hidden; }
.fa-cal__head { display: flex; align-items: center; justify-content: space-between; padding: var(--spacing-sm) var(--spacing-md); border-bottom: 1px solid var(--color-hairline); }
.fa-cal__month { font-family: var(--font-title-sm), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: var(--text-title-sm); font-weight: var(--font-weight-title-sm); color: var(--color-ink); }
.fa-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--spacing-xxs); padding: var(--spacing-sm); }
.fa-cal__dow { text-align: center; font-size: var(--text-caption-uppercase); font-weight: var(--font-weight-caption-uppercase); letter-spacing: var(--tracking-caption-uppercase); color: var(--color-muted-soft); padding-bottom: var(--spacing-xxs); }
.fa-day {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-body);
  font-family: var(--font-body-sm), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-body-sm);
  cursor: pointer;
}
.fa-day:hover, .fa-day.is-hover { background: var(--color-surface-soft); color: var(--color-ink); }
.fa-day[aria-selected="true"] { background: var(--color-primary); color: var(--color-on-primary); font-weight: var(--font-weight-title-sm); }
.fa-day[data-outside] { color: var(--color-muted-soft); }
.fa-day[aria-current="date"] { box-shadow: inset 0 0 0 1px var(--color-primary-active); }

.fa-time { display: inline-flex; align-items: center; gap: var(--spacing-xxs); padding: 0 var(--spacing-sm); height: calc(var(--spacing-lg) + var(--spacing-md)); border: 1px solid var(--color-hairline); border-radius: var(--radius-md); background: var(--color-canvas); font-family: var(--font-code), "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-code); color: var(--color-ink); }
.fa-time:focus-within { border-color: var(--color-primary); }
.fa-time__seg { padding: var(--spacing-xxs); border: 0; border-radius: var(--radius-xs); background: none; color: inherit; font: inherit; text-align: center; width: calc(var(--spacing-lg) + var(--spacing-xxs)); }
.fa-time__seg:focus { outline: none; background: var(--color-surface-cream-strong); }

.fa-otp { display: flex; gap: var(--spacing-xs); }
.fa-otp input {
  width: calc(var(--spacing-xl) + var(--spacing-xxs));
  height: calc(var(--spacing-xxl) - var(--spacing-xxs));
  padding: 0;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-code), "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--text-title-lg);
  text-align: center;
}
.fa-otp input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 calc(var(--spacing-xxs) - 1px) color-mix(in oklab, var(--color-primary) 15%, transparent); }
.fa-otp.is-error input { border-color: var(--color-error); }
.fa-otp--compact input { width: var(--spacing-xl); height: var(--spacing-xxl); font-size: var(--text-title-md); }

.fa-rating { display: inline-flex; align-items: center; gap: var(--spacing-xxs); color: var(--color-accent-amber); }
.fa-rating button { border: 0; background: none; padding: 0; color: inherit; cursor: pointer; display: inline-flex; }
.fa-rating[aria-disabled="true"] { color: var(--color-muted-soft); }
.fa-rating__text { margin-left: var(--spacing-xs); font-size: var(--text-caption); color: var(--color-muted); }
/* --- 4. navigation ------------------------------------------------------ */
.topnav {
  display: flex;
  /* DESIGN.md collapses this to a hamburger below the tablet breakpoint. With no
     breakpoint token and no media query available, the row wraps instead; the
     documented desktop height still holds as a min-height floor. */
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm) var(--spacing-lg);
  min-height: calc(var(--spacing-xl) * 2); /* 64px per DESIGN.md */
  padding: var(--spacing-xs) var(--spacing-lg);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  background: var(--color-canvas);
}
.topnav__menu { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-xxs) var(--spacing-xs); margin-left: var(--spacing-md); }
.topnav__spacer { flex: 1; }
.navlink {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  text-decoration: none;
  font-family: var(--font-nav-link), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-nav-link);
  font-weight: var(--font-weight-nav-link);
  line-height: 1.4;
}
.navlink:hover, .navlink.is-hover { color: var(--color-ink); background: var(--color-surface-soft); }
.navlink[aria-current="page"] { color: var(--color-ink); background: var(--color-surface-card); }

.sidenav { width: 100%; max-width: calc(var(--spacing-section) * 3); padding: var(--spacing-sm); border: 1px solid var(--color-hairline); border-radius: var(--radius-lg); background: var(--color-canvas); }
.sidenav ul { list-style: none; margin: 0; padding: 0; }
.sidenav__item {
  display: block;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  color: var(--color-body);
  text-decoration: none;
  font-size: var(--text-body-sm);
}
.sidenav__item:hover, .sidenav__item.is-hover { background: var(--color-surface-soft); color: var(--color-ink); }
.sidenav__item[aria-current="page"] { background: var(--color-surface-card); color: var(--color-ink); font-weight: var(--font-weight-title-sm); }
.sidenav__nested { margin-left: var(--spacing-sm); padding-left: var(--spacing-sm); border-left: 1px solid var(--color-hairline); }

.tabs { display: flex; gap: var(--spacing-xxs); }
.tabs--underline { gap: var(--spacing-lg); border-bottom: 1px solid var(--color-hairline); }
.tab {
  padding: var(--spacing-xs) calc(var(--spacing-sm) + var(--spacing-xxs)); /* 8px x 14px */
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-nav-link), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-nav-link);
  font-weight: var(--font-weight-nav-link);
  cursor: pointer;
}
.tab:hover, .tab.is-hover { color: var(--color-ink); }
.tab[aria-selected="true"] { background: var(--color-surface-card); color: var(--color-ink); }
.tabs--underline .tab {
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: var(--spacing-sm);
  margin-bottom: -1px;
  border-bottom: calc(var(--spacing-xxs) / 2) solid transparent;
}
.tabs--underline .tab[aria-selected="true"] { background: transparent; border-bottom-color: var(--color-primary); }
.tabpanel { padding: var(--spacing-lg) 0; color: var(--color-body); font-size: var(--text-body-sm); }
.tabpanel[hidden] { display: none; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-xs); list-style: none; margin: 0; padding: 0; font-size: var(--text-body-sm); }
.crumbs a { color: var(--color-muted); text-decoration: none; }
.crumbs a:hover { color: var(--color-ink); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--color-ink); font-weight: var(--font-weight-title-sm); }
.crumbs__sep { color: var(--color-muted-soft); }

.pager { display: flex; align-items: center; gap: var(--spacing-xxs); list-style: none; margin: 0; padding: 0; }
.pager__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: calc(var(--spacing-lg) + var(--spacing-xs));
  height: calc(var(--spacing-lg) + var(--spacing-xs));
  padding: 0 var(--spacing-xs);
  border-radius: var(--radius-sm);
  color: var(--color-body);
  text-decoration: none;
  font-size: var(--text-body-sm);
}
.pager__link:hover, .pager__link.is-hover { background: var(--color-surface-soft); color: var(--color-ink); }
.pager__link[aria-current="page"] { background: var(--color-surface-cream-strong); color: var(--color-ink); font-weight: var(--font-weight-title-sm); }
.pager__link[aria-disabled="true"] { color: var(--color-muted-soft); pointer-events: none; }

.menu {
  width: calc(var(--spacing-section) * 2.2);
  padding: var(--spacing-xxs);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  box-shadow: 0 1px calc(var(--spacing-xxs) - 1px) color-mix(in oklab, var(--color-ink) 8%, transparent);
}
.menu__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  width: 100%;
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-body);
  font-family: var(--font-body-md), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-body-sm);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu__item:hover, .menu__item.is-hover { background: var(--color-surface-soft); color: var(--color-ink); }
.menu__item--danger { color: var(--color-error); }
.menu__sep { height: 1px; margin: var(--spacing-xxs) 0; background: var(--color-hairline-soft); border: 0; }

.stepper { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-sm); list-style: none; margin: 0; padding: 0; }
.step { display: flex; align-items: center; gap: var(--spacing-xs); font-size: var(--text-body-sm); color: var(--color-muted); }
.step__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--spacing-lg);
  height: var(--spacing-lg);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-full);
  background: var(--color-canvas);
  font-size: var(--text-caption-uppercase);
  color: var(--color-muted);
}
.step--done .step__dot { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.step--current .step__dot { border-color: var(--color-primary); color: var(--color-primary-active); }
.step--current { color: var(--color-ink); font-weight: var(--font-weight-title-sm); }
.step--done { color: var(--color-body); }
.step__line { width: var(--spacing-xl); height: 1px; background: var(--color-hairline); }


/* --- 4. navigation: command palette + TOC nav ---------------------------- */
.cmdp {
  width: 100%;
  max-width: calc(var(--spacing-section) * 4);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  background: var(--color-canvas);
  box-shadow: 0 1px calc(var(--spacing-xxs) - 1px) color-mix(in oklab, var(--color-ink) 12%, transparent); /* GAP(elevation): no elevation token */
  overflow: hidden;
}
.cmdp__field { display: flex; align-items: center; gap: var(--spacing-sm); padding: var(--spacing-sm) var(--spacing-md); border-bottom: 1px solid var(--color-hairline); color: var(--color-muted-soft); }
.cmdp__field input { flex: 1; border: 0; background: none; color: var(--color-ink); font-family: var(--font-body-md), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: var(--text-body-md); }
.cmdp__field input:focus { outline: none; }
.cmdp__list { max-height: calc(var(--spacing-section) * 1.8); overflow-y: auto; padding: var(--spacing-xxs); }
.cmdp__group { padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-xxs); font-size: var(--text-caption-uppercase); font-weight: var(--font-weight-caption-uppercase); letter-spacing: var(--tracking-caption-uppercase); color: var(--color-muted-soft); text-transform: uppercase; }
.cmdp__item { display: flex; align-items: center; gap: var(--spacing-sm); width: 100%; padding: var(--spacing-xs) var(--spacing-sm); border: 0; border-radius: var(--radius-sm); background: none; color: var(--color-body); font-family: var(--font-body-md), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: var(--text-body-sm); text-align: left; cursor: pointer; }
.cmdp__item:hover, .cmdp__item.is-hover, .cmdp__item[aria-selected="true"] { background: var(--color-surface-soft); color: var(--color-ink); }
.cmdp__item .cmdp__hint { margin-left: auto; color: var(--color-muted); font-size: var(--text-caption); }
.cmdp__foot { display: flex; align-items: center; gap: var(--spacing-md); padding: var(--spacing-xs) var(--spacing-md); border-top: 1px solid var(--color-hairline); background: var(--color-surface-soft); font-size: var(--text-caption); color: var(--color-muted); }
.cmdp__empty { padding: var(--spacing-lg) var(--spacing-md); text-align: center; font-size: var(--text-body-sm); color: var(--color-muted); }

.tocnav { border-left: 1px solid var(--color-hairline); padding-left: var(--spacing-md); }
.tocnav a { display: block; padding: var(--spacing-xxs) 0; color: var(--color-muted); text-decoration: none; font-size: var(--text-body-sm); }
.tocnav a:hover { color: var(--color-ink); }
.tocnav a[aria-current="true"] { color: var(--color-ink); font-weight: var(--font-weight-title-sm); box-shadow: calc(var(--spacing-md) * -1 - 1px) 0 0 0 var(--color-primary); }
.tocnav__nested { margin-left: var(--spacing-md); }
/* --- 5. feedback -------------------------------------------------------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  color: var(--color-body-strong);
  font-size: var(--text-body-sm);
  line-height: 1.55;
}
.alert__icon { flex: none; display: flex; margin-top: calc(var(--spacing-xxs) / 2); }
.alert__body { flex: 1; min-width: 0; }
.alert__title { font-weight: var(--font-weight-title-sm); color: var(--color-ink); }
/* GAP(semantic-tint): no tinted semantic surface tokens; tints derived from the semantic hues */
.alert--info { background: color-mix(in oklab, var(--color-accent-teal) 12%, var(--color-canvas)); border-color: color-mix(in oklab, var(--color-accent-teal) 40%, var(--color-canvas)); }
.alert--info .alert__icon { color: color-mix(in oklab, var(--color-accent-teal) 72%, var(--color-ink)); }
.alert--success { background: color-mix(in oklab, var(--color-success) 12%, var(--color-canvas)); border-color: color-mix(in oklab, var(--color-success) 40%, var(--color-canvas)); }
.alert--success .alert__icon { color: color-mix(in oklab, var(--color-success) 66%, var(--color-ink)); }
.alert--warning { background: color-mix(in oklab, var(--color-warning) 14%, var(--color-canvas)); border-color: color-mix(in oklab, var(--color-warning) 42%, var(--color-canvas)); }
.alert--warning .alert__icon { color: color-mix(in oklab, var(--color-warning) 62%, var(--color-ink)); }
.alert--error { background: color-mix(in oklab, var(--color-error) 10%, var(--color-canvas)); border-color: color-mix(in oklab, var(--color-error) 36%, var(--color-canvas)); }
.alert--error .alert__icon { color: var(--color-error); }
.alert__close { flex: none; border: 0; background: none; padding: var(--spacing-xxs); border-radius: var(--radius-sm); color: var(--color-muted); cursor: pointer; }
.alert__close:hover { background: color-mix(in oklab, var(--color-ink) 6%, transparent); color: var(--color-ink); }

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  width: 100%;
  max-width: calc(var(--spacing-section) * 4);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-lg);
  background: var(--color-surface-dark);
  color: var(--color-on-dark);
  font-size: var(--text-body-sm);
  box-shadow: 0 1px calc(var(--spacing-xxs) - 1px) color-mix(in oklab, var(--color-ink) 20%, transparent);
}
.toast__body { flex: 1; min-width: 0; }
.toast small { display: block; color: var(--color-on-dark-soft); font-size: var(--text-caption); }
.toast__close { border: 0; background: none; color: var(--color-on-dark-soft); padding: var(--spacing-xxs); border-radius: var(--radius-sm); cursor: pointer; }
.toast__close:hover { color: var(--color-on-dark); }

.progress {
  width: 100%;
  max-width: calc(var(--spacing-section) * 4);
  height: var(--spacing-xs);
  border-radius: var(--radius-pill);
  background: var(--color-hairline);
  overflow: hidden;
}
.progress__fill { height: 100%; border-radius: var(--radius-pill); background: var(--color-primary); }
.progress--indeterminate .progress__fill { width: 40%; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

.spinner {
  display: inline-block;
  border: calc(var(--spacing-xxs) / 2) solid color-mix(in oklab, var(--color-ink) 14%, transparent);
  border-top-color: var(--color-primary);
  border-radius: var(--radius-full);
  animation: spin 700ms linear infinite;
}
.spinner--sm { width: var(--spacing-md); height: var(--spacing-md); }
.spinner--md { width: var(--spacing-lg); height: var(--spacing-lg); }
.spinner--lg { width: var(--spacing-xl); height: var(--spacing-xl); }
.spinner--on-primary { border-color: color-mix(in oklab, var(--color-on-primary) 40%, transparent); border-top-color: var(--color-on-primary); }
@keyframes spin { to { transform: rotate(360deg); } }

.skel { border-radius: var(--radius-sm); background: var(--color-hairline-soft); animation: pulse 1.6s ease-in-out infinite; }
.skel--text { height: var(--spacing-sm); }
.skel--title { height: var(--spacing-md); width: 60%; }
.skel--avatar { width: calc(var(--spacing-lg) + var(--spacing-md)); height: calc(var(--spacing-lg) + var(--spacing-md)); border-radius: var(--radius-full); }
.skel--media { height: var(--spacing-section); border-radius: var(--radius-md); }
@keyframes pulse { 50% { opacity: 0.45; } }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xxl) var(--spacing-lg);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
  text-align: center;
}
.empty__icon { color: var(--color-muted-soft); }
.empty h4 { margin: 0; font-family: var(--font-title-lg), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: var(--text-title-lg); font-weight: var(--font-weight-title-lg); color: var(--color-ink); }
.empty p { margin: 0; max-width: calc(var(--spacing-section) * 3.5); color: var(--color-muted); font-size: var(--text-body-sm); }


/* --- 5. feedback: meter, error/loading state, notification badge ---------- */
.meter { width: 100%; max-width: calc(var(--spacing-section) * 3); }
.meter__track { height: var(--spacing-sm); border-radius: var(--radius-pill); background: var(--color-hairline); overflow: hidden; }
.meter__fill { height: 100%; border-radius: var(--radius-pill); background: var(--color-accent-teal); }
/* GAP(meter-levels): no semantic meter-level tokens; reuses the semantic hues */
.meter__fill--warn { background: var(--color-warning); }
.meter__fill--over { background: var(--color-error); }
.meter__row { display: flex; justify-content: space-between; margin-bottom: var(--spacing-xxs); font-size: var(--text-caption); color: var(--color-muted); }

.state-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xl) var(--spacing-lg);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  background: var(--color-canvas);
  text-align: center;
}
.state-block__icon { color: var(--color-error); }
.state-block h4 { margin: 0; font-family: var(--font-title-lg), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: var(--text-title-lg); font-weight: var(--font-weight-title-lg); color: var(--color-ink); }
.state-block p { margin: 0; max-width: calc(var(--spacing-section) * 3.5); font-size: var(--text-body-sm); color: var(--color-muted); }
.state-block details { width: 100%; max-width: calc(var(--spacing-section) * 3.5); text-align: left; }
.state-block summary { cursor: pointer; font-size: var(--text-caption); color: var(--color-muted); }
.state-block pre { margin: var(--spacing-xs) 0 0; padding: var(--spacing-sm); border-radius: var(--radius-sm); background: var(--color-surface-dark); color: var(--color-on-dark-soft); font-family: var(--font-code), "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-caption); overflow-x: auto; }
.state-inline { display: inline-flex; align-items: center; gap: var(--spacing-xxs); font-size: var(--text-caption); color: var(--color-error); }

.notif { position: relative; display: inline-flex; }
.notif__count {
  position: absolute;
  top: calc(var(--spacing-xxs) * -1);
  right: calc(var(--spacing-xxs) * -1);
  min-width: var(--spacing-md);
  height: var(--spacing-md);
  padding: 0 var(--spacing-xxs);
  border-radius: var(--radius-pill);
  background: var(--color-error);
  color: var(--color-on-primary);
  font-family: var(--font-caption-uppercase), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-caption-uppercase);
  font-weight: var(--font-weight-caption-uppercase);
  line-height: var(--spacing-md);
  text-align: center;
}
.notif__count--dot { min-width: var(--spacing-xs); height: var(--spacing-xs); padding: 0; }
/* --- 6. containment ----------------------------------------------------- */
.card {
  border-radius: var(--radius-lg);
  background: var(--color-surface-card);
  padding: var(--spacing-xl);
  color: var(--color-body);
}
.card h4 { margin: 0 0 var(--spacing-xs); font-family: var(--font-title-md), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: var(--text-title-md); font-weight: var(--font-weight-title-md); color: var(--color-ink); }
.card p { margin: 0; font-size: var(--text-body-md); line-height: 1.55; }
.card--outline { background: var(--color-canvas); border: 1px solid var(--color-hairline); }
.card--dark { background: var(--color-surface-dark); color: var(--color-on-dark-soft); }
.card--dark h4 { color: var(--color-on-dark); }
.card--coral { background: var(--color-primary); color: var(--color-on-primary); }
.card--coral h4 { color: var(--color-on-primary); }
.card--flush { padding: 0; overflow: hidden; }
.card__section { padding: var(--spacing-lg) var(--spacing-xl); }
.card__header { padding: var(--spacing-md) var(--spacing-xl); border-bottom: 1px solid var(--color-hairline); background: var(--color-canvas); }
.card__footer { padding: var(--spacing-md) var(--spacing-xl); border-top: 1px solid var(--color-hairline); background: var(--color-canvas); display: flex; gap: var(--spacing-xs); justify-content: flex-end; }
.card__media { height: var(--spacing-section); background: var(--color-surface-dark); display: flex; align-items: center; justify-content: center; color: var(--color-on-dark-soft); }
.card--interactive { display: block; width: 100%; text-align: left; border: 1px solid var(--color-hairline); background: var(--color-canvas); cursor: pointer; font: inherit; color: var(--color-body); transition: background-color 120ms ease, border-color 120ms ease; }
.card--interactive:hover, .card--interactive.is-hover { background: var(--color-surface-soft); }
.card--selected { border-color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 6%, var(--color-canvas)); }
.card--selected .card__flag { color: var(--color-primary-active); }

.modal-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--color-ink) 45%, transparent);
}
.modal {
  width: 100%;
  max-width: calc(var(--spacing-section) * 4.5);
  border-radius: var(--radius-lg);
  background: var(--color-canvas);
  overflow: hidden;
}
.modal__head { display: flex; align-items: flex-start; gap: var(--spacing-md); padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-xs); }
.modal__title { margin: 0; flex: 1; font-family: var(--font-display-sm), "Tiempos Headline", "EB Garamond", Garamond, "Times New Roman", serif; font-size: var(--text-display-sm); font-weight: var(--font-weight-display-sm); letter-spacing: var(--tracking-display-sm); line-height: 1.2; color: var(--color-ink); }
.modal__body { padding: 0 var(--spacing-lg) var(--spacing-lg); color: var(--color-body); font-size: var(--text-body-md); }
.modal__foot { display: flex; justify-content: flex-end; gap: var(--spacing-xs); padding: var(--spacing-md) var(--spacing-lg); background: var(--color-surface-soft); }

.drawer-wrap { display: flex; justify-content: flex-end; height: calc(var(--spacing-section) * 3); border-radius: var(--radius-lg); background: color-mix(in oklab, var(--color-ink) 45%, transparent); overflow: hidden; }
.drawer { width: calc(var(--spacing-section) * 3.5); max-width: 80%; background: var(--color-canvas); display: flex; flex-direction: column; }
.drawer__head { display: flex; align-items: center; gap: var(--spacing-sm); padding: var(--spacing-md) var(--spacing-lg); border-bottom: 1px solid var(--color-hairline); }
.drawer__head h4 { margin: 0; flex: 1; font-family: var(--font-title-lg), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: var(--text-title-lg); font-weight: var(--font-weight-title-lg); color: var(--color-ink); }
.drawer__body { flex: 1; padding: var(--spacing-lg); overflow-y: auto; font-size: var(--text-body-sm); color: var(--color-body); }

.accordion { border: 1px solid var(--color-hairline); border-radius: var(--radius-lg); background: var(--color-canvas); overflow: hidden; }
.accordion details { border-bottom: 1px solid var(--color-hairline-soft); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-title-sm), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-title-sm);
  font-weight: var(--font-weight-title-sm);
  color: var(--color-ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--color-surface-soft); }
.accordion__chev { margin-left: auto; color: var(--color-muted); transition: transform 120ms ease; }
.accordion details[open] .accordion__chev { transform: rotate(180deg); }
.accordion__panel { padding: 0 var(--spacing-lg) var(--spacing-md); font-size: var(--text-body-sm); color: var(--color-body); line-height: 1.55; }

.popover {
  width: calc(var(--spacing-section) * 2.6);
  padding: var(--spacing-md);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  box-shadow: 0 1px calc(var(--spacing-xxs) - 1px) color-mix(in oklab, var(--color-ink) 10%, transparent);
  font-size: var(--text-body-sm);
  color: var(--color-body);
}
.popover h5 { margin: 0 0 var(--spacing-xxs); font-size: var(--text-title-sm); font-weight: var(--font-weight-title-sm); color: var(--color-ink); }

.tooltip {
  display: inline-block;
  padding: var(--spacing-xxs) var(--spacing-xs);
  border-radius: var(--radius-sm);
  background: var(--color-surface-dark);
  color: var(--color-on-dark);
  font-size: var(--text-caption);
  font-weight: var(--font-weight-caption);
  line-height: 1.4;
}
.tooltip-demo { display: flex; flex-direction: column; align-items: center; gap: var(--spacing-xxs); }

.divider { height: 1px; margin: var(--spacing-lg) 0; border: 0; background: var(--color-hairline); }
.divider--labelled { display: flex; align-items: center; gap: var(--spacing-sm); height: auto; background: none; color: var(--color-muted-soft); font-size: var(--text-caption); }
.divider--labelled::before, .divider--labelled::after { content: ""; flex: 1; height: 1px; background: var(--color-hairline); }

.well { padding: var(--spacing-lg); border-radius: var(--radius-md); background: var(--color-surface-cream-strong); color: var(--color-body-strong); font-size: var(--text-body-sm); line-height: 1.55; }


/* --- 6. containment: confirm, sheet, backdrop, disclosure ---------------- */
.confirm__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--spacing-xxl);
  height: var(--spacing-xxl);
  border-radius: var(--radius-full);
  /* GAP(semantic-tint): no semantic tint surface; derived from --color-error */
  background: color-mix(in oklab, var(--color-error) 12%, var(--color-canvas));
  color: var(--color-error);
}
.sheet-wrap { display: flex; align-items: flex-end; height: calc(var(--spacing-section) * 2.4); border-radius: var(--radius-lg); background: color-mix(in oklab, var(--color-ink) 45%, transparent); overflow: hidden; } /* GAP(scrim): no scrim token */
.sheet { width: 100%; max-height: 80%; border-start-start-radius: var(--radius-xl); border-start-end-radius: var(--radius-xl); background: var(--color-canvas); display: flex; flex-direction: column; }
.sheet__grip { width: var(--spacing-xxl); height: var(--spacing-xxs); margin: var(--spacing-sm) auto; border-radius: var(--radius-pill); background: var(--color-hairline); }
.sheet__body { padding: 0 var(--spacing-lg) var(--spacing-lg); overflow-y: auto; font-size: var(--text-body-sm); color: var(--color-body); }

.backdrop-demo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--spacing-section) * 1.3);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-card);
}
.backdrop-demo__scrim { position: absolute; inset: 0; background: color-mix(in oklab, var(--color-ink) 45%, transparent); } /* GAP(scrim): no scrim token */
.backdrop-demo__scrim--light { background: color-mix(in oklab, var(--color-ink) 20%, transparent); }
/* Cream on the 45% modal scrim. The 20% popover scrim is a light scrim by
   definition — cream on it is 1.86:1 — so that label inverts to ink. A scrim
   that lets the page through has to let the page tone through too. */
.backdrop-demo__label { position: relative; color: var(--color-on-dark); font-size: var(--text-caption); font-weight: var(--font-weight-caption); }

.backdrop-demo__scrim--light ~ .backdrop-demo__label { color: var(--color-ink); }

.disclosure { border: 1px solid var(--color-hairline); border-radius: var(--radius-md); background: var(--color-canvas); }
.disclosure summary {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  list-style: none;
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-title-sm);
  color: var(--color-ink);
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary:hover { background: var(--color-surface-soft); }
.disclosure__chev { transition: transform 120ms ease; color: var(--color-muted); }
.disclosure[open] .disclosure__chev { transform: rotate(90deg); }
.disclosure__body { padding: 0 var(--spacing-md) var(--spacing-sm); font-size: var(--text-body-sm); color: var(--color-body); line-height: 1.55; } /* GAP(line-height): no line-height tokens */
/* --- 9. cards & containers ----------------------------------------------
   Brand-surface compositions from DESIGN.md's "Cards & Containers". These
   compose the containment primitives rather than replacing them, so every
   class root here is namespaced `cc-` and none of them redefine `.card`. */

/* hero band ------------------------------------------------------------- */
.cc-hero {
  display: grid;
  /* The 6-6 split DESIGN.md asks for, expressed intrinsically: below roughly
     two column-minimums the two halves stack instead of squeezing. */
  grid-template-columns: repeat(auto-fit, minmax(min(calc(var(--spacing-section) * 3), 100%), 1fr));
  gap: var(--spacing-xxl);
  align-items: center;
  padding: var(--spacing-section) var(--spacing-xl);
  border-radius: var(--radius-lg);
  background: var(--color-canvas);
}
.cc-hero__title {
  margin: 0 0 var(--spacing-md);
  font-family: var(--font-display-lg), "Tiempos Headline", "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: var(--text-display-lg);
  font-weight: var(--font-weight-display-lg);
  letter-spacing: var(--tracking-display-lg);
  line-height: 1.1;
  color: var(--color-ink);
}
.cc-hero__sub {
  margin: 0 0 var(--spacing-lg);
  max-width: 34ch;
  font-size: var(--text-body-md);
  line-height: 1.55;
  color: var(--color-body);
}
.cc-hero__actions { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); }

/* Mobile hero, per DESIGN.md's collapsing strategy: the 6-6 grid is already
   single-column here (the track floor is clamped to the container above), so
   what is left is the band's own scale. Section-scale padding and a 48px
   headline are desktop measurements; at phone width they leave the copy in a
   ~200px gutter. Breakpoint registered in src/BREAKPOINTS.txt. */
@media (max-width: 767px) {
  .cc-hero { padding: var(--spacing-xl) var(--spacing-lg); gap: var(--spacing-lg); }
  .cc-hero__title {
    font-size: var(--text-display-sm);
    letter-spacing: var(--tracking-display-sm);
  }
  .cc-art { min-height: calc(var(--spacing-section) * 1.5); padding: var(--spacing-lg); }
}

/* hero illustration card ------------------------------------------------- */
.cc-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--spacing-section) * 2.5);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  color: var(--color-primary);
}
.cc-art--dark {
  background: var(--color-surface-dark);
  border-color: transparent;
  color: var(--color-on-dark-soft);
}

/* logo strip ------------------------------------------------------------- */
/* A quiet band, not a card: no border, no shadow, one step off the canvas.
   The marks wrap onto a second line rather than scrolling horizontally —
   a strip you have to drag hides the last logo on every touch device. */
.cc-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-md) var(--spacing-xl);
  padding: var(--spacing-lg) var(--spacing-xl);
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
}
/* The optical height every mark is held to. Glyphs are sized from it rather
   than each carrying its own dimensions, which is what keeps a wide wordmark
   and a square monogram reading as the same weight. */
.cc-logos__mark {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  height: var(--spacing-lg);
  color: var(--color-muted);
}
.cc-logos__mark svg { display: block; height: 100%; width: auto; }
.cc-logos__word {
  font-family: var(--font-title-sm), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-title-sm);
  font-weight: var(--font-weight-title-sm);
  letter-spacing: var(--tracking-caption-uppercase);
  color: var(--color-muted);
}
/* Monogram fallback: same optical height, same colour, so a missing glyph
   costs the strip nothing in rhythm. */
.cc-logos__mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  aspect-ratio: 1;
  /* The monogram is an unfilled box on a tinted strip: the border is the
     whole shape, so it takes the functional border tone. */
  border: 1px solid var(--color-stroke);
  border-radius: var(--radius-xs);
  font-family: var(--font-caption), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-caption);
  font-weight: var(--font-weight-title-sm);
  color: var(--color-muted);
}
.cc-logos__count {
  margin-left: auto;
  font-family: var(--font-caption), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-caption);
  color: var(--color-muted); /* the strip is surface-soft; muted-soft is a canvas tone */
  white-space: nowrap;
}

/* feature card ----------------------------------------------------------- */
.cc-feature {
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  background: var(--color-surface-card);
  color: var(--color-body);
}
.cc-feature__icon {
  display: inline-flex;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}
.cc-feature__title {
  margin: 0 0 var(--spacing-xs);
  font-family: var(--font-title-md), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-title-md);
  font-weight: var(--font-weight-title-md);
  color: var(--color-ink);
}
.cc-feature p { margin: 0; font-size: var(--text-body-md); line-height: 1.55; }

/* numbered step card ------------------------------------------------------ */
/* The sequence is an <ol> so a screen reader announces the order; the list
   markers are stripped because the display numerals already carry it. */
.cc-steps { margin: 0; padding: 0; list-style: none; }
/* Deliberately not a filled card: three steps that each carried their own
   surface would read as three offers. A hairline rule and a display numeral
   are enough to mark the sequence. There is no complete/current styling here
   on purpose — that belongs to `stepper`, where the reader is mid-flow. */
.cc-step {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-hairline);
}
.cc-step__num {
  font-family: var(--font-display-md), "Tiempos Headline", "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: var(--text-display-md);
  font-weight: var(--font-weight-display-md);
  letter-spacing: var(--tracking-display-md);
  line-height: 1.1;
  color: var(--color-muted-soft);
}
.cc-step__title {
  margin: 0;
  font-family: var(--font-title-md), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-title-md);
  font-weight: var(--font-weight-title-md);
  color: var(--color-ink);
}
.cc-step p { margin: 0; font-size: var(--text-body-md); line-height: 1.55; color: var(--color-body); }

/* product mockup card ---------------------------------------------------- */
.cc-mockup {
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  background: var(--color-surface-dark);
  color: var(--color-on-dark-soft);
}
.cc-mockup__label {
  display: block;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-caption-uppercase), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-caption-uppercase);
  font-weight: var(--font-weight-caption-uppercase);
  letter-spacing: var(--tracking-caption-uppercase);
  text-transform: uppercase;
  color: var(--color-on-dark);
}
.cc-mockup__chrome {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  background: var(--color-surface-dark-soft);
}
.cc-mockup__turn {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: var(--text-body-sm);
  line-height: 1.5;
  background: var(--color-surface-dark-elevated);
  color: var(--color-on-dark-soft);
}
.cc-mockup__turn--user {
  align-self: flex-end;
  max-width: 80%;
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.cc-mockup__control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  background: var(--color-surface-dark-elevated);
  font-size: var(--text-body-sm);
  color: var(--color-on-dark-soft);
}
.cc-mockup__pill {
  padding: var(--spacing-xxs) var(--spacing-sm);
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--color-accent-teal) 22%, transparent); /* GAP(on-dark-badge): no on-dark badge surface token; derived from --color-accent-teal */
  color: var(--color-on-dark);
  font-family: var(--font-caption), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-caption);
}

/* code window card ------------------------------------------------------- */
.cc-code {
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  background: var(--color-surface-dark);
  color: var(--color-on-dark-soft);
}
.cc-code__bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid color-mix(in oklab, var(--color-on-dark) 12%, transparent); /* GAP(on-dark-hairline): no on-dark hairline token; --color-hairline is tuned for cream */
  margin-bottom: var(--spacing-sm);
}
.cc-code__dot { width: var(--spacing-sm); height: var(--spacing-sm); border-radius: var(--radius-full); background: color-mix(in oklab, var(--color-on-dark) 28%, transparent); /* GAP(window-chrome): no window-chrome token */ }
.cc-code__name {
  margin-left: var(--spacing-xs);
  font-family: var(--font-code), "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--text-caption);
  color: var(--color-on-dark-soft);
}
.cc-code__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 var(--spacing-md);
  overflow-x: auto;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  background: var(--color-surface-dark-soft);
  font-family: var(--font-code), "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--text-code);
  line-height: 1.6;
}
.cc-code__gutter {
  text-align: right;
  color: color-mix(in oklab, var(--color-on-dark) 38%, transparent); /* GAP(on-dark-hairline): no de-emphasised on-dark text token */
  user-select: none;
  white-space: pre;
}
.cc-code__lines { margin: 0; white-space: pre; color: var(--color-on-dark-soft); }
.cc-code__out {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  background: var(--color-surface-dark-soft);
  font-family: var(--font-code), "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--text-code);
  line-height: 1.6;
  color: var(--color-on-dark-soft);
  white-space: pre-wrap;
}
.cc-code .kw { color: var(--color-accent-teal); }
.cc-code .st { color: var(--color-accent-amber); }
.cc-code .cm { color: color-mix(in oklab, var(--color-on-dark) 45%, transparent); /* GAP(comment-grey): no comment-grey token */ }
.cc-code__run { margin-top: var(--spacing-sm); }

/* model comparison card -------------------------------------------------- */
.cc-model {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
}
.cc-model__name {
  margin: 0;
  font-family: var(--font-title-md), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-title-md);
  font-weight: var(--font-weight-title-md);
  color: var(--color-ink);
}
.cc-model p { margin: 0; flex: 1; font-size: var(--text-body-md); line-height: 1.55; color: var(--color-body); }
.cc-model__link {
  align-self: flex-start;
  font-size: var(--text-body-sm);
  color: var(--color-primary-active); /* coral as text, see .link */
  text-decoration: none;
}
.cc-model__link:hover, .cc-model__link.is-hover { text-decoration: underline; }

/* pricing tier card ------------------------------------------------------ */
.cc-tier {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  color: var(--color-body);
}
.cc-tier__name {
  margin: 0;
  font-family: var(--font-title-lg), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-title-lg);
  font-weight: var(--font-weight-title-lg);
  color: var(--color-ink);
}
.cc-tier__price {
  margin: var(--spacing-xs) 0 var(--spacing-lg);
  font-family: var(--font-display-sm), "Tiempos Headline", "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: var(--text-display-sm);
  font-weight: var(--font-weight-display-sm);
  letter-spacing: var(--tracking-display-sm);
  line-height: 1.2;
  color: var(--color-ink);
}
.cc-tier__period { font-family: var(--font-body-sm), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: var(--text-body-sm); color: var(--color-muted); }
.cc-tier__list { flex: 1; margin: 0 0 var(--spacing-lg); padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--spacing-xs); }
.cc-tier__list li { display: flex; gap: var(--spacing-xs); font-size: var(--text-body-md); line-height: 1.5; }
.cc-tier__tick { flex: none; margin-top: var(--spacing-xxs); color: var(--color-success); }
.cc-tier--featured { background: var(--color-surface-dark); border-color: transparent; color: var(--color-on-dark-soft); }
.cc-tier--featured .cc-tier__name,
.cc-tier--featured .cc-tier__price { color: var(--color-on-dark); }
.cc-tier--featured .cc-tier__period { color: var(--color-on-dark-soft); }
.cc-tier--featured .cc-tier__tick { color: var(--color-accent-teal); }
.cc-tier__flag {
  align-self: flex-start;
  margin-bottom: var(--spacing-xs);
  padding: var(--spacing-xxs) var(--spacing-sm);
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-caption-uppercase), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-caption-uppercase);
  font-weight: var(--font-weight-caption-uppercase);
  letter-spacing: var(--tracking-caption-uppercase);
  text-transform: uppercase;
}

/* guarantee panel --------------------------------------------------------- */
/* An offer, not a status report. It shares no surface with `alert` — the soft
   cream band reads as reassurance rather than as the system telling you
   something has happened. The promise carries the title scale; the clause that
   qualifies it sits underneath at caption scale, where fine print belongs. */
.cc-promise {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
  border: 1px solid var(--color-hairline-soft);
}
.cc-promise__icon { flex: none; color: var(--color-primary); }
.cc-promise__title {
  margin: 0 0 var(--spacing-xs);
  max-width: 34ch;
  font-family: var(--font-title-lg), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-title-lg);
  font-weight: var(--font-weight-title-lg);
  line-height: 1.3;
  color: var(--color-ink);
}
.cc-promise__fine {
  margin: 0;
  max-width: 68ch;
  font-family: var(--font-caption), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--color-muted);
}

/* coral callout card ----------------------------------------------------- */
.cc-callout {
  padding: var(--spacing-xxl);
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.cc-callout__title {
  margin: 0 0 var(--spacing-sm);
  max-width: 26ch;
  font-family: var(--font-title-md), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-title-md);
  font-weight: var(--font-weight-title-md);
  color: var(--color-on-primary);
}
.cc-callout p { margin: 0 0 var(--spacing-lg); max-width: 52ch; font-size: var(--text-body-md); line-height: 1.55; }
/* Inverted CTA: on coral the primary button would vanish, so the cream canvas
   becomes the fill and the coral becomes the label. */
.cc-callout__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--spacing-lg) + var(--spacing-md));
  padding: 0 calc(var(--spacing-md) + var(--spacing-xxs));
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  color: var(--color-primary-active);
  font-family: var(--font-button), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-button);
  font-weight: var(--font-weight-button);
  text-decoration: none;
  cursor: pointer;
}
.cc-callout__cta:hover, .cc-callout__cta.is-hover { background: var(--color-surface-card); }

/* cta band ---------------------------------------------------------------- */
/* The pre-footer band, and the largest thing on the page after the hero. Two
   things separate it from the coral callout card above, and both have to stay
   visible when the pair render near each other: the padding steps up from
   --spacing-xxl to 64px, and the headline moves from a title-scale sans to the
   serif display face. Centred, because a band that spans the page has no
   left column to align to. */
.cc-band {
  padding: calc(var(--spacing-xxl) + var(--spacing-md)); /* GAP(band-padding): DESIGN.md specifies 64px of band padding; the spacing scale steps 48 → 96, so this is xxl + md */
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: var(--color-on-primary);
  text-align: center;
}
.cc-band__title {
  margin: 0 auto var(--spacing-sm);
  max-width: 22ch;
  font-family: var(--font-display-sm), "Tiempos Headline", "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: var(--text-display-sm);
  font-weight: var(--font-weight-display-sm);
  letter-spacing: var(--tracking-display-sm);
  line-height: 1.15;
  color: var(--color-on-primary);
}
.cc-band__sub {
  margin: 0 auto var(--spacing-lg);
  max-width: 52ch;
  font-size: var(--text-body-md);
  line-height: 1.55;
}
/* Inverted, for the same reason the callout's CTA is: a coral button on coral
   is not a button. On the dark band the same cream fill takes ink for a label. */
.cc-band__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--spacing-lg) + var(--spacing-lg));
  padding: 0 var(--spacing-lg);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  color: var(--color-primary-active);
  font-family: var(--font-button), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-button);
  font-weight: var(--font-weight-button);
  text-decoration: none;
  cursor: pointer;
}
.cc-band__cta:hover, .cc-band__cta.is-hover { background: var(--color-surface-card); }
.cc-band--dark { background: var(--color-surface-dark); color: var(--color-on-dark-soft); }
.cc-band--dark .cc-band__title { color: var(--color-on-dark); }
.cc-band--dark .cc-band__cta { color: var(--color-ink); }

/* footer ------------------------------------------------------------------ */
/* Closes the page and never inverts: the surface stays dark, the wordmark
   stays cream, and the spike-mark keeps the wordmark's own colour rather than
   flipping to a light chip. */
.cc-footer {
  padding: calc(var(--spacing-xxl) + var(--spacing-md)) var(--spacing-xl); /* GAP(band-padding): DESIGN.md specifies 64px of vertical footer padding; xxl + md */
  border-radius: var(--radius-lg);
  background: var(--color-surface-dark);
  color: var(--color-on-dark-soft);
  font-size: var(--text-body-sm);
}
.cc-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-xl);
  color: var(--color-on-dark);
}
.cc-footer__spike { display: block; flex: none; }
.cc-footer__wordmark {
  font-family: var(--font-title-md), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-title-md);
  font-weight: var(--font-weight-title-md);
  color: var(--color-on-dark);
}
/* Four columns where there is room for four, and one where there is not. The
   minimum is expressed in spacing tokens for the same reason every other grid
   in this file is: a media query cannot read a custom property, so a literal
   breakpoint would be the only hardcoded size on the page. */
.cc-footer__cols {
  display: grid;
  gap: var(--spacing-lg) var(--spacing-xl);
  grid-template-columns: repeat(auto-fit, minmax(min(calc(var(--spacing-section) * 1.5), 100%), 1fr));
}
.cc-footer__col-title {
  margin: 0 0 var(--spacing-sm);
  font-family: var(--font-caption-uppercase), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-caption-uppercase);
  font-weight: var(--font-weight-caption-uppercase);
  letter-spacing: var(--tracking-caption-uppercase);
  text-transform: uppercase;
  color: var(--color-on-dark);
}
.cc-footer__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--spacing-xs); }
.cc-footer__link {
  color: var(--color-on-dark-soft);
  font-size: var(--text-body-sm);
  line-height: 1.5;
  text-decoration: none;
}
.cc-footer__link:hover, .cc-footer__link.is-hover { color: var(--color-on-dark); text-decoration: underline; }
.cc-footer__fine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xs) var(--spacing-lg);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-md);
  border-top: 1px solid color-mix(in oklab, var(--color-on-dark) 12%, transparent); /* GAP(on-dark-hairline): no on-dark hairline token; --color-hairline is tuned for cream */
  font-family: var(--font-caption), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-caption);
  color: var(--color-on-dark-soft);
}
.cc-footer__fine p { margin: 0; margin-right: auto; }

/* connector tile --------------------------------------------------------- */
.cc-tile {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding: calc(var(--spacing-md) + var(--spacing-xxs)); /* GAP(tile-padding): DESIGN.md specifies 20px for connector tiles; no 20px spacing token */
  border-radius: var(--radius-lg);
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
}
.cc-tile__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--spacing-xl);
  height: var(--spacing-xl);
  border-radius: var(--radius-md);
  background: var(--color-surface-card);
  color: var(--color-primary-active); /* coral as a glyph on a card, see .link */
  font-family: var(--font-caption), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-caption);
  font-weight: var(--font-weight-title-sm);
}
.cc-tile__name {
  margin: 0;
  font-family: var(--font-title-sm), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-title-sm);
  font-weight: var(--font-weight-title-sm);
  color: var(--color-ink);
}
.cc-tile p { margin: 0; font-size: var(--text-body-sm); line-height: 1.5; color: var(--color-muted); }
.cc-tile__more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--spacing-md) + var(--spacing-xxs)); /* GAP(tile-padding): matches the tile padding above */
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-hairline);
  font-size: var(--text-body-sm);
  color: var(--color-muted);
  text-align: center;
}

/* Grids for the section. Column counts are intrinsic — an `auto-fit` minimum
   expressed in spacing tokens — so they collapse 3 → 2 → 1 on available width
   with no breakpoint. Every other part in this page works the same way, and
   DESIGN.md asks for the pricing tiers specifically to reflow this way. */
.cc-3up { display: grid; gap: var(--spacing-md); grid-template-columns: repeat(auto-fit, minmax(min(calc(var(--spacing-section) * 2.2), 100%), 1fr)); }
.cc-2up { display: grid; gap: var(--spacing-md); grid-template-columns: repeat(auto-fit, minmax(min(calc(var(--spacing-section) * 3), 100%), 1fr)); }
.cc-4up { display: grid; gap: var(--spacing-md); grid-template-columns: repeat(auto-fit, minmax(min(calc(var(--spacing-section) * 1.7), 100%), 1fr)); }
/* --- 7. data display ---------------------------------------------------- */
.table-wrap { border: 1px solid var(--color-hairline); border-radius: var(--radius-lg); overflow: auto; background: var(--color-canvas); }
.table-wrap--sticky { max-height: calc(var(--spacing-section) * 2.6); }
table.tbl { width: 100%; border-collapse: collapse; font-size: var(--text-body-sm); }
.tbl th, .tbl td { padding: var(--spacing-sm) var(--spacing-md); text-align: left; border-bottom: 1px solid var(--color-hairline-soft); }
.tbl--compact th, .tbl--compact td { padding: var(--spacing-xxs) var(--spacing-sm); }
.tbl thead th {
  background: var(--color-surface-soft);
  color: var(--color-ink);
  font-family: var(--font-title-sm), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-caption);
  font-weight: var(--font-weight-title-sm);
  white-space: nowrap;
}
.tbl--sticky thead th { position: sticky; top: 0; z-index: 1; }
.tbl tbody tr:nth-child(even) { background: color-mix(in oklab, var(--color-surface-soft) 55%, transparent); }
.tbl tbody tr:hover, .tbl tbody tr.is-hover { background: var(--color-surface-card); }
.tbl tbody tr[aria-selected="true"] { background: color-mix(in oklab, var(--color-primary) 10%, var(--color-canvas)); }
.tbl tfoot td { background: var(--color-surface-soft); font-weight: var(--font-weight-title-sm); color: var(--color-ink); border-bottom: 0; }
.tbl__sort { display: inline-flex; align-items: center; gap: var(--spacing-xxs); border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.tbl__num { text-align: right; font-variant-numeric: tabular-nums; }

.dl { display: grid; grid-template-columns: auto 1fr; gap: var(--spacing-xs) var(--spacing-lg); margin: 0; font-size: var(--text-body-sm); }
.dl dt { color: var(--color-muted); }
.dl dd { margin: 0; color: var(--color-ink); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xxs);
  padding: var(--spacing-xxs) var(--spacing-sm);
  border-radius: var(--radius-pill);
  background: var(--color-surface-card);
  color: var(--color-ink);
  font-family: var(--font-caption), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-caption);
  font-weight: var(--font-weight-caption);
  line-height: 1.4;
  white-space: nowrap;
}
.badge--coral { background: var(--color-primary); color: var(--color-on-primary); font-family: var(--font-caption-uppercase), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: var(--text-caption-uppercase); font-weight: var(--font-weight-caption-uppercase); letter-spacing: var(--tracking-caption-uppercase); text-transform: uppercase; }
/* The border IS this variant — there is no fill to fall back on — so it takes
   --color-stroke, the functional border tone, and never --color-hairline.
   Hairline is decorative by DESIGN.md's own definition ("one elevation step
   rather than ink lines"): it manages 1.25:1 on canvas and 1.01:1 on
   --color-surface-cream-strong, where this badge simply stopped existing.
   See docs/adr/0004. */
.badge--outline { background: transparent; border: 1px solid var(--color-stroke); color: var(--color-body); }
/* The five tinted variants below are values, not derivations: DESIGN.md
   §Tags / Badges specifies each mix ratio per hue. See docs/adr/0004. */
.badge--success { background: color-mix(in oklab, var(--color-success) 16%, var(--color-canvas)); color: color-mix(in oklab, var(--color-success) 45%, var(--color-ink)); }
.badge--warning { background: color-mix(in oklab, var(--color-warning) 18%, var(--color-canvas)); color: color-mix(in oklab, var(--color-warning) 40%, var(--color-ink)); }
.badge--error { background: color-mix(in oklab, var(--color-error) 12%, var(--color-canvas)); color: var(--color-error); }
.badge--info { background: color-mix(in oklab, var(--color-accent-teal) 18%, var(--color-canvas)); color: color-mix(in oklab, var(--color-accent-teal) 40%, var(--color-ink)); }
.badge--amber { background: color-mix(in oklab, var(--color-accent-amber) 22%, var(--color-canvas)); color: color-mix(in oklab, var(--color-accent-amber) 38%, var(--color-ink)); }
.badge__dot { width: var(--spacing-xs); height: var(--spacing-xs); border-radius: var(--radius-full); background: currentColor; flex: none; }
.badge__x { display: inline-flex; border: 0; background: none; padding: 0; margin-left: var(--spacing-xxs); color: inherit; opacity: 0.7; cursor: pointer; }
.badge__x:hover { opacity: 1; }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: var(--radius-full);
  background: var(--color-surface-cream-strong);
  color: var(--color-body-strong);
  font-family: var(--font-title-sm), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: var(--font-weight-title-sm);
  overflow: hidden;
  object-fit: cover;
}
.avatar--xs { width: var(--spacing-lg); height: var(--spacing-lg); font-size: var(--text-caption-uppercase); }
.avatar--sm { width: var(--spacing-xl); height: var(--spacing-xl); font-size: var(--text-caption); }
.avatar--md { width: calc(var(--spacing-lg) + var(--spacing-md)); height: calc(var(--spacing-lg) + var(--spacing-md)); font-size: var(--text-body-sm); }
.avatar--lg { width: var(--spacing-xxl); height: var(--spacing-xxl); font-size: var(--text-body-md); }
.avatar--xl { width: calc(var(--spacing-xl) * 2); height: calc(var(--spacing-xl) * 2); font-size: var(--text-title-lg); }
.avatar--coral { background: var(--color-primary); color: var(--color-on-primary); }
.avatar--dark { background: var(--color-surface-dark); color: var(--color-on-dark); }
.avatar-group { display: flex; align-items: center; }
.avatar-group .avatar { border: calc(var(--spacing-xxs) / 2) solid var(--color-canvas); }
.avatar-group .avatar + .avatar { margin-left: calc(var(--spacing-sm) * -1); }

.stat { padding: var(--spacing-lg); border: 1px solid var(--color-hairline); border-radius: var(--radius-lg); background: var(--color-canvas); }
.stat__label { font-size: var(--text-caption); color: var(--color-muted); }
.stat__value { margin: var(--spacing-xxs) 0; font-family: var(--font-display-md), "Tiempos Headline", "EB Garamond", Garamond, "Times New Roman", serif; font-size: var(--text-display-md); font-weight: var(--font-weight-display-md); letter-spacing: var(--tracking-display-md); line-height: 1.15; color: var(--color-ink); }
.stat__delta { display: inline-flex; align-items: center; gap: var(--spacing-xxs); font-size: var(--text-caption); font-weight: var(--font-weight-caption); }
.stat__delta--up { color: color-mix(in oklab, var(--color-success) 50%, var(--color-ink)); }
.stat__delta--down { color: var(--color-error); }
.stat__delta--flat { color: var(--color-muted); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: var(--spacing-md); padding-bottom: var(--spacing-lg); }
.timeline__rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.timeline__dot { width: var(--spacing-sm); height: var(--spacing-sm); border-radius: var(--radius-full); background: var(--color-primary); flex: none; margin-top: var(--spacing-xxs); }
.timeline li:not(:last-child) .timeline__rail::after { content: ""; flex: 1; width: 1px; margin-top: var(--spacing-xxs); background: var(--color-hairline); }
.timeline__when { font-size: var(--text-caption); color: var(--color-muted-soft); }
.timeline__what { font-size: var(--text-body-sm); color: var(--color-ink); font-weight: var(--font-weight-title-sm); }
.timeline__detail { font-size: var(--text-body-sm); color: var(--color-body); }

.codeblock {
  margin: 0;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  background: var(--color-surface-dark);
  color: var(--color-on-dark);
  font-family: var(--font-code), "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--text-code);
  font-weight: var(--font-weight-code);
  line-height: 1.6;
  overflow-x: auto;
}
.codeblock .cm { color: var(--color-on-dark-soft); }
.codeblock .kw { color: var(--color-accent-amber); }
.codeblock .st { color: var(--color-accent-teal); }
.codeblock .fn { color: var(--color-primary); }
.code-window { border-radius: var(--radius-lg); background: var(--color-surface-dark); overflow: hidden; }
.code-window__bar { display: flex; align-items: center; gap: var(--spacing-xs); padding: var(--spacing-sm) var(--spacing-lg); background: var(--color-surface-dark-elevated); color: var(--color-on-dark-soft); font-size: var(--text-caption); }
.code-window__body { padding: var(--spacing-lg); background: var(--color-surface-dark-soft); }
.code-window__body pre { margin: 0; }
.dot { width: var(--spacing-xs); height: var(--spacing-xs); border-radius: var(--radius-full); flex: none; }

kbd {
  display: inline-block;
  min-width: var(--spacing-lg);
  padding: var(--spacing-xxs) var(--spacing-xs);
  border: 1px solid var(--color-hairline);
  border-bottom-width: calc(var(--spacing-xxs) / 2);
  border-radius: var(--radius-xs);
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-code), "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--text-caption-uppercase);
  line-height: 1.4;
  text-align: center;
}
code.inline { padding: var(--spacing-xxs) var(--spacing-xxs); border-radius: var(--radius-xs); background: var(--color-surface-card); font-family: var(--font-code), "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-code); color: var(--color-body-strong); }


/* --- 7. data: stacked table, data list, tree, blockquote ----------------- */
.tbl-stack { border: 1px solid var(--color-hairline); border-radius: var(--radius-lg); overflow: hidden; }
.tbl-stack__card { padding: var(--spacing-sm) var(--spacing-md); border-bottom: 1px solid var(--color-hairline-soft); }
.tbl-stack__card:last-child { border-bottom: 0; }
.tbl-stack__line { display: flex; justify-content: space-between; gap: var(--spacing-md); padding: var(--spacing-xxs) 0; font-size: var(--text-body-sm); }
.tbl-stack__label { color: var(--color-muted); font-size: var(--text-caption); }
.tbl-stack__value { color: var(--color-ink); text-align: right; }

.dlist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--color-hairline); border-radius: var(--radius-lg); background: var(--color-canvas); overflow: hidden; }
.dlist li { display: flex; align-items: center; gap: var(--spacing-md); padding: var(--spacing-sm) var(--spacing-md); border-bottom: 1px solid var(--color-hairline-soft); }
.dlist li:last-child { border-bottom: 0; }
.dlist li:hover, .dlist li.is-hover { background: var(--color-surface-soft); }
.dlist__main { flex: 1; min-width: 0; }
.dlist__title { display: block; color: var(--color-ink); font-size: var(--text-body-sm); font-weight: var(--font-weight-title-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlist__sub { display: block; color: var(--color-muted); font-size: var(--text-caption); }
.dlist__meta { flex: none; color: var(--color-muted); font-size: var(--text-caption); text-align: right; }

.tree { list-style: none; margin: 0; padding: 0; font-size: var(--text-body-sm); }
.tree ul { list-style: none; margin: 0; padding-left: var(--spacing-md); border-left: 1px solid var(--color-hairline); }
.tree__row {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  width: 100%;
  padding: var(--spacing-xxs) var(--spacing-xs);
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-body);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tree__row:hover, .tree__row.is-hover { background: var(--color-surface-soft); color: var(--color-ink); }
/* GAP(selected-tint): no selected-surface token; derived from --color-primary */
.tree__row[aria-selected="true"] { background: color-mix(in oklab, var(--color-primary) 10%, var(--color-canvas)); color: var(--color-ink); font-weight: var(--font-weight-title-sm); }
.tree__twist { flex: none; color: var(--color-muted); transition: transform 120ms ease; }
.tree__row[aria-expanded="true"] .tree__twist { transform: rotate(90deg); }
.tree__twist--leaf { visibility: hidden; }

.quote { margin: 0; padding-left: var(--spacing-md); border-left: calc(var(--spacing-xxs) / 2) solid var(--color-primary); }
.quote blockquote { margin: 0; font-family: var(--font-display-sm), "Tiempos Headline", "EB Garamond", Garamond, "Times New Roman", serif; font-size: var(--text-title-lg); font-weight: var(--font-weight-display-sm); line-height: 1.3; color: var(--color-ink); } /* GAP(line-height): no line-height tokens */
.quote figcaption { margin-top: var(--spacing-xs); font-size: var(--text-caption); color: var(--color-muted); }
/* --- 10. utility --------------------------------------------------------- */
/* These render little or nothing by design. They are on the page because a
   behaviour nobody can see is a behaviour nobody maintains. */

.ut-demo-frame {
  padding: var(--spacing-md);
  border: 1px dashed var(--color-hairline);
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  font-size: var(--text-body-sm);
  color: var(--color-body);
}

.ut-truncate {
  max-width: calc(var(--spacing-section) * 3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-ink);
  font-size: var(--text-body-sm);
}
.ut-clamp {
  max-width: calc(var(--spacing-section) * 3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--color-ink);
  font-size: var(--text-body-sm);
  line-height: 1.55; /* GAP(line-height): no line-height tokens */
}

.ut-scroll {
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
}
.ut-scroll--x { overflow-x: auto; padding: var(--spacing-sm); }
.ut-scroll--y { overflow-y: auto; max-height: calc(var(--spacing-section) * 1.2); padding: var(--spacing-sm); }
.ut-scroll__wide { display: flex; gap: var(--spacing-xs); }
.ut-scroll__wide span {
  flex: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-pill);
  background: var(--color-surface-cream-strong);
  color: var(--color-body-strong);
  font-size: var(--text-caption);
  white-space: nowrap;
}
.ut-scroll__row { padding: var(--spacing-xxs) 0; border-bottom: 1px solid var(--color-hairline-soft); font-size: var(--text-body-sm); color: var(--color-body); }
.ut-scroll__row:last-child { border-bottom: 0; }

.ut-density { display: inline-flex; align-items: center; gap: var(--spacing-sm); }
.ut-rows { width: 100%; border-collapse: collapse; font-size: var(--text-body-sm); margin-top: var(--spacing-sm); }
.ut-rows th, .ut-rows td { text-align: left; border-bottom: 1px solid var(--color-hairline-soft); padding: var(--spacing-sm) var(--spacing-xs); }
.ut-rows[data-density="compact"] th, .ut-rows[data-density="compact"] td { padding: var(--spacing-xxs) var(--spacing-xs); }
.ut-rows th { color: var(--color-ink); font-weight: var(--font-weight-title-sm); font-size: var(--text-caption); }

.ut-live {
  padding: var(--spacing-sm) var(--spacing-md);
  border-left: calc(var(--spacing-xxs) / 2) solid var(--color-primary);
  border-radius: var(--radius-xs);
  background: var(--color-surface-soft);
  font-size: var(--text-body-sm);
  color: var(--color-body-strong);
  min-height: var(--spacing-xl);
}
/* --- 8. gaps table ------------------------------------------------------ */
.gaps th, .gaps td { vertical-align: top; }
.gaps td:first-child { font-family: var(--font-code), "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-caption); color: var(--color-primary-active); white-space: nowrap; }
