/*
 * ezikit.dev styles.
 *
 * Section 1 is design/ezi-ui/styles/tokens.css (v4) with the font path of the
 * site. Sections 2 to 4 are the page styles of the design mockups
 * (design/ezi-ui/mockups/landing.html, signin.html and account.html), copied
 * as they are. Section 5 holds what the site adds for its other pages (docs,
 * install, checkout, legal, 404) and for real data, built from the same roles.
 * Keep sections 1 to 4 in step with the design files rather than editing them here.
 */

/* ===== 1. Tokens (design/ezi-ui/styles/tokens.css) ===== */
/*
 * ezi design tokens v4.
 *
 * ezi is a sibling of EziCode and uses the EziCode token set. Tiers 0 and 1 and the
 * type, radius and motion scales below are copied value for value from @ezicode/ui
 * (plampod-platform/packages/ezicode-ui/src/tokens.css), at the owner's instruction.
 * Nothing is imported, so the two products can drift apart without touching each
 * other. Component code reads roles, never ramps, exactly as in EziCode.
 *
 * What ezi adds is tier 2, "ezi extensions": the agent vocabulary (run states,
 * actors, model tiers, risk, diffs, provenance, redaction), the always-dark
 * terminal, chart slots, the ezi marks, and control sizes for react-select and
 * react-toastify. Extensions only reference EziCode roles or add values that
 * EziCode has no role for.
 *
 * Brand idea, unchanged: "Your agents, at home." Everything runs on 127.0.0.1.
 * The loopback "e", the bracket markers [OK] [!] [X] [i], the square full stop
 * that doubles as a live cursor, and the dot grid carry it.
 *
 * Theme: light by default, dark under data-theme="dark" on <html> (set it on
 * <html>, not on a wrapper, so portaled menus and toasts inherit it). ezi gui
 * sets the attribute from the saved preference or the OS before first paint.
 */

/* Geist is a variable font (weights 100-900, SIL Open Font License 1.1). ezi ships the
   file locally, copied with its LICENSE.txt, so the dashboard never calls a font CDN. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-variable.woff2") format("woff2");
}

/* ===== Tier 0: ramps (copied from EziCode) ===== */
:root {
  /* Brand green, hue 163. */
  --g-50: #edfbf3;
  --g-100: #d9f7e7;
  --g-200: #b4edd1;
  --g-300: #84ddb4;
  --g-400: #49c895;
  --g-500: #00ad78;
  --g-600: #008258;
  --g-700: #006644;
  --g-800: #005035;
  --g-900: #003824;

  /* Paper neutrals: warm, hue about 70. */
  --p-0: #ffffff;
  --p-25: #fdfcf9;
  --p-50: #f8f6f1;
  --p-100: #f0ede6;
  --p-200: #e4e0d7;
  --p-300: #cfcabe;
  --p-400: #a29d91;
  --p-500: #77736a;
  --p-600: #5c5850;
  --p-700: #403d37;
  --p-800: #2a2824;
  --p-850: #201e1b;
  --p-900: #181715;
  --p-950: #100f0d;

  /* Sticker accents: illustration and decoration only. Never text, never state. */
  --st-sun: #ffd166;
  --st-coral: #ff8a65;
  --st-lilac: #c3b5ff;
  --st-sky: #8fd3ff;
  --st-pink: #ffb3d1;
}

/* ===== Tier 1: roles, light (copied from EziCode) ===== */
:root,
[data-theme="light"] {
  --canvas: var(--p-50);
  --surface: var(--p-0);
  --raised: var(--p-0);
  --sunken: var(--p-100);
  --wash: var(--p-25);
  --line: var(--p-200);
  --line-strong: var(--p-300);
  --ink: #1b1a17;
  --ink-muted: var(--p-600);
  --ink-faint: #615d55;
  --accent: var(--g-600);
  --accent-hover: var(--g-700);
  --accent-edge: var(--g-800);
  --accent-ink: var(--g-700);
  --accent-tint: var(--g-100);
  --accent-wash: var(--g-50);
  --on-accent: #ffffff;
  --mark: var(--g-600);
  --mark-dot: var(--g-500);
  --blob-mint: var(--g-100);
  --focus-ring: 0 0 0 4px color-mix(in oklch, var(--g-300) 70%, transparent);
  --ok-bg: var(--g-100);
  --ok-ink: var(--g-700);
  --warn-bg: #fff1cc;
  --warn-ink: #7a4b00;
  --warn-line: #f2cf7a;
  --err-bg: #ffe1dc;
  --err-ink: #9b1c0c;
  --err-line: #f5a99c;
  --info-bg: #e2ecff;
  --info-ink: #1d3f8f;
  --mute-bg: var(--p-100);
  --mute-ink: var(--p-600);
  --scrim: rgb(27 26 23 / 42%);
  --dots: color-mix(in oklch, var(--p-300) 80%, transparent);

  --lift-1: 0 1px 0 rgb(27 26 23 / 4%), 0 6px 16px -8px rgb(27 26 23 / 16%);
  --lift-2: 0 1px 0 rgb(27 26 23 / 4%), 0 18px 40px -16px rgb(27 26 23 / 26%);
  --lift-3: 0 2px 0 rgb(27 26 23 / 4%), 0 30px 70px -20px rgb(27 26 23 / 38%);
  --edge: inset 0 -3px 0 rgb(0 0 0 / 18%);

  color-scheme: light;
}

/* ===== Tier 1: roles, dark (copied from EziCode) ===== */
[data-theme="dark"] {
  --canvas: var(--p-950);
  --surface: var(--p-900);
  --raised: var(--p-850);
  --sunken: #0b0a09;
  --wash: #14130f;
  --line: var(--p-800);
  --line-strong: var(--p-700);
  --ink: #f5f3ee;
  --ink-muted: var(--p-400);
  --ink-faint: #9b968a;
  --accent: var(--g-500);
  --accent-hover: var(--g-400);
  --accent-edge: var(--g-700);
  --accent-ink: var(--g-400);
  --accent-tint: color-mix(in oklch, var(--g-900) 75%, var(--p-900));
  --accent-wash: color-mix(in oklch, var(--g-900) 40%, var(--p-900));
  --on-accent: #0c0b0a;
  --mark: var(--g-400);
  --mark-dot: var(--g-500);
  --blob-mint: color-mix(in oklch, var(--g-900) 70%, var(--p-900));
  --focus-ring: 0 0 0 4px color-mix(in oklch, var(--g-500) 45%, transparent);
  --ok-bg: color-mix(in oklch, var(--g-900) 80%, var(--p-900));
  --ok-ink: var(--g-300);
  --warn-bg: #3a2b07;
  --warn-ink: #f6d58a;
  --warn-line: #6b5212;
  --err-bg: #3f1510;
  --err-ink: #ffb4a6;
  --err-line: #74281d;
  --info-bg: #16233f;
  --info-ink: #b2c8f7;
  --mute-bg: var(--p-800);
  --mute-ink: var(--p-300);
  --scrim: rgb(0 0 0 / 62%);
  --dots: color-mix(in oklch, var(--p-700) 80%, transparent);
  --lift-1: 0 1px 0 rgb(255 255 255 / 3%) inset, 0 6px 16px -8px rgb(0 0 0 / 60%);
  --lift-2: 0 1px 0 rgb(255 255 255 / 4%) inset, 0 18px 40px -16px rgb(0 0 0 / 70%);
  --lift-3: 0 1px 0 rgb(255 255 255 / 5%) inset, 0 30px 70px -20px rgb(0 0 0 / 80%);
  --edge: inset 0 -3px 0 rgb(0 0 0 / 28%);

  color-scheme: dark;
}

/* ===== Type, radius, motion (copied from EziCode, theme independent) ===== */
:root {
  --display: "Geist", ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  /* System monospace for ids, routes and commands; Geist Mono is not part of the family. */
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-hero: 68px;
  --fs-section: 52px;
  --fs-page: 44px;
  --fs-dialog: 24px;
  --fs-card: 18px;
  --fs-body: 15px;
  --fs-meta: 12.5px;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --dur-4: 600ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.6, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --stagger: 50ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-1: 0.01ms;
    --dur-2: 0.01ms;
    --dur-3: 0.01ms;
    --dur-4: 0.01ms;
    --stagger: 0ms;
  }
}

/* =====================================================================
 * Tier 2: ezi extensions
 * ===================================================================== */

/* Values EziCode has no role for, per theme. Text colours pass 4.5:1 on --surface. */
:root,
[data-theme="light"] {
  --actor-subagent: #1f6a9a;
  --actor-hook: #5b3fc4;

  /* Model tiers: ordinal blue ramp, stronger tier = more emphasis. Always beside a label. */
  --tier-fable: #184f95;
  --tier-opus: #256abf;
  --tier-sonnet: #3987e5;
  --tier-haiku: #86b6ef;

  /* Chart slots: fixed order, never cycled. Validated (CVD and normal vision) on #ffffff;
     slots 3, 4 and 5 sit under 3:1, so charts that use them carry direct labels. */
  --chart-1: #2a78d6;
  --chart-2: #eb6834;
  --chart-3: #1baf7a;
  --chart-4: #eda100;
  --chart-5: #e87ba4;
  --chart-6: #008300;
  --chart-7: #6250d6;
  --chart-8: #e34948;
}

[data-theme="dark"] {
  --actor-subagent: #8fd3ff;
  --actor-hook: #c3b5ff;

  --tier-fable: #b7d3f6;
  --tier-opus: #6da7ec;
  --tier-sonnet: #3987e5;
  --tier-haiku: #256abf;

  /* Validated on --surface #181715: every check passes. */
  --chart-1: #3987e5;
  --chart-2: #d95926;
  --chart-3: #199e70;
  --chart-4: #c98500;
  --chart-5: #d55181;
  --chart-6: #008300;
  --chart-7: #9085e9;
  --chart-8: #e66767;
}

/* Aliases over roles. Declared on every themed scope so they resolve where the theme is set. */
:root,
[data-theme] {
  /* Who did what, in a session timeline */
  --actor-user: var(--ink);
  --actor-agent: var(--accent-ink);
  --actor-tool: var(--mute-ink);
  --actor-system: var(--ink-faint);
  --tier-inherit: var(--line-strong);

  /* Agent run states. Each ships with an icon and a label, never colour alone. */
  --run-queued-ink: var(--ink-muted);
  --run-queued-bg: var(--mute-bg);
  --run-running-ink: var(--accent-ink);
  --run-running-bg: var(--accent-tint);
  --run-awaiting-ink: var(--warn-ink);
  --run-awaiting-bg: var(--warn-bg);
  --run-awaiting-line: var(--warn-line);
  --run-succeeded-ink: var(--ok-ink);
  --run-succeeded-bg: var(--ok-bg);
  --run-failed-ink: var(--err-ink);
  --run-failed-bg: var(--err-bg);
  --run-cancelled-ink: var(--ink-faint);
  --run-cancelled-bg: var(--mute-bg);

  /* Command risk tiers from `ezi describe` */
  --risk-read-only-ink: var(--info-ink);
  --risk-read-only-bg: var(--info-bg);
  --risk-reversible-ink: var(--warn-ink);
  --risk-reversible-bg: var(--warn-bg);
  --risk-destructive-ink: var(--err-ink);
  --risk-destructive-bg: var(--err-bg);

  /* Kit reconcile and drift */
  --diff-add-ink: var(--ok-ink);
  --diff-add-bg: var(--ok-bg);
  --diff-change-ink: var(--warn-ink);
  --diff-change-bg: var(--warn-bg);
  --diff-remove-ink: var(--err-ink);
  --diff-remove-bg: var(--err-bg);

  /* Provenance badges */
  --origin-legacy: var(--mute-ink);
  --origin-ezi: var(--accent-ink);
  --origin-upstream: var(--info-ink);
  --origin-license-none: var(--warn-ink);

  /* Secrets are never rendered; this mask stands in for a value */
  --redacted-ink: var(--ink-faint);
  --redacted-bg: repeating-linear-gradient(135deg, var(--sunken) 0 6px, var(--wash) 6px 12px);

  /* The loopback dot grid, behind empty states, the splash and sign-in. Never behind data. */
  --dot-grid: radial-gradient(circle at 1px 1px, var(--dots) 1px, transparent 0) 0 0 / 20px 20px;

  /* Thinking shimmer: the one functional gradient, for streaming text */
  --shimmer: linear-gradient(90deg, var(--ink-faint) 0%, var(--accent-ink) 50%, var(--ink-faint) 100%);
}

/* The terminal is always dark, in both themes, on the EziCode paper-950 base. */
:root {
  --term-bg: var(--p-950);
  --term-surface: var(--p-900);
  --term-line: var(--p-800);
  --term-ink: #f5f3ee;
  --term-dim: #8c877c;
  --term-cmd: #ffffff;
  --term-prompt: var(--g-400);
  --term-ok: var(--g-300);
  --term-warn: #f6d58a;
  --term-err: #ffb4a6;
  --term-info: #b2c8f7;
  --term-selection: rgb(73 200 149 / 28%);

  --syntax-keyword: #c3b5ff;
  --syntax-string: var(--g-300);
  --syntax-number: #f6d58a;
  --syntax-function: #8fd3ff;
  --syntax-type: #84ddb4;
  --syntax-property: #b2c8f7;
  --syntax-comment: #8c877c;
  --syntax-punctuation: #a29d91;

  --fs-code: 13px;
}

