/* ─────────────────────────────────────────────────────────────────────────────
   AEC design tokens. Canonical source.

   Every colour, radius and shadow in the app resolves from here. The React
   surfaces under /app link this file directly, and Tailwind's theme is mapped
   onto these same variables (see app/src/styles/app.css), so a utility class
   and a legacy hand-written rule always produce the same pixel.

   The former landing.html and dashboard.html are now React surfaces. Keep
   shared theme changes here; route styles should consume these variables.

   Theme: light is the DEFAULT. localStorage.theme === 'dark' opts out.
   The switch is `body.light`, applied by an inline script immediately after
   <body> opens so there is no flash.
   ──────────────────────────────────────────────────────────────────────────── */

:root {
  /* Charcoal with a restrained cool gray balance, raised panels, then inset/interactive
     surfaces. Opaque fills keep the hierarchy consistent at every nesting depth. */
  --bg:#121619;--bg2:#1b2023;--bg3:#2e3437;
  --surface:#23292c;--surface2:#2b3134;--surface3:#363c3f;
  --border:rgba(255,255,255,.10);--border2:rgba(255,255,255,.16);--border3:rgba(255,255,255,.23);
  --tx:#f0f0f0;--tx2:#c7c7c7;--txm:#a8a8a8;
  --brand:#5fd6a8;--brand-hi:#7de0b8;--brand-d:#1fa886;--brand-glow:rgba(95,214,168,.15);
  --navy:#dbe4f0;--navy-d:#9bb0c8;
  --blue:#3b82f6;--blue-d:#1d4ed8;--blue-glow:rgba(59,130,246,.15);
  --link:#8fbbff;
  --green:#10b981;--green-glow:rgba(16,185,129,.12);
  --amber:#f59e0b;--amber-glow:rgba(245,158,11,.12);
  --red:#f43f5e;--red-glow:rgba(244,63,94,.12);
  --purple:#8b5cf6;--purple-glow:rgba(139,92,246,.12);
  --cyan:#06b6d4;
  --r:16px;--rs:12px;
  --panel:#1b2023;
  --shine:rgba(255,255,255,.05);
  --lift:0 6px 24px rgba(0,0,0,.25),0 0 0 1px rgba(255,255,255,.12);
  --lift-sm:0 2px 10px rgba(0,0,0,.18),0 0 0 1px rgba(255,255,255,.10);
  --lift-soft:0 4px 14px rgba(0,0,0,.18),0 0 0 1px rgba(255,255,255,.10);
}

body.light {
  --bg:#e8ecf1;--bg2:#f4f6f9;--bg3:#dfe4eb;
  --surface:rgba(15,43,74,.03);--surface2:rgba(15,43,74,.06);--surface3:rgba(15,43,74,.09);
  --border:rgba(15,43,74,.08);--border2:rgba(15,43,74,.12);--border3:rgba(15,43,74,.18);
  --tx:#0a1628;--tx2:#475569;--txm:#7a8a9e;
  --brand:#0f6e6e;--brand-hi:#138a8a;--brand-d:#0a4f4f;--brand-glow:rgba(15,110,110,.10);
  --navy:#0f2b4a;--navy-d:#1e3a5f;
  --blue:#1e40af;--blue-d:#1e3a8a;--blue-glow:rgba(30,64,175,.08);
  --link:var(--blue);
  --green:#059669;--green-glow:rgba(5,150,105,.08);
  --amber:#b45309;--amber-glow:rgba(180,83,9,.08);
  --red:#dc2626;--red-glow:rgba(220,38,38,.08);
  --purple:#7c3aed;--purple-glow:rgba(124,58,237,.08);
  --cyan:#0891b2;
  --panel:#f4f6f9;
  --shine:rgba(255,255,255,.22);
  --lift:0 1px 3px rgba(15,23,42,.06),0 6px 24px rgba(15,23,42,.08),0 0 0 1px rgba(15,43,74,.06);
  --lift-sm:0 1px 2px rgba(15,23,42,.04),0 0 0 1px rgba(15,43,74,.07);
  --lift-soft:0 4px 14px rgba(15,23,42,.07),0 0 0 1px rgba(15,43,74,.05);
}
