/* [rdxlight-20261114] RDX-14b (pack 2727; canvas decisions 194 and 199, board "Light Theme · Palette And Contrast"): the redesign's
   colour tokens, dark and light. A template names a token, never a colour. The names are the same in both themes.
   Dark is the default and the only theme while THEME_LIGHT is off: the light rules need data-theme-light="on" on <html>, which only
   backend/lib/rdx-theme.js writes, and only when the switch is on. With it on, data-theme="auto" follows the device
   (prefers-color-scheme) and data-theme="light" | "dark" is the reader's own choice (public/js/tactix-theme.js).
   The two light blocks below must stay identical; tools/qa/theme-contrast.js reds when they differ, and measures every pair
   (text 4.5 to 1, controls and chart marks 3 to 1) in both themes. One declaration a line: the gate reads this file. */
:root,html[data-theme="dark"]{
color-scheme:dark;
--rx-page:#0B0D13;
--rx-surface:#0F1219;
--rx-card:#171B27;
--rx-divider:#252D42;
--rx-control-border:#5B6B8F;
--rx-text:#EEF2FF;
--rx-text-2:#9AA6C2;
--rx-accent:#00D4A8;
--rx-accent-text:#00D4A8;
--rx-accent-line:#00D4A8;
--rx-pro:#FFB627;
--rx-missed:#FF5A78;
--rx-team-tint:#12332E;
--rx-on-accent:#0B0D13;
--rx-pro-line:#FFB627;
--rx-return-tint:var(--rx-team-tint);
}
@media (prefers-color-scheme:light){
html[data-theme-light="on"][data-theme="auto"]{
color-scheme:light;
--rx-page:#F7F8FB;
--rx-surface:#FFFFFF;
--rx-card:#EEF1F7;
--rx-divider:#DCE1EC;
--rx-control-border:#6B7A99;
--rx-text:#10131C;
--rx-text-2:#4A5670;
--rx-accent:#00D4A8;
--rx-accent-text:#00705B;
--rx-accent-line:#00866D;
--rx-pro:#855600;
--rx-missed:#B4233F;
--rx-team-tint:#D6F5EE;
--rx-on-accent:#0B0D13;
--rx-pro-line:#A86A00;
--rx-return-tint:var(--rx-team-tint);
}
}
html[data-theme-light="on"][data-theme="light"]{
color-scheme:light;
--rx-page:#F7F8FB;
--rx-surface:#FFFFFF;
--rx-card:#EEF1F7;
--rx-divider:#DCE1EC;
--rx-control-border:#6B7A99;
--rx-text:#10131C;
--rx-text-2:#4A5670;
--rx-accent:#00D4A8;
--rx-accent-text:#00705B;
--rx-accent-line:#00866D;
--rx-pro:#855600;
--rx-missed:#B4233F;
--rx-team-tint:#D6F5EE;
--rx-on-accent:#0B0D13;
--rx-pro-line:#A86A00;
--rx-return-tint:var(--rx-team-tint);
}
