/* The investments page's one stylesheet (card 2026-12-04-cc-015). Palette and marks from the agreed
   mock-up (investments-notes/mockup-01.html, validated palette); light and dark from the system setting.
   Served from this origin only (the policy's style-src 'self'); no font from another host. */
:root{
  color-scheme:light;
  --page:#f4f3f0; --surface:#fcfcfb; --line:#e3e1dc; --grid:#ebe9e4;
  --ink:#0b0b0b; --ink2:#52514e; --ink3:#86847e; --neutral:#dddbd5;
  --s1:#2a78d6; --s2:#eb6834; --s3:#1baf7a; --s4:#eda100; --s5:#e87ba4;
  --below:#2a78d6; --above:#e34948; --warn:#fab219; --isa:#2a78d6; --pension:#7fb0ec;
}
@media (prefers-color-scheme:dark){
  :root{
    color-scheme:dark;
    --page:#111110; --surface:#1a1a19; --line:#30302d; --grid:#272725;
    --ink:#f0efec; --ink2:#c3c2b7; --ink3:#8d8c84; --neutral:#3d3d39;
    --s1:#3987e5; --s2:#d95926; --s3:#199e70; --s4:#c98500; --s5:#d55181;
    --below:#3987e5; --above:#e66767; --isa:#3987e5; --pension:#245a9a;
  }
}
*{box-sizing:border-box}
body{margin:0;background:var(--page);color:var(--ink);font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-variant-numeric:tabular-nums}
.wrap{max-width:1240px;margin:0 auto;padding:16px}
[hidden]{display:none !important}
h1{font-size:22px;margin:0 0 2px}
h2{font-size:15px;margin:0 0 2px}
.sub{color:var(--ink2);font-size:13px;margin:0 0 10px;overflow-wrap:anywhere}
.note{color:var(--ink2);font-size:12.5px;margin:6px 0 0;overflow-wrap:anywhere}
.titlebar{display:flex;justify-content:space-between;align-items:center;gap:10px}
.state{font-weight:600;color:var(--ink)}
.state.failed{color:var(--above)}
.lockbox{max-width:360px;margin:12vh auto 0;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:20px}
.lockbox form{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.lockbox input{font:inherit;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--page);color:var(--ink)}
.lockbox button{font:inherit;padding:8px 10px;border:0;border-radius:8px;background:var(--ink);color:var(--surface);cursor:pointer}
#status{color:var(--ink2);min-height:1.4em}
.card{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px;margin-bottom:14px;min-width:0}
.filters{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;margin:10px 0 14px}
.fgroup{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.flabel{color:var(--ink2);font-size:12px;margin-right:2px}
.chip{font:inherit;font-size:13px;border:1px solid var(--line);background:var(--surface);color:var(--ink2);border-radius:999px;padding:4px 11px;cursor:pointer}
.chip.on{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.tiles{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:14px;margin-bottom:14px}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:14px 16px;min-width:0}
.tile .k{color:var(--ink2);font-size:12px}
.tile .v{font-size:22px;font-weight:650;margin-top:2px;overflow-wrap:anywhere}
.tile.big .v{font-size:34px}
.tile .n{color:var(--ink2);font-size:12px;margin-top:2px}
.two{display:grid;grid-template-columns:2fr 1fr;gap:14px}
.three{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
svg{display:block;width:100%;height:auto;overflow:visible}
svg text{fill:var(--ink2);font-size:11px;font-family:inherit}
.chart .grid{stroke:var(--grid);stroke-width:1}
.area{stroke:none}
.area.faded{opacity:.35}
.t-cash{fill:var(--s1);background:var(--s1);stroke:var(--s1)}
.t-funds{fill:var(--s2);background:var(--s2);stroke:var(--s2)}
.t-shares{fill:var(--s3);background:var(--s3);stroke:var(--s3)}
.t-crypto{fill:var(--s4);background:var(--s4);stroke:var(--s4)}
.paid{fill:none;stroke:var(--ink);stroke-width:1.6;stroke-dasharray:5 4}
.incomplete{fill:var(--neutral);opacity:.55}
.incomplete-key{background:var(--neutral)}
.incomplete-pt{fill:var(--surface);stroke:var(--ink);stroke-width:1.5}
.legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:6px 0 4px;color:var(--ink2);font-size:12.5px}
.sw{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.dash{display:inline-block;width:16px;border-top:2px dashed var(--ink);margin-right:6px;vertical-align:3px}
.alloc{display:grid;grid-template-columns:130px 1fr;gap:14px;align-items:center}
.donut{max-width:130px}
.ring-bg{fill:none;stroke:var(--neutral);stroke-width:7}
.ring{fill:none;stroke-width:7}
.alist{list-style:none;margin:0;padding:0}
.alist li{display:flex;justify-content:space-between;gap:10px;padding:3px 0;border-bottom:1px solid var(--grid)}
.alist li span:last-child{color:var(--ink2);text-align:right}
.watch{display:grid;grid-template-columns:170px minmax(0,1fr) 330px;gap:0 14px;align-items:center}
.wrow{display:contents}
.watch .name{font:inherit;font-weight:600;text-align:left;background:none;border:0;color:var(--ink);padding:6px 0;cursor:pointer}
.watch .name small{display:block;font-weight:400;color:var(--ink2)}
.watch .txt{color:var(--ink2);font-size:13px;padding:4px 0}
.watch .txt b{color:var(--ink)}
.wsep{grid-column:1/-1;border-top:1px solid var(--grid);margin:2px 0}
.pline{grid-column:1/-1;padding:4px 0 8px}
.rb{display:grid;grid-template-columns:6.5em minmax(80px,1fr) 6.5em;gap:8px;align-items:center;font-size:12.5px;color:var(--ink2)}
.rb .lo{text-align:right;white-space:nowrap}
.rb .hi{white-space:nowrap}
.rangebar .range{fill:var(--neutral)}
.rangebar .saleline{stroke:var(--ink);stroke-width:2}
.dot.below{fill:var(--below);stroke:var(--surface);stroke-width:1.5}
.dot.above{fill:var(--above);stroke:var(--surface);stroke-width:1.5}
.refline{stroke:var(--ink3);stroke-width:1;stroke-dasharray:4 3}
.pricepath{fill:none;stroke:var(--s1);stroke-width:2}
.badge{display:inline-block;margin-left:6px;padding:0 7px;border-radius:999px;background:var(--warn);color:#0b0b0b;font-size:11.5px}
.tscroll{overflow-x:auto;max-width:100%}
table{width:100%;border-collapse:collapse}
th,td{padding:7px 8px;border-bottom:1px solid var(--grid);text-align:right;white-space:nowrap}
th{font-weight:600;color:var(--ink2);font-size:12px}
th:first-child,td:first-child{text-align:left;white-space:normal}
tr.grp{cursor:pointer}
tr.grp td{background:var(--page)}
tr.kid td{color:var(--ink2)}
tr.kid td:first-child{padding-left:30px}
.tog{border:0;background:none;color:var(--ink);font-size:13px;width:20px;padding:0;cursor:pointer}
td small{color:var(--ink3)}
.bars{display:grid;grid-template-columns:minmax(60px,auto) minmax(40px,1fr) auto;gap:6px 10px;align-items:center;font-size:13px}
.bars .bar{height:12px}
.barfill{fill:var(--s1)}
.bars .r{text-align:right;color:var(--ink2)}
.big{font-size:30px;font-weight:650;margin:6px 0}
.big .n{font-size:13px;font-weight:400;color:var(--ink2)}
.seg{height:22px;margin-bottom:10px}
.seg-isa{fill:var(--isa)}
.seg-pension{fill:var(--pension)}
.seg-outside{fill:var(--neutral)}
.trust{margin:6px 0 0;padding-left:18px;color:var(--ink2)}
.trust li{margin:3px 0;overflow-wrap:anywhere}
.trust .ok{color:var(--s3)}
.trust .warn{color:var(--above)}
.link{font:inherit;background:none;border:0;padding:0;color:var(--s1);text-decoration:underline;cursor:pointer}
@media (max-width:860px){
  .tiles{grid-template-columns:1fr 1fr}
  .tile.big{grid-column:1/-1}
  .two,.three{grid-template-columns:1fr}
  .watch{grid-template-columns:minmax(0,1fr)}
  .rb{grid-template-columns:1fr 1fr;grid-template-areas:"bar bar" "lo hi";row-gap:2px}
  .rb .rangebar{grid-area:bar}
  .rb .lo{grid-area:lo;text-align:left}
  .rb .hi{grid-area:hi;text-align:right}
  .watch .txt{margin-bottom:8px}
  .hide-s{display:none}
}
@media (max-width:480px){
  /* the chart shrinks to the screen: its tick labels are drawn larger in its own units so they read at
     about 11 px or more, and every other date label is left out so they do not collide */
  .chart text.tick{font-size:28px}
  .chart text.xt.odd{display:none}
  .tiles{grid-template-columns:1fr}
  .tile.big .v{font-size:28px}
  .alloc{grid-template-columns:90px minmax(0,1fr)}
}
