/* Prometheus Standard: shared scales, inherited in both modes. */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --text-xs: .6875rem;
  --text-sm: .8125rem;
  --text-md: .875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --icon-xs: 14px;
  --icon-sm: 16px;
  --icon-md: 18px;
  --icon-lg: 20px;
  --icon-xl: 24px;
  --control-sm: 28px;
  --control-md: 36px;
  --control-lg: 44px;
  --control-font-sm: 13px;
  --control-font-md: 14px;
  --control-font-lg: 16px;
  --control-pad-sm: 8px;
  --control-pad-md: 12px;
  --control-pad-lg: 16px;
  --control-icon-sm: 16px;
  --control-icon-md: 20px;
  --control-icon-lg: 24px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --motion-fast: 120ms;
  --motion-standard: 160ms;
  --motion-ambient: 1400ms;
  --line-tight: 1.25;
  --line-body: 1.5;
  --line-prose: 1.75;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --layer-base: 1;
  --layer-sticky: 20;
  --layer-dropdown: 50;
  --layer-overlay: 60;
  --layer-modal: 1000;
  --layer-toast: 9999;
  --body-font: -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono-font: "SFMono-Regular", Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .08);
  --shadow-modal: 0 16px 40px rgba(0, 0, 0, .35);
  --focus-ring: 0 0 0 3px var(--focus-color);
  --ease-standard: cubic-bezier(.2, 0, .2, 1);
  --ease-enter: cubic-bezier(0, 0, .2, 1);
  --ease-ambient: ease-in-out;
  --hit-target: 24px;
  --sidebar-width: 220px; --sidebar-min: 150px; --sidebar-max: 480px;
  --content-width: 1024px; --app-width: 400px;
}
:root, :root[data-mode="dark"] {
  color-scheme: dark;
  --page-bg: #0d1117; --body-fg: #e6edf3;
  --bg: #0d1117; --panel: #161b22; --border: #30363d; --text: #e6edf3;
  --muted: #8b949e; --accent: #58a6ff; --ok: #3fb950; --warn: #d29922; --err: #f85149;
  --surface: #161b22; --surface-raised: #161b22; --muted-bg: #161b22;
  --control-border: #8b949e; --accent-hover: #79b8ff; --on-accent: #0d1117;
  --danger-bg: #f85149; --danger-hover: #ff7b72; --on-danger: #0d1117;
  --link: #58a6ff; --focus-color: #e6edf3; --teal: #39c5cf;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --series-5: #d55181;
  --phase-1: #8f6fd8; --phase-2: #199e70; --phase-3: #c98500; --phase-4: #3987e5; --phase-5: #d55181; --phase-6: #2a9fb3; --phase-7: #d95926;
}
:root[data-mode="light"] {
  color-scheme: light;
  --page-bg: #ffffff; --body-fg: #0f172a;
  --bg: #ffffff; --panel: #ffffff; --border: #818b9b; --text: #0f172a;
  --muted: #526277; --accent: #1a7bac; --ok: #216e39; --warn: #805500; --err: #b42318;
  --surface: #ffffff; --surface-raised: #ffffff; --muted-bg: #f5f6f8;
  --control-border: #818b9b; --accent-hover: #156690; --on-accent: #ffffff;
  --danger-bg: #b42318; --danger-hover: #8f1c13; --on-danger: #ffffff;
  --link: #156690; --focus-color: #0f172a; --teal: #096971;
  --series-1: #156690; --series-2: #a63b15; --series-3: #216e39; --series-4: #805500; --series-5: #a52b5a;
  --phase-1: #6e48b0; --phase-2: #216e39; --phase-3: #805500; --phase-4: #156690; --phase-5: #a52b5a; --phase-6: #096971; --phase-7: #a63b15;
}
:root {
  --blue: var(--accent); --green: var(--ok); --yellow: var(--warn); --red: var(--err);
  --accent-faint: color-mix(in srgb, var(--accent) 6%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-mid: color-mix(in srgb, var(--accent) 35%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  :root { --motion-fast: 0ms; --motion-standard: 0ms; --motion-ambient: 0ms; }
}
