/* Generated from shared/tokens.js — do not edit by hand */

/**
 * ARC UI — High Contrast Theme Preset
 *
 * Import AFTER base.css. Every foreground below clears 7:1 against its own
 * ground, and that is checked rather than claimed: the palettes are solved by
 * the same contrast contract as the four shipped schemes, and `pnpm generate`
 * fails if a target cannot be reached without leaving the color's hue.
 *
 * The hand-written file this replaces carried the same claim in its header and
 * missed it in ten of thirty pairings — text-ghost, error and accent-secondary
 * in both schemes, and success and warning in light mode at 4.87 and 4.86,
 * which is AA and nothing more.
 *
 * Usage:
 *   @import '@arclux/arc-ui/base.css';
 *   @import '@arclux/arc-ui/themes/high-contrast';
 */

:root {
  --bg-deep: rgb(0, 0, 0);
  --bg-surface: rgb(5, 5, 8);
  --bg-base: rgb(5, 5, 8);
  --bg-card: rgb(10, 10, 14);
  --bg-elevated: rgb(18, 18, 24);
  --text-primary: rgb(254, 254, 255);
  --text-secondary: rgb(166, 168, 178);
  --text-muted: rgb(157, 157, 170);
  --text-ghost: rgb(148, 148, 169);
  --accent-primary: rgb(95, 146, 255);
  --accent-secondary: rgb(169, 125, 255);
  --color-success: rgb(52, 211, 153);
  --color-error: rgb(255, 94, 90);
  --color-warning: rgb(245, 158, 11);
  --color-info: rgb(77, 149, 255);
  --border-subtle: rgb(51, 51, 58);
  --border-default: rgb(71, 71, 79);
  --border-bright: rgb(101, 101, 116);
  --accent-primary-rgb: 95, 146, 255;
  --accent-secondary-rgb: 169, 125, 255;
  --text-primary-rgb: 254, 254, 255;
  --text-muted-rgb: 157, 157, 170;
  --border-default-rgb: 71, 71, 79;
  --color-success-rgb: 52, 211, 153;
  --color-error-rgb: 255, 94, 90;
  --color-warning-rgb: 245, 158, 11;
  --color-info-rgb: 77, 149, 255;
  --bg-hover: rgba(255, 255, 255, 0.08);

  --focus-ring: 0 0 0 3px var(--accent-primary);
  --focus-glow: 0 0 0 3px var(--accent-primary), 0 0 0 5px rgba(var(--accent-primary-rgb), 0.4);
  --interactive-focus: 0 0 0 3px var(--interactive), 0 0 0 5px rgba(var(--interactive-rgb), 0.4);
  --interactive-focus-ring: 0 0 0 3px var(--interactive);
  --feedback-error-glow: 0 0 16px rgba(var(--color-error-rgb), 0.25);
  --feedback-success-glow: 0 0 16px rgba(var(--color-success-rgb), 0.25);
  --feedback-warning-glow: 0 0 16px rgba(var(--color-warning-rgb), 0.25);
  --feedback-info-glow: 0 0 16px rgba(var(--color-info-rgb), 0.25);
  --touch-min: 36px;
  --touch-pad: 6px;
}

[data-theme='light'] {
  --bg-deep: rgb(255, 255, 255);
  --bg-surface: rgb(250, 250, 252);
  --bg-base: rgb(250, 250, 252);
  --bg-card: rgb(255, 255, 255);
  --bg-elevated: rgb(240, 240, 245);
  --text-primary: rgb(2, 1, 13);
  --text-secondary: rgb(71, 73, 93);
  --text-muted: rgb(78, 80, 100);
  --text-ghost: rgb(84, 87, 109);
  --accent-primary: rgb(31, 76, 205);
  --accent-secondary: rgb(105, 50, 211);
  --color-success: rgb(0, 102, 72);
  --color-error: rgb(176, 24, 29);
  --color-warning: rgb(124, 79, 0);
  --color-info: rgb(22, 83, 185);
  --border-subtle: rgb(198, 200, 206);
  --border-default: rgb(168, 172, 180);
  --border-bright: rgb(130, 134, 144);
  --accent-primary-rgb: 31, 76, 205;
  --accent-secondary-rgb: 105, 50, 211;
  --text-primary-rgb: 2, 1, 13;
  --text-muted-rgb: 78, 80, 100;
  --border-default-rgb: 168, 172, 180;
  --color-success-rgb: 0, 102, 72;
  --color-error-rgb: 176, 24, 29;
  --color-warning-rgb: 124, 79, 0;
  --color-info-rgb: 22, 83, 185;
  --bg-hover: rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: light) {
  [data-theme='auto'] {
    --bg-deep: rgb(255, 255, 255);
    --bg-surface: rgb(250, 250, 252);
    --bg-base: rgb(250, 250, 252);
    --bg-card: rgb(255, 255, 255);
    --bg-elevated: rgb(240, 240, 245);
    --text-primary: rgb(2, 1, 13);
    --text-secondary: rgb(71, 73, 93);
    --text-muted: rgb(78, 80, 100);
    --text-ghost: rgb(84, 87, 109);
    --accent-primary: rgb(31, 76, 205);
    --accent-secondary: rgb(105, 50, 211);
    --color-success: rgb(0, 102, 72);
    --color-error: rgb(176, 24, 29);
    --color-warning: rgb(124, 79, 0);
    --color-info: rgb(22, 83, 185);
    --border-subtle: rgb(198, 200, 206);
    --border-default: rgb(168, 172, 180);
    --border-bright: rgb(130, 134, 144);
    --accent-primary-rgb: 31, 76, 205;
    --accent-secondary-rgb: 105, 50, 211;
    --text-primary-rgb: 2, 1, 13;
    --text-muted-rgb: 78, 80, 100;
    --border-default-rgb: 168, 172, 180;
    --color-success-rgb: 0, 102, 72;
    --color-error-rgb: 176, 24, 29;
    --color-warning-rgb: 124, 79, 0;
    --color-info-rgb: 22, 83, 185;
    --bg-hover: rgba(0, 0, 0, 0.06);
  }
}
