/* TenX Invest app: pure black base with neutral greys (the user's call, 12 Nov 2026: no green tint in the
   background), the logo's growth gradient for accents, TenX Sans with its width axis as the voice. */
@font-face{font-family:"TenX Sans";src:url(/static/fonts/tenx-sans-vf.woff2) format("woff2");font-weight:200 900;font-stretch:75% 125%;font-display:swap}
:root{
  --night:#000;--soil:#0F0F0F;--panel:#000;--panel2:#1C1C1C;--line:#262626;--line2:#363636;
  --ink:#F2F2F2;--mute:#9E9E9E;--dim:#707070;
  --leaf:#00FA95;--teal:#00DABB;--sky:#00A5FA;--coral:#FF7A59;--amber:#F5C451;
  --grad:linear-gradient(90deg,#00FA95,#00DABB 55%,#00A5FA);
  --r-s:10px;--r-m:16px;--r-l:26px;--tab:68px;
  --maxw:1760px;--gut:18px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--night);color:var(--ink);font:400 16px/1.5 "TenX Sans",system-ui,sans-serif;font-stretch:100%;-webkit-font-smoothing:antialiased}
a{color:inherit}
button,input,select{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--leaf);outline-offset:3px;border-radius:6px}
/* proportional figures on purpose: TenX Sans draws its tabular zero with a dot, which reads as code */
.num{white-space:nowrap}
.up{color:var(--leaf)}.down{color:var(--coral)}.flat,.mute{color:var(--mute)}.dim{color:var(--dim)}
.small{font-size:13px;line-height:1.45}
h1,h2,h3{margin:0;font-weight:500;letter-spacing:-.01em}
h1{font-size:30px;line-height:1.12;font-stretch:115%}
h2{font-size:20px;line-height:1.25;font-stretch:110%}
h3{font-size:17px;line-height:1.3;font-stretch:105%}
p{margin:0}

/* ---- shell ---- */
.app{min-height:100dvh;background:var(--night);padding-bottom:calc(var(--tab) + env(safe-area-inset-bottom) + 18px)}
.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;padding:12px 18px;padding-top:calc(12px + env(safe-area-inset-top));background:rgba(0,0,0,.82);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;font-weight:600;font-stretch:118%;font-size:18px}
.brand svg{width:30px;height:30px}
.toplinks{display:none;gap:4px;margin-left:18px}
.toplinks a{padding:8px 14px;border-radius:999px;text-decoration:none;color:var(--mute);font-weight:500}
.toplinks a.on,.toplinks a:hover{color:var(--ink);background:var(--panel2)}
.sandbox{margin-left:auto;font-size:12px;font-weight:600;color:var(--amber);border:1px solid rgba(245,196,81,.45);border-radius:999px;padding:4px 10px;white-space:nowrap}
.screen{max-width:560px;margin:0 auto;padding:18px 18px 8px}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(4,1fr);height:calc(var(--tab) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:rgba(0,0,0,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid var(--line)}
.tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-decoration:none;color:var(--dim);font-size:12px;font-weight:500}
.tabbar a svg{width:24px;height:24px}
.tabbar a.on{color:var(--leaf)}
.foot{max-width:560px;margin:0 auto;padding:10px 18px 24px;color:var(--dim);font-size:12px;line-height:1.55}
.foot p+p{margin-top:6px}
/* desktop: the page runs nearly edge to edge (up to 1760px) and the top bar lines up with it */
@media (min-width:900px){
  :root{--gut:clamp(24px,2.6vw,48px)}
  .app{padding-bottom:30px}
  .tabbar{display:none}.toplinks{display:flex}
  .topbar{padding-left:max(var(--gut),calc((100% - var(--maxw)) / 2 + var(--gut)));padding-right:max(var(--gut),calc((100% - var(--maxw)) / 2 + var(--gut)))}
  .screen,.foot{max-width:var(--maxw);padding-left:var(--gut);padding-right:var(--gut)}
  .screen{padding-top:26px}
  .foot p{max-width:120ch}
  .cols{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:28px;align-items:start}
  .narrow{max-width:600px;margin:0 auto}
  .duo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:start}
}
@media (max-width:899px){.cols>*+*,.duo>*+*{margin-top:16px}}
.desk{display:none}
@media (min-width:900px){.desk{display:block}.sticky.mob{display:none}}

