/* Slycer design system, one file: tokens.css, fonts.css, base.css and components.css with every import
   inlined, in that order. Built by launch/design/tools/bundle_css.py; edit the sources, never this file. */
/* Slycer design system: tokens. The one source for colour, type, space, rules, radii, depth and motion on the site,
   the docs and the dashboard (D131). One dark theme since 2026-11-20 (the founder approved the dark redesign,
   web/redesign on branch feat/dark-redesign): a black ground, neutral greys with no blue or green in them, and one
   accent, the green. There is no light theme and no theme control; print alone gets light values.

   Layers, in this order:
   1. Primitives: the ground and its two surfaces, the lines, ink in three strengths, the green and the amber.
   2. Aliases for status and focus, and the semantic names (shadcn-compatible), mapped once onto primitives.
   3. Type, figures, space, rules, radii, depth, motion.

   Every colour here is in web/design/contrast-pairs.json, and tests/test_design_tokens.py checks each pair on screen
   and in print (WCAG 2.2 AA). Change a value, run the test. Outside this file no colour is written in. */

:root {
  color-scheme: dark;

  /* 1. Primitives. Neutral greys only: R, G and B are equal in every grey. */
  --ground: #000000;         /* the page, set on html and body */
  --surface: #0a0a0a;        /* code, receipts, the hover ground of a cell: the one inset surface */
  --surface-raised: #121212; /* input fields, menus, the latest row, the selected option */
  --line: #262626;           /* hairline between cells and rows; never an input's only edge */
  --line-strong: #404040;    /* table heads, section rules */
  --field: #767676;          /* input and button outlines, 3:1 or more (WCAG 1.4.11) */
  --ink: #f2f2f2;            /* text and figures, never pure white */
  --ink-soft: #ababab;       /* secondary text, subtitles */
  --ink-faint: #828282;      /* notes, labels and meta; the floor for any text */

  /* The one accent: the primary action, links, the active state, the latest figure. */
  --green: #34e0a1;
  --green-strong: #5cf0b9;   /* primary button and link hover */
  --green-ink: #03150e;      /* text on a green fill */
  --green-deep: #14694b;     /* link underlines; never text */
  --amber: #f2b446;          /* stale, terms needed, errors: always with a word and a shape */
  --off: #919191;            /* not built yet, key missing */

  /* Behind a dialog. */
  --scrim: rgb(0 0 0 / 0.7);

  /* 2. Status and focus, by meaning. Status colours go with a word and a shape, never alone (WCAG 1.4.1). */
  --status-live: var(--green);   /* fetched live from the agency */
  --status-stale: var(--amber);  /* local copy older than 7 days (status.STALE_DAYS); live failed, local copy used */
  --status-terms: var(--amber);  /* restricted source, terms not yet accepted (D015) */
  --status-idle: var(--off);     /* not built yet, key missing, contact e-mail not set */
  --focus: var(--green);         /* the ring, with a black bar inside it so it parts from a green fill */
  --focus-ink: var(--ground);

  /* 2. Semantic names (shadcn), D123's table. */
  --background: var(--ground);
  --foreground: var(--ink);
  --card: var(--surface);           /* the inset surface; content never sits in cards */
  --card-foreground: var(--ink);
  --card-edge: var(--line);          /* an inset box's edge: the hairline (T22, 2026-11-09) */
  --popover: var(--surface-raised);      /* with --shadow-menu */
  --popover-foreground: var(--ink);
  --primary: var(--green);
  --primary-foreground: var(--green-ink);
  --secondary: var(--ground);           /* with a --field outline */
  --secondary-foreground: var(--ink);
  --muted: var(--surface);
  --muted-foreground: var(--ink-faint);
  --accent: var(--surface-raised);        /* hover and selected ground, not the green */
  --accent-foreground: var(--ink);
  --destructive: var(--status-terms);  /* form errors and the confirm step of Revoke, never a row button */
  --border: var(--line);
  --input: var(--field);
  --ring: var(--focus);                /* draw it with --focus-outline and --focus-bar, never alone */
  --radius: var(--radius-2);
  /* shadcn's sidebar names, read by Fumadocs' shadcn preset: the sidebar is the page, ruled off by a hairline. */
  --sidebar: var(--ground);
  --sidebar-foreground: var(--ink);
  --sidebar-primary: var(--green);
  --sidebar-primary-foreground: var(--green-ink);
  --sidebar-accent: var(--surface-raised);
  --sidebar-accent-foreground: var(--ink);
  --sidebar-border: var(--line);
  --sidebar-ring: var(--focus);

  /* 3. Type. Two families (D128, redesign of 2026-11-20): DM Sans for every text role, JetBrains Mono for data,
     labels, series IDs and commands. Both self-hosted (D129), OFL 1.1, no reserved font names. */
  --font-sans: "DM Sans", ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Figures. The font shorthand resets font-variant-numeric, so every rule that sets font restates one of these. */
  --figures-table: tabular-nums lining-nums;     /* tables, controls, dates: columns of figures line up */
  --figures-text: lining-nums proportional-nums; /* prose and headings */

  /* Roles by name and size in px (font shorthand: weight size/line-height family). */
  --type-hero-88: 400 clamp(2.5rem, 1rem + 5.2vw, 5.5rem)/1.02 var(--font-sans);    /* the home page's h1 */
  --type-display-64: 400 clamp(2.25rem, 1.4rem + 3.4vw, 4rem)/1.04 var(--font-sans);
  --type-heading-32: 400 clamp(1.625rem, 1.3rem + 1.2vw, 2rem)/1.12 var(--font-sans);
  --type-heading-22: 500 1.375rem/1.25 var(--font-sans);
  --type-title-19: 500 1.1875rem/1.3 var(--font-sans);   /* "Table 1: ..." */
  --type-copy-18: 400 1.125rem/1.6 var(--font-sans);
  --type-copy-16: 400 1rem/1.6 var(--font-sans);
  --type-ui-15: 400 0.9375rem/1.45 var(--font-sans);
  --type-table-15: 400 0.9375rem/1.35 var(--font-sans);
  --type-table-13: 400 0.8125rem/1.3 var(--font-sans);    /* compact dashboard tables, 28 px rows */
  --type-label-13: 500 0.8125rem/1.35 var(--font-sans);
  --type-note-13: 400 0.8125rem/1.5 var(--font-sans);
  --type-data-15-mono: 400 0.9375rem/1.35 var(--font-mono);   /* figures in a table */
  --type-label-13-mono: 400 0.8125rem/1.45 var(--font-mono);
  --type-label-12-mono: 400 0.75rem/1.4 var(--font-mono);
  --tracking-display: -0.035em;
  --tracking-heading: -0.02em;

  /* Space: a 4 px base, wider between sections than within them. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 112px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 40rem;          /* prose line, about 70 characters of 18 px DM Sans */
  --page: 80rem;             /* 1280 px, the redesign's container */
  --nav-height: 64px;        /* the sticky masthead; scroll-padding keeps focus clear of it (WCAG 2.4.11) */

  /* Rules, radii, depth. */
  --hairline: 1px solid var(--line);
  --rule-1: 1px solid var(--line-strong);  /* table heads and the foot of a table */
  --rule-2: 1px solid var(--line-strong);  /* a section's rule: a hairline in the redesign, as heavy as rule-1 */
  --radius-0: 0;             /* tables, blocks, sections */
  --radius-2: 2px;           /* inputs, buttons, chips; nothing is rounder */
  --shadow-menu: 0 0 0 1px var(--line-strong), 0 12px 28px -12px rgb(0 0 0 / 0.8); /* menus and dialogs only */
  --focus-outline: 3px solid var(--focus);
  --focus-bar: inset 0 0 0 2px var(--focus-ink);

  /* Motion: colour changes on hover, focus and disclosure only. Nothing moves in; nothing loops. */
  --dur-1: 120ms;
  --dur-2: 160ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* Print: a printed page is light whatever the screen shows (plan T29): the primitives again in light values, so a
   page prints black on white with the green darkened enough to read. */
@media print {
  :root {
    color-scheme: light;
    --ground: #ffffff;
    --surface: #f2f2f2;
    --surface-raised: #ebebeb;
    --line: #d4d4d4;
    --line-strong: #1a1a1a;
    --field: #767676;
    --ink: #111111;
    --ink-soft: #3d3d3d;
    --ink-faint: #595959;
    --green: #0e5c40;
    --green-strong: #0a4630;
    --green-ink: #ffffff;
    --green-deep: #0e5c40;
    --amber: #7a4d00;
    --off: #595959;
    --scrim: rgb(0 0 0 / 0.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-1: 0ms;
    --dur-2: 0ms;
  }
}
/* Slycer design system: the self-hosted faces (D129). Link this file, or import it, after tokens.css.
   DM Sans (roman and italic) and JetBrains Mono, variable fonts, Latin subset, woff2, from google/fonts at 9862abc0
   (fonts/manifest.json gives each file's sha256 and its source font), byte for byte the approved redesign's files.
   Preload fonts/DMSans-latin.woff2 and nothing else: it sets every text role. The italic and the mono load when a
   page uses them. SIL Open Font License 1.1, texts in fonts/OFL-*.txt; neither family has a Reserved Font Name. */
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-Italic-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
/* Slycer design system: element defaults every page shares, after tokens.css and fonts.css.

   The defaults sit in @layer base, Tailwind's own base layer when the page uses Tailwind, so any utility or
   component class beats them. Two rules stay outside any layer on purpose, so that a layered utility cannot undo
   them: the focus ring and the reduced-motion stop.

   Figures: the font shorthand resets font-variant-numeric, so each rule that sets font restates it. Tables,
   controls and code get tabular lining figures (columns line up); prose and headings get proportional lining ones. */

@layer base {
  :where(*, *::before, *::after) {
    box-sizing: border-box;
  }
  :where(html) {
    background-color: var(--background);
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-height) + var(--space-3));
    /* Tab scrolls a link just into view; at the bottom edge its 3 px ink bar, the 3:1 part of the ring, needs room. */
    scroll-padding-bottom: var(--space-3);
  }
  :where(body) {
    margin: 0;
    background-color: var(--background);
    color: var(--foreground);
    font: var(--type-copy-16);
    font-variant-numeric: var(--figures-text);
    font-kerning: normal;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  :where(h1) {
    font: var(--type-heading-32);
    font-variant-numeric: var(--figures-text);
    letter-spacing: var(--tracking-heading);
    text-wrap: balance;
  }
  :where(h2) {
    font: var(--type-heading-22);
    font-variant-numeric: var(--figures-text);
    letter-spacing: var(--tracking-heading);
  }
  :where(h3) {
    font: var(--type-title-19);
    font-variant-numeric: var(--figures-text);
  }
  :where(button, input, select, textarea) {
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
    color: inherit;
  }
  /* Safari draws no box-shadow on a control with its native look, and the focus ring's ink bar is a box-shadow
     (without it the yellow is 1.6:1 on light paper). GOV.UK resets the look for the same reason. Plain selectors,
     not :where(), so Tailwind's preflight `button { appearance: button }` does not win back. Select, checkbox and
     radio keep their native look until the form controls draw them (plan T15). */
  button,
  textarea,
  input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"]) {
    -webkit-appearance: none;
    appearance: none;
  }
  :where(table) {
    border-collapse: collapse;
    font: var(--type-table-15);
    font-variant-numeric: var(--figures-table);
  }
  :where(code, kbd, samp, pre) {
    font: var(--type-label-13-mono);
    font-variant-numeric: var(--figures-table);
  }
  /* Links are ink with a green underline (the underline, not the colour, marks them: WCAG 1.4.1); hover turns the
     text green and thickens the underline. */
  :where(a) {
    color: var(--foreground);
    text-decoration-line: underline;
    text-decoration-color: var(--green);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    transition: color var(--dur-1) var(--ease), text-decoration-color var(--dur-1) var(--ease);
  }
  :where(a:hover) {
    color: var(--green);
    text-decoration-thickness: 2px;
  }
  :where(hr) {
    border: 0;
    border-top: var(--rule-1);
  }
  :where(summary) {
    cursor: pointer;
  }
  /* A date or a stamp in <time> stays on one line: browsers may break after the hyphen in 2026-10-29. */
  :where(time) {
    white-space: nowrap;
  }
  ::selection {
    background-color: var(--green);
    color: var(--green-ink);
  }
}

/* The black ground on both html and body, unlayered: a host that frames the page, or a layered reset, must not leave
   a white ground showing (a preview of the redesign once did). */
html,
body {
  background-color: var(--background);
}

/* Focus, unlayered: the green outline with a black bar inside it, so the ring parts from a green button as well as
   from the black ground; the single-tone ring shadcn and Fumadocs draw (ring-2 ring-ring) is replaced by it.
   Being unlayered, it beats every layered rule whatever the specificity: a component with its own focus style
   sets it in an unlayered rule with a more specific selector. */
:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 0;
  box-shadow: var(--focus-bar);
}
/* A focused link takes the green ground with a black bar under it (the GOV.UK and ONS pattern). Nothing is drawn to
   its left: a link in running text sits right after a letter or a space, and a rule outside its box covered the end
   of the word before it (T20 review). Links that start their own line in a list add a left rule in components.css.
   The transparent outline shows in forced-colours mode, where backgrounds and shadows are dropped. */
a:focus-visible {
  outline: 3px solid transparent;
  background-color: var(--focus);
  color: var(--focus-ink);
  box-shadow: 0 -2px var(--focus), 0 3px var(--focus-ink);
  text-decoration-line: none;
}
/* The skip link's target (<main id="main" tabindex="-1">) takes focus so the next Tab starts inside it, but it is
   not a control: no ring round the whole page (GOV.UK drops the outline on its skip link's target the same way). */
main[tabindex="-1"]:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Reduced motion, unlayered and !important: the duration tokens are already 0 there; this also stops the motion of
   anything that does not use them (Tailwind duration-* utilities, Fumadocs, third-party widgets). */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation: none !important;
    transition: none !important;
  }
}
/* Slycer design system: components, after tokens.css, fonts.css and base.css (plan T14: the data components; T15:
   the site and account ones; T17: the page layouts in css/page.css; T29: the legal document page in
   css/document.css; T30: the sources page in css/sources.css). Reference markup for each is in
   components/<name>.html (the page layouts: launch/design/screens/); React wrappers in react/.

   This file is the index: one stylesheet per component in css/, each in @layer components, so Tailwind utilities
   beat them and base.css's element defaults lose to them. A bundler or Tailwind inlines the imports; a plain <link>
   fetches them from css/ next to this file. The focus rules below are unlayered, like base.css's ring, so no layered
   rule can take them away. Colours come only from tokens.css. Motion is colour changes on hover and focus, 120 to
   160 ms, nothing else. */

/* Slycer design system: the screen-reader text, figure and mono helpers every component uses (web/design/css/shared.css, imported by components.css). In @layer components,
   so Tailwind utilities beat it; colours only from tokens.css. */

