/**
 * Portable design tokens for Safe Transport / docsgen UI.
 * Copy this file as-is. Themes via data-theme on <html>: light (default) | dark.
 * No Storybook / app dependencies.
 */
:root,
[data-theme="light"] {
  --rv-color-primary: #67BB63;
  --rv-color-primary-hover: #4CA447;
  --rv-color-accent: #67BB63;
  --rv-color-background: #FFFFFF;
  --rv-color-surface: #F3F7FC;
  --rv-color-ink: #111827;
  --rv-color-muted: #5B6B7C;
  --rv-color-border: #D6E2F0;
  --rv-color-success: #059669;
  --rv-color-warning: #D97706;
  --rv-color-danger: #DC2626;
  --st-bg: var(--rv-color-background);
  --st-surface: var(--rv-color-surface);
  --st-text: var(--rv-color-ink);
  --st-muted: var(--rv-color-muted);
  --st-border: var(--rv-color-border);
  --st-accent: var(--rv-color-primary);
  --st-accent-hover: var(--rv-color-primary-hover);
  --st-danger: var(--rv-color-danger);
  --st-ok: var(--rv-color-success);
  --st-ok-bg: #dcfce7;
  --st-danger-bg: #fee2e2;
  --st-choice-bg: #ffffff;
  --st-choice-active: #e8eef4;
  --st-nav-link: #5c6b7a;
  --st-nav-link-active: #14181f;
  --st-table-hover: #f0f2f5;
  --st-input-bg: #ffffff;
  --st-shadow: 0 1px 2px rgba(15, 20, 25, 0.06);
  --st-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --st-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --st-radius: 6px;
  --st-radius-sm: 4px;
  --st-space-1: 4px;
  --st-space-2: 8px;
  --st-space-3: 12px;
  --st-space-4: 16px;
  --st-space-5: 24px;
  --st-space-6: 32px;
  --st-nav-h: 48px;
  --st-max: 1120px;
  --st-max-fluid: none;
}

[data-theme="dark"] {
  --st-bg: #0c0e12;
  --st-surface: #161a22;
  --st-text: #e8eef4;
  --st-muted: #8b9aab;
  --st-border: #2a3340;
  --st-accent: var(--rv-color-primary);
  --st-accent-hover: var(--rv-color-primary-hover);
  --st-danger: #f87171;
  --st-ok: #4ade80;
  --st-ok-bg: #14532d;
  --st-danger-bg: #450a0a;
  --st-choice-bg: #161a22;
  --st-choice-active: #2a1f16;
  --st-nav-link: #8b9aab;
  --st-nav-link-active: #ffffff;
  --st-table-hover: #1c222c;
  --st-input-bg: #0c0e12;
  --st-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--st-font);
  background: var(--st-bg);
  color: var(--st-text);
  min-height: 100vh;
  line-height: 1.45;
}

a {
  color: var(--st-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
