:where([data-uai-theme="light"]) {
  /* Last stop of the AI accent gradient (cyan). Same value in every theme. Use: borders and highlights of AI features: insight cards use start, middle and end; Brain actions use start to middle. Pair: content/primary for text over insight surfaces (overlay/insight). Avoid: body text color, status colors and non-AI features. */
  --uai-accent-ai-end: #00c6d7;
  /* Middle stop of the AI accent gradient (purple). Same value in every theme. Use: borders and highlights of AI features: insight cards use start, middle and end; Brain actions use start to middle. Pair: content/primary for text over insight surfaces (overlay/insight). Avoid: body text color, status colors and non-AI features. */
  --uai-accent-ai-middle: #a855f7;
  /* First stop of the AI accent gradient (blue). Same value in every theme. Use: borders and highlights of AI features: insight cards use start, middle and end; Brain actions use start to middle. Pair: content/primary for text over insight surfaces (overlay/insight). Avoid: body text color, status colors and non-AI features. */
  --uai-accent-ai-start: #0099ff;
  /* Theme-aware destructive action accent. Use: background of filled destructive buttons, and text and border of outline or text destructive actions on standard surfaces. Pair: action/destructive-foreground on filled buttons, never fixed/bright. Avoid: error messages; use feedback/error. */
  --uai-action-destructive: #cf0022;
  /* Theme-aware text and icon color on action/destructive: white in Light, dark neutral in Dark. Avoid: replacing it with fixed/bright. */
  --uai-action-destructive-foreground: #ffffff;
  /* Theme-aware background of outline and text (ghost) actions, default state. Pair: content/primary for the label. States: action/outline/hover and action/outline/pressed. */
  --uai-action-outline-default: #ffffff;
  /* Theme-aware hover background of outline and text actions. Also the hover background of list and menu items. */
  --uai-action-outline-hover: #f2f3f3;
  /* Theme-aware pressed background of outline and text actions. Also the background of the selected list or menu item. */
  --uai-action-outline-pressed: #e4e6e7;
  /* Theme-aware background of filled positive buttons. Pair: action/positive-foreground, never fixed/bright. Avoid: success text and outline or text actions; use feedback/success. */
  --uai-action-positive: #047857;
  /* Theme-aware text and icon color on action/positive: white in Light, dark neutral in Dark. */
  --uai-action-positive-foreground: #ffffff;
  /* Theme-aware background of primary actions, default state: solid uai-button and the checked checkbox fill. Neutral (near-black in Light), not brand blue. Pair: action/primary/foreground. States: action/primary/hover and action/primary/pressed. */
  --uai-action-primary-default: #242729;
  /* Theme-aware text and icon color on action/primary backgrounds, including the checkbox check mark. Avoid: fixed/bright or content/inverse on primary actions. */
  --uai-action-primary-foreground: #ffffff;
  /* Theme-aware background of primary actions on hover. Use only as the hover state of action/primary/default. Pair: action/primary/foreground. */
  --uai-action-primary-hover: #181a1b;
  /* Theme-aware background of primary actions while pressed or active. Use only as the pressed state of action/primary/default. Pair: action/primary/foreground. */
  --uai-action-primary-pressed: #0a0a0a;
  /* Theme-aware decorative border. Use: cards, dividers and separators. Avoid: as the only boundary of a form control or as the sole state indicator; use border/input or border/ring. */
  --uai-border-default: #e4e6e7;
  /* Theme-aware essential boundary of form controls. Use: default borders of inputs, selects, checkboxes and radios. Dark mode meets 3:1 on background, paper, contrast, muted and outline pressed surfaces. Avoid: decorative dividers; use border/default. */
  --uai-border-input: #adb4b8;
  /* Theme-aware solid focus indicator: dark in Light, light in Dark. Use: focus border of inputs and focus outline of buttons, checkboxes and radios, always at full opacity. Inputs may add a separate outer halo with opacity/focus-ring. Avoid: reducing the opacity of the whole control. */
  --uai-border-ring: #242729;
  /* Theme-aware color for disabled text, icons and control borders (inputs, checkbox, radio). Avoid: placeholders (use content/placeholder) and readable secondary text, because disabled content is exempt from contrast rules. */
  --uai-content-disabled: #848e94;
  /* Theme-aware text and icon color for inverted surfaces. Use: text and icons on surface/inverse, such as tooltips and snackbars. Avoid: labels on filled actions; use the matching action foreground token. */
  --uai-content-inverse: #ffffff;
  /* Theme-aware link color. Use: links and interactive navigation text on standard surfaces. Keep an underline or another non-color cue when embedded in body text. Avoid: non-interactive emphasis. */
  --uai-content-link: #0073e5;
  /* Theme-aware placeholder color. Use: placeholder and empty-value hint text inside inputs and selects on standard surfaces. Dark mode meets 4.5:1 on background, paper, contrast, muted and outline pressed surfaces. Avoid: disabled content; use content/disabled. */
  --uai-content-placeholder: #adb4b8;
  /* Theme-aware primary text and icon color. Use: headings, body text, input values and form labels on standard surfaces (background, paper, contrast, muted). Avoid: text on surface/inverse or on filled actions; use content/inverse or the matching action foreground. */
  --uai-content-primary: #242729;
  /* Theme-aware secondary text and icon color. Use: descriptions, supporting text, input icons, avatar initials and text on surface/muted. Avoid: essential information that must be read at a glance; use content/primary. */
  --uai-content-secondary: #5f676d;
  /* Theme-aware error color for text, icons and borders, such as an invalid input and its message, on standard surfaces or on feedback/error-subtle. Keep a message or icon as a non-color cue. Avoid: filled destructive buttons; use action/destructive. */
  --uai-feedback-error: #cf0022;
  /* Theme-aware background of error alerts, banners and inline status areas. Pair: feedback/error for the icon and content/primary for the text. */
  --uai-feedback-error-subtle: #fef2f2;
  /* Theme-aware information color for text, icons and borders on standard surfaces or on feedback/info-subtle. Avoid: filled button backgrounds. */
  --uai-feedback-info: #0073e5;
  /* Theme-aware background of information alerts, banners and inline status areas. Pair: feedback/info for the icon and content/primary for the text. */
  --uai-feedback-info-subtle: #eff6ff;
  /* Theme-aware success color for text, icons and borders, such as a valid input and its message, on standard surfaces or on feedback/success-subtle. Avoid: filled buttons; use action/positive with action/positive-foreground. */
  --uai-feedback-success: #3da329;
  /* Theme-aware background of success alerts, banners and inline status areas. Pair: feedback/success for the icon and content/primary for the text. */
  --uai-feedback-success-subtle: #ecfdf5;
  /* Theme-aware warning color for text, icons and borders on standard surfaces or on feedback/warning-subtle. Check text contrast in Light mode. Avoid: filled button backgrounds. */
  --uai-feedback-warning: #ff8000;
  /* Theme-aware background of warning alerts, banners and inline status areas. Pair: feedback/warning for the icon and content/primary for the text. */
  --uai-feedback-warning-subtle: #fff7ed;
  /* Fixed Blip blue, the same in every theme. Pair: fixed/bright for text on it. Avoid: as the only selected-state boundary on every surface, and as a replacement for the neutral action/primary. */
  --uai-fixed-blue: #1e6bf1;
  /* Product brand color, invariant across themes. Use: brand marks and illustrations. Pair: fixed/dim for normal text on it, not fixed/bright. Avoid: as the only selected-state boundary on every surface. */
  --uai-fixed-brand: #0099ff;
  /* Fixed white that does not change with the theme. Use: text and icons on fixed/dim or fixed/blue. Avoid: text on fixed/brand or on light feedback colors, where it fails normal-text contrast. */
  --uai-fixed-bright: #ffffff;
  /* Fixed dark neutral that does not change with the theme. Use: text on fixed/brand, and dark areas that must look the same in Light and Dark. Avoid: theme-aware text; use content/primary. */
  --uai-fixed-dim: #242729;
  /* Theme-aware translucent backdrop behind modals, drawers and dialogs. Avoid: hover or pressed feedback; use overlay/hover or overlay/pressed. */
  --uai-overlay-default: rgba(0, 0, 0, 0.72);
  /* Theme-aware translucent hover layer placed over any interactive surface: black tint in Light, white tint in Dark. Use: menu items, icon buttons and the radio hover halo. Avoid: as a solid background. */
  --uai-overlay-hover: rgba(0, 0, 0, 0.08);
  /* Theme-aware translucent background for insight panels and floating cards over content. Pair: content/primary. */
  --uai-overlay-insight: rgba(255, 255, 255, 0.9);
  /* Theme-aware translucent pressed layer placed over any interactive surface. Use: the pressed state wherever overlay/hover is the hover state. */
  --uai-overlay-pressed: rgba(0, 0, 0, 0.16);
  /* Theme-aware translucent layer for the selected item in navigation placed over any surface: black tint in Light, white tint in Dark. Use: selected header navigation and side menu items, together with medium font weight. Pair: content/primary. Avoid: selected list or menu options in panels; use action/outline/pressed. */
  --uai-overlay-selected: rgba(0, 0, 0, 0.06);
  /* Theme-aware page background, the base layer behind every screen. Use: app canvas and the area around cards. Pair: content/primary and content/secondary. Avoid: cards, fields and floating panels; use surface/paper. */
  --uai-surface-background: #f2f3f3;
  /* Theme-aware subtle contrast surface. Use: secondary panels, alternating sections, hovered or selected table rows. Pair: content/primary. Avoid: the page background. */
  --uai-surface-contrast: #e4e6e7;
  /* Theme-aware inverted surface: dark in Light mode, light in Dark mode. Use: tooltips, snackbars and banners that must stand out from the page. Pair: content/inverse for text and icons. Avoid: large areas. */
  --uai-surface-inverse: #242729;
  /* Theme-aware muted surface. Use: chips, tags, code blocks, table headers, input adornment boxes and the avatar initials background. Pair: content/secondary for text and icons. */
  --uai-surface-muted: #f2f3f3;
  /* Theme-aware main container surface. Use: cards, modals, popovers, dropdown panels, drawers, input fields and the app header. Pair: content/* tokens; add an elevation style when it floats. Avoid: the page canvas; use surface/background. */
  --uai-surface-paper: #ffffff;
  color-scheme: light;
}