/* ---- building blocks ---- */
.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-l);padding:20px}
.panel+.panel,.cols+.panel,.block+.block{margin-top:16px}
.block{margin-top:22px}
.block>h2{margin-bottom:10px}
.head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}
.head a{font-size:14px;color:var(--teal);text-decoration:none;font-weight:500}
.back{display:inline-flex;align-items:center;gap:6px;color:var(--mute);text-decoration:none;font-size:14px;margin-bottom:10px;max-width:100%}
.back svg{width:18px;height:18px;flex:none}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 22px;border-radius:15px;border:1px solid var(--line2);background:transparent;font-weight:600;font-stretch:106%;text-decoration:none;cursor:pointer;transition:transform .12s ease,background .15s}
.btn:active{transform:scale(.98)}
.btn.go{background:var(--leaf);border-color:var(--leaf);color:#000}
.btn.go:hover{background:#3dffae}
.btn.soft{background:var(--panel2);border-color:var(--line2)}
.btn.sm{min-height:40px;padding:0 16px;border-radius:12px;font-size:14px}
.btn.wide{width:100%}
.btn[disabled]{opacity:.45;pointer-events:none}
.actions{display:flex;gap:10px;flex-wrap:wrap}
.actions .btn{flex:1}
.field{display:block;margin-top:14px}
.field>span{display:block;font-size:13px;color:var(--mute);margin-bottom:6px;font-weight:500}
.input,.field input,.field select{width:100%;height:54px;padding:0 16px;background:var(--soil);border:1px solid var(--line2);border-radius:14px;outline:none;font-size:17px}
.field input:focus,.field select:focus,.input:focus{border-color:var(--leaf);box-shadow:0 0 0 4px rgba(0,250,149,.12)}
.field input[readonly]{color:var(--mute)}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:0 14px}
.prefix,.field>span.prefix{display:flex;align-items:center;background:var(--soil);border:1px solid var(--line2);border-radius:14px;margin:0;font-size:inherit;color:inherit;font-weight:inherit}
.prefix:focus-within{border-color:var(--leaf);box-shadow:0 0 0 4px rgba(0,250,149,.12)}
.prefix b{padding:0 4px 0 16px;color:var(--mute);font-weight:500}
.prefix input{border:0!important;box-shadow:none!important;background:transparent}
.err{background:rgba(255,122,89,.1);border:1px solid rgba(255,122,89,.35);color:#FFC2B1;border-radius:14px;padding:12px 14px;margin:14px 0;font-size:15px}
.err a{color:#fff}
.err-text{color:#FFC2B1!important}
.ok-note{background:rgba(0,250,149,.08);border:1px solid rgba(0,250,149,.3);border-radius:14px;padding:12px 14px;margin:14px 0;font-size:15px}
.notice{border:1px dashed rgba(245,196,81,.55);background:rgba(245,196,81,.06);color:#F7DC97;border-radius:14px;padding:11px 14px;margin:14px 0;font-size:14px}
.notice b{color:#fff}
.pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.pill.ok{background:rgba(0,250,149,.12);color:var(--leaf)}
.pill.wait{background:rgba(245,196,81,.12);color:var(--amber)}
.pill.bad{background:rgba(255,122,89,.13);color:var(--coral)}
.pill.off{background:var(--panel2);color:var(--mute)}
.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;margin:0 -2px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;padding:9px 15px;border-radius:999px;border:1px solid var(--line2);background:transparent;font-size:14px;font-weight:500;cursor:pointer;text-decoration:none;color:var(--mute)}
.chip.on{background:var(--ink);color:var(--night);border-color:var(--ink)}
.seg{display:flex;background:var(--soil);border:1px solid var(--line);border-radius:14px;padding:4px;gap:4px}
.seg button,.seg a,.seg label{flex:1;text-align:center;padding:9px 6px;border-radius:10px;border:0;background:transparent;color:var(--mute);font-weight:600;font-size:14px;cursor:pointer;text-decoration:none}
.seg .on,.seg input:checked+span{background:var(--panel2);color:var(--ink)}
.seg label{position:relative;padding:0}
.seg label input{position:absolute;opacity:0;pointer-events:none}
.seg label span{display:block;padding:9px 6px;border-radius:10px}
.seg label input:focus-visible+span{outline:2px solid var(--leaf);outline-offset:2px}
.list{margin:0;padding:0;list-style:none}
.item{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);text-decoration:none}
.item:last-child{border-bottom:0}
.item .grow{flex:1;min-width:0}
.item .t{font-weight:500;line-height:1.3;display:block;overflow:hidden;text-overflow:ellipsis}
.item .s{display:block;color:var(--mute);font-size:13px;margin-top:2px}
.item .r{text-align:right;white-space:nowrap}
.item .r .s{margin-top:4px}
.mono{width:40px;height:40px;flex:none;border-radius:12px;display:grid;place-items:center;font-weight:700;font-size:14px;font-stretch:115%;color:#000}
.spark{width:84px;height:30px;flex:none}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:16px 18px}
.stat>span{display:block;font-size:13px;color:var(--mute);margin-bottom:2px}
.stat b{font-weight:500;font-size:18px;font-stretch:110%}
.divider{height:1px;background:var(--line);margin:18px 0}

/* ---- home: value + growth garden ---- */
.hello{color:var(--mute);font-size:15px}
.value{font-size:clamp(42px,12vw,64px);font-weight:300;font-stretch:125%;letter-spacing:-.02em;line-height:1.02;margin:6px 0 4px}
.value small{font-size:.42em;font-weight:400;font-stretch:110%;letter-spacing:0;color:var(--mute);margin-left:2px}
.buy .actions{margin-top:14px}
.gain{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:15px}
.garden{position:relative;margin:18px -4px 0}
.garden svg{display:block;width:100%;height:auto;overflow:visible}
.garden .stem{fill:none;stroke-width:5;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:draw 1.2s cubic-bezier(.3,.6,.25,1) forwards}
.garden .leaf{fill:none;stroke-width:4;stroke-linejoin:round;transform:scale(0);opacity:0;animation:unfurl .6s cubic-bezier(.34,1.4,.64,1) forwards}
.garden .bud{fill:none;stroke-width:4;stroke-dasharray:1;stroke-dashoffset:1;animation:draw .5s ease forwards}
.garden .seed{stroke-dasharray:4 4}
.garden .tag{font-size:11px;fill:var(--mute)}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes unfurl{to{transform:scale(1);opacity:1}}
.ground{height:7px;border-radius:4px;background:var(--grad);margin-top:-2px}
/* home growth vine (growth() in demo.py): portfolio value since the first purchase drawn as the garden's stem, with
   leaves along it and a bud at today; invested as a dashed grey step line, a seedling at each later purchase; the gap
   shaded green above cost, coral below. Drag to read any day. (.gvine, not .grow: .grow is the list rows' filler) */
.gvine svg{max-height:none;touch-action:pan-y;cursor:crosshair}
.gvine .vine{stroke-width:4;stroke-linejoin:round;animation-duration:1.5s}
.gvine .leaf{stroke-width:2.4}.gvine .leaf.big{stroke-width:3.2}
.gvine .sprout{stroke-width:3}
.gvine .seedpt{fill:url(#gvg);stroke:none;opacity:0;animation:gfade .5s ease forwards}
.gvine .bud{fill:#000;stroke-width:3}
.gvine .inv{fill:none;stroke:#9E9E9E;stroke-width:1.6;stroke-dasharray:4 4;stroke-linecap:round}
.gvine .gfill,.gvine .inv{opacity:0;animation:gfade .9s ease 1s forwards}
.gvine .gpulse{fill:none;stroke:#00DABB;stroke-width:1.5;opacity:0;transform-box:fill-box;transform-origin:center;animation:gpulse 2.8s ease-out 2s infinite}
.gvine .gx,.schart .gx{stroke:#9E9E9E;stroke-width:1;stroke-dasharray:3 4;opacity:0}
.gvine .gdot,.schart .gdot{opacity:0;stroke:#000;stroke-width:2}.gvine .gdv,.schart .gdv{fill:#F2F2F2}.gvine .gdi{fill:#9E9E9E}
.gvine .gtip,.schart .gtip{position:absolute;top:-10px;transform:translateX(-50%);padding:3px 10px;border-radius:999px;background:var(--panel2);border:1px solid var(--line2);font-size:12px;white-space:nowrap;pointer-events:none}
@keyframes gfade{to{opacity:1}}
@keyframes gpulse{0%{opacity:.8;transform:scale(1)}100%{opacity:0;transform:scale(2.8)}}
@keyframes sgrow{from{width:0}}
.gaxis{display:flex;justify-content:space-between;gap:12px;margin-top:7px;font-size:12px;color:var(--dim)}
.glegend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin-top:8px;font-size:14px;color:var(--mute)}
.glegend b{color:var(--ink);font-weight:500;margin-left:6px}
.glegend i{display:inline-block;width:18px;vertical-align:middle;margin-right:7px}
.glegend .kv{height:4px;border-radius:2px;background:var(--grad)}
.glegend .ki{border-top:2px dashed #9E9E9E}
/* home "storms" panel (storms() in demo.py): a mix like the investor's on its NAV history, log scale; deep falls coral,
   the climb back green; the falls listed with depth bars; a SIP that kept going against one stopped in the fall */
.schart{position:relative;margin-top:14px}
.schart svg{display:block;width:100%;height:auto;overflow:visible;touch-action:pan-y;cursor:crosshair}
.schart .sline{fill:none;stroke:#8A8A8A;stroke-width:1.5;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:draw 1.8s cubic-bezier(.3,.6,.25,1) .1s forwards}
.schart .sfall,.schart .srise{fill:none;stroke-width:2.3;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:draw .8s ease forwards}
.schart .sfall{stroke:#FF7A59}.schart .srise{stroke:#00FA95}
.schart .sband{fill:rgba(255,122,89,.08);opacity:0;animation:gfade .6s ease forwards}
.schart .stag{font-size:11px;font-weight:600;fill:#FF9A80;opacity:0;animation:gfade .5s ease forwards}
.schart .syear{font-size:10px;fill:var(--dim)}
.schart .stick{stroke:var(--line2)}
.sread{margin-top:10px;font-size:14px;min-height:1.5em}
.slist{list-style:none;margin:12px 0 0;padding:0}
.slist li{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.slist .scloud{flex:none;color:var(--mute);margin-top:1px}.slist .scloud svg{width:22px;height:22px;display:block}
.slist .grow{flex:1;min-width:0}.slist .t{display:block;font-weight:500}.slist .s{display:block;color:var(--mute);font-size:13px;margin-top:2px}
.slist .sbar{display:block;height:4px;width:var(--d);margin-top:8px;border-radius:2px;background:linear-gradient(90deg,#FF7A59,rgba(255,122,89,.35));animation:sgrow .9s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(.2s + var(--i,0) * .15s)}
.slist b{font-size:18px;font-weight:500;font-stretch:115%}
.ssum{margin-top:2px;font-size:16px;line-height:1.45}
.ssip .sb{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;margin-top:12px}
.ssip .sl{font-size:13px;color:var(--mute)}
.ssip .st{position:relative;height:12px;border-radius:6px;background:var(--soil)}
.ssip .st i{position:absolute;left:0;top:0;bottom:0;width:var(--w);border-radius:6px;animation:sgrow 1.2s cubic-bezier(.2,.8,.2,1) .25s both}
.ssip .sv{background:#6B6B6B}.ssip .sv.kept{background:var(--grad)}
.ssip .si{background:rgba(0,0,0,.5)}
.ssip .sn{font-size:14px;color:var(--mute)}.ssip .sn b{color:var(--ink);font-weight:500;font-size:16px}
/* Inside: the overlap rules and sector bars grow in once on load */
.olist li{animation:ogrow 1s cubic-bezier(.2,.8,.2,1) .2s both}
@keyframes ogrow{from{background-size:0% 2px,100% 1px}}
.bars .bar i{animation:sgrow 1s cubic-bezier(.2,.8,.2,1) .15s both}
/* home risk fit (risk_fit() in demo.py): the baskets' ladder of fund categories, riskiest at the top. The rungs within
   the investor's profile fill teal from the bottom, a dashed line marks where the profile stops, and each fund pops in
   as a chip on its rung; a fund above the line is amber and pulses twice */
.rfit .head a{white-space:nowrap}
.rfit .rfwho{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.rfit .rfwho b{font-size:17px;font-weight:500}
.rfit .rfwho a{color:var(--teal);text-decoration:none}
.rfsum{margin-top:10px;font-size:15px;line-height:1.45}
.rfsum.warn{color:var(--amber)}
.ladder{list-style:none;margin:16px 0 0;padding:0}
.ladder li{display:grid;grid-template-columns:minmax(78px,124px) 6px minmax(0,1fr);gap:0 12px;align-items:center;min-height:30px}
.ladder .rl{font-size:13px;line-height:1.25;color:var(--mute);text-align:right;padding:4px 0}
.ladder .out .rl{color:var(--dim)}
.ladder .rail{align-self:stretch;background:var(--line);transform-origin:bottom}
.ladder .in .rail{background:var(--teal);animation:rung .32s ease-out both;animation-delay:calc(var(--n) * 75ms)}
.ladder li:last-child .rail{border-radius:0 0 3px 3px}.ladder li:first-child .rail{border-radius:3px 3px 0 0}
.ladder .rc{display:flex;flex-wrap:wrap;gap:6px;padding:4px 0}
.ladder li.limit{display:block;position:relative;min-height:0;height:0;margin:9px 0;border-top:1px dashed rgba(0,218,187,.75)}
.ladder li.limit span{position:absolute;right:0;top:-9px;padding:0 0 0 8px;background:var(--panel);font-size:11px;line-height:16px;color:var(--teal)}
.rchip{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:0 6px;padding:4px 10px;border-radius:12px;background:rgba(0,218,187,.12);font-size:13px;line-height:1.3;
  animation:chipin .45s cubic-bezier(.34,1.4,.64,1) both;animation-delay:calc(.75s + var(--n) * 75ms + var(--k) * 60ms)}
.rchip b{font-weight:500;color:var(--mute);white-space:nowrap}
.rchip.over{background:rgba(245,196,81,.14);color:var(--amber);box-shadow:inset 0 0 0 1px rgba(245,196,81,.5);
  animation:chipin .45s cubic-bezier(.34,1.4,.64,1) both,chipwarn 1.3s ease 2;animation-delay:calc(.75s + var(--n) * 75ms),calc(1.5s + var(--n) * 75ms)}
.rchip.over b{color:var(--amber)}
@keyframes rung{from{transform:scaleY(0)}}
@keyframes chipin{from{transform:scale(.6);opacity:0}}
@keyframes chipwarn{50%{box-shadow:inset 0 0 0 1px rgba(245,196,81,.5),0 0 0 6px rgba(245,196,81,.14)}}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (prefers-reduced-motion:reduce){
  .gvine .gfill,.gvine .inv,.gvine .seedpt{opacity:1}.gvine .gpulse{display:none}
  .schart .sline,.schart .sfall,.schart .srise{stroke-dashoffset:0}.schart .sband,.schart .stag{opacity:1}
  .ladder .in .rail,.rchip,.rchip.over{animation:none}
}
.qa{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:20px}
.qa a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 6px;border-radius:18px;background:var(--panel);border:1px solid var(--line);text-decoration:none;font-size:14px;font-weight:500}
.qa a svg{width:24px;height:24px;color:var(--leaf)}
.sipcard{display:flex;align-items:center;gap:16px}
.cal{width:56px;flex:none;border-radius:14px;overflow:hidden;text-align:center;border:1px solid var(--line2)}
.cal i{display:block;font-style:normal;font-size:11px;font-weight:600;background:var(--leaf);color:#000;padding:2px 0}
.cal b{display:block;font-size:22px;font-weight:500;font-stretch:115%;padding:3px 0 5px}
.donut{display:flex;align-items:center;gap:18px}
.donut svg{width:120px;height:120px;flex:none}
.legend{list-style:none;margin:0;padding:0;flex:1}
.legend li{display:flex;align-items:center;gap:8px;font-size:14px;padding:3px 0}
.legend i{width:10px;height:10px;border-radius:3px;flex:none}
.legend b{margin-left:auto;font-weight:500}
/* home: the money (hero) beside what it is in (the company map), at the same height, the map growing to fill its
   card; under them every other panel in columns that end level: home_layout() in demo.py packs three columns by
   estimated height, homePack() in app.js re-packs by real height (two columns from 900px, three from 1280px), and the
   last panel of each column stretches to the line. One column on phones, in reading order (--o) */
.h-top{margin-top:22px}
.h-pack{display:flex;flex-direction:column;gap:16px;margin-top:16px}
.h-col{display:contents}
.h-pack .panel{order:var(--o,0);margin:0}
.acard .donut{margin-top:14px}
.garden svg{max-height:340px}
.mrow{display:grid;grid-template-columns:minmax(0,1fr) 96px auto;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid var(--line);font-size:15px}
.mrow:last-child{border-bottom:0}
.mrow svg{width:96px;height:28px;overflow:visible}
.mrow path{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.mrow .r{text-align:right;display:flex;flex-direction:column;align-items:flex-end;line-height:1.25}
.mrow .r b{font-weight:500}
.mrow .r span{font-size:13px}
@media (min-width:900px){
  .home{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px 28px;align-items:stretch}
  .h-hero{grid-column:1;grid-row:1}
  .h-top{grid-column:2;grid-row:1;margin:0;display:flex;flex-direction:column}
  .h-top>.panel{flex:1 1 auto;margin:0;display:flex;flex-direction:column}
  .h-top .legend{flex:none}
  .h-top .tmap.mini{flex:1 1 auto;height:auto;min-height:230px}
  .h-top .hempty,.h-top .acard{justify-content:center}
  .h-pack{grid-column:1 / -1;grid-row:2;display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));gap:0 28px;align-items:stretch;margin:0}
  .h-col{display:flex;flex-direction:column;gap:16px}
  /* a shorter column shares its extra height among its panels, and each takes it in where it reads naturally:
     taller ladder rungs, rows spread through a list, the footnote held at the bottom */
  .h-col>.panel{flex:1 0 auto}
  .h-col>.rfit,.h-col>.storms,.h-col>.ssip,.h-col>.mkts,.h-col>.hlist{display:flex;flex-direction:column}
  .h-col>.rfit .ladder{flex:1 0 auto;display:flex;flex-direction:column}
  .h-col>.rfit .ladder li{flex:1 0 auto}.h-col>.rfit .ladder li.limit{flex:none}
  .h-col>.storms .slist,.h-col>.mkts .mrows,.h-col>.hlist .list{flex:1 0 auto;display:flex;flex-direction:column;justify-content:space-around}
  .h-col>.ssip .source{margin-top:auto;padding-top:12px}
  .h-pack.measuring .h-col>.panel{flex:none}
}

/* ---- explore ---- */
.markets{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;margin:0 -18px 14px;padding:0 18px}
.markets::-webkit-scrollbar{display:none}
.mk{flex:none;min-width:150px;padding:10px 12px 8px;border-radius:14px;background:var(--panel);border:1px solid var(--line)}
.mk .n{display:block;font-size:12px;color:var(--mute)}
.mk b{font-weight:500;font-stretch:110%;margin-right:8px}
.mk b+span{font-size:13px}
.mk svg{display:block;width:100%;height:26px;margin-top:6px;overflow:visible}
.mk path{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.mk .pc{display:block;font-size:12px;color:var(--dim);margin-top:8px}
@media (min-width:900px){
  .markets{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin:0 0 16px;padding:0;overflow:visible}
  .mk{min-width:0}
  #funds{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:44px}
  #funds .fund:last-child{border-bottom:1px solid var(--line)}
  .mk svg{height:34px}
}
@media (min-width:1280px){#funds{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:40px}}
.search{position:relative;margin-bottom:12px}
.search svg{position:absolute;left:15px;top:16px;width:20px;height:20px;color:var(--dim)}
.search input{padding-left:46px}
.fund{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 14px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line);text-decoration:none}
.fund:last-child{border-bottom:0}
.fund .t{font-weight:500;line-height:1.3}
.fund .s{color:var(--mute);font-size:13px}
.fund .cagr{text-align:right}
.fund .cagr b{display:block;font-size:20px;font-weight:400;font-stretch:118%}
.fund .cagr span{font-size:12px;color:var(--dim)}
.fund .cagr .spark{display:block;margin:4px 0 0 auto}
.fund .t,.fund .s{display:block}
.fund[hidden]{display:none}

/* ---- fund page ---- */
.fhead .meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.tag{font-size:12px;font-weight:500;padding:4px 10px;border-radius:999px;background:var(--panel2);color:var(--mute)}
.tag.risk{color:var(--amber);background:rgba(245,196,81,.1)}
.navline{display:flex;align-items:baseline;gap:12px;margin-top:16px;flex-wrap:wrap}
.navline .big{font-size:34px;font-weight:300;font-stretch:122%}
.chart{position:relative;margin-top:12px;touch-action:pan-y}
.chart svg{display:block;width:100%;height:220px}
.chart .tip{position:absolute;top:0;pointer-events:none;background:rgba(28,28,28,.96);border:1px solid var(--line2);border-radius:10px;padding:6px 10px;font-size:13px;white-space:nowrap;transform:translateX(-50%);display:none}
.ranges{margin-top:10px}
@media (min-width:900px){.chart svg{height:280px}}
@media (min-width:1280px){.cols.fundcols{grid-template-columns:minmax(0,1.65fr) minmax(400px,1fr);gap:36px}.chart svg{height:320px}}
.bars{list-style:none;margin:0;padding:0}
.bars li{display:grid;grid-template-columns:minmax(0,1fr) 56px;gap:4px 12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:15px}
.bars li:last-child{border-bottom:0}
.bars .bar{grid-column:1/3;height:6px;border-radius:3px;background:var(--soil);overflow:hidden}
.bars .bar i{display:block;height:100%;border-radius:3px;background:var(--grad)}
.bars b{text-align:right;font-weight:500}
.mcap{display:flex;height:10px;border-radius:5px;overflow:hidden;margin:10px 0 8px}
.mcap i{display:block;height:100%}
.bigspark{display:block;width:100%;height:84px;margin:16px 0 4px;overflow:visible}
.bigspark path{fill:none;stroke-width:1.8;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.calc .out{display:flex;gap:18px;flex-wrap:wrap;margin-top:16px}
.calc .out div span{display:block;font-size:13px;color:var(--mute)}
.calc .out div b{font-size:24px;font-weight:300;font-stretch:120%}
.calc svg{display:block;width:100%;height:120px;margin-top:12px}
input[type=range]{width:100%;accent-color:var(--leaf);height:30px}
.sticky{position:sticky;bottom:calc(var(--tab) + env(safe-area-inset-bottom) + 8px);z-index:10;display:flex;gap:10px;margin-top:20px;padding:10px;border-radius:20px;background:rgba(20,20,20,.92);backdrop-filter:blur(12px);border:1px solid var(--line2)}
.sticky .btn{flex:1}
@media (min-width:900px){.sticky{bottom:16px}}
.source{font-size:12px;color:var(--dim);margin-top:12px}

/* ---- invest sheet ---- */
.sheet{background:var(--panel);border:1px solid var(--line2);border-radius:28px;padding:22px 20px;animation:rise .35s cubic-bezier(.2,.8,.2,1)}
@keyframes rise{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
.amount{display:flex;align-items:baseline;justify-content:center;gap:4px;margin:10px 0 4px}
.amount b{font-size:40px;font-weight:300;font-stretch:120%;color:var(--mute)}
.amount input{width:5ch;min-width:2ch;max-width:100%;background:transparent;border:0;outline:none;text-align:left;font-size:52px;font-weight:300;font-stretch:125%;letter-spacing:-.02em;padding:0;border-bottom:2px solid transparent}
.amount input:focus{border-bottom-color:var(--leaf)}
.quick{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:6px 0 4px}
.quick button{padding:8px 14px;border-radius:999px;border:1px solid var(--line2);background:var(--soil);font-size:14px;font-weight:500;cursor:pointer}
.methods{display:grid;gap:10px;margin-top:16px}
.method{display:flex;align-items:center;gap:14px;padding:14px;border-radius:16px;border:1px solid var(--line2);background:var(--soil);cursor:pointer}
.method input{accent-color:var(--leaf);width:20px;height:20px;flex:none}
.method svg{width:26px;height:26px;flex:none;color:var(--teal)}
.method:has(input:checked){border-color:var(--leaf);background:var(--panel2)}
.method .s{display:block;font-size:13px;color:var(--mute)}
.days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:8px}
.days label{position:relative}
.days input{position:absolute;opacity:0}
.days span{display:grid;place-items:center;height:42px;border-radius:12px;border:1px solid var(--line);font-size:15px;cursor:pointer}
.days input:checked+span{background:var(--leaf);color:#000;border-color:var(--leaf);font-weight:600}
.days input:focus-visible+span{outline:2px solid var(--leaf);outline-offset:2px}
.summary{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.summary div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:15px}
.summary div span{color:var(--mute)}

/* ---- OTP ---- */
.otp{display:flex;gap:8px;justify-content:center;margin:22px 0 8px}
.otp input{width:48px;height:60px;text-align:center;font-size:26px;font-weight:400;font-stretch:118%;background:var(--soil);border:1px solid var(--line2);border-radius:14px;outline:none}
.otp input:focus{border-color:var(--leaf);box-shadow:0 0 0 4px rgba(0,250,149,.12)}
.otp input.filled{border-color:var(--teal)}
@media (max-width:360px){.otp input{width:40px;height:54px}}

/* ---- sign-in ---- */
.hero{text-align:left;padding:18px 0 6px}
.hero .plants{width:120px;height:120px;margin-bottom:8px}
.hero h1{font-size:clamp(32px,8.5vw,44px);font-weight:300;font-stretch:122%;line-height:1.06}
.hero h1 em{font-style:normal;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p{color:var(--mute);margin-top:12px;max-width:34ch}
.trust{display:none;list-style:none;margin:30px 0 0;padding:0;gap:14px}
.trust li{display:flex;align-items:center;gap:12px;color:var(--ink);font-size:16px}
.trust svg{width:22px;height:22px;flex:none;color:var(--leaf)}
@media (min-width:900px){
  .split{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(380px,1fr);gap:clamp(40px,6vw,120px);align-items:center;min-height:calc(100dvh - 250px);padding:12px 0 24px}
  .split .hero{padding:0}
  .split .hero .plants{width:150px;height:150px;margin-bottom:18px}
  .split .hero h1{font-size:clamp(46px,4.6vw,76px);line-height:1.02;max-width:15ch}
  .split .hero p{font-size:18px;max-width:46ch;margin-top:18px}
  .trust{display:grid}
  .signin{background:var(--panel);border:1px solid var(--line2);border-radius:28px;padding:34px 32px}
}
.signin h2{display:none}
@media (min-width:900px){.signin h2{display:block;margin-bottom:4px}}

/* ---- onboarding wizard ---- */
.progress{display:flex;gap:6px;margin:6px 0 18px}
.progress i{flex:1;height:4px;border-radius:2px;background:var(--line2)}
.progress i.on{background:var(--leaf)}
.step[hidden]{display:none}
.stepname{color:var(--mute);font-size:14px;margin-bottom:4px}
/* review, profile and order details: label over value, in as many columns as fit */
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));column-gap:32px}
.fields div{padding:12px 0;border-bottom:1px solid var(--line)}
.fields span{display:block;font-size:13px;color:var(--mute);margin-bottom:2px}
.fields b{font-weight:500;overflow-wrap:anywhere}
.idcard{display:flex;align-items:center;gap:16px}
.idcard .mono{width:64px;height:64px;border-radius:20px;font-size:22px;background:var(--grad)}
@media (min-width:900px){
  .cols.side-l{grid-template-columns:minmax(280px,1fr) minmax(0,2.6fr)}
  .idcard{flex-direction:column;align-items:flex-start}
  .idcard .mono{width:88px;height:88px;border-radius:26px;font-size:30px}
  .duo>.status-big{position:sticky;top:96px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-l);padding:30px 24px 34px}
  .duo>.status-big .sprout{width:190px;height:190px}
  .duo .sheet{animation:none}
}

/* ---- verifying checklist ---- */
.checks{list-style:none;margin:18px 0 0;padding:0}
.checks li{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);font-size:16px}
.checks li:last-child{border-bottom:0}
.checks .ic{width:28px;height:28px;flex:none;border-radius:50%;border:2px solid var(--line2);display:grid;place-items:center}
.checks li.run .ic{border-color:var(--line2);border-top-color:var(--leaf);animation:spin .8s linear infinite}
.checks li.ok .ic{background:var(--leaf);border-color:var(--leaf)}
.checks li.ok .ic::after{content:"";width:7px;height:12px;border:solid #000;border-width:0 2.5px 2.5px 0;transform:translateY(-1px) rotate(45deg)}
.checks li.bad .ic{background:var(--coral);border-color:var(--coral)}
.checks li.bad .ic::after{content:"×";color:#2a0b03;font-weight:700;font-size:18px;line-height:1}
.checks li .s{display:block;font-size:13px;color:var(--mute)}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---- order: sprout + timeline ---- */
.sprout{display:block;width:150px;height:150px;margin:6px auto 0}
.sprout path,.sprout circle{fill:none;stroke-linecap:round;stroke-linejoin:round}
.sprout .off{opacity:.18}
.status-big{text-align:center}
.status-big .value{font-size:clamp(38px,11vw,52px)}
.timeline{list-style:none;margin:18px 0 0;padding:0}
.timeline li{position:relative;padding:0 0 18px 36px}
.timeline li::before{content:"";position:absolute;left:0;top:1px;width:22px;height:22px;border-radius:50%;border:2px solid var(--line2);background:var(--night)}
.timeline li.done::before{background:var(--leaf);border-color:var(--leaf)}
.timeline li.done::after{content:"";position:absolute;left:8px;top:6px;width:5px;height:10px;border:solid #000;border-width:0 2px 2px 0;transform:rotate(45deg)}
.timeline li:not(:last-child) i{position:absolute;left:10px;top:26px;bottom:2px;width:2px;background:var(--line2)}
.timeline li.done:not(:last-child) i{background:rgba(0,250,149,.5)}
.timeline small{display:block;color:var(--mute);font-size:13px}
canvas.leaves{position:fixed;inset:0;pointer-events:none;z-index:50}

/* ---- busy overlay ---- */
.busy{position:fixed;inset:0;z-index:60;display:none;place-items:center;background:rgba(0,0,0,.82);backdrop-filter:blur(6px)}
.busy.on{display:grid}
.busy div{text-align:center}
.busy i{display:block;width:44px;height:44px;margin:0 auto 14px;border-radius:50%;border:3px solid var(--line2);border-top-color:var(--leaf);animation:spin .8s linear infinite}

/* ---- company size: one teal, light to dark (Large, Mid, Small); validated as an ordinal ramp on the panel ---- */
.cap-l{background:#5EF0D6}.cap-m{background:#00B89E}.cap-s{background:#0B7A69}
.seg3{display:flex;gap:2px;height:12px;border-radius:6px;overflow:hidden;margin-top:12px}
.seg3 i{display:block;height:100%}

/* ---- inside your funds: the company map ---- */
.xcount{font-size:clamp(46px,11vw,88px);font-weight:300;font-stretch:125%;letter-spacing:-.025em;line-height:1;margin:6px 0 10px}
.xhead .mute{max-width:75ch}
.xstats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:12px;margin:22px 0 18px}
.xstats .stat{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-m);padding:14px 16px}
.xstats .stat b{display:block;font-size:19px;line-height:1.25;margin:2px 0}
@media (min-width:900px){.cols.xcols{grid-template-columns:minmax(0,2.2fr) minmax(320px,1fr)}}
.tmap{position:relative;display:block;height:440px;margin-top:14px;border-radius:12px;overflow:hidden;text-decoration:none;touch-action:manipulation;background:#000}
@media (min-width:900px){.tmap{height:580px}}
.tmap.mini{height:250px;margin-top:10px;border-radius:10px}
.tmap .tg{position:absolute;font-size:12px;font-weight:500;line-height:22px;color:var(--mute);white-space:nowrap;padding:0 4px}
/* companies float on the panel itself: no box behind a logo or a name. Place on the map still gives the sector and
   size the money; no market colours (holdings, not a price screen) */
.tmap .tl{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--ink);padding:4px;line-height:1.22;cursor:pointer}
.tmap .tl b{display:block;font-weight:500;white-space:nowrap;transition:color .2s}
.tmap .tl span{display:block;font-size:12px;color:var(--mute);white-space:nowrap;margin-top:2px}
.tmap .tl:hover b,.tmap .tl.on b{color:var(--teal)}
.tmap.mini .tl{cursor:inherit}
.tmap.mini .tl:hover b{color:inherit}
/* company logos (jobs/logos.py cuts each out of its ground and lifts colours too dark for black): the logo alone,
   floating over a faint glow (a shadow cannot show on black), each on its own clock; the script sizes it */
.tmap .tl.lgt{padding:0}
.tmap .fl{display:block;flex:none;animation:bob var(--t,5s) ease-in-out var(--d,0s) infinite}
.tmap .fl img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .3s cubic-bezier(.2,.8,.2,1),filter .3s}
.tmap .tl.lgt:hover .fl img,.tmap .tl.lgt.on .fl img{transform:scale(1.1);filter:brightness(1.15)}
.tmap.mini .tl.lgt:hover .fl img{transform:none;filter:none}
.tmap .sh{display:block;flex:none;height:6px;margin-top:7px;border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,.13),rgba(255,255,255,0));animation:bobsh var(--t,5s) ease-in-out var(--d,0s) infinite}
.tmap .tl.lgt em{display:block;font-style:normal;font-size:12px;font-weight:500;color:var(--mute);white-space:nowrap;margin-top:6px}
.tmap .tl b.vt{position:absolute;left:50%;top:50%;font-size:11px;writing-mode:vertical-rl;transform:translate(-50%,-50%) rotate(180deg)}
.tmap .fl.ic img,.tcap .lg.ic img,.coplate.ic img{border-radius:22%}
@keyframes bob{0%,100%{transform:translateY(2px)}50%{transform:translateY(-3px)}}
@keyframes bobsh{0%,100%{transform:scaleX(1);opacity:.9}50%{transform:scaleX(.72);opacity:.45}}
.tmap .tl{animation:tin .45s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 14ms)}
.tmap.still .tl{animation:none}
@keyframes tin{from{opacity:0;transform:scale(.92)}}
.tcap{margin-top:12px;min-height:1.6em;font-size:15px;display:flex;align-items:center;gap:12px}
.tcap .lg{display:flex;align-items:center;flex:none;height:28px;max-width:120px;font-style:normal}
.tcap .lg img{display:block;max-height:28px;max-width:120px;object-fit:contain}
.clist{list-style:none;margin:6px 0 0;padding:0}
.clist li{display:flex;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid var(--line)}
.clist li:last-child{border-bottom:0}
.clist .rk{width:26px;flex:none;color:var(--dim);font-size:14px;text-align:right}
.clist .grow{flex:1;min-width:0}.clist .t{display:block;font-weight:500}.clist .s{display:block;color:var(--mute);font-size:13px}
.clist .r{text-align:right}.clist .r .s{margin-top:2px}
.clist li[hidden]{display:none}
@media (min-width:900px){.clist{columns:2;column-gap:44px}.clist li{break-inside:avoid}}
.xline{font-size:15px;color:var(--mute)}.xline b{color:var(--ink);font-size:22px;font-weight:400;font-stretch:118%;margin-right:4px}
/* companies as a list (macros.corow), like a broker's holdings screen: the company's cut-out logo (initials on a
   quiet plate when there is none), name with sector and how many of your funds hold it, your rupees and their share
   of your money, and a thin bar against the biggest. No daily price colours. */
.colist{list-style:none;margin:12px 0 0;padding:0}
@media (min-width:900px){.colist.two{columns:2;column-gap:44px}.colist.two li{break-inside:avoid}}
.colist li{display:grid;grid-template-columns:96px minmax(0,1fr) auto;grid-template-areas:"lg nm amt" "lg bar bar";align-items:center;column-gap:14px;padding:8px 0;border-bottom:1px solid var(--line)}
.colist li:last-child{border-bottom:0}
.colist li[hidden]{display:none}
.coplate{grid-area:lg;display:flex;align-items:center;justify-content:center;width:96px;height:40px;overflow:hidden}
.coplate img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.coplate.none{color:var(--dim);font-size:13px;font-weight:600;letter-spacing:.03em}
.colist .nm{grid-area:nm;min-width:0}
.colist .nm b{display:block;font-weight:500;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.colist .nm span,.colist .amt span{display:block;font-size:13px;color:var(--mute);margin-top:1px}
.colist .amt{grid-area:amt;text-align:right}.colist .amt b{display:block;font-weight:500}
.colist .cbar{grid-area:bar;display:block;height:3px;margin-top:6px;border-radius:2px;background:var(--soil);overflow:hidden}
.colist .cbar i{display:block;height:100%;width:var(--w);border-radius:2px;background:var(--grad);opacity:.85;animation:sgrow .9s cubic-bezier(.2,.8,.2,1) .15s both}
.xfoot{margin-top:10px}.xfoot a{color:var(--teal);text-decoration:none;white-space:nowrap}
@media (max-width:599px){
  .colist li{grid-template-columns:66px minmax(0,1fr) auto;column-gap:12px}
  .coplate{width:66px;height:32px}
}
.venn{display:block;width:100%;max-width:300px;margin:10px auto 0}
.venn circle{stroke-width:2}
.venn .va{fill:rgba(94,240,214,.16);stroke:#5EF0D6}.venn .vb{fill:rgba(57,135,229,.16);stroke:#3987E5}
.venn text{fill:var(--ink);font-size:20px;font-weight:500}
.vlegend{display:grid;gap:2px;margin-top:8px}.vlegend i.va{background:#5EF0D6}.vlegend i.vb{background:#3987E5}
/* inside: one overlap panel under the map; the biggest pair as a Venn, the other pairs ranked beside it, each row's
   bottom rule filled to its overlap in the Venn's two colours */
.ovl .head span{white-space:nowrap}
.ovl .ovsum{margin-top:8px}
.ovl .olabel{margin:20px 0 2px;font-size:13px;color:var(--mute)}
.olist{list-style:none;margin:0;padding:0}
.olist li{display:flex;align-items:flex-start;gap:14px;padding:11px 0 13px;
  background:linear-gradient(90deg,#5EF0D6,#3987E5) 0 100%/var(--p,0%) 2px no-repeat,linear-gradient(var(--line),var(--line)) 0 100%/100% 1px no-repeat}
.olist li[hidden]{display:none}
.olist .grow{flex:1;min-width:0}
.olist .t{display:block;font-size:15px;line-height:1.35}
.olist .s{display:block;margin-top:3px;color:var(--mute);font-size:13px;line-height:1.4}
.olist b{font-size:18px;font-weight:500;font-stretch:115%;line-height:1.3}
@media (min-width:900px){
  .ovl .ovgrid{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:0 44px;align-items:start}
  .ovl .olabel{margin-top:2px}
}
@media (min-width:1280px){.olist{columns:2;column-gap:40px}.olist li{break-inside:avoid}}

/* ---- fund page: time in the market (range of yearly returns by holding period) ---- */
.tim-lead{font-size:17px;margin-top:6px;max-width:60ch}.tim-lead b{color:var(--leaf);font-weight:600}
.rr{margin-top:16px}
.rr-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"l p" "t t" "s s";align-items:center;column-gap:14px;padding:10px 0;border-bottom:1px solid var(--line)}
.rr-row:last-of-type{border-bottom:0}
@media (min-width:600px){.rr-row{grid-template-columns:64px minmax(0,1fr) 92px;grid-template-areas:"l t p" ". s s";border-bottom:0;padding:9px 0}}
.rr-l{grid-area:l;font-size:14px;color:var(--mute)}
.rr-t{grid-area:t;position:relative;height:22px}
.rr-t::before{content:"";position:absolute;left:0;right:0;top:9px;height:4px;border-radius:2px;background:var(--soil)}
.rr-zero{position:absolute;top:0;bottom:0;width:1px;background:var(--line2)}
.rr-neg,.rr-pos{position:absolute;top:6px;height:10px}
.rr-neg{background:var(--coral);border-radius:5px 0 0 5px}
.rr-pos{background:var(--leaf);border-radius:0 5px 5px 0}
.rr-mid{position:absolute;top:4px;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:var(--ink);box-shadow:0 0 0 2px var(--panel)}
.rr-p{grid-area:p;text-align:right;line-height:1.15}.rr-p b{display:block;font-size:18px;font-weight:500}.rr-p span{font-size:12px;color:var(--dim)}
.rr-s{grid-area:s;font-size:12px;color:var(--dim);margin-top:2px}
.rr-axis{position:relative;height:16px;margin:4px 12px 0;font-size:11px;color:var(--dim)}
@media (min-width:600px){.rr-axis{margin:4px 106px 0 78px}}
.rr-axis span{position:absolute;transform:translateX(-50%);white-space:nowrap}

/* ---- fund page: the fund manager's moves ---- */
.moves{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:6px 22px;margin-top:10px}
.mv h4{margin:10px 0 4px;font-size:13px;font-weight:600;color:var(--mute)}
.mv ul{list-style:none;margin:0;padding:0}
.mv li{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--line);font-size:14px}
.mv li:last-child{border-bottom:0}.mv b{font-weight:500}

/* ---- explore: market mood dial and sector tiles ---- */
@media (min-width:1280px){
  .xp{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:36px;align-items:start}
  .xp #funds{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1279px){
  .xp-side{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));gap:16px;margin-top:22px;align-items:start}
  .xp-side .panel+.panel{margin-top:0}
}
.dialbox{margin-top:6px;text-align:center}
.dial{display:block;width:100%;max-width:320px;margin:0 auto;overflow:visible}
.dial .track,.dial .val{fill:none;stroke-width:16;stroke-linecap:round}
.dial .track{stroke:var(--line2)}
.dial .val.calm{stroke:var(--leaf)}.dial .val.uneasy{stroke:var(--amber)}.dial .val.tense{stroke:var(--coral)}
.dial .needle{transform-box:view-box;transform-origin:150px 150px;transform:rotate(var(--a));animation:swing 1.4s cubic-bezier(.2,.8,.2,1) .15s both}
.dial .needle line{stroke:var(--ink);stroke-width:3;stroke-linecap:round}
.dial .needle circle{fill:var(--ink);stroke:var(--panel);stroke-width:3}
.dial text{fill:var(--dim);font-size:12px}
@keyframes swing{from{transform:rotate(-90deg)}}
.dial-n{margin-top:4px}.dial-n b{font-size:36px;font-weight:300;font-stretch:120%;margin-right:6px}.dial-n span{color:var(--mute);font-size:14px}
.parts{list-style:none;margin:10px 0 0;padding:0}
.parts li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px}
.parts li:last-child{border-bottom:0}
.parts b{font-weight:500}
.parts i{grid-column:1/3;height:6px;border-radius:3px;background:var(--soil);overflow:hidden}
.parts em{display:block;height:100%;border-radius:3px}
.parts em.calm{background:var(--leaf)}.parts em.uneasy{background:var(--amber)}.parts em.tense{background:var(--coral)}
.seg.sm{margin-top:10px}.seg.sm button{padding:7px 4px;font-size:13px}
.htiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:3px;margin-top:12px}
.ht{border-radius:8px;padding:9px 10px;min-height:60px;display:flex;flex-direction:column;justify-content:space-between;gap:6px;transition:background .3s}
.ht span{font-size:12px;line-height:1.25}
.ht b{font-size:15px;font-weight:500;font-stretch:108%}

/* ---- fund picker and baskets ---- */
.lvbar{display:inline-flex;gap:3px;align-items:flex-end;height:18px}
.lvbar i{display:block;width:6px;border-radius:2px;background:var(--line2)}
.lvbar i:nth-child(1){height:6px}.lvbar i:nth-child(2){height:9px}.lvbar i:nth-child(3){height:12px}.lvbar i:nth-child(4){height:15px}.lvbar i:nth-child(5){height:18px}
.lvbar i.on{background:var(--teal)}
.lvls{list-style:none;margin:10px 0 0;padding:0}
.lvls li{display:flex;align-items:center;gap:14px;padding:9px 0;border-bottom:1px solid var(--line)}
.lvls li:last-child{border-bottom:0}
.lvls .grow b{display:block;font-weight:500}.lvls .s{font-size:13px;color:var(--mute)}
.picker .opts{margin-top:14px}
.picker .method b{font-weight:500}
.pickcard{display:flex;align-items:center;gap:16px;text-decoration:none}
.pickcard .grow b{display:block;font-size:17px;font-weight:500;margin:1px 0}
.pickcard .grow .small{display:block}
.pickcard>svg{width:26px;height:26px;color:var(--leaf);flex:none}
.rprof{margin-bottom:18px}
.rprof-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.rprof h1{font-size:clamp(34px,6vw,52px);font-weight:300;font-stretch:122%}
.lvmeter{display:flex;align-items:flex-end;gap:5px}
.lvmeter i{display:block;width:16px;border-radius:4px;background:var(--line2);height:calc(var(--j) * 8px + 6px)}
.lvmeter i.on{background:var(--teal);animation:lvup .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--j) * 90ms)}
.lvmeter span{margin-left:10px;font-size:13px;color:var(--mute);align-self:center}
@keyframes lvup{from{transform:scaleY(.2);opacity:.3}}
.lvmeter i{transform-origin:bottom}
.why{margin:12px 0 10px;padding-left:18px;max-width:80ch}.why li{margin:4px 0;color:var(--ink)}
.bname{font-size:clamp(28px,4vw,40px);font-weight:300;font-stretch:122%;line-height:1.08;margin-top:2px}
.mix{display:flex;gap:2px;height:14px;border-radius:7px;overflow:hidden;margin-top:16px}
.mix i{display:block;height:100%}
.mix.sm{height:8px;border-radius:4px;margin:10px 0 8px}
.blines{margin-top:12px}
.bline{padding:14px 0;border-bottom:1px solid var(--line)}
.bline:last-child{border-bottom:0}
.bline .sw{width:6px;align-self:stretch;border-radius:3px;flex:none}
.bline a.t{text-decoration:none}.bline a.t:hover{text-decoration:underline}
.reasons{list-style:none;margin:8px 0 0 62px;padding:0}
.reasons li{position:relative;padding-left:16px;font-size:14px;color:var(--mute);margin:3px 0}
.reasons li::before{content:"";position:absolute;left:0;top:.6em;width:6px;height:6px;border-radius:50%;background:var(--teal)}
.ainote{margin-top:18px;border-color:rgba(0,218,187,.35)}
.ainote p:first-of-type{font-size:16px;line-height:1.6}
.btest svg{height:130px}
.bband{margin:4px 0 22px}
.bcards{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,1fr);gap:12px;overflow-x:auto;scrollbar-width:none;margin:0 -18px;padding:2px 18px 4px}
.bcards::-webkit-scrollbar{display:none}
@media (min-width:900px){.bcards{grid-auto-flow:row;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));overflow:visible;margin:0;padding:0}}
.bcard{display:flex;flex-direction:column;gap:2px;padding:16px;border-radius:var(--r-m);background:var(--panel);border:1px solid var(--line);text-decoration:none;transition:border-color .15s,background .15s}
.bcard:hover{border-color:var(--line2);background:var(--panel2)}
.bcard.mine{border-color:rgba(0,218,187,.55)}
.bcard b{font-size:17px;font-weight:500;margin-top:8px}
.bcard .s{font-size:13px;color:var(--mute)}

/* ---- a fund among its peers: size by quarter and new money (fund page), the whole category (compare page).
   Two fixed hues name the two funds everywhere: mint for this fund, blue for the one set beside it (as in the
   overlap circles). Green and coral keep their meaning: money in, money out. ---- */
.cmp-h{font-size:clamp(28px,3.6vw,48px);font-weight:300;font-stretch:120%;line-height:1.06;letter-spacing:-.02em;margin:6px 0 10px;max-width:26ch}
.xstats .stat b.up{color:var(--leaf)}.xstats .stat b.down{color:var(--coral)}
@media (max-width:600px){.cmp-stats{grid-template-columns:1fr 1fr;gap:10px}.cmp-stats .stat{padding:12px 14px}.cmp-stats .stat b{font-size:18px}}
/* fund size by quarter: columns of average size over bars of new money either side of a line */
.szp-now{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-top:6px}
.szp-now b{font-size:32px;font-weight:300;font-stretch:122%;letter-spacing:-.01em}
.sum4{display:grid;grid-template-columns:repeat(4,minmax(0,auto));justify-content:space-between;gap:12px 10px;margin-top:14px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.sum4 b{display:block;font-weight:500;font-size:16px}
.sum4 span{display:block;font-size:12px;color:var(--mute);line-height:1.3;margin-top:1px}
@media (max-width:520px){.sum4{grid-template-columns:1fr 1fr}}
.szp-say{font-size:15px;margin-top:12px}
.sz-l{font-size:12px;color:var(--mute);margin:14px 0 6px}
.sz-cols{position:relative;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:5px}
.sz-cols .sz-l.low{position:absolute;left:0;top:104px;margin:0;pointer-events:none}
.sz-c{display:block;padding:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:6px}
.sz-s{display:flex;align-items:flex-end;height:96px}
.sz-s i{display:block;width:100%;border-radius:4px 4px 1px 1px;background:#5EF0D6;opacity:.38;transition:opacity .15s}
.sz.b .sz-s i{background:#3987E5;opacity:.5}
.sz-c.on .sz-s i{opacity:1}
.sz-f{display:block;position:relative;height:56px;margin-top:30px}
.sz-f::before{content:"";position:absolute;left:-3px;right:-3px;top:50%;height:1px;background:var(--line2)}
.sz-f i{position:absolute;left:20%;right:20%;border-radius:3px;opacity:.6;transition:opacity .15s}
.sz-f.in i{bottom:50%;background:var(--leaf)}.sz-f.out i{top:50%;background:var(--coral)}
.sz-c.on .sz-f i{opacity:1}
.sz-x{display:flex;justify-content:space-between;font-size:11px;color:var(--dim);margin-top:6px}
.sz-cap{margin-top:8px;color:var(--mute);min-height:2.9em}
.standl{list-style:none;margin:6px 0 0;padding:0}
.standl li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px}
.standl li:last-child{border-bottom:0}
.standl span{color:var(--mute)}.standl b{font-weight:500;text-align:right}
.mgrs{list-style:none;margin:6px 0 0;padding:0}
.mgrs>li{padding:12px 0;border-bottom:1px solid var(--line)}
.mgrs>li:last-child{border-bottom:0}
.mgrs>li>b{display:block;font-weight:500;font-size:17px}
.mgrs>li>span{display:block}
.mgrs .also{list-style:none;margin:8px 0 0;padding:0;font-size:13px}
.mgrs .also li{display:flex;justify-content:space-between;gap:12px;padding:3px 0}
.mgrs .also span{min-width:0;overflow-wrap:anywhere}
.mgrs .also span.num{flex:none;color:var(--mute);text-align:right;white-space:nowrap}
/* the field: one circle per fund */
.pf-ctl{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;margin-top:14px}
.pf-ctl .chips{flex:1 1 300px;min-width:0;margin:0;padding:2px}
.pf-col{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;flex:0 1 auto;min-width:0;max-width:100%}
.pf-col>span{white-space:nowrap}
.pf-seg{flex:1 1 auto;min-width:0}
.pf-seg button{padding:8px 14px;white-space:nowrap}
.pf{position:relative;height:380px;margin-top:14px}
@media (min-width:900px){.pf{height:470px}}
.pf-grid i{position:absolute;top:22px;bottom:30px;width:1px;background:var(--line)}
.pf-grid span{position:absolute;bottom:-22px;left:0;transform:translateX(-50%);font-size:11px;font-style:normal;color:var(--dim);white-space:nowrap}
.pf-axis{position:absolute;left:0;top:0;font-size:12px;color:var(--mute)}
.pb{position:absolute;padding:0;border:0;background:none;border-radius:50%;transform:translate(-50%,-50%);cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:left .7s cubic-bezier(.2,.8,.2,1),top .7s cubic-bezier(.2,.8,.2,1),width .5s,height .5s,opacity .3s}
.pb.off{opacity:0;pointer-events:none}
.pb i{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;font-style:normal;background:#2E2E2E;color:#fff;transition:background-color .4s,filter .15s;
  animation:pbin .65s cubic-bezier(.2,.8,.2,1) both,pbob 7s ease-in-out infinite;animation-delay:calc(var(--i) * 20ms),calc(var(--i) * -.61s)}
.pb i.na{background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.12) 0 1px,transparent 1px 6px)}
.pb b{font-size:12px;font-weight:600;white-space:nowrap;pointer-events:none}
.pb:hover i{filter:brightness(1.18)}
.pb.me i{box-shadow:0 0 0 3px #000,0 0 0 6px #5EF0D6}
.pb.vs i{box-shadow:0 0 0 3px #000,0 0 0 6px #3987E5}
.pb:focus-visible{outline:none}.pb:focus-visible i{box-shadow:0 0 0 3px #000,0 0 0 6px #fff}
@keyframes pbin{from{transform:scale(0);opacity:0}to{transform:none;opacity:1}}
@keyframes pbob{0%,100%{translate:0 -2.5px}50%{translate:0 2.5px}}
.pf-tag{position:absolute;z-index:2;transform:translate(-50%,-100%);padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;color:#000;white-space:nowrap;pointer-events:none;
  transition:left .7s cubic-bezier(.2,.8,.2,1),top .7s cubic-bezier(.2,.8,.2,1)}
.pf-tag.below{transform:translate(-50%,0)}
.pf-tag.a{background:#5EF0D6}.pf-tag.b{background:#3987E5}
.pf-tip{position:absolute;z-index:3;transform:translate(-50%,-100%);width:max-content;max-width:min(300px,84vw);padding:9px 12px;border-radius:12px;background:rgba(28,28,28,.97);border:1px solid var(--line2);font-size:13px;line-height:1.45;pointer-events:none}
.pf-tip.below{transform:translate(-50%,0)}
.pf-tip b{display:block;font-weight:600}.pf-tip span{display:block;color:var(--mute)}.pf-tip em{font-style:normal}
.pf-leg{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;font-size:12px;color:var(--mute);margin-top:8px}
.pf-leg .lg{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.pf-leg i{display:block;flex:none;width:12px;height:12px;border-radius:50%}
.pf-leg .ramp{width:min(150px,26vw);height:8px;border-radius:4px;background:linear-gradient(90deg,#FF6352,#2E2E2E 50%,#1FCB79)}
.pf-leg .sw{background:#2E2E2E repeating-linear-gradient(135deg,rgba(255,255,255,.14) 0 1px,transparent 1px 5px)}
.pf-leg .ring{box-shadow:inset 0 0 0 2.5px #5EF0D6}
.pf-leg .ring.b{box-shadow:inset 0 0 0 2.5px #3987E5}
/* side by side: bars grow from the middle outwards */
.cmpcols{margin-top:16px}
@media (min-width:900px){.cols.cmpcols{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}}
.hh{margin-top:14px}
.hh-head,.hh-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(84px,132px) minmax(0,1fr);gap:6px 14px;align-items:center}
.hh-head{align-items:start;padding-bottom:14px;border-bottom:1px solid var(--line)}
.hh-head .a{text-align:right}
.hh-head .a b{display:block;font-weight:600;line-height:1.25;color:#5EF0D6}
.hh-head span,.hh-head a{display:block;font-size:13px;color:var(--mute);margin-top:4px}
.hh-head a{color:var(--teal);text-decoration:none}
.hh-head .lab{align-self:center;text-align:center;margin:0}
.hh select{width:100%;height:46px;padding:0 12px;background:var(--soil);border:1px solid #3987E5;border-radius:12px;font-size:15px;font-weight:600;color:var(--ink);outline-offset:3px}
.hh-row{padding:11px 0;border-bottom:1px solid var(--line)}
.hh-row:last-child{border-bottom:0}
.hh-row .lab{justify-self:center;text-align:center;font-size:13px;line-height:1.3;color:var(--mute)}
.hh-row .a,.hh-row .b{display:flex;flex-direction:column;gap:6px;min-width:0}
.hh-row .a{align-items:flex-end;text-align:right}.hh-row .b{align-items:flex-start}
.hh-row b{font-weight:500;font-size:16px}
.hh-row small{font-size:12px;font-weight:400;color:var(--mute)}
.hh-row .bar{display:block;height:6px;border-radius:3px;width:var(--w);background:#5EF0D6;animation:hhgrow .55s cubic-bezier(.2,.8,.2,1) both}
.hh-row .b .bar{background:#3987E5}
.hh-row .a .bar.neg{background:repeating-linear-gradient(135deg,#5EF0D6 0 2px,transparent 2px 5px)}
.hh-row .b .bar.neg{background:repeating-linear-gradient(135deg,#3987E5 0 2px,transparent 2px 5px)}
@keyframes hhgrow{from{width:0}}
.hh-row.mg{align-items:start}
.hh-row.mg .a,.hh-row.mg .b{gap:10px}
.hh-row.mg span{display:block}
.hh-row.mg b{display:block;font-size:15px}
.hh-row.mg small{display:block;margin-top:1px}
.hh-row.mg .none{font-size:13px;color:var(--dim)}
@media (max-width:640px){
  .hh-head{grid-template-columns:1fr;gap:8px}
  .hh-head .a{text-align:left}.hh-head .lab{text-align:left;align-self:start}
  .hh-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"lab lab" "a b";gap:8px 16px}
  .hh-row .lab{grid-area:lab;justify-self:start;text-align:left}
  .hh-row .a{grid-area:a;align-items:flex-start;text-align:left}.hh-row .b{grid-area:b}
  .hh-row b{font-size:15px}
}
.szpair h3{display:flex;align-items:center;gap:8px;margin-top:18px;font-size:15px}
.szpair h3 i{width:10px;height:10px;border-radius:3px;flex:none}
.szpair h3 i.va{background:#5EF0D6}.szpair h3 i.vb{background:#3987E5}
/* side by side on a wide screen: the two panels end level, and the charts take up whatever height the list of
   figures beside them needs (their size columns stretch; the new-money band keeps its height) */
@media (min-width:900px){
  .cols.cmpcols{align-items:stretch}
  .cmpcols>.panel{display:flex;flex-direction:column}
  .szpair{flex:1;display:flex;flex-direction:column}
  .szpair .sz{flex:1;display:flex;flex-direction:column}
  .szpair .sz-cols{flex:1}
  .szpair .sz-c{display:flex;flex-direction:column}
  .szpair .sz-s{flex:1;height:auto;min-height:96px}
  .szpair .sz-cols .sz-l.low{top:auto;bottom:64px}
}
/* every fund in the category */
.pt-wrap{overflow-x:auto;margin:12px -20px 0;padding:0 20px;-webkit-overflow-scrolling:touch}
.pt{border-collapse:collapse;width:100%;min-width:900px;font-size:14px}
.pt th,.pt td{padding:10px 10px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap;vertical-align:middle}
.pt .tx{text-align:left}
.pt thead th{padding-top:2px;font-weight:500;font-size:13px;color:var(--mute)}
.pt thead button{display:inline-flex;align-items:center;gap:4px;padding:6px 0;border:0;background:none;font:inherit;color:inherit;cursor:pointer}
.pt thead th[aria-sort="ascending"] button,.pt thead th[aria-sort="descending"] button{color:var(--ink)}
.pt thead i{font-style:normal;color:var(--leaf)}
.pt tbody th{position:sticky;left:0;z-index:1;min-width:180px;max-width:300px;white-space:normal;background:#000;font-weight:500}
.pt tbody th b{display:block;font-weight:500;line-height:1.3}
.pt small{display:block;font-size:12px;font-weight:400;color:var(--mute)}
.pt td.mg{min-width:150px;max-width:230px;white-space:normal;font-size:13px;color:var(--mute)}
.pt .rk{width:30px;padding-left:0;color:var(--dim)}
.pt tbody tr{cursor:pointer}
.pt tbody tr:hover td,.pt tbody tr:hover th{background:#111}
.pt tr.me td,.pt tr.me th,.pt tr.me:hover td,.pt tr.me:hover th{background:#1C1C1C;cursor:default}
.pt tr.me th b{color:#5EF0D6}
.pt tr.vs td,.pt tr.vs th{background:#161616}
.pt tr.vs th b{color:#7FB4F5}
.swipe-hint{display:none}
@media (max-width:899px){
  .swipe-hint{display:inline}
  .pt{font-size:13px}
  .pt th,.pt td{padding:9px 8px}
  .pt tbody th{min-width:128px;max-width:150px}
  .pt td.mg{min-width:124px}
}
.cmp-src{max-width:150ch;margin-top:16px}

/* ---- fund page: sections as tabs, and the analysis (jobs/analysis.py). Chart colours: this fund #5EF0D6, the
   index #3987E5, the category average a neutral grey (context, not a series of its own). ---- */
.ftop{display:flex;align-items:flex-end;justify-content:space-between;gap:20px 28px;flex-wrap:wrap}
.ft-id{min-width:0;flex:1 1 420px}
.ft-buy{flex:0 1 400px}.ft-buy .small{margin-top:8px;text-align:right}
.ftabs{position:sticky;top:55px;z-index:15;display:flex;gap:4px;margin:18px calc(-1 * var(--gut)) 0;padding:8px var(--gut);background:rgba(0,0,0,.9);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.ftabs::-webkit-scrollbar{display:none}
.ftabs button{flex:none;padding:9px 16px;border-radius:999px;border:0;background:transparent;color:var(--mute);font-weight:600;font-size:15px;cursor:pointer;white-space:nowrap}
.ftabs button:hover{color:var(--ink)}
.ftabs button.on{background:var(--panel2);color:var(--ink)}
.fpane[hidden]{display:none}
.pgrid{display:grid;gap:16px;margin-top:16px;grid-template-columns:minmax(0,1fr)}
.pgrid>.panel{margin-top:0;min-width:0}
@media (min-width:900px){.pgrid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.pgrid>.wide{grid-column:1/-1}}
.pnote{font-size:13px;color:var(--mute)}
.gr-bar{display:flex;align-items:center;justify-content:space-between;gap:10px 18px;flex-wrap:wrap;margin-top:10px}
.gr-bar h2{margin:0}.panel>.gr-bar:first-child{margin-top:0}
.gr-bar .seg{margin-top:0;flex:0 1 320px}
.lgd{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px;color:var(--mute)}
.lgd li{display:flex;align-items:center;gap:7px}
.lgd i{width:14px;height:4px;border-radius:2px;flex:none}
.lgd i.dash{background:repeating-linear-gradient(90deg,currentColor 0 4px,transparent 4px 7px)}
.lgd b{color:var(--ink);font-weight:500}
.lchart{position:relative;margin-top:12px;touch-action:pan-y}
.lchart svg{display:block;width:100%;height:220px}
.lchart.tall svg{height:300px}.lchart.short svg{height:150px}
@media (min-width:1280px){.lchart.tall svg{height:380px}}
.lchart .tip{position:absolute;top:0;pointer-events:none;background:rgba(28,28,28,.96);border:1px solid var(--line2);border-radius:10px;padding:7px 10px;font-size:13px;white-space:nowrap;transform:translateX(-50%);display:none;z-index:2}
.lchart .tip b{display:block;font-weight:500;color:var(--mute);font-size:12px;margin-bottom:2px}
.lchart .tip span{display:flex;align-items:center;gap:6px}
.lchart .tip i{width:8px;height:8px;border-radius:2px;flex:none}
.lchart .tip em{font-style:normal;font-weight:600;margin-left:auto;padding-left:10px}
.ft{border-collapse:collapse;width:100%;font-size:15px;margin-top:4px}
.ft th,.ft td{padding:11px 8px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}
.ft tbody tr:last-child th,.ft tbody tr:last-child td{border-bottom:0}
.ft thead th{font-weight:500;font-size:12px;color:var(--mute);white-space:normal;vertical-align:bottom;padding-top:2px}
.ft .tx{text-align:left;padding-left:0}
.ft tbody th{font-weight:400;color:var(--mute)}
.ft small{display:block;font-size:11px;color:var(--dim)}
.ft td b{font-weight:600}
.ft td:last-child,.ft th:last-child{padding-right:0}
.mgrid{border-collapse:separate;border-spacing:3px;width:100%;min-width:660px;font-size:12.5px;margin-top:6px}
.mgrid th{font-weight:500;color:var(--mute);font-size:12px;padding:4px 2px;text-align:center}
.mgrid th.tx{text-align:left}
.mgrid td{text-align:center;padding:7px 2px;border-radius:6px;background:var(--soil);white-space:nowrap;min-width:40px}
.mgrid td.yt{background:none;font-weight:600;font-size:13px;text-align:right;padding-right:0}
.ybars{margin-top:10px}.ybars svg{display:block;width:100%}
.ybars .yg rect{transition:opacity .12s}.ybars .yg.off rect:not(.yh){opacity:.32}
.ybars .yh{cursor:pointer;outline-offset:-2px}
.yr-cap{min-height:2.9em;margin-top:6px}
.bw{margin-top:8px}
.bw-row{display:grid;grid-template-columns:minmax(84px,1fr) minmax(0,1.2fr) minmax(0,1.2fr);gap:10px;padding:11px 0;border-bottom:1px solid var(--line);align-items:baseline}
.bw-row:last-child{border-bottom:0}
.bw-t{color:var(--mute);font-size:14px}
.bw-c b{display:block;font-size:18px;font-weight:500}.bw-c span{font-size:12px;color:var(--dim)}
.gl-top{display:grid;gap:16px 20px;grid-template-columns:minmax(0,1fr);align-items:center;margin-top:6px}
@media (min-width:520px){.gl-top{grid-template-columns:minmax(150px,200px) minmax(0,1fr)}}
.gl-rm{text-align:center}.gl-rm p{margin-top:2px}.gl-rm b{display:block;font-weight:600}
.rmeter{display:block;width:100%;max-width:220px;margin:0 auto}
.gl-bands{display:grid;gap:14px}
.gl-bands.big{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px 24px;margin-top:14px}
.bandm{display:grid;gap:2px}
.bm-t{font-size:13px;color:var(--mute)}
.bandm b{font-size:18px;font-weight:500;font-stretch:110%}
.bm-s{display:grid;grid-template-columns:repeat(5,1fr);gap:3px;margin:4px 0 2px}
.bm-s i{height:6px;border-radius:3px;background:var(--panel2)}
.bm-s i.on{background:#6E6E6E}.bm-s i.at{background:var(--ink)}
.gl-stats{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}
.rm-big{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:8px 20px;align-items:center;margin-top:8px}
@media (max-width:480px){.rm-big{grid-template-columns:minmax(0,1fr);text-align:center}}
.rm-l{font-size:24px;font-weight:300;font-stretch:118%}.rm-l b{font-weight:600}
.rm-say{margin-top:14px;padding:10px 14px;border-radius:12px;background:var(--soil);border:1px solid var(--line);font-size:14px}
.rk-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;padding:14px 0;border-bottom:1px solid var(--line);align-items:start}
.rk-n b{display:block;font-weight:500;font-size:16px}.rk-n>span{display:block;font-size:13px;color:var(--mute);max-width:62ch}
.rk-v{text-align:right}.rk-v b{display:block;font-size:20px;font-weight:500;font-stretch:110%}
.rk-s{grid-column:1/-1}
.rk-t{position:relative;height:18px}
.rk-t::before{content:"";position:absolute;left:0;right:0;top:7px;height:4px;border-radius:2px;background:var(--panel2)}
.rk-c{position:absolute;top:2px;width:2px;height:14px;margin-left:-1px;background:var(--mute)}
.rk-d{position:absolute;top:2px;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:#5EF0D6;box-shadow:0 0 0 2px #000}
.rk-x{display:flex;justify-content:space-between;font-size:11px;color:var(--dim)}
@media (min-width:900px){
  .rk-row{grid-template-columns:minmax(0,1.3fr) 150px minmax(0,1fr);align-items:center;gap:6px 28px}
  .rk-s{grid-column:auto}
}
.falls{list-style:none;margin:10px 0 0;padding:0}
.falls li{display:grid;grid-template-columns:78px minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px;align-items:baseline}
.falls li:last-child{border-bottom:0}.falls b{font-size:17px;font-weight:500}
.falls span{color:var(--mute)}
.seg3.mix{height:14px}
.mx-shares{background:#5EF0D6}.mx-gov{background:#3987E5}.mx-other{background:#B48EF5}.mx-cash{background:#9E9E9E}
.mixl{margin-top:10px}
.allh summary{display:flex;align-items:baseline;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}
.allh summary::-webkit-details-marker{display:none}
.allh[open] summary span{display:none}
.hl{list-style:none;margin:12px 0 0;padding:0;column-gap:36px;font-size:14px}
@media (min-width:900px){.hl{columns:2}}
@media (min-width:1400px){.hl{columns:3}}
.hl li{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--line);break-inside:avoid}
.hl-n{min-width:0;overflow-wrap:anywhere}.hl small{display:block;font-size:12px;color:var(--dim)}
.hl b{font-weight:500}
.taxl{margin:10px 0 0;padding-left:18px;font-size:15px}.taxl li{padding:4px 0}
/* a word that explains itself, and the box that holds the explanation */
.term{text-decoration:underline dotted var(--dim);text-decoration-thickness:1px;text-underline-offset:3px;cursor:help}
.term:hover,.term:focus-visible{text-decoration-color:var(--ink)}
.tag[data-tip],.bm-s[data-tip],.rk-t[data-tip]{cursor:help}
.tipbox{position:absolute;z-index:60;max-width:min(300px,calc(100vw - 16px));background:#1C1C1C;border:1px solid var(--line2);border-radius:12px;padding:9px 12px;font-size:13px;line-height:1.45;color:var(--ink);font-weight:400;box-shadow:0 8px 24px rgba(0,0,0,.6);pointer-events:none}
/* donuts: the chart beside its legend; a slice lights up alone when pointed at */
.pie{display:flex;align-items:center;gap:14px 22px;flex-wrap:wrap}
.pie svg{width:150px;height:150px;flex:none}
.pie.sm svg{width:104px;height:104px}
.pie .legend{flex:1 1 190px;min-width:0}
.pie .legend li{gap:9px;padding:5px 0;border-bottom:1px solid var(--line)}
.pie .legend li:last-child{border-bottom:0}
.pie .legend b{padding-left:10px}
.pie .sl{cursor:help;outline:none;transition:opacity .12s}
.pie svg:hover .sl{opacity:.38}
.pie svg .sl:hover,.pie svg .sl:focus-visible{opacity:1}
.pie .sl:focus-visible{stroke:#F2F2F2;stroke-width:2}
.pc-t{fill:var(--ink);font-size:26px;font-weight:300;font-stretch:118%}
.pc-s{fill:var(--mute);font-size:11px}
.pie.sm .pc-t{font-size:30px}.pie.sm .pc-s{font-size:14px}
.rl-grid{display:grid;gap:18px 32px;margin-top:14px;grid-template-columns:minmax(0,1fr)}
@media (min-width:900px){.rl-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:start}}
.rl-grid h3{font-size:15px;margin-bottom:8px}
.ft td.mute{color:var(--mute)}

/* ---- Plan pages (app/more.py): hub, statement, tax, goals, family, alerts, SIP controls ---- */
.flash{display:flex;gap:10px;align-items:flex-start;background:var(--soil);border:1px solid var(--line2);color:var(--ink);border-radius:14px;padding:12px 14px;margin:0 0 14px;font-size:15px}
.flash::before{content:"";flex:0 0 8px;height:8px;border-radius:50%;background:var(--leaf);margin-top:7px}
.flash.bad{background:rgba(255,122,89,.1);border-color:rgba(255,122,89,.35);color:#FFC2B1}
.flash.bad::before{background:var(--coral)}
.asbar{display:flex;align-items:center;justify-content:center;gap:10px 16px;flex-wrap:wrap;padding:10px var(--gut);background:#1C1C1C;border-bottom:1px solid var(--line2);font-size:14px;text-align:center}
.hub{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:16px;margin-top:20px}
.tile{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 14px;align-content:start;padding:20px;border:1px solid var(--line);border-radius:var(--r-l);text-decoration:none;transition:border-color .15s,background .15s}
.tile:hover{border-color:var(--line2);background:#0A0A0A}
.tile svg{grid-row:1/4;width:30px;height:30px;color:var(--teal);margin-top:2px}
.tile h2{font-size:15px;font-weight:500;color:var(--mute);font-stretch:100%}
.tile b{grid-column:2;font-size:24px;font-weight:300;font-stretch:118%;line-height:1.2;letter-spacing:-.01em}
.tile span{grid-column:2;font-size:14px;color:var(--mute);line-height:1.45}
.steps{margin:10px 0 0;padding-left:22px;font-size:15px}.steps li{padding:5px 0}.steps b{font-weight:600}
.input.file{height:auto;padding:14px 16px;font-size:15px}
.input.file::file-selector-button{margin-right:12px;padding:8px 14px;border-radius:10px;border:1px solid var(--line2);background:var(--panel2);color:var(--ink);font:inherit;font-weight:600;cursor:pointer}
.inline{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.inline .input,.inline .prefix{flex:1 1 180px;width:auto;min-width:0}
.inline .prefix input{width:100%;height:54px;padding:0 16px 0 4px;font-size:17px;outline:none;color:inherit}
.inline .btn{flex:0 0 auto}
select.input{appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,#9E9E9E 50%),linear-gradient(135deg,#9E9E9E 50%,transparent 50%);background-position:calc(100% - 22px) 24px,calc(100% - 16px) 24px;background-size:6px 6px,6px 6px;background-repeat:no-repeat;padding-right:40px;color:var(--ink)}
select.input option{background:#111;color:#F2F2F2}
.tdot{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:9px;vertical-align:1px}
.hrow{align-items:flex-start}
.hrow .acts{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:6px;font-size:13px}
.hrow .acts a{color:var(--teal);text-decoration:none;font-weight:500}
.hrow .acts a:hover{text-decoration:underline}
.callout{display:flex;align-items:center;justify-content:space-between;gap:12px 18px;flex-wrap:wrap;margin-top:12px;padding:14px 16px;border-radius:16px;background:var(--soil);border:1px solid var(--line)}
.callout p{flex:1 1 320px;font-size:14px;color:var(--mute)}.callout b{color:var(--ink);font-weight:600}
@media (min-width:700px){.ft.wd{min-width:640px}}
.ft.wd th.tx{white-space:normal;min-width:190px}.ft.wd .wn{color:var(--ink);font-weight:500}
.ft td small,.ft td.num small{display:block;font-size:11px;color:var(--dim);font-weight:400}
.ft tr.sub td{padding-top:0;white-space:normal;text-align:left}
.ft tr:has(+tr.sub) th,.ft tr:has(+tr.sub) td{border-bottom:0}
.prog{display:block;height:8px;border-radius:4px;background:var(--panel2);overflow:hidden;margin:8px 0}
.prog i{display:block;height:100%;min-width:3px;border-radius:4px;background:var(--grad)}
.prog.tall{height:12px;border-radius:6px;margin-top:12px}
.gcard{display:grid;grid-template-columns:86px minmax(0,1fr);gap:4px 16px;align-items:center;text-decoration:none}
.gcard:hover{border-color:var(--line2)}
.gplant .sprout{width:86px;height:86px;margin:0}
.gplant.big .sprout{width:110px;height:110px}
.gbody{display:block;min-width:0}
.gname{display:block;font-size:20px;font-weight:500;font-stretch:108%;margin-top:2px}
.gline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;color:var(--mute)}
.gline b{color:var(--ink);font-weight:600;font-size:16px}.gline .pill{margin-left:auto}
.ghead{display:flex;align-items:center;gap:16px}
.fam.me{border-color:var(--line2)}
.famacts{display:flex;align-items:center;gap:10px 12px;flex-wrap:wrap;margin-top:12px}
.chg{list-style:none;margin:0;padding:0}
.chg li{display:grid;gap:3px;padding:14px 0;border-bottom:1px solid var(--line)}
.chg li:last-child{border-bottom:0}.chg li:first-child{padding-top:2px}
.chg-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.chg .pill{background:var(--panel2);color:var(--mute)}.chg .pill.ok{background:rgba(0,250,149,.12);color:var(--leaf)}
.chg b{font-weight:500}.chg li>span{font-size:15px}
.panel.due{border-color:rgba(245,196,81,.5)}
.mvbtns{display:grid;gap:10px;margin-top:12px}
@media (min-width:520px){.mvbtns{grid-template-columns:repeat(3,minmax(0,1fr))}.mvbtns .btn{padding:0 10px;font-size:14px}}
.prefix input{flex:1 1 auto;min-width:0}
.prefix input[data-amount]{width:100%!important}
@media (min-width:900px){.cols.flat>.panel+.panel{margin-top:0}}
@media (max-width:699px){
  .ft.stack{display:block}
  .ft.stack thead{display:none}
  .ft.stack tbody{display:block}
  .ft.stack tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;padding:14px 0;border-bottom:1px solid var(--line)}
  .ft.stack tbody tr:last-child{border-bottom:0}
  .ft.stack tbody th,.ft.stack tbody td{display:block;padding:0;border:0;text-align:left;white-space:normal}
  .ft.stack tbody th.tx{grid-column:1/-1;min-width:0}
  .ft.stack td[data-l]::before{content:attr(data-l);display:block;font-size:11px;color:var(--dim);font-weight:500;margin-bottom:1px}
  .ft.stack tbody tr.sub{display:block;padding:0 0 14px}
  .ft.stack tbody tr:has(+tr.sub){border-bottom:0;padding-bottom:8px}
}
.tabbar{grid-template-columns:repeat(5,1fr)}
.tabbar a{font-size:11px}
@media print{.topbar,.tabbar,.foot,.back,.asbar,form,.btn,aside{display:none!important}body,.app{background:#fff;color:#000}.panel{border-color:#999}.mute,.dim,.small{color:#333!important}}

@media (prefers-reduced-motion:reduce){
  .tmap .tl,.tmap .fl,.tmap .sh{animation:none}.dial .needle{animation:none}.lvmeter i.on{animation:none}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important}
  .garden .stem,.garden .bud{stroke-dashoffset:0}.garden .leaf{transform:none;opacity:1}
}
/* ---- Mutual Fund X-Ray (app/xray.py, templates/xray): public pages, so no tab bar ---- */
.app.xr{padding-bottom:28px}
.xr-now{margin:8px 0 6px;font-size:16px;line-height:1.5;color:var(--ink,#F4F6F6)}.xr-now b{font-weight:600}
/* the report's tabs all show on a phone: on a 390px screen "Tax" sat wholly off-screen, with nothing to say the row
   scrolls. With five tabs (Nominee & KYC came on 16 Nov 2026) the long names need 622px, and below 900px the page
   is a 560px column: so the short names are used there, and packed closer up to 520px (they need 498px as they are) */
.ftabs .sm{display:none}
@media (max-width:899px){.app.xr .ftabs .lg{display:none}.app.xr .ftabs .sm{display:inline}}
@media (max-width:520px){
  .app.xr .ftabs{gap:2px}
  .app.xr .ftabs button{flex:1 1 auto;padding:9px 6px;font-size:clamp(12px,3.4vw,15px)}
}
/* something inside a tab that an address or a link goes to stops below the header and the row of tabs */
#papers,#nom-why,#papers-missing,#direct,#versus,#falls,#who{scroll-margin-top:128px}
@media (max-width:339px){.app.xr .ftabs{padding-left:10px;padding-right:10px}.app.xr .ftabs button{padding:9px 4px}}
/* on the narrowest phones a figure with words in it ("about ₹3,30,780") may wrap, where it used to push the page 12px wide */
@media (max-width:339px){.xstats .stat b.num{white-space:normal}}
.xr-wa{margin-left:auto;font:inherit;font-size:13px;font-weight:600;color:var(--ink);border:1px solid var(--line2);border-radius:999px;padding:7px 14px;white-space:nowrap;text-decoration:none}
.xr-wa:hover{background:var(--panel2)}
.xr-notes li{padding:6px 0}
.xr-bars{list-style:none;margin:10px 0 0;padding:0}
.xr-bars li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 14px;align-items:baseline;padding:10px 0;border-bottom:1px solid var(--line)}
.xr-bars li:last-child{border-bottom:0}
.xr-bl{display:flex;flex-direction:column;min-width:0}
.xr-bl b{font-weight:500;overflow-wrap:anywhere}
.xr-bars .num{text-align:right;font-weight:500}
.xr-bars .num small{display:block;font-size:11px;color:var(--dim);font-weight:400}
.xr-bars .prog{grid-column:1/-1;margin:4px 0 0;height:5px}
.xr-pairs{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:14px;margin-top:12px}
.xr-pair{border:1px solid var(--line);border-radius:var(--r-m);padding:10px 14px 14px;text-align:center}
.xr-pair p{font-size:14px;margin-top:6px}.xr-pair b{font-weight:500}
.xr-pair .venn{max-width:220px;margin-top:0}
.xr-desk{border-color:rgba(245,196,81,.5);margin-bottom:16px}
.xr-acts{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.ft.xr-funds .wn a,.ft.xr-desk-t .wn a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--line2);text-underline-offset:3px}
.ft.xr-funds .wn a:hover,.ft.xr-desk-t .wn a:hover{text-decoration-color:var(--ink)}
.ft.xr-funds th.tx small .tdot{width:8px;height:8px;margin-right:6px}
tr.xr-new th .wn a{font-weight:600}
@media (min-width:700px){.ft.xr-funds{min-width:980px}.ft.xr-desk-t{min-width:900px}}
/* X-Ray: one holding among the funds of its category (templates/xray/category.html) */
.xr-more{display:block;width:max-content;max-width:100%;margin-top:6px;font-size:14px;color:var(--teal);font-weight:500;text-decoration:none;white-space:normal}
.xr-more:hover{text-decoration:underline}
.xr-say{margin-top:8px;max-width:78ch;font-size:17px;line-height:1.5;color:var(--ink)}
.xr-where{display:grid;gap:30px;margin-top:22px}
.xr-wrow{display:grid;grid-template-columns:minmax(170px,236px) minmax(0,1fr);gap:8px 28px;align-items:center}
.xr-wl .k{display:block;font-size:14px;line-height:1.3;color:var(--mute)}
.xr-wl b{display:block;margin-top:3px;font-size:27px;line-height:1.12;font-weight:600;font-stretch:112%;letter-spacing:-.01em}
.xr-wl b small{font-size:14px;font-weight:400;font-stretch:100%;letter-spacing:0;color:var(--mute)}
.xr-wl .say{display:block;margin-top:5px;font-size:13px;line-height:1.4;color:var(--mute)}
.xr-mid{position:relative;height:16px;margin:0 9px;font-size:12px;line-height:16px;color:var(--dim)}
.xr-mid i{position:absolute;top:0;font-style:normal;white-space:nowrap}
.xr-field{position:relative;height:56px;margin:2px 9px 0}
.xr-field .rail{position:absolute;left:-9px;right:-9px;top:50%;height:1px;background:var(--line2)}
.xr-field .wash{position:absolute;left:-9px;top:0;bottom:0;width:calc(var(--me) * 1% + 9px);background:linear-gradient(90deg,rgba(94,240,214,0),rgba(94,240,214,.17));border-right:1px solid rgba(94,240,214,.6)}
.xr-field .mid{position:absolute;top:0;bottom:0;width:1px;margin-left:-.5px;background:rgba(242,242,242,.5)}
.xr-field .d{position:absolute;left:calc(var(--x) * 1%);top:50%;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:#8A8A8A;transform:translateY(var(--y,0px));transition:transform .45s cubic-bezier(.2,.8,.2,1),opacity .2s,background-color .15s,box-shadow .15s;cursor:help}
.xr-field .d::before{content:"";position:absolute;inset:-6px;border-radius:50%}
.xr-field .d.yours{width:10px;height:10px;margin:-5px 0 0 -5px;background:#3987E5}
.xr-field .d.me{width:16px;height:16px;margin:-8px 0 0 -8px;background:#5EF0D6;box-shadow:0 0 0 4px rgba(94,240,214,.2);z-index:2}
.xr-field .d.me::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:1.5px solid #5EF0D6;opacity:0;animation:xr-here 2.6s ease-out infinite}
@keyframes xr-here{0%{transform:scale(.7);opacity:.7}70%,100%{transform:scale(1.9);opacity:0}}
.xr-field .flag{position:absolute;left:calc(var(--x) * 1%);top:50%;z-index:2;transform:translate(15px,-50%);padding:2px 9px;border-radius:999px;background:var(--night);border:1px solid rgba(94,240,214,.55);color:#5EF0D6;font-size:14px;line-height:20px;font-weight:600;white-space:nowrap;pointer-events:none}
.xr-field .flag.l{transform:translate(calc(-100% - 15px),-50%)}
.xr-ends{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:3px;font-size:12px;line-height:17px;color:var(--dim)}
.xr-read{flex:1 1 0;min-width:0;text-align:center;font-style:normal;font-size:13px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xr-stand.picking .xr-field .d:not(.pick):not(.me){opacity:.36}
.xr-field .d.pick{background:#F2F2F2;box-shadow:0 0 0 3px rgba(242,242,242,.25);z-index:3}
.xr-field .d.pick:not(.me){transform:translateY(var(--y,0px)) scale(1.45)}
.xr-field .d.me.pick{background:#5EF0D6;box-shadow:0 0 0 6px rgba(94,240,214,.32)}
.xr-key{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:20px;font-size:13px;color:var(--mute)}
.xr-key i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px}
.xr-key i.ln{width:1px;height:14px;border-radius:0;vertical-align:-2px}
@media (prefers-reduced-motion:reduce){.xr-field .d{transition:none}.xr-field .d.me::after{animation:none}}
.xr-jump{color:var(--teal);text-decoration:none}
.xr-jump:hover{text-decoration:underline}
.xr-sort{display:none}
#all,.ft.xr-cat tr.me{scroll-margin-top:76px}
.ft.xr-cat thead th a{color:inherit;text-decoration:none;border-bottom:1px dotted var(--dim);padding-bottom:1px}
.ft.xr-cat thead th a:hover{color:var(--ink)}
.ft.xr-cat thead th a.on{color:var(--ink);border-bottom:1px solid var(--ink)}
.ft.xr-cat tr.me th,.ft.xr-cat tr.me td{background:var(--panel2)}
.ft.xr-cat tr.me th{box-shadow:inset 3px 0 0 #5EF0D6;padding-left:12px}
.ft.xr-cat tr.yours th{box-shadow:inset 3px 0 0 #3987E5;padding-left:12px}
.ft.xr-cat tr.me td:last-child{padding-right:10px}
.ft.xr-cat .wn a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--line2);text-underline-offset:3px}
.ft.xr-cat .wn a:hover{text-decoration-color:var(--ink)}
@media (min-width:900px){.ft.xr-cat{min-width:760px}}
@media (max-width:899px){
  .xr-wrow{grid-template-columns:1fr}
  .xr-wl{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:0 14px}
  .xr-wl .k,.xr-wl .say{grid-column:1}
  .xr-wl b{grid-column:2;grid-row:1 / span 2;margin:0;font-size:22px;text-align:right}
  .xr-wl b small{display:block}
  .xr-where{gap:26px}
  .xr-stand.picking .xr-ends span{display:none}
  .xr-hint{display:none}
  .xr-sort{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
  .xr-sort .chip{padding:7px 13px;font-size:13px}
  .ft.xr-cat{display:block;min-width:0}
  .ft.xr-cat thead{display:none}
  .ft.xr-cat tbody{display:block}
  .ft.xr-cat tbody tr{display:grid;grid-template-columns:1.3fr 1.3fr 1fr 1fr 1fr;gap:5px 6px;padding:12px 0;border-bottom:1px solid var(--line)}
  .ft.xr-cat tbody tr:last-child{border-bottom:0}
  .ft.xr-cat tbody th,.ft.xr-cat tbody td{display:block;padding:0;border:0;text-align:left}
  .ft.xr-cat tbody th.tx{grid-column:1/-1;min-width:0;white-space:normal}
  .ft.xr-cat tbody td{font-size:13px;white-space:nowrap}
  .ft.xr-cat td[data-l]::before{content:attr(data-l);display:block;font-size:11px;color:var(--dim);font-weight:400;margin-bottom:1px}
  .ft.xr-cat tbody td small,.ft.xr-cat .u{display:none}
  .ft.xr-cat tr.me,.ft.xr-cat tr.yours{padding-left:10px;padding-right:4px}
  .ft.xr-cat tr.me{background:var(--panel2);box-shadow:inset 3px 0 0 #5EF0D6}
  .ft.xr-cat tr.yours{box-shadow:inset 3px 0 0 #3987E5}
  .ft.xr-cat tr.me th,.ft.xr-cat tr.me td{background:none}
  .ft.xr-cat tr.me th,.ft.xr-cat tr.yours th{box-shadow:none;padding-left:0}
  .ft.xr-cat tr.me td:last-child{padding-right:0}
}
@media (max-width:379px){.ft.xr-cat tbody td{font-size:12px}.ft.xr-cat td[data-l]::before{font-size:10px}}
@media (max-width:339px){.ft.xr-cat tbody td{font-size:11px}.ft.xr-cat tbody tr{gap:5px 4px}}
/* X-Ray: what a statement cannot tell, and typing it in */
.xr-need{margin:0 0 18px;border-color:var(--line2)}
.xr-need h2{max-width:none}
.xr-ways{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:14px;margin-top:16px}
.xr-ways>div{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:16px;border:1px solid var(--line);border-radius:var(--r-m);background:var(--soil)}
.xr-ways h3{font-size:16px;font-weight:600}
.xr-ways p{flex:1 1 auto;max-width:60ch}
.xr-ways .btn{flex:0 0 auto;margin-top:4px}
.xr-putl{display:grid;gap:0}
.xr-putr{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(150px,.7fr) minmax(170px,.8fr);gap:6px 18px;align-items:end;padding:14px 0;border-top:1px solid var(--line)}
.xr-putr:first-child{border-top:0;padding-top:4px}
.xr-putr .f{align-self:center;min-width:0}
.xr-putr .f b{display:block;font-weight:500;overflow-wrap:anywhere}
.xr-putr .f .e{display:block;margin-top:6px;font-size:14px;color:#FFC2B1}
.xr-putr .field{margin-top:0}
.xr-putr .field input{height:48px;font-size:16px;color-scheme:dark}
.xr-putr.bad .field input{border-color:rgba(255,122,89,.6)}
@media (max-width:699px){.xr-putr{grid-template-columns:1fr 1fr}.xr-putr .f{grid-column:1 / -1}}
/* X-Ray: the funds in the market's past falls. One card a fall, every picture on the same scale */
.xr-crs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:16px}
.xr-cr{min-width:0;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--soil)}
.xr-cr h3{margin:0;font-size:19px;font-weight:600;font-stretch:106%}
.xr-cr h3 span{display:block;margin-top:1px;font-size:13px;font-weight:400;font-stretch:100%;color:var(--mute)}
.xr-cr .big{margin:12px 0 0}
.xr-cr .big b{font-size:34px;font-weight:600;line-height:1.1}
.xr-cr .rs{margin:2px 0 10px;font-size:15px}
.xr-cr svg{display:block;width:100%;height:auto;overflow:visible}
.xr-cr svg .g{stroke:#262626;stroke-width:1}
.xr-cr svg .z{stroke:#4A4A4A;stroke-width:1}
.xr-cr svg .t{fill:#7A7A7A;font-size:10.5px}
.xr-cr svg .a{fill:rgba(242,242,242,.09)}
.xr-cr svg .m{fill:none;stroke:#6E6E6E;stroke-width:1.4;stroke-linejoin:round}
.xr-cr svg .p{fill:none;stroke:#F2F2F2;stroke-width:1.9;stroke-linejoin:round}
.xr-cr svg .lo{fill:var(--coral);stroke:#0F0F0F;stroke-width:1.5}
.xr-cr svg .bk{fill:#0F0F0F;stroke:#F2F2F2;stroke-width:1.6}
.xr-cr .key{display:flex;flex-wrap:wrap;gap:4px 16px;margin:6px 0 0}
.xr-cr .key i{display:inline-block;width:14px;height:2px;margin-right:6px;vertical-align:middle;background:#F2F2F2}
.xr-cr .key i.k2{background:#6E6E6E}
.xr-cr dl{margin:12px 0 0}
.xr-cr dl div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--line);font-size:14px}
.xr-cr dt{color:var(--mute)}
.xr-cr dd{margin:0;text-align:right;font-weight:500}
.xr-cr dd small{display:block;font-size:12px;font-weight:400;color:var(--dim)}
.xr-cr .how{margin:10px 0 0;padding-top:10px;border-top:1px solid var(--line);font-size:12.5px;line-height:1.45;color:var(--mute)}
@media (max-width:1199px){.xr-crs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:639px){.xr-crs{grid-template-columns:minmax(0,1fr)}}

/* X-Ray: a fund beside its index */
.xr-vs{display:grid;margin-top:12px}
.xr-vsr{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(110px,.9fr) 132px minmax(0,1.6fr);gap:6px 20px;align-items:center;padding:13px 0;border-top:1px solid var(--line)}
.xr-vsr:first-child{border-top:0}
.xr-vsr .t b{display:block;font-weight:500;overflow-wrap:anywhere}
.xr-vsr .t span,.xr-vsr .n span{display:block}
.xr-vsr .bar{height:10px;border-radius:5px;background:#5EF0D6;overflow:hidden}
.xr-vsr .bar i{display:block;height:100%;background:#6E6E6E}
.xr-vsr .n b{font-size:19px;font-weight:600}
@media (max-width:899px){.xr-vsr{grid-template-columns:minmax(0,1fr) auto}.xr-vsr .t,.xr-vsr .c{grid-column:1 / -1}}
/* white mode */
/* The switch and the inversion itself come with templates/_mode.html. Here: where the switch sits in this app's
   header, and what stays as made. Company logos are cut out to float on black, so the map and every logo plate
   keep their black ground and their true colours inside the white page. */
.topbar>.tx-mode{display:inline-flex}
.topbar>.toplinks+.tx-mode,.topbar>.brand+.tx-mode{margin-left:auto}
@media screen{
html[data-mode=white] .tmap,html[data-mode=white] .tcap .lg,html[data-mode=white] .coplate:not(.none){filter:invert(1) hue-rotate(180deg)}
html[data-mode=white] .tcap .lg,html[data-mode=white] .coplate:not(.none){background:#000;border-radius:8px}
html[data-mode=white] .tcap .lg{padding:3px 8px;box-sizing:content-box}
html[data-mode=white] .tmap img,html[data-mode=white] .tcap .lg img,html[data-mode=white] .coplate img{filter:none}
html[data-mode=white] .tmap .tl.lgt:hover .fl img,html[data-mode=white] .tmap .tl.lgt.on .fl img{filter:brightness(1.15)}
html[data-mode=white] .tmap.mini .tl.lgt:hover .fl img{filter:none}
}
