/* NOVA — generated from tokens.json */
:root, [data-theme="dark"] {
  --bg: #08080f; /* Page background and the ground under every `surface` card. Text on it: `text`, `muted-strong`, `accent-text`, `blue`, `success`, `danger`. */
  --surface: #0f0f1a; /* Card, modal and container background. Text on it: `text`, `muted`, `muted-strong`, `accent-text`. */
  --sur2: #141420; /* Secondary surface: input fields, info boxes, the tab-nav track, subtle buttons, and the hover fill of `app-card`. Text on it: `text`, `muted`, `muted-strong`. */
  --sur3: #191928; /* Tertiary surface: code blocks, icon buttons, launch buttons, the hover fill of top-nav links. Text on it: `text`, `muted`. */
  --surface-2: rgba(19, 21, 35, 0.92); /* Translucent panel surface declared in nova-main.css but not used by any documented component. Not the same token as `sur2`, which the site's docs call Surface 2. */
  --surface-3: rgba(24, 27, 44, 0.9); /* Translucent panel surface declared in nova-main.css but not used by any documented component. Not the same token as `sur3`. */
  --border: #1e1e30; /* Default 1px border on cards, buttons, inputs, chips and tabs. The Dark value is source-exact and only about 1.2:1 against the surfaces, so in Dark it is a hairline and never the sole mark of a control's edge. The Light value is at least 3:1 on `surface`, `bg` and `sur2`. */
  --border2: #252538; /* Stronger border: icon buttons, launch buttons, modals, provider buttons, hovered controls. Dark is source-exact (about 1.2:1); Light is at least 4.2:1. */
  --border-strong: rgba(255, 176, 32, 0.28); /* Amber-tinted border on hover and emphasis: top-nav links, `app-card`. */
  --border-danger: rgba(255, 132, 146, 0.26); /* Border of the danger button and danger badge. */
  --text: #e8e8f0; /* Primary text and headings on `bg`, `surface`, `sur2`, `sur3`. 14:1 or better in both themes. */
  --muted: #555570; /* Secondary text: captions, labels, placeholders, metadata, inactive tabs, on `bg`, `surface`, `sur2`, `sur3`. Dark is source-exact and only 2.4 to 2.8:1, below the 4.5:1 floor, so keep it to decoration, disabled states and non-essential metadata in Dark and put readable copy in `muted-strong`. Light is 5.7:1 or better. */
  --muted-strong: #c7cae0; /* Readable secondary text on `bg`, `surface`, `sur2`, `sur3`: provider pills, file-input labels. 9.7:1 or better in both themes. */
  --accent: #ffb020; /* Brand amber as a FILL: primary button, toast, hover fill of launch buttons, progress. Text on it is `on-accent`. As a fill it is 1.7:1 on the Light `surface`, so never use it as text or an icon on Light; use `accent-text`. */
  --accent-d: #cc8c10; /* Darker amber declared in nova-main.css; not used by any documented component. Fill only, never text. */
  --accent-soft: rgba(255, 176, 32, 0.12); /* Amber wash behind unread notifications and soft accent fills. Text over it: `text`, `accent-ink`. */
  --accent-glow: rgba(255, 176, 32, 0.08); /* Fainter amber wash: accent badge and passkey button backgrounds. Text over it: `accent-ink`, `text`. */
  --blue: #55b5ff; /* Info and link color, as text or a small mark on `bg`, `surface`, `sur2`, `sur3`. 7.8:1 or better in Dark, 5:1 or better in Light. Declared as `--blue`; the site's Colors page calls it Info. */
  --success: #65db93; /* Success text and marks on `bg`, `surface`, `sur2`, `sur3` (10:1 or better in Dark, 5.2:1 or better in Light). The word or icon always travels with it: never rely on green against red. */
  --success-soft: rgba(101, 219, 147, 0.12); /* Soft success fill. */
  --success-border: rgba(101, 219, 147, 0.25); /* Border of the success badge and the success info box. */
  --danger: #ff6f71; /* Error and destructive text and marks on `bg`, `surface`, `sur2`, `sur3` (6.4:1 or better in Dark, 5.3:1 or better in Light). Pair it with a word or icon. */
  --danger-soft: rgba(255, 111, 113, 0.12); /* Fill of the danger button and danger badge. Text over it: `danger-ink`. */
  --on-accent: #1f1400; /* Text and icons on an `accent` fill (primary button label). 9.9:1. Source literal from `.btn.primary`, tokenised here. */
  --accent-hover: #ffc04d; /* Hover fill of the primary button and modal primary button; `on-accent` stays 11:1 on it. Source literal, tokenised here. */
  --accent-text: #ffb020; /* Amber as TEXT or an icon on `bg`, `surface`, `sur2`, `sur3`: kickers, inline links, step numbers, focus borders. Equals `accent` in Dark (source behaviour); a dark amber in Light (5.7:1 or better). Added so amber text stays legible on Light. */
  --accent-ink: #ffd58a; /* Text on the accent badge and modal badge (over `accent-glow`). Source literal `#ffd58a` in Dark; dark amber in Light (7:1 or better). */
  --danger-ink: #ffd2d8; /* Text on the danger button and danger badge (over `danger-soft`). Source literal `#ffd2d8` in Dark; dark red in Light (5.6:1 or better). */
  --wash: rgba(255, 255, 255, 0.03); /* Barely-there overlay behind default buttons, top-nav links, notification items and the card gradient. Source literal `rgba(255,255,255,0.03)`; inverted to a dark wash in Light. */
  --wash-2: rgba(255, 255, 255, 0.04); /* Slightly stronger overlay behind chips and the default badge. Source literal `rgba(255,255,255,0.04)`. */
  --border-hover: rgba(255, 255, 255, 0.18); /* Border of a hovered default button. Source literal `rgba(255,255,255,0.18)`. */
  --chrome: rgba(8, 9, 16, 0.84); /* Frosted background of the sticky top nav (with a 14px backdrop blur). Source literal `rgba(8,9,16,0.84)`. */
  --scrim: rgba(8, 8, 15, 0.72); /* Modal backdrop (with an 8px backdrop blur). Source literal `rgba(8,8,15,0.72)`. */
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34); /* Default elevation: `card`, top nav, global status panel. */
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); /* Heavier elevation declared as `--card-shadow` for auth-style cards. */
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.3); /* Hover elevation of `app-card` (it also lifts 2px). */
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.45); /* Modal dialog. */
  --shadow-alert: 0 14px 30px rgba(0, 0, 0, 0.24); /* Product alert banner. */
  --shadow-toast: 0 8px 28px rgba(0, 0, 0, 0.4); /* Copy toast. */
}
[data-theme="light"] {
  --bg: #f5f4fa;
  --surface: #ffffff;
  --sur2: #efeef6;
  --sur3: #e6e5f0;
  --surface-2: rgba(255, 255, 255, 0.92);
  --surface-3: rgba(246, 245, 251, 0.9);
  --border: #7d7c95;
  --border2: #6a6982;
  --border-strong: rgba(122, 79, 0, 0.45);
  --border-danger: rgba(179, 32, 47, 0.45);
  --text: #14141f;
  --muted: #565670;
  --muted-strong: #34344a;
  --accent: #ffb020;
  --accent-d: #cc8c10;
  --accent-soft: rgba(255, 176, 32, 0.12);
  --accent-glow: rgba(255, 176, 32, 0.08);
  --blue: #0b62a8;
  --success: #146c3a;
  --success-soft: rgba(20, 108, 58, 0.12);
  --success-border: rgba(20, 108, 58, 0.4);
  --danger: #b3202f;
  --danger-soft: rgba(179, 32, 47, 0.1);
  --on-accent: #1f1400;
  --accent-hover: #ffc04d;
  --accent-text: #7a4f00;
  --accent-ink: #6b4300;
  --danger-ink: #8f1a29;
  --wash: rgba(20, 20, 31, 0.03);
  --wash-2: rgba(20, 20, 31, 0.05);
  --border-hover: #6a6982;
  --chrome: rgba(255, 255, 255, 0.84);
  --scrim: rgba(20, 20, 31, 0.5);
  --shadow: 0 18px 44px rgba(20, 20, 31, 0.12);
  --card-shadow: 0 20px 50px rgba(20, 20, 31, 0.16);
  --shadow-hover: 0 8px 24px rgba(20, 20, 31, 0.14);
  --shadow-modal: 0 24px 60px rgba(20, 20, 31, 0.22);
  --shadow-alert: 0 14px 30px rgba(20, 20, 31, 0.12);
  --shadow-toast: 0 8px 28px rgba(20, 20, 31, 0.25);
}
:root {
  --space-xs: 8px; /* Icon-to-label gaps, button groups, chip gaps, `.gap-xs`. */
  --space-sm: 16px; /* Between related controls; padding inside compact panels. */
  --space-md: 24px; /* Between sections of a card; card and modal outer padding neighbours. */
  --space-lg: 32px; /* Between groups of cards. */
  --space-xl: 48px; /* Empty-state padding; page section gaps. */
  --space-2xl: 64px; /* Largest page-level gap. */
  --radius: 13px; /* The declared `--radius` variable. */
  --radius-xs: 6px; /* Skeleton bars. */
  --radius-sm: 9px; /* Launch, passkey, secondary and provider buttons. */
  --radius-control: 10px; /* Icon buttons, logout button, modal buttons, tab-nav track, sidebar links, toast. */
  --radius-md: 12px; /* The default `.btn`, product alert. */
  --radius-lg: 14px; /* Inputs, toggles, `app-card`, info box, notification item. */
  --radius-xl: 18px; /* Modal, top nav. */
  --radius-card: 22px; /* The standard `.card`. */
  --radius-pill: 999px; /* Badges, chips, provider pills, progress bars. */
  --font-display: "Syne", system-ui, sans-serif;
  --font-mono: "DM Mono", monospace;
  --text-hero-title: 800 26px/1 var(--font-display); /* Page hero title. */
  --text-section-title: 700 24px/1.4 var(--font-display); /* Section headings; 6px below. */
  --text-subsection-title: 700 18px/1.4 var(--font-display); /* Panel and subsection titles. */
  --text-card-title: 800 16px/1.4 var(--font-display); /* Card headings and `app-card` titles; 6px below. */
  --text-body-primary: 700 14px/1.4 var(--font-display); /* Primary body text and identity names. */
  --text-body-secondary: 400 13px/1.65 var(--font-display); /* Running copy. nova-main.css sets no family, so it inherits Syne; the site's Typography page lists it as DM Mono. Syne 400 is not loaded, so browsers render 500. */
  --text-caption: 400 12px/1.6 var(--font-mono); /* Metadata, timestamps, button labels, `app-description`. */
  --text-micro: 500 10px/1.4 var(--font-mono); /* Utility labels, badges and chips; set uppercase. */
  --text-tiny: 400 9px/1.4 var(--font-mono); /* Subdued indicators; set uppercase at 60% opacity. `app-meta` uses 9px with 0.12em tracking. */
  --text-section-kicker: 400 11px/1.4 var(--font-mono); /* Amber eyebrow above a section title, with an 18px rule before it; set uppercase in `accent-text`. */
  --text-field-label: 400 11px/1.4 var(--font-mono); /* Form labels and field-group titles; set uppercase in `muted`. */
}
.hero-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.subsection-title {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.card-title {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.body-primary {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
}
.body-secondary {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0;
}
.caption {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0;
}
.micro {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.tiny {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.06em;
}
.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.1em;
}
.field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.05em;
}
