/* Default theme tokens (the QW theme contract: Material 3 roles). This is the ONLY file in the kit that
   names colors. A host that loads qw-display-widgets' theme.js, or any other source of these variables on
   <html>, overrides these (inline style beats :root). Everything else in the kit reads var(--role). */
:root, :root[data-theme="light"] {
  --surface: #ffffff; --on-surface: #1b1f24;
  --surface-container-low: #f4f6f8; --surface-container: #ffffff; --surface-hover: #eaeef2;
  --on-surface-variant: #5b6672;
  --outline: #d5dbe1; --outline-strong: #9aa5b1;
  --primary: #1f5fa8; --on-primary: #ffffff; --primary-container: #d6e6f8; --on-primary-container: #0b2e55;
  --ok: #1a7f37; --ok-container: #dcf3e2; --on-ok-container: #0f4a21;
  --warn: #9a6700; --warn-container: #fff1cc; --on-warn-container: #5c3d00;
  --error: #c62828; --on-error: #ffffff; --error-container: #fde0e0; --on-error-container: #6e1010;
  --info: #1f5fa8; --info-container: #dbeafe; --on-info-container: #0b2e55;
  --ask-container: #ece1f8; --on-ask-container: #3a1a68;
  --kbd-bg: #eceff2; --kbd-fg: #1b1f24; --kbd-border: #9aa5b1;     /* key caps stay gray in both modes */
  --shadow: rgba(20, 30, 40, .18);
  --radius-md: 6px; --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --series-1: #e63333; --series-2: #2e77e5; --series-3: #118d11; --series-4: #c35d18;
  --series-5: #8a60eb; --series-6: #20887e; --series-7: #c233e6; --series-8: #917812;
  --highlight: #e63333;
  --plot-voltage: #0072b2; --plot-current: #e07000; --plot-fade: #c3cad2; --ruler-a: #d6249f; --ruler-b: #d6249f;   /* colorblind safe: blue and orange; both rulers magenta (A solid, B dashed) */
  --glyph-ok: #2e9e4f; --glyph-error: #d93a3a; --glyph-info: #2f7fe0; --glyph-warn: #f2c200; --glyph-ask: #7b3fc4; --glyph-mark: #ffffff; --glyph-mark-warn: #000000;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --surface: #0f141b; --on-surface: #e6eaee;
  --surface-container-low: #151b23; --surface-container: #1a212b; --surface-hover: #232c38;
  --on-surface-variant: #9aa6b2;
  --outline: #2c3643; --outline-strong: #4a5766;
  --primary: #5aa0f0; --on-primary: #06182e; --primary-container: #17375e; --on-primary-container: #cfe3fb;
  --ok: #4cc26b; --ok-container: #123a1f; --on-ok-container: #c5f0d1;
  --warn: #e0a526; --warn-container: #3d2e08; --on-warn-container: #f7e0a8;
  --error: #f26b6b; --on-error: #2a0707; --error-container: #4a1717; --on-error-container: #fcd0d0;
  --info: #5aa0f0; --info-container: #17375e; --on-info-container: #cfe3fb;
  --ask-container: #3a2763; --on-ask-container: #e4d5fa;
  --kbd-bg: #3a4350; --kbd-fg: #e6eaee; --kbd-border: #5d6b7c;
  --shadow: rgba(0, 0, 0, .5);
  --highlight: #ff5a5a;
  --plot-voltage: #56b4e9; --plot-current: #f5a03c; --plot-fade: #4a5766; --ruler-a: #ff5fcf; --ruler-b: #ff5fcf;
  --glyph-ok: #35b058; --glyph-error: #e24b4b; --glyph-info: #3f8ae6; --glyph-warn: #f2c200; --glyph-ask: #a374e6; --glyph-mark: #ffffff; --glyph-mark-warn: #000000;
  color-scheme: dark;
}
