/* Design tokens shared by panel and public surfaces. Semantic tokens are
   re-pointed per surface in panel.css / public.css so both can share the same
   primitive scale without sharing a single visual identity. */
:root {
  color-scheme: light;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Shadows (discreet, low elevation) */
  --shadow-sm: 0 1px 2px rgba(20, 22, 30, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 22, 30, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 22, 30, 0.12);

  /* Type scale */
  --font-sans: -apple-system, "Segoe UI", Roboto, ui-sans-serif, system-ui, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --leading-tight: 1.2;
  --leading-normal: 1.5;

  /* Motion */
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);

  /* Focus ring shared by both surfaces */
  --focus-ring: 3px solid var(--focus-color, #2f6fed);
  --focus-ring-offset: 2px;

  /* Neutral ramp (semantic tokens map onto this) */
  --neutral-0: #ffffff;
  --neutral-50: #f7f8fa;
  --neutral-100: #eef0f4;
  --neutral-200: #e2e5eb;
  --neutral-300: #cbd0da;
  --neutral-400: #9aa2b1;
  --neutral-500: #6b7385;
  --neutral-600: #4b5262;
  --neutral-700: #333947;
  --neutral-800: #1f2330;
  --neutral-900: #14161d;

  /* ClickDialog blue accent ramp */
  --blue-50: #eef4ff;
  --blue-100: #dce8ff;
  --blue-300: #7ea6ff;
  --blue-500: #2f6fed;
  --blue-600: #2457c2;
  --blue-700: #1c4499;

  /* Status colors shared across surfaces */
  --green-500: #1f9d55;
  --green-100: #e3f6ea;
  --amber-500: #b5750b;
  --amber-100: #fdf0da;
  --red-500: #c62a2a;
  --red-100: #fbe6e6;
}

@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; }
}