/* Marks, sizes and layers */
:root {
  /* ezi marks follow EziCode's geometry: a 30% squircle and a square full stop.
     The ezi app mark sits on paper-950 (the terminal) instead of green, so the two
     products stay apart in a dock. The full stop is the live cursor: it blinks while
     an agent runs and holds still otherwise. */
  --ezi-mark-bg: var(--p-950);
  --ezi-mark-ink: #ffffff;
  --ezi-mark-dot: var(--g-400);
  --ezi-mark-radius: 30%;
  --ezi-wordmark-weight: 800;
  --ezi-wordmark-tracking: -0.06em;
  --ezi-dot-size: 0.22em;
  --ezi-cursor-blink: 1.06s;

  /* Controls keep EziCode sizes: buttons 44px pill, fields 50px */
  --control-h: 44px;
  --field-h: 50px;
  /* A field inside a panel header, toolbar or settings row matches the 44px
     buttons beside it, which still meets the 44px touch target. */
  --field-h-compact: var(--control-h);

  /* Strokes: controls, cards, dividers and inputs all draw one hairline. */
  --hairline: 1px;

  /* Focus: one accent outline, offset from the edge, never stacked on a
     recoloured border or a box-shadow ring. */
  --focus-w: 2px;
  --focus-offset: 2px;

  /* react-select: chevron 14px from the edge, 44px reserved so text never runs under it */
  --select-indicator-w: 44px;
  --select-chevron-inset: 14px;
  --select-chevron-size: 16px;
  --select-menu-max-h: 320px;
  --select-option-h: 44px;

  /* react-toastify */
  --toast-w: 368px;

  /* Layers: menus 62 and toasts 70 match EziCode */
  --z-sticky: 40;
  --z-rail: 50;
  --z-dialog: 60;
  --z-menu: 62;
  --z-toast: 70;

  --rail-w: 380px;
  --reading-max: 72ch;
}

/* Liveness helpers */
.ezi-thinking {
  background-image: var(--shimmer);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ezi-shimmer 2.2s linear infinite;
}

.ezi-heartbeat {
  animation: ezi-heartbeat 1.6s var(--ease-in-out) infinite;
}

.ezi-live-dot {
  animation: ezi-blink var(--ezi-cursor-blink) steps(1, end) infinite;
}

@keyframes ezi-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@keyframes ezi-heartbeat {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes ezi-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ezi-thinking { animation: none; color: var(--ink-muted); background-image: none; }
  .ezi-heartbeat, .ezi-live-dot { animation: none; }
}


/* ===== 2. Product page and shared chrome (landing.html) ===== */
/*
 * ezikit.dev landing page mockup.
 * Built only from tokens.css roles (no ramps in component rules), mobile first:
 * base styles target 390px, then 768px (tablet) and 1100px (desktop) step up.
 * Theme follows <html data-theme>, set by the header toggle (light by default).
 */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: var(--focus-w) solid var(--accent); outline-offset: var(--focus-offset); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: calc(var(--z-sticky) + 1); padding: 12px 16px; border-radius: var(--r-sm); background-color: var(--surface); color: var(--ink); font-weight: 700; }