@layer components {
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  /* Figures line up on the right; every value, count and date column. */
  .num {
    text-align: right;
    font-variant-numeric: var(--figures-table);
  }
  .mono {
    font: var(--type-label-13-mono);
    font-variant-numeric: var(--figures-table);
  }
}

/* Slycer design system: buttons (web/design/css/buttons.css, imported by components.css). In @layer components,
   so Tailwind utilities beat it; colours only from tokens.css. */

@layer components {
  /* ---- Buttons: primary and quiet (plan T14); destructive and small are in forms.css (plan T15) ----------------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: 0 18px;
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration-line: none;
    border: 1px solid var(--primary);
    border-radius: var(--radius-2);
    background-color: var(--primary);
    color: var(--primary-foreground);
    cursor: pointer;
    transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
      color var(--dur-1) var(--ease);
  }
  .btn:hover {
    background-color: var(--green-strong);
    border-color: var(--green-strong);
    color: var(--green-ink);
  }
  .btn:active {
    background-color: var(--green);
    box-shadow: inset 0 2px 0 var(--green-deep);
  }
  .btn--quiet {
    background-color: var(--secondary);
    border-color: var(--input);
    color: var(--secondary-foreground);
  }
  .btn--quiet:hover {
    background-color: var(--accent);
    border-color: var(--green);
    color: var(--accent-foreground);
  }
  .btn--quiet:active {
    background-color: var(--surface);
    box-shadow: none;
  }
  .btn:disabled,
  .btn[aria-disabled="true"] {
    background-color: transparent;
    border: 1px dashed var(--input);
    color: var(--ink-faint);
    cursor: not-allowed;
  }
}

/* Slycer design system: the series table (web/design/css/series-table.css, imported by components.css). In @layer components,
   so Tailwind utilities beat it; colours only from tokens.css. */

@layer components {
  /* ---- Series table -----------------------------------------------------------------------------------------
     A statistical table, not a grid of cards: number and title, a subtitle with measure, geography, range and
     adjustment, ruled top and bottom, hairlines between rows, values right-aligned with a true minus, the year
     printed once, the latest row marked twice (a blue rule and the wash), then Source, Notes and the count note.
     The scroll wrapper is a labelled region with tabindex 0, so a keyboard can scroll it (WCAG 2.1.1); the first
     column stays put while the rest scrolls. */
  .series {
    margin: 0;
    min-width: 0;
  }
  .series-scroll {
    overflow-x: auto;
    max-width: 100%;
  }
  /* Wider than the screen: the frame's right edge fades while there is more to the right, so a cut figure reads as
     "scroll", not as broken. A small page script sets data-more (screens' SERIES_SCRIPT); without it the table still
     scrolls. The fade is the page ground over the cells, never a colour of its own. */
  .series-frame {
    position: relative;
  }
  .series-frame::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--space-6);
    background-image: linear-gradient(to right, transparent, var(--background));
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-1) var(--ease);
  }
  .series-frame[data-more]::after {
    opacity: 1;
  }
  .series-table {
    width: 100%;
    border-collapse: separate; /* sticky cells keep their own rules only with separate borders */
    border-spacing: 0;
    font: var(--type-table-15);
    font-variant-numeric: var(--figures-table);
    --series-row-ground: var(--background);
  }
  /* The title sits above the scroll region, so a table wider than the screen never scrolls its title out of view;
     the table's own caption (visually hidden) carries the same words for screen readers. */
  .series-caption {
    margin-bottom: var(--space-3);
  }
  .series-caption__title {
    display: block;
    font: var(--type-title-19);
    font-variant-numeric: var(--figures-text);
    color: var(--foreground);
  }
  .series-caption__sub {
    display: block;
    margin-top: 2px;
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-soft);
  }
  .series-table thead th {
    padding: var(--space-2) var(--space-3) var(--space-2) 0;
    border-top: var(--rule-1);
    border-bottom: var(--rule-1);
    font: var(--type-label-12-mono);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-soft);
    text-align: left;
    vertical-align: bottom;
    white-space: nowrap;
  }
  .series-table tbody th,
  .series-table tbody td {
    padding: 7px var(--space-3) 7px 0;
    border-bottom: var(--hairline);
    font-weight: 400;
    text-align: left;
    vertical-align: baseline;
    background-color: var(--series-row-ground);
    transition: background-color var(--dur-1) var(--ease);
  }
  .series-table tbody tr:last-child > * {
    border-bottom: var(--rule-1);
  }
  .series-table .num {
    padding-left: var(--space-5);
    padding-right: 0;
    text-align: right;
    white-space: nowrap;
  }
  /* Figures are data: set in the mono, as every figure on the site is. */
  .series-table tbody td.num {
    font: var(--type-data-15-mono);
    font-variant-numeric: var(--figures-table);
  }
  .series-table tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: var(--series-row-ground);
  }
  /* In the file view the first column is the geography; a hairline on its right edge shows where rows scroll under. */
  .series-table--file tr > :first-child {
    box-shadow: inset -1px 0 0 var(--line);
    padding-right: var(--space-4);
  }
  .series-table--file :is(th, td) {
    white-space: nowrap; /* the file's values as written: a period or a time never breaks */
  }
  .series-table--file tbody td + td,
  .series-table--file thead th + th {
    padding-left: var(--space-4);
  }
  .series-table--file .num {
    padding-left: var(--space-5);
  }
  .series-id {
    display: block;
    margin-top: 2px;
    font: var(--type-label-12-mono);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-faint);
    white-space: nowrap; /* an identifier to copy stays whole; the table scrolls instead (T22 round 1) */
  }
  /* The one place an ID may break (t31_hero.table puts it at the dot nearest the middle). Hidden, it is no break
     opportunity, so an ID breaks only where the phone rule below shows the mark (T22 run of 2026-11-09, tell 2). */
  .series-id__brk {
    display: none;
  }
  .series-table td.series-id-cell {
    font: var(--type-label-12-mono);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-soft);
    white-space: nowrap;
  }
  .series-period {
    white-space: nowrap;
  }
  .series-period__year {
    display: inline-block;
    min-width: 3.25rem;
    font-weight: 600;
  }
  .series-period__rest {
    color: var(--ink-soft);
  }
  @media (max-width: 480px) {
    .series-table .num {
      padding-left: var(--space-3);
    }
    .series-period__year {
      min-width: 2.75rem;
    }
    /* The landing's Table 1 keeps every column in view on a phone (T21 review 2) and still shows each series ID
       under its head, the H1's promise: the ID breaks at its one mark, a dot, onto two lines (T22 run of
       2026-11-09, round 1, tell 2). */
    .series-table--ids-in-source .series-id {
      white-space: normal;
    }
    .series-table--ids-in-source .series-id__brk {
      display: inline;
    }
  }
  /* At 320 the shown IDs left Table 1 8 px wider than its frame: under 360 px its number columns keep 8 px apart. */
  @media (max-width: 359px) {
    .series-table--ids-in-source .num {
      padding-left: var(--space-2);
    }
  }
  /* Hover is the inset surface, so a hovered row never reads as a second latest row; the latest row keeps the wash. */
  .series-table tbody tr:hover {
    --series-row-ground: var(--muted);
  }
  .series-table tbody tr.is-latest {
    --series-row-ground: var(--accent);
  }
  .series-table tr.is-latest td {
    color: var(--green);
  }
  .series-table tr.is-latest .series-period__rest {
    color: var(--foreground);
  }
  /* The green rule runs under the whole row, the period cell included, so it starts where the wash starts. */
  .series-table tr.is-latest > * {
    box-shadow: inset 0 -2px var(--green);
  }
  .series-table--file tr.is-latest > :first-child {
    box-shadow: inset -1px 0 0 var(--line), inset 0 -2px var(--green);
  }
  /* A footnote mark: a link to the numbered note under the table. */
  .series-ref {
    font-size: 0.75em;
    line-height: 0;
    vertical-align: super;
    font-weight: 500;
  }
  /* The mark sits on its word; the link's extra hit area is on its right (T22 round 3). */
  .series-ref a {
    padding: 0 2px 0 1px;
  }
  /* Compact density, for dashboard screens only (D123 graft 4 from B): 28 px rows, the 13 px table type. */
  .series-table[data-density="compact"] {
    font: var(--type-table-13);
    font-variant-numeric: var(--figures-table);
  }
  .series-table[data-density="compact"] tbody th,
  .series-table[data-density="compact"] tbody td {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  /* Source, notes and the count note under a table. */
  .series-notes {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-4);
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .series-notes p {
    margin: 0;
  }
  .series-notes strong {
    color: var(--foreground);
    font-weight: 600;
  }
  .notes-list {
    display: grid;
    gap: var(--space-1);
    margin: var(--space-1) 0 0;
    padding-left: 1.4em;
  }
  .notes-list li::marker {
    color: var(--foreground);
    font-variant-numeric: var(--figures-table);
  }
  .notes-list li:target {
    background-color: var(--accent);
    color: var(--foreground);
  }
  .count-note {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-4);
    align-items: baseline;
    padding-top: var(--space-3);
    border-top: var(--hairline);
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-soft);
  }
  .count-note a {
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
  }
}

/* Slycer design system: the series header (web/design/css/series-header.css, imported by components.css). In @layer components,
   so Tailwind utilities beat it; colours only from tokens.css. */

@layer components {
  /* ---- Series header (FRED order), an optional block above a table ------------------------------------------- */
  .series-header {
    border-top: var(--rule-2);
    padding-top: var(--space-3);
  }
  .series-header__title {
    margin: 0;
    font: var(--type-heading-22);
    font-variant-numeric: var(--figures-text);
  }
  .series-header__id {
    margin: var(--space-1) 0 0;
    font: var(--type-label-13-mono);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-soft);
    overflow-wrap: anywhere;
  }
  .series-header__facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0 var(--space-5);
    margin: var(--space-4) 0 0;
    border-top: var(--hairline);
  }
  .series-header__facts > div {
    padding: var(--space-2) 0;
    border-bottom: var(--hairline);
    min-width: 0;
  }
  .series-header__facts dt {
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    font-weight: 400;
    color: var(--ink-faint);
  }
  .series-header__facts dd {
    margin: 2px 0 0;
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
    color: var(--foreground);
  }
  .series-header__facts .series-header__value {
    font-weight: 600;
  }
  .series-header__when {
    color: var(--ink-soft);
    font-weight: 400;
  }
  .series-header__dataset {
    margin: var(--space-3) 0 0;
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
}

/* Slycer design system: the source chip and the freshness badge, which share its glyphs (web/design/css/source-chip.css, imported by components.css). In @layer components,
   so Tailwind utilities beat it; colours only from tokens.css. */

@layer components {
  /* ---- Source chip and freshness badge -----------------------------------------------------------------------
     A chip is the agency, then its state; a badge is the state alone, for a row or a receipt. The glyph repeats the
     state for a quick scan and is aria-hidden; the words carry it (WCAG 1.4.1). The agency never wraps: a chip
     wider than its column moves the state below the agency, ruled on top. */
  .chip {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: stretch;
    max-width: 100%;
    min-height: 30px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--input);
    border-radius: var(--radius-2);
    background-color: var(--background);
    color: var(--foreground);
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    text-align: left;
    text-decoration-line: none;
    vertical-align: middle;
    transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
  }
  .chip__src {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 0 9px 0 8px;
    font-weight: 600;
    white-space: nowrap;
  }
  .chip__state {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    margin: -1px 0 0 -1px;
    padding: 4px 9px;
    border-top: var(--hairline);
    border-left: var(--hairline);
    color: var(--ink-soft);
    font-weight: 400;
    white-space: normal;
  }
  a.chip,
  button.chip {
    cursor: pointer;
  }
  a.chip:hover,
  button.chip:not([aria-disabled="true"]):hover {
    background-color: var(--accent);
    border-color: var(--green);
  }
  a.chip:hover .chip__src {
    text-decoration-line: underline;
    text-underline-offset: 0.18em;
  }
  /* As a filter (D123, from C): selected is the wash with a blue rule under it; disabled is quiet and inert. */
  .chip[aria-pressed="true"] {
    background-color: var(--accent);
    box-shadow: inset 0 -2px var(--green);
  }
  .chip[aria-pressed="true"] .chip__src::after {
    content: "\2713";
    margin-left: 2px;
    font-weight: 600;
  }
  .chip[aria-disabled="true"] {
    color: var(--ink-faint);
    border-style: dashed;
    cursor: not-allowed;
  }
  .chip[aria-disabled="true"] .chip__state {
    color: var(--ink-faint);
  }

  .badge {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    max-width: 100%;
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    font-weight: 500;
    color: var(--ink-soft);
  }
  .badge__mark {
    align-self: center;
  }
  .badge__when {
    color: var(--ink-faint);
    font-weight: 400;
  }

  /* The glyphs, one shape per state, shared by the chip and the badge. */
  .chip__mark,
  .badge__mark {
    display: inline-block;
    flex: none;
    width: 9px;
    height: 9px;
  }
  [data-state="live"] :is(.chip__mark, .badge__mark) {
    border-radius: 50%;
    background-color: var(--status-live);
  }
  [data-state="local-copy"] :is(.chip__mark, .badge__mark) {
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--ink-soft);
    background-image: linear-gradient(90deg, var(--ink-soft) 50%, transparent 50%);
  }
  [data-state="stale"] :is(.chip__mark, .badge__mark) {
    width: 10px;
    background-color: var(--status-stale);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
  }
  [data-state="live-failed"] :is(.chip__mark, .badge__mark) {
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--status-stale);
    background-image: linear-gradient(90deg, var(--status-stale) 50%, transparent 50%);
  }
  [data-state="not-built"] :is(.chip__mark, .badge__mark) {
    border: 1.5px dashed var(--status-idle);
    border-radius: 50%;
  }
  :is([data-state="terms-needed"], [data-state="terms-accepted"]) :is(.chip__mark, .badge__mark) {
    width: auto;
    height: auto;
    font: 600 0.9375rem/1 var(--font-sans);
    font-variant-numeric: var(--figures-text);
  }
  :is([data-state="terms-needed"], [data-state="terms-accepted"]) :is(.chip__mark, .badge__mark)::before {
    content: "\00a7";
  }
  [data-state="terms-needed"] :is(.chip__mark, .badge__mark) {
    color: var(--status-terms);
  }
  [data-state="terms-accepted"] :is(.chip__mark, .badge__mark) {
    color: var(--ink-soft);
  }
  :is([data-state="key-missing"], [data-state="contact-email-missing"]) :is(.chip__mark, .badge__mark) {
    border-radius: 1px;
    box-shadow: inset 0 0 0 1.5px var(--status-idle);
  }
  [data-state="computed"] :is(.chip__mark, .badge__mark) {
    width: 8px;
    height: 8px;
    margin: 0 1px;
    box-shadow: inset 0 0 0 1.5px var(--ink-soft);
    transform: rotate(45deg);
  }
  [data-state="not-published"] :is(.chip__mark, .badge__mark) {
    height: 2px;
    background-color: var(--ink-faint);
  }
  [data-state="uncurated"] :is(.chip__mark, .badge__mark) {
    border: 1.5px dotted var(--ink-faint);
    border-radius: 50%;
  }
  [data-state="not-covered"] :is(.chip__mark, .badge__mark) {
    background-image: linear-gradient(45deg, transparent 40%, var(--ink-faint) 40% 60%, transparent 60%),
      linear-gradient(-45deg, transparent 40%, var(--ink-faint) 40% 60%, transparent 60%);
  }
  /* Coming soon (plan T28): an open ring, a source not yet checked on a clean install. */
  [data-state="coming-soon"] :is(.chip__mark, .badge__mark) {
    border: 1.5px solid var(--ink-faint);
    border-right-color: transparent;
    border-radius: 50%;
  }
  /* State words and chip edges by state. */
  [data-state="live"] :is(.chip__state, .badge__state) {
    color: var(--status-live);
  }
  :is([data-state="stale"], [data-state="live-failed"]) :is(.chip__state, .badge__state) {
    color: var(--status-stale);
  }
  [data-state="terms-needed"] :is(.chip__state, .badge__state) {
    color: var(--status-terms);
  }
  :is([data-state="not-built"], [data-state="key-missing"], [data-state="contact-email-missing"])
    :is(.chip__state, .badge__state) {
    color: var(--status-idle);
  }
  :is([data-state="not-published"], [data-state="uncurated"], [data-state="not-covered"], [data-state="coming-soon"])
    :is(.chip__state, .badge__state) {
    color: var(--ink-faint);
  }
  .chip:is([data-state="stale"], [data-state="live-failed"]) {
    border-color: var(--status-stale);
  }
  .chip[data-state="terms-needed"] {
    border-color: var(--status-terms);
  }
  .chip[data-state="not-built"] {
    border-style: dashed;
  }
  .chip[data-state="uncurated"] {
    border-style: dotted;
  }
}

