/* CORTEX UI kit tokens v1.0. Load before cortex.css.
   Only --cx-* tokens are public. The native Foundry/BlazorBootstrap switcher sets
   data-bs-theme on <html>, including the resolved System preference. */
:root{
  /* Shell */
  --cx-side-bg:#071A2E;--cx-side-line:#17354D;--cx-side-text:#D7E2EA;--cx-side-muted:#8DB0C7;--cx-side-active-bg:#E6F9FB;--cx-side-active-text:#071A2E;--cx-side-hover:rgba(36,228,248,.10);
  --cx-handling-bg:#245EA8;--cx-handling-text:#FFFFFF;
  /* Surfaces and text */
  --cx-bg:#F4F7FA;--cx-surface:#FFFFFF;--cx-sunken:#F7FAFC;--cx-line:#D5E0E8;--cx-line-soft:#E8EEF3;
  --cx-head:#071A2E;--cx-text:#202C3C;--cx-text-rgb:32,44,60;--cx-muted:#5B6C7C;--cx-muted-rgb:91,108,124;
  --cx-bg-rgb:244,247,250;--cx-surface-rgb:255,255,255;--cx-sunken-rgb:247,250,252;
  --cx-primary:#104B7A;--cx-primary-rgb:16,75,122;--cx-primary-hover:#0A2E55;--cx-on-primary:#FFFFFF;--cx-link:#056E7E;--cx-link-rgb:5,110,126;
  --cx-selected:#E6F9FB;--cx-hover:rgba(7,26,46,.04);--cx-accent:#24E4F8;--cx-brand-accent:#24E4F8;
  /* Status: text colour and tinted background. Always paired with a shape (CxStatusMarker) */
  --cx-act:#B42318;--cx-act-bg:#FFF4F2;   /* action required, overdue, blocked */
  --cx-due:#B45309;--cx-due-bg:#FDF4EA;   /* due soon, needs review */
  --cx-ok:#0F766E;--cx-ok-bg:#ECF7F5;     /* on track, complete, current */
  --cx-info:#245EA8;--cx-info-bg:#EEF3FA; /* information, in review */
  --cx-unk:#5B6C7C;--cx-unk-bg:#F1F4F7;   /* unknown, stale, draft, not started */
  /* Focus: two layers so it passes 3:1 on any surface and differs from selection */
  --cx-focus-outline:#071A2E;--cx-focus-halo:#24E4F8;
  /* Map */
  --cx-pin:#7FB3D9;--cx-pin-border:#071A2E;--cx-pin-selected:#24E4F8;--cx-pin-stale:#AFC1CF;--cx-map-bg:#0B2238;--cx-glass:rgba(10,32,52,.94);
  /* Entity kinds (graph). Always paired with a three-letter symbol; --cx-on-kind text meets 4.5:1 on each */
  --cx-kind-person:#1F5FA8;--cx-kind-organisation:#6B3FA0;--cx-kind-location:#1B6E3A;--cx-kind-event:#A1400D;--cx-kind-object:#555B61;--cx-kind-selector:#8A1C4A;--cx-kind-other:#3D4F5C;--cx-on-kind:#FFFFFF;
  /* Type scale (UI). Inter for UI, IBM Plex Mono for refs/hashes/coordinates */
  --cx-font:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;--cx-mono:"IBM Plex Mono",ui-monospace,Consolas,monospace;
  --cx-fs-xs:12px;--cx-fs-sm:13px;--cx-fs-md:14px;--cx-fs-lg:16px;--cx-fs-xl:20px;--cx-fs-2xl:26px;
  --cx-lh-ui:1.45;--cx-lh-read:1.65;--cx-tracking-title:-.02em;
  /* Radius scale */
  --cx-r-sm:6px;--cx-r-md:10px;--cx-r-pill:999px;
  /* Spacing (8px rhythm) */
  --cx-s-1:4px;--cx-s-2:8px;--cx-s-3:12px;--cx-s-4:16px;--cx-s-5:20px;--cx-s-6:24px;--cx-s-8:32px;--cx-s-12:48px;
  --cx-page-pad:24px;--cx-page-max:1360px;--cx-row-h:56px;
  /* Layout */
  --cx-sidebar-w:232px;--cx-topbar-h:56px;--cx-handling-h:22px;--cx-rail-w:320px;
  /* Elevation: borders over shadows; one real shadow for floating layers */
  --cx-shadow-float:0 16px 48px rgba(7,26,46,.10);
  /* Motion */
  --cx-ease:cubic-bezier(.2,0,0,1);--cx-dur:180ms;
}
[data-density="compact"]{--cx-page-pad:18px;--cx-row-h:46px}
[data-bs-theme="dark"]{
  --cx-bg:#061525;--cx-surface:#0A2034;--cx-sunken:#0E2A43;--cx-line:#1A3A54;--cx-line-soft:#143049;
  --cx-bg-rgb:6,21,37;--cx-surface-rgb:10,32,52;--cx-sunken-rgb:14,42,67;
  --cx-head:#EFF7FB;--cx-text:#D7E2EA;--cx-text-rgb:215,226,234;--cx-muted:#9DB6C8;--cx-muted-rgb:157,182,200;
  --cx-primary:#7FB3D9;--cx-primary-rgb:127,179,217;--cx-primary-hover:#A6CBE6;--cx-on-primary:#071A2E;--cx-link:#24E4F8;--cx-link-rgb:36,228,248;
  --cx-selected:rgba(36,228,248,.12);--cx-hover:rgba(255,255,255,.04);
  --cx-act:#FF8A7A;--cx-act-bg:rgba(255,138,122,.10);--cx-due:#F5B357;--cx-due-bg:rgba(245,179,87,.10);
  --cx-ok:#4FD1C0;--cx-ok-bg:rgba(79,209,192,.10);--cx-info:#8FB8F0;--cx-info-bg:rgba(143,184,240,.10);--cx-unk:#9DB6C8;--cx-unk-bg:rgba(157,182,200,.10);
  --cx-kind-person:#2F6FBF;--cx-kind-organisation:#7A4FB2;--cx-kind-location:#1F7A42;--cx-kind-event:#B04A12;--cx-kind-object:#62686E;--cx-kind-selector:#A02456;--cx-kind-other:#4A5F6E;
  --cx-focus-outline:#24E4F8;--cx-focus-halo:transparent;--cx-shadow-float:0 16px 48px rgba(0,0,0,.4);
}
/* Bootstrap controls, focus and forced-colour behaviour are bridged in cortex.css.
   Existing component styles remain on compatible --cortex-* aliases until migrated. */