.skip:focus { top: 12px; box-shadow: var(--lift-2); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px/1 var(--mono); color: var(--accent-ink); letter-spacing: 0.02em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background-color: var(--mark-dot); }
.h2 { margin: 12px 0 0; font: 800 34px/1.06 var(--display); letter-spacing: -0.045em; text-wrap: balance; }
.h2 i, .h1 i { font-style: normal; color: var(--mark-dot); }
.lead { margin: 14px 0 0; max-width: 66ch; color: var(--ink-muted); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.sec-head { display: flex; flex-direction: column; margin-bottom: 32px; }

/* ---------- Buttons: EziCode pill, 44px, pressable edge ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control-h); padding: 0 20px; border: 0; border-radius: var(--r-pill); background-color: transparent; color: var(--ink); font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn-primary { background-color: var(--accent); color: var(--on-accent); box-shadow: var(--edge); }
.btn-primary:hover { background-color: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { border: 1.5px solid var(--line-strong); background-color: var(--surface); }
.btn-secondary:hover { background-color: var(--wash); color: var(--ink); border-color: var(--ink-faint); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: var(--z-sticky); background-color: color-mix(in srgb, var(--canvas) 90%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; border-radius: var(--r-sm); }
.logo svg { width: 32px; height: 32px; flex: none; }
.wm { font: var(--ezi-wordmark-weight) 22px/1 var(--display); letter-spacing: var(--ezi-wordmark-tracking); color: var(--ink); white-space: nowrap; }
.wm i { display: inline-block; width: var(--ezi-dot-size); height: var(--ezi-dot-size); margin-left: 0.08em; border-radius: 0.03em; background-color: var(--mark-dot); }
.wm .kit { font-weight: 600; color: var(--ink-muted); letter-spacing: -0.03em; }
.nav { display: none; align-items: center; gap: 2px; margin-left: 20px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); color: var(--ink-muted); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.nav a:hover { background-color: var(--sunken); color: var(--ink); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--line); border-radius: var(--r-pill); background-color: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background-color: var(--wash); border-color: var(--line-strong); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.head-buy { display: none; }
.menu-panel { border-top: 1px solid var(--line); padding: 8px 0 16px; }
.menu-panel[hidden] { display: none; }
.menu-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 4px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-panel a:last-child { border-bottom: 0; }
.menu-panel .btn { margin-top: 12px; color: var(--on-accent); justify-content: center; border-bottom: 0; }

/* ---------- Account entry in the header (sign in link, account button and menu) ---------- */
[data-auth="signed-out"] .when-in, [data-auth="signed-in"] .when-out { display: none !important; }
.head-signin { display: none; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.head-signin:hover { background-color: var(--sunken); color: var(--ink); }
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; max-width: 260px; padding: 0 6px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background-color: var(--surface); color: var(--ink); font: 600 14px/1 var(--body); cursor: pointer; }
.acct-btn:hover { background-color: var(--wash); border-color: var(--line-strong); }
.acct-btn[aria-expanded="true"] { border-color: var(--accent); }
.acct-avatar { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background-color: var(--accent-tint); color: var(--accent-ink); font: 800 14px/1 var(--display); }
.acct-email { display: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-chev { display: none; width: 16px; height: 16px; flex: none; color: var(--ink-muted); transition: transform var(--dur-2) var(--ease-out); }
.acct-btn[aria-expanded="true"] .acct-chev { transform: rotate(180deg); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: var(--z-menu); width: 296px; max-width: calc(100vw - 24px); padding: 6px; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--raised); box-shadow: var(--lift-2); }
.acct-menu[hidden] { display: none; }
.acct-who { margin: 0 0 4px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); color: var(--ink-muted); font-size: 13px; }
.acct-who b, .menu-who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 14px; }
.acct-menu [role="menuitem"] { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background-color: transparent; color: var(--ink); font: 600 15px/1 var(--body); text-decoration: none; text-align: left; cursor: pointer; }
.acct-menu [role="menuitem"] svg { width: 18px; height: 18px; flex: none; color: var(--ink-muted); }
.acct-menu [role="menuitem"]:hover, .acct-menu [role="menuitem"]:focus { background-color: var(--sunken); color: var(--ink); }
.acct-menu [role="menuitem"]:focus-visible { outline: var(--focus-w) solid var(--accent); outline-offset: -2px; }
.menu-acct { padding-top: 8px; border-bottom: 1px solid var(--line); }
.menu-who { margin: 0; padding: 8px 4px; color: var(--ink-muted); font-size: 13px; }
.menu-signout { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 4px; border: 0; background-color: transparent; color: var(--ink); font: 600 16px/1 var(--body); text-align: left; cursor: pointer; }
.menu-panel .menu-acct a { border-bottom: 1px solid var(--line); }
@media (min-width: 768px) {
  .head-signin { display: inline-flex; }
  .acct-btn { padding: 0 12px 0 6px; }
  .acct-email { display: block; max-width: 180px; }
  .acct-chev { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 64px; background: var(--dot-grid), var(--wash); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -20% -40% auto; width: 620px; height: 620px; border-radius: 50%; background-color: var(--blob-mint); opacity: 0.55; filter: blur(80px); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.h1 { margin: 16px 0 0; font: 800 42px/1.02 var(--display); letter-spacing: -0.055em; text-wrap: balance; }
.hero .lead { font-size: 18px; color: var(--ink-muted); }
.hero-kits { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 640px; margin: 24px 0 0; padding: 0; list-style: none; }
.hero-kits li { display: flex; }
.hero-kits a { flex: 1; display: flex; flex-direction: column; gap: 3px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background-color: var(--surface); color: var(--ink); text-decoration: none; transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
.hero-kits a:hover { border-color: var(--accent); background-color: var(--accent-tint); }
.hero-kit-name { font-weight: 700; font-size: 15px; }
.hero-kit-purpose { color: var(--ink-muted); font-size: 13.5px; line-height: 1.4; }
.hero-kit-count { margin-top: auto; padding-top: 4px; color: var(--ink-faint); font: 600 12px/1.4 var(--mono); }
@media (min-width: 640px) { .hero-kits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: var(--r-pill); background-color: var(--surface); border: 1px solid var(--line); color: var(--ink-muted); font-size: 13.5px; font-weight: 600; }

/* ---------- Install switcher (terminal, always dark) ---------- */
.install { border-radius: var(--r-lg); background-color: var(--term-bg); color: var(--term-ink); border: 1px solid var(--term-line); box-shadow: var(--lift-3); overflow: hidden; min-width: 0; }
.install-bar { display: flex; align-items: center; gap: 12px; padding: 12px 12px 0 16px; border-bottom: 1px solid var(--term-line); }
.install-bar .dots { display: none; gap: 6px; }
.install-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background-color: var(--term-line); }
.tablist { display: flex; gap: 4px; min-width: 0; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--r-sm) var(--r-sm) 0 0; background-color: transparent; color: var(--term-dim); font: 600 14px/1 var(--body); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--term-ink); }
.tab[aria-selected="true"] { color: var(--term-cmd); background-color: var(--term-surface); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background-color: var(--term-prompt); }
.tab:focus-visible { outline-color: var(--term-prompt); outline-offset: -2px; }
.tab svg { width: 16px; height: 16px; flex: none; }
.panel { padding: 20px 16px 18px; background-color: var(--term-surface); }
.panel[hidden] { display: none; }
.cmd-row { display: flex; flex-direction: column; gap: 12px; }
.cmd { margin: 0; flex: 1; min-width: 0; padding: 14px 16px; border-radius: var(--r-sm); background-color: var(--term-bg); border: 1px solid var(--term-line); font: 600 14px/1.6 var(--mono); color: var(--term-cmd); white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd .p { color: var(--term-prompt); user-select: none; -webkit-user-select: none; }
.cmd .a { color: var(--syntax-string); font-weight: 500; }
.copy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 104px; padding: 0 16px; border: 1px solid var(--term-line); border-radius: var(--r-pill); background-color: var(--term-bg); color: var(--term-ink); font: 600 14px/1 var(--body); cursor: pointer; align-self: flex-start; transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
.copy:hover { background-color: var(--term-line); }
.copy:focus-visible { outline-color: var(--term-prompt); }
.copy svg { width: 16px; height: 16px; }
.copy .ok-ic { display: none; }
.copy[data-copied="true"] { color: var(--term-ok); border-color: color-mix(in oklch, var(--term-ok) 50%, transparent); }
.copy[data-copied="true"] .copy-ic { display: none; }
.copy[data-copied="true"] .ok-ic { display: block; }
.panel-note { margin: 14px 0 0; color: var(--term-dim); font-size: 13.5px; line-height: 1.55; }
.panel-note code { color: var(--term-ink); font-size: 12.5px; overflow-wrap: anywhere; }
.install-next { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-top: 1px solid var(--term-line); font: 500 13px/1.6 var(--mono); color: var(--term-dim); }
.install-next .c { color: var(--term-cmd); font-weight: 700; }
.install-next .p { color: var(--term-prompt); }
.install-next .i { color: var(--term-info); }

/* ---------- Capability areas ---------- */
.kit-block { margin-top: 48px; }
.kit-block:first-of-type { margin-top: 0; }
.kit-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.kit-head h3 { margin: 0; font: 800 26px/1.1 var(--display); letter-spacing: -0.04em; }
.counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.count { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-pill); background-color: var(--accent-tint); color: var(--accent-ink); font: 700 13px/1 var(--mono); white-space: nowrap; }
.count.mute { background-color: var(--mute-bg); color: var(--mute-ink); }
.areas { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.area { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px; border-radius: var(--r-md); background-color: var(--surface); border: 1px solid var(--line); box-shadow: var(--lift-1); }
.area-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background-color: var(--accent-tint); color: var(--accent-ink); }
.area-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.area h4 { margin: 4px 0 0; font: 700 18px/1.25 var(--display); letter-spacing: -0.02em; }
.area p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 1.55; }
.skill-lines { display: grid; gap: 10px; margin: 4px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--line); }
.skill-lines li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.skill-lines code { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-xs); background-color: var(--sunken); color: var(--accent-ink); font: 600 12.5px/1 var(--mono); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skill-lines span { color: var(--ink); font-size: 14px; line-height: 1.45; }
.skill-lines-grid { gap: 14px 24px; margin: 0; }
@media (min-width: 720px) { .skill-lines-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.core { margin-top: 48px; display: grid; gap: 20px; padding: 24px; border-radius: var(--r-lg); background: var(--dot-grid), var(--wash); border: 1px solid var(--line); }
.core h3 { margin: 0; font: 800 22px/1.15 var(--display); letter-spacing: -0.035em; }
.core p { margin: 8px 0 0; color: var(--ink-muted); max-width: 60ch; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-md); background-color: var(--surface); border: 1px solid var(--line); box-shadow: var(--lift-1); min-width: 0; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background-color: var(--ink); color: var(--canvas); font: 800 16px/1 var(--display); }
.step h3 { margin: 0; font: 700 20px/1.2 var(--display); letter-spacing: -0.025em; }
.step p { margin: 0; color: var(--ink-muted); font-size: 15px; }
.step .term { margin: auto 0 0; padding: 12px 14px; border-radius: var(--r-sm); background-color: var(--term-bg); color: var(--term-ink); border: 1px solid var(--term-line); font: 600 13px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.term .p { color: var(--term-prompt); } .term .c { color: var(--term-cmd); } .term .d { color: var(--term-dim); font-weight: 500; }

/* ---------- How you use it: per kit, the steps reuse the step cards ---------- */
.use-guide { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; }
.use-steps .step h4 { margin: 0; font: 700 18px/1.25 var(--display); letter-spacing: -0.02em; }
.use-steps .step p code { color: var(--ink); font-size: 0.93em; overflow-wrap: anywhere; }

/* ---------- Guardrails ---------- */
.guards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.guard { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 20px; border-radius: var(--r-md); background-color: var(--surface); border: 1px solid var(--line); min-width: 0; }
.guard .area-ic { grid-row: span 3; }
.guard h3 { margin: 0; font: 700 17px/1.3 var(--display); letter-spacing: -0.02em; }
.guard p { margin: 0; color: var(--ink-muted); font-size: 15px; }
.guard .hook { justify-self: start; margin-top: 6px; font: 600 12.5px/1 var(--mono); color: var(--actor-hook); }
.honest { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 16px 18px; border-radius: var(--r-md); background-color: var(--info-bg); color: var(--info-ink); font-size: 15px; }
.honest b { font-family: var(--mono); flex: none; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.plan { display: flex; flex-direction: column; gap: 20px; padding: 28px 24px; border-radius: var(--r-xl); background-color: var(--surface); border: 1px solid var(--line); box-shadow: var(--lift-2); min-width: 0; }
.plan-top { display: flex; flex-direction: column; gap: 8px; }
.plan h3 { margin: 0; font: 800 28px/1.05 var(--display); letter-spacing: -0.045em; }
.plan .for { margin: 0; color: var(--ink-muted); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.price .amt { font: 800 56px/1 var(--display); letter-spacing: -0.06em; }
.price .cur { font: 700 20px/1 var(--display); letter-spacing: -0.03em; }
.price .per { color: var(--ink-muted); font-weight: 600; }
.price-block { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; }
.price-block .price { margin-top: 0; }
.launch-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background-color: var(--accent-tint); color: var(--accent-ink); font: 700 12.5px/1 var(--body); }
.price .regular { margin-left: 6px; color: var(--ink-muted); font: 600 18px/1 var(--display); text-decoration-thickness: 2px; }
.saving { margin: 0; color: var(--ok-ink); font-weight: 600; font-size: 14.5px; }
.renewal { margin: 0; color: var(--ink-muted); font-size: 14.5px; }
.no-subscription { margin: 0; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.plan-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plan-meta li { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-pill); background-color: var(--sunken); color: var(--ink-muted); font-size: 13.5px; font-weight: 600; }
.includes { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; }
.includes li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; }
.includes li svg { width: 20px; height: 20px; margin-top: 2px; color: var(--accent-ink); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.includes .sub { display: block; color: var(--ink-muted); font-size: 13.5px; }
.includes code { font-size: 13px; }
.plan .btn-block { margin-top: auto; }
.buy-terms { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 24px 0 0; padding: 0; list-style: none; }
.buy-terms li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background-color: var(--wash); font-size: 14.5px; color: var(--ink-muted); }
.buy-terms b { display: block; color: var(--ink); }
.buy-terms svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent-ink); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- FAQ: native details, keyboard operable ---------- */
.faq { display: flex; flex-direction: column; max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 4px; font: 700 17px/1.35 var(--display); letter-spacing: -0.015em; cursor: pointer; list-style: none; border-radius: var(--r-xs); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
.faq .chev { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--r-pill); background-color: var(--sunken); color: var(--ink-muted); transition: transform var(--dur-2) var(--ease-out); }
.faq .chev svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.faq details[open] .chev { transform: rotate(180deg); background-color: var(--accent-tint); color: var(--accent-ink); }
.faq .ans { padding: 0 4px 20px; color: var(--ink-muted); max-width: var(--reading-max); }
.faq .ans p { margin: 0 0 10px; }
.faq .ans p:last-child { margin-bottom: 0; }
.faq .ans ul { margin: 0 0 10px; padding-left: 20px; }
.faq .ans li { margin-bottom: 4px; }
.faq code { font-size: 13.5px; color: var(--ink); background-color: var(--sunken); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------- Closing CTA and footer ---------- */
.closing { display: flex; flex-direction: column; gap: 20px; padding: 32px 24px; border-radius: var(--r-xl); background-color: var(--term-bg); color: var(--term-ink); border: 1px solid var(--term-line); }
.closing h2 { margin: 0; font: 800 30px/1.08 var(--display); letter-spacing: -0.045em; color: var(--term-cmd); }
.closing p { margin: 0; color: var(--term-dim); max-width: 56ch; }
.closing .btn-secondary { background-color: transparent; color: var(--term-ink); border-color: var(--term-line); }
.closing .btn-secondary:hover { background-color: var(--term-surface); color: var(--term-cmd); }
.closing .btn-primary { background-color: var(--g-500); color: #0c0b0a; }
.closing .btn-primary:hover { background-color: var(--g-400); color: #0c0b0a; }
.closing :focus-visible { outline-color: var(--term-prompt); }
.site-foot { padding: 48px 0 40px; border-top: 1px solid var(--line); margin-top: 64px; background-color: var(--surface); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.foot-grid p { margin: 12px 0 0; color: var(--ink-muted); font-size: 14px; max-width: 44ch; }
.foot-col h2 { margin: 0 0 8px; font: 700 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.foot-col ul { margin: 0; padding: 0; list-style: none; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; }
.foot-col a:hover { color: var(--accent-ink); text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 13px; }

/* ---------- "Works with" row under the hero copy: text labels only, no vendor logos ---------- */
.works { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 28px; }
.works-label { font: 700 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin-right: 2px; }
.works-list { display: contents; margin: 0; padding: 0; list-style: none; }
.works-list li { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: var(--r-pill); border: 1px solid var(--line); background-color: var(--surface); color: var(--ink-muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.works-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }

/* ---------- Skill pages: /skills/ and one page per skill ---------- */
.skill-link { display: inline-flex; max-width: 100%; border-radius: var(--r-xs); text-decoration: none; }
.skill-link:hover code { background-color: var(--accent-wash); }
.skill-link:focus-visible { outline: var(--focus-w) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.skill-page .page-head h1 code { font: 700 clamp(24px, 4.2vw, 34px)/1.15 var(--mono); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.skill-page .page-head h1 { white-space: normal; }
.prose .skill-sections, .skill-sections { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.prose .skill-sections li, .skill-sections li { margin: 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background-color: var(--surface); color: var(--ink); font-size: 14px; line-height: 1.5; }
.link-card-note { color: var(--accent-ink); font-size: 14px; }
.prose .link-cards { padding-left: 0; }
.prose .link-cards li { margin: 0; }
.skill-jump ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.skill-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background-color: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.skill-jump a:hover { border-color: var(--line-strong); background-color: var(--wash); }
.skill-jump a:focus-visible { outline: var(--focus-w) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.skill-jump span { color: var(--ink-muted); font: 600 12.5px/1 var(--mono); }
.skill-group { margin: 0 0 40px; scroll-margin-top: 96px; }
.skill-group h2 { margin: 0; font: 800 24px/1.2 var(--display); letter-spacing: -0.02em; scroll-margin-top: 96px; }
.skill-group > p { margin: 6px 0 0; color: var(--ink-muted); }
.prose .skill-list, .skill-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.prose .skill-list li, .skill-list li { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.skill-list a { align-self: flex-start; max-width: 100%; border-radius: var(--r-xs); text-decoration: none; }
.skill-list a:focus-visible { outline: var(--focus-w) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.prose .skill-list code, .skill-list code { display: inline-block; max-width: 100%; padding: 2px 8px; border-radius: var(--r-xs); background-color: var(--sunken); color: var(--accent-ink); font: 600 13.5px/1.5 var(--mono); overflow-wrap: anywhere; }
.skill-list a:hover code { background-color: var(--accent-wash); }
.skill-list span { color: var(--ink); font-size: 15px; line-height: 1.5; }
@media (min-width: 768px) {
  .prose .skill-list li, .skill-list li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 16px; align-items: baseline; }
}

/* ---------- "See a kit at work": a pipeline over a terminal transcript, one example job per kit ---------- */
.demo { border-radius: var(--r-lg); background-color: var(--term-bg); color: var(--term-ink); border: 1px solid var(--term-line); box-shadow: var(--lift-3); overflow: hidden; min-width: 0; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 12px 0 16px; border-bottom: 1px solid var(--term-line); }
.demo-bar .dots { display: none; gap: 6px; }
.demo-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background-color: var(--term-line); }
.demo-tabs { flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-tabs .tab { justify-content: center; }
.demo-toggle { display: inline-flex; align-items: center; min-height: 32px; margin: 0 0 8px auto; padding: 0 12px; border: 1px solid var(--term-line); border-radius: var(--r-pill); background-color: transparent; color: var(--term-dim); font: 600 13px/1 var(--body); cursor: pointer; }
.demo-toggle:hover { color: var(--term-ink); border-color: var(--term-dim); }
.demo-toggle:focus-visible { outline: 2px solid var(--term-prompt); outline-offset: 2px; }
.demo-toggle[hidden] { display: none; }
.demo-panel { display: grid; gap: 20px; padding: 20px 16px; background-color: var(--term-surface); grid-template-columns: minmax(0, 1fr); }
.demo-panel[hidden] { display: none; }
.demo-panel:focus-visible { outline: 2px solid var(--term-prompt); outline-offset: -2px; }
.demo-kicker { margin: 0 0 8px; font: 600 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--term-prompt); }
.demo-title { margin: 0; font: 800 20px/1.25 var(--display); letter-spacing: -0.01em; color: var(--term-cmd); }
.demo-situation { margin: 10px 0 0; color: var(--term-ink); font-size: 15px; line-height: 1.6; }

/* Pipeline: one node per step, joined by a line; done nodes take the step's tone. */
.demo-pipeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.demo-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; }
.demo-stage::before { content: ""; position: absolute; top: 5px; right: 50%; width: 100%; height: 2px; background-color: var(--term-line); }
.demo-stage:first-child::before { display: none; }
.demo-node { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--term-line); background-color: var(--term-bg); }
.demo-stage-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo-stage[data-tone="ok"] .demo-node, .demo-stage[data-tone="plain"] .demo-node { border-color: var(--term-ok); background-color: var(--term-ok); }
.demo-stage[data-tone="fail"] .demo-node, .demo-stage[data-tone="block"] .demo-node { border-color: var(--term-err); background-color: var(--term-err); }
.demo-stage[data-tone="warn"] .demo-node, .demo-stage[data-tone="wait"] .demo-node { border-color: var(--term-warn); background-color: var(--term-warn); }
.demo-stage:not(:first-child)::before { background-color: var(--term-ok); }

/* Transcript: Claude Code's own shape, a bullet per tool run and an elbow per result. */
.demo-term { min-width: 0; padding: 16px; border-radius: var(--r-md); background-color: var(--term-bg); border: 1px solid var(--term-line); font: 500 13px/1.6 var(--mono); }
.demo-prompt { margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px dashed var(--term-line); color: var(--term-cmd); font: 600 13.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.demo-prompt .p { color: var(--term-prompt); }
.demo-ghost { color: transparent; }
.demo-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.demo-run { margin: 0; }
.demo-bullet { display: inline-block; flex: none; width: 18px; color: var(--term-ok); font-size: 11px; }
.demo-name { color: var(--term-cmd); font-weight: 700; }
.demo-does { display: block; margin: 2px 0 0 18px; min-width: 0; color: var(--term-dim); font-family: var(--body); font-size: 13.5px; }
.demo-result { margin: 4px 0 0 18px; color: var(--term-ink); overflow-wrap: anywhere; }
.demo-result > span { margin-right: 6px; }
.demo-result > .demo-text { margin-right: 0; }
.demo-elbow { display: none; flex: none; color: var(--term-line); }
.demo-mark { flex: none; font-weight: 700; }
.demo-tone { flex: none; font: 700 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.demo-text { min-width: 0; }
.demo-step[data-tone="ok"] :is(.demo-mark, .demo-tone), .demo-step[data-tone="plain"] :is(.demo-mark, .demo-tone) { color: var(--term-ok); }
.demo-step[data-tone="fail"] :is(.demo-mark, .demo-tone, .demo-bullet), .demo-step[data-tone="block"] :is(.demo-mark, .demo-tone, .demo-bullet) { color: var(--term-err); }
.demo-step[data-tone="warn"] :is(.demo-mark, .demo-tone, .demo-bullet), .demo-step[data-tone="wait"] :is(.demo-mark, .demo-tone, .demo-bullet) { color: var(--term-warn); }

.demo-outcome { display: grid; gap: 16px; }
.demo-outcome h4 { margin: 0 0 8px; font: 600 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--term-prompt); }
.demo-outcome p { margin: 0; color: var(--term-ink); font-size: 14.5px; line-height: 1.6; }
.demo-gets { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.demo-gets li { position: relative; padding-left: 20px; color: var(--term-ink); font-size: 14.5px; line-height: 1.5; }
.demo-gets li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 10px; height: 6px; border-left: 2px solid var(--term-ok); border-bottom: 2px solid var(--term-ok); transform: rotate(-45deg); }

/* Playback, only when motion is allowed and the script has taken over. Lines that have not run
   keep their space, so nothing below moves; everything is in the HTML without the script. */
.motion [data-playing] .demo-step { opacity: 0; transition: opacity var(--dur-3) var(--ease-out); }
.motion [data-playing] .demo-step .demo-result { opacity: 0; transition: opacity var(--dur-3) var(--ease-out); }
.motion [data-playing] .demo-step.is-on, .motion [data-playing] .demo-step.is-done .demo-result { opacity: 1; }
.motion [data-playing] .demo-step.is-on:not(.is-done) .demo-bullet { color: var(--term-prompt); animation: ezi-demo-blink 1s steps(2, start) infinite; }
.motion [data-playing] .demo-stage .demo-node { border-color: var(--term-line); background-color: var(--term-bg); transition: background-color var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out); }
.motion [data-playing] .demo-stage:not(:first-child)::before { background-color: var(--term-line); transition: background-color var(--dur-4) var(--ease-out); }
.motion [data-playing] .demo-stage.is-on:not(:first-child)::before { background-color: var(--term-ok); }
.motion [data-playing] .demo-stage.is-on:not(.is-done) .demo-node { border-color: var(--term-prompt); box-shadow: 0 0 0 4px color-mix(in oklch, var(--term-prompt) 22%, transparent); }
.motion [data-playing] .demo-stage.is-done[data-tone="ok"] .demo-node, .motion [data-playing] .demo-stage.is-done[data-tone="plain"] .demo-node { border-color: var(--term-ok); background-color: var(--term-ok); }
.motion [data-playing] .demo-stage.is-done[data-tone="fail"] .demo-node, .motion [data-playing] .demo-stage.is-done[data-tone="block"] .demo-node { border-color: var(--term-err); background-color: var(--term-err); }
.motion [data-playing] .demo-stage.is-done[data-tone="warn"] .demo-node, .motion [data-playing] .demo-stage.is-done[data-tone="wait"] .demo-node { border-color: var(--term-warn); background-color: var(--term-warn); }
.motion [data-playing] .demo-stage.is-on .demo-stage-name { color: var(--term-ink); }
.motion [data-typing] code::after { content: ""; display: inline-block; width: 0.55em; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background-color: var(--term-prompt); animation: ezi-demo-blink 1s steps(2, start) infinite; }
@keyframes ezi-demo-blink { to { visibility: hidden; } }

@media (min-width: 640px) {
  .demo-tabs { flex: 0 1 auto; display: flex; }
  .demo-bar .dots { display: inline-flex; }
  .demo-toggle { margin-bottom: 0; }
  .demo-panel { padding: 24px; }
  .demo-stage-name { position: static; width: auto; height: auto; overflow: visible; clip: auto; font: 600 11.5px/1.3 var(--mono); color: var(--term-dim); white-space: normal; overflow-wrap: anywhere; }
  .demo-term { padding: 20px 22px; }
  .demo-run { display: flex; align-items: baseline; gap: 0 8px; }
  .demo-bullet { width: 14px; }
  .demo-does { display: inline; flex: 1 1 16ch; margin: 0; }
  .demo-result { display: flex; align-items: baseline; gap: 8px; margin-left: 22px; }
  .demo-result > span { margin-right: 0; }
  .demo-elbow { display: inline; }
}
@media (max-width: 639px) {
  .demo-tabs .tab-ink { display: none; }
  .demo-tabs.has-ink .tab[aria-selected="true"]::after { content: ""; }
}
@media (min-width: 1024px) {
  .demo-panel { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-rows: auto auto 1fr; gap: 24px 36px; padding: 32px; }
  .demo-case { grid-column: 1; grid-row: 1 / span 2; }
  .demo-outcome { grid-column: 1; grid-row: 3; align-self: start; padding-top: 20px; border-top: 1px solid var(--term-line); }
  .demo-pipeline { grid-column: 2; grid-row: 1; }
  .demo-term { grid-column: 2; grid-row: 2 / span 2; }
}

/* ---------- Runtime matrix: a table from 1100px, stacked cards below ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 20px; padding: 0; list-style: none; color: var(--ink-muted); font-size: 14px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.st { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font: 700 12.5px/1 var(--body); white-space: nowrap; }
.st svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.st.full { background-color: var(--ok-bg); color: var(--ok-ink); }
.st.part { background-color: var(--warn-bg); color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--warn-line); }
.st.none { background-color: var(--mute-bg); color: var(--mute-ink); }
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; }
.matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.matrix tbody { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.matrix tr { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); box-shadow: var(--lift-1); overflow: hidden; }
.matrix tr.lead-row { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--lift-1); }
.matrix th[scope="row"] { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 16px 12px; text-align: left; background-color: var(--wash); border-bottom: 1px solid var(--line); }
.rt-name { font: 800 18px/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.rt-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--r-pill); background-color: var(--accent-tint); color: var(--accent-ink); font: 700 11.5px/1 var(--mono); }
.rt-cmd { display: block; max-width: 100%; font: 600 12.5px/1.5 var(--mono); color: var(--ink-muted); overflow-wrap: anywhere; }
.matrix td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.matrix td:last-child { border-bottom: 0; }
.matrix td::before { content: attr(data-label); grid-row: span 2; padding-top: 4px; font: 600 12px/1.2 var(--mono); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.matrix td .st { justify-self: start; }
.cell-note { display: block; color: var(--ink-muted); font-size: 13px; line-height: 1.45; }
.matrix-foot { margin: 20px 0 0; color: var(--ink-muted); font-size: 14.5px; max-width: 80ch; }

/* Dark theme: the ink app mark and the always-dark terminal need an edge on a dark canvas. */
[data-theme="dark"] .logo svg { border-radius: 30%; box-shadow: 0 0 0 1px var(--line-strong); }
[data-theme="dark"] .install, [data-theme="dark"] .closing { border-color: var(--line-strong); }

/* Phones: hero actions take the full row so both stay easy to hit. */
@media (max-width: 767px) { .hero-ctas .btn { flex: 1 1 100%; } }

/* ---------- Tablet, 768px and up ---------- */
@media (min-width: 768px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
  .matrix tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 88px 0; }
  .h1 { font-size: 56px; }
  .h2 { font-size: 44px; }
  .hero { padding: 72px 0 88px; }
  .head-buy { display: inline-flex; }
  .install-bar .dots { display: inline-flex; }
  .cmd-row { flex-direction: row; align-items: stretch; }
  .copy { align-self: stretch; }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { padding: 32px; }
  .buy-terms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .core { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; padding: 32px; }
  .closing { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px; }
  .foot-grid { grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr)); }
}

/* ---------- Desktop, 1100px and up ---------- */
@media (min-width: 1100px) {
  .nav { display: flex; }
  .menu-btn, .menu-panel { display: none !important; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; }
  .cmd { font-size: 13.5px; }
  .h1 { font-size: var(--fs-hero); }
  .h2 { font-size: var(--fs-section); }
  .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Runtime matrix becomes a real table. */
  .matrix-box { border: 1px solid var(--line); border-radius: var(--r-lg); background-color: var(--surface); box-shadow: var(--lift-1); overflow: hidden; }
  .matrix { table-layout: fixed; }
  .matrix thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .matrix tbody { display: table-row-group; }
  .matrix tr { display: table-row; border: 0; border-radius: 0; box-shadow: none; background-color: transparent; }
  .matrix tr.lead-row { box-shadow: none; }
  .matrix tr.lead-row > *, .matrix tr.lead-row > th[scope="row"] { background-color: var(--accent-wash); }
  .matrix thead th { padding: 14px 12px; text-align: left; font: 600 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); background-color: var(--wash); border-bottom: 1px solid var(--line); }
  .matrix thead th:first-child { width: 23%; padding-left: 20px; }
  .matrix th[scope="row"] { display: table-cell; padding: 16px 12px 16px 20px; background-color: transparent; border-bottom: 1px solid var(--line); vertical-align: top; }
  .matrix th[scope="row"] > * + * { margin-top: 6px; }
  .matrix td { display: table-cell; padding: 16px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
  .matrix td:last-child { border-bottom: 1px solid var(--line); }
  .matrix tbody tr:last-child > * { border-bottom: 0; }
  .matrix td::before { content: none; }
  .matrix td .cell-note { margin-top: 6px; }
  .rt-name { font-size: 16px; display: block; }
}

/* ===== 3. Sign-in (signin.html) ===== */
/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }
/* ---------- Sign-in card ---------- */
.auth-main { min-height: calc(100vh - 69px); padding: 32px 0 64px; background: var(--dot-grid), var(--wash); border-bottom: 1px solid var(--line); }
.auth-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); max-width: 980px; margin: 0 auto; align-items: start; }
.auth-card { padding: 28px 22px; border: 1px solid var(--line); border-radius: var(--r-xl); background-color: var(--surface); box-shadow: var(--lift-2); min-width: 0; }
.auth-card h1 { margin: 10px 0 0; font: 800 32px/1.08 var(--display); letter-spacing: -0.045em; }
.auth-card h1 i { font-style: normal; color: var(--mark-dot); }
.auth-card .sub { margin: 10px 0 0; color: var(--ink-muted); }
.auth-card .sub b { color: var(--ink); overflow-wrap: anywhere; }
.steps-ind { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; font: 700 12px/1 var(--mono); color: var(--ink-faint); }
.steps-ind li { display: inline-flex; align-items: center; gap: 6px; }
.steps-ind li + li::before { content: ""; width: 18px; height: 1.5px; background-color: var(--line-strong); }
.steps-ind [aria-current="step"] { color: var(--accent-ink); }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 14.5px; }
.input { width: 100%; height: var(--field-h); padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background-color: var(--surface); color: var(--ink); font: 500 16px/1 var(--body); }
.input::placeholder { color: var(--ink-faint); }
.input:hover { border-color: var(--ink-faint); }
.input:focus { outline: var(--focus-w) solid var(--accent); outline-offset: var(--focus-offset); border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: var(--err-ink); background-color: color-mix(in srgb, var(--err-bg) 35%, var(--surface)); }
.input:disabled { background-color: var(--sunken); color: var(--ink-muted); cursor: not-allowed; }
.input.code { font: 700 26px/1 var(--mono); letter-spacing: 0.4em; text-align: center; padding-left: calc(16px + 0.4em); }
.help { margin: 0; color: var(--ink-muted); font-size: 13.5px; }
.err { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--err-ink); font-size: 14px; font-weight: 600; }
.err svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.banner { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14.5px; }
.banner svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.banner b { display: block; }
.banner.info { background-color: var(--info-bg); color: var(--info-ink); }
.banner.ok { background-color: var(--ok-bg); color: var(--ok-ink); }
.banner.warn { background-color: var(--warn-bg); color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--warn-line); }
.banner.error { background-color: var(--err-bg); color: var(--err-ink); box-shadow: inset 0 0 0 1px var(--err-line); }
/* Inside a form the form's gap already spaces the banner. */
.form > .banner { margin: 0; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn:focus-visible { outline: var(--focus-w) solid var(--accent); outline-offset: 3px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: ezi-spin 0.8s linear infinite; }
@keyframes ezi-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-right-color: currentColor; opacity: 0.6; } }
.row-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background-color: transparent; color: var(--accent-ink); font: 600 15px/1.2 var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: var(--r-xs); }
.link-btn:hover { color: var(--accent-hover); }
.link-btn[disabled] { color: var(--ink-faint); text-decoration: none; cursor: not-allowed; }
.divider { height: 1px; margin: 24px 0 0; background-color: var(--line); border: 0; }
.alt { margin: 20px 0 0; color: var(--ink-muted); font-size: 15px; }
.side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); }
.side-card h2 { margin: 0 0 6px; font: 700 17px/1.3 var(--display); letter-spacing: -0.02em; }
.side-card p { margin: 0; color: var(--ink-muted); font-size: 14.5px; }
.term-line { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background-color: var(--term-bg); color: var(--term-cmd); border: 1px solid var(--term-line); font: 600 14px/1.5 var(--mono); }
.term-line .p { color: var(--term-prompt); }
.side-card .term-line { color: var(--term-cmd); }
.auth-step[hidden] { display: none; }
@media (min-width: 768px) {
  .auth-main { padding: 48px 0 88px; }
  .auth-card { padding: 40px; }
  .auth-card h1 { font-size: 40px; }
}
@media (min-width: 1100px) {
  .auth-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 32px; }
}

