/* Nexus Internal OS — shared UI tokens (derived from nexus_brand_pack/tokens.json v0.1).
   Source of truth for color + typography across Nexus apps. Link this first, then map your
   app's semantic variables to these primitives. Do not edit values without updating tokens.json. */
:root {
  /* brand color primitives */
  --nexus-blue: #2563EB;        /* primary */
  --nexus-blue-light: #38BDF8;  /* accent */
  --nexus-blue-deep: #0D47A1;
  --nexus-dark: #080F17;        /* background base */
  --nexus-slate: #111827;
  --nexus-slate-2: #1F2937;
  --nexus-deep-1: #0B1220;      /* deep inset panels (tables, toolbars) */
  --nexus-deep-2: #0D1626;
  --nexus-deep-3: #0F172A;
  --nexus-border: #233044;      /* border / divider */
  --nexus-text: #F8FAFC;        /* primary text */
  --nexus-text-dim: #94A3B8;    /* secondary text */
  --nexus-text-muted: #64748B;  /* labels / captions */

  /* status accents — the single source for every dashboard surface */
  --nexus-green: #22C55E;       /* positive / on / PnL+ */
  --nexus-red: #EF4444;         /* negative / error / PnL- */
  --nexus-amber: #F59E0B;       /* warning / changed */
  --nexus-purple: #A855F7;      /* research / special */
  /* legacy aliases (kept so older panels keep resolving) */
  --nexus-ok: var(--nexus-green);
  --nexus-warn: var(--nexus-amber);
  --nexus-changed: var(--nexus-amber);
  --nexus-danger: var(--nexus-red);

  /* surfaces / elevation */
  --nexus-panel: rgba(17, 24, 39, .94);   /* nexus_slate @ .94 */
  --nexus-elev: rgba(8, 15, 23, .92);
  --nexus-shadow: 0 8px 28px rgba(0, 0, 0, .40);
  --nexus-radius: 12px;

  /* typography */
  --nexus-ui-font: Inter, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --nexus-mono-font: "JetBrains Mono", "SF Mono", Consolas, monospace;
}
