/* Shared application tokens. Load before panel-foundation.css. */
:root {
  --traffic-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 4.5 3.5 3 3.5-3' fill='none' stroke='%2362666d' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  color-scheme: light;
  --canvas: #f7f7f8;
  --surface: #ffffff;
  --surface-muted: #fafafa;
  --sidebar-surface: #fbfbfb;
  --surface-subtle: #f4f4f5;
  --surface-hover: #f4f4f5;
  --surface-active: #eef4ff;
  /* Preserve the approved light palette while giving legacy component roles
     explicit dark counterparts. Geometry and interaction colors are unchanged. */
  --surface-control: #f0f0f1;
  --surface-striped: #f8f8f9;
  --surface-footer: #fcfcfc;
  --surface-selection: #edf3ff;
  --surface-info: #edf4ff;
  --surface-observe: #f0f4fa;
  --surface-off: #f4f4f5;
  --surface-selected-option: #f6f9ff;
  --surface-note: #f4f7fb;
  --surface-drawer-footer: rgba(255, 255, 255, 0.96);
  --surface-warning-note: #fff8e8;
  --text-detail: #354154;
  --text-neutral-status: #586373;
  --text-request-method: #526174;
  --text-technical-link: #2457b7;
  --text-plan-pro: #3f3690;
  --surface-neutral-status: #edf0f4;
  --surface-prototype: #e9edf3;
  --border-prototype: #d6dce5;
  --text-explanation: #4d5562;
  --text-icon: #465365;
  --text-selection: #174cb6;
  --text-chip: #334155;
  --text-chip-remove: #6a7890;
  --text-info: #315a9d;
  --text-placement: #244f95;
  --text-observe: #41608a;
  --text-off-icon: #555e69;
  --text-plan: #34527b;
  --text-status-success: #146c54;
  --text-warning-note: #6f4a00;
  --text-expiry-note: #694a08;
  --text-danger-feedback: #9b2c22;
  --border-subtle: #eceef0;
  --border-detail: #edf0f3;
  --border-chip: #cad9fa;
  --border-info: #cfddf4;
  --border-note: #dae4f0;
  --text: #202124;
  --text-soft: #62666d;
  --text-faint: #858b94;
  --border: #e3e4e7;
  --border-strong: #d2d5d9;
  --accent: #0867f2;
  --accent-hover: #075bd6;
  --brand: #dd4124;
  --allow: #0f8a68;
  --allow-bg: #e9f7f2;
  --block: #c62920;
  --block-bg: #fdf0ef;
  --challenge: #a56500;
  --challenge-bg: #fff5db;
  --rate: #5b4bc4;
  --rate-bg: #f1efff;
  --error: #a61b1b;
  --error-bg: #fff0f0;
  --shadow-popover: 0 16px 40px rgba(32, 33, 36, 0.15);
  --sidebar-width: 258px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #111418;
  --surface: #1b2027;
  --surface-muted: #171b20;
  --sidebar-surface: #15191e;
  --surface-subtle: #242a32;
  --surface-hover: #282f38;
  --surface-active: #17345f;
  --surface-control: #242a32;
  --surface-striped: #171b20;
  --surface-footer: #171b20;
  --surface-selection: #17345f;
  --surface-info: #17345f;
  --surface-observe: #17345f;
  --surface-off: #242a32;
  --surface-selected-option: #17345f;
  --surface-note: #242a32;
  --surface-drawer-footer: #1b2027;
  --surface-warning-note: #463613;
  --text-detail: #b8c0cb;
  --text-neutral-status: #b8c0cb;
  --text-request-method: #b8c0cb;
  --text-technical-link: #93bdff;
  --text-plan-pro: #c5b8ff;
  --surface-neutral-status: #242a32;
  --surface-prototype: #242a32;
  --border-prototype: #323943;
  --success-icon-ink: #79dbb8;
  --success-icon-bg: #123c33;
  --danger-icon-ink: #ffaaa3;
  --danger-icon-bg: #482421;
  --danger-border: #754541;
  --warning-border: #695424;
  --selection-border: #46515d;
  --danger-text: #ffaaa3;
  --text-explanation: #b8c0cb;
  --text-icon: #b8c0cb;
  --text-selection: #93bdff;
  --text-chip: #c6dbff;
  --text-chip-remove: #b8c0cb;
  --text-info: #93bdff;
  --text-placement: #93bdff;
  --text-observe: #93bdff;
  --text-off-icon: #b8c0cb;
  --text-plan: #c6dbff;
  --text-status-success: #79dbb8;
  --text-warning-note: #f0c264;
  --text-expiry-note: #f0c264;
  --text-danger-feedback: #ffaaa3;
  --border-subtle: #323943;
  --border-detail: #323943;
  --border-chip: #46515d;
  --border-info: #46515d;
  --border-note: #46515d;
  /* Text-only accent: primary button fills and chart series retain --accent. */
  --accent-ink: #93bdff;
  --text: #f2f4f7;
  --text-soft: #b8c0cb;
  --text-faint: #8e99a7;
  --border: #323943;
  --border-strong: #46515d;
  --allow-bg: #123c33;
  --allow: #79dbb8;
  --block-bg: #482421;
  --block: #ffaaa3;
  --challenge-bg: #463613;
  --challenge: #f0c264;
  --rate-bg: #302b58;
  --rate: #c5b8ff;
  --error-bg: #492425;
  --error: #ffaaa3;
  --shadow-popover: 0 16px 40px rgba(0, 0, 0, 0.42);
}