/* ===== 4. Account (account.html) ===== */
/* ---------- Account page ---------- */
.acct-main { padding: 32px 0 64px; background: var(--dot-grid), var(--wash); border-bottom: 1px solid var(--line); min-height: calc(100vh - 69px); }
.page-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; min-width: 0; }
.page-head h1 { margin: 0; font: 800 34px/1.06 var(--display); letter-spacing: -0.045em; }
.page-head h1 i { font-style: normal; color: var(--mark-dot); }
.page-head p { margin: 0; color: var(--ink-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-head p b { color: var(--ink); }
.view[hidden] { display: none; }
.licenses { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.lic { display: flex; flex-direction: column; gap: 20px; padding: 22px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background-color: var(--surface); box-shadow: var(--lift-1); min-width: 0; }
.lic.is-expired { background-color: var(--wash); }
.lic-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.lic-top h2 { margin: 0; font: 800 24px/1.1 var(--display); letter-spacing: -0.04em; }
.lic-top .grow { flex: 1; min-width: 0; }
.lic-top .renew-note { color: var(--ink-muted); font-size: 13.5px; }
@media (max-width: 767px) { .lic-top .renew-note { order: 1; flex-basis: 100%; } }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: var(--r-pill); font: 700 13px/1 var(--body); white-space: nowrap; }
.badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.badge.active { background-color: var(--ok-bg); color: var(--ok-ink); }
.badge.soon { background-color: var(--warn-bg); color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--warn-line); }
.badge.expired { background-color: var(--err-bg); color: var(--err-ink); box-shadow: inset 0 0 0 1px var(--err-line); }
.lic-note { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14.5px; }
.lic-note.soon { background-color: var(--warn-bg); color: var(--warn-ink); }
.lic-note.expired { background-color: var(--err-bg); color: var(--err-ink); }
.facts-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin: 0; }
.facts-grid div { min-width: 0; }
.facts-grid dt { font: 600 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
.facts-grid dd { margin: 6px 0 0; font-weight: 600; }
.facts-grid dd .muted { display: block; font-weight: 400; font-size: 13.5px; color: var(--ink-muted); }
.meter { display: block; height: 8px; margin-top: 8px; border-radius: var(--r-pill); background-color: var(--line-strong); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: var(--r-pill); background-color: var(--accent); }
.key-row { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--wash); min-width: 0; }
.key-row .lbl { font: 600 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
.key-val { display: block; margin-top: 6px; font: 700 15px/1.4 var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-help { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-muted); }
.btn-danger-quiet { border: 1.5px solid var(--err-line); background-color: var(--surface); color: var(--err-ink); }
.btn-danger-quiet:hover { background-color: var(--err-bg); color: var(--err-ink); }
.btn-danger { background-color: var(--err-ink); color: var(--surface); box-shadow: var(--edge); }
.btn-danger:hover { background-color: color-mix(in srgb, var(--err-ink) 85%, var(--ink)); color: var(--surface); }
.btn:focus-visible { outline: var(--focus-w) solid var(--accent); outline-offset: 3px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.dev-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.dev-head h3 { margin: 0; font: 700 17px/1.3 var(--display); letter-spacing: -0.02em; }
.dev-head span { color: var(--ink-muted); font-size: 14px; }
.devices { margin: 12px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.device { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); background-color: var(--surface); }
.device:last-child { border-bottom: 0; }
.dev-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background-color: var(--sunken); color: var(--ink-muted); grid-row: span 2; }
.dev-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dev-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.dev-meta { min-width: 0; color: var(--ink-muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device .btn { grid-column: 2; justify-self: start; margin-top: 6px; }
.dev-empty { margin: 12px 0 0; padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--ink-muted); font-size: 14.5px; }
.empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding: 28px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--dot-grid), var(--surface); }
.empty-state h2 { margin: 0; font: 800 24px/1.15 var(--display); letter-spacing: -0.04em; }
.empty-state p { margin: 0; color: var(--ink-muted); max-width: 60ch; }
.empty-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background-color: var(--accent-tint); color: var(--accent-ink); }
.empty-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.past-title { margin: 8px 0 12px; font: 700 13px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
.acct-card { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; padding: 22px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background-color: var(--surface); min-width: 0; }
.acct-card h2 { margin: 0; font: 800 22px/1.15 var(--display); letter-spacing: -0.035em; }
.acct-row { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.acct-row .who { min-width: 0; }
.acct-row .who dt { font: 600 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
.acct-row .who dd { margin: 6px 0 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-row .who p { margin: 6px 0 0; color: var(--ink-muted); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 20px; z-index: var(--z-toast); transform: translateX(-50%); display: flex; gap: 10px; align-items: center; width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: var(--r-md); background-color: var(--raised); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--lift-2); font-size: 14.5px; }
.toast[hidden] { display: none; }
.toast svg { width: 18px; height: 18px; color: var(--ok-ink); flex: none; }

/* Confirmation dialog: native <dialog> in the top layer, so it is never clipped and traps focus. */
.confirm { width: min(500px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background-color: var(--raised); color: var(--ink); box-shadow: var(--lift-3); }
.confirm::backdrop { background-color: var(--scrim); }
.confirm form { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.confirm h2 { margin: 0; font: 800 22px/1.2 var(--display); letter-spacing: -0.035em; overflow-wrap: anywhere; }
.confirm p { margin: 0; color: var(--ink-muted); }
.confirm .target { display: block; padding: 10px 12px; border-radius: var(--r-sm); background-color: var(--sunken); color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.confirm ul { margin: 0; padding-left: 20px; color: var(--ink-muted); }
.confirm li { margin-bottom: 4px; }
.confirm .actions { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 6px; }

@media (min-width: 768px) {
  .acct-main { padding: 48px 0 88px; }
  .page-head h1 { font-size: 44px; }
  .lic, .acct-card { padding: 28px; }
  .facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .key-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .key-row > div { min-width: 0; }
  .device { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .device .btn { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; }
  .acct-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .confirm .actions { flex-direction: row; justify-content: flex-end; }
  .empty-state { padding: 36px; }
}
@media (min-width: 1100px) {
  .lic-top h2 { font-size: 28px; }
}

/* ===== 5. Site additions: other pages and real data, from the same roles ===== */
main:focus { outline: none; }
/* Nav labels never wrap; the email in the account button truncates instead. */
.nav a { white-space: nowrap; }
.copy-buffer { position: fixed; top: 0; left: 0; opacity: 0; pointer-events: none; }
.closing-wrap { display: block; }
.closing-ctas { margin-top: 0; }
.cell-note.strong { color: var(--ink); }
.pricing-note { margin: 20px 0 0; max-width: 80ch; color: var(--ink-muted); font-size: 14.5px; }
/* The refund terms sit under the price, in the price block's muted voice. */
.refund-line { margin: 0; color: var(--ink-muted); font-size: 14.5px; }

/* Four usage steps: two columns on tablets, one row on desktops. */
@media (min-width: 768px) { .steps.use-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps.use-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Products every license includes: the shared-skills panel with product chips. */
.core-products { margin-top: 20px; }
/* Shared skills: the heading sits on top and the examples fill the width, in
   bordered cells so the grid reads as a set at every column count. */
.core.core-skills { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; }
.core-skills-head p { max-width: 72ch; }
.core-skills .skill-lines-grid { gap: 10px; padding-top: 0; border-top: 0; }
.core-skills .skill-lines-grid li { gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background-color: var(--surface); }
@media (min-width: 1100px) { .core-skills .skill-lines-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.product-list li { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background-color: var(--surface); color: var(--ink); font-weight: 600; font-size: 14.5px; }

/* Inner pages share the account page head; its lead wraps. */
.page-head .lead { margin: 0; white-space: normal; overflow: visible; text-overflow: clip; }
.page-head .lead code { font-size: 0.92em; }
.doc-main { padding: 32px 0 64px; min-height: calc(100vh - 69px); }
.doc-wrap { max-width: 1040px; }
.install-wide { margin: 8px 0 40px; }

/* Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 16px; padding: 0; list-style: none; font: 600 12.5px/1.4 var(--mono); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--ink-faint); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 24px; color: var(--ink-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.breadcrumbs a[aria-current="page"] { color: var(--accent-ink); }

/* Docs and legal: side navigation and long-form prose. */
.with-side { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.side-nav { padding: 8px; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); }
.side-nav-title { margin: 6px 10px 8px; font: 700 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.side-nav ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.side-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.side-nav a:hover { background-color: var(--sunken); color: var(--ink); }
.side-nav a[aria-current="page"] { background-color: var(--accent-tint); color: var(--accent-ink); }
.prose { min-width: 0; max-width: var(--reading-max); }
.prose > h1:first-of-type, .prose > h1 { margin: 0 0 16px; font: 800 34px/1.06 var(--display); letter-spacing: -0.045em; text-wrap: balance; }
.prose h2 { margin: 40px 0 12px; font: 800 26px/1.15 var(--display); letter-spacing: -0.035em; }
.prose h3 { margin: 28px 0 8px; font: 700 18px/1.3 var(--display); letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose :not(pre) > code { padding: 1px 6px; border-radius: 6px; background-color: var(--sunken); color: var(--ink); font-size: 0.88em; overflow-wrap: anywhere; }
.prose pre { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--term-line); background-color: var(--term-bg); color: var(--term-cmd); font: 600 13px/1.6 var(--mono); overflow-x: auto; }
.prose pre code { font: inherit; color: inherit; }
.prose blockquote { margin: 0 0 14px; padding: 12px 16px; border-radius: var(--r-sm); background-color: var(--info-bg); color: var(--info-ink); }
.prose .banner { margin: 0 0 20px; }
.table-wrap { margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); box-shadow: var(--lift-1); overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap th { font: 600 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); background-color: var(--wash); }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
/* Identifiers in a table cell stay whole; the table scrolls instead. */
.table-wrap :not(pre) > code { white-space: nowrap; overflow-wrap: normal; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; }
.pager a:hover { border-color: var(--line-strong); background-color: var(--wash); }
.pager a[rel="next"] { grid-column: 2; text-align: right; }
.pager-dir { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }

/* Link cards: the legal index and the 404 page. */
.link-cards { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.link-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; }
.link-card:hover { border-color: var(--line-strong); background-color: var(--wash); color: var(--ink); }
.auth-grid.single { max-width: 640px; grid-template-columns: minmax(0, 1fr); }

/* Checkout: the plan's price block and terms inside the sign-in card layout. */
.auth-card .price-block { margin-top: 20px; }
.auth-card .includes { margin-top: 20px; }
.auth-card .includes .sub { margin: 0; }
.side-steps { margin: 8px 0 0; padding-left: 20px; color: var(--ink-muted); font-size: 14.5px; }
.side-steps li { margin-bottom: 6px; }
.side-action { margin-top: 14px !important; }
.side-card code { font-size: 13px; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; font-size: 14.5px; color: var(--ink); }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.status:empty { display: none; }
.status { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background-color: var(--info-bg); color: var(--info-ink); font-size: 14.5px; }
.paypal-slot:empty { display: none; }
/* The PayPal buttons are a light-scheme iframe. When its color-scheme differs
   from the embedding element's, the browser paints an opaque white backdrop
   behind it; matching the scheme keeps the iframe transparent on the dark theme. */
.paypal-slot { color-scheme: light; }
/* PayPal draws its card form for a light page only (dark text, no theme
   option), so on the dark theme the buttons and the form sit on a light
   panel instead of the dark canvas. */
[data-theme="dark"] .paypal-slot:not(:empty) {
  background-color: var(--p-50);
  border-radius: var(--r-md);
  padding: 16px;
}

/* Checkout result: the success or failure panel that replaces the checkout
   content of the card once PayPal answers the capture. */
.checkout-result:empty { display: none; }
.result { display: flex; flex-direction: column; gap: 20px; }
.result-head { position: relative; display: flex; flex-direction: column; align-items: center; padding: 28px 20px 24px; border-radius: var(--r-lg); text-align: center; }
.result.ok .result-head { background-color: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-tint); }
.result.error .result-head { background-color: var(--err-bg); box-shadow: inset 0 0 0 1px var(--err-line); }
.result.pending .result-head { background-color: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--warn-line); }
.result-ic { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 6px; border-radius: 50%; background-color: var(--surface); box-shadow: var(--lift-1); }
.result-ic svg { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.result-ic .ring { transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; }
.result.ok .result-ic { color: var(--accent); }
.result.error .result-ic { color: var(--err-ink); }
.result.pending .result-ic { color: var(--warn-ink); }
.result.pending .result-head h1 i { color: var(--warn-ink); }
.result-head .mono { font: 600 0.9em/1 var(--mono); }
.result-head h1 { margin-top: 10px; }
.result-head h1:focus { outline: none; }
.result-head h1:focus-visible { outline: var(--focus-w) solid var(--accent); outline-offset: 4px; border-radius: var(--r-xs); }
.result.error .result-head h1 { color: var(--err-ink); }
.result.error .result-head h1 i { color: inherit; }
.result-head .sub { margin-top: 8px; }
.result-summary { margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.result-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 16px; border-top: 1px solid var(--line); }
.result-row:first-child { border-top: 0; }
.result-row dt { color: var(--ink-muted); font-size: 13.5px; font-weight: 600; }
.result-row dd { margin: 0; min-width: 0; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.result-row dd.mono { font: 600 13px/1.6 var(--mono); }
.result-h2 { margin: 4px 0 0; font: 700 19px/1.25 var(--display); letter-spacing: -0.02em; }
.result-steps { display: flex; flex-direction: column; gap: 18px; margin: -6px 0 0; padding: 0; list-style: none; }
.result-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.result-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background-color: var(--ink); color: var(--canvas); font: 800 15px/1 var(--display); }
.result-steps li > div { min-width: 0; }
.result-steps b { display: block; padding-top: 5px; font-weight: 700; }
.result .email { overflow-wrap: anywhere; }
.result-steps p { margin: 6px 0 0; color: var(--ink-muted); font-size: 14.5px; }
.result-steps p .mono { color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.result-steps .term-line { margin-top: 10px; color: var(--term-cmd); font-size: 14px; overflow-wrap: anywhere; }
.result-term .copy { align-self: center; }
.result-term { margin-top: 10px; padding: 12px; border-radius: var(--r-md); background-color: var(--term-surface); border: 1px solid var(--term-line); }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.result-actions .btn { flex: 1 1 180px; }
.result-detail { margin: 0; color: var(--ink-muted); font-size: 14px; overflow-wrap: anywhere; }
.result-detail code { padding: 1px 6px; border-radius: 6px; background-color: var(--sunken); color: var(--ink); font-size: 13px; }
.result > .banner { margin: 0; }
.result .banner a { color: inherit; font-weight: 700; }
.result .banner .when { font-weight: 700; }
@media (min-width: 560px) {
  .result-row { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: baseline; }
}

/* Account: the data and closure rows of the account card. */
.acct-card .divider { margin: 4px 0 0; }
.acct-row .who h3 { margin: 0; font: 700 17px/1.3 var(--display); letter-spacing: -0.02em; }
.acct-row .who p { max-width: 64ch; }
.acct-row .who dd.who-note { font-weight: 400; color: var(--ink-muted); font-size: 14px; white-space: normal; }
.acct-row .who { margin: 0; }
.close-form { margin-top: 4px; padding: 18px; border: 1px solid var(--err-line); border-radius: var(--r-md); background-color: color-mix(in srgb, var(--err-bg) 35%, var(--surface)); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.empty-state h1 { margin: 0; font: 800 28px/1.15 var(--display); letter-spacing: -0.04em; }
.acct-main > .wrap > .banner { margin: 0 0 20px; }

@media (min-width: 900px) {
  .with-side { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
  .side-nav { position: sticky; top: 88px; }
  .prose > h1 { font-size: 44px; }
}
/* Phones and tablets: the docs and legal navigation is one scrolling row of chips. */
@media (max-width: 899px) {
  .side-nav { padding: 6px; }
  .side-nav-title { display: none; }
  .side-nav ul { flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
  .side-nav li { flex: none; }
  .side-nav a { white-space: nowrap; border-radius: var(--r-pill); }
}
@media (max-width: 767px) {
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager a[rel="next"] { grid-column: 1; }
}

/* Select: the field's shape with a drawn chevron 14px from the edge and 44px
   reserved on the right, so long labels ellipsize before reaching it. Every
   state sets background-color only, so the chevron image survives. */
.select {
  appearance: none; -webkit-appearance: none;
  width: 100%; min-width: 0; height: var(--field-h); padding: 0 var(--select-indicator-w) 0 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23615d55' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--select-chevron-inset) center; background-size: var(--select-chevron-size);
  color: var(--ink); font: 500 16px/1.2 var(--body);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
}
[data-theme="dark"] .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b968a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.select:hover { background-color: var(--wash); border-color: var(--ink-faint); }
.select:focus { outline: var(--focus-w) solid var(--accent); outline-offset: var(--focus-offset); border-color: var(--accent); background-color: var(--surface); }
.select[aria-invalid="true"] { border-color: var(--err-ink); background-color: color-mix(in srgb, var(--err-bg) 35%, var(--surface)); }
.select:disabled { background-color: var(--sunken); color: var(--ink-muted); cursor: not-allowed; }
.select option { background-color: var(--raised); color: var(--ink); }

/* Admin console (/admin/): a quiet operations console on the site's tokens.
   The account page's badges and dialog, a compact header without the
   marketing navigation, stat cards that filter the list, the user table
   with its pager bar, short client-paged tables, and the account record.
   Density is higher than the public pages: 44px controls (the touch and
   dropdown minimum), 48px table rows, 8px control radii and 16px panels. */
.badge.muted { background-color: var(--mute-bg); color: var(--mute-ink); }
.admin-signin { max-width: 560px; }
.admin-signin h2 { margin: 0; font: 800 28px/1.1 var(--display); letter-spacing: -0.04em; }
.admin-signin h2 i { font-style: normal; color: var(--mark-dot); }
.admin-signin .banner { margin-top: 14px; }
.admin-signin .banner b { display: inline; overflow-wrap: anywhere; }

.admin, .admin-dialog { --admin-row-h: 48px; --admin-head-h: 61px; }

/* Fields: one calm focus indicator, the accent border plus the soft focus
   ring, for mouse and keyboard alike (fields always match :focus-visible).
   No outline, so there is never a double ring. */
.admin .input, .admin .select, .admin-dialog .input, .admin-dialog .select { height: var(--field-h-compact); border-radius: var(--r-xs); }
.admin .input, .admin-dialog .input { transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out); }
.admin .input:focus, .admin .select:focus, .admin-dialog .input:focus, .admin-dialog .select:focus {
  outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); background-color: var(--surface);
}
.admin .input[aria-invalid="true"]:focus, .admin-dialog .input[aria-invalid="true"]:focus { border-color: var(--err-ink); }
/* Headings that only script focuses (tabindex=-1) move the reading position without drawing a ring. */
.admin [tabindex="-1"]:focus, .admin-dialog [tabindex="-1"]:focus { outline: none; }
.admin .btn, .admin-dialog .btn, .admin-head .btn, .admin-head .icon-btn { border-radius: var(--r-xs); }
.admin .btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; }

.admin .page-head { gap: 4px; margin-bottom: 8px; }
.admin .page-head h1 { font-size: 28px; letter-spacing: -0.035em; }
.admin .page-head p { font-size: 14.5px; }
.admin-console, .admin-home, [data-admin-detail] { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.admin-console > .acct-card, .admin-home > .acct-card, [data-admin-detail] > .acct-card { margin-top: 0; }
[data-admin-detail]:empty { display: none; }
.admin-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.admin-empty p { margin: 0; overflow-wrap: anywhere; }
.admin-empty .btn { max-width: 100%; white-space: normal; text-align: left; }
.admin-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.mono-cell { font-family: var(--mono); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-strong { font-weight: 600; color: var(--ink); }
.admin-ellipsis { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
code.admin-ellipsis { font-size: 13px; }

/* Header */
.admin-head .head-row { min-height: 60px; }
.admin-logo { gap: 10px; }
.admin-logo svg { width: 30px; height: 30px; }
.admin-wm { font: 800 19px/1 var(--display); letter-spacing: -0.03em; }
.admin-head .head-actions { min-width: 0; }
.admin-head .icon-btn, .admin-head .btn { flex: none; }
.admin-who { min-width: 0; max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-muted); font-size: 14px; }
.admin-who b { color: var(--ink); font-weight: 600; }
.admin-main { min-height: calc(100vh - 61px); }

/* Panels: one hairline card per region, a head row with the title and a count. */
.admin-panel { gap: 14px; padding: 16px; border-radius: var(--r-md); }
.admin-panel h2 { font: 700 18px/1.25 var(--display); letter-spacing: -0.02em; }
.admin-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.admin-users-count { color: var(--ink-muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.admin-users { scroll-margin-top: 76px; }

/* Stat cards: a count, and a button over the card that applies its filter. */
.admin-stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); }
.admin-stat-label { font: 600 11.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
.admin-stat-value { font: 700 26px/1.1 var(--display); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.admin-stat-split { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin-left: -8px; color: var(--ink-muted); font-size: 13px; min-width: 0; }
.admin-stat-split:empty { display: none; }
.admin-stat.is-link { position: relative; cursor: pointer; transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
.admin-stat.is-link:hover { border-color: var(--line-strong); background-color: var(--wash); }
.admin-stat-hit { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; padding: 0; border: 0; background-color: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.admin-stat-hit::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.admin-stat-hit:focus-visible { outline: none; }
.admin-stat-hit:focus-visible::after { outline: var(--focus-w) solid var(--accent); outline-offset: 2px; }
.admin-stat.is-active { border-color: var(--accent); background-color: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent); }
.admin-stat.is-active .admin-stat-label { color: var(--accent-ink); }
.admin-stat-part { position: relative; z-index: 1; min-height: 28px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--r-pill); background-color: transparent; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.admin-stat-split .admin-stat-sep { display: none; }
.admin-stat-part:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.admin-stat-part:focus-visible { outline: var(--focus-w) solid var(--accent); outline-offset: 1px; }
.admin-stat-part[aria-pressed="true"] { border-color: var(--accent); background-color: var(--accent-tint); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.admin-stat[data-stat="active"] { grid-column: span 2; }
[data-stat="locked"] .admin-stat-value { color: var(--err-ink); }
[data-stat="expiring"] .admin-stat-value { color: var(--warn-ink); }
.admin-stats[aria-busy="true"] .admin-stat-value { color: var(--ink-faint); }

/* Toolbar: the filters sit directly above the table they filter. */
.admin-toolbar { display: grid; gap: 10px 12px; grid-template-columns: minmax(0, 1fr); align-items: end; }
.admin-toolbar .field { min-width: 0; margin: 0; gap: 6px; }
.admin-toolbar label { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.admin-search-wrap { position: relative; display: block; }
.admin-search-wrap svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--ink-faint); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.admin-search-wrap .input { padding-left: 42px; }
.admin-add { min-height: var(--field-h-compact); }
.admin-add svg { width: 18px; height: 18px; }

/* Table frame: the table and its pager bar share one hairline box. */
.admin-frame { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background-color: var(--surface); }
.admin-results-box { min-width: 0; transition: opacity var(--dur-1) var(--ease-out); }
.admin-results-box.is-loading { opacity: 0.55; }
.admin-results-box > .dev-empty { margin: 0; border: 0; border-radius: var(--r-sm); }
.admin-results-box > .banner { margin: 12px; }
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.admin-table th { position: sticky; top: var(--admin-head-h); z-index: 1; height: 36px; padding: 0 14px; background-color: var(--wash); border-bottom: 1px solid var(--line); font: 600 11.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); text-align: left; white-space: nowrap; }
.admin-table th:first-child { border-top-left-radius: calc(var(--r-sm) - 1px); }
.admin-table th:last-child { border-top-right-radius: calc(var(--r-sm) - 1px); }
.admin-table td { height: var(--admin-row-h); padding: 6px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; min-width: 0; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-table .muted { color: var(--ink-muted); }
.admin-table .admin-badges { gap: 4px; }
.badge.badge-sm { height: 22px; padding: 0 8px; gap: 4px; font-size: 12px; }
.badge.badge-sm svg { width: 12px; height: 12px; }
.admin-users-table tbody tr { cursor: pointer; transition: background-color var(--dur-1) var(--ease-out); }
.admin-users-table tbody tr:hover, .admin-users-table tbody tr:has(:focus-visible) { background-color: color-mix(in srgb, var(--sunken) 55%, var(--surface)); }
.admin-users-table td[data-label="Account"], .admin-users-table td[data-label="Devices"] { white-space: nowrap; }
.admin-cell-email { width: 30%; max-width: 0; }
.admin-row-link { display: block; max-width: 100%; min-height: 36px; padding: 0; border: 0; border-radius: var(--r-xs); background-color: transparent; color: var(--ink); font: 600 14.5px/36px var(--body); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.admin-row-link:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.admin-row-link:focus-visible { outline: var(--focus-w) solid var(--accent); outline-offset: 2px; }
.admin-short-table td { height: 44px; }
.admin-device { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.admin-device svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--ink-faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Pager bar: attached under the table, always shown while there are rows. */
.admin-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 12px; border-top: 1px solid var(--line); background-color: var(--wash); border-radius: 0 0 calc(var(--r-sm) - 1px) calc(var(--r-sm) - 1px); }
.admin-pager-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-width: 0; }
.admin-pager-range { color: var(--ink-muted); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-pager-of { margin-left: 6px; }
.admin-pager-size { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-muted); font-size: 13.5px; white-space: nowrap; }
.admin-pager-size .select { width: 88px; font-size: 14px; }
.admin-pager-nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.admin-pages { display: inline-flex; align-items: center; gap: 2px; }
.admin-page-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 44px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--r-xs); background-color: transparent; color: var(--ink); font: 600 14px/1 var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out); }
.admin-page-btn:hover:not(:disabled) { background-color: var(--sunken); }
.admin-page-btn:active:not(:disabled) { background-color: var(--line); }
.admin-page-btn:disabled { color: var(--ink-faint); opacity: 0.5; cursor: not-allowed; }
.admin-page-btn[aria-current="page"] { border-color: var(--accent); background-color: var(--accent-wash); color: var(--accent-ink); }
.admin-page-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.admin-page-gap { min-width: 24px; color: var(--ink-faint); text-align: center; }
.admin-page-select { display: none; }
.admin-goto { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-muted); font-size: 13.5px; white-space: nowrap; }
.admin-goto label { font-weight: 500; }
.admin-goto .input { width: 64px; padding: 0 8px; font-size: 14px; text-align: center; }
/* Many pages wrap the page buttons onto their own line, kept to the right. */
.admin-pager-full .admin-pager-nav { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
#admin-goto-err { flex-basis: 100%; }
.admin-short-pager { padding: 4px 8px 4px 12px; }
/* Pager controls are secondary: 32px on a mouse-driven desktop, the 44px
   touch size only where the pointer is coarse (and on the mobile layout). */
@media (pointer: fine) and (min-width: 768px) {
  .admin-pager .select, .admin-pager .input { height: 32px; border-width: 1px; font-size: 13.5px; }
  .admin-pager .select { padding: 0 30px 0 10px; background-position: right 8px center; background-size: 14px; }
  .admin-pager-size .select { width: 72px; }
  .admin-goto .input { width: 52px; padding: 0 6px; }
  .admin-page-btn { min-width: 32px; height: 32px; padding: 0 8px; font-size: 13.5px; }
  .admin-pager { padding: 6px 10px; }
}

/* The account record: a summary head with status and actions, then sections. */
.admin-detail-view { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.admin-back { align-self: flex-start; min-height: 44px; text-decoration: none; }
.admin-back:hover { text-decoration: underline; }
.admin-back svg { width: 18px; height: 18px; transform: scaleX(-1); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.admin-record-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; }
.admin-record-title { display: flex; flex-direction: column; gap: 4px; flex: 1 1 320px; min-width: 0; }
.admin-record-kind { font: 600 11.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
.admin-account .lic-top { gap: 8px 10px; }
.admin-account .lic-top h2 { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 22px/1.25 var(--display); letter-spacing: -0.025em; }
.admin-actions { gap: 8px; }
.admin-actions .btn { flex: 1 1 auto; }
.admin-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-facts dt { font-size: 11.5px; }
.admin-facts dd { margin-top: 4px; font-size: 14.5px; }
.admin-facts dd .muted { font-size: 13px; }
.admin .key-val { margin-top: 0; font-size: 14px; }
.admin-account .lic-note { font-size: 14px; }
.admin-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 8px; }
.admin-section-title { margin: 0; font: 700 18px/1.25 var(--display); letter-spacing: -0.02em; }
.admin-section-note { margin: 0; color: var(--ink-muted); font-size: 13.5px; }
.admin .licenses { gap: 12px; }
.admin .lic { gap: 14px; padding: 16px; border-radius: var(--r-md); box-shadow: none; }
.admin .lic-top { gap: 6px 10px; }
.admin .lic-top h3 { margin: 0; font: 700 17px/1.3 var(--display); letter-spacing: -0.02em; }
.admin-lic-id { color: var(--ink-faint); font-size: 12.5px; }
.admin-subsection { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.admin .dev-head h4 { margin: 0; font: 600 14px/1.3 var(--body); }
.admin .dev-head span { font-size: 13px; }
.admin-subsection .dev-empty, .admin-panel .dev-empty { margin: 0; padding: 12px 14px; font-size: 14px; }
.admin-dialog form { overflow-y: auto; max-height: calc(100vh - 34px); }
.admin-dialog-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.admin-dialog .field .help { overflow-wrap: anywhere; }

@media (max-width: 767px) {
  .admin-who-label { display: none; }
  .admin-who { max-width: 14ch; font-size: 13px; }
  .admin-head .btn-sm { padding: 0 14px; }
  .admin-wm { font-size: 17px; }
  .admin .page-head h1 { font-size: 24px; }
  .admin-panel { padding: 14px; }
  /* The user table becomes one card per user, each cell labelled; the frame steps back. */
  .admin-users .admin-frame { border: 0; background-color: transparent; }
  .admin-users-table, .admin-users-table tbody, .admin-users-table tr, .admin-users-table td { display: block; width: 100%; }
  .admin-users-table thead, .admin-short-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .admin-users-table tbody { display: flex; flex-direction: column; gap: 8px; }
  .admin-users-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 4px 14px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background-color: var(--surface); }
  .admin-users-table td { height: auto; padding: 0; border: 0; }
  .admin-users-table td.num { text-align: left; }
  .admin-users-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
  /* The address, then the licenses beside the account state, then devices, created and last payment. */
  .admin-users-table td.admin-cell-email { grid-column: 1 / -1; max-width: none; }
  .admin-users-table td.admin-cell-email::before { display: none; }
  .admin-row-link { min-height: 44px; line-height: 44px; font-size: 15px; }
  .admin-users-table td[data-label="Licenses"] { grid-column: 1 / 3; }
  .admin-users .admin-pager { margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); }
  /* Short tables: one compact line group per row, the main cell first. */
  .admin-short-table, .admin-short-table tbody { display: block; }
  .admin-short-table tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .admin-short-table tbody tr:last-child { border-bottom: 0; }
  .admin-short-table td { display: block; height: auto; max-width: 100%; padding: 0; border: 0; color: var(--ink-muted); font-size: 13px; }
  /* The main cell and the date share the first line; the other cells follow on the next. */
  .admin-short-table td { order: 2; }
  .admin-short-table td.admin-cell-main { order: 0; flex: 1 1 0; min-width: 55%; color: var(--ink); font-size: 14.5px; }
  .admin-short-table td.num { order: 1; margin-left: auto; }
  .admin-short-table td:not(.num):not(.admin-cell-main) { max-width: 100%; }
  /* Pager: Previous, the page list ("Page X of Y"), Next; the rest folds away. */
  .admin-pager-full { flex-direction: column; align-items: stretch; }
  .admin-pager-info { flex-wrap: nowrap; justify-content: space-between; gap: 8px 12px; }
  .admin-pager-size .select { width: 80px; }
  .admin-stat-part { min-height: 44px; }
  .admin-pager-of, .admin-page-edge, .admin-pages, .admin-goto { display: none; }
  .admin-pager-full .admin-pager-nav { margin-left: 0; flex-wrap: nowrap; }
  .admin-pager-full.has-page-input .admin-pager-info { flex-wrap: wrap; }
  .admin-pager-full.has-page-input .admin-goto { display: inline-flex; }
  .admin-page-btn { min-width: 44px; }
  .admin-pager-nav { gap: 8px; }
  .admin-page-select { display: block; flex: 1 1 auto; width: auto; min-width: 0; }
  .admin-page-step { border-color: var(--line-strong); background-color: var(--surface); }
  .admin-pager-full .admin-page-step span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #admin-goto-err { justify-content: center; }
  .admin-short-pager .admin-pager-nav { gap: 8px; }
}
@media (min-width: 768px) {
  .admin .input, .admin .select, .admin-dialog .input, .admin-dialog .select { font-size: 15px; }
  .admin-panel { padding: 20px 22px; }
  .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-stat[data-stat="active"] { grid-column: auto; }
  .admin-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .admin-filter-search { grid-column: 1 / -1; }
  .admin-actions .btn { flex: 0 0 auto; }
  .admin-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (pointer: fine) {
  /* With a mouse, action buttons may be denser; fields and the pager keep 44px. */
  .admin .admin-actions .btn-sm { min-height: 36px; }
}
@media (min-width: 1100px) {
  .admin-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .admin-toolbar { grid-template-columns: minmax(0, 1fr) 210px 190px auto; }
  .admin-filter-search { grid-column: auto; }
}

/* ===== 6. Motion ===== */
/*
 * Built on the token motion scale (--dur-*, --ease-out, --stagger, the ezi
 * cursor blink). Anything that starts hidden or replays on load hangs off
 * html.motion, which head.js sets before the first paint only when the
 * visitor has not asked for reduced motion; without JavaScript no rule here
 * hides content. Only opacity and transform move, so nothing shifts layout.
 * Hover and press feedback needs no script and follows the media query alone.
 */
/* The hero rise starts at 0.01, not 0: Chrome does not count a paint under
   zero opacity, so the headline would only become the Largest Contentful
   Paint once the entrance ends. 1% is invisible and keeps the metric at first paint. */
@keyframes ezi-rise { from { opacity: 0.01; transform: translateY(12px); } }
@keyframes ezi-drop { from { opacity: 0; transform: translateY(-8px); } }
@keyframes ezi-fade { from { opacity: 0; } }
@keyframes ezi-pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes ezi-fill { from { transform: scaleX(0); } }
@keyframes ezi-dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } }
@keyframes ezi-toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
/* The command "types" itself: a stepped clip over text that is already in the page. */
@keyframes ezi-type {
  from { clip-path: inset(-0.3em 100% -0.3em 0); }
  to { clip-path: inset(-0.3em -1em -0.3em 0); }
}

/* Hero entrance: the copy rises in a short stagger, the terminal card with it. */
.motion-intro .hero-grid > div:first-child > *,
.motion-intro .hero .install { animation: ezi-rise var(--dur-4) var(--ease-out) both; }
.motion-intro .hero-grid > div:first-child > :nth-child(2) { animation-delay: calc(var(--stagger) * 1); }
.motion-intro .hero-grid > div:first-child > :nth-child(3) { animation-delay: calc(var(--stagger) * 2); }
.motion-intro .hero-grid > div:first-child > :nth-child(4) { animation-delay: calc(var(--stagger) * 3); }
.motion-intro .hero-grid > div:first-child > :nth-child(5) { animation-delay: calc(var(--stagger) * 4); }
.motion-intro .hero-grid > div:first-child > :nth-child(n + 6) { animation-delay: calc(var(--stagger) * 5); }
.motion-intro .hero .install { animation-delay: calc(var(--stagger) * 3); }

/* Terminal caret: the brand's square full stop after each install command.
   Its margins cancel its width, so it never changes where the line wraps. */
.motion .cmd code[data-command]::after {
  content: ""; display: inline-block; width: 0.55em; height: 1.1em; margin: 0 -0.85em 0 0.3em;
  vertical-align: -0.2em; border-radius: 2px; background-color: var(--term-prompt);
  animation: ezi-blink var(--ezi-cursor-blink) steps(1, end) 4;
}
/* The clip of an inline box is sliced across its lines, so a wrapped command
   still types in reading order. Backwards fill only: once typed, no clip remains. */
.motion-intro .hero .cmd code[data-command] {
  animation: ezi-type var(--dur-4) steps(24, end) calc(var(--stagger) * 3 + var(--dur-3)) backwards;
}
.motion-intro .hero .cmd code[data-command]::after { animation-delay: calc(var(--stagger) * 3 + var(--dur-3) + var(--dur-4)); }

/* Scroll reveal: motion.ts marks only what starts below the fold. */
.motion .reveal { opacity: 0; transform: translateY(16px); }
.motion .reveal.is-revealed {
  opacity: 1; transform: none;
  transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out);
  transition-delay: calc(var(--reveal-index, 0) * var(--stagger));
}

/* Header: a soft shadow once the page scrolls under it. */
.site-head { transition: box-shadow var(--dur-3) var(--ease-out); }
.site-head.is-scrolled { box-shadow: var(--lift-1); }
.motion .menu-panel:not([hidden]) { animation: ezi-drop var(--dur-2) var(--ease-out); }

/* Install tabs: one indicator slides between the tabs. */
.motion .tablist { position: relative; }
.tab { transition: color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out); }
.tab-ink { position: absolute; left: 0; bottom: 0; width: 100px; height: 2px; border-radius: 2px; background-color: var(--term-prompt); transform-origin: 0 50%; pointer-events: none; }
.has-ink .tab-ink { transition: transform var(--dur-3) var(--ease-out); }
.has-ink .tab[aria-selected="true"]::after { content: none; }

/* Copy: the check pops in when the command is on the clipboard. */
.copy { transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.motion .copy[data-copied="true"] .ok-ic { animation: ezi-pop var(--dur-3) var(--ease-spring); }

/* FAQ: answers open smoothly where the browser can size details content. */
.motion .faq details { interpolate-size: allow-keywords; }
.motion .faq details::details-content {
  block-size: 0; overflow-y: clip;
  transition: block-size var(--dur-3) var(--ease-out), content-visibility var(--dur-3) allow-discrete;
}
.motion .faq details[open]::details-content { block-size: auto; }
.motion .faq details[open] .ans { animation: ezi-drop var(--dur-3) var(--ease-out); }

/* Theme switch: colours cross-fade for one click, never on the first paint. */
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after {
  transition-property: background-color, border-color, color, fill, stroke, box-shadow, outline-color !important;
  transition-duration: var(--dur-3) !important;
  transition-timing-function: var(--ease-out) !important;
  transition-delay: 0s !important;
}

/* Account and sign-in: the device meter fills; dialogs, toasts and notices fade in. */
.motion .meter i { transform-origin: 0 50%; animation: ezi-fill var(--dur-4) var(--ease-out) var(--dur-2) both; }
.motion .confirm[open] { animation: ezi-dialog-in var(--dur-2) var(--ease-out); }
.motion .confirm[open]::backdrop { animation: ezi-fade var(--dur-2) var(--ease-out); }
.motion .toast:not([hidden]) { animation: ezi-toast-in var(--dur-3) var(--ease-out); }
.motion [data-signin] .banner:not([hidden]),
.motion .err:not([hidden]),
.motion .auth-step[data-step="code"]:not([hidden]) { animation: ezi-drop var(--dur-2) var(--ease-out); }

/* Checkout result: the mark pops in, a success draws its ring and tick and
   rings the panel once in the accent colour. The ring of the glow is drawn
   at rest and only its opacity moves. */
@keyframes ezi-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ezi-glow { 0%, 100% { opacity: 0; } 35% { opacity: 1; } }
.motion .result-ic { animation: ezi-pop var(--dur-3) var(--ease-out) both; }
.motion .result.ok .result-ic .ring { stroke-dasharray: 1; animation: ezi-draw calc(var(--dur-4) * 0.8) var(--ease-out) both; }
.motion .result.ok .result-ic .mark { stroke-dasharray: 1; animation: ezi-draw var(--dur-3) var(--ease-out) var(--dur-2) both; }
.motion .result.ok .result-head::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 2px var(--accent), 0 0 32px 2px color-mix(in oklch, var(--accent) 40%, transparent);
  opacity: 0; animation: ezi-glow 1.4s var(--ease-out) var(--dur-3) both;
}
.motion .result > :not(.result-head) { animation: ezi-rise var(--dur-3) var(--ease-out) var(--dur-2) both; }

@media (prefers-reduced-motion: no-preference) {
  /* Press feedback on every control. */
  .btn:active { transform: translateY(1px) scale(0.98); }
  .icon-btn { transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out); }
  .copy:active, .icon-btn:active { transform: scale(0.96); }

  /* Links without a resting underline grow one from the left. */
  .foot-col a, .breadcrumbs a {
    background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
    background-position: 0 calc(50% + 0.75em); background-size: 0 1.5px;
    transition: background-size var(--dur-2) var(--ease-out), color var(--dur-1) var(--ease-out);
  }
  .foot-col a:hover, .breadcrumbs a:hover, .foot-col a:focus-visible, .breadcrumbs a:focus-visible { text-decoration: none; background-size: 100% 1.5px; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* Cards lift a little under the pointer. */
  .area, .step, .guard, .plan, .link-card, .pager a {
    transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
  }
  .area:hover, .step:hover, .guard:hover { transform: translateY(-3px); box-shadow: var(--lift-2); }
  .plan:hover { transform: translateY(-3px); box-shadow: var(--lift-3); }
  .link-card:hover, .pager a:hover { transform: translateY(-2px); box-shadow: var(--lift-1); }
}

/* Reduced motion, also when it is switched on after the page loaded: show everything at rest. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .motion *, .motion *::before, .motion *::after { animation: none !important; }
  .motion .faq details::details-content { transition: none; }
}
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Listbox drawn by the page for a .select on a fine pointer (select-listbox.ts). */
.select-listbox { position: fixed; z-index: var(--z-menu); margin: 0; padding: 4px; list-style: none; max-width: min(360px, calc(100vw - 16px)); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--raised); box-shadow: var(--lift-2); color: var(--ink); font: 500 14px/1.3 var(--body); }
.select-listbox [role="option"] { position: relative; display: block; padding: 8px 12px 8px 32px; border-radius: var(--r-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.select-listbox [role="option"].is-active { background-color: var(--wash); }
.select-listbox [role="option"][aria-selected="true"] { color: var(--accent-ink); font-weight: 600; }
.select-listbox [role="option"][aria-selected="true"]::before { content: ""; position: absolute; left: 11px; top: 50%; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(-45deg); }
.select-listbox [role="option"][aria-disabled="true"] { color: var(--ink-faint); cursor: not-allowed; }
.select[aria-expanded="true"] { border-color: var(--accent); }

/* ---------- Benchmark (/benchmark/ and the product page band) ---------- */
/* The run strip: one square per graded run, filled when it passed. */
.runs { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.run { display: block; width: 12px; height: 12px; border-radius: 3px; }
.run-pass { background-color: var(--accent); }
.run-fail { border: 1.5px solid var(--err-ink); background-color: var(--err-bg); }
.run-score { margin-left: 8px; font: 700 13px/1 var(--mono); color: var(--ink); vertical-align: middle; }
.bench-legend { margin-top: 24px; }
.bench-legend li { display: inline-flex; align-items: center; gap: 8px; }

.bench-card { margin: 0; display: flex; flex-direction: column; gap: 18px; padding: 24px 20px; border: 1px solid var(--line); border-radius: var(--r-xl); background-color: var(--surface); box-shadow: var(--lift-3); min-width: 0; }
.bench-card-kicker { font: 700 12px/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.bench-card-title { margin: 8px 0 0; font: 800 22px/1.2 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.bench-quote { margin: 0; padding: 14px 16px; border-left: 3px solid var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; background-color: var(--wash); }
.bench-quote p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.55; }
.bench-checks { width: 100%; border-collapse: collapse; font-size: 14px; }
.bench-checks thead th { padding: 0 8px 10px; text-align: left; font: 600 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); border-bottom: 1px solid var(--line); }
.bench-checks thead th:first-child { padding-left: 0; }
.bench-checks th[scope="row"] { padding: 10px 8px 10px 0; text-align: left; font-weight: 500; color: var(--ink); line-height: 1.35; }
.bench-checks td { padding: 10px 8px; vertical-align: top; white-space: nowrap; }
.bench-checks tbody tr + tr > * { border-top: 1px solid var(--line); }
.bench-checks tfoot > tr > * { padding-top: 12px; border-top: 1.5px solid var(--line-strong); font-weight: 700; }
.bench-checks tfoot b { font: 800 18px/1 var(--display); letter-spacing: -0.02em; color: var(--err-ink); }
.bench-checks tfoot b.bench-kit-total { color: var(--ok-ink); }
@media (max-width: 559px) {
  .bench-checks, .bench-checks tbody, .bench-checks tfoot { display: block; }
  .bench-checks thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bench-checks tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; padding: 12px 0; }
  .bench-checks tbody tr + tr { border-top: 1px solid var(--line); }
  .bench-checks tbody tr + tr > * { border-top: 0; }
  .bench-checks tr > th[scope="row"] { grid-column: 1 / -1; padding: 0; }
  .bench-checks td { padding: 0; white-space: normal; }
  .bench-checks td::before { content: attr(data-label); display: block; margin-bottom: 4px; font: 600 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); }
  .bench-checks tfoot tr { border-top: 1.5px solid var(--line-strong); }
  .bench-checks tfoot > tr > * { border-top: 0; padding-top: 0; }
}
@media (min-width: 560px) { .bench-checks thead th { white-space: nowrap; } }
.chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; }
.chk-ok { color: var(--ok-ink); }
.chk-no { color: var(--err-ink); }
.bench-card-foot { margin: 0; color: var(--ink-muted); font-size: 13.5px; line-height: 1.5; }
.miss-list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; color: var(--ink-muted); font-size: 13.5px; line-height: 1.4; }
.miss-list li { position: relative; padding-left: 16px; }
.miss-list li::before { content: "×"; position: absolute; left: 2px; top: 0; color: var(--err-ink); font-weight: 700; }
.miss-n { color: var(--ink-faint); font-size: 12.5px; white-space: nowrap; }
.nowrap { white-space: nowrap; }

.bench-findings { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.bench-finding { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background-color: var(--surface); box-shadow: var(--lift-1); min-width: 0; }
.bench-finding-title { margin: 0; font: 800 22px/1.2 var(--display); letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.bench-finding-text { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 1.6; }
.bench-bars { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.bench-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.bench-bar-label { font: 600 13px/1.2 var(--body); color: var(--ink-muted); }
.bench-bar-kit .bench-bar-label { color: var(--accent-ink); }
.bench-bar-value { grid-row: 1; grid-column: 2; font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
.bench-bar-value b { font: 700 14px/1 var(--mono); color: var(--ink); }
.bench-bar-track { grid-column: 1 / -1; display: block; width: 100%; height: 10px; }
.bench-bar-bg { fill: var(--sunken); }
.bench-bar-fill { fill: var(--ink-faint); }
.bench-bar-kit .bench-bar-fill { fill: var(--accent); }

.bench-cost { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); box-shadow: var(--lift-1); min-width: 0; }
.bench-cost h3 { margin: 0; font: 700 15.5px/1.3 var(--body); color: var(--ink); }
.bench-delta { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.bench-after { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.bench-after b { font: 800 44px/1 var(--display); letter-spacing: -0.05em; color: var(--accent-ink); }
.bench-after span { font: 700 13px/1.2 var(--body); color: var(--accent-ink); }
.bench-before { color: var(--ink-muted); font-size: 14px; }
.bench-before b { font: 700 14px/1 var(--mono); color: var(--ink); }
.bench-win-note { margin: 0; color: var(--ink-muted); font-size: 14.5px; line-height: 1.55; }
.bench-band-link { margin: 24px 0 0; }
.bench-cost-pair { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 600 13.5px/1.3 var(--mono); color: var(--ink-muted); }
.bench-cost-pair span:last-child { color: var(--ink); }

.bench-suite + .bench-suite { margin-top: 48px; }
.bench-suite-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 16px; }
.bench-suite-head h3 { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font: 800 22px/1.2 var(--display); letter-spacing: -0.03em; }
.bench-suite-total { margin: 0; color: var(--ink-muted); font-size: 14.5px; }
.bench-suite-total b { font-family: var(--mono); color: var(--ink); }
.bench-suite-note { margin: 14px 0 0; color: var(--ink-muted); font-size: 14px; }

/* Results tables: cards on small screens, a table from 900px. */
.bench-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.bench-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bench-table tbody { display: grid; gap: 12px; }
.bench-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); }
.bench-table tr > th[scope="row"], .bench-table tr > td:last-child { grid-column: 1 / -1; }
.bench-route tr > td:nth-child(2) { grid-column: 1 / -1; }
.bench-route tr > td:last-child { grid-column: auto; }
.bench-table th[scope="row"] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; text-align: left; font-weight: 400; }
.bench-table td { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; align-self: start; gap: 6px 0; font-size: 14px; }
.bench-table td::before { content: attr(data-label); flex: 0 0 100%; margin-bottom: 2px; font: 600 11.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
.bench-table td .miss-list { flex: 0 0 100%; margin-top: 6px; }
.bench-task { font: 650 15.5px/1.35 var(--body); color: var(--ink); }
.bench-verdict { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill); background-color: var(--sunken); color: var(--ink-muted); font: 700 11.5px/1 var(--body); white-space: nowrap; }
.bench-better .bench-verdict { background-color: var(--ok-bg); color: var(--ok-ink); }
.bench-worse .bench-verdict { background-color: var(--err-bg); color: var(--err-ink); }
.bench-better { border-color: var(--accent-tint) !important; }
.bench-sep { color: var(--ink-faint); padding: 0 4px; }
.bench-prompt { color: var(--ink); font-size: 15px; line-height: 1.45; }
.bench-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.bench-skills code { padding: 3px 7px; border-radius: var(--r-xs); background-color: var(--sunken); color: var(--ink-muted); font-size: 12.5px; }

.bench-route-sum { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0 0 24px; }
.bench-route-sum p { display: flex; align-items: baseline; gap: 12px; margin: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); }
.bench-route-sum b { font: 800 36px/1 var(--display); letter-spacing: -0.04em; color: var(--ink-muted); }
.bench-route-sum span { color: var(--ink-muted); font-size: 14.5px; }
.bench-route-sum .bench-route-now { border-color: var(--accent-tint); background-color: var(--accent-wash); }
.bench-route-sum .bench-route-now b { color: var(--accent-ink); }

.bench-since { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.bench-since-item { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--accent-tint); border-radius: var(--r-md); background-color: var(--surface); box-shadow: var(--lift-1); min-width: 0; }
.bench-since-item h3 { margin: 0; font: 700 15.5px/1.4 var(--body); }
.bench-since-row { display: flex; align-items: center; gap: 4px; margin: 0; }
.bench-since-label { flex: 0 0 150px; font: 600 12px/1.2 var(--mono); color: var(--ink-faint); }

.bench-costs { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.bench-env { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 28px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); }
.bench-env div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bench-env dt { font: 600 11.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
.bench-env dd { margin: 0; color: var(--ink); font-size: 14.5px; overflow-wrap: anywhere; }
.bench-env dd a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 768px) {
  .bench-card { padding: 28px; }
  .bench-route-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bench-since, .bench-costs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bench-env { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .bench-table-box { border: 1px solid var(--line); border-radius: var(--r-lg); background-color: var(--surface); box-shadow: var(--lift-1); overflow: hidden; }
  .bench-table { table-layout: fixed; }
  .bench-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .bench-table tbody { display: table-row-group; }
  .bench-table tr { display: table-row; padding: 0; border: 0; border-radius: 0; background-color: transparent; }
  .bench-table thead th { padding: 12px 16px; text-align: left; font: 600 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); background-color: var(--wash); border-bottom: 1px solid var(--line); }
  .bench-table thead th:first-child { width: 36%; padding-left: 20px; }
  .bench-table th[scope="row"], .bench-table td { display: table-cell; padding: 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
  .bench-table th[scope="row"] { padding-left: 20px; }
  .bench-table th[scope="row"] > * + * { margin-top: 6px; }
  .bench-table th[scope="row"] .bench-verdict { display: flex; width: max-content; }
  .bench-table tbody tr:last-child > * { border-bottom: 0; }
  .bench-cost-pair { flex-direction: column; }
  .bench-table td::before { content: none; }
  .bench-table tr.bench-better > * { background-color: var(--accent-wash); }
  .bench-route thead th:first-child { width: 40%; }
}
@media (min-width: 1100px) {
  .bench-findings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bench-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); }
}
.bench-route-after { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; font-size: 13px; color: var(--ink-muted); }
.bench-withdrawn p { margin: 0 0 8px; }
.bench-withdrawn ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.bench-withdrawn .bench-prompt { font-weight: 600; }
.bench-route-after-score { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
