/* =========================================================
   openpreference.org — production stylesheet
   Late Summer Labs · Agency segment
   Merged from colors_and_type.css + site.css (design handoff)
   ========================================================= */

/* ---------- Fonts (local) ---------- */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/AtkinsonHyperlegibleNext-VariableFont_wght.ttf') format('truetype-variations'),
       url('../fonts/AtkinsonHyperlegibleNext-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/AtkinsonHyperlegibleNext-Italic-VariableFont_wght.ttf') format('truetype-variations'),
       url('../fonts/AtkinsonHyperlegibleNext-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
/* JetBrains Mono (OFL), self-hosted so no request leaves this origin (2026-10-15). */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/JetBrainsMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/JetBrainsMono-Medium.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/JetBrainsMono-SemiBold.woff2") format("woff2"); }

/* ---------- Day mode tokens (teal scheme, 2026-10-16) ---------- */
:root {
  --warm-white: #F3F5F9;   /* page ground (name kept for the rules that use it) */
  --paper: #FFFFFF;
  --sand: #E9EEF5;
  --night-ink: #16202C;
  --ink: #16202C;

  --sunflower: #0E6B70;        /* primary: teal (name kept) */
  --sunflower-dark: #0B5A5E;
  --deep-green: #0A5357;       /* primary as text, 8:1 on white (name kept) */
  --deep-green-soft: #0E6B70;
  --late-sky: #0E6B70;
  --late-sky-dark: #0A5357;
  --harvest: #9A5B00;          /* warnings */
  --coral: #B3261E;            /* errors */
  --tint: #DDF1F0;             /* teal wash for badges, tiles, avatars */

  --warm-gray: #536074;
  --stone: #B9C3D2;
  --mist: #D8DEE8;

  --bg: var(--warm-white);
  --bg-secondary: var(--sand);
  --surface: var(--paper);
  --fg: var(--night-ink);
  --fg-secondary: var(--warm-gray);
  --fg-muted: rgba(22, 32, 44, 0.68);

  --primary: var(--sunflower);
  --primary-fg: #FFFFFF;
  --heading: var(--ink);
  --link: var(--late-sky-dark);
  --link-hover: var(--sunflower);
  --border: var(--stone);
  --border-subtle: var(--mist);
  --error: var(--coral);
  --success: #0E6B70;
  --warning: var(--harvest);

  --memory: var(--deep-green);
  --memory-bg: var(--tint);
  --independence: var(--sunflower);
  --independence-bg: var(--tint);
  --agency: var(--late-sky);
  --agency-bg: var(--tint);

  --font-display: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-h1: clamp(44px, 4vw, 56px);
  --fs-h2: clamp(32px, 2.5vw, 40px);
  --fs-h3: clamp(24px, 2vw, 28px);
  --fs-h4: 20px;
  --fs-body: 18px;
  --fs-body-lg: 19px;
  --fs-small: 14px;
  --fs-caption: 13px;
  --fs-label: 12px;

  --lh-tight: 1.1;
  --lh-heading: 1.2;
  --lh-body: 1.7;

  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 72px;
  --space-3xl: 104px;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 2px 8px rgba(0,0,0,.04);
  --shadow-card: 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 8px 24px rgba(22,32,44,.08);
  --shadow-lg: 0 22px 66px rgba(22,32,44,.09);
  --shadow-hero: 0 22px 66px rgba(22,32,44,.09);
  --shadow-elevated: 0 10px 34px rgba(22,32,44,.08);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-slow: 320ms;

  --container: 1160px;

  --bg-paper-dots:
    radial-gradient(circle at 20% 12%, rgba(14,107,112,.08), transparent 42%),
    radial-gradient(circle at 85% 8%, rgba(14,107,112,.07), transparent 45%),
    radial-gradient(rgba(22,32,44,.055) 1px, transparent 1px),
    radial-gradient(rgba(22,32,44,.035) 1px, transparent 1px);
  --bg-paper-dots-size: auto, auto, 140px 140px, 220px 220px;
  --bg-paper-dots-position: 0 0, 0 0, 0 0, 70px 70px;
}

html { color-scheme: light; }
[data-theme="night"] { color-scheme: dark; }
/* Theme toggle shows the icon of the mode it switches TO. */
.theme-toggle .ic--sun { display: none; }
[data-theme="night"] .theme-toggle .ic--sun { display: inline; }
[data-theme="night"] .theme-toggle .ic--moon { display: none; }

/* ---------- Night mode tokens ---------- */
[data-theme="night"] {
  --midnight: #0F141A;
  --deep-water: #171E27;
  --twilight: #1D2630;
  --star-white: #E8EDF4;

  --firefly: #5CC4C8;          /* primary: light teal (name kept) */
  --forest: #16343A;
  --moonlight: #5CC4C8;
  --ember: #F2C37A;
  --aurora: #8ADEE1;
  --tint: #16343A;

  --dusk-gray: #A2AEBF;
  --lake: #2B3542;
  --shadow-ink: #1D2630;

  --bg: var(--midnight);
  --bg-secondary: var(--twilight);
  --surface: var(--deep-water);
  --fg: var(--star-white);
  --ink: var(--star-white);
  --fg-secondary: var(--dusk-gray);
  --fg-muted: rgba(232, 237, 244, 0.7);

  --paper: var(--deep-water);
  --warm-white: var(--midnight);
  --sand: var(--twilight);

  --primary: var(--firefly);
  --primary-fg: var(--midnight);
  --heading: var(--star-white);
  --link: var(--aurora);
  --link-hover: var(--firefly);
  --border: var(--lake);
  --border-subtle: var(--shadow-ink);
  --error: #F28B82;
  --success: var(--aurora);
  --warning: var(--ember);

  --memory: var(--forest);
  --memory-bg: var(--tint);
  --independence: var(--firefly);
  --independence-bg: var(--tint);
  --agency: var(--moonlight);
  --agency-bg: var(--tint);

  --shadow: 0 4px 12px rgba(0,0,0,.3);
  --shadow-lg: 0 22px 66px rgba(0,0,0,.3);
  --shadow-card: 0 2px 8px rgba(0,0,0,.25);
  --shadow-hero: 0 22px 66px rgba(0,0,0,.35);
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { min-height: 100%; }
body {
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--bg);
  background-image: var(--bg-paper-dots);
  background-size: var(--bg-paper-dots-size);
  background-position: var(--bg-paper-dots-position);
  background-attachment: scroll, scroll, scroll, fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  letter-spacing: -0.01em;
  line-height: var(--lh-heading);
  margin: 0 0 .4em;
}
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: var(--fs-h4); font-weight: 600; color: var(--fg); }

p { margin: 0 0 1em; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

small, .caption { font-size: var(--fs-caption); color: var(--fg-secondary); }

.lede { max-width: 72ch; font-size: var(--fs-body-lg); color: var(--fg-muted); }

.kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(22,32,44,.55);
}
[data-theme="night"] .kicker { color: rgba(232,237,244,.6); }

code, pre, .mono { font-family: var(--font-mono); }
code { background: rgba(22,32,44,.06); padding: 2px 6px; border-radius: 4px; font-size: .9em; color: var(--fg); }
[data-theme="night"] code { background: rgba(232,237,244,.1); }

::selection { background: var(--sunflower); color: var(--night-ink); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.about-page { max-width: 960px; }

/* About: editorial triptych (mock alignment) */

.row { display: flex; align-items: center; }
.sp-between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap { gap: 14px; }
.gap-lg { gap: 24px; }
.muted { color: rgba(22,32,44,.55); }
[data-theme="night"] .muted { color: rgba(232,237,244,.55); }
.tiny { font-size: 12px; }

/* ---------- Page head ---------- */
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 30px; letter-spacing: -0.015em; margin: 0 0 6px; }
.page-head p { font-size: 15px; color: rgba(22,32,44,.7); margin: 0; max-width: 70ch; }
[data-theme="night"] .page-head p { color: rgba(232,237,244,.7); }

