/* CXFabric brand theme. Applies only where <html data-brand="cxfabric">; every other
   workspace keeps tokens.css unchanged.
   Colour, radius and font tokens copied unchanged from the official CXFabric AI Testing Portal
   design system (project/tokens.css, version 1795667225-c583, sha256 86c51013…94ef1):
   https://claude.ai/artifact/UPMNfRWq9yANYfA2fuD9tF
   Only the selectors are scoped to the brand. Do not edit values here: changes go through the
   design system (Ronny). Fonts are the portal's self-hosted IBM Plex files. */
html[data-brand="cxfabric"] {
  --surface: #ffffff;
  --surface-subtle: #f7f8fa;
  --surface-muted: #eef0f3;
  --surface-overlay: #ffffff;
  --surface-overlay-hover: var(--surface-muted);
  --glow: #c9d0da;
  --wash-top: #ffffff;
  --border: #e3e6eb;
  --border-strong: #c9d0da;
  --border-control: #7a8494;
  --ink-strong: #0a0a0a;
  --ink: #10151d;
  --ink-secondary: #3a4352;
  --ink-muted: #5b6676;
  --ink-disabled: #b8c0cc;
  --primary: #0a0a0a;
  --on-primary: #ffffff;
  --accent: #315bde;
  --on-accent: #ffffff;
  --focus-ring: #315bde;
  --pass: #0a7a55;
  --pass-tint: #e7f6f0;
  --fail: #b91c1c;
  --fail-tint: #fef2f2;
  --warn: #8a6a00;
  --warn-tint: #fdf8e1;
  --info: #315bde;
  --info-tint: #eef3ff;
  --chart-bar: #3a4352;
  --chart-track: #e3e6eb;
  --accent-tint: #f1f4ff;
  --accent-tint-border: #d6defc;
  --speaker-bot: var(--info);
  --speaker-bot-tint: var(--info-tint);
  --chart-1: #5297ff;
  --chart-2: #3a4352;
  --chart-3: #7a8494;
  --chart-4: #0f9f6f;
  --chart-5: #d5dbe3;
  --brand-purple: #7457ff;
  --brand-blue: #5297ff;
  --brand-cyan: #40c8f4;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-popover: 0 8px 24px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-glow: none;
  --shadow-focus-field: 0 1px 2px rgba(15, 23, 42, 0.06);
}
html[data-brand="cxfabric"][data-theme="dark"] {
  --surface: #0e1520;
  --surface-subtle: #060a10;
  --surface-muted: #18212e;
  --surface-overlay: #1a2433;
  --surface-overlay-hover: #243046;
  --glow: #2e3a4b;
  --wash-top: #0e1520;
  --border: #1f2a39;
  --border-strong: #2e3a4b;
  --border-control: #5f6b7c;
  --ink-strong: #ffffff;
  --ink: #e8edf3;
  --ink-secondary: #b8c0cc;
  --ink-muted: #8b95a5;
  --ink-disabled: #3a4352;
  --primary: #ffffff;
  --on-primary: #0a0a0a;
  --accent: #5297ff;
  --on-accent: #0a0a0a;
  --focus-ring: #76d3ff;
  --pass: #34d399;
  --pass-tint: #0b231b;
  --fail: #f87171;
  --fail-tint: #2a1212;
  --warn: #facc15;
  --warn-tint: #2a240a;
  --info: #76d3ff;
  --info-tint: #0c1a2e;
  --chart-bar: #c9d0da;
  --chart-track: #1d2531;
  --accent-tint: #0e1630;
  --accent-tint-border: #25336b;
  --speaker-bot: var(--info);
  --speaker-bot-tint: var(--info-tint);
  --chart-1: #5297ff;
  --chart-2: #b8c0cc;
  --chart-3: #5f6b7c;
  --chart-4: #34d399;
  --chart-5: #2a3442;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-popover: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-glow: none;
  --shadow-focus-field: 0 1px 2px rgba(15, 23, 42, 0.06);
}
html[data-brand="cxfabric"] {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-pill: 9999px;
  --z-base: 0;
  --z-sticky: 10;
  --z-popover: 100;
  --z-overlay: 200;
  --z-modal: 210;
  --z-toast: 300;
  --z-tooltip: 400;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
/* Portal bridge (not a design-system token): older portal rules still paint primary and
   send buttons with --brand-orange and --brand-dark, the Infovista colours. In the CXFabric
   edition they follow the CXFabric accent and ink. */
html[data-brand="cxfabric"] {
  --brand-orange: var(--accent);
  --brand-dark: var(--ink-strong);
}
/* Portal bridge: brand.css paints main buttons with --primary-background (Infovista dark
   orange). The CXFabric edition's main action is its accent (README, Color), with a slightly
   darker (light theme) or lighter (dark theme) shade of the same fill on hover. */
html[data-brand="cxfabric"] {
  --primary-background: var(--accent);
  --primary-hover: color-mix(in srgb, var(--accent) 85%, black);
  --primary-text: var(--on-accent);
}
html[data-brand="cxfabric"][data-theme="dark"] {
  --primary-hover: color-mix(in srgb, var(--accent) 85%, white);
}