/* Slycer design system: the source count (web/design/css/source-count.css, imported by components.css; plan T28).
   In @layer components, so Tailwind utilities beat it; colours only from tokens.css.

   The count, then legal's terms line under it (naming rule 10: D309, D312), both from data/source-count.json. The
   terms line hangs on no mark: the section sign means one thing, a source whose terms you accept in Slycer before
   its first pull (ToS 3.4), and the line counts more sources than that (T22 run of 2026-11-09, round 3 tell 1). */

@layer components {
  .source-count {
    max-width: var(--measure);
    margin: 0;
    color: var(--ink-soft);
  }
  .source-count p {
    margin: 0;
  }
  .source-count__figure {
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-text);
    color: var(--foreground);
  }
  .source-count__n {
    font-weight: 600;
    font-variant-numeric: var(--figures-table);
  }
  .source-count__terms {
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .source-count__figure + .source-count__terms {
    margin-top: var(--space-1);
  }
  /* On the sources page only (data-variant="on-sources"): the sources the line counts, each a link to its row there,
     in place of a link to the page the reader is on (T30 review 2026-11-09). Set under the line's words; each link a
     24 px target (WCAG 2.5.8). */
  .source-count__list {
    margin: var(--space-2) 0 0;
    padding: 0;
    list-style: none;
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
  }
  .source-count__list li {
    break-inside: avoid;
  }
  /* 4 px of ground at the start, taken back by the margin so the text stays put: a focused link's left rule
     (components.css) then sits clear of the first letter, as it does in the legal contents (T20 review round 2). */
  .source-count__list a {
    display: inline-block;
    min-height: 24px;
    padding-top: 2px;
    padding-inline-start: 4px;
    margin-inline-start: -4px;
  }
}

/* Slycer design system: the request plan card (web/design/css/plan-card.css, imported by components.css). In @layer components,
   so Tailwind utilities beat it; colours only from tokens.css. */

@layer components {
  /* ---- Request plan card -------------------------------------------------------------------------------------
     A ruled block, never a floating card: the request in the reader's words, the three steps (Plan, Terms, Fetch;
     D123 graft 2), the plan lines, and what happens next. A restricted source adds the terms rows (D015, D166);
     after the trial the plan still shows and the fetch is off (D011). */
  .plan-card {
    border-top: var(--rule-2);
    border-bottom: var(--rule-1);
    min-width: 0;
  }
  .plan-card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-1) var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: var(--rule-1);
  }
  .plan-card__title {
    margin: 0;
    font: var(--type-title-19);
    font-variant-numeric: var(--figures-text);
  }
  .plan-card__id {
    font: var(--type-label-13-mono);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-soft);
  }
  .plan-card__ask {
    margin: 0;
    padding: var(--space-3) 0;
    border-bottom: var(--hairline);
    font: var(--type-copy-16);
    font-variant-numeric: var(--figures-text);
  }
  .plan-card__ask q {
    quotes: "\201C" "\201D";
  }
  .plan-steps {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: var(--hairline);
  }
  .plan-steps li {
    display: flex;
    flex: 1 1 8rem;
    align-items: baseline;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3) var(--space-2) 0;
    box-shadow: inset 0 2px var(--line);
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-faint);
  }
  .plan-steps__no {
    font: var(--type-title-19);
    font-variant-numeric: var(--figures-table);
    font-weight: 400;
  }
  .plan-steps__name {
    font-weight: 600;
  }
  .plan-steps__status {
    font-weight: 400;
  }
  .plan-steps .is-done {
    color: var(--ink-soft);
    box-shadow: inset 0 2px var(--ink-soft);
  }
  .plan-steps [aria-current="step"] {
    color: var(--foreground);
    box-shadow: inset 0 3px var(--green);
  }
  .plan-steps [aria-current="step"] .plan-steps__no {
    color: var(--green);
  }
  .plan-card__body {
    display: grid;
    gap: var(--space-4);
    padding: var(--space-4) 0;
  }
  .plan-card__body > * {
    margin: 0;
  }
  .plan-lines {
    width: 100%;
    border-collapse: collapse;
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-table);
  }
  .plan-lines th,
  .plan-lines td {
    padding: 5px var(--space-3) 5px 0;
    border-bottom: var(--hairline);
    font-weight: 400;
    text-align: left;
    vertical-align: top;
  }
  .plan-lines thead th {
    border-bottom: var(--rule-1);
    font-weight: 600;
    white-space: nowrap;
  }
  .plan-lines tbody th {
    font-weight: 600;
  }
  .plan-lines .mono {
    font: var(--type-label-12-mono);
    font-variant-numeric: var(--figures-table);
  }
  .plan-card__note {
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .plan-alts summary {
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    color: var(--green);
    min-height: 24px;
  }
  .plan-alts ul {
    display: grid;
    gap: var(--space-1);
    margin: var(--space-2) 0 0;
    padding-left: 1.2em;
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .plan-alts code {
    font: var(--type-label-12-mono);
    font-variant-numeric: var(--figures-table);
    color: var(--foreground);
    overflow-wrap: anywhere;
  }
  .plan-terms {
    margin: 0;
    border-top: var(--hairline);
  }
  .plan-terms > div {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: var(--hairline);
  }
  .plan-terms dt {
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    font-weight: 600;
  }
  .plan-terms dd {
    margin: 0;
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-text);
  }
  .plan-terms blockquote {
    margin: 0;
    padding-left: var(--space-3);
    border-left: 2px solid var(--status-terms);
  }
  .plan-terms blockquote + p,
  .plan-terms p + p {
    margin-top: var(--space-2);
  }
  .plan-terms p {
    margin: 0;
  }
  .plan-terms cite {
    display: block;
    margin-top: var(--space-1);
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    font-style: normal;
    color: var(--ink-soft);
  }
  .plan-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
  }
  .plan-line {
    padding: var(--space-3) var(--space-4);
    background-color: var(--card);
    color: var(--card-foreground);
    font: var(--type-label-12-mono);
    font-variant-numeric: var(--figures-table);
    overflow-wrap: anywhere;
  }
  @media (max-width: 560px) {
    .plan-terms > div {
      grid-template-columns: minmax(0, 1fr);
      gap: var(--space-1);
    }
  }
}

/* Slycer design system: the CLI and code block (web/design/css/cli-block.css, imported by components.css). In @layer components,
   so Tailwind utilities beat it; colours only from tokens.css. */

@layer components {
  /* ---- CLI and code block with a client switcher ---------------------------------------------------------------
     One radio group, one tab stop, arrow keys move the choice (the theme control's pattern, D242). Without :has()
     every panel shows, which still reads; with it, only the chosen client's. */
  .cli-block {
    border-top: var(--rule-2);
    min-width: 0;
  }
  .cli-switch {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: var(--space-3) 0;
    border: 0;
    border-bottom: var(--hairline);
    min-width: 0;
  }
  .cli-switch legend {
    float: left;
    margin-right: var(--space-2);
    padding: 0;
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-faint);
    line-height: 34px;
  }
  .cli-switch__option {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    min-height: 34px;
    padding: 0 var(--space-3);
    border: 1px solid var(--input);
    border-radius: var(--radius-2);
    background-color: var(--background);
    color: var(--foreground);
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    cursor: pointer;
    transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
      color var(--dur-1) var(--ease);
  }
  .cli-switch__option input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }
  .cli-switch__option:hover {
    background-color: var(--accent);
    border-color: var(--green);
  }
  .cli-switch__option:has(input:checked) {
    background-color: var(--foreground);
    border-color: var(--foreground);
    color: var(--background);
  }
  .cli-switch__option:has(input:checked)::before {
    content: "\2713";
    font-weight: 600;
  }
  .cli-block:has(input[value="desktop"]:checked) .cli-panel:not([data-client="desktop"]),
  .cli-block:has(input[value="code"]:checked) .cli-panel:not([data-client="code"]),
  .cli-block:has(input[value="cowork"]:checked) .cli-panel:not([data-client="cowork"]),
  .cli-block:has(input[value="cursor"]:checked) .cli-panel:not([data-client="cursor"]),
  .cli-block:has(input[value="chatgpt"]:checked) .cli-panel:not([data-client="chatgpt"]) {
    display: none;
  }
  /* data-clients lists the clients a page offers (D363): a client left off loses its option and its panel. Both carry
     data-client, so this needs no :has(). Pages before the public launch leave ChatGPT off (D209). */
  .cli-block[data-clients]:not([data-clients~="desktop"]) [data-client="desktop"],
  .cli-block[data-clients]:not([data-clients~="code"]) [data-client="code"],
  .cli-block[data-clients]:not([data-clients~="cowork"]) [data-client="cowork"],
  .cli-block[data-clients]:not([data-clients~="cursor"]) [data-client="cursor"],
  .cli-block[data-clients]:not([data-clients~="chatgpt"]) [data-client="chatgpt"] {
    display: none;
  }
  .cli-panel {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-4) 0;
    border-bottom: var(--rule-1);
    min-width: 0;
  }
  .cli-panel > * {
    margin: 0;
  }
  .cli-panel__title {
    font: var(--type-title-19);
    font-variant-numeric: var(--figures-text);
  }
  .cli-steps {
    display: grid;
    gap: var(--space-2);
    padding-left: 1.4em;
    font: var(--type-copy-16);
    font-variant-numeric: var(--figures-text);
    max-width: var(--measure);
  }
  .cli-steps code,
  .cli-note code {
    font: var(--type-label-13-mono);
    font-variant-numeric: var(--figures-table);
    overflow-wrap: anywhere;
  }
  .cli-code {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    margin-bottom: var(--space-4); /* never flush on the paragraph after it (T18 generated-look read, tell 13) */
    background-color: var(--card);
    color: var(--card-foreground);
  }
  .cli-code pre {
    margin: 0;
    padding: var(--space-3) var(--space-4);
    overflow-x: auto;
    font: var(--type-label-13-mono);
    font-variant-numeric: var(--figures-table);
    white-space: pre;
  }
  .cli-code__label {
    grid-column: 1 / -1;
    padding: var(--space-2) var(--space-4) 0;
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-faint);
  }
  .cli-copy {
    min-height: 32px;
    margin: var(--space-2);
    padding: 0 var(--space-3);
    border: 1px solid var(--input);
    border-radius: var(--radius-2);
    background-color: var(--background);
    color: var(--foreground);
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    cursor: pointer;
    transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
  }
  .cli-copy:hover {
    background-color: var(--accent);
    border-color: var(--green);
  }
  .cli-copy__status {
    grid-column: 1 / -1;
    padding: 0 var(--space-4) var(--space-2);
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .cli-copy__status:empty {
    padding: 0; /* kept rendered, so the status region is in place before it speaks */
  }
  .cli-note {
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
    max-width: var(--measure);
  }
}

/* Slycer design system: the callout (web/design/css/callout.css, imported by components.css). In @layer components,
   so Tailwind utilities beat it; colours only from tokens.css. */

@layer components {
  /* ---- Callout ---------------------------------------------------------------------------------------------------
     A ruled note beside the text, not a coloured box: a 3 px rule and a label in words, the glyph a second cue. No
     fill: a bar on a tinted box is the docs-kit admonition (T22 run of 2026-11-09, round 1, tell 1).
     Tones: note (ink), caution (ochre, a triangle), terms (brick, a section sign). */
  .callout {
    display: grid;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4);
    border-left: 3px solid var(--ink-soft);
    color: var(--foreground);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-text);
    max-width: 46rem;
  }
  .callout > * {
    margin: 0;
  }
  .callout__label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    font-weight: 600;
  }
  /* A plain note has no mark: a filled dot is the chip family's "fetched live" (T22 run of 2026-11-09, round 2
     tell 5). The caution triangle and the terms section sign stay. */
  .callout__mark {
    display: none;
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--ink-soft);
  }
  .callout[data-tone="caution"] {
    border-left-color: var(--status-stale);
  }
  .callout[data-tone="caution"] .callout__label {
    color: var(--status-stale);
  }
  .callout[data-tone="caution"] .callout__mark {
    display: inline-block;
    width: 10px;
    border-radius: 0;
    background-color: var(--status-stale);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
  }
  .callout[data-tone="terms"] {
    border-left-color: var(--status-terms);
  }
  .callout[data-tone="terms"] .callout__label {
    color: var(--status-terms);
  }
  .callout[data-tone="terms"] .callout__mark {
    display: inline-block;
    width: auto;
    height: auto;
    border-radius: 0;
    background-color: transparent;
    font: 600 0.9375rem/1 var(--font-sans);
    font-variant-numeric: var(--figures-text);
  }
  .callout[data-tone="terms"] .callout__mark::before {
    content: "\00a7";
  }
  .callout code {
    font: var(--type-label-13-mono);
    font-variant-numeric: var(--figures-table);
  }
}