/* ---------- Section head ---------- */
.section-head { margin: 70px 0 26px; padding: 0 8px; }
.section-head .kicker { color: var(--late-sky); margin-bottom: 6px; font-size: 12px; }
.section-head h2 { font-size: 32px; letter-spacing: -0.015em; color: var(--heading); margin: 0 0 6px; }
.section-head p { color: rgba(22,32,44,.65); font-size: 15px; margin: 0; max-width: 70ch; }
[data-theme="night"] .section-head p { color: rgba(232,237,244,.65); }

/* ---------- Site header (marketing nav) ---------- */
.sh {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  background: rgba(232,237,244,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22,32,44,.08);
  position: sticky; top: 0; z-index: 10;
}
[data-theme="night"] .sh { background: rgba(12,18,34,.85); border-bottom-color: rgba(232,237,244,.08); }
.sh__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sh__nav { display: flex; gap: 26px; font-size: 14px; }
.sh__nav a { color: rgba(22,32,44,.7); font-weight: 500; position: relative; }
[data-theme="night"] .sh__nav a { color: rgba(232,237,244,.7); }
.sh__nav a:hover { color: var(--link-hover); }
.sh__nav a.active { color: var(--heading); font-weight: 600; }
.sh__nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -16px;
  height: 2px; background: var(--sunflower);
}
.sh__actions { display: flex; gap: 8px; align-items: center; }

