/* One palette for the whole dashboard, matching the Prism landing page (user via the landing-page session, 12 Nov 2026:
   "dashboard should look similar to landing page in terms of colours", gains and losses stay green and red).
   Landing tokens, "option D" plus a navy button:
     light  page #FAF8F5, band #F5EFEB, panel #F3EDE6, raised card #FFFFFF, line #E3D9CF, soft fill #EFE7DF,
            text #141414 / #3A3A3F / #6B6A70 / #A39E98, accent steel blue #3D6CB3, primary button navy #0F2A4A
     dark   page #0A0A0B, card #171718, line and fill rgba(255,255,255,.07), text #FAFAFA / #D4D4D8 / #A1A1AA / #71717A,
            accent #7FA6E3, primary button #7FA6E3 with #0A0F1A text
   Green and red only for gains and losses; everything else coloured is the steel blue. No coral anywhere.
   Loaded last in <head>; the tokens are !important and set on body too, because pages re-declare them on body and on
   body.sv-shell:has(...). Tabs keep their grey soft fill (never blue); the sidebar keeps the warm band. */
:root,html body,html body.sv-shell{
  --tech-blue:#3D6CB3!important;--ice-blue:#E3ECF7!important;--rich-black:#141414!important;--sapphire:#0F2A4A!important;
  --page:#FAF8F5!important;--bg:#FAF8F5!important;--sidebar:#F5EFEB!important;--surface:#FFFFFF!important;--soft:#F3EDE6!important;
  --hover:#EFE7DF!important;--selected:#EFE7DF!important;--border:#E3D9CF!important;--ring:#EFE7DF!important;
  --text:#141414!important;--secondary:#3A3A3F!important;--muted:#6B6A70!important;--disabled:#A39E98!important;
  --accent:#3D6CB3!important;--accent-text:#3D6CB3!important;
  --sv-shell:#F5EFEB!important;--sv-pane:#FAF8F5!important;--sv-pane-line:#E3D9CF!important;--sv-active:#EAE1D8!important;--sv-hover:#EFE7DF!important;
  --pui-send-bg:#0F2A4A!important;--pui-send-ink:#FFFFFF!important;
  --pv-accent:#3D6CB3!important;--pv-actual:#3D6CB3!important;--pv-cat-0:#3D6CB3!important;--pv-seq-7:#3D6CB3!important;
  --pv-pos:#15803D!important;--pv-neg:#C33B49!important;
  --pl-bg:#FAF8F5;--pl-line:#E3D9CF;--pl-ink:#141414;--pl-muted:#6B6A70}
:root[data-theme=dark],html[data-theme=dark] body,html[data-theme=dark] body.sv-shell{
  --tech-blue:#7FA6E3!important;--ice-blue:#1B2638!important;--rich-black:#0A0A0B!important;--sapphire:#0A0A0B!important;
  --page:#0A0A0B!important;--bg:#0A0A0B!important;--sidebar:#0A0A0B!important;--surface:#171718!important;--soft:#121213!important;
  --hover:rgba(255,255,255,.07)!important;--selected:rgba(255,255,255,.09)!important;--border:rgba(255,255,255,.09)!important;--ring:rgba(255,255,255,.07)!important;
  --text:#FAFAFA!important;--secondary:#D4D4D8!important;--muted:#A1A1AA!important;--disabled:#71717A!important;
  --accent:#7FA6E3!important;--accent-text:#7FA6E3!important;
  --sv-shell:#0A0A0B!important;--sv-pane:#0A0A0B!important;--sv-pane-line:rgba(255,255,255,.07)!important;--sv-active:rgba(255,255,255,.09)!important;--sv-hover:rgba(255,255,255,.06)!important;
  --pui-send-bg:#7FA6E3!important;--pui-send-ink:#0A0F1A!important;
  --pv-accent:#7FA6E3!important;--pv-actual:#7FA6E3!important;--pv-cat-0:#7FA6E3!important;--pv-seq-7:#7FA6E3!important;
  --pv-pos:#4ADE80!important;--pv-neg:#F87171!important;
  --pl-bg:#171718;--pl-line:rgba(255,255,255,.09);--pl-ink:#FAFAFA;--pl-muted:#A1A1AA;--pl-sk:#232325}
/* Surfaces that pages paint directly rather than through the tokens. */
html:not([data-theme=dark]) body aside,html:not([data-theme=dark]) body.sv-shell aside{background:#F5EFEB}
html:not([data-theme=dark]) body.sv-shell aside .mode{background:#EAE1D8}
html[data-theme=dark] body aside{background:#0A0A0B}
html[data-theme=dark] body.sv-shell aside .mode{background:rgba(255,255,255,.07)}
/* Coral is gone: the Company landing's dark icon tiles go back to the dark navy with a light icon. */
html[data-theme=dark],html[data-theme=dark] #company-view,html[data-theme=dark] :is(#page-monitors,#page-alerts,#page-digests,#page-data,.mc-host){
  --cl-ico-bg:#1B3F6B!important;--hm-ico-bg:#1B3F6B!important;--hm-ico-ink:#F5EFEB!important;--mcalm-ico-bg:#1B3F6B!important}
html[data-theme=dark] body.sv-on .svn-col-head .sv-ico{background:#1B3F6B!important}
/* Chart palettes rebuilt around the steel blue (12 Nov 2026: theme pages still showed amber, bright blue and coral). */
:root,html body{
  --pv-accent-2:#8FB0DE!important;--pv-est:#8FB0DE!important;--pv-band:#EEF2F8!important;--pv-slate:#6B7A90!important;--pv-total:#0F2A4A!important;
  --pv-cat-0:#3D6CB3!important;--pv-cat-1:#8FB0DE!important;--pv-cat-2:#0F2A4A!important;--pv-cat-3:#5E86C4!important;--pv-cat-4:#A9B8CC!important;--pv-cat-5:#6B7A90!important;--pv-cat-6:#2B5591!important;--pv-cat-7:#C4D3EA!important;
  --pv-seq-0:#F1F5FB!important;--pv-seq-1:#DCE6F4!important;--pv-seq-2:#C3D4EC!important;--pv-seq-3:#A3BCE2!important;--pv-seq-4:#7F9FD3!important;--pv-seq-5:#5E86C4!important;--pv-seq-6:#4A74B9!important;--pv-seq-7:#3D6CB3!important;--pv-seq-8:#1F3F73!important;
  --pv-blue-0:#1F3F73!important;--pv-blue-1:#3D6CB3!important;--pv-blue-2:#6E93CC!important;--pv-blue-3:#9DB6DC!important;--pv-blue-4:#A9B8CC!important;
  --pv-good:#15803D!important;--pv-bad:#C33B49!important;--pv-red:#C33B49!important}
:root[data-theme=dark],html[data-theme=dark] body{
  --pv-accent-2:#4E78BC!important;--pv-est:#A3BFEA!important;--pv-band:#1B2638!important;--pv-slate:#8C96A8!important;--pv-total:#D4D4D8!important;
  --pv-cat-0:#7FA6E3!important;--pv-cat-1:#4E78BC!important;--pv-cat-2:#C9DAF3!important;--pv-cat-3:#3D6CB3!important;--pv-cat-4:#A3BFEA!important;--pv-cat-5:#8C96A8!important;--pv-cat-6:#5E86C4!important;--pv-cat-7:#6B7A90!important;
  --pv-seq-0:#C9DAF3!important;--pv-seq-1:#B1C8EC!important;--pv-seq-2:#97B5E5!important;--pv-seq-3:#7FA6E3!important;--pv-seq-4:#6690D6!important;--pv-seq-5:#4F7CC8!important;--pv-seq-6:#3D6CB3!important;--pv-seq-7:#2F5895!important;--pv-seq-8:#22426F!important;
  --pv-blue-0:#C9DAF3!important;--pv-blue-1:#7FA6E3!important;--pv-blue-2:#5E86C4!important;--pv-blue-3:#3D6CB3!important;--pv-blue-4:#8C96A8!important;
  --pv-good:#4ADE80!important;--pv-bad:#F87171!important;--pv-red:#F87171!important}
/* Dark icon tiles that pages set themselves (Charts, Screener, Strategy Lab) follow the same navy. */
html[data-theme=dark] #page-charts{--ch-ico-bg:#1B3F6B!important}
html[data-theme=dark] #screener-view{--scr-ico-bg:#1B3F6B!important}
/* No colour glows or gradient washes behind content. */
:root[data-theme=dark] #home-view{background:none}