/* Slycer design system: form controls (web/design/css/forms.css, imported by components.css). In @layer components,
   so Tailwind utilities beat it; colours only from tokens.css. */

@layer components {
  /* ---- Fields ---------------------------------------------------------------------------------------------------
     Label above, hint under the label, the control, then the error. An error adds a 3 px rule down the left of the
     whole field and the word "Error:" before its message (the GOV.UK pattern): colour is never the only cue. */
  .field {
    display: grid;
    gap: var(--space-1);
    max-width: 32rem;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .field + .field {
    margin-top: var(--space-5);
  }
  .field__label {
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
    font-weight: 600;
    color: var(--foreground);
    padding: 0;
  }
  .field__hint {
    margin: 0;
    max-width: var(--measure);
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .field__hint code,
  .field__saved code {
    font: var(--type-label-12-mono);
    font-variant-numeric: var(--figures-table);
  }
  .field__error {
    margin: 0;
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    font-weight: 600;
    color: var(--destructive);
  }
  .field__saved {
    margin: 0;
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-soft);
  }
  .field__fingerprint {
    font: var(--type-label-13-mono);
    font-variant-numeric: var(--figures-table);
    color: var(--foreground);
  }
  .field--error {
    padding-left: var(--space-3);
    border-left: 3px solid var(--destructive);
  }
  .field__input,
  .select {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: var(--space-1) 0 0;
    padding: 0 var(--space-3);
    border: 1px solid var(--input);
    border-radius: var(--radius-2);
    background-color: var(--popover);
    color: var(--popover-foreground);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--dur-1) var(--ease);
  }
  .field__input--short {
    max-width: 8rem;
  }
  .field__input--key {
    font: var(--type-label-13-mono);
    font-variant-numeric: var(--figures-table);
    letter-spacing: 0.04em;
  }
  .field__input:hover,
  .select:hover {
    border-color: var(--ink-soft);
  }
  .field__input[aria-invalid="true"],
  .select[aria-invalid="true"] {
    border-color: var(--destructive);
    border-width: 2px;
    padding-left: calc(var(--space-3) - 1px);
  }
  .field__input::placeholder {
    color: var(--ink-faint);
    opacity: 1;
  }
  .field__row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: var(--space-2) var(--space-3);
  }
  .field__row .field__input {
    flex: 1 1 14rem;
  }

  /* Select: drawn, so Safari keeps the focus ring's ink bar (base.css). The arrow is the wrapper's, in ink. */
  .select-wrap {
    position: relative;
    display: block;
  }
  .select {
    padding-right: 40px;
    cursor: pointer;
  }
  .select-wrap::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 18px;
    width: 10px;
    height: 6px;
    background-color: var(--foreground);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    pointer-events: none;
  }

  /* Checkbox and radio: a 24 px box (WCAG 2.5.8) drawn with appearance none. Checked fills an inner square or dot
     in ink, inset by padding, so the box-shadow stays free for the focus ring. The label is the target too. */
  .checks {
    display: grid;
    gap: var(--space-2);
    margin: var(--space-2) 0 0;
    padding: 0;
    list-style: none;
  }
  .check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    min-height: 32px;
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
    color: var(--foreground);
    cursor: pointer;
  }
  .check input {
    flex: none;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 4px;
    border: 2px solid var(--input);
    border-radius: var(--radius-2);
    background-color: var(--popover);
    background-clip: content-box;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
  }
  .check input[type="radio"] {
    border-radius: 50%;
  }
  .check input:checked {
    border-color: var(--foreground);
    background-color: var(--foreground);
  }
  .check:hover input:not(:checked) {
    border-color: var(--ink-soft);
  }
  .check__text {
    padding-top: 1px;
  }
  .check__note {
    display: block;
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .checks--inline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
  }

  /* The confirm step of Revoke, in the dialog: brick on the page, never filled. The Revoke button on a device row is
     .btn--quiet, since taking a device off a seat is routine; the colour is kept for the step that acts. */
  .btn--destructive {
    background-color: var(--background);
    border-color: var(--destructive);
    color: var(--destructive);
  }
  .btn--destructive:hover {
    background-color: var(--accent);
    border-color: var(--destructive);
    color: var(--destructive);
  }
  .btn--small {
    min-height: 32px;
    padding: 0 var(--space-3);
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    font-weight: 500;
  }
  .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-5);
  }

  /* Windows high contrast: the drawn boxes lose their fill, so hand the checkbox and radio back to the system. */
  @media (forced-colors: active) {
    .check input {
      -webkit-appearance: auto;
      appearance: auto;
    }
  }
}

/* Slycer design system: the pricing table and the comparison table (web/design/css/pricing.css, imported by
   components.css). In @layer components, so Tailwind utilities beat it; colours only from tokens.css. */

@layer components {
  /* ---- Price sheet ------------------------------------------------------------------------------------------------
     A release table, not a row of cards: the price per seat set large once, the plans as columns of one ruled table,
     tax stated on the same line as the figure (D013). Every figure comes from launch/pricing/plans.json. */
  .price-sheet {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-5) var(--space-7);
    align-items: start;
    border-top: var(--rule-2);
    padding-top: var(--space-4);
    min-width: 0;
  }
  .price-sheet__lead {
    display: grid;
    gap: var(--space-3);
    min-width: 0;
  }
  .price-sheet__kicker {
    margin: 0;
    font: var(--type-label-12-mono);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-faint);
  }
  /* The two prices as hairline cells side by side, the figure in the mono, its period under it. */
  .price-figures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border: var(--hairline);
  }
  .price-figures div {
    display: grid;
    align-content: start;
    gap: var(--space-1);
    padding: var(--space-4) var(--space-5) var(--space-5);
    box-shadow: inset 0 1px 0 var(--green);
  }
  .price-figures div + div {
    border-left: var(--hairline);
  }
  .price-figures dt {
    order: 2;
    font: var(--type-label-12-mono);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-soft);
  }
  .price-figures dd {
    order: 1;
    margin: 0;
    font: var(--type-display-64);
    font-family: var(--font-mono);
    font-variant-numeric: var(--figures-table);
    letter-spacing: -0.05em;
    color: var(--foreground);
  }
  .price-sheet__line {
    margin: 0;
    max-width: var(--measure);
    font: var(--type-copy-16);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .price-sheet__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    margin-top: var(--space-2);
  }
  .price-draft {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    padding: 2px var(--space-2);
    border: 1px dashed var(--input);
    border-radius: var(--radius-2);
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    font-weight: 600;
    color: var(--ink-soft);
    justify-self: start;
  }

  .price-table,
  .compare-table {
    width: 100%;
    border-collapse: collapse;
    font: var(--type-table-15);
    font-variant-numeric: var(--figures-table);
  }
  .price-table caption,
  .compare-table caption {
    padding: 0 0 var(--space-2);
    font: var(--type-title-19);
    font-variant-numeric: var(--figures-text);
    text-align: left;
    caption-side: top;
  }
  :is(.price-table, .compare-table) thead th {
    padding: var(--space-2) var(--space-3) var(--space-2) 0;
    border-top: var(--rule-2);
    border-bottom: var(--rule-1);
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    font-weight: 600;
    text-align: left;
    vertical-align: bottom;
  }
  :is(.price-table, .compare-table) tbody :is(th, td) {
    padding: var(--space-3) var(--space-3) var(--space-3) 0;
    border-bottom: var(--hairline);
    text-align: left;
    vertical-align: top;
  }
  :is(.price-table, .compare-table) tbody th {
    font-weight: 400;
    color: var(--ink-soft);
  }
  :is(.price-table, .compare-table) tbody tr:last-child :is(th, td) {
    border-bottom: var(--rule-1);
  }
  .price-table__plan {
    font: var(--type-heading-22);
    font-variant-numeric: var(--figures-text);
    color: var(--foreground);
  }
  .price-table__seats {
    display: block;
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    font-weight: 400;
    color: var(--ink-soft);
  }
  .price-table .num,
  .price-table .price-table__figure {
    font-weight: 600;
    color: var(--foreground);
  }
  .price-table__note {
    display: block;
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    font-weight: 400;
    color: var(--ink-faint);
  }
  .price-table--headcount {
    max-width: 34rem;
  }
  .price-table--headcount .num {
    font-weight: 400;
  }
  /* Figures line up on the right; this beats the left alignment of the cell rule above. */
  .price-table :is(th, td).num {
    text-align: right;
    padding-right: 0;
    padding-left: var(--space-3);
  }
  .price-sheet__foot {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: var(--space-2);
    border-top: var(--hairline);
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
    max-width: 52rem;
  }

  /* ---- Comparison table -----------------------------------------------------------------------------------------
     Every cell answers in words; a square (yes) or a dash (no) repeats it for a quick scan and is hidden. The column
     a page is about can carry data-current, which washes it. */
  .compare-table td {
    white-space: nowrap;
  }
  .compare-table td .compare-why {
    display: block;
    white-space: normal;
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-faint);
  }
  .compare-mark {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: var(--space-2);
    vertical-align: 1px;
  }
  [data-answer="yes"] .compare-mark {
    background-color: var(--foreground);
  }
  [data-answer="no"] .compare-mark {
    height: 2px;
    vertical-align: 4px;
    background-color: var(--ink-faint);
  }
  [data-answer="no"] {
    color: var(--ink-soft);
  }
  .compare-table [data-current] {
    padding-left: var(--space-2);
    background-color: var(--accent);
  }
  .compare-table thead [data-current] {
    box-shadow: inset 0 -2px var(--green);
  }

  @media (max-width: 900px) {
    .price-sheet {
      grid-template-columns: minmax(0, 1fr);
    }
  }
  @media (max-width: 520px) {
    .compare-table td {
      white-space: normal;
    }
    .price-figures dd {
      font: var(--type-heading-32);
      font-variant-numeric: var(--figures-table);
    }
  }
}

/* Slycer design system: the site's masthead nav, theme control, contents line and footer (web/design/css/site.css,
   imported by components.css). In @layer components, so Tailwind utilities beat it; colours only from tokens.css. */