:where([data-uai-theme="dark"]) {
  /* Last stop of the AI accent gradient (cyan). Same value in every theme. Use: borders and highlights of AI features: insight cards use start, middle and end; Brain actions use start to middle. Pair: content/primary for text over insight surfaces (overlay/insight). Avoid: body text color, status colors and non-AI features. */
  --uai-accent-ai-end: #00c6d7;
  /* Middle stop of the AI accent gradient (purple). Same value in every theme. Use: borders and highlights of AI features: insight cards use start, middle and end; Brain actions use start to middle. Pair: content/primary for text over insight surfaces (overlay/insight). Avoid: body text color, status colors and non-AI features. */
  --uai-accent-ai-middle: #a855f7;
  /* First stop of the AI accent gradient (blue). Same value in every theme. Use: borders and highlights of AI features: insight cards use start, middle and end; Brain actions use start to middle. Pair: content/primary for text over insight surfaces (overlay/insight). Avoid: body text color, status colors and non-AI features. */
  --uai-accent-ai-start: #0099ff;
  /* Theme-aware destructive action accent. Use: background of filled destructive buttons, and text and border of outline or text destructive actions on standard surfaces. Pair: action/destructive-foreground on filled buttons, never fixed/bright. Avoid: error messages; use feedback/error. */
  --uai-action-destructive: #fca5a5;
  /* Theme-aware text and icon color on action/destructive: white in Light, dark neutral in Dark. Avoid: replacing it with fixed/bright. */
  --uai-action-destructive-foreground: #181a1b;
  /* Theme-aware background of outline and text (ghost) actions, default state. Pair: content/primary for the label. States: action/outline/hover and action/outline/pressed. */
  --uai-action-outline-default: #242729;
  /* Theme-aware hover background of outline and text actions. Also the hover background of list and menu items. */
  --uai-action-outline-hover: #2f3437;
  /* Theme-aware pressed background of outline and text actions. Also the background of the selected list or menu item. */
  --uai-action-outline-pressed: #3b4144;
  /* Theme-aware background of filled positive buttons. Pair: action/positive-foreground, never fixed/bright. Avoid: success text and outline or text actions; use feedback/success. */
  --uai-action-positive: #35de90;
  /* Theme-aware text and icon color on action/positive: white in Light, dark neutral in Dark. */
  --uai-action-positive-foreground: #181a1b;
  /* Theme-aware background of primary actions, default state: solid uai-button and the checked checkbox fill. Neutral (near-black in Light), not brand blue. Pair: action/primary/foreground. States: action/primary/hover and action/primary/pressed. */
  --uai-action-primary-default: #e4e6e7;
  /* Theme-aware text and icon color on action/primary backgrounds, including the checkbox check mark. Avoid: fixed/bright or content/inverse on primary actions. */
  --uai-action-primary-foreground: #242729;
  /* Theme-aware background of primary actions on hover. Use only as the hover state of action/primary/default. Pair: action/primary/foreground. */
  --uai-action-primary-hover: #d6d9db;
  /* Theme-aware background of primary actions while pressed or active. Use only as the pressed state of action/primary/default. Pair: action/primary/foreground. */
  --uai-action-primary-pressed: #c8cccf;
  /* Theme-aware decorative border. Use: cards, dividers and separators. Avoid: as the only boundary of a form control or as the sole state indicator; use border/input or border/ring. */
  --uai-border-default: #2f3437;
  /* Theme-aware essential boundary of form controls. Use: default borders of inputs, selects, checkboxes and radios. Dark mode meets 3:1 on background, paper, contrast, muted and outline pressed surfaces. Avoid: decorative dividers; use border/default. */
  --uai-border-input: #848e94;
  /* Theme-aware solid focus indicator: dark in Light, light in Dark. Use: focus border of inputs and focus outline of buttons, checkboxes and radios, always at full opacity. Inputs may add a separate outer halo with opacity/focus-ring. Avoid: reducing the opacity of the whole control. */
  --uai-border-ring: #ffffff;
  /* Theme-aware color for disabled text, icons and control borders (inputs, checkbox, radio). Avoid: placeholders (use content/placeholder) and readable secondary text, because disabled content is exempt from contrast rules. */
  --uai-content-disabled: #768188;
  /* Theme-aware text and icon color for inverted surfaces. Use: text and icons on surface/inverse, such as tooltips and snackbars. Avoid: labels on filled actions; use the matching action foreground token. */
  --uai-content-inverse: #181a1b;
  /* Theme-aware link color. Use: links and interactive navigation text on standard surfaces. Keep an underline or another non-color cue when embedded in body text. Avoid: non-interactive emphasis. */
  --uai-content-link: #93c5fd;
  /* Theme-aware placeholder color. Use: placeholder and empty-value hint text inside inputs and selects on standard surfaces. Dark mode meets 4.5:1 on background, paper, contrast, muted and outline pressed surfaces. Avoid: disabled content; use content/disabled. */
  --uai-content-placeholder: #adb4b8;
  /* Theme-aware primary text and icon color. Use: headings, body text, input values and form labels on standard surfaces (background, paper, contrast, muted). Avoid: text on surface/inverse or on filled actions; use content/inverse or the matching action foreground. */
  --uai-content-primary: #ffffff;
  /* Theme-aware secondary text and icon color. Use: descriptions, supporting text, input icons, avatar initials and text on surface/muted. Avoid: essential information that must be read at a glance; use content/primary. */
  --uai-content-secondary: #adb4b8;
  /* Theme-aware error color for text, icons and borders, such as an invalid input and its message, on standard surfaces or on feedback/error-subtle. Keep a message or icon as a non-color cue. Avoid: filled destructive buttons; use action/destructive. */
  --uai-feedback-error: #fca5a5;
  /* Theme-aware background of error alerts, banners and inline status areas. Pair: feedback/error for the icon and content/primary for the text. */
  --uai-feedback-error-subtle: #450a0a;
  /* Theme-aware information color for text, icons and borders on standard surfaces or on feedback/info-subtle. Avoid: filled button backgrounds. */
  --uai-feedback-info: #93c5fd;
  /* Theme-aware background of information alerts, banners and inline status areas. Pair: feedback/info for the icon and content/primary for the text. */
  --uai-feedback-info-subtle: #072563;
  /* Theme-aware success color for text, icons and borders, such as a valid input and its message, on standard surfaces or on feedback/success-subtle. Avoid: filled buttons; use action/positive with action/positive-foreground. */
  --uai-feedback-success: #35de90;
  /* Theme-aware background of success alerts, banners and inline status areas. Pair: feedback/success for the icon and content/primary for the text. */
  --uai-feedback-success-subtle: #022c22;
  /* Theme-aware warning color for text, icons and borders on standard surfaces or on feedback/warning-subtle. Check text contrast in Light mode. Avoid: filled button backgrounds. */
  --uai-feedback-warning: #fb923c;
  /* Theme-aware background of warning alerts, banners and inline status areas. Pair: feedback/warning for the icon and content/primary for the text. */
  --uai-feedback-warning-subtle: #431407;
  /* Fixed Blip blue, the same in every theme. Pair: fixed/bright for text on it. Avoid: as the only selected-state boundary on every surface, and as a replacement for the neutral action/primary. */
  --uai-fixed-blue: #1e6bf1;
  /* Product brand color, invariant across themes. Use: brand marks and illustrations. Pair: fixed/dim for normal text on it, not fixed/bright. Avoid: as the only selected-state boundary on every surface. */
  --uai-fixed-brand: #0099ff;
  /* Fixed white that does not change with the theme. Use: text and icons on fixed/dim or fixed/blue. Avoid: text on fixed/brand or on light feedback colors, where it fails normal-text contrast. */
  --uai-fixed-bright: #ffffff;
  /* Fixed dark neutral that does not change with the theme. Use: text on fixed/brand, and dark areas that must look the same in Light and Dark. Avoid: theme-aware text; use content/primary. */
  --uai-fixed-dim: #242729;
  /* Theme-aware translucent backdrop behind modals, drawers and dialogs. Avoid: hover or pressed feedback; use overlay/hover or overlay/pressed. */
  --uai-overlay-default: rgba(0, 0, 0, 0.8);
  /* Theme-aware translucent hover layer placed over any interactive surface: black tint in Light, white tint in Dark. Use: menu items, icon buttons and the radio hover halo. Avoid: as a solid background. */
  --uai-overlay-hover: rgba(255, 255, 255, 0.08);
  /* Theme-aware translucent background for insight panels and floating cards over content. Pair: content/primary. */
  --uai-overlay-insight: rgba(0, 0, 0, 0.8);
  /* Theme-aware translucent pressed layer placed over any interactive surface. Use: the pressed state wherever overlay/hover is the hover state. */
  --uai-overlay-pressed: rgba(255, 255, 255, 0.16);
  /* Theme-aware translucent layer for the selected item in navigation placed over any surface: black tint in Light, white tint in Dark. Use: selected header navigation and side menu items, together with medium font weight. Pair: content/primary. Avoid: selected list or menu options in panels; use action/outline/pressed. */
  --uai-overlay-selected: rgba(255, 255, 255, 0.06);
  /* Theme-aware page background, the base layer behind every screen. Use: app canvas and the area around cards. Pair: content/primary and content/secondary. Avoid: cards, fields and floating panels; use surface/paper. */
  --uai-surface-background: #181a1b;
  /* Theme-aware subtle contrast surface. Use: secondary panels, alternating sections, hovered or selected table rows. Pair: content/primary. Avoid: the page background. */
  --uai-surface-contrast: #2f3437;
  /* Theme-aware inverted surface: dark in Light mode, light in Dark mode. Use: tooltips, snackbars and banners that must stand out from the page. Pair: content/inverse for text and icons. Avoid: large areas. */
  --uai-surface-inverse: #f2f3f3;
  /* Theme-aware muted surface. Use: chips, tags, code blocks, table headers, input adornment boxes and the avatar initials background. Pair: content/secondary for text and icons. */
  --uai-surface-muted: #2f3437;
  /* Theme-aware main container surface. Use: cards, modals, popovers, dropdown panels, drawers, input fields and the app header. Pair: content/* tokens; add an elevation style when it floats. Avoid: the page canvas; use surface/background. */
  --uai-surface-paper: #242729;
  color-scheme: dark;
}
