/* Win / loss (--ok / --bad): saturated, and far apart in lightness (a light green, a darker red) so they read apart
   even with red-green colour blindness. Look → "Colour-blind friendly colours" switches them to blue / orange. */
/* Shehu's Coaching Hub — the design tokens every page shares: fonts, corner radius, colours (light, dark, forced dark).
   Each workspace's brand (shared/brand.js) overrides --acc, --acc2, --acc-b, --soft, --on, --fh, --fb and --r at run time.
   Printing always uses the light colours (the pages set data-theme="light" before printing). */
:root{--fh:"Space Grotesk",system-ui,sans-serif;--fb:"DM Sans",system-ui,sans-serif;--r:16px;--acc-b:#278200;--on:#fff;--bg:#f5f7fb;--card:#fff;--ink:#0c1e3b;--mute:#61708a;--line:#e0e7f1;--acc:#777700;--acc2:#3a3a00;--soft:#fcfce8;--gold:#9a6a0a;--goldbg:#fdf5e1;--bad:#c81e2c;--badbg:#fdecee;--ok:#0e8a42;--okbg:#e6f5ee;
box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--on:#0a1424;--bg:#0a1424;--card:#101e35;--ink:#e8eefb;--mute:#8fa1c0;--line:#1f3152;--acc:#ffff96;--acc2:#ffffd3;--soft:#3f3f1c;--gold:#e5b95a;--goldbg:#2d2512;--bad:#ec2f3f;--badbg:#341a20;--ok:#3fe07f;--okbg:#12301f}}
:root[data-theme="dark"]{--on:#0a1424;--bg:#0a1424;--card:#101e35;--ink:#e8eefb;--mute:#8fa1c0;--line:#1f3152;--acc:#ffff96;--acc2:#ffffd3;--soft:#3f3f1c;--gold:#e5b95a;--goldbg:#2d2512;--bad:#ec2f3f;--badbg:#341a20;--ok:#3fe07f;--okbg:#12301f}
/* Colour-blind friendly colours (Look → Colours, per device: localStorage "hub.cb", html[data-cb]): blue for good / win,
   orange for bad / loss (Okabe–Ito), which read apart with any kind of colour blindness. !important beats the skins. */
:root[data-cb]{--ok:#0b6fb8!important;--okbg:#e3f0fa!important;--bad:#c45a00!important;--badbg:#fcefe3!important}
@media (prefers-color-scheme:dark){:root[data-cb]:not([data-theme="light"]){--ok:#5ab4f0!important;--okbg:#10283d!important;--bad:#f0a030!important;--badbg:#3a2810!important}}
:root[data-cb][data-theme="dark"],:root[data-cb][data-skin="carbon"]:not([data-theme="light"]){--ok:#5ab4f0!important;--okbg:#10283d!important;--bad:#f0a030!important;--badbg:#3a2810!important}
/* losses also get stripes, so a square does not depend on its colour alone */
:root[data-cb] .mu-sq .l{background-image:repeating-linear-gradient(135deg,rgba(0,0,0,.4) 0 2px,transparent 2px 4px)}:root[data-cb] .itz-g.l{border-left-style:dotted;border-left-width:4px}
:root[data-cb]{--win:var(--ok)!important;--loss:var(--bad)!important}

/* the app logo (cream notebook, yellow page): its colours inverted on a light theme and on paper */
:root[data-theme="light"] .applogo{filter:invert(1)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]):not([data-skin="carbon"]) .applogo{filter:invert(1)}}
@media print{.applogo{filter:invert(1)}}