@layer components {
  /* ---- Masthead nav ---------------------------------------------------------------------------------------------
     The mark and the name, three links, the theme control, one button. Ruled off under it, never floating. Sticky
     only from 1024 px, where it is one 64 px row (--nav-height, so base.css's scroll-padding keeps focus clear of
     it, WCAG 2.4.11); below that it wraps to rows and scrolls away. */
  .site-nav {
    position: relative;
    border-bottom: var(--hairline);
    background-color: var(--background);
    color: var(--foreground);
  }
  /* The skip link is the masthead's first stop (the GOV.UK and ONS pattern, WCAG 2.4.1): clipped out of sight until
     it takes focus, then drawn over the masthead's top left on base.css's yellow link ground. Clipped, not
     display: none, so Tab still reaches it. Its target is <main id="main" tabindex="-1">. */
  .skip-link {
    position: absolute;
    top: var(--space-2);
    left: var(--gutter);
    z-index: 20;
    padding: var(--space-2) var(--space-3);
    background-color: var(--focus);
    color: var(--focus-ink);
    font: var(--type-ui-15);
    font-weight: 600;
    text-decoration-line: underline;
    text-underline-offset: 0.18em;
  }
  .skip-link:not(:focus) {
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .site-nav__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-5);
    max-width: var(--page);
    min-height: var(--nav-height);
    margin: 0 auto;
    padding: var(--space-2) var(--gutter);
  }
  .site-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--foreground);
    font: var(--type-heading-22);
    font-variant-numeric: var(--figures-text);
    letter-spacing: -0.03em;
    text-decoration-line: none;
  }
  .site-nav__brand:hover {
    color: var(--foreground);
  }
  .site-nav__mark {
    display: block;
    width: 14.16px; /* the mark's 59 x 100 box at 24 px */
    height: 24px;
    fill: currentColor;
  }
  .site-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .site-nav__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink-soft);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
    text-decoration-line: none;
  }
  .site-nav__links a:hover {
    color: var(--foreground);
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
  }
  .site-nav__links a[aria-current="page"] {
    color: var(--foreground);
    box-shadow: inset 0 -2px var(--green);
  }
  .site-nav__end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-4);
    margin-left: auto;
  }
  /* The masthead's button is outlined: the page's own green button is its one primary action. */
  .site-nav__end .btn {
    min-height: 36px;
    padding: 0 var(--space-3);
    border-color: var(--field);
    background-color: transparent;
    color: var(--foreground);
    font: var(--type-label-13-mono);
    font-variant-numeric: var(--figures-table);
  }
  .site-nav__end .btn:hover {
    border-color: var(--green);
    background-color: var(--surface-raised);
    color: var(--foreground);
  }
  /* Below 1024 px the masthead is two rows that read in the Tab order: the brand and the links, then the theme
     control and the button across one hairline. No item is moved out of source order, so focus runs top to bottom
     and left to right (WCAG 2.4.3, 1.3.2; T22 review fix, 2026-11-09: the earlier phone grid put the button on the
     brand's row, and Tab reached it last). The site's own links stay on the first row and the setting sits under them
     (T22 run of 2026-11-09, round 1 tell 10, round 2 tell 1). */
  @media (max-width: 1023px) {
    .site-nav__row {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
    }
    .site-nav__brand {
      grid-row: 1;
      grid-column: 1;
      justify-self: start;
      align-self: start; /* stays on the first line when three links wrap to two at 320 px */
    }
    .site-nav__nav {
      grid-row: 1;
      grid-column: 2;
      justify-self: end;
    }
    .site-nav__links {
      justify-content: flex-end;
    }
    .site-nav__end {
      grid-row: 2;
      grid-column: 1 / -1;
      justify-content: flex-end;
      margin-left: 0;
      padding-top: var(--space-2);
      border-top: var(--hairline);
    }
  }
  /* On a phone the "Theme" label is clipped, not removed, so the control and the button share row 2: the legend still
     names the group. Where the two do not fit (at 320 px) the button wraps under the control, still last. */
  @media (max-width: 599px) {
    /* 16 px, not 20, between the brand and the links and between links, so three links (the reference page's) still
       share the brand's row at 375 px; the site's two links fit at 320. */
    .site-nav__row {
      column-gap: var(--space-4);
    }
    .site-nav__links {
      column-gap: var(--space-4);
    }
    .site-nav__end .btn {
      margin-left: auto;
    }
    .site-nav .theme-control legend {
      position: absolute;
      float: none;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
  }
  @media (min-width: 1024px) {
    .site-nav {
      position: sticky;
      top: 0;
      z-index: 10;
    }
    .site-nav__row {
      flex-wrap: nowrap;
      height: var(--nav-height);
      padding-top: 0;
      padding-bottom: 0;
    }
  }

  /* ---- Theme control (D242) -------------------------------------------------------------------------------------
     A fieldset of three native radios, one tab stop, arrow keys move the choice. The chosen segment is ink-filled
     with a tick before its name; its focus ring is in components.css, unlayered.
     The legend floats so it sits beside the options instead of on the fieldset's border. The fieldset stays a block
     box: WebKit sets float to none on the children of a flex or grid container, and the legend then stacks above
     the radios (critique round 1). Legend and options share one height, top-aligned, so the label is centred. */
  .theme-control {
    --theme-control-height: 32px;
    display: inline-block;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
    white-space: nowrap;
  }
  .theme-control legend {
    float: left;
    padding: 0;
    margin-right: calc(var(--space-2) + var(--space-1));
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    line-height: var(--theme-control-height);
    color: var(--ink-faint);
  }
  .theme-control__options {
    display: inline-flex;
    vertical-align: top;
    height: var(--theme-control-height);
    border: 1px solid var(--input);
    border-radius: var(--radius-2);
  }
  .theme-control__option {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0 var(--space-2);
    background-color: var(--background);
    color: var(--foreground);
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    cursor: pointer;
    transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
  }
  .theme-control__option + .theme-control__option {
    border-left: 1px solid var(--input);
  }
  .theme-control__option input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }
  .theme-control__option:hover {
    background-color: var(--accent);
  }
  .theme-control__option:has(input:checked) {
    background-color: var(--foreground);
    color: var(--background);
  }
  .theme-control__option:has(input:checked)::before {
    content: "\2713";
    margin-right: 0.15em; /* the tick never touches the word (T22 round 3) */
    font-weight: 600;
  }

  /* ---- Contents line ------------------------------------------------------------------------------------------
     Under the masthead on a long page: the sections, numbered as the page numbers them. */
  .contents-line {
    border-bottom: var(--hairline);
  }
  .contents-line ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: contents;
  }
  .contents-line li {
    counter-increment: contents;
  }
  .contents-line a {
    display: inline-flex;
    align-items: baseline;
    gap: var(--space-2);
    min-height: 40px;
    padding-top: var(--space-2);
    color: var(--ink-soft);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
    text-decoration-line: none;
  }
  .contents-line a::before {
    content: counter(contents);
    font: var(--type-title-19);
    font-variant-numeric: var(--figures-table);
    font-weight: 400;
    color: var(--ink-faint);
  }
  .contents-line a:hover {
    color: var(--green);
    text-decoration-line: underline;
  }
  .contents-line a[aria-current="true"] {
    color: var(--foreground);
    box-shadow: inset 0 -2px var(--green);
  }

  /* ---- Footer --------------------------------------------------------------------------------------------------
     A colophon: what Slycer is in one line, the links (slycer.ai only, D019), the type credit. */
  .site-footer {
    margin-top: var(--space-8);
    border-top: var(--hairline);
    color: var(--foreground);
  }
  .site-footer__row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr)) minmax(0, 3fr);
    gap: var(--space-5) var(--space-6);
    max-width: var(--page);
    margin: 0 auto;
    padding: var(--space-5) var(--gutter) var(--space-7);
  }
  .site-footer p {
    margin: 0;
  }
  .site-footer__about {
    display: grid;
    gap: var(--space-2);
    align-content: start;
    max-width: 26rem;
    font: var(--type-copy-16);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .site-footer__about .site-nav__brand {
    min-height: 0;
  }
  .site-footer h2 {
    margin: 0 0 var(--space-2);
    font: var(--type-label-12-mono);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-faint);
  }
  .site-footer ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .site-footer li a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: var(--ink-soft);
    text-decoration-line: none;
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
  }
  .site-footer li a:hover {
    color: var(--foreground);
    text-decoration-line: underline;
  }
  /* Where a link goes when it leaves the site (the portal on billing.stripe.com, legal's "/" row; T18). */
  .site-footer__note {
    display: block;
    max-width: 18rem;
    margin-bottom: var(--space-2);
    font: var(--type-note-13);
    color: var(--ink-soft);
  }
  .site-footer__colophon {
    display: grid;
    gap: var(--space-2);
    align-content: start;
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  @media (max-width: 900px) {
    .site-footer__row {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .site-footer__about,
    .site-footer__colophon {
      grid-column: 1 / -1;
    }
  }
}

/* Slycer design system: the account parts, trial banner, licence status line and device list
   (web/design/css/account.css, imported by components.css). In @layer components, so Tailwind utilities beat it;
   colours only from tokens.css. */

@layer components {
  /* ---- Trial banner ---------------------------------------------------------------------------------------------
     One ruled line across the top of an account page: the state in words, the date that matters, one link. */
  .trial-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-1) var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-top: var(--rule-1);
    border-bottom: var(--hairline);
    border-left: 3px solid var(--green);
    background-color: var(--card);
    color: var(--card-foreground);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
  }
  .trial-banner p {
    margin: 0;
  }
  .trial-banner__state {
    font-weight: 600;
  }
  .trial-banner__text {
    flex: 1 1 20rem;
    color: var(--ink-soft);
  }
  .trial-banner[data-state="plan-only"] {
    border-left-color: var(--ink-soft);
  }
  .trial-banner[data-state="payment-due"] {
    border-left-color: var(--status-stale);
  }
  .trial-banner[data-state="payment-due"] .trial-banner__state {
    color: var(--status-stale);
  }

  /* ---- Licence status line (D123, from B; D018) ---------------------------------------------------------------
     The dashboard opens on one strip of label and value pairs: 6 across, 3 at tablet width, 2 on a phone. The
     strip's own rules close it, top and bottom, across the full column; a cell draws only a hairline above it from
     the second row on, so no cell's rule stops short of the strip's. The head is optional: a page whose h2 already
     names the strip leaves it out. */
  .licence-status {
    border-top: var(--rule-2);
    border-bottom: var(--rule-1);
    min-width: 0;
  }
  .licence-status + .licence-status {
    margin-top: var(--space-6);
  }
  .licence-status__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-1) var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: var(--rule-1);
  }
  .licence-status__head h3 {
    margin: 0;
    font: var(--type-title-19);
    font-variant-numeric: var(--figures-text);
  }
  .licence-status__head p {
    margin: 0;
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-soft);
  }
  .licence-status dl {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0;
  }
  /* A strip of two facts (an account page that moves the fixed rules into a note) gives each a readable width at
     every size, rather than a sixth of the row. */
  .licence-status dl:has(> div:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 22rem));
  }
  .licence-status dl > div {
    display: grid;
    align-content: start;
    gap: 2px;
    padding: var(--space-3) var(--space-3) var(--space-3) 0;
    border-top: var(--hairline);
    min-width: 0;
  }
  .licence-status dl > div:nth-child(-n + 6) {
    border-top: 0;
  }
  .licence-status dl > div + div {
    padding-left: var(--space-3);
    border-left: var(--hairline);
  }
  .licence-status dt {
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-faint);
  }
  .licence-status dd {
    display: grid;
    gap: 2px;
    margin: 0;
    font: var(--type-table-15);
    font-variant-numeric: var(--figures-table);
    font-weight: 600;
    color: var(--foreground);
  }
  .licence-status dd small {
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-table);
    font-weight: 400;
    color: var(--ink-soft);
  }
  .licence-status[data-state="plan-only"] .licence-status__plan {
    color: var(--ink-soft);
  }
  .licence-status[data-state="payment-due"] .licence-status__plan {
    color: var(--status-stale);
  }
  /* The trial's days as 14 ticks; the words carry the count. */
  .licence-meter {
    display: flex;
    gap: 2px;
    margin-top: var(--space-1);
  }
  .licence-meter i {
    flex: 1 1 0;
    max-width: 8px;
    height: 6px;
    box-shadow: inset 0 0 0 1px var(--input);
  }
  .licence-meter i.is-used {
    background-color: var(--green);
    box-shadow: none;
  }
  @media (max-width: 1023px) {
    .licence-status dl {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .licence-status dl > div:nth-child(3n + 1) {
      padding-left: 0;
      border-left: 0;
    }
    .licence-status dl > div:nth-child(n + 4) {
      border-top: var(--hairline);
    }
  }
  @media (max-width: 599px) {
    .licence-status dl {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .licence-status dl > div:nth-child(3n + 1) {
      padding-left: var(--space-3);
      border-left: var(--hairline);
    }
    .licence-status dl > div:nth-child(2n + 1) {
      padding-left: 0;
      border-left: 0;
    }
    .licence-status dl > div:nth-child(n + 3) {
      border-top: var(--hairline);
    }
  }
  /* The narrowest phones (320 px): two facts side by side leave a date or "Trial, then monthly" a word a line, so
     each fact takes its own ruled line, the label on the left and the value beside it. */
  @media (max-width: 379px) {
    .licence-status dl,
    .licence-status dl:has(> div:nth-child(2):last-child) {
      grid-template-columns: minmax(0, 1fr);
    }
    .licence-status dl > div,
    .licence-status dl > div + div,
    .licence-status dl > div:nth-child(3n + 1),
    .licence-status dl > div:nth-child(2n + 1) {
      grid-template-columns: minmax(6.5rem, 2fr) minmax(0, 3fr);
      align-items: baseline;
      gap: var(--space-3);
      padding: var(--space-2) 0;
      border-left: 0;
    }
    .licence-status dl > div:nth-child(n + 2) {
      border-top: var(--hairline);
    }
  }

  /* ---- Device list ------------------------------------------------------------------------------------------- */
  .device-list {
    width: 100%;
    border-collapse: collapse;
    font: var(--type-table-15);
    font-variant-numeric: var(--figures-table);
  }
  .device-list caption {
    padding: 0 0 var(--space-2);
    font: var(--type-title-19);
    font-variant-numeric: var(--figures-text);
    text-align: left;
  }
  .device-list thead th {
    padding: var(--space-2) var(--space-3) var(--space-2) 0;
    border-top: var(--rule-2);
    border-bottom: var(--rule-1);
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    font-weight: 600;
    text-align: left;
  }
  .device-list tbody :is(th, td) {
    padding: var(--space-2) var(--space-3) var(--space-2) 0;
    border-bottom: var(--hairline);
    text-align: left;
    vertical-align: middle;
  }
  .device-list tbody th {
    font-weight: 600;
  }
  .device-list tbody tr:last-child :is(th, td) {
    border-bottom: var(--rule-1);
  }
  .device-list__action {
    text-align: right;
    width: 1%;
    white-space: nowrap;
  }
  /* Phone width, a list of three columns or fewer (the account page's team and its web sources, served by the
     connector): it stays a table, so its table, row, header and cell roles hold in every browser and engine
     (Safari drops them from a table restyled with display: block or grid). The column heads stay in view and a
     long address breaks anywhere rather than pushing the row past the screen; the action keeps its width. */
  @media (max-width: 599px) {
    .device-list thead th,
    .device-list tbody :is(th, td) {
      padding-right: var(--space-2);
    }
    .device-list tbody :is(th, td) {
      overflow-wrap: anywhere;
    }
    .device-list tbody .device-list__action {
      padding-right: 0;
      overflow-wrap: normal;
    }
    .device-list .badge__state {
      min-width: 0;
    }
  }
  /* Phone width, a list of four columns or more (the frozen device page, D018): each device is a ruled row, its
     facts labelled from data-label, Revoke kept in view. Only such a table is restyled this way; it is not served. */
  @media (max-width: 599px) {
    .device-list:has(> thead > tr > th:nth-child(4)) thead {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
    }
    .device-list:has(> thead > tr > th:nth-child(4)),
    .device-list:has(> thead > tr > th:nth-child(4)) tbody {
      display: block;
    }
    .device-list:has(> thead > tr > th:nth-child(4)) tbody tr {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 2px var(--space-3);
      padding: var(--space-2) 0;
      border-bottom: var(--hairline);
    }
    .device-list:has(> thead > tr > th:nth-child(4)) tbody tr:last-child {
      border-bottom: var(--rule-1);
    }
    .device-list:has(> thead > tr > th:nth-child(4)) tbody :is(th, td),
    .device-list:has(> thead > tr > th:nth-child(4)) tbody tr:last-child :is(th, td) {
      grid-column: 1;
      padding: 0;
      border: 0;
    }
    .device-list:has(> thead > tr > th:nth-child(4)) tbody td[data-label]::before {
      content: attr(data-label) " ";
      color: var(--ink-faint);
    }
    .device-list:has(> thead > tr > th:nth-child(4)) caption {
      display: block;
    }
    .device-list:has(> thead > tr > th:nth-child(4)) tbody tr .device-list__action,
    .device-list:has(> thead > tr > th:nth-child(4)) tbody tr:last-child .device-list__action {
      grid-column: 2;
      grid-row: 1 / span 5;
      align-self: start;
      width: auto;
    }
  }
  .device-list__foot {
    margin: var(--space-2) 0 0;
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
    max-width: 46rem;
  }
}

/* Slycer design system: the sign-in and account shell (web/design/css/auth.css, imported by components.css). The
   pages of the sign-in server (services/connector) and the licence server (services/signer) share it: a small mark
   above one centred card about 420 px wide (720 px for the account page), a heading of a few words, one primary
   button, quiet text links, and a footer of Help, Privacy and Terms. Every class here starts with auth- so nothing on
   the marketing site picks it up. In @layer components, so Tailwind utilities beat it; colours only from tokens.css.
   Nothing moves: colour changes on hover and focus only. */

@layer components {
  .auth {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* ---- The mark above the card ----------------------------------------------------------------------------------- */
  .auth-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-7) var(--gutter) var(--space-5);
  }
  .auth-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--foreground);
    font: var(--type-heading-22);
    font-variant-numeric: var(--figures-text);
    letter-spacing: var(--tracking-heading);
  }
  .auth-brand svg {
    flex: none;
    width: 14px;
    height: 24px;
    fill: currentColor;
  }
  /* The account page: the mark on the left, who is signed in and Sign out on the right, in the card column. */
  .auth-top--bar {
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    max-width: calc(45rem + 2 * var(--gutter));
    margin: 0 auto;
  }
  .auth-who {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-1) var(--space-3);
    min-width: 0;
    margin: 0;
    color: var(--ink-soft);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-text);
    overflow-wrap: anywhere;
  }
  .auth-who form {
    display: inline;
  }

  /* ---- The column and the card ----------------------------------------------------------------------------------- */
  .auth-main {
    flex: 1 0 auto;
    width: 100%;
    max-width: calc(26.25rem + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter) var(--space-7);
  }
  .auth-main:focus {
    outline: 0;
  }
  .auth-main--wide {
    max-width: calc(45rem + 2 * var(--gutter));
  }
  .auth-card {
    padding: var(--space-6);
    border: var(--hairline);
    border-radius: var(--radius-2);
    background-color: var(--card);
    color: var(--card-foreground);
  }
  .auth-card + .auth-card {
    margin-top: var(--space-4);
  }
  .auth-card > :first-child {
    margin-top: 0;
  }
  .auth-card > :last-child {
    margin-bottom: 0;
  }
  @media (max-width: 480px) {
    .auth-top {
      padding-top: var(--space-6);
    }
    .auth-card {
      padding: var(--space-5);
    }
  }

  /* ---- Words in the card ----------------------------------------------------------------------------------------- */
  .auth-context {
    margin: 0 0 var(--space-2);
    color: var(--ink-faint);
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
  }
  .auth-title {
    margin: 0 0 var(--space-2);
    font: var(--type-heading-22);
    font-variant-numeric: var(--figures-text);
    letter-spacing: var(--tracking-heading);
    text-wrap: balance;
  }
  @media (min-width: 481px) {
    .auth-title {
      font-size: 1.5rem;
    }
  }
  .auth-page-title {
    margin: 0 0 var(--space-5);
    font: var(--type-heading-22);
    font-size: 1.5rem;
    font-variant-numeric: var(--figures-text);
    letter-spacing: var(--tracking-heading);
  }
  .auth-sub {
    margin: 0 0 var(--space-5);
    color: var(--ink-soft);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-text);
    overflow-wrap: anywhere;
  }
  .auth-sub strong,
  .auth-text strong {
    color: var(--foreground);
    font-weight: 600;
  }
  .auth-text {
    margin: 0 0 var(--space-4);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-text);
    overflow-wrap: anywhere;
  }
  .auth-card h2 {
    margin: 0 0 var(--space-4);
    font: var(--type-title-19);
    font-variant-numeric: var(--figures-text);
    letter-spacing: var(--tracking-heading);
  }
  .auth-card .callout {
    margin: 0 0 var(--space-4);
  }
  .auth-card .field {
    max-width: none;
  }
  .auth-card code {
    overflow-wrap: anywhere;
  }

  /* ---- Actions --------------------------------------------------------------------------------------------------- */
  .auth-form {
    margin: 0;
  }
  .auth-form .field + .auth-actions,
  .auth-form fieldset + .auth-actions {
    margin-top: var(--space-5);
  }
  .auth-actions {
    display: grid;
    gap: var(--space-3);
    margin: 0;
  }
  .auth-actions .btn {
    width: 100%;
  }
  .auth-alt {
    margin: var(--space-4) 0 0;
    color: var(--ink-soft);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-text);
    text-align: center;
  }
  .auth-alt form {
    display: inline;
  }
  /* A <button> that posts but reads as a text link: Cancel, Send it again, Use another address, Remove. */
  .auth-linkbtn {
    display: inline;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--foreground);
    font: inherit;
    font-variant-numeric: inherit;
    text-align: inherit;
    text-decoration-line: underline;
    text-decoration-color: var(--green);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    cursor: pointer;
    transition: color var(--dur-1) var(--ease);
  }
  .auth-linkbtn:hover {
    color: var(--green);
    text-decoration-thickness: 2px;
  }
  .auth-note {
    margin: var(--space-5) 0 0;
    padding-top: var(--space-4);
    border-top: var(--hairline);
    color: var(--ink-faint);
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
  }
  .auth-note p {
    margin: 0;
  }
  .auth-note p + p {
    margin-top: var(--space-2);
  }
  .auth-after {
    margin: var(--space-4) 0 0;
    color: var(--ink-faint);
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    text-align: center;
  }

  /* ---- The code slycer login prints, as the page's hero ---------------------------------------------------------- */
  .auth-code {
    margin: 0 0 var(--space-5);
    padding: var(--space-5) var(--space-4);
    border: var(--hairline);
    border-radius: var(--radius-2);
    background-color: var(--ground);
    text-align: center;
  }
  .auth-code__code {
    display: block;
    margin: 0;
    font: var(--type-heading-32);
    font-family: var(--font-mono);
    font-weight: 500;
    font-variant-numeric: var(--figures-table);
    letter-spacing: 0.12em;
    color: var(--foreground);
  }
  .auth-code__label {
    margin: var(--space-2) 0 0;
    color: var(--ink-soft);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-text);
  }

  /* ---- Billing interval: radio cards in a fieldset, one submit (the trial page) ---------------------------------- */
  .auth-choice {
    display: grid;
    gap: var(--space-2);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .auth-choice legend {
    margin: 0 0 var(--space-2);
    padding: 0;
    color: var(--ink-soft);
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
  }
  .auth-option {
    align-items: center;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--input);
    border-radius: var(--radius-2);
    background-color: var(--ground);
    transition: border-color var(--dur-1) var(--ease);
  }
  .auth-option:hover {
    border-color: var(--ink-soft);
  }
  .auth-option:has(input:checked) {
    border-color: var(--green);
  }
  .auth-option__name {
    display: block;
    font-weight: 600;
  }
  .auth-choice--error {
    padding-left: var(--space-3);
    border-left: 3px solid var(--destructive);
  }

  /* ---- The account page's cards ---------------------------------------------------------------------------------- */
  .auth-card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-1) var(--space-4);
    margin: 0 0 var(--space-4);
  }
  .auth-card__head h2 {
    margin: 0;
  }
  .auth-meta {
    color: var(--ink-soft);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
  }
  .auth-plan {
    margin: 0;
    font: var(--type-heading-22);
    font-variant-numeric: var(--figures-text);
    letter-spacing: var(--tracking-heading);
  }
  .auth-plan + .auth-meta {
    margin: var(--space-1) 0 var(--space-5);
  }
  .auth-card > .btn {
    margin-top: var(--space-1);
  }
  /* One row: the address and Add; it stacks on a phone. */
  .auth-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: stretch;
  }
  .auth-row .field__input {
    flex: 1 1 10rem;
    width: auto;
    min-width: 0;
    margin: 0;
  }
  .auth-row .btn {
    flex: 0 0 auto;
  }
  .auth-hint {
    margin: var(--space-2) 0 0;
    color: var(--ink-faint);
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
  }
  .auth-people {
    margin: var(--space-5) 0 0;
    padding: 0;
    list-style: none;
    border-top: var(--hairline);
  }
  .auth-people li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-1) var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: var(--hairline);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
  }
  .auth-people__who {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .auth-people__tag {
    color: var(--ink-faint);
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
  }
  .auth-people form {
    margin: 0;
  }
  .auth-uses {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: var(--space-2) var(--space-4);
    margin: 0 0 var(--space-4);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-text);
  }
  .auth-uses dt {
    color: var(--ink-soft);
  }
  .auth-uses dd {
    margin: 0;
    min-width: 0;
  }
  @media (max-width: 480px) {
    .auth-uses {
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
    }
    .auth-uses dd + dt {
      margin-top: var(--space-3);
    }
  }

  /* ---- Footer ---------------------------------------------------------------------------------------------------- */
  .auth-foot {
    padding: var(--space-5) var(--gutter) var(--space-6);
    color: var(--ink-faint);
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    text-align: center;
  }
  .auth-foot a {
    color: var(--ink-soft);
  }
  .auth-foot ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-1) var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
  }
}