/* ---------- Brand wordmark ---------- */
.wm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--heading);
  letter-spacing: -0.01em;
}
.wm em, .wm .os { font-style: normal; color: var(--late-sky); }
[data-theme="night"] .wm em, [data-theme="night"] .wm .os { color: var(--moonlight); }
.wm--sm { font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 150ms ease-out;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  background: transparent;
  color: inherit;
}
.btn .ic { width: 16px; height: 16px; }
.btn--primary {
  background: var(--sunflower);
  color: var(--primary-fg);
  border-color: var(--sunflower-dark);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.btn--primary:hover { filter: brightness(.94); transform: translateY(-1px); box-shadow: 0 3px 8px rgba(22,32,44,.14); color: var(--primary-fg); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(22,32,44,.18);
}
[data-theme="night"] .btn--ghost { color: var(--fg); border-color: rgba(232,237,244,.2); }
.btn--ghost:hover { background: rgba(22,32,44,.04); color: var(--heading); }
[data-theme="night"] .btn--ghost:hover { background: rgba(232,237,244,.05); }
.btn--sky { background: var(--late-sky); color: #fff; }
.btn--sky:hover { background: var(--late-sky-dark); color: #fff; }
.btn--danger {
  background: transparent;
  color: var(--coral);
  border-color: rgba(224,122,95,.35);
}
.btn--danger:hover { background: rgba(224,122,95,.06); color: var(--coral); }
.btn--full { width: 100%; justify-content: center; }
.btn--sm { padding: 8px 13px; font-size: 13px; }
.btn--sm .ic { width: 14px; height: 14px; }
.btn--mini { padding: 5px 9px; font-size: 12px; }
.btn--mini .ic { width: 13px; height: 13px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* ---------- Icons ---------- */
.ic {
  width: 18px; height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.5;
  white-space: nowrap;
}
.pill--outline { background: rgba(22,32,44,.04); color: rgba(22,32,44,.75); border: 1px solid rgba(22,32,44,.12); }
.pill--agency { background: rgba(14,107,112,.12); color: var(--late-sky-dark); border: 1px solid rgba(14,107,112,.3); }
.pill--memory { background: rgba(10,83,87,.1); color: var(--deep-green); border: 1px solid rgba(10,83,87,.25); }
.pill--independence { background: rgba(14,107,112,.24); color: #0A5357; border: 1px solid rgba(11,90,94,.5); }
.pill--alpha { background: #FFF; color: var(--harvest); border: 1px solid rgba(196,125,42,.4); font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; }
.pill--stable { background: rgba(10,83,87,.12); color: #0A5357; border: 1px solid rgba(10,83,87,.3); font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; }
.pill--ok { background: #DDF1F0; color: #0A5357; border: 1px solid rgba(10,83,87,.25); }
.pill--warn { background: #FFF4E0; color: var(--harvest); border: 1px solid rgba(196,125,42,.3); }
.pill--err { background: #FDEEEA; color: var(--coral); border: 1px solid rgba(224,122,95,.3); }
.pill--tier-public { background: #DDF1F0; color: var(--late-sky-dark); border: 1px solid rgba(14,107,112,.25); }
.pill--tier-client { background: rgba(14,107,112,.22); color: #0A5357; border: 1px solid rgba(11,90,94,.45); }
.pill--tier-user { background: rgba(10,83,87,.1); color: var(--deep-green); border: 1px solid rgba(10,83,87,.28); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(22,32,44,.68);
  letter-spacing: .02em;
  margin-bottom: 6px;
}
[data-theme="night"] .field label { color: rgba(232,237,244,.7); }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="url"],
.field textarea,
.field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(22,32,44,.18);
  border-radius: var(--r-md);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  transition: border 150ms, box-shadow 150ms;
}
[data-theme="night"] .field input, [data-theme="night"] .field textarea, [data-theme="night"] .field select { border-color: rgba(232,237,244,.15); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--late-sky);
  box-shadow: 0 0 0 3px rgba(14,107,112,.18);
}
/* Always show a visible focus indicator for keyboard users (WCAG 2.4.7). */
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--late-sky);
  outline-offset: 2px;
}
[data-theme="night"] .field input:focus-visible,
[data-theme="night"] .field textarea:focus-visible,
[data-theme="night"] .field select:focus-visible {
  outline-color: var(--firefly);
}
:focus-visible { outline: 2px solid var(--late-sky); outline-offset: 2px; }
[data-theme="night"] :focus-visible { outline-color: var(--firefly); }
.field textarea { min-height: 170px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; }
.field .hint { font-size: 12.5px; color: rgba(22,32,44,.55); margin-top: 6px; line-height: 1.5; }
[data-theme="night"] .field .hint { color: rgba(232,237,244,.5); }
.field .hint-ok { color: #0A5357; }

.with-prefix {
  display: flex;
  border: 1px solid rgba(22,32,44,.18);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
}
.with-prefix:focus-within { border-color: var(--late-sky); box-shadow: 0 0 0 3px rgba(14,107,112,.18); }
.with-prefix .prefix {
  padding: 11px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(22,32,44,.65);
  background: rgba(232,237,244,.65);
  border-right: 1px solid rgba(22,32,44,.1);
  display: inline-flex; align-items: center;
}
.with-prefix .suffix {
  padding: 11px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(22,32,44,.55);
  background: rgba(232,237,244,.4);
  border-left: 1px solid rgba(22,32,44,.1);
  display: inline-flex; align-items: center;
}
.with-prefix input {
  flex: 1;
  border: 0 !important;
  outline: 0;
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 14.5px;
  background: transparent;
  color: var(--ink);
}
.with-prefix input:focus { box-shadow: none !important; }

.field .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(22,32,44,.75); }
.field .check input[type="checkbox"] { width: 16px; height: 16px; margin-top: 4px; }

/* ---------- Callouts ---------- */
.callout {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px dashed rgba(22,32,44,.16);
  background: rgba(232,237,244,.55);
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(22,32,44,.8);
}
[data-theme="night"] .callout { background: rgba(232,237,244,.04); border-color: rgba(232,237,244,.1); color: var(--fg); }
.callout .ic { width: 18px; height: 18px; margin-top: 2px; }
.callout--sky { border-color: rgba(14,107,112,.28); background: rgba(14,107,112,.07); }
.callout--ok { border: 1px solid rgba(10,83,87,.28); background: #F1F9F3; border-style: solid; }
.callout--warn { border-color: rgba(196,125,42,.3); background: rgba(196,125,42,.06); border-style: solid; }
.callout--err { border: 1px solid rgba(224,122,95,.35); background: #FDEEEA; border-style: solid; }
.callout h4 { margin: 0 0 4px; font-size: 14px; }
.callout p { margin: 0; }

/* ---------- Segmented controls ---------- */
.iseg {
  display: inline-flex;
  background: rgba(22,32,44,.04);
  border: 1px solid rgba(22,32,44,.08);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.iseg button, .iseg a {
  background: transparent;
  border: 0;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: rgba(22,32,44,.65);
  border-radius: 8px;
  cursor: pointer;
  transition: all 120ms;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
[data-theme="night"] .iseg button, [data-theme="night"] .iseg a { color: rgba(232,237,244,.6); }
.iseg button:hover, .iseg a:hover { color: var(--heading); }
.iseg button.active, .iseg a.active {
  background: var(--paper);
  color: var(--heading);
  box-shadow: 0 1px 2px rgba(22,32,44,.08);
}

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl thead th {
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
  color: rgba(22,32,44,.55);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 16px;
  background: rgba(232,237,244,.4);
  border-bottom: 1px solid rgba(22,32,44,.1);
}
[data-theme="night"] .tbl thead th { background: rgba(232,237,244,.03); color: rgba(232,237,244,.55); border-bottom-color: rgba(232,237,244,.1); }
.tbl tbody td {
  padding: 14px 16px;
  border-bottom: 1px dashed rgba(22,32,44,.08);
  vertical-align: middle;
  color: rgba(22,32,44,.82);
}
[data-theme="night"] .tbl tbody td { color: rgba(232,237,244,.82); border-bottom-color: rgba(232,237,244,.08); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(232,237,244,.25); }
[data-theme="night"] .tbl tbody tr:hover { background: rgba(232,237,244,.03); }

/* ---------- Code & tree ---------- */
.code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  background: rgba(232,237,244,.5);
  border: 1px solid rgba(22,32,44,.1);
  border-radius: var(--r-md);
  padding: 14px 16px;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(22,32,44,.85);
}
[data-theme="night"] .code { background: rgba(232,237,244,.04); border-color: rgba(232,237,244,.1); color: rgba(232,237,244,.85); }
.code--dark { background: #16202C; color: #F1F5F9; border-color: transparent; }
.code .k { color: #0A5357; }
.code .s { color: var(--harvest); }
.code .n { color: var(--late-sky); }
.code .c { color: rgba(22,32,44,.5); font-style: italic; }
.code--dark .k { color: #7AB87A; }
.code--dark .s { color: #F4C24E; }
.code--dark .n { color: #60A5FA; }
.code--dark .c { color: rgba(255,255,255,.5); }

.tree {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  background: #FAFAF2;
  border: 1px solid rgba(22,32,44,.08);
  border-radius: var(--r-md);
  padding: 14px 18px;
  color: rgba(22,32,44,.82);
}
[data-theme="night"] .tree { background: rgba(232,237,244,.03); border-color: rgba(232,237,244,.08); color: rgba(232,237,244,.8); }
.tree .ln { display: flex; gap: 6px; align-items: baseline; }
.tree .ln .tog { color: rgba(22,32,44,.35); width: 12px; }
.tree .ln.pad-1 { padding-left: 18px; }
.tree .ln.pad-2 { padding-left: 36px; }
.tree .ln.pad-3 { padding-left: 54px; }
.tree .k { color: var(--deep-green); font-weight: 600; }
[data-theme="night"] .tree .k { color: var(--aurora); }
.tree .s { color: var(--harvest); }
.tree .n { color: var(--late-sky); }
[data-theme="night"] .tree .n { color: var(--moonlight); }
.tree .c { color: rgba(22,32,44,.5); font-style: italic; }
.tree .ok { color: #0A5357; font-weight: 700; }
.tree .err { color: var(--coral); font-weight: 700; }
.tree .pending { color: var(--harvest); font-weight: 700; }

/* ---------- Footer ---------- */
.sf { background: #16202C; color: #E8EDF4; padding: 56px 40px 36px; border-top: 3px solid var(--sunflower); }
[data-theme="night"] .sf { background: #0B0F14; }
.sf a { color: rgba(232,237,244,.82); }
.sf a:hover { color: #8ADEE1; }
.sf__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1160px;
  margin: 0 auto 30px;
}
.sf__title {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--sunflower);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin: 0 0 14px;
  font-weight: 600;
}
.sf__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sf__list a { font-size: 13.5px; }
.sf__text { color: rgba(232,237,244,.75); font-size: 13.5px; margin: 0 0 10px; max-width: 32ch; line-height: 1.6; }
.sf__fine {
  border-top: 1px solid rgba(232,237,244,.12);
  padding-top: 18px;
  max-width: 1160px;
  margin: 0 auto;
  font-size: 12.5px;
  color: rgba(232,237,244,.65);
  font-style: italic;
  text-align: center;
}
.sf__brand-line { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sf__brand-line .wm { color: #E8EDF4; }
.sf__brand-line .wm em { color: var(--sunflower); }

/* ---------- Hero ---------- */

/* Hero A: full-bleed photo + centered copy */
.hero--a {
  position: relative;
  min-height: min(88vh, 920px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero--a__media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(92,196,200,.28), transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(14,107,112,.55), transparent 50%),
    linear-gradient(160deg, #0B3A3D 0%, #0F4F53 45%, #16202C 100%);
}
.hero--a__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,30,32,0.6) 0%, rgba(10,83,87, 0.72) 45%, rgba(22,32,44, 0.82) 100%);
}
[data-theme="night"] .hero--a__scrim {
  background: linear-gradient(180deg, rgba(10, 15, 24, 0.65) 0%, rgba(16,52,58,0.8) 50%, rgba(10, 18, 28, 0.9) 100%);
}
.hero--a__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 88px 24px 96px;
  text-align: center;
}
.hero__lede--on-photo {
  color: rgba(232,237,244, 0.88) !important;
  margin-left: auto;
  margin-right: auto;
}
.hero__fineprint--on-photo {
  color: rgba(232,237,244, 0.55) !important;
}
.hero__fineprint--on-photo a {
  color: rgba(92,196,200, 0.95);
}
.hero__actions--center {
  justify-content: center;
}
.btn--on-photo {
  border-color: rgba(232,237,244, 0.35);
  color: rgba(232,237,244, 0.95);
}
.btn--on-photo:hover {
  background: rgba(232,237,244, 0.1);
}

.hero h1 { font-size: clamp(40px, 4.6vw, 60px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 22px; color: var(--heading); }
.hero h1 em { font-style: italic; color: var(--late-sky); font-weight: 600; }
[data-theme="night"] .hero h1 em { color: var(--moonlight); }
.hero.hero--a h1 { color: var(--warm-white); }
.hero.hero--a h1 em { color: #8ADEE1; }
[data-theme="night"] .hero.hero--a h1 em { color: var(--firefly); }
.hero__lede { font-size: 18px; color: rgba(22,32,44,.72); line-height: 1.6; margin: 0 0 28px; max-width: 56ch; }
[data-theme="night"] .hero__lede { color: rgba(232,237,244,.75); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero__fineprint { font-family: var(--font-mono); font-size: 12.5px; color: rgba(22,32,44,.5); margin: 0; }
[data-theme="night"] .hero__fineprint { color: rgba(232,237,244,.5); }


/* ---------- Three-tier cards ---------- */
.tiers {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}
.tiers__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.tiers__head h2 { font-size: 36px; margin: 8px 0 0; max-width: 18ch; }
.tiers__head p { font-size: 15px; color: rgba(22,32,44,.7); margin: 0; }
[data-theme="night"] .tiers__head p { color: rgba(232,237,244,.7); }
.tiers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier-card {
  background: var(--paper);
  border: 1px solid rgba(22,32,44,.1);
  border-radius: 14px;
  padding: 28px 26px;
  position: relative;
}
[data-theme="night"] .tier-card { border-color: rgba(232,237,244,.1); }
.tier-card .ring {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(14,107,112,.1);
  color: var(--late-sky);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.tier-card--client .ring { background: rgba(14,107,112,.22); color: #0A5357; }
.tier-card--user .ring { background: rgba(10,83,87,.12); color: var(--deep-green); }
.tier-card h3 { margin: 0 0 10px; font-size: 22px; color: var(--heading); }
.tier-card p { font-size: 14.5px; color: rgba(22,32,44,.72); margin: 0 0 16px; }
[data-theme="night"] .tier-card p { color: rgba(232,237,244,.7); }
.tier-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.tier-card li { font-size: 13px; color: rgba(22,32,44,.6); padding-left: 18px; position: relative; }
.tier-card li::before { content: "—"; position: absolute; left: 0; color: var(--late-sky); }
[data-theme="night"] .tier-card li { color: rgba(232,237,244,.6); }

/* ---------- Specs dark section ---------- */
.specs-dark {
  background: #16202C;
  color: #E8EDF4;
  padding: 80px 40px;
}
[data-theme="night"] .specs-dark { background: #0a2412; }
.specs-dark__inner { max-width: 1200px; margin: 0 auto; }
.specs-dark__head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; margin-bottom: 40px; }
.specs-dark__head .kicker { color: #8ADEE1; }
.specs-dark__head h2 { color: #FFFFFF; max-width: 24ch; margin: 6px 0 0; font-size: 36px; }
.specs-dark__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.spec-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(232,237,244,.12);
  border-radius: 14px;
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.spec-card__pills { display: flex; gap: 6px; }
.spec-card h3 { color: #8ADEE1; font-size: 22px; margin: 0; }
.spec-card p { color: rgba(232,237,244,.8); font-size: 14.5px; margin: 0; }
.spec-card__foot { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11.5px; color: rgba(232,237,244,.55); border-top: 1px dashed rgba(232,237,244,.12); padding-top: 14px; }
.spec-card__foot a { color: var(--sunflower); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.specs-dark__note { color: rgba(232,237,244,.55); font-size: 13px; font-style: italic; margin-top: 28px; text-align: center; }

/* ---------- How it works ---------- */
.how {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}
.how h2 { font-size: 36px; margin: 8px 0 32px; max-width: 20ch; }
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: var(--paper);
  border: 1px solid rgba(22,32,44,.1);
  border-radius: 14px;
  padding: 28px 26px;
}
[data-theme="night"] .step-card { border-color: rgba(232,237,244,.1); }
.step-card__icon {
  width: 48px; height: 48px;
  background: rgba(14,107,112,.1);
  color: var(--late-sky);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step-card__num { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: rgba(22,32,44,.5); letter-spacing: .08em; margin-bottom: 6px; }
[data-theme="night"] .step-card__num { color: rgba(232,237,244,.5); }
.step-card h3 { margin: 0 0 10px; font-size: 20px; }
.step-card p { color: rgba(22,32,44,.7); margin: 0; font-size: 14.5px; }
[data-theme="night"] .step-card p { color: rgba(232,237,244,.7); }

/* ---------- FAQ ---------- */
.faq {
  max-width: 1000px;
  margin: 0 auto;
  padding: 72px 40px;
}
.faq h2 { font-size: 36px; margin: 8px 0 28px; }
.faq__list { border-top: 1px solid rgba(22,32,44,.1); }
[data-theme="night"] .faq__list { border-top-color: rgba(232,237,244,.1); }
.faq__item { border-bottom: 1px solid rgba(22,32,44,.1); }
[data-theme="night"] .faq__item { border-bottom-color: rgba(232,237,244,.1); }
.faq__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq__q::after { content: "+"; font-family: var(--font-mono); font-weight: 400; transition: transform 200ms; color: var(--late-sky); font-size: 22px; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 22px; color: rgba(22,32,44,.75); font-size: 15px; line-height: 1.6; max-width: 80ch; }
[data-theme="night"] .faq__a { color: rgba(232,237,244,.75); }

/* ---------- Trustmark strip ---------- */
.trust-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px;
}
.trust-strip__card {
  background: var(--paper);
  border: 1px solid rgba(22,32,44,.1);
  border-radius: 22px;
  padding: 36px;
}
[data-theme="night"] .trust-strip__card { border-color: rgba(232,237,244,.08); }
.trust-strip h3 { font-size: 22px; margin: 0 0 6px; }
.trust-strip__note { font-size: 12.5px; color: rgba(22,32,44,.55); font-style: italic; margin-bottom: 20px; }
[data-theme="night"] .trust-strip__note { color: rgba(232,237,244,.5); }
.trust-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-strip__item strong { display: block; font-family: var(--font-display); color: var(--heading); font-size: 15px; margin-bottom: 4px; }
.trust-strip__item span { font-size: 13px; color: rgba(22,32,44,.65); }
[data-theme="night"] .trust-strip__item span { color: rgba(232,237,244,.65); }

/* ---------- App shell (signed-in dashboards) ---------- */
.app-shell {
  min-height: calc(100vh - 0px);
  background: var(--bg);
  display: flex;
  flex-direction: row;
}
.app-shell__side {
  width: 240px;
  border-right: 1px solid rgba(22,32,44,.08);
  background: rgba(232,237,244,.5);
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 3px;
  flex-shrink: 0;
}
[data-theme="night"] .app-shell__side { background: rgba(20,34,50,.5); border-right-color: rgba(232,237,244,.08); }
.app-shell__side .brand-row { padding: 0 8px 18px; display: flex; align-items: center; gap: 10px; }
.app-shell__side a.navitem {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  color: rgba(22,32,44,.75);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
}
[data-theme="night"] .app-shell__side a.navitem { color: rgba(232,237,244,.75); }
.app-shell__side a.navitem:hover { background: rgba(22,32,44,.04); color: var(--heading); }
[data-theme="night"] .app-shell__side a.navitem:hover { background: rgba(232,237,244,.04); }
.app-shell__side a.navitem.active {
  background: rgba(14,107,112,.1);
  color: var(--heading);
  font-weight: 600;
  border-left: 3px solid var(--late-sky);
  padding-left: 9px;
}
.app-shell__side .nav-title {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(22,32,44,.4);
  font-weight: 700;
  padding: 14px 12px 6px;
}
[data-theme="night"] .app-shell__side .nav-title { color: rgba(232,237,244,.45); }
.app-shell__side .sep { height: 1px; background: rgba(22,32,44,.08); margin: 12px 10px; }
.app-shell__side .count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: rgba(22,32,44,.45); background: rgba(22,32,44,.04); padding: 2px 7px; border-radius: 9999px; }
.app-shell__side-foot { margin-top: auto; padding-top: 14px; font-family: var(--font-mono); font-size: 10.5px; color: rgba(22,32,44,.45); padding-left: 12px; line-height: 1.8; }
[data-theme="night"] .app-shell__side-foot { color: rgba(232,237,244,.45); }

.app-shell__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-shell__top {
  border-bottom: 1px solid rgba(22,32,44,.08);
  background: rgba(232,237,244,.7);
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
[data-theme="night"] .app-shell__top { background: rgba(20,34,50,.6); border-bottom-color: rgba(232,237,244,.08); }
.app-shell__main {
  flex: 1;
  padding: 36px 40px 72px;
  overflow: hidden;
}
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px;
  background: var(--paper);
  border: 1px solid rgba(22,32,44,.1);
  border-radius: 100px;
  font-size: 13px;
  text-decoration: none;
  color: var(--fg);
}
[data-theme="night"] .user-chip { border-color: rgba(232,237,244,.12); }
.user-chip .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--tint); color: var(--deep-green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}

/* ---------- Auth shell (signup/login screens) ---------- */
.auth-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(14,107,112,.1), transparent 45%),
    radial-gradient(circle at 80% 15%, rgba(14,107,112,.08), transparent 45%),
    var(--bg);
  display: flex; flex-direction: column;
}
.auth-shell__main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px 80px; }
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  border: 1px solid rgba(22,32,44,.1);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--shadow-elevated);
}
[data-theme="night"] .auth-card { border-color: rgba(232,237,244,.1); }
.auth-card h1 { font-size: 28px; margin: 4px 0 12px; }
.auth-card .kicker { margin-bottom: 6px; }
.auth-card__footer { margin-top: 20px; font-size: 13px; color: rgba(22,32,44,.6); text-align: center; }
[data-theme="night"] .auth-card__footer { color: rgba(232,237,244,.6); }

.divider {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0;
  color: rgba(22,32,44,.45);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(22,32,44,.12); }
[data-theme="night"] .divider::before, [data-theme="night"] .divider::after { background: rgba(232,237,244,.12); }

/* ---------- Preference row ---------- */
.pref-row {
  background: var(--paper);
  border: 1px solid rgba(22,32,44,.1);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 150ms;
}
[data-theme="night"] .pref-row { border-color: rgba(232,237,244,.1); }
.pref-row:hover { box-shadow: var(--shadow-card); }
.pref-row__head {
  padding: 16px 22px;
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  color: inherit;
  font-family: inherit;
  list-style: none;
}
.pref-row__head::-webkit-details-marker { display: none; }
.pref-row__head .ic-wrap { color: var(--late-sky); }
.pref-row__head .title { font-family: var(--font-display); font-size: 17px; color: var(--heading); font-weight: 600; }
.pref-row__head .sub { font-size: 12.5px; color: rgba(22,32,44,.6); margin-top: 2px; }
[data-theme="night"] .pref-row__head .sub { color: rgba(232,237,244,.6); }
.pref-row__head .type { font-family: var(--font-mono); font-size: 11.5px; color: rgba(22,32,44,.5); letter-spacing: .03em; }
[data-theme="night"] .pref-row__head .type { color: rgba(232,237,244,.5); }
.pref-row__body {
  padding: 4px 22px 22px;
  border-top: 1px dashed rgba(22,32,44,.1);
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
[data-theme="night"] .pref-row__body { border-top-color: rgba(232,237,244,.08); }
.pref-row__body h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(22,32,44,.55); margin: 12px 0 10px; }
[data-theme="night"] .pref-row__body h4 { color: rgba(232,237,244,.55); }

.tier-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tier-chips .chip {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 120ms;
  background: rgba(22,32,44,.04);
  color: rgba(22,32,44,.55);
}
[data-theme="night"] .tier-chips .chip { background: rgba(232,237,244,.06); color: rgba(232,237,244,.55); }
.tier-chips .chip.active-public { background: rgba(14,107,112,.15); color: var(--late-sky-dark); border-color: var(--late-sky); }
.tier-chips .chip.active-client { background: rgba(14,107,112,.28); color: #0A5357; border-color: var(--sunflower-dark); }
.tier-chips .chip.active-user { background: rgba(10,83,87,.12); color: var(--deep-green); border-color: var(--deep-green); }

.tier-chips--check .chip { cursor: pointer; }
.tier-chips--check .chip:has(input:checked) {
  background: rgba(14,107,112,.14);
  border-color: rgba(14,107,112,.45);
  color: var(--late-sky-dark);
}
[data-theme="night"] .tier-chips--check .chip:has(input:checked) {
  background: rgba(92,196,200,.12);
  border-color: rgba(92,196,200,.35);
  color: rgba(232,237,244,.9);
}
.tier-chips--check .chip input { accent-color: var(--late-sky); }

.pref-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.pref-stat {
  border: 1px solid rgba(22,32,44,.1);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  background: rgba(22,32,44,.02);
}
[data-theme="night"] .pref-stat { border-color: rgba(232,237,244,.1); background: rgba(232,237,244,.03); }
.pref-stat__label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(22,32,44,.5); }
[data-theme="night"] .pref-stat__label { color: rgba(232,237,244,.45); }
.pref-stat__val { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--heading); margin: 4px 0 0; }
.pref-stat__hint { margin: 8px 0 0; font-size: 12px; line-height: 1.4; }

.pref-filter-iseg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.pref-filter-iseg__btn {
  border: 1px solid rgba(22,32,44,.12);
  background: rgba(22,32,44,.03);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  color: rgba(22,32,44,.65);
  font-family: inherit;
}
[data-theme="night"] .pref-filter-iseg__btn {
  border-color: rgba(232,237,244,.12);
  background: rgba(232,237,244,.04);
  color: rgba(232,237,244,.65);
}
.pref-filter-iseg__btn.is-active {
  border-color: var(--late-sky);
  background: rgba(14,107,112,.12);
  color: var(--late-sky-dark);
}
[data-theme="night"] .pref-filter-iseg__btn.is-active {
  border-color: rgba(92,196,200,.5);
  background: rgba(92,196,200,.12);
  color: rgba(232,237,244,.9);
}

.pref-list { display: flex; flex-direction: column; gap: 0; }

.pref-row__head--rich {
  grid-template-columns: 32px 1fr auto;
  align-items: start;
}
.pref-row__main { min-width: 0; }
.pref-row__summary {
  font-size: 13px;
  color: rgba(22,32,44,.65);
  margin-top: 6px;
  line-height: 1.4;
}
[data-theme="night"] .pref-row__summary { color: rgba(232,237,244,.65); }
.pref-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 10px;
}
.pref-row__pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.tier-dots { display: inline-flex; gap: 6px; align-items: center; }
.tier-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tier-dot--off { background: rgba(22,32,44,.14); }
[data-theme="night"] .tier-dot--off { background: rgba(232,237,244,.15); }
.tier-dot--on.tier-dot--public { background: var(--late-sky); }
.tier-dot--on.tier-dot--client { background: #0B5A5E; }
.tier-dot--on.tier-dot--user { background: var(--deep-green); }

.pill--sm { font-size: 11px; padding: 3px 8px; }

.pref-add-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }

.pref-recent { margin-top: 28px; padding-top: 20px; border-top: 1px dashed rgba(22,32,44,.12); }
[data-theme="night"] .pref-recent { border-top-color: rgba(232,237,244,.1); }
.pref-recent__title { font-size: 15px; margin: 0 0 12px; }
.pref-recent__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pref-recent__item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font-size: 13px;
}

@media (max-width: 720px) {
  .pref-stats { grid-template-columns: 1fr; }
}

.catbox { display: flex; flex-wrap: wrap; gap: 6px; }
.catbox .cat {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 100px;
  background: rgba(22,32,44,.04);
  border: 1px solid rgba(22,32,44,.1);
  color: rgba(22,32,44,.65);
  cursor: pointer;
  user-select: none;
}
[data-theme="night"] .catbox .cat { background: rgba(232,237,244,.06); border-color: rgba(232,237,244,.08); color: rgba(232,237,244,.65); }
.catbox .cat.on {
  background: rgba(14,107,112,.12);
  border-color: var(--late-sky);
  color: var(--late-sky-dark);
  font-weight: 600;
}

.switch {
  width: 36px; height: 20px;
  border-radius: 20px;
  background: rgba(22,32,44,.15);
  position: relative;
  cursor: pointer;
  transition: background 150ms;
  flex-shrink: 0;
  border: 0;
  padding: 0;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff;
  transition: transform 150ms;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch.on { background: var(--deep-green); }
.switch.on::after { transform: translateX(16px); }

/* ---------- Stats row ---------- */
.stats-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; align-items: stretch; }
.stat {
  background: var(--paper);
  border: 1px solid rgba(22,32,44,.1);
  border-radius: var(--r-md);
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 150px;
}
[data-theme="night"] .stat { border-color: rgba(232,237,244,.08); }
.stat .label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: rgba(22,32,44,.55); font-weight: 600; }
[data-theme="night"] .stat .label { color: rgba(232,237,244,.55); }
.stat .val { font-family: var(--font-display); font-size: 24px; color: var(--heading); font-weight: 600; }
.stat .delta { font-size: 12px; color: var(--late-sky); font-weight: 500; }
.stat--flex { flex: 1; min-width: 0; }

/* ---------- Wizard steps ---------- */
.steps { display: flex; align-items: center; gap: 6px; margin-bottom: 24px; padding: 14px 0; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(22,32,44,.55); font-weight: 500; }
[data-theme="night"] .step { color: rgba(232,237,244,.55); }
.step .n {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(22,32,44,.08);
  color: rgba(22,32,44,.6);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
}
[data-theme="night"] .step .n { background: rgba(232,237,244,.1); color: rgba(232,237,244,.6); }
.step.active { color: var(--heading); font-weight: 600; }
.step.active .n { background: var(--sunflower); color: var(--deep-green); }
.step.done { color: var(--heading); }
.step.done .n { background: var(--deep-green); color: var(--sunflower); }
.bar { flex: 0 0 48px; height: 2px; background: rgba(22,32,44,.1); }
[data-theme="night"] .bar { background: rgba(232,237,244,.1); }
.bar.done { background: var(--deep-green); }

/* ---------- Validator ---------- */
.validator {
  background: var(--paper);
  border: 1px solid rgba(22,32,44,.1);
  border-radius: 18px;
  overflow: hidden;
}
[data-theme="night"] .validator { border-color: rgba(232,237,244,.1); }
.validator__head {
  border-bottom: 1px solid rgba(22,32,44,.08);
  padding: 16px 24px;
  background: var(--warm-white);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
[data-theme="night"] .validator__head { background: rgba(20,34,50,.5); border-bottom-color: rgba(232,237,244,.08); }
.validator__split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 520px;
}
.validator__input {
  padding: 28px 30px;
  border-right: 1px solid rgba(22,32,44,.08);
  background: rgba(232,237,244,.25);
}
[data-theme="night"] .validator__input { background: rgba(232,237,244,.02); border-right-color: rgba(232,237,244,.08); }
.validator__output {
  padding: 28px 30px;
  background: var(--paper);
  overflow: hidden;
}
@media (max-width: 880px) {
  .validator__split { grid-template-columns: 1fr; }
  .validator__input { border-right: 0; border-bottom: 1px solid rgba(22,32,44,.08); }
}

/* ---------- Frame / browser chrome (for mockups if needed) ---------- */
.frame {
  background: var(--paper);
  border: 1px solid rgba(22,32,44,.14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(22,32,44,.08);
}
.chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  background: #F1EEE1;
  border-bottom: 1px solid rgba(22,32,44,.08);
}
.chrome-dots { display: flex; gap: 6px; }
.chrome-dots span { width: 11px; height: 11px; border-radius: 50%; background: rgba(22,32,44,.18); }
.chrome-dots span:nth-child(1) { background: #E07A5F; }
.chrome-dots span:nth-child(2) { background: #F4C24E; }
.chrome-dots span:nth-child(3) { background: #7AB87A; }

/* ---------- Empty state ---------- */
.empty {
  padding: 80px 40px;
  border: 2px dashed rgba(22,32,44,.12);
  border-radius: 16px;
  text-align: center;
  background: rgba(232,237,244,.2);
}
[data-theme="night"] .empty { border-color: rgba(232,237,244,.1); background: rgba(232,237,244,.02); }
.empty__icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--sunflower);
  color: var(--deep-green);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.empty h3 { font-size: 24px; margin: 0 0 8px; }
.empty p { color: rgba(22,32,44,.68); max-width: 44ch; margin: 0 auto 20px; font-size: 15px; }
[data-theme="night"] .empty p { color: rgba(232,237,244,.68); }
.empty__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.empty__foot { font-size: 12.5px; font-style: italic; color: rgba(22,32,44,.5); max-width: 60ch; margin: 0 auto; }
[data-theme="night"] .empty__foot { color: rgba(232,237,244,.5); }

/* ---------- Markdown body (docs + specs) ---------- */
.md {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 0 72px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
}
.md h1 { font-size: 40px; margin: 48px 0 20px; letter-spacing: -0.02em; }
.md h1:first-child { margin-top: 0; }
.md h2 { font-size: 28px; margin: 44px 0 16px; letter-spacing: -0.015em; padding-top: 10px; border-top: 1px solid rgba(22,32,44,.08); }
[data-theme="night"] .md h2 { border-top-color: rgba(232,237,244,.08); }
.md h3 { font-size: 21px; margin: 32px 0 12px; color: var(--fg); }
.md h4 { font-size: 17px; margin: 24px 0 10px; color: var(--fg); }
.md p { margin: 0 0 16px; }
.md ul, .md ol { padding-left: 22px; margin: 0 0 16px; }
.md li { margin-bottom: 6px; }
.md code { background: rgba(232,237,244,.6); padding: 2px 6px; border-radius: 4px; font-size: .9em; color: var(--harvest); border: 1px solid rgba(22,32,44,.08); }
[data-theme="night"] .md code { background: rgba(232,237,244,.06); color: var(--ember); border-color: rgba(232,237,244,.08); }
.md pre {
  background: #16202C;
  color: #F1F5F9;
  padding: 18px 22px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.md pre code { background: transparent; padding: 0; border: 0; color: inherit; font-size: inherit; }
.md blockquote {
  border-left: 3px solid var(--late-sky);
  padding: 6px 0 6px 16px;
  margin: 0 0 20px;
  color: rgba(22,32,44,.72);
  font-style: italic;
}
[data-theme="night"] .md blockquote { color: rgba(232,237,244,.72); }
.md table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14.5px; }
.md th, .md td { padding: 10px 14px; text-align: left; border-bottom: 1px solid rgba(22,32,44,.1); }
[data-theme="night"] .md th, [data-theme="night"] .md td { border-bottom-color: rgba(232,237,244,.1); }
.md th { font-weight: 600; background: rgba(232,237,244,.4); }
[data-theme="night"] .md th { background: rgba(232,237,244,.04); }
.md a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-line: underline; }
.md hr { border: 0; border-top: 1px solid rgba(22,32,44,.1); margin: 32px 0; }
[data-theme="night"] .md hr { border-top-color: rgba(232,237,244,.1); }

/* Docs layout with TOC sidebar */
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; max-width: 1160px; margin: 0 auto; padding: 48px 40px; }
.docs-toc { position: sticky; top: 80px; align-self: start; font-size: 13.5px; max-height: calc(100vh - 100px); overflow-y: auto; }
.docs-toc__title { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: rgba(22,32,44,.55); font-weight: 700; margin-bottom: 10px; }
[data-theme="night"] .docs-toc__title { color: rgba(232,237,244,.55); }
.docs-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.docs-toc a { color: rgba(22,32,44,.7); padding: 4px 0; display: block; }
[data-theme="night"] .docs-toc a { color: rgba(232,237,244,.7); }
.docs-toc a:hover { color: var(--heading); }
.docs-toc ul ul { margin-top: 6px; padding-left: 14px; border-left: 1px solid rgba(22,32,44,.08); gap: 5px; }
[data-theme="night"] .docs-toc ul ul { border-left-color: rgba(232,237,244,.08); }
@media (max-width: 880px) {
  .docs-layout { grid-template-columns: 1fr; padding: 32px 24px; }
  .docs-toc { position: static; max-height: none; }
}

/* ---------- Narrow responsive ---------- */
@media (max-width: 880px) {
  .hero { padding: 48px 24px 40px; }
    .tiers { padding: 48px 24px; }
  .tiers__head { grid-template-columns: 1fr; gap: 16px; }
  .tiers__grid, .specs-dark__grid, .how__grid, .trust-strip__grid { grid-template-columns: 1fr; }
  .specs-dark__head { grid-template-columns: 1fr; }
  .sf__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .app-shell { flex-direction: column; }
  .app-shell__side { width: 100%; border-right: 0; border-bottom: 1px solid rgba(22,32,44,.08); }
  .sh { padding: 12px 20px; }
  .sh__nav { display: none; }
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(22,32,44,.14);
  border-radius: 100px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
[data-theme="night"] .theme-toggle { border-color: rgba(232,237,244,.14); }
.theme-toggle:hover { background: rgba(22,32,44,.04); }
[data-theme="night"] .theme-toggle:hover { background: rgba(232,237,244,.04); }

/* ---------- Misc ---------- */
.inline-code { font-family: var(--font-mono); font-size: .9em; background: rgba(22,32,44,.06); padding: 1px 5px; border-radius: 3px; }
[data-theme="night"] .inline-code { background: rgba(232,237,244,.08); }
.hidden { display: none !important; }
.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; }

.main-wrap { min-height: calc(100vh - 200px); }

/* ---------- Developer / API keys metrics ---------- */
.dev-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 24px;
  margin-bottom: 22px;
}
.dev-stat {
  border: 1px solid rgba(22,32,44, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--surface);
}
[data-theme="night"] .dev-stat {
  border-color: rgba(232,237,244, 0.1);
  background: rgba(232,237,244, 0.03);
}
.dev-stat__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.dev-stat__val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--heading);
}
.dev-stat__hint {
  margin: 8px 0 0;
  line-height: 1.45;
}
.dev-stat__hint code {
  font-size: 0.85em;
}
.dev-spark {
  width: 100%;
  height: 40px;
}
.dev-spark__svg {
  width: 100%;
  height: 36px;
  display: block;
}
.dev-spark__bar {
  fill: var(--late-sky);
}
[data-theme="night"] .dev-spark__bar {
  fill: #60a5fa;
}
.dev-inline-details {
  margin-top: 4px;
}
.dev-inline-details summary {
  list-style: none;
}
.dev-inline-details summary::-webkit-details-marker {
  display: none;
}

/* ---------- Identities / domain wizard (handoff mock) ---------- */
.id-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.id-steps__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg);
}
.id-steps__item--muted {
  color: var(--fg-muted);
}
.id-steps__item--active {
  font-weight: 600;
  color: var(--deep-green);
}
.id-steps__item--done {
  color: var(--late-sky);
}
.id-steps__n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(22,32,44, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.id-steps__item--active .id-steps__n {
  border-color: var(--late-sky);
  background: rgba(14,107,112, 0.12);
}
.id-steps__item--done .id-steps__n {
  border-color: rgba(52, 168, 83, 0.4);
  background: rgba(52, 168, 83, 0.1);
}
.id-steps__bar {
  width: 28px;
  height: 2px;
  background: rgba(22,32,44, 0.12);
  margin: 0 4px;
}
[data-theme="night"] .id-steps__bar {
  background: rgba(232,237,244, 0.1);
}
.id-steps__bar--done {
  background: rgba(52, 168, 83, 0.35);
}
.id-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.id-seg__item {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(22,32,44, 0.12);
  color: var(--fg-muted);
}
[data-theme="night"] .id-seg__item {
  border-color: rgba(232,237,244, 0.12);
}
.id-seg__item--active {
  border-color: var(--late-sky);
  color: var(--deep-green);
  background: rgba(14,107,112, 0.08);
}
.verify-trace li {
  line-height: 1.45;
}

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

/* ---------- Utilities (introduced to drop CSP 'unsafe-inline') ---------- */
/* Spacing */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 10px; }
.mt-4 { margin-top: 14px; }
.mt-5 { margin-top: 16px; }
.mt-6 { margin-top: 20px; }
.mt-7 { margin-top: 24px; }
.mt-8 { margin-top: 28px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 10px; }
.mb-4 { margin-bottom: 12px; }
.mb-5 { margin-bottom: 14px; }
.mb-6 { margin-bottom: 16px; }
.mb-7 { margin-bottom: 20px; }
.mb-8 { margin-bottom: 24px; }

.m-0 { margin: 0; }
.my-1 { margin: 4px 0; }
.my-2 { margin: 6px 0; }
.my-3 { margin: 8px 0; }

.p-24 { padding: 24px; }
.py-40-20 { padding: 40px 20px; }
.px-6 { padding-left: 6px; padding-right: 6px; }

/* Text utilities */
.ta-center { text-align: center; }
.ta-left { text-align: left; }
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-13-5 { font-size: 13.5px; }
.fs-14 { font-size: 14px; }
.fs-14-5 { font-size: 14.5px; }
.fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }
.fs-22 { font-size: 22px; }
.fs-64 { font-size: 64px; }
.italic { font-style: italic; }

.uc-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Theme-token colors we apply to copy */
.c-sky { color: var(--late-sky); }
.c-sky-dark { color: var(--late-sky-dark); }
.c-coral { color: var(--coral); }
.c-harvest { color: var(--harvest); }
.c-green { color: var(--deep-green); }
.c-muted-55 { color: rgba(22,32,44, .55); }
.c-muted-72 { color: rgba(22,32,44, .72); }
[data-theme="night"] .c-muted-55 { color: rgba(232,237,244, .55); }
[data-theme="night"] .c-muted-72 { color: rgba(232,237,244, .7); }
.c-ok { color: #0A5357; }

/* Flex / grid helpers */
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.row--start { align-items: flex-start; }
.row--wrap { flex-wrap: wrap; }
.row--grow-1 { flex: 1; }
.row--min-200 { min-width: 200px; }

.grid-auto-fit-260 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.grid-auto-fill-260 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.grid-auto-fill-280 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.grid-cols-1-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.grid-cols-1-1-1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.grid-cols-11-1 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}
.grid-fields-3 {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}
.grid-span-all { grid-column: 1 / -1; }

/* Icon size helpers */
.ic--28 { width: 28px; height: 28px; }
.ic--32 { width: 32px; height: 32px; }

/* Max-width / sizing */
.mw-520 { max-width: 520px; }
.mw-560 { max-width: 560px; }
.mw-640 { max-width: 640px; }
.mw-900 { max-width: 900px; }
.mw-960 { max-width: 960px; }
.mw-44ch { max-width: 44ch; }

/* Page-head layouts */
.page-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head--split-align-start {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  flex-wrap: wrap;
}
.page-head--align-start-24 {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
}

/* Auth-card tweaks */
.auth-card--wide { max-width: 640px; }
.auth-card--center { text-align: center; }

/* Consent and generic callout tweaks */
.callout--verified {
  border-color: rgba(14,107,112, .35);
  background: rgba(14,107,112, .08);
}
.callout--discovery {
  border-color: rgba(196, 125, 42, .35);
  background: rgba(255, 244, 224, .35);
}
.callout--ok-border { border-color: rgba(52, 168, 83, .4); }
.callout--hero-sunflower {
  background: rgba(14,107,112, .18);
  border-color: rgba(14,107,112, .6);
  border-style: solid;
}

/* Badges used in signup / consent: circle icon tiles */
.icon-tile {
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-tile--40 { width: 40px; height: 40px; }
.icon-tile--36 { width: 36px; height: 36px; border-radius: 8px; }
.icon-tile--72 {
  width: 72px;
  height: 72px;
  margin: 20px auto;
  border-radius: 50%;
}
.icon-tile--sky  { background: rgba(14,107,112, .12); color: var(--late-sky); }
.icon-tile--sunflower { background: var(--tint); color: var(--deep-green); }
.icon-tile--check  { background: #DDF1F0; color: #0A5357; }

/* Tree / validator results */
.tree--sm { font-size: 12px; margin-bottom: 16px; }
.validator-heading {
  margin: 20px 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(22,32,44, .55);
}
.validator-heading--tight { margin: 16px 0 10px; }
.validator-heading--loose { margin: 24px 0 10px; }
.trace-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.trace-list__item {
  margin: 6px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.trace-list__mark { flex-shrink: 0; }
.trace-list__mark--fail { color: var(--harvest); }
.details--validator { margin-top: 8px; }
.details--validator > summary { cursor: pointer; }
.details--validator > pre.code {
  max-height: 280px;
  overflow: auto;
  margin-top: 10px;
}

/* Frame card tweaks */
.frame--rounded { border-radius: 14px; }
.frame--panel { border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.frame--panel-lg { border-radius: 14px; padding: 24px; }
.frame--panel-xl { border-radius: 14px; padding: 22px; }
.frame--panel-xxl { border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.frame--reveal {
  border: 2px solid var(--sunflower);
  background: rgba(14,107,112, .08);
  margin-bottom: 24px;
  padding: 26px;
}

/* Section-head tweaks used on identity / wizard cards */
.id-card-head {
  padding: 16px 20px;
  background: rgba(232,237,244, .4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(22,32,44, .08);
}
.id-card-head--wrap { flex-wrap: wrap; }
.id-card-row {
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px dashed rgba(22,32,44, .08);
}
.id-card-note {
  padding: 18px 20px;
  font-size: 13.5px;
  color: rgba(22,32,44, .72);
  line-height: 1.5;
}
.id-card-empty {
  padding: 40px 20px;
  text-align: center;
  color: rgba(22,32,44, .55);
  font-size: 14px;
}
.id-add-form {
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.id-pill-label {
  font-size: 10.5px;
}

/* Inline form rows with zero margin */
.form--inline { margin: 0; }

/* Hero pill nulls on landing */
.pill--bare {
  padding: 0 6px;
  background: transparent;
  border: 0;
}
.pill--sunflower-outline {
  color: var(--sunflower);
  border-color: rgba(14,107,112, .45);
  background: transparent;
}

/* Status dot (app shell) */
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0E6B70;
}

/* Block-level form widgets */
.btn--block { width: 100%; }
.u-block { display: block; }
.u-hidden { display: none; }

/* Step-card link (account overview) */
.step-card--link { text-decoration: none; color: inherit; }

/* Doc / spec index card */
.docs-index-card {
  display: block;
  padding: 22px;
  background: var(--paper);
  border: 1px solid rgba(22,32,44, .1);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 150ms;
}
.docs-index-card:hover { box-shadow: 0 2px 8px rgba(22,32,44, .06); }
.specs-index-card {
  display: block;
  padding: 24px;
  background: var(--paper);
  border: 1px solid rgba(22,32,44, .1);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
}
.specs-index-card__tag {
  display: inline-block;
  margin-bottom: 8px;
  background: rgba(14,107,112, .1);
  color: var(--late-sky-dark);
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  letter-spacing: .04em;
}

/* Container tweaks */
.container--tight { padding: 56px 24px 80px; max-width: 960px; }
.container--tight-900 { padding: 56px 24px 80px; max-width: 900px; }
.container--error { padding: 96px 24px; max-width: 640px; text-align: center; }

/* Code block tweaks */
.code--inline-padded { padding: 10px 14px; font-size: 12px; word-break: break-all; }
.code--compact { padding: 10px 14px; font-size: 12px; }
.code--pre-11 { font-size: 11px; max-height: 280px; overflow: auto; }
.code--pre-12 { font-size: 12px; white-space: pre-wrap; }
.code--pre-12-plain { font-size: 12px; }

/* Reveal-value input styling */
.reveal-value {
  background: rgba(14,107,112, .25);
  font-weight: 600;
}
.reveal-value--harvest { color: var(--harvest); }

/* Docs TOC pseudo-footer */
.docs-toc__more {
  margin-top: 28px;
  border-top: 1px solid rgba(22,32,44, .08);
  padding-top: 16px;
  font-size: 12.5px;
}

/* Generic callouts for delete confirm */
.delete-card { max-width: 520px; padding: 24px; }

/* Identities email input overrides */
.id-field {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

/* Domain wizard pieces */
.domain-web-url { padding: 10px 14px; font-size: 12px; word-break: break-all; }
.domain-pre-json { font-size: 11px; max-height: 280px; overflow: auto; }

/* Authorization page specific tweaks */
.auth-head-row { cursor: default; }
.catbox--sized { margin-bottom: 14px; }

/* Kicker margin helper */
.kicker--mb-1 { margin-bottom: 4px; }
.kicker--mb-2 { margin-bottom: 6px; }

/* Passkey empty state */
.passkey-frame { border-radius: 14px; margin-bottom: 24px; }

/* Textarea min-height for redirects field */
.textarea--tall { min-height: 120px; }

/* Domain form wizard: sections spacing */
.wizard-section { margin-top: 20px; }
.wizard-section--lg { margin-top: 22px; }
.wizard-section-body-mt-14 { margin-top: 14px; }
.wizard-actions {
  margin-top: 22px;
  justify-content: flex-end;
}

/* Spec card pill tweak */
.pill-row--tight { margin-bottom: 20px; }

/* Validator quick-link input padding ("Raw JSON payload" hover cursor) */
.code-wrap--scroll { overflow: auto; }

/* ------- Verify trace cross styling ------- */
.verify-trace__mark--ok { color: #0A5357; }
.verify-trace__mark--fail { color: var(--coral); }

/* Doc index empty state */
.docs-empty-span { grid-column: 1 / -1; }

/* Landing pre-code inline null margin */
.pre--reset { margin: 0; }

/* Layout: column shrink */
.flex-shrink-0 { flex-shrink: 0; }

/* Flex utility for account-level authorizations card */
.catbox--stacked { margin-bottom: 14px; }

/* Borders used on identity section headers */
.section-border-bottom { border-bottom: 1px solid rgba(22,32,44, .08); }

/* Margin-left auto for action placement */
.ml-auto { margin-left: auto; }

/* ---- H-5 batch-1 utilities (identities / domain_wizard / client_details) ---- */

/* Additional font sizes */
.fs-10-5 { font-size: 10.5px; }
.fs-12-5 { font-size: 12.5px; }
.fs-13-5 { font-size: 13.5px; }

/* Additional colour token */
.c-muted-50 { color: rgba(22,32,44, .5); }
[data-theme="night"] .c-muted-50 { color: rgba(232,237,244, .5); }

/* Font-weight utility */
.fw-700 { font-weight: 700; }

/* Line-height utility */
.lh-1-5 { line-height: 1.5; }

/* Additional margin-top values */
.mt-6px  { margin-top: 6px; }
.mt-18   { margin-top: 18px; }
.mt-22   { margin-top: 22px; }

/* Additional margin-bottom value */
.mb-6px  { margin-bottom: 6px; }

/* Gap utility */
.gap-6 { gap: 6px; }

/* ---- H-5 batch-2 utilities ---- */

/* Additional margin-bottom */
.mb-18 { margin-bottom: 18px; }
.mb-28 { margin-bottom: 28px; }

/* Additional margin-top */
.mt-32 { margin-top: 32px; }

/* Additional margin-left */
.ml-12 { margin-left: 12px; }

/* Display utilities */
.d-inline-flex { display: inline-flex; }

/* Color tokens */
.c-sunflower { color: var(--sunflower); }

/* Pill modifier: inline-block with tight spacing (category pills in trust table) */
.pill--spaced {
  margin: 0 4px 4px 0;
  display: inline-block;
}

/* Trust admin: two-column entry form */
.trust-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
}

/* Validator page container variants */
.container--validator-head { padding: 56px 24px 32px; max-width: 1200px; }
.container--validator-body { padding: 20px 24px 72px; max-width: 1200px; }

/* Validator curl textarea */
.code--curl {
  width: 100%;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Pref catalog form: strip padding/border from the pref-row__body */
.pref-form--bare {
  padding: 0;
  border: none;
}

/* ---- H-5 batch-3 utilities ---- */

/* Margin auto (center block) */
.mx-auto { margin-left: auto; margin-right: auto; }

/* Cursor utility */
.cursor-pointer { cursor: pointer; }

/* Min-width for table column (developer overview sparkline column) */
.col--min-120 { min-width: 120px; }

/* Container variant: trust registry header section */
.container--trust-head { padding: 56px 24px 24px; max-width: 1200px; }

/* ---- H-5 batch-4 utilities ---- */

/* Display inline (theme toggle form wrapper) */
.d-inline { display: inline; }

/* App-shell sidebar logout form spacing */
.logout-form { margin: 8px 12px 0; }

/* About page container padding */
.container--about { padding: 72px 24px 96px; }

/* Callout with solid border (recovery flash) */
.callout--solid { border-style: solid; }

/* ---------- teal scheme overrides (2026-10-16) ---------- */
[data-theme="night"] .specs-dark { background: #0B0F14; }
.hero--a .btn--primary { background: #5CC4C8; border-color: #5CC4C8; color: #0F141A; }
.hero--a .btn--primary:hover { color: #0F141A; filter: brightness(1.05); }
