/* CAX visual system v1.1.0. Product/data colors are intentionally excluded. */
:root {
  --cax-font-ui: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  --cax-font-mono: Consolas, "Cascadia Code", monospace;
  --cax-font-size: 13px;
  --cax-space-1: 4px;
  --cax-space-2: 8px;
  --cax-space-3: 12px;
  --cax-space-4: 16px;
  --cax-radius: 4px;
  --cax-control-height: 28px;
  --cax-touch-height: 40px;
  --cax-title-height: 36px;
}
:root, :root[data-cax-theme="light"] {
  color-scheme: light;
  --cax-bg: #f3f3f3;
  --cax-panel: #f8f8f8;
  --cax-surface: #ffffff;
  --cax-viewport: #ffffff;
  --cax-text: #242424;
  --cax-muted: #616161;
  --cax-disabled: #767676;
  --cax-border: #d4d4d4;
  --cax-control-border: #767676;
  --cax-input: #ffffff;
  --cax-hover: #e8e8e8;
  --cax-selection: #d6ebff;
  --cax-selection-text: #123f6a;
  --cax-accent: #005fb8;
  --cax-button: #005fb8;
  --cax-button-hover: #004f99;
  --cax-button-text: #ffffff;
  --cax-focus: #005fb8;
  --cax-success: #176b35;
  --cax-warning: #805500;
  --cax-error: #b42318;
  --cax-shadow: 0 4px 16px #00000024;
}
:root[data-cax-theme="dark"] {
  color-scheme: dark;
  --cax-bg: #181818;
  --cax-panel: #252526;
  --cax-surface: #1f1f1f;
  --cax-viewport: #1e1e1e;
  --cax-text: #e6e6e6;
  --cax-muted: #b0b0b0;
  --cax-disabled: #858585;
  --cax-border: #454545;
  --cax-control-border: #858585;
  --cax-input: #313131;
  --cax-hover: #383838;
  --cax-selection: #264f78;
  --cax-selection-text: #ffffff;
  --cax-accent: #75beff;
  --cax-button: #0e639c;
  --cax-button-hover: #1177bb;
  --cax-button-text: #ffffff;
  --cax-focus: #3794ff;
  --cax-success: #89d185;
  --cax-warning: #e5c07b;
  --cax-error: #f48771;
  --cax-shadow: 0 4px 16px #00000066;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-cax-theme]) {
    color-scheme: dark;
    --cax-bg: #181818;
    --cax-panel: #252526;
    --cax-surface: #1f1f1f;
    --cax-viewport: #1e1e1e;
    --cax-text: #e6e6e6;
    --cax-muted: #b0b0b0;
    --cax-disabled: #858585;
    --cax-border: #454545;
    --cax-control-border: #858585;
    --cax-input: #313131;
    --cax-hover: #383838;
    --cax-selection: #264f78;
    --cax-selection-text: #ffffff;
    --cax-accent: #75beff;
    --cax-button: #0e639c;
    --cax-button-hover: #1177bb;
    --cax-button-text: #ffffff;
    --cax-focus: #3794ff;
    --cax-success: #89d185;
    --cax-warning: #e5c07b;
    --cax-error: #f48771;
    --cax-shadow: 0 4px 16px #00000066;
  }
}

:root[data-cax-theme="gray"] {
  color-scheme: dark;
  --cax-bg: #34373d;
  --cax-panel: #40444c;
  --cax-surface: #383c43;
  --cax-viewport: #34373d;
  --cax-text: #f0f1f3;
  --cax-muted: #c7cbd1;
  --cax-disabled: #9298a2;
  --cax-border: #626873;
  --cax-control-border: #a0a6b0;
  --cax-input: #454b54;
  --cax-hover: #4b515b;
  --cax-selection: #365d82;
  --cax-selection-text: #ffffff;
  --cax-accent: #94caff;
  --cax-button: #115f99;
  --cax-button-hover: #1474b0;
  --cax-button-text: #ffffff;
  --cax-focus: #90c5ff;
  --cax-success: #b3e4ac;
  --cax-warning: #f2cf8d;
  --cax-error: #ffb9a8;
  --cax-shadow: 0 4px 16px #00000044;
}

:root[data-cax-theme="soft-light"] {
  color-scheme: light;
  --cax-bg: #e9edf2;
  --cax-panel: #f0f3f6;
  --cax-surface: #f6f7f9;
  --cax-viewport: #e9edf2;
  --cax-text: #26313d;
  --cax-muted: #515e6d;
  --cax-disabled: #75808c;
  --cax-border: #c3cbd5;
  --cax-control-border: #6f7b89;
  --cax-input: #f6f7f9;
  --cax-hover: #dbe2ea;
  --cax-selection: #c8dff5;
  --cax-selection-text: #123f6a;
  --cax-accent: #005a9e;
  --cax-button: #1c5f96;
  --cax-button-hover: #174e7c;
  --cax-button-text: #ffffff;
  --cax-focus: #005a9e;
  --cax-success: #176135;
  --cax-warning: #785000;
  --cax-error: #a32424;
  --cax-shadow: 0 4px 16px #00000020;
}