/* Slycer design system: the data-path figure (web/design/css/data-path.css, imported by components.css). In
   @layer components, so Tailwind utilities beat it; colours only from tokens.css. */

@layer components {
  /* ---- Data path ------------------------------------------------------------------------------------------------
     Three ruled stations in order, agency to computer to client, with the arrow between them. The default figure
     draws a second path, Claude on the web (a stub back to the agency, Slycer's hosted server, Claude), each named by a
     .data-path__route line above it (site T02). Stripe and slycer.ai stand apart under a dashed rule, off both
     paths. Each list carries its order for screen readers; the arrows are drawn and hidden. Across at 768 px and
     up, stacked below. No check-in in the default (D359). Text marked .data-path__check-in shows only on a figure
     with data-variant="check-in" (deferred, encodes D018). */
  .data-path {
    margin: 0;
    min-width: 0;
  }
  .data-path__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .data-path .data-path__route {
    margin: 0 0 var(--space-2);
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .data-path__steps + .data-path__route {
    margin-top: var(--space-6);
  }
  .data-path__node {
    position: relative;
    display: grid;
    align-content: start;
    gap: var(--space-2);
    padding: var(--space-3) 0 var(--space-4);
    border-top: var(--rule-2);
    border-bottom: var(--hairline);
  }
  /* The Claude web row's first cell points back to the agency above: no rules and no name, so the row's one full
     station is the hosted server (T02 review 2). The arrow out of it is still drawn. */
  .data-path__node--same {
    border-top: none;
    border-bottom: none;
  }
  .data-path__node.data-path__node--same p {
    font: var(--type-note-13);
    color: var(--ink-faint);
  }
  .data-path__node + .data-path__node::before {
    content: "";
    position: absolute;
    top: 22px;
    left: calc(-1 * var(--space-6) + 6px);
    width: calc(var(--space-6) - 12px);
    height: 2px;
    background-color: var(--green);
  }
  .data-path__node + .data-path__node::after {
    content: "";
    position: absolute;
    top: 17px;
    left: -12px;
    width: 7px;
    height: 12px;
    background-color: var(--green);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
  }
  .data-path__no {
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-faint);
  }
  .data-path .data-path__name {
    margin: 0;
    font: var(--type-heading-22);
    font-variant-numeric: var(--figures-text);
  }
  .data-path__node p {
    margin: 0;
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .data-path__carries {
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--green);
  }
  .data-path__outside {
    display: grid;
    grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
    gap: var(--space-1) var(--space-5);
    margin-top: var(--space-6);
    padding-top: var(--space-3);
    border-top: 1px dashed var(--input);
  }
  .data-path__outside .data-path__name {
    color: var(--ink-soft);
  }
  .data-path:not([data-variant~="check-in"]) .data-path__check-in {
    display: none;
  }
  .data-path__outside p {
    margin: 0;
    max-width: var(--measure);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .data-path figcaption {
    margin-top: var(--space-4);
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .data-path figcaption strong {
    color: var(--foreground);
  }
  @media (max-width: 767px) {
    .data-path__steps {
      grid-template-columns: minmax(0, 1fr);
      gap: var(--space-5);
    }
    .data-path__node + .data-path__node::before {
      top: calc(-1 * var(--space-5) + 2px);
      left: 3px;
      width: 2px;
      height: calc(var(--space-5) - 8px);
    }
    .data-path__node + .data-path__node::after {
      top: -9px;
      left: -2px;
      width: 12px;
      height: 7px;
      clip-path: polygon(0 0, 100% 0, 50% 100%);
    }
    .data-path__outside {
      grid-template-columns: minmax(0, 1fr);
    }
  }
}

/* Slycer design system: page layouts (web/design/css/page.css, imported by components.css; plan T17). The frame a
   site, docs or dashboard page sits in, the landing hero, the coverage catalogue row, the account page and the
   device sign-in page. The screens in launch/design/screens/ are built from these and the other components only.
   In @layer components, so Tailwind utilities beat it; colours only from tokens.css. */

@layer components {
  /* ---- Page frame: one column on the page grid, a heavy rule under the heading, a note rule above the foot ----- */
  .page {
    max-width: var(--page);
    margin: 0 auto;
    padding: var(--space-7) var(--gutter) var(--space-8);
  }
  /* The footer brings its own space above it; one gap, not two (T22 round 1). */
  .page:has(+ .site-footer) {
    padding-bottom: 0;
  }
  .page-head {
    margin-bottom: var(--space-7);
    padding-bottom: var(--space-6);
    border-bottom: var(--hairline);
  }
  .page-head h1 {
    font: var(--type-display-64);
    font-variant-numeric: var(--figures-text);
    letter-spacing: var(--tracking-display);
  }
  .page-head h1 {
    margin: var(--space-2) 0 0;
  }
  .page-head h1:first-child {
    margin-top: 0;
  }
  /* A small mono label with a green tick, the way the redesign marks a section. */
  .page-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font: var(--type-label-12-mono);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-soft);
  }
  .page-kicker::before {
    content: "";
    flex: none;
    width: 8px;
    height: 2px;
    background-color: var(--green);
  }
  .page-lede {
    max-width: var(--measure);
    margin: var(--space-3) 0 0;
    font: var(--type-copy-18);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .page-foot {
    margin-top: var(--space-8);
    padding-top: var(--space-3);
    border-top: var(--hairline);
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .page-foot p {
    max-width: 52rem;
    margin: 0 0 var(--space-2);
  }
  .page-foot code {
    font: var(--type-label-12-mono);
    font-variant-numeric: var(--figures-table);
  }

  /* ---- Landing hero: the headline across the page, then the request beside the table it returned --------------
     The page's order is the request, the table, then the price, and below 1024 px they stack in that order, so the
     table follows the request it answers. From 1024 px the table takes the right column and the price sits under
     the request on the left; reading and focus order stay the page's order. */
  .hero {
    display: grid;
  }
  .hero__head {
    padding-bottom: var(--space-6);
  }
  .hero__title {
    max-width: 15em;
    margin: var(--space-3) 0 0;
    font: var(--type-hero-88);
    font-variant-numeric: var(--figures-text);
    letter-spacing: var(--tracking-display);
    text-wrap: balance;
  }
  .hero__dek {
    max-width: var(--measure);
    margin: var(--space-5) 0 0;
    font: var(--type-copy-18);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .hero__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
    padding-top: var(--space-6);
    border-top: var(--hairline);
  }
  .hero__ask {
    display: grid;
    gap: var(--space-3);
    margin: 0;
  }
  .hero__ask > div {
    display: grid;
    gap: var(--space-1);
    padding-bottom: var(--space-3);
    border-bottom: var(--hairline);
  }
  .hero__ask dt {
    font: var(--type-label-12-mono);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-faint);
  }
  .hero__ask dd {
    margin: 0;
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
  }
  .hero__ask dd q {
    font: var(--type-copy-18);
    font-variant-numeric: var(--figures-text);
  }
  /* A reply quoted after a source chip is the product's line, not the request: its own line, in the UI size. */
  .hero__ask dd .chip {
    margin-right: var(--space-2);
  }
  .hero__ask dd .chip + q {
    display: block;
    margin-top: var(--space-1);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-text);
  }
  .hero__ask code {
    font: var(--type-label-13-mono);
    font-variant-numeric: var(--figures-table);
  }
  .hero__price {
    padding-top: var(--space-4);
    border-top: var(--rule-1);
  }
  .hero__price > p {
    max-width: var(--measure);
    margin: 0 0 var(--space-2);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-soft);
  }
  .hero__price > p:first-child {
    font: var(--type-title-19);
    font-variant-numeric: var(--figures-text);
    color: var(--foreground);
  }
  .hero__price .source-count {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: var(--hairline);
  }
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3) var(--space-5);
    margin: var(--space-4) 0 var(--space-5);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
  }
  .hero__table {
    min-width: 0;
  }
  @media (min-width: 1024px) {
    .hero__body {
      grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
      grid-template-rows: auto 1fr;
      grid-template-areas: "ask table" "price table";
      row-gap: var(--space-6);
    }
    .hero__ask {
      grid-area: ask;
    }
    .hero__table {
      grid-area: table;
    }
    .hero__price {
      grid-area: price;
      align-self: start;
    }
  }

  /* ---- Coverage catalogue: one ruled row per source, name, what it holds, the facts ------------------------------ */
  .catalogue {
    border-top: var(--rule-2);
  }
  /* Straight under a page heading, the heading's own rule is the catalogue's top rule. */
  .page-head + .catalogue {
    margin-top: calc(-1 * var(--space-5));
    border-top: 0;
  }
  .catalogue-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4) var(--space-6);
    padding: var(--space-5) 0 var(--space-6);
    border-bottom: var(--rule-1);
  }
  .catalogue-row__name h2 {
    margin: 0;
    font: var(--type-heading-22);
    font-variant-numeric: var(--figures-text);
  }
  .catalogue-row__name p {
    margin: var(--space-1) 0 0;
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-soft);
  }
  .catalogue-row__name code {
    font: var(--type-label-12-mono);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-faint);
  }
  .catalogue-row__about > p {
    max-width: var(--measure);
    margin: 0 0 var(--space-4);
    font: var(--type-copy-16);
    font-variant-numeric: var(--figures-text);
  }
  .catalogue-row__about h3 {
    margin: 0 0 var(--space-2);
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    font-weight: 600;
  }
  .catalogue-row__families {
    columns: 2 12rem;
    column-gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .catalogue-row__families li {
    break-inside: avoid;
    padding: var(--space-1) 0;
    border-bottom: var(--hairline);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
  }
  .catalogue-row__facts {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: var(--space-2) var(--space-4);
    align-content: start;
    margin: 0;
    font: var(--type-table-15);
    font-variant-numeric: var(--figures-table);
  }
  .catalogue-row__facts dt {
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    line-height: 1.55;
    color: var(--ink-faint);
  }
  .catalogue-row__facts dd {
    margin: 0;
  }
  /* The list's count is the source-count component (plan T28): its count line, then legal's terms line. */
  .catalogue__count {
    margin: var(--space-3) 0 0;
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-soft);
  }
  @media (min-width: 1024px) {
    .catalogue-row {
      grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
    }
  }

  /* ---- Account page: the banner, the licence strip, the devices, then billing on one ruled line ---------------- */
  .account-page {
    display: grid;
    gap: var(--space-7);
  }
  .account-page > section > h2 {
    margin: 0 0 var(--space-3);
  }
  .account-page__billing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3) var(--space-5);
    padding: var(--space-4) 0;
    border-top: var(--rule-1);
    border-bottom: var(--hairline);
  }
  .account-page__billing p {
    max-width: var(--measure);
    margin: 0;
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-table);
  }

  /* ---- Connector account page (mcp.slycer.ai/account): plan, team, use, sources, sign out ----------------------
     The connector's templates put each part straight in .page as a section with no class and an aria-labelledby
     h2 (connector/account_pages.py), then the sign-out form and the help line. A section gets the same gap as
     .account-page, a ruled top so the parts read as a board, and one rhythm inside: the h2, then each block a step
     below the last, a sub-head (Add a teammate) a larger step, a list's note close under its list. A section with a
     class (the landing hero, the sources list) is left alone. */
  .page > section[aria-labelledby]:not([class]) {
    max-width: 52rem;
  }
  .page > section[aria-labelledby]:not([class]) + section[aria-labelledby]:not([class]) {
    margin-top: var(--space-7);
  }
  .page > section[aria-labelledby]:not([class]) + :is(form, p) {
    margin-top: var(--space-7);
  }
  .page > section[aria-labelledby]:not([class]) > * {
    margin-top: 0;
    margin-bottom: 0;
  }
  .page > section[aria-labelledby]:not([class]) > * + * {
    margin-top: var(--space-4);
  }
  .page > section[aria-labelledby]:not([class]) > h2 + * {
    margin-top: var(--space-3);
  }
  .page > section[aria-labelledby]:not([class]) > h3 {
    margin-top: var(--space-6);
  }
  .page > section[aria-labelledby]:not([class]) > .device-list__foot {
    margin-top: var(--space-2);
  }
  .page > section[aria-labelledby]:not([class]) > :is(p, ul) {
    max-width: var(--measure);
  }
  .page > section[aria-labelledby]:not([class]) > ul {
    padding-left: var(--space-5);
  }
  .page > section[aria-labelledby]:not([class]) > ul > li + li {
    margin-top: var(--space-2);
  }
  /* A notice (?n= after a change) sits between the page head and the first section. */
  .page > .callout + section[aria-labelledby]:not([class]) {
    margin-top: var(--space-6);
  }
  .page > section[aria-labelledby]:not([class]) ~ p:last-child {
    margin-top: var(--space-5);
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }

  /* ---- Checkout choices (the connector's "Start your Slycer trial" page) ---------------------------------------
     One ruled row a plan: the button, then what it costs in table figures. From 600 px the price sits beside the
     button on its baseline; on a phone it drops under it. The trial line below is a .field__hint. */
  .checkout-plans {
    max-width: 40rem;
    margin: var(--space-5) 0 var(--space-3);
    padding: 0;
    list-style: none;
    border-top: var(--rule-2);
    border-bottom: var(--rule-1);
  }
  .checkout-plans > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-4);
    padding: var(--space-4) 0;
  }
  .checkout-plans > li + li {
    border-top: var(--hairline);
  }
  .checkout-plans .btn {
    min-width: 13rem;
  }
  .checkout-plans > li > span {
    flex: 1 1 14rem;
    min-width: 0;
    font: var(--type-table-15);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-soft);
  }
  .checkout-plans + .field__hint {
    margin-bottom: var(--space-5);
  }
  @media (max-width: 599px) {
    .checkout-plans .btn {
      flex: 1 1 100%;
      min-width: 0;
    }
  }

  /* ---- Device sign-in (slycer login, RFC 8628): the code to compare, what signs in, two buttons ------------------
     The code is set large in mono between a heavy and a light rule, so it reads like the terminal line it repeats. */
  .device-confirm {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
  }
  .device-confirm__main > p {
    max-width: var(--measure);
    margin: 0 0 var(--space-4);
    font: var(--type-copy-16);
    font-variant-numeric: var(--figures-text);
  }
  .device-code {
    margin: var(--space-5) 0;
    padding: var(--space-4) 0 var(--space-5);
    border-top: var(--rule-1);
    border-bottom: var(--rule-1);
  }
  .device-confirm__main > .device-code:first-child {
    margin-top: 0;
  }
  .device-code__label {
    margin: 0;
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-faint);
  }
  .device-code__code {
    display: block;
    margin-top: var(--space-2);
    font: var(--type-heading-32);
    font-family: var(--font-mono);
    font-weight: 500;
    font-variant-numeric: var(--figures-table);
    letter-spacing: 0.14em;
    color: var(--foreground);
  }
  .device-confirm__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: var(--space-5) 0;
  }
  .device-confirm__facts {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: var(--space-2) var(--space-4);
    align-content: start;
    margin: 0;
    padding-top: var(--space-3);
    border-top: var(--rule-1);
    font: var(--type-table-15);
    font-variant-numeric: var(--figures-table);
  }
  .device-confirm__facts dt {
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    line-height: 1.55;
    color: var(--ink-faint);
  }
  .device-confirm__facts dd {
    margin: 0;
  }
  .device-confirm__aside > h2 {
    margin: 0 0 var(--space-3);
  }
  .device-confirm__aside > p {
    max-width: var(--measure);
    margin: var(--space-4) 0 0;
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  @media (min-width: 1024px) {
    .device-confirm {
      grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }
  }
}

