/* =========================================================
   Design tokens (light + dark)
   Angular: src/styles/_tokens.scss, imported once in styles.scss.
   Components use only these variables, never raw colours.
   ========================================================= */
:root {
  /* surfaces and text */
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e6eaf1;
  --border-strong: #d5dbe5;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;

  /* brand */
  --primary: #2563eb;
  --primary-weak: #eef4ff;
  --primary-ring: rgba(37, 99, 235, .18);
  --grad: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);

  /* sidebar */
  --side-bg: #0b1220;
  --side-bg-2: #111a2e;
  --side-text: #94a3b8;
  --side-text-hi: #f1f5f9;
  --side-active: rgba(59, 130, 246, .16);

  /* status */
  --good: #059669; --good-weak: #ecfdf5;
  --warn: #d97706; --warn-weak: #fffbeb;
  --bad: #dc2626;  --bad-weak: #fef2f2;
  --info: #7c3aed; --info-weak: #f5f3ff;
  --gray: #64748b; --gray-weak: #f1f5f9;
  --blue: #2563eb; --blue-weak: #eff6ff;

  /* map (case detail) */
  --map-sea: #dbeafe; --map-sea-2: #bfdbfe; --map-land: #f3ead7; --map-land-edge: #e2d3b2; --map-ink: #0f172a;
  --remark-bg: #fffbeb; --remark-border: #fde68a;

  /* elevation */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 20px 45px -12px rgba(15, 23, 42, .25);

  /* typography */
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-base: 13px;
  --fs-md: 14px;
  --fs-h2: 14px;
  --fs-h1: 19px;
  --fs-stat: 22px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  /* shape and spacing */
  --radius: 12px;
  --radius-sm: 8px;
  --space-page: 24px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a0f1a;
  --surface: #111827;
  --surface-2: #0f172a;
  --surface-3: #1e293b;
  --border: #1f2a3c;
  --border-strong: #2b3a52;
  --text: #e5e7eb;
  --text-2: #cbd5e1;
  --muted: #8b9ab0;
  --primary: #3b82f6;
  --primary-weak: rgba(59, 130, 246, .14);
  --primary-ring: rgba(59, 130, 246, .3);
  --side-bg: #070b14;
  --side-bg-2: #0b1220;
  --good: #34d399; --good-weak: rgba(52, 211, 153, .12);
  --warn: #fbbf24; --warn-weak: rgba(251, 191, 36, .12);
  --bad: #f87171;  --bad-weak: rgba(248, 113, 113, .12);
  --info: #a78bfa; --info-weak: rgba(167, 139, 250, .14);
  --gray: #94a3b8; --gray-weak: rgba(148, 163, 184, .14);
  --blue: #60a5fa; --blue-weak: rgba(96, 165, 250, .14);
  --map-sea: #0f2742; --map-sea-2: #123156; --map-land: #2a2a22; --map-land-edge: #3d3b2e; --map-ink: #e5e7eb;
  --remark-bg: rgba(251, 191, 36, .08); --remark-border: rgba(251, 191, 36, .3);
  --shadow-sm: none;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}
