/* Shared UI roles. The existing appearance switch and saved choice own the mode. */
:root {
 --fhi-ui-bg:var(--fhi-bg,#071527);--fhi-ui-panel:var(--fhi-surface,#101d2d);
 --fhi-ui-raised:var(--fhi-raised,#17283c);--fhi-ui-line:var(--fhi-border,#294056);
 --fhi-ui-text:var(--fhi-text,#f2f7fc);--fhi-ui-soft:#ccdae7;--fhi-ui-muted:var(--fhi-muted,#9eb4c8);
 --fhi-ui-accent:var(--fhi-accent,#56ddba);--fhi-ui-on-accent:#082c25;
 --fhi-ui-positive:#80deb0;--fhi-ui-danger:#ffa5b1;--fhi-ui-warning:#f0cc80;--fhi-ui-info:#8fc9ee;
 --fhi-ui-positive-tint:#142f29;--fhi-ui-danger-tint:#372330;--fhi-ui-warning-tint:#342d20;--fhi-ui-info-tint:#172e43;--fhi-ui-accent-tint:#16332f;
 --fhi-ui-positive-line:#376b52;--fhi-ui-danger-line:#805060;--fhi-ui-warning-line:#806b3f;--fhi-ui-info-line:#3b657c;--fhi-ui-accent-line:#39796c;
 --fhi-ui-wash:rgba(169,194,216,.075);
}
:root[data-fhi-mode="light"] {
 --fhi-ui-soft:#314e66;--fhi-ui-on-accent:#fff;
 --fhi-ui-positive:#17683f;--fhi-ui-danger:#a62943;--fhi-ui-warning:#80520b;--fhi-ui-info:#176493;
 --fhi-ui-positive-tint:#e8f4ed;--fhi-ui-danger-tint:#faedf0;--fhi-ui-warning-tint:#fff5de;--fhi-ui-info-tint:#e9f2fa;--fhi-ui-accent-tint:#e3f3ef;
 --fhi-ui-positive-line:#a3cbb5;--fhi-ui-danger-line:#d7a7b2;--fhi-ui-warning-line:#d4b778;--fhi-ui-info-line:#a6c4d8;--fhi-ui-accent-line:#96c7bc;
 --fhi-ui-wash:rgba(26,58,82,.045);
}
/* Low-specificity defaults let meaningful component/status colors win. */
body.fhi-design :where(.fph2-home,.fph2-player-page,.fph2-team-page,.fph2-teams-page,.fph2-radar-page,.fph2-scout-v2,.fph2-compare-page,.fph2-premium-beta,.fph2-my-players,.fph2-deployment-watch,.fph2-decisions,.fph2-mp-page,.fhip-wrap,.fph2-events-page,.fph2-articles-page,.fph2-article-single,.fph2-game-center) :where(h1,h2,h3,h4,h5,h6) {color:var(--fhi-ui-text)}