/* Slycer design system: the legal document page (web/design/css/document.css, imported by components.css; plan T29).
   Terms, privacy and licence pages: a status line while a text is a draft, the title with its version and effective
   date, a contents list (beside the text from 1024 px, scrolling away with the page) and under it a short rail of
   the parts that stays in view, numbered clause headings on stable anchors (#s4-8) and the text at a printed page's
   measure. The print sheet drops the page chrome and keeps the status line.
   In @layer components, so Tailwind utilities beat it; colours only from tokens.css (print colours too: tokens.css
   holds the light primitives for print). */

@layer components {
  /* The head ends where the text ends: capped at the text's measure, 68ch in the text's own font, so the draft line
     and the head's rule leave no empty band beside the text (T22 run of 2026-11-09, round 2 tell 2). Each child sets
     its own font; the head's font only sets the ch. */
  .doc-head {
    max-width: 68ch;
    font: var(--type-copy-16);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-5);
    border-bottom: var(--rule-2);
  }
  /* A draft says so before anything else, in words, with the stale colour as a second cue: a status line ruled
     above and below across the head, as a release sets one, not a tinted box narrower than the text (T22 run of
     2026-11-09, round 1, tells 1 and 7). */
  .doc-status {
    max-width: none;
    margin: 0 0 var(--space-5);
    padding: var(--space-2) 0;
    border-top: 2px solid var(--status-stale);
    border-bottom: var(--hairline);
    font: var(--type-ui-15);
    font-variant-numeric: var(--figures-text);
    color: var(--foreground);
  }
  .doc-head h1 {
    max-width: 22em;
    margin: 0;
    text-wrap: balance;
  }
  .doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-6);
    margin: var(--space-4) 0 0;
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
  }
  .doc-meta div {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    min-width: 0;
  }
  .doc-meta dt {
    color: var(--ink-faint);
  }
  .doc-meta dd {
    min-width: 0;
    margin: 0;
    color: var(--foreground);
  }
  /* A row takes its own line when it fits on one, so a label wraps only where it is longer than the column: legal's
     "Draft 2026-11-09-L29-site-urls-fix2" at 320 px under WCAG 1.4.12 spacing. Held on one line, it pushed the page
     32 px sideways (final verify, 2026-11-09). */
  .doc-meta__v {
    overflow-wrap: anywhere;
  }
  /* A blank the signer fills in: dashed, so it reads as a gap in the text, never as a highlight. It may wrap, or
     "[state where the LLC is formed]" pushes the text past a 288 px column under WCAG 1.4.12 spacing; the border is
     cloned onto each line so every part is a closed box, never two open ones (T22 round 2). */
  .doc-blank {
    padding: 0 2px;
    background-color: transparent;
    color: var(--foreground);
    border: 1px dashed var(--field);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .doc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
  /* The side column: the contents, then the rail. It runs the full height of the text, so the rail can stay in view.
     Stacked over the text (below 1024 px) it takes the text's measure, 68ch in the text's font, so the contents
     list's rule stops where the head's rule and the text stop (T22 review fix, 2026-11-09: at 768 px it ran 162 px
     past them). Its children set their own fonts; this one only sets the ch. */
  .doc-side {
    min-width: 0;
    max-width: 68ch;
    font: var(--type-copy-16);
    font-variant-numeric: var(--figures-text);
  }

  /* ---- Contents:the parts, each with its clauses, numbers in table figures ------------------------------------ */
  .doc-contents {
    border-bottom: var(--rule-1);
    padding-bottom: var(--space-4);
  }
  .doc-contents h2 {
    margin: 0 0 var(--space-2);
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    font-weight: 600;
    color: var(--ink-faint);
  }
  .doc-contents ol {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .doc-contents > ol > li + li {
    margin-top: var(--space-3);
  }
  .doc-contents > ol > li > a {
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    font-weight: 600;
  }
  .doc-contents li ol {
    margin-top: var(--space-1);
    border-left: var(--hairline);
  }
  .doc-contents li ol a {
    display: grid; /* number, then the title; a wrapped title hangs under its first word */
    grid-template-columns: 3.25em minmax(0, 1fr); /* "2.14" is about 2.4em; 2.5em left it touching its title (T22 round 5) */
    min-height: 24px; /* WCAG 2.5.8: each clause link is a 24 px target */
    padding: 3px 0 3px var(--space-3);
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
  }
  .doc-contents a {
    color: var(--foreground);
    text-decoration-line: none;
  }
  .doc-contents a:hover {
    color: var(--green);
    text-decoration-line: underline;
  }
  .doc-contents__n {
    font-variant-numeric: var(--figures-table);
    color: var(--ink-faint);
  }

  /* ---- Rail: the way back to the contents and the parts, one line each; shown only beside the text ------------ */
  .doc-rail {
    display: none;
  }
  .doc-rail ol {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .doc-rail a {
    display: grid;
    grid-template-columns: 1.5em minmax(0, 1fr);
    min-height: 24px; /* WCAG 2.5.8 */
    padding: 3px 0;
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--foreground);
    text-decoration-line: none;
  }
  /* The rail's label says "Parts", so the column never shows two "Contents" headings at once (T29 review 2). */
  .doc-rail h2 {
    margin: 0 0 var(--space-2);
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    font-weight: 600;
    color: var(--ink-faint);
  }
  .doc-rail__end {
    margin-top: var(--space-3);
  }
  /* The way back is set as a link, underlined in the text's ink, not like a heading. */
  .doc-rail a.doc-rail__back {
    display: block;
    color: var(--foreground);
    text-decoration-line: underline; /* base.css's 1 px at 0.18em; hover turns it blue like the rest of the rail */
  }
  .doc-rail a:hover {
    color: var(--green);
    text-decoration-line: underline;
  }
  @media (min-width: 1024px) {
    .doc-layout {
      grid-template-columns: 17rem minmax(0, 1fr);
      gap: var(--space-8);
    }
    .doc-head {
      max-width: calc(17rem + var(--space-8) + 68ch);
    }
    .doc-side {
      max-width: none; /* the 17rem grid column sets it */
    }
    /* The full list is not sticky and has no inner scroll: a list taller than the window would hide Part 4 behind
       a scrollbar macOS does not draw (T22 round 3). It scrolls away with the page; the rail under it, six short
       lines, then stays in view so the column is never empty and the contents are one link away (T29 review). It
       sits in its own column, so it never covers a focused link in the text (WCAG 2.4.11). */
    .doc-contents {
      border-bottom: 0;
    }
    .doc-rail {
      display: block;
      position: sticky;
      top: calc(var(--nav-height) + var(--space-6));
      margin-top: var(--space-7);
      padding-top: var(--space-3);
      border-top: var(--rule-1);
    }
  }

  /* ---- The text: a printed page's measure, part rules, clause numbers that link to themselves ----------------- */
  .doc-body {
    max-width: 68ch;
    font: var(--type-copy-16);
    font-variant-numeric: var(--figures-text);
  }
  .doc-summary li > strong {
    font-weight: 600;
  }
  .doc-body p,
  .doc-body li {
    margin: 0 0 var(--space-3);
  }
  .doc-body :is(ol, ul) {
    margin: 0 0 var(--space-4);
    padding-left: 1.5em;
  }
  .doc-body a {
    overflow-wrap: anywhere;
  }
  /* From 768 px an address in a table breaks only where it must, never inside a word of a cell that could grow
     ("stripe.com/priva / cy" at 1440, T22 round 9 tell 4); on a phone it still breaks anywhere, so it stays inside
     the scrolling frame and its focus ring is not clipped (site T18 focus check). The table never touches the text
     after it (tell 3, open question a). */
  @media (min-width: 768px) {
    .doc-body .series-table a {
      overflow-wrap: break-word;
    }
  }
  .doc-body .series-frame {
    margin: var(--space-3) 0 var(--space-4);
  }
  /* The draft's own summary calls itself a box: drawn on the inset paper, unruled, so it never stacks a rule under
     the heading's or over Part 1's (T22 round 1). --card-edge is the inset paper in light (no edge) and the hairline
     in dark, where the inset paper is too close to the page to read as a box (T22 run of 2026-11-09, tell 8). */
  .doc-summary {
    margin: 0 0 var(--space-7);
    padding: var(--space-4) var(--space-5) var(--space-2);
    border: 1px solid var(--card-edge);
    background-color: var(--muted);
  }
  .doc-summary h2 {
    margin: 0 0 var(--space-3);
    font: var(--type-title-19);
    font-variant-numeric: var(--figures-text);
  }
  .doc-part {
    margin: var(--space-7) 0 var(--space-4);
    padding-top: var(--space-3);
    border-top: var(--rule-2);
    font: var(--type-heading-22);
    font-variant-numeric: var(--figures-text);
  }
  .doc-part__n {
    display: block;
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-faint);
  }
  /* A bare section number ("1.") hangs beside its title like a clause number; a number with a word ("Part 1.") stays
     the kicker above it (T22 round 9, open question b). */
  .doc-part__n--hang {
    display: inline-block;
    min-width: 2.75em;
    font: inherit;
    font-variant-numeric: var(--figures-table);
  }
  .doc-clause {
    margin: var(--space-6) 0 var(--space-2);
    font: var(--type-title-19);
    font-variant-numeric: var(--figures-text);
  }
  .doc-clause__n {
    display: inline-block;
    min-width: 2.75em;
    font-variant-numeric: var(--figures-table);
    color: var(--ink-faint);
    text-decoration-line: none;
  }
  .doc-clause__n:hover {
    color: var(--green);
    text-decoration-line: underline;
  }

  /* ---- Print: the text alone on the light ground, the status line kept, web addresses after their links --------- */
  @media print {
    .site-nav,
    .skip-link,
    .theme-control,
    .doc-contents,
    .doc-rail,
    .site-footer,
    .page-foot {
      display: none;
    }
    .page {
      max-width: none;
      padding: 0;
    }
    .doc-layout {
      display: block;
    }
    .doc-body {
      max-width: none;
    }
    .doc-part,
    .doc-clause {
      break-after: avoid;
    }
    .doc-body :is(p, li) {
      orphans: 3;
      widows: 3;
    }
    .doc-body a {
      color: var(--foreground);
    }
    /* A bare address already prints itself (.doc-url); any other outside link gets its address after it. */
    .doc-body a[href^="http"]:not(.doc-url)::after {
      content: " (" attr(href) ")";
    }
  }
}

