/* Senheng Intelligence Console - design tokens (dark surface, Senheng red chrome) */
:root {
  /* Surfaces */
  --bg: #0A0A0A;
  --bg-sunk: #070707;
  --bg-card: #131314;
  --bg-elevated: #1A1A1C;
  --bg-hover: #202023;

  /* Borders */
  --border: #262629;
  --border-light: #34343a;
  --border-strong: #45454d;

  /* Text */
  --text: #FAFAFA;
  --text-secondary: #A6A6AE;
  --text-tertiary: #6E6E78;
  --text-dim: #4A4A52;

  /* Brand accent - Senheng red. Chrome only (nav, buttons, focus rings).
     Contrast on --bg-card 3.58:1; white-on-accent 5.19:1. */
  --accent: #D71920;
  --accent-hover: #F03141;   /* 4.62:1 on --bg-card - safe for link text */
  --accent-press: #B01018;
  --accent-dim: rgba(215, 25, 32, 0.16);
  --accent-line: rgba(215, 25, 32, 0.45);

  /* Status - reserved. Never reused as a series colour, always shipped with a
     text label so meaning is never colour-alone. */
  --success: #22C55E;
  --success-dim: rgba(34, 197, 94, 0.14);
  --warning: #F59E0B;
  --warning-dim: rgba(245, 158, 11, 0.14);
  --danger: #FF5A5A;
  --danger-dim: rgba(255, 90, 90, 0.14);
  --info: #38BDF8;

  /* Categorical data-viz palette - FIXED ORDER, NEVER CYCLED.
     Validated against the dark card surface #131314: lightness band, chroma
     floor, adjacent-pair CVD separation (worst dE 8.4), normal-vision floor
     (19.3) and >=3:1 contrast all pass. A 9th series folds into "Other".
     --c-self is Senheng's own colour on comparison charts (the brand red); it
     is always paired with a direct label so it never relies on hue alone. */
  --c1: #3987e5;  /* blue    */
  --c2: #d95926;  /* orange  */
  --c3: #199e70;  /* aqua    */
  --c4: #c98500;  /* yellow  */
  --c5: #d55181;  /* magenta */
  --c6: #008300;  /* green   */
  --c7: #9085e9;  /* violet  */
  --c8: #e66767;  /* red     */
  --c-self: #D71920;
  --c-other: #6E6E78;

  /* Chart chrome */
  --grid: #2c2c2a;
  --axis: #383835;
  --ink-muted: #898781;

  /* Typography */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Spacing scale */
  --sp-xs: 4px; --sp-sm: 8px; --sp-md: 16px; --sp-lg: 24px;
  --sp-xl: 32px; --sp-2xl: 48px; --sp-3xl: 64px;

  /* Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Layout */
  --sidebar-w: 248px;
  --topbar-h: 60px;

  /* Effects */
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --transition: 140ms ease;
}