/* Slycer design system: the sources page (web/design/css/sources.css, imported by components.css; plan T30). One
   ruled row per source, as the coverage catalogue sets them: the name, its id and status, how it is fetched and the
   key it needs, then each agency's verdict for paid client work with its terms link. Stacked below 1024 px; three
   columns from there. The count line and legal's terms line sit above the list (the source-count component), and
   the API notices close the page. In @layer components, so Tailwind utilities beat it; colours only from tokens.css. */

@layer components {
  /* The count above the list: its line keeps the measure; the sources it names, linked to their rows, take two
     columns from 1024 px (T30 review 2026-11-09). */
  .source-list__count {
    max-width: none;
  }
  .source-list__count p {
    max-width: var(--measure);
  }
  .source-list {
    margin-top: var(--space-5);
    border-top: var(--rule-2);
  }
  .source-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3) var(--space-6);
    padding: var(--space-4) 0 var(--space-5);
    border-bottom: var(--rule-1);
  }
  .source-row__name h2 {
    margin: 0;
    font: var(--type-title-19);
    font-variant-numeric: var(--figures-text);
  }
  /* The id and the status lines under the name, and the words after a partial terms flag ("for the Swiss National
     Bank ... series"), are set as a note, never in the body serif (T22 run of 2026-11-09, round 4 tell 1). */
  .source-row__name p {
    margin: var(--space-1) 0 0;
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  /* A command never breaks across lines ("slycer / refresh" at 375, T22 run of 2026-11-09, tell 6). */
  .source-row code {
    white-space: nowrap;
  }
  .source-row__name code {
    font: var(--type-label-12-mono);
    font-variant-numeric: var(--figures-table);
    color: var(--ink-faint);
  }
  /* Stacked below 1024 px, the facts and each agency's terms keep the legal text's measure in their own face, 68ch,
     under the lede; at full width they ran about 120 characters a line at 768 (T22 run of 2026-11-09, round 7 tell 1).
     From 1024 px their grid columns set the width. */
  .source-row__facts {
    display: grid;
    gap: var(--space-2);
    align-content: start;
    max-width: 68ch;
    margin: 0;
    font: var(--type-note-13); /* the facts are short; the terms beside them are what a buyer reads (T22 round 3) */
    font-variant-numeric: var(--figures-table);
  }
  .source-row__facts dt,
  .source-row__terms h3 {
    margin: 0 0 2px;
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    font-weight: 600;
    color: var(--ink-faint);
  }
  .source-row__facts dd {
    margin: 0;
  }
  .source-row__facts li + li {
    margin-top: var(--space-2);
  }
  .source-row__facts ul,
  .source-terms {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .source-terms li {
    max-width: 68ch;
    padding: var(--space-2) 0;
    border-top: var(--hairline);
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .source-terms li:first-child {
    padding-top: 0;
    border-top: 0;
  }
  .source-terms__agency {
    display: block;
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    color: var(--foreground);
  }
  .source-terms__verdict {
    font-weight: 600;
    color: var(--foreground);
  }
  .source-terms__data,
  .source-terms__duty {
    color: var(--ink-soft);
  }
  /* The terms link on its own line: a 24 px target (WCAG 2.5.8) that does not open up the leading of the sentence. */
  .source-terms a {
    display: block;
    width: fit-content;
    min-height: 24px;
    padding-top: 2px;
  }
  .source-notices {
    margin-top: var(--space-7);
  }
  /* The counts line and the terms paragraph under the lede keep its measure (T22 round 9, tell 6). */
  .source-intro p {
    max-width: 68ch;
  }
  /* The region summary that opens the site's /sources (landing-composition chosen.md: variant b's region table,
     moved here). A ruled definition list: each region's name and count, then its sources, each a link to its row.
     Stacked below 1024 px, names one per line at full width; from 1024 px the region takes the first 3fr column
     (as a row's name does) and its names run in two columns beside it. Reusable for any grouped index of rows. */
  .source-regions {
    margin-top: var(--space-6);
    margin-bottom: var(--space-7);
  }
  .source-regions > p {
    max-width: 68ch;
  }
  .source-regions__list {
    margin: var(--space-4) 0 0;
    border-top: var(--rule-2);
  }
  .source-region {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2) var(--space-6);
    padding: var(--space-3) 0 var(--space-4);
    border-bottom: var(--hairline);
  }
  .source-region:last-child {
    border-bottom: var(--rule-1);
  }
  .source-region dt {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 var(--space-3);
    margin: 0;
  }
  .source-region__label {
    font: var(--type-title-19);
    font-variant-numeric: var(--figures-text);
  }
  .source-region__count {
    font: var(--type-table-15);
    font-variant-numeric: var(--figures-table);
    font-weight: 600;
    color: var(--ink-soft);
  }
  .source-region__coming,
  .source-region__soon {
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  .source-region__coming {
    flex-basis: 100%;
  }
  .source-region dd {
    margin: 0;
  }
  .source-region__names {
    margin: 0;
    padding: 0;
    list-style: none;
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
  }
  /* Each name a 24 px target (WCAG 2.5.8) without opening up the list. */
  .source-region__names a {
    display: inline-block;
    min-height: 24px;
    padding: 2px 0;
  }
  @media (min-width: 1024px) {
    .source-region {
      grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    }
    .source-region dt {
      flex-direction: column;
      gap: var(--space-1);
    }
    .source-region__names {
      columns: 2;
      column-gap: var(--space-6);
    }
    .source-region__names li {
      break-inside: avoid;
    }
  }
  /* Stacked, the Claude on the web line says its own label ("Also in Claude on the web"), so its label is for screen
     readers only (T22 round 9, tell 8). */
  .source-row__facts div:has(> dd[data-web]) > dt {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .source-notices h2 {
    margin: 0 0 var(--space-2);
    font: var(--type-label-13);
    font-variant-numeric: var(--figures-table);
    font-weight: 600;
    color: var(--ink-faint);
  }
  .source-notices ul {
    max-width: var(--measure);
    margin: 0;
    padding-left: 1.25em;
    font: var(--type-note-13);
    font-variant-numeric: var(--figures-text);
    color: var(--ink-soft);
  }
  /* The column heads, from 1024 px only: each row then drops its own labels from view (screen readers keep them),
     so 47 rows do not repeat them (T22 rounds 1 and 2); the facts read on their own ("From the agency on each
     request", "No key needed"). */
  .source-list__head {
    display: none;
  }
  @media (min-width: 1024px) {
    .source-row,
    .source-list__head {
      grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 6fr);
      column-gap: var(--space-6);
    }
    .source-row__facts {
      max-width: none;
    }
    .source-terms li {
      max-width: none;
    }
    .source-list__count .source-count__list {
      columns: 2;
      column-gap: var(--space-6);
    }
    .source-list__head {
      display: grid; /* not sticky: under the sticky masthead it would hide a focused link (WCAG 2.4.11) */
      padding: var(--space-2) 0;
      border-bottom: var(--rule-1);
      font: var(--type-label-13);
      font-variant-numeric: var(--figures-table);
      font-weight: 600;
      color: var(--ink-faint);
    }
    .source-row__terms h3,
    .source-row__facts dt {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
    }
  }
}


/* Focus, unlayered. A scroll region draws the ring outside itself, offset onto the page, so the sticky first column
   cannot cover it (B's defect, chosen.md graft 4): the ink bar fills the 2 px gap, the yellow sits outside it. */
.series-scroll:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--focus-ink);
}
/* A link that starts its own line in a list and can wrap (the legal page's contents, the sources page's list) also
   draws an ink rule down its left edge, on the list's margin, where it covers no text. Firefox does not scroll a
   focused element most of which is in view, so on a two-line link at the bottom of the window the bar under it can
   sit below the edge; on light paper, where the yellow alone is 1.6:1, the rule keeps a 3:1 cue in view (in dark the
   yellow edge is the cue). These were the only stops the T20 walk failed without it. The rule meets the bar at the
   corner, and there is no yellow top: the link's own padding is the ground, and the top ran over the underline of
   the link above (T20 review). */
.doc-contents li ol a:focus-visible,
.source-count__list a:focus-visible {
  box-shadow: -3px 0 var(--focus-ink), -3px 3px var(--focus-ink), 0 3px var(--focus-ink);
}
/* The clause number in the contents and the rail is muted; on the focus yellow it takes the link's ink (3.8:1 in
   light and 1.8:1 in dark otherwise). */
a:focus-visible .doc-contents__n {
  color: inherit;
}
/* A link in the legal text, positioned, paints after the in-flow inline boxes, so a blank's dashed border on the next
   line never covers its ink bar (Firefox kept 1 px of it under "(section 1.4)"). Its ink underline marks every line a
   long URL wraps onto: the bar is drawn under the last line box only, which Firefox may leave under the window's
   bottom edge, and the yellow ground alone is under 3:1 on paper. base.css's ring turns the underline off unlayered,
   so this rule is unlayered too (T22 run of 2026-11-09). The yellow 2 px above the box goes: on a wrapped line it
   covered the underline of the line above where the two overlap (final-fix, 2026-11-09). The ink bar under the box
   stays for a clause number, an inline-block wider than its figures. */
.doc-body a:focus-visible {
  position: relative;
  z-index: 1;
  box-shadow: 0 3px var(--focus-ink);
  text-decoration-line: underline;
  text-decoration-color: var(--focus-ink);
  text-decoration-thickness: 4px; /* from the resting underline's top: 3 px more of ink where the paper was, so 2 rows
                                      stay at 3:1 when Firefox rounds a line top ending in .5 px */
  text-decoration-skip-ink: none; /* unbroken under descenders, so the band runs the whole line */
  text-underline-offset: 0.18em;
}
/* The client switcher's input is invisible; its option draws the ring. On the ink-filled chosen option the inner
   ring is paper (D242), on the others the ink bar. :focus-within, not :has(input:focus-visible): WebKit does not
   re-match the :has() form when an arrow key moves focus to the next radio (tools/t14_switcher.mjs found it), so a
   click shows the ring too, as GOV.UK's radios do. */
.cli-switch__option:focus-within {
  outline: var(--focus-outline);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 2px var(--focus-ink);
}
.cli-switch__option:has(input:checked):focus-within {
  box-shadow: inset 0 0 0 2px var(--background);
}
.cli-switch__option input:focus-visible {
  outline: 0;
  box-shadow: none;
}
/* The theme control's radios are invisible like the switcher's; its option draws the ring, the same way. */
.theme-control__option:focus-within {
  outline: var(--focus-outline);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 2px var(--focus-ink);
  z-index: 1;
}
.theme-control__option:has(input:checked):focus-within {
  box-shadow: inset 0 0 0 2px var(--background);
}
.theme-control__option input:focus-visible {
  outline: 0;
  box-shadow: none;
}
/* A drawn checkbox takes the ring outside its box with the ink bar in the gap, as a scroll region does, so the ring
   never sits on the ink fill of a checked box. A radio's ring would be a circle, with no straight side for a 3:1 band
   to run along (the ink is the dark page in dark, the yellow 1.6:1 on light paper), so a radio rings its option, dot
   and words, as the switcher and the theme control do; :focus-within for the reason given there. */
.check input:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--focus-ink);
}
.check:has(input[type="radio"]):focus-within {
  outline: var(--focus-outline);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--focus-ink);
}
.check input[type="radio"]:focus-visible {
  outline: 0;
  box-shadow: none;
}
/* A button, <button> or a link set as one, keeps its fill when focused: the link's yellow ground is under 3:1 on the
   blue, and the ink bar is under 3:1 on the light theme's blue. The bar inside the yellow is paper on a filled button
   and ink on the paper-filled quiet, destructive and unavailable ones. revert-layer hands the fill back to buttons.css. */
.btn:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 0;
  background-color: revert-layer;
  color: revert-layer;
  box-shadow: inset 0 0 0 2px var(--background);
}
.btn--quiet:focus-visible,
.btn--destructive:focus-visible,
.btn[aria-disabled="true"]:focus-visible {
  box-shadow: var(--focus-bar);
}
