/* Prop tracker (/dashboard/prop): the look of modernmoneymaking.xyz (apps/modernmoneymaking-site/assets/site.css):
   quiet navy, one blue accent, green / red only for gain / loss and breaches. Fonts are served from
   static/fonts (SIL Open Font License), not from Google. */
/* fonts (SIL OFL 1.1, from @fontsource 5.3.0, self-hosted): Bricolage Grotesque display, Geist text, Geist Mono figures */
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/bricolage-grotesque-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/bricolage-grotesque-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/bricolage-grotesque-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:800;font-display:swap;src:url(fonts/bricolage-grotesque-latin-ext-800-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:800;font-display:swap;src:url(fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Geist";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/geist-sans-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Geist";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/geist-sans-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Geist";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/geist-sans-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/geist-mono-latin-ext-500-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/geist-mono-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/geist-mono-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/geist-mono-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  color-scheme: dark;
  --bg:#040c1e; --bg2:#06112a; --card:#081733; --card2:#0c1f42; --card3:#10264f;
  --line:#172a50; --hi:rgba(255,255,255,.055); --ctl:#5a70a0;
  --tx:#e8eef8; --mut:#a7b4cc; --faint:#8a98b5;
  --brand:#1a53a3; --brand-h:#2462bd; --acc:#6f9be6;
  --up:#37d68f; --down:#f0616d; --warn:#e7c24b;
  /* account stages: evaluation blue, funded violet (green / red stay profit / loss) */
  --eval:#6f9be6; --eval-bg:rgba(111,155,230,.12); --funded:#b48cff; --funded-bg:rgba(180,140,255,.13);
  --disp:"Bricolage Grotesque",system-ui,sans-serif;
  --body:"Geist",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --maxw:1360px; --gut:20px; --r:18px; --r-sm:12px; --bar:68px; --tab:0px;
  /* raised surfaces: a hairline of light on top, a soft shadow below */
  --lift:inset 0 1px 0 var(--hi), 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -12px rgba(0,0,0,.45);
  /* motion: one ease for things arriving, a spring for things that land (falls back to the ease) */
  --ease:cubic-bezier(.22,1,.36,1);
  --spring:cubic-bezier(.22,1,.36,1);
}
@supports (transition-timing-function:linear(0,1)){
  :root{--spring:linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.067, 1.077 24.4%, 1.067 27%,
    1.017 31.9%, .996 35%, .987 38.9%, .996 47.4%, 1.002 54.7%, 1)}
}
*{box-sizing:border-box}
html{scroll-padding-top:calc(var(--bar) + 16px)}
body{margin:0; background:var(--bg); color:var(--tx); font:16px/1.6 var(--body); -webkit-font-smoothing:antialiased; overflow-x:hidden}
a{color:var(--acc); text-decoration:none}
a:hover{text-decoration:underline; text-underline-offset:3px}
:focus-visible{outline:2px solid var(--acc); outline-offset:3px; border-radius:4px}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 var(--gut)}
[hidden]{display:none !important}
.mono{font-family:var(--mono); font-variant-numeric:tabular-nums}
.muted{color:var(--mut)} .faint{color:var(--faint)}
.pos{color:var(--up)} .neg{color:var(--down)} .warn{color:var(--warn)}

/* page transitions: a link inside the tracker cross-fades; an account card grows into the account's header
   (view-transition-name on both). Browsers without view transitions just load the page. */
@view-transition{navigation:auto}
::view-transition-group(*){animation-duration:.42s; animation-timing-function:var(--ease)}
::view-transition-old(root),::view-transition-new(root){animation-duration:.22s}
.bar{view-transition-name:bar} .tabbar{view-transition-name:tabbar}

/* header: the one floating layer, so the one with the blur */
/* no grey/blue tap box on phones: buttons, links and menus show their own pressed state */
a,button,summary,label,select{-webkit-tap-highlight-color:transparent}
.drop > summary:active{background:var(--card)}
.bar{position:sticky; top:0; z-index:20; background:rgba(4,12,30,.78); backdrop-filter:saturate(1.6) blur(14px);
  -webkit-backdrop-filter:saturate(1.6) blur(14px); border-bottom:1px solid var(--line)}
.bar .wrap{display:flex; align-items:center; gap:24px; height:var(--bar)}
.logo{display:flex; align-items:center; gap:10px; color:var(--tx); font:600 16px/1 var(--disp); letter-spacing:-.01em; white-space:nowrap}
.logo:hover{text-decoration:none}
.logo img{width:32px; height:32px; border-radius:8px}
.nav{position:relative; z-index:0; display:flex; gap:2px; margin-left:auto; padding:4px; border-radius:12px; background:rgba(255,255,255,.025); border:1px solid var(--line)}
.nav a{position:relative; display:flex; align-items:center; gap:8px; color:var(--mut); font-weight:500; font-size:14.5px; padding:6px 12px; border-radius:9px;
  transition:color .15s ease, background-color .15s ease}
.nav a svg{display:none}
.nav a:hover{color:var(--tx); background:var(--card); text-decoration:none}
.nav a[aria-current=page]{color:var(--tx)}
.nav a[aria-current=page]:hover{background:none}
/* the highlight behind the current section: its own element, so it glides to the next section on navigation */
.nav-pill{position:absolute; inset:0; z-index:-1; border-radius:9px; background:var(--card2); box-shadow:inset 0 1px 0 var(--hi); view-transition-name:nav-pill}
.tab-pill{display:none}

/* phones: the sections move to a tab bar at the bottom, within reach of the thumb */
.tabbar{display:none}
@media (max-width:720px){
  :root{--tab:calc(58px + env(safe-area-inset-bottom))}
  .bar .nav{display:none}
  .tabbar{display:grid; grid-template-columns:repeat(5,1fr); position:fixed; inset:auto 0 0 0; z-index:25; height:var(--tab);
    padding:0 6px env(safe-area-inset-bottom); background:rgba(4,12,30,.82); backdrop-filter:saturate(1.6) blur(16px);
    -webkit-backdrop-filter:saturate(1.6) blur(16px); border-top:1px solid var(--line)}
  .tabbar a{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; color:var(--faint);
    font:600 11px/1 var(--body); letter-spacing:.01em; border-radius:12px; margin:5px 2px}
  .tabbar a:hover{text-decoration:none}
  .tabbar a svg{width:24px; height:24px; transition:transform .25s var(--spring)}
  .tabbar a{position:relative}
  .tabbar a[aria-current=page]{color:var(--tx)}
  .tab-pill{display:block; position:absolute; top:3px; width:56px; height:32px; left:50%; margin-left:-28px; z-index:-1; border-radius:16px;
    background:rgba(111,155,230,.16); view-transition-name:tab-pill}
  .tabbar{z-index:25; isolation:isolate}
  .tabbar a[aria-current=page] svg{color:var(--acc)}
  .tabbar a:active svg{transform:scale(.86)}
  body{padding-bottom:var(--tab)}
}

/* buttons: pressed buttons dip slightly; the busy state keeps their size */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 18px;
  border-radius:12px; font:600 15px/1.1 var(--body); border:1px solid transparent; cursor:pointer; white-space:nowrap;
  background:var(--brand); color:#fff; box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
  transition:background-color .15s ease, border-color .15s ease, transform .2s var(--spring)}
.btn:hover{background:var(--brand-h); text-decoration:none}
.btn:active{transform:scale(.97)}
.btn svg{flex:none}
.btn.ghost{background:rgba(255,255,255,.02); color:var(--tx); border-color:var(--line); box-shadow:inset 0 1px 0 var(--hi)}
.btn.ghost:hover{border-color:var(--ctl); background:var(--card2)}
.btn.danger{background:transparent; color:#ffc0c5; border-color:rgba(240,97,109,.55); box-shadow:none}
.btn.danger:hover{background:rgba(240,97,109,.1)}
.btn.sm{min-height:36px; padding:7px 13px; font-size:14px; border-radius:10px}
.icon-btn{display:inline-grid; place-items:center; width:36px; height:36px; border-radius:10px; border:1px solid transparent;
  background:transparent; color:var(--faint); cursor:pointer; transition:color .12s ease, background-color .12s ease, transform .2s var(--spring)}
.icon-btn:hover{color:var(--tx); background:var(--card2)}
.icon-btn:active{transform:scale(.9)}

/* type */
.eyebrow{font:600 12px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase; color:var(--acc); margin:0 0 14px}
h1,h2,h3{font-family:var(--disp); letter-spacing:-.02em; margin:0; text-wrap:balance}
h1{font-size:clamp(32px,4.6vw,52px); line-height:1.05; font-weight:700}
h2{font-size:22px; line-height:1.2; font-weight:700}
h3{font-size:17px; line-height:1.3; font-weight:600}
.lead{color:var(--mut); margin:14px 0 0; font-size:16px}
/* prose keeps a readable line length on the wide pages */
.lead,.calc-sum,.calc-small,.calc-notes,.hint{max-width:80ch}

/* page head */
.page-head{padding:44px 0 28px; position:relative}
.page-head::before{content:""; position:absolute; inset:0 0 auto 0; height:320px; pointer-events:none;
  background:radial-gradient(50% 80% at 15% 0%, rgba(26,83,163,.2), transparent 70%)}
.page-head .wrap{position:relative}
.head-row{display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap}
.head-acts{display:flex; gap:10px; flex-wrap:wrap}

/* numbers strip */
.numbers{display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin:0 0 40px}
.numbers div{padding:20px 20px 18px 0}
.numbers div + div{padding-left:20px; border-left:1px solid var(--line)}
.numbers b{display:block; font:700 clamp(22px,2.4vw,28px)/1.15 var(--disp); letter-spacing:-.02em}
.numbers span{display:block; margin-top:6px; color:var(--faint); font:600 11.5px/1.3 var(--mono); letter-spacing:.1em; text-transform:uppercase}
.numbers small{display:block; color:var(--mut); font-size:13px; margin-top:4px}
.numbers small span{display:inline; margin:0; font:inherit; letter-spacing:0; text-transform:none; color:inherit}
.numbers small em{font:500 13px var(--mono); font-style:normal}

/* sections */
.sec{margin:0 0 40px}
.sec-head{display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin:0 0 16px; flex-wrap:wrap}
.sec-head p{color:var(--faint); margin:0; font-size:14px}

/* status */
.status{display:inline-flex; align-items:center; gap:8px; font:600 11.5px/1 var(--mono); letter-spacing:.08em; text-transform:uppercase; color:var(--faint); white-space:nowrap}
.status::before{content:""; width:8px; height:8px; border-radius:50%; background:currentColor}
.status.eval{color:var(--eval)} .status.funded{color:var(--funded)} .status.breached{color:var(--down)} .status.ok{color:var(--up)}
/* the stage as a pill on cards and headers */
.pill{display:inline-flex; align-items:center; gap:7px; padding:5px 10px 5px 9px; border-radius:999px; font:600 11px/1 var(--mono);
  letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; color:var(--faint); background:rgba(255,255,255,.04)}
.pill::before{content:""; width:7px; height:7px; border-radius:50%; background:currentColor}
.pill.eval{color:var(--eval); background:var(--eval-bg)} .pill.funded{color:var(--funded); background:var(--funded-bg)}
.pill.breached{color:var(--down); background:rgba(240,97,109,.12)} .pill.passed{color:var(--up); background:rgba(55,214,143,.1)}
/* a dot in the stage colour before a label (numbers strip, calendar) */
.dot-eval::before,.dot-funded::before{content:""; display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:7px; vertical-align:1px}
.dot-eval::before{background:var(--eval)} .dot-funded::before{background:var(--funded)}

/* account cards: the balance leads, the runway says how far it is from a breach and from the target */
.accts{display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:16px}
a.acct{position:relative; display:flex; flex-direction:column; gap:14px; background:var(--card); border:1px solid var(--line);
  border-radius:var(--r); padding:20px 20px 18px; color:var(--tx); box-shadow:var(--lift);
  transition:border-color .2s ease, transform .35s var(--spring), box-shadow .2s ease}
a.acct:hover,a.acct:focus-visible{border-color:#27417a; transform:translateY(-3px); text-decoration:none; outline:none;
  box-shadow:inset 0 1px 0 var(--hi), 0 22px 44px -16px rgba(0,0,0,.6)}
a.acct:focus-visible{box-shadow:0 0 0 2px var(--acc), var(--lift)}
a.acct:active{transform:scale(.985); transition-duration:.12s}
a.acct.stage-funded{background:radial-gradient(120% 90% at 100% 0%, rgba(180,140,255,.13), transparent 55%), var(--card)}
.acct-top{display:flex; justify-content:space-between; align-items:flex-start; gap:12px}
.firm{font:600 17px/1.25 var(--disp)}
.firm small{display:block; font:500 13px/1.4 var(--body); color:var(--faint); margin-top:2px}
.acct-mid{display:flex; align-items:flex-end; justify-content:space-between; gap:12px}
.size{font:700 30px/1.05 var(--disp); letter-spacing:-.025em}
.bal{font-size:14px; color:var(--mut); margin-top:6px}
.bal b{font-family:var(--mono); font-weight:600; color:var(--tx)}
.chg{display:inline-flex; align-items:center; gap:4px; font:600 13px/1 var(--mono); padding:4px 8px; border-radius:8px; background:rgba(255,255,255,.04)}
.chg.pos{background:rgba(55,214,143,.1)} .chg.neg{background:rgba(240,97,109,.1)}
.spark{width:120px; height:40px; flex:none; overflow:visible}
.spark path{fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke}
.spark .base{stroke:var(--line); stroke-width:1; stroke-dasharray:3 3}
.spark .area{stroke:none; opacity:.16}
.flag{font:600 12px/1.4 var(--mono); letter-spacing:.04em}
.meter{margin-top:14px}
.meter .l{display:flex; justify-content:space-between; gap:10px; font-size:13px; color:var(--mut); margin-bottom:6px}
.meter .l span:last-child{font-family:var(--mono); font-variant-numeric:tabular-nums; color:var(--tx)}
.track{height:6px; border-radius:6px; background:var(--card2); overflow:hidden}
.track>i{display:block; height:100%; border-radius:6px; background:var(--up)}
.track>i.mid{background:var(--warn)} .track>i.low{background:var(--down)} .track>i.tgt{background:var(--acc)}
.empty{background:var(--card); border:1px dashed var(--line); border-radius:var(--r); padding:32px 24px; color:var(--mut)}
.empty h3{color:var(--tx); margin-bottom:8px}
.empty p{margin:0; max-width:62ch}

/* the runway: breach floor on the left, profit target (funded: the profit so far) on the right, the balance
   as a marker between them. --lo..--hi are positions in %, set by _prop_runway.html */
.runway{position:relative; padding:10px 0 0}
.rw-track{position:relative; container-type:inline-size; height:10px; border-radius:6px; background:
  linear-gradient(90deg, rgba(240,97,109,.28), rgba(240,97,109,.06) 30%, rgba(255,255,255,.035) 55%, rgba(111,155,230,.06) 85%, rgba(111,155,230,.22))}
.rw-fill{position:absolute; top:0; bottom:0; left:var(--from); width:var(--len); border-radius:6px; background:var(--up); transform-origin:var(--origin)}
.rw-fill.neg{background:var(--down)}
.rw-start{position:absolute; top:-5px; bottom:-5px; left:var(--start); width:2px; margin-left:-1px; border-radius:1px; background:var(--faint); opacity:.6}
.rw-daily{position:absolute; top:-4px; bottom:-4px; width:2px; margin-left:-1px; border-radius:1px; background:var(--warn); opacity:.85}
.rw-puck{position:absolute; top:50%; left:var(--pos); width:18px; height:18px; margin:-9px 0 0 -9px; border-radius:50%;
  background:var(--tx); box-shadow:0 0 0 4px var(--card), 0 0 0 6px var(--sev, var(--up)), 0 4px 14px rgba(0,0,0,.5)}
.runway.sev-mid{--sev:var(--warn)} .runway.sev-low{--sev:var(--down)}
.rw-ends{display:flex; justify-content:space-between; gap:12px; margin-top:12px; font-size:12.5px; color:var(--faint); line-height:1.35}
.rw-ends span:last-child{text-align:right}
.rw-ends b{display:block; font:600 13.5px/1.35 var(--mono); color:var(--tx); font-variant-numeric:tabular-nums}
.rw-ends b.neg{color:var(--down)}
.runway.big .rw-track{height:14px; border-radius:8px}
.runway.big .rw-puck{width:24px; height:24px; margin:-12px 0 0 -12px}
.runway.big .rw-ends{font-size:13.5px} .runway.big .rw-ends b{font-size:16px}
/* first visit of a session: the cards rise in turn and each marker springs from the start to the balance */
.intro .acct{animation:rise .6s var(--ease) both; animation-delay:calc(var(--i, 0) * 70ms)}
@supports (width:1cqw){ .rw-puck{left:0; transform:translateX(calc(var(--pf) * 100cqw))} }
.intro .rw-puck{animation:land .9s var(--spring) both; animation-delay:calc(var(--i, 0) * 70ms + 180ms)}
.intro .rw-fill{animation:grow .9s var(--spring) both; animation-delay:calc(var(--i, 0) * 70ms + 180ms)}
@keyframes rise{from{opacity:0; transform:translateY(14px) scale(.985)}}
@keyframes land{from{transform:translateX(calc(var(--sf) * 100cqw))}}
@keyframes grow{from{transform:scaleX(0)}}

/* sheets: forms open over the page; from the bottom on phones (drag the handle down to close), centred on wider screens */
dialog.sheet{width:min(640px,calc(100vw - 32px)); max-height:min(88vh,860px); padding:0; border:1px solid var(--line);
  border-radius:22px; background:var(--card); color:var(--tx); box-shadow:inset 0 1px 0 var(--hi), 0 40px 90px rgba(0,0,0,.6); overflow:auto;
  overscroll-behavior:contain}
dialog.sheet::backdrop{background:rgba(2,6,16,.62); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px)}
dialog.sheet[open]{animation:sheet-in .38s var(--spring)}
dialog.sheet[open]::backdrop{animation:fade .25s ease-out}
dialog.sheet.closing{animation:sheet-out .2s ease-in forwards}
dialog.sheet.closing::backdrop{animation:fade .2s ease-in reverse forwards}
@keyframes sheet-in{from{opacity:0; transform:translateY(10px) scale(.96)}}
@keyframes sheet-out{to{opacity:0; transform:translateY(8px) scale(.97)}}
.sheet-head{position:sticky; top:0; z-index:2; display:flex; align-items:center; gap:12px; padding:18px 20px 14px;
  background:linear-gradient(var(--card) 75%, transparent)}
.sheet-head h2{font-size:20px; flex:1}
.sheet-head p{margin:2px 0 0; color:var(--faint); font-size:13.5px}
.grab{display:none}
.sheet-body{padding:0 20px 20px}
.sheet-body .grid:first-child{margin-top:0}
@media (max-width:720px){
  dialog.sheet{width:100vw; max-width:100vw; margin:auto 0 0; border-radius:22px 22px 0 0; border-bottom:0;
    max-height:92vh; padding-bottom:env(safe-area-inset-bottom)}
  dialog.sheet[open]{animation:sheet-up .42s var(--spring)}
  dialog.sheet.closing{animation:sheet-down .22s ease-in forwards}
  .grab{display:block; position:absolute; z-index:3; left:50%; top:7px; width:38px; height:5px; margin-left:-19px; border-radius:3px;
    background:#2b3f6a; cursor:grab; touch-action:none}
  .grab::after{content:""; position:absolute; inset:-14px -40px}
  .sheet-head{padding-top:24px}
  @keyframes sheet-up{from{transform:translateY(100%)}}
  @keyframes sheet-down{to{transform:translateY(100%)}}
}
@keyframes fade{from{opacity:0} to{opacity:1}}

/* panels + forms */
.panel{background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:24px}
.panel + .panel{margin-top:16px}
.split > .panel + .panel{margin-top:0}
.panel h2{margin:0 0 4px}
.panel > p.hint:first-of-type{margin-top:0}
.grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:14px 16px; margin-top:16px}
.grid .span2{grid-column:span 2}
label{display:block; font-size:14px; font-weight:600; margin:0 0 6px}
label small,.opt{color:var(--faint); font-weight:500}
input[type=text],input[type=number],input[type=date],input[type=password],select{width:100%; min-height:44px; padding:10px 12px;
  border-radius:10px; border:1px solid var(--line); background:var(--bg2); color:var(--tx); font:inherit; font-size:15px}
input[type=number]{font-family:var(--mono)}
input:focus,select:focus{outline:none; border-color:var(--acc); box-shadow:0 0 0 3px rgba(111,155,230,.2)}
input[type=checkbox]{width:18px; height:18px; accent-color:var(--brand)}
.check{display:flex; gap:10px; align-items:center; font-weight:500; color:var(--mut); margin-top:16px}
.hint{color:var(--faint); font-size:13px; margin:8px 0 0; line-height:1.5}
.actions{display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; margin-top:20px}
.split{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px}

/* key / value list */
.kv{display:grid; grid-template-columns:1fr 1fr; gap:0 32px; margin-top:20px}
.kv div{display:flex; justify-content:space-between; gap:12px; padding:11px 0; border-bottom:1px solid var(--line); font-size:15px}
.kv span{color:var(--mut)} .kv b{font:600 14px/1.5 var(--mono); text-align:right}

/* messages */
.flash{border-radius:10px; padding:12px 16px; margin:0 0 20px; font-size:14px}
.flash.ok{background:rgba(55,214,143,.1); border:1px solid rgba(55,214,143,.35); color:#a6f0cd}
.flash.info{background:rgba(74,140,255,.1); border:1px solid rgba(74,140,255,.35); color:#bcd3ff}
.flash.err{background:rgba(240,97,109,.1); border:1px solid rgba(240,97,109,.4); color:#ffc0c5}
.alert{border-radius:var(--r); padding:16px 18px; margin:0 0 24px; font-size:15px; line-height:1.55; border:1px solid var(--line); background:var(--card)}
.alert b{font-family:var(--disp)}
.alert.bad{border-color:rgba(240,97,109,.5); background:rgba(240,97,109,.07)}
.alert.good{border-color:rgba(55,214,143,.45); background:rgba(55,214,143,.06)}

/* stage tabs */
.tabs{display:flex; gap:4px; border-bottom:1px solid var(--line); margin:24px 0 0; overflow-x:auto}
.tabs a{padding:10px 14px; color:var(--mut); font-weight:600; font-size:14px; white-space:nowrap}
.tabs a:hover{color:var(--tx); text-decoration:none}
.tabs a[aria-current=page]{color:var(--tx); box-shadow:inset 0 -2px 0 var(--acc)}
.tabs .faint{font-weight:500}

/* tables */
.table-wrap{position:relative; background:var(--card); border:1px solid var(--line); border-radius:var(--r); overflow-x:auto}   /* relative: absolute bits (.sr-only) scroll with the table instead of widening the page */
table{width:100%; border-collapse:collapse; font-size:15px}
th,td{padding:12px 16px; text-align:left; border-bottom:1px solid var(--line); white-space:nowrap}
th{color:var(--faint); font:600 11.5px/1 var(--mono); letter-spacing:.1em; text-transform:uppercase; background:var(--bg2)}
tr:last-child td{border-bottom:0}
td.num,th.num{text-align:right}
td.num{font-family:var(--mono); font-variant-numeric:tabular-nums}
td .note{display:block; color:var(--faint); font-size:13px; white-space:normal}
.xbtn{background:none; border:0; color:var(--faint); cursor:pointer; font-size:15px; padding:4px 8px; border-radius:6px}
.xbtn:hover{color:var(--down); background:rgba(240,97,109,.08)}
details.more{margin-top:16px}
details.more > summary{cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; font:700 22px/1.2 var(--disp)}
details.more > summary::-webkit-details-marker{display:none}
details.more > summary::after{content:"+"; color:var(--faint); font:500 22px/1 var(--mono)}
details.more[open] > summary::after{content:"−"}

.foot{border-top:1px solid var(--line); margin-top:56px; padding:28px 0 40px; color:var(--faint); font-size:13px}
.foot .wrap{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap}
.foot a{color:var(--mut)}
main{padding-bottom:16px}

@media (max-width:720px){
  :root{--bar:60px}
  .bar .wrap{gap:12px; padding:0 14px}
  .logo{margin-right:auto; font-size:15px}
  .numbers{grid-template-columns:1fr 1fr}
  .numbers div,.numbers div + div{padding:16px 10px 14px 0; border-left:0}
  .numbers div:nth-child(even){padding-left:14px; border-left:1px solid var(--line)}
  .numbers div:nth-child(n+3){border-top:1px solid var(--line)}
  .accts{grid-template-columns:1fr}
  .kv,.split{grid-template-columns:minmax(0,1fr)}
  .grid .span2{grid-column:auto}
  .panel{padding:18px}
  th,td{padding:11px 10px}
}

/* header menus: Buy Evaluation, account */
.drop{position:relative}
.menu{margin-left:8px}
.buy > summary{list-style:none; cursor:pointer; color:var(--mut); font-weight:500; font-size:15px; padding:8px 12px; border-radius:8px;
  display:flex; align-items:center; gap:8px; white-space:nowrap}
.buy > summary::-webkit-details-marker{display:none}
.buy > summary::after{content:""; width:6px; height:6px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor;
  transform:rotate(45deg) translateY(-2px)}
.buy > summary:hover,.buy[open] > summary{color:var(--tx); background:var(--card)}
.buy .menu-pop{min-width:260px}
.buy-item{display:flex !important; align-items:center; gap:12px}
.buy-item img,.mono-logo{width:28px; height:28px; border-radius:8px; object-fit:cover; flex:0 0 auto}
.mono-logo{display:grid; place-items:center; background:var(--card2); border:1px solid var(--line); color:var(--acc); font:700 14px/1 var(--disp)}
.buy-item .nm{flex:1}
.buy-item .ext{color:var(--faint); font-size:13px}
.menu-foot{margin:6px 12px 6px; padding-top:8px; border-top:1px solid var(--line); color:var(--faint); font-size:12px; line-height:1.45}
.plan{display:inline-block; margin-top:6px; font:600 11px/1 var(--mono); letter-spacing:.06em; text-transform:uppercase; padding:4px 7px; border-radius:6px}
.plan.unlimited{color:var(--up); background:rgba(55,214,143,.1)}
.plan.trial{color:var(--warn); background:rgba(231,194,75,.1)}
.menu > summary{list-style:none; display:flex; align-items:center; gap:10px; cursor:pointer; padding:4px 10px 4px 4px;
  border:1px solid var(--line); border-radius:999px; color:var(--tx); font-weight:500; font-size:14px}
.menu > summary::-webkit-details-marker{display:none}
.menu > summary::after{content:""; width:7px; height:7px; border-right:1.5px solid var(--faint); border-bottom:1.5px solid var(--faint);
  transform:rotate(45deg) translateY(-2px); margin-left:2px}
.menu > summary:hover,.menu[open] > summary{border-color:var(--ctl); background:var(--card)}
.menu > summary img{width:30px; height:30px; border-radius:50%; object-fit:cover; background:var(--card2)}
.menu-pop{position:absolute; right:0; top:calc(100% + 8px); min-width:220px; background:var(--card); border:1px solid var(--line);
  border-radius:12px; box-shadow:0 24px 60px rgba(0,0,0,.5); padding:6px; z-index:30}
/* opens from its trigger: solid from the first frame (no see-through fade), revealed top-down */
.drop[open] .menu-pop{animation:pop .14s cubic-bezier(.2,.8,.2,1)}
@keyframes pop{from{clip-path:inset(0 0 100% 0 round 12px); transform:translateY(-4px)} to{clip-path:inset(0 0 0 0 round 12px); transform:none}}
.menu-head{padding:10px 12px 10px; border-bottom:1px solid var(--line); margin-bottom:6px; color:var(--faint); font-size:12px}
.menu-head b{display:block; color:var(--tx); font:600 14px/1.4 var(--body); margin-top:2px; overflow:hidden; text-overflow:ellipsis}
.menu-pop a{display:block; padding:9px 12px; border-radius:8px; color:var(--tx); font-size:14px}
.menu-pop a:hover,.menu-pop a:focus-visible{background:var(--card2); text-decoration:none}
.menu .menu-pop a:last-child{color:#ffc0c5}

/* account page */
.avatar-row{display:flex; gap:20px; align-items:center; flex-wrap:wrap; margin-top:16px}
.avatar-row img{width:88px; height:88px; border-radius:50%; object-fit:cover; border:1px solid var(--line); background:var(--card2)}
input[type=file]{font:inherit; font-size:14px; color:var(--mut); max-width:100%}
.avatar-row > div{min-width:0; flex:1 1 180px}
input[type=file]::file-selector-button{font:600 14px/1 var(--body); color:var(--tx); background:transparent; border:1px solid var(--ctl);
  border-radius:10px; padding:10px 14px; margin-right:12px; cursor:pointer}

/* P&L calendar */
.cal-bar{display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; margin:0 0 20px}
.cal-nav{display:flex; align-items:center; gap:8px}
.cal-nav h2{min-width:170px; text-align:center}
.cal{display:grid; grid-template-columns:repeat(7,minmax(0,1fr)) minmax(0,.9fr); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; background:var(--card)}
.cal .hd{padding:10px 12px; color:var(--faint); font:600 11px/1 var(--mono); letter-spacing:.1em; text-transform:uppercase; background:var(--bg2); border-bottom:1px solid var(--line)}
.cal .c{min-height:92px; padding:10px 12px; border-bottom:1px solid var(--line); border-right:1px solid var(--line); display:flex; flex-direction:column; justify-content:space-between}
.cal .c.out{background:var(--bg); color:var(--faint)}
.cal .c.out .d{opacity:.5}
.cal .c.today .d{color:#fff; background:var(--brand); border-radius:6px; padding:1px 6px; margin:-1px -6px}
.cal .c .d{font:600 13px/1.2 var(--mono); color:var(--mut); align-self:flex-start}
.cal .c .vals{display:flex; flex-direction:column; align-items:flex-end}
.cal .c .v{font:600 15px/1.2 var(--mono)}
.cal .c .vs{display:none; font:600 11.5px/1.2 var(--mono)}
.cal .c .n{font-size:11.5px; color:var(--faint); text-align:right}
.cal .c.g{background:rgba(55,214,143,.08)} .cal .c.r{background:rgba(240,97,109,.08)}
.cal .c.g .v,.cal .c.g .vs{color:var(--up)} .cal .c.r .v,.cal .c.r .vs{color:var(--down)}
.cal .wk{min-height:92px; padding:10px 12px; border-bottom:1px solid var(--line); background:var(--bg2); display:flex; flex-direction:column; justify-content:center; align-items:flex-end}
.cal .wk span{color:var(--faint); font:600 10.5px/1 var(--mono); letter-spacing:.1em; text-transform:uppercase}
.cal .wk b{font:600 15px/1.6 var(--mono)}
.cal > :nth-last-child(-n+8){border-bottom:0}
@media (max-width:720px){
  .menu .who{display:none}
  .hide-sm{display:none}
  .buy > summary{padding:8px 6px; font-size:14px}
  .buy .menu-pop{right:-60px}
  .menu > summary{padding:3px 8px 3px 3px}
  .cal{grid-template-columns:repeat(7,minmax(0,1fr))}
  .cal .hd.wkh,.cal .wk{display:none}
  .cal .c{min-height:64px; padding:6px 5px}
  .cal .c .v,.cal .c .n{display:none} .cal .c .vs{display:block}
  .cal .hd{padding:8px 4px; text-align:center}
}

@media (max-width:380px){
  .buy > summary{padding:8px 4px; gap:5px}
  .menu{margin-left:2px}
  .menu > summary{gap:0; padding:3px}
  .menu > summary::after{display:none}
}

/* Prop Calculator (same block in modernmoneymaking-site/assets/site.css and mmm-links/static/prop.css) */
.turbo-how{margin:0 0 24px}
.turbo-how h2{font-size:20px; margin:0 0 12px}
.turbo-steps{list-style:none; counter-reset:t; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px}
.turbo-steps li{counter-increment:t; position:relative; background:var(--card); border:1px solid var(--line); border-radius:var(--r);
  padding:16px 16px 16px 52px; color:var(--mut); font-size:14.5px; line-height:1.55}
.turbo-steps li::before{content:counter(t); position:absolute; left:16px; top:15px; width:24px; height:24px; border-radius:50%;
  background:var(--card2); border:1px solid var(--line); color:var(--acc); font:600 13px/22px var(--mono); text-align:center}
.turbo-steps b{display:block; color:var(--tx); margin-bottom:2px}
.turbo-how > p{margin:10px 0 0}
@media (max-width:860px){ .turbo-steps{grid-template-columns:1fr} }
.calc-sum{margin:16px 0 0; font-size:16px; color:var(--tx)}
.calc-small{margin:6px 0 0; font-size:14px}
.cmp.rows th[scope=row]{color:var(--tx); font:500 15px/1.35 var(--body); letter-spacing:0; text-transform:none; background:none; white-space:normal; min-width:170px}
.cmp.rows td.num{min-width:104px}
.cmp tr.off th,.cmp tr.off td{color:var(--faint)}
.cmp td.best{box-shadow:inset 0 0 0 1px rgba(55,214,143,.45); background:rgba(55,214,143,.06)}
.blegend{display:flex; flex-wrap:wrap; gap:6px 18px; margin:10px 0 0; font-size:13px; color:var(--mut)}
.blegend i{display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; vertical-align:-1px}
.b-cost{background:var(--down)} .b-pay{background:var(--up)}
.bars{margin-top:8px}
.bgrp{padding:14px 0 10px; border-top:1px solid var(--line)}
.bgrp:first-child{border-top:0}
.bgrp-head{display:flex; justify-content:space-between; gap:12px; margin:0 0 6px; font-weight:600; font-size:15px}
.bgrp-net{font:600 14px var(--mono); white-space:nowrap}
.bline{display:grid; grid-template-columns:128px minmax(0,1fr) 84px; gap:12px; align-items:center; margin:5px 0; font-size:13.5px}
.blab{color:var(--mut)}
.btrack{height:12px}
.btrack i{display:block; height:100%; border-radius:0 4px 4px 0}
.bval{font:500 13.5px var(--mono); text-align:right; color:var(--tx)}
.calc-pick{width:auto; min-width:220px; max-width:100%; min-height:40px}
.dist{position:relative; display:flex; align-items:flex-end; justify-content:center; gap:6px; height:200px; margin:22px 0 32px;
  border-bottom:1px solid var(--line)}
.dist .col{position:relative; flex:1 1 0; max-width:72px; height:100%; display:flex; align-items:flex-end; outline:none; border-radius:4px 4px 0 0}
.dist .col i{display:block; width:100%; border-radius:4px 4px 0 0; background:var(--faint); transition:opacity .12s}
.dist .col.up i{background:var(--up)} .dist .col.down i{background:var(--down)}
.dist:hover .col i{opacity:.55} .dist .col:hover i,.dist .col:focus-visible i{opacity:1}
.dist .col:focus-visible{box-shadow:0 0 0 2px var(--acc)}
.dist .ck{position:absolute; left:0; right:0; bottom:-22px; text-align:center; font:500 12px/1 var(--mono); color:var(--faint)}
.calc-axis{margin:0; font-size:12.5px; color:var(--faint)}
.dist-tip{position:relative; width:220px; margin:8px 0 0; background:var(--card2); border:1px solid var(--line); border-radius:8px;
  padding:8px 10px; font-size:13px; line-height:1.4}
.sr-only{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
.calc-notes{margin:12px 0 0; padding-left:18px; color:var(--mut); font-size:14.5px; line-height:1.6}
.calc-notes li{margin:6px 0}
.calc-notes li:empty{display:none}
.calc-notes b{color:var(--tx)}
.calc-scope{margin:24px 0 0; padding:10px 14px; border-left:3px solid var(--acc); background:var(--card); border-radius:0 8px 8px 0; color:var(--mut); font-size:13.5px; line-height:1.55}
.calc-scope b{color:var(--tx)}
.calc-warn{margin:12px 0 0; padding:12px 14px; border-radius:10px; border:1px solid rgba(240,97,109,.45); background:rgba(240,97,109,.08); color:#ffc0c5; font-size:14px}
@media (max-width:560px){
  .bline{grid-template-columns:96px minmax(0,1fr) 72px; gap:8px; font-size:12.5px}
  .calc-pick{width:100%}
}

/* firm logos */
.fmark{width:32px; height:32px; border-radius:9px; object-fit:cover; flex:0 0 auto}
.fmark.mono{display:inline-grid; place-items:center; background:var(--card2); border:1px solid var(--line); color:var(--acc); font:700 15px/1 var(--disp)}
.fmark.lg{width:44px; height:44px; border-radius:12px; font-size:20px}
.fmark.sm{width:24px; height:24px; border-radius:7px; font-size:12px}
.named{display:flex; align-items:center; gap:10px}
.firm-wrap{display:flex; align-items:center; gap:12px; min-width:0; flex:1 1 auto}
.acct-top .status{flex:0 1 auto; max-width:55%; white-space:normal; text-align:right; line-height:1.35}
.h-firm{display:flex; align-items:center; gap:14px}

/* calendar: toggles, clickable days, fees, day popup */
.cal-tools{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.cal-tools select{width:auto; min-width:180px}
.seg{display:inline-flex; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--card)}
.seg a{padding:9px 14px; color:var(--mut); font-size:14px; font-weight:500; text-decoration:none}
.seg a + a{border-left:1px solid var(--line)}
.seg a:hover{color:var(--tx)}
.seg a.dot-eval[aria-current],.seg a.dot-funded[aria-current]{color:var(--tx)}
.seg a[aria-current]{background:var(--card2); color:var(--tx); box-shadow:inset 0 -2px 0 var(--acc)}
.cal .c.has{padding:0}
.cbtn{display:flex; flex:1 1 auto; flex-direction:column; justify-content:space-between; width:100%; padding:10px 12px;
  background:none; border:0; color:inherit; font:inherit; text-align:left; cursor:pointer}
.cbtn:hover{background:rgba(255,255,255,.03)}
.cbtn:focus-visible{outline:2px solid var(--acc); outline-offset:-2px}
.cal .c .fee{font:500 11.5px/1.3 var(--mono); text-align:right}
.day-dlg{width:min(640px,calc(100vw - 32px)); max-height:min(80vh,720px); padding:0; border:1px solid var(--line); border-radius:var(--r);
  background:var(--card); color:var(--tx)}
.day-dlg::backdrop{background:rgba(2,6,16,.7)}
.day-head{display:flex; justify-content:space-between; align-items:center; gap:12px; padding:18px 20px 0}
.day-head h2{font-size:20px; margin:0}
.day-dlg > p{margin:4px 20px 12px; font-size:14px}
.day-list{border-top:1px solid var(--line)}
.day-row{display:flex; gap:12px; align-items:center; padding:12px 20px; border-bottom:1px solid var(--line)}
.day-row:last-child{border-bottom:0}
.day-mid{flex:1 1 auto; min-width:0}
.day-t{font-weight:600; display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.day-d{color:var(--mut); font-size:13px; margin-top:2px; overflow-wrap:anywhere}
.day-v{font:600 15px/1.3 var(--mono); text-align:right; white-space:nowrap}
.day-v small{display:block; font:500 12px var(--mono); color:var(--faint)}
.day-v small.neg{color:var(--down)}
.stage{font:600 10.5px/1 var(--mono); letter-spacing:.06em; text-transform:uppercase; padding:4px 6px; border-radius:6px}
.stage.eval{color:var(--eval); background:var(--eval-bg)} .stage.funded{color:var(--funded); background:var(--funded-bg)}
@media (max-width:720px){
  .cbtn{padding:6px 5px}
  .cal .c .fee{display:none}
  .cal-tools{width:100%} .cal-tools form{flex:1 1 100%} .cal-tools select{width:100%}
  .fmark.lg{width:36px; height:36px; font-size:17px}
}

/* trade edit dialog, reset button */
.edit-dlg{width:min(720px,calc(100vw - 32px)); max-height:min(90vh,820px); padding:0; border:1px solid var(--line); border-radius:var(--r);
  background:var(--card); color:var(--tx); overflow:auto}
.edit-dlg::backdrop{background:rgba(2,6,16,.7)}
.edit-dlg .day-head{padding-bottom:6px}
.row-acts{white-space:nowrap}
.row-acts form{display:inline}
.xbtn.edit:hover{color:var(--acc); background:rgba(111,155,230,.1)}
.reset-row{display:flex; align-items:center; gap:12px; margin:14px 0 4px; flex-wrap:wrap}

/* overview: live accounts lead, finished stages are a quiet list */
.done-head{margin-top:36px}
.done-list td{color:var(--mut)}
.done-list a.named{color:var(--tx); font-weight:500}
.done-list a.named:hover{text-decoration:none; color:var(--acc)}
.done-list .status{font-size:10.5px}
.status.passed{color:var(--up)}

/* trade form: optional prices as a quiet group */
.subgroup{margin:18px 0 0; padding:14px 16px 4px; border:1px solid var(--line); border-radius:12px; background:var(--bg2); min-width:0}
.subgroup legend{padding:0 6px; font:600 13px var(--body); color:var(--tx)}
.subgroup legend .opt{font-weight:400; margin-left:4px}
.subgroup .grid{margin-top:4px}
@media (max-width:560px){
  .done-list th:nth-child(3),.done-list td:nth-child(3),.done-list th:nth-child(5),.done-list td:nth-child(5){display:none}
  .done-list a.named .faint{display:none}
  .done-list .status{white-space:normal}
  .done-list th,.done-list td{padding-left:12px; padding-right:12px}
}

/* interaction: dialogs, pressed states, sending forms (CSS only; reduced motion below) */
.day-dlg[open],.edit-dlg[open]{animation:dlg-in .18s cubic-bezier(.2,.8,.2,1)}
.day-dlg[open]::backdrop,.edit-dlg[open]::backdrop{animation:fade .18s ease-out}
@keyframes dlg-in{from{opacity:0; transform:translateY(6px) scale(.97)} to{opacity:1; transform:none}}
@keyframes fade{from{opacity:0} to{opacity:1}}
.xbtn{transition:color .12s ease, background-color .12s ease, transform .08s ease}
.xbtn:active{transform:scale(.9)}
.cbtn{transition:background-color .12s ease}
.cbtn:active{background:rgba(255,255,255,.06)}
a.acct:active{transform:translateY(0); transition-duration:.05s}
.seg a{transition:color .12s ease, background-color .12s ease}
.seg a:active{background:var(--card2)}
.btn:disabled,.btn[aria-busy=true]{opacity:.65; cursor:progress}
.btn:disabled:active{transform:none}

/* reduced motion: no movement; menus and dialogs only fade */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after,::backdrop{transition:none !important}
  .drop[open] .menu-pop{animation:none !important}
  .day-dlg[open],.edit-dlg[open]{animation:fade .12s linear !important}
  a.acct:hover,a.acct:focus-visible,a.acct:active,.btn:active,.xbtn:active{transform:none}
}

/* sign-up / login portal (auth_base.html) and the account forms that share its fields */
.auth-page{min-height:100vh; display:flex; flex-direction:column}
.auth-page .foot{margin-top:auto}
.auth-logo:hover{text-decoration:none}
.auth-nav{margin-left:auto; display:flex; align-items:center; gap:12px; color:var(--mut); font-size:14px}
.auth{flex:1 0 auto; position:relative; padding:56px 0 24px}
.auth::before{content:""; position:absolute; inset:0 0 auto 0; height:420px; pointer-events:none;
  background:radial-gradient(45% 70% at 18% 0%, rgba(26,83,163,.22), transparent 70%)}
.auth-grid{position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,440px); gap:72px; align-items:start}
.auth-aside{padding-top:28px; max-width:460px}
.auth-aside h2{font:700 clamp(30px,3.4vw,40px)/1.1 var(--disp); letter-spacing:-.025em; margin:0}
.auth-points{list-style:none; margin:32px 0 0; padding:0; display:grid; gap:20px}
.auth-points li{padding-left:18px; border-left:2px solid var(--line)}
.auth-points b{display:block; font-weight:600}
.auth-points span{display:block; color:var(--mut); font-size:15px; margin-top:2px}
.auth-card{padding:32px}
.auth-card h1{font:700 28px/1.15 var(--disp); letter-spacing:-.02em; margin:0}
.auth-card .lead{margin:8px 0 24px; font-size:15px}
.field{margin:0 0 18px}
.label-row{display:flex; justify-content:space-between; align-items:baseline; gap:12px}
.label-row a{font-size:13.5px}
.pw{position:relative}
.pw input{padding-right:68px}
.pw-btn{position:absolute; right:6px; top:50%; transform:translateY(-50%); min-height:32px; padding:4px 10px; border:0; border-radius:6px;
  background:transparent; color:var(--mut); font:600 13px/1 var(--body); cursor:pointer}
.pw-btn:hover{color:var(--tx); background:var(--card2)}
.field-msg{margin:6px 0 0; font-size:13px; line-height:1.45; color:var(--faint); min-height:1em}
.field-msg.ok{color:var(--up)} .field-msg.err{color:#ffb3b9} .field-msg.busy{color:var(--mut)}
.btn.block{display:flex; width:100%; margin-top:8px}
a.btn[aria-disabled=true]{opacity:.55}
.auth-alt{margin:24px 0 0; padding-top:20px; border-top:1px solid var(--line); color:var(--mut); font-size:14px; text-align:center}
.auth-legal{margin-top:16px; font-size:12.5px}
.hp{position:absolute !important; left:-10000px; width:1px; height:1px; overflow:hidden}
.code-input{font-family:var(--mono) !important; letter-spacing:.08em; text-transform:uppercase}
.codebox{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:0 0 4px;
  padding:16px 18px; border:1px dashed var(--ctl); border-radius:12px; background:var(--bg2)}
.code{font:600 clamp(18px,2.2vw,22px)/1.2 var(--mono); letter-spacing:.06em; color:var(--tx); user-select:all}
.code-actions{display:flex; gap:8px}
.check{display:flex; align-items:center; gap:10px; font-weight:500; margin:20px 0 6px; cursor:pointer}
.check.nudge{color:var(--warn)}
@media (max-width:900px){
  .auth{padding:28px 0 16px}
  .auth-grid{grid-template-columns:minmax(0,1fr); gap:0}
  .auth-aside{display:none}
  .auth-card{padding:24px 20px}
  .auth-page .bar .logo{display:flex}
}
.danger-zone{border-color:rgba(240,97,109,.35)}
.danger-zone h2{color:#ffc0c5}
/* Prop Calculator: referral buttons under the comparison table */
.ref-strip{display:flex; flex-wrap:wrap; gap:12px; margin-top:20px}
.ref-strip:empty{display:none}
a.ref-btn{display:flex; align-items:center; gap:12px; flex:1 1 260px; max-width:380px; padding:12px 16px; border:1px solid var(--ctl);
  border-radius:12px; background:var(--card); color:var(--tx); transition:border-color .15s ease, background-color .15s ease}
a.ref-btn:hover,a.ref-btn:focus-visible{border-color:var(--acc); background:var(--card2); text-decoration:none}
a.ref-btn .fmark{width:32px; height:32px; flex:0 0 auto}
.ref-txt{display:flex; flex-direction:column; min-width:0; flex:1}
.ref-txt b{font-weight:600; font-size:15px}
.ref-txt small{color:var(--up); font:600 12.5px/1.4 var(--mono); letter-spacing:.02em}
.ref-ext{color:var(--mut)}
.ref-note{flex-basis:100%; margin:0; color:var(--faint); font-size:12.5px}
/* Get full access (/dashboard/access) */
.plan.access{color:var(--acc); background:rgba(111,155,230,.12)}
.access-table td.access-grant{color:var(--up); font-weight:600}
.claim-list{list-style:none; margin:12px 0 0; padding:0}
.claim-list li{display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:14px 0; border-top:1px solid var(--line)}
.claim-list li:first-child{border-top:0}
.claim-id{font-size:12.5px; margin-top:2px; word-break:break-all}
.claim-st{text-align:right; flex:0 0 auto}
.claim-st small{display:block; color:var(--faint); font-size:12.5px; margin-top:6px}
.menu-pop a.menu-cta{color:var(--acc); font-weight:600}
/* Discord login (sign-up, login, membership pages) */
.discord-btn{gap:10px}
.btn.discord-btn:not(.ghost){background:#5865f2; border-color:#5865f2}
.btn.discord-btn:not(.ghost):hover{background:#4752c4; border-color:#4752c4}
.dc-ico{flex:0 0 auto}
.auth-card .btn.block + .btn.block{margin-top:10px}
.or{display:flex; align-items:center; gap:12px; margin:18px 0 10px; color:var(--faint); font-size:13px}
.or::before,.or::after{content:""; flex:1; border-top:1px solid var(--line)}
.steps-mini{list-style:none; margin:0 0 20px; padding:0; display:grid; gap:8px; counter-reset:st}
.steps-mini li{counter-increment:st; display:flex; align-items:center; gap:10px; color:var(--faint); font-size:14px}
.steps-mini li::before{content:counter(st); display:grid; place-items:center; width:22px; height:22px; border-radius:50%;
  border:1px solid var(--line); font:600 12px/1 var(--mono)}
.steps-mini li.on{color:var(--tx)} .steps-mini li.on::before{border-color:var(--acc); color:var(--acc)}
.steps-mini li.done{color:var(--mut)} .steps-mini li.done::before{content:"✓"; border-color:var(--up); color:var(--up)}

/* community feed (prop.html): a sidebar beside the accounts, under them on narrow screens */
.with-feed{display:grid; grid-template-columns:minmax(0,1fr) 360px; grid-template-areas:"main feed"; column-gap:32px}
.wf-main{grid-area:main}
.feed{grid-area:feed; align-self:start; position:sticky; top:calc(var(--bar) + 16px); margin:0 0 40px;
  max-height:calc(100vh - var(--bar) - 32px); display:flex; flex-direction:column; scroll-margin-top:calc(var(--bar) + 16px)}
.feed-head{display:flex; align-items:center; gap:10px; padding:0 0 10px}
.feed-head h2{font-size:22px}
.live{display:inline-flex; align-items:center; gap:6px; font:600 11px/1 var(--mono); letter-spacing:.1em; text-transform:uppercase; color:var(--up)}
.live::before{content:""; width:7px; height:7px; border-radius:50%; background:currentColor; animation:pulse 2s ease-in-out infinite}
@keyframes pulse{50%{opacity:.35}}
.feed-head h2{white-space:nowrap}
.feed-head .live{margin-right:auto}
.feed-opts > summary{list-style:none; cursor:pointer; color:var(--mut); font-size:13px; font-weight:500; padding:6px 10px;
  border:1px solid var(--line); border-radius:8px; display:flex; align-items:center; gap:7px; white-space:nowrap}
.feed-opts > summary::-webkit-details-marker{display:none}
.feed-opts > summary::after{content:""; width:5px; height:5px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor;
  transform:rotate(45deg) translateY(-2px)}
.feed-opts > summary:hover,.feed-opts[open] > summary{color:var(--tx); border-color:var(--ctl); background:var(--card2)}
.feed-opts .menu-pop{min-width:240px; padding:6px 6px 4px}
.opt-row{display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:8px; font-size:14px; color:var(--tx); cursor:pointer}
.opt-row:hover{background:var(--card2)}
.opt-row input{width:16px; height:16px; margin:0; accent-color:var(--acc)}
.feed-opts .btn{margin:8px 12px 4px}
.feed-note{margin:0 0 14px; font-size:13px; line-height:1.5; color:var(--faint)}
.feed-note b{color:var(--mut); font-weight:600}
#feed-list{overflow-y:auto; min-height:0; contain:paint;   /* paint: items scrolled away don't lengthen the page */ margin:0 -6px; padding:0 6px 24px;   /* room for the cards' shadows */
  -webkit-mask-image:linear-gradient(#000 calc(100% - 28px), transparent); mask-image:linear-gradient(#000 calc(100% - 28px), transparent)}
/* thin dark scroll bars on the feed and the bell's list, shown while the pointer is over them */
#feed-list,.notif-pop{scrollbar-width:thin; scrollbar-color:transparent transparent}
#feed-list:hover,.notif-pop:hover{scrollbar-color:#22396a transparent}
#feed-list::-webkit-scrollbar,.notif-pop::-webkit-scrollbar{width:6px}
#feed-list::-webkit-scrollbar-track,.notif-pop::-webkit-scrollbar-track{background:transparent}
#feed-list::-webkit-scrollbar-thumb,.notif-pop::-webkit-scrollbar-thumb{background:transparent; border-radius:3px}
#feed-list:hover::-webkit-scrollbar-thumb,.notif-pop:hover::-webkit-scrollbar-thumb{background:#22396a}
#feed-list::-webkit-scrollbar-thumb:hover,.notif-pop::-webkit-scrollbar-thumb:hover{background:#2f4a82}
.feed-list{list-style:none; margin:0; padding:0; display:grid; gap:0; border-top:1px solid var(--line)}
.fe{display:flex; gap:13px; align-items:flex-start; padding:14px 4px 14px 16px; background:none; border:0;
  border-bottom:1px solid var(--line); border-radius:0}
.fe-av{width:40px; height:40px; border-radius:50%; object-fit:cover; flex:none; background:var(--card2)}
.fe p{margin:0; font-size:15px; line-height:1.45; color:var(--mut); overflow-wrap:anywhere}
.fe b{color:var(--tx); font-weight:600}
.fe b.pos{color:var(--up)} .fe b.neg{color:var(--down)}
.fe .pos,.fe .neg{font-variant-numeric:tabular-nums}
.fe-plain{color:var(--tx)}
/* feed cards carry their stage on the left edge */
.fe.stage-eval{box-shadow:inset 2px 0 0 var(--eval)}
.fe.stage-funded{box-shadow:inset 2px 0 0 var(--funded)}
.fe-body{flex:1; min-width:0}
.fe-meta{display:flex; align-items:center; gap:10px; margin-top:6px}
.fe time{font:500 12px var(--mono); color:var(--faint)}
.fe-react{margin:0}
.react{display:inline-flex; align-items:center; gap:5px; padding:3px 9px; border-radius:999px; border:1px solid var(--line);
  background:transparent; color:var(--mut); font:500 12px/1.2 var(--body); cursor:pointer;
  transition:background-color .12s ease, border-color .12s ease, color .12s ease, transform .1s ease}
.react b{font:600 12px var(--mono); color:var(--tx)}
.react b:empty{display:none}
.react:hover{border-color:var(--ctl); color:var(--tx)}
.react:active{transform:scale(.94)}
.react.hype.on{background:rgba(231,194,75,.12); border-color:rgba(231,194,75,.45); color:#f3dc8f}
.react.hug.on{background:rgba(111,155,230,.14); border-color:rgba(111,155,230,.5); color:#c3d5f5}
.react:disabled{cursor:default; border-color:transparent; padding-left:0}
.react:disabled:hover{color:var(--mut)}
.react:disabled:active{transform:none}
.fe.new{animation:feed-in .3s ease-out, feed-lit 2.4s ease-out}
@keyframes feed-in{from{opacity:0; transform:translateY(-8px) scale(.97)}}
@keyframes feed-lit{from{background:rgba(111,155,230,.12)}}
.fe-empty{padding:18px; font-size:13px; color:var(--faint); background:var(--card); border:1px dashed var(--line); border-radius:14px}
@media (max-width:980px){
  .with-feed{grid-template-columns:minmax(0,1fr); grid-template-areas:"main" "feed"}
  .feed{position:static; max-height:none}
  #feed-list{max-height:420px}
}
@media (prefers-reduced-motion:reduce){
  .live::before,.fe.new{animation:none}
}

/* notification bell (prop_base.html): hypes and hugs given to your feed events */
.notif{margin-left:8px}
.notif > summary{list-style:none; position:relative; display:grid; place-items:center; width:40px; height:40px; border-radius:50%;
  border:1px solid var(--line); color:var(--mut); cursor:pointer}
.notif > summary::-webkit-details-marker{display:none}
.notif > summary:hover,.notif[open] > summary{color:var(--tx); border-color:var(--ctl); background:var(--card)}
.notif .badge{position:absolute; top:-4px; right:-5px; min-width:18px; height:18px; padding:0 5px; border-radius:9px;
  background:var(--down); color:#fff; font:700 11px/18px var(--body); text-align:center; box-shadow:0 0 0 2px var(--bg)}
.notif-pop{width:360px; max-height:min(480px, calc(100vh - var(--bar) - 24px)); overflow-y:auto}
.notif-list{list-style:none; margin:0; padding:0}
.nt{display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border-radius:8px}
.nt + .nt{margin-top:2px}
.nt img{width:32px; height:32px; border-radius:50%; object-fit:cover; flex:none; background:var(--card2)}
.nt p{margin:0; font-size:13.5px; line-height:1.45; color:var(--mut); overflow-wrap:anywhere}
.nt b{color:var(--tx); font-weight:600}
.nt time{display:block; margin-top:2px; font:500 11.5px var(--mono); color:var(--faint)}
.nt.unread{background:var(--card2)}
.nt.unread time::before{content:""; display:inline-block; width:6px; height:6px; margin-right:6px; border-radius:50%; background:var(--acc); vertical-align:1px}
.notif-empty{margin:0; padding:6px 12px 12px; color:var(--faint); font-size:13px; line-height:1.5}
.notif-foot{margin:6px 12px 6px; padding-top:8px; border-top:1px solid var(--line)}
.linkbtn{background:none; border:0; padding:4px 0; color:var(--acc); font:500 13px var(--body); cursor:pointer}
.linkbtn:hover{text-decoration:underline; text-underline-offset:3px}
@media (max-width:720px){
  .notif{margin-left:4px}
  .notif > summary{width:36px; height:36px}
  .notif .menu-pop{position:fixed; left:12px; right:12px; top:calc(var(--bar) + 6px); width:auto}
}
/* phones: logo, Buy, bell and account menu in one row (the sections are in the tab bar) */
@media (max-width:720px){
  .bar .wrap{gap:6px}
  .notif,.menu{margin-left:0}
  .menu > summary{padding:3px; gap:0}
  .menu > summary::after{display:none}
}
@media (max-width:380px){ .logo span{display:none} }

/* community feed folded to a strip on the right (users.feed_collapsed); the accounts take the width */
.feed-fold{margin:0}
.fold-btn{display:grid; place-items:center; width:30px; height:30px; border-radius:8px; border:1px solid var(--line);
  background:transparent; color:var(--mut); cursor:pointer}
.fold-btn:hover{color:var(--tx); border-color:var(--ctl); background:var(--card2)}
.feed-rail{display:none; margin:0}
.with-feed.feed-hidden{grid-template-columns:minmax(0,1fr) 52px}
.feed-hidden .feed > :not(.feed-rail){display:none}
.feed-hidden .feed-rail{display:block}
.feed-rail button{display:flex; flex-direction:column; align-items:center; gap:12px; width:52px; padding:14px 0 18px;
  border:1px solid var(--line); border-radius:14px; background:var(--card); color:var(--mut); cursor:pointer;
  box-shadow:0 12px 30px rgba(0,0,0,.28)}
.feed-rail button:hover{color:var(--tx); border-color:var(--ctl)}
.rail-n{min-width:24px; height:22px; padding:0 6px; border-radius:11px; background:var(--acc); color:#06112a;
  font:700 12px/22px var(--body); text-align:center}
.rail-label{writing-mode:vertical-rl; transform:rotate(180deg); font:600 12px/1 var(--mono); letter-spacing:.12em; text-transform:uppercase}
/* firm filter above the accounts */
.firm-filter{display:flex; flex-wrap:wrap; width:fit-content; max-width:100%; margin:0 0 16px}
.firm-filter a{white-space:nowrap}
.firm-filter a .faint{margin-left:4px; font:500 12px var(--mono)}
.firm-filter a[aria-current]{color:var(--tx); background:var(--card2)}
@media (max-width:980px){
  .with-feed.feed-hidden{grid-template-columns:minmax(0,1fr)}
  .feed-rail button{flex-direction:row; justify-content:center; width:100%; padding:12px 16px}
  .rail-label{writing-mode:horizontal-tb; transform:none; order:-1}
  .feed-rail svg{order:-2; transform:rotate(-90deg)}
}

/* ---------------------------------------------------------------- analytics tab (prop_analytics.html) */
.an-filters{display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:0 0 26px}
.an-filters form{margin:0}
.an-period{max-width:100%; overflow-x:auto; scrollbar-width:none}
.an-period::-webkit-scrollbar{display:none}
.an-period a{flex:none; white-space:nowrap}
.an-custom{display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 12px; margin:-12px 0 26px}
.an-custom > div{display:flex; flex-direction:column; gap:6px}
.an-custom label{font-size:13px; color:var(--mut)}
.an-custom input[type=date]{width:auto; min-width:160px}
.an-filters select{width:auto; min-height:40px}
.an-filters .sp{flex:1}
.an-asof{color:var(--faint); font:500 12.5px var(--mono)}
.an-top{display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,3fr); gap:16px; margin:0 0 16px}
.an-hero,.an-tile,.an-card{background:var(--card); border:1px solid var(--line); border-radius:var(--r); min-width:0}
.an-hero{padding:22px 24px}
.an-k{color:var(--faint); font:600 11.5px/1.3 var(--mono); letter-spacing:.1em; text-transform:uppercase}
.an-hero .an-v{font:700 clamp(40px,4.4vw,54px)/1.05 var(--disp); letter-spacing:-.02em; margin:10px 0 6px}
.an-hero .an-eq{color:var(--mut); font-size:14px; margin:0}
.an-hero .an-eq b{color:var(--tx); font-weight:600}
.an-split{display:flex; height:8px; border-radius:4px; overflow:hidden; gap:2px; margin:16px 0 8px; background:var(--card2)}
.an-split i{display:block}
.an-split .fee{background:var(--down)} .an-split .pay{background:var(--up)}
.an-leg{display:flex; flex-wrap:wrap; gap:6px 16px; color:var(--mut); font-size:12.5px}
.an-key{display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:6px}
.an-note{color:var(--faint); font-size:12.5px; margin:12px 0 0}
.an-tiles{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px}
.an-tile{padding:16px 18px}
.an-tile .an-k{font-size:11px}
.an-tile .an-v{font:600 28px/1.15 var(--body); letter-spacing:-.01em; margin:8px 0 2px; font-variant-numeric:tabular-nums}
.an-tile .an-d{font-size:12.5px; color:var(--mut)}
.an-tile .an-d .pos,.an-tile .an-d .neg{font-weight:600}

.an-card{padding:20px 22px 18px}
.an-card-h{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin:0 0 4px}
.an-card-h h2{font-size:18px}
.an-card-h p{margin:4px 0 0; color:var(--faint); font-size:13px}
.an-tbtn{background:none; border:1px solid var(--line); color:var(--mut); border-radius:8px; padding:5px 10px;
  font:500 12.5px var(--body); cursor:pointer; white-space:nowrap; transition:color .12s ease, border-color .12s ease}
.an-tbtn:hover,.an-tbtn[aria-pressed=true]{color:var(--tx); border-color:var(--ctl); background:var(--card2)}
.an-legend{display:flex; flex-wrap:wrap; gap:6px 16px; margin:10px 0 2px; color:var(--mut); font-size:12.5px}
.an-legend svg{display:inline-block; vertical-align:-1px; margin-right:6px}
.an-chart{position:relative; margin-top:10px}
.an-chart svg{display:block; width:100%; height:auto; overflow:visible}
.an-chart .an-tbl{display:none}
.an-card.as-table .an-chart svg,.an-card.as-table .an-legend{display:none}
.an-card.as-table .an-chart .an-tbl{display:block; animation:fade .16s ease-out}
.an-card:not(.as-table) .an-chart svg.shown{animation:fade .16s ease-out}
.an-tbl table{font-size:13.5px} .an-tbl th,.an-tbl td{padding:8px 12px}
.an-tbl{max-height:420px; overflow:auto}
.an-empty{color:var(--faint); font-size:14px; margin:18px 0 6px}
.an-grid2{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:16px 0}
.an-insight{margin:12px 0 0; padding-top:12px; border-top:1px solid var(--line); color:var(--mut); font-size:13.5px}
.an-insight b{color:var(--tx); font-weight:600}
/* SVG text wears text tokens only; the marks carry the colour */
.an-chart .ax{fill:var(--faint); font:500 11.5px var(--mono)}
.an-chart .lbl{fill:var(--mut); font:500 12.5px var(--body)}
.an-chart .val{fill:var(--tx); font:600 12.5px var(--mono)}
.an-chart .grid-l{stroke:var(--line); stroke-width:1}
.an-chart .base-l{stroke:#2a3d66; stroke-width:1}
/* rule health */
.an-meters{display:grid; gap:14px; margin-top:12px}
.an-mrow,.an-mhead{display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr); gap:16px; align-items:center}
.an-mhead{color:var(--faint); font:600 11px var(--mono); letter-spacing:.1em; text-transform:uppercase}
.an-acc{display:flex; align-items:center; gap:10px; min-width:0; color:var(--tx)}
.an-acc:hover{text-decoration:none} .an-acc:hover b{color:var(--acc)}
.an-acc img,.an-acc .fmark{width:28px; height:28px; border-radius:7px; flex:none}
.an-acc b{display:block; font-weight:600; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.an-acc small{color:var(--faint); font-size:12px}
.an-mt .l{display:flex; justify-content:space-between; gap:8px; font-size:12px; color:var(--mut); margin-bottom:5px}
.an-mt .l span:last-child{font-family:var(--mono); color:var(--tx)}
.an-sev{font:600 11px var(--mono); margin-left:6px; color:var(--mut)}
.an-sev i{font-style:normal}
.an-firms{margin-top:16px}
.an-firms td .fmark{width:26px; height:26px; border-radius:6px}
#an-tip{position:fixed; z-index:60; left:0; top:0; pointer-events:none; background:#0d2147; border:1px solid #23396a; border-radius:8px;
  padding:8px 10px; font-size:12.5px; line-height:1.45; color:var(--tx); box-shadow:0 12px 30px rgba(0,0,0,.4); opacity:0;
  transition:opacity .08s; max-width:260px}
#an-tip b{font-family:var(--mono)} #an-tip small{display:block; color:var(--faint); margin-top:2px}
@media (max-width:980px){
  .an-top,.an-grid2{grid-template-columns:minmax(0,1fr)}
  .an-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .an-mrow,.an-mhead{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .an-mrow .an-acc,.an-mhead span:first-child{grid-column:1/-1}
  .an-mhead span:first-child{display:none}
  .an-ml{display:none} .an-sev{margin-left:0}
  .an-mt .l{white-space:nowrap}
  .an-tile .an-v{font-size:23px}
  .an-card{padding:18px 16px 16px}
}
@media (prefers-reduced-motion:reduce){ #an-tip,.an-tbtn{transition:none} }

/* ---------------------------------------------------------------- tracker home: the money head */
.money{display:grid; grid-template-columns:minmax(0,auto) minmax(0,1fr); gap:28px 48px; align-items:end; margin-top:32px}
.money-k{color:var(--faint); font:600 12px/1.3 var(--mono); letter-spacing:.1em; text-transform:uppercase}
.money-k span{letter-spacing:.02em; text-transform:none; font-weight:500}
.money-v{font:700 clamp(46px,6vw,76px)/1 var(--disp); letter-spacing:-.035em; margin:10px 0 10px}
.money-eq{margin:0; color:var(--mut); font-size:15px}
.money-eq b{font:600 15px var(--mono); color:var(--tx)} .money-eq b.pos{color:var(--up)}
.money-chart{min-width:0; height:120px}
.mcurve{display:block; width:100%; height:120px; overflow:visible}
.mcurve path{vector-effect:non-scaling-stroke}
.mcurve .ln{fill:none; stroke-width:2.2; stroke-linejoin:round}
.mcurve .zero{stroke:#2a3d66; stroke-width:1; stroke-dasharray:4 4}
.intro .mcurve .ln{stroke-dasharray:2000; animation:draw 1.4s var(--ease) .15s both}
@keyframes draw{from{stroke-dashoffset:2000}}
.first-run{padding:40px 32px; border-style:solid; background:radial-gradient(80% 120% at 0% 0%, rgba(26,83,163,.18), transparent 60%), var(--card)}
.first-run h3{font-size:22px}
@media (max-width:860px){
  .money{grid-template-columns:minmax(0,1fr); gap:18px}
  .money-chart,.mcurve{height:88px}
}
@media (max-width:720px){
  .page-head{padding:28px 0 20px}
  .head-acts{width:100%} .head-acts .btn{flex:1}
  .accts{grid-template-columns:minmax(0,1fr)}
  .spark{width:96px}
  .size{font-size:27px}
}

/* ---------------------------------------------------------------- account page: the head card, actions, history */
.acct-head{padding-bottom:20px}
.hero-card{position:relative; background:var(--card); border:1px solid var(--line); border-radius:24px; padding:24px 26px 22px;
  box-shadow:var(--lift); display:flex; flex-direction:column; gap:18px}
.hero-card.stage-funded{background:radial-gradient(90% 120% at 100% 0%, rgba(180,140,255,.14), transparent 55%), var(--card)}
.hero-card .acct-top{align-items:center}
.h-firm{display:flex; align-items:center; gap:14px; font-size:clamp(24px,3vw,32px)}
.h-firm .faint{font-weight:600}
.h-firm small{display:block; font:500 14px/1.3 var(--body); color:var(--faint); letter-spacing:0; margin-top:2px}
.hero-row{display:flex; align-items:flex-end; justify-content:space-between; gap:24px}
.hero-bal{font:700 clamp(40px,5.4vw,64px)/1 var(--disp); letter-spacing:-.035em}
.hero-row .bal{margin-top:10px; font-size:15px}
.hero-spark{flex:1 1 auto; max-width:440px; min-width:0}
.hero-spark .spark{width:100%; height:64px}
.toolbar{display:flex; flex-wrap:wrap; gap:10px; margin-top:20px}
.tb-form{display:contents}
.tabs + .toolbar{margin-top:18px}
.hist.folded tr.more{display:none}
.show-all{margin-top:12px}
.row-acts{white-space:nowrap; width:1%}
.row-acts form{display:inline}
.row-acts .icon-btn{width:32px; height:32px}
.row-acts .icon-btn.del:hover{color:var(--down); background:rgba(240,97,109,.08)}
@media (max-width:720px){
  .hero-card{padding:18px 18px 16px; border-radius:20px; gap:14px}
  .hero-row{flex-direction:column; align-items:stretch; gap:10px}
  .hero-spark{max-width:none}
  .hero-spark .spark{height:48px}
  .toolbar .btn{flex:1 1 calc(50% - 10px)}
  .hist th:nth-child(3),.hist td:nth-child(3),.hist th:nth-child(4),.hist td:nth-child(4),.hist th:nth-child(5),.hist td:nth-child(5){display:none}
}

/* ---------------------------------------------------------------- share sheet (share.js) */
dialog.share-sheet{width:min(940px,calc(100vw - 32px))}
.sh-grid{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:24px; align-items:start}
.sh-prev{display:grid; place-items:center; background:var(--bg); border:1px solid var(--line); border-radius:16px; padding:14px}
.sh-prev canvas{display:block; width:100%; height:auto; max-height:62vh; object-fit:contain; border-radius:10px;
  box-shadow:0 20px 50px rgba(0,0,0,.5)}
.sh-prev.story canvas{width:auto; height:62vh; max-width:100%}
.sh-opts{display:flex; flex-direction:column; gap:16px}
.sh-row{display:flex; flex-direction:column; gap:8px}
.sh-lab{font:600 11.5px/1 var(--mono); letter-spacing:.1em; text-transform:uppercase; color:var(--faint)}
.sh-seg{display:flex; flex-wrap:wrap; width:fit-content; max-width:100%}
.sh-seg button{padding:9px 14px; border:0; background:none; color:var(--mut); font:500 14px var(--body); cursor:pointer}
.sh-seg button + button{border-left:1px solid var(--line)}
.sh-seg button:hover{color:var(--tx)}
.sh-seg button[aria-current]{background:var(--card2); color:var(--tx); box-shadow:inset 0 -2px 0 var(--acc)}
.sh-switch{display:grid; grid-template-columns:auto 1fr; column-gap:12px; align-items:center; margin:0; font-weight:500; cursor:pointer}
.sh-switch input{grid-row:span 2; appearance:none; width:44px; height:26px; border-radius:13px; background:var(--card3); border:1px solid var(--line);
  position:relative; margin:0; cursor:pointer; transition:background-color .2s ease}
.sh-switch input::after{content:""; position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%; background:var(--tx);
  transition:transform .3s var(--spring)}
.sh-switch input:checked{background:var(--brand); border-color:var(--brand)}
.sh-switch input:checked::after{transform:translateX(18px)}
.sh-switch small{color:var(--faint); font-size:12.5px; font-weight:400}
.sh-acts{display:flex; flex-wrap:wrap; gap:10px; margin-top:4px}
.sh-msg{min-height:1.4em; margin:0}
@media (max-width:720px){
  .sh-grid{grid-template-columns:minmax(0,1fr); gap:16px}
  .sh-prev canvas{max-height:44vh; width:auto; max-width:100%}
  .sh-prev.story canvas{height:44vh}
  .sh-acts .btn{flex:1 1 auto}
}

/* ---------------------------------------------------------------- less upkeep: last update, reminder, all balances at once */
.acct-foot{display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:auto; min-height:18px}
.idle{font:500 12px/1.3 var(--mono); color:var(--faint); white-space:nowrap}
.foot-l{display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; min-width:0}
.paid-out{display:inline-flex; align-items:baseline; gap:5px; padding:4px 10px; border-radius:999px; background:rgba(55,214,143,.1);
  color:var(--mut); font-size:12.5px; white-space:nowrap}
.paid-out b{font:600 13px/1.2 var(--mono); color:var(--up); font-variant-numeric:tabular-nums}
.idle.old{color:var(--warn)}
.idle.old::before{content:""; display:inline-block; width:6px; height:6px; border-radius:50%; background:currentColor; margin-right:6px; vertical-align:1px}
.nudge{display:flex; align-items:center; gap:14px; margin:0 0 24px; padding:14px 16px; border-radius:16px;
  border:1px solid rgba(231,194,75,.35); background:linear-gradient(90deg, rgba(231,194,75,.09), rgba(231,194,75,.02))}
.nudge > span{display:grid; place-items:center; width:36px; height:36px; border-radius:10px; background:rgba(231,194,75,.14); color:var(--warn); flex:none}
.nudge p{margin:0; flex:1; color:var(--mut); font-size:14.5px; line-height:1.5}
.nudge b{color:var(--tx); font-weight:600}
.bal-list{list-style:none; margin:0 0 16px; padding:0; display:grid; gap:8px}
.bal-list li{display:grid; grid-template-columns:minmax(0,1fr) minmax(130px,190px); gap:14px; align-items:center; padding:10px 12px;
  border:1px solid var(--line); border-radius:14px; background:var(--bg2)}
.bal-acct{display:flex; align-items:center; gap:12px; margin:0; min-width:0; cursor:pointer}
.bal-acct span{min-width:0}
.bal-acct b{display:block; font-weight:600; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.bal-acct small{display:block; color:var(--faint); font-size:12.5px; font-weight:400}
.bal-acct em{font-style:normal; color:var(--warn)}
.bal-list input{text-align:right}
@media (max-width:720px){
  .nudge{flex-wrap:wrap} .nudge .btn{width:100%}
  .bal-list li{grid-template-columns:minmax(0,1fr)}
  .bal-list input{text-align:left}
}
.check.again{margin:14px 0 0; font-size:14px; color:var(--mut)}
.subgroup.fold{padding:0 16px}
.subgroup.fold > summary{list-style:none; cursor:pointer; display:flex; align-items:center; gap:8px; padding:13px 0; font:600 14px var(--body)}
.subgroup.fold > summary::-webkit-details-marker{display:none}
.subgroup.fold > summary::before{content:""; width:7px; height:7px; border-right:1.6px solid var(--faint); border-bottom:1.6px solid var(--faint);
  transform:rotate(-45deg); transition:transform .25s var(--spring); margin-right:4px}
.subgroup.fold[open] > summary::before{transform:rotate(45deg)}
.subgroup.fold[open]{padding-bottom:4px}
.subgroup.fold .grid{margin-top:0}

/* reduced motion: no page morphs, no arrivals, no springs; sheets and menus only fade */
@media (prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  .intro .acct,.intro .rw-puck,.intro .rw-fill,.intro .mcurve .ln{animation:none !important}
  dialog.sheet[open],dialog.sheet.closing{animation:fade .12s linear !important}
  dialog.sheet.closing{animation-direction:reverse !important}
  a.acct:hover,a.acct:focus-visible,a.acct:active,.icon-btn:active,.tabbar a:active svg{transform:none}
  .sh-switch input::after,.subgroup.fold > summary::before{transition:none}
}

/* ---------------------------------------------------------------- calendar: tiles shaded by how much the day moved */
.cal{gap:6px; border:0; border-radius:0; background:none; overflow:visible; view-transition-name:cal}
.cal .hd{background:none; border:0; padding:2px 10px 4px}
.cal .c,.cal .wk{border:0; border-radius:14px; min-height:96px}
.cal .c{background:var(--card); box-shadow:inset 0 1px 0 var(--hi); transition:transform .3s var(--spring), box-shadow .2s ease, background-color .2s ease}
.cal .c.out{background:transparent; box-shadow:inset 0 0 0 1px rgba(255,255,255,.035)}
.cal .c.g{background:rgba(55,214,143, calc(.1 + var(--heat, 0) * .2))}
.cal .c.r{background:rgba(240,97,109, calc(.1 + var(--heat, 0) * .2))}
.cal .c.has .v,.cal .c.has .vs{color:var(--tx)}               /* the tile's colour says up or down; the sign stays in the text */
.cal .c.has .n{color:rgba(232,238,248,.72)}
.cal .c.has .fee{color:#ffc0c5}
.cal .c.has .d{color:rgba(232,238,248,.8)}
.cal .c.has:hover{transform:translateY(-2px) scale(1.02); box-shadow:inset 0 1px 0 var(--hi), 0 14px 30px -12px rgba(0,0,0,.6); z-index:1}
.cal .c.has:active{transform:scale(.97); transition-duration:.1s}
.cal .c .cbtn{border-radius:14px}
.cal .c.today{box-shadow:inset 0 0 0 2px var(--acc)}
.cal .c.today .d{background:none; color:var(--acc); margin:0; padding:0}
.cal .wk{background:none; box-shadow:inset 0 0 0 1px var(--line)}
.cal-nav h2{min-width:190px}
.cal-arrow{width:40px; height:40px; border:1px solid var(--line); border-radius:12px}
/* month change: the calendar slides the way you went (html[data-cal-dir] from the arrows / keys) */
html[data-cal-dir=next]::view-transition-old(cal){animation:cal-out-l .26s var(--ease) both}
html[data-cal-dir=next]::view-transition-new(cal){animation:cal-in-r .44s var(--ease) both}
html[data-cal-dir=prev]::view-transition-old(cal){animation:cal-out-r .26s var(--ease) both}
html[data-cal-dir=prev]::view-transition-new(cal){animation:cal-in-l .44s var(--ease) both}
@keyframes cal-out-l{to{opacity:0; transform:translateX(-56px)}}
@keyframes cal-out-r{to{opacity:0; transform:translateX(56px)}}
@keyframes cal-in-r{from{opacity:0; transform:translateX(56px)}}
@keyframes cal-in-l{from{opacity:0; transform:translateX(-56px)}}
/* the month's days as bars in the head; they rise in on each month */
.mbars{display:block; width:100%; height:120px; overflow:visible}
.mbars .zero{stroke:#2a3d66; stroke-width:1; stroke-dasharray:4 4; vector-effect:non-scaling-stroke}
.mbars rect.up{fill:var(--up)} .mbars rect.dn{fill:var(--down)}
.mbars rect{transform-box:fill-box; transform-origin:50% 100%}
.play-data .mbars rect{animation:growy .5s var(--spring) both; animation-delay:calc(var(--k, 0) * 12ms)}
.mbars rect.dn{transform-origin:50% 0}
@keyframes growy{from{transform:scaleY(0)}}
@keyframes growx{from{transform:scaleX(0)}}
.money-eq em{font:600 15px var(--mono); font-style:normal}
.day-dlg .day-list{border-top:1px solid var(--line)}
@media (max-width:720px){
  .cal{gap:4px}
  .cal .c{min-height:60px; border-radius:10px}
  .cal .c .cbtn{border-radius:10px}
  .cal-nav h2{min-width:0; font-size:20px}
  .cal-bar{gap:12px}
  .mbars{height:72px}
}

/* segmented filters: the highlight is its own element, so it glides to the new choice on navigation */
.seg{position:relative; z-index:0}
.seg a{position:relative}
.seg-pill{position:absolute; inset:0; z-index:-1; background:var(--card2); box-shadow:inset 0 -2px 0 var(--acc)}
.seg a:has(> .seg-pill)[aria-current]{background:none; box-shadow:none}

@media (prefers-reduced-motion:reduce){
  html[data-cal-dir]::view-transition-old(cal),html[data-cal-dir]::view-transition-new(cal){animation:none}
  .mbars rect{animation:none}
  .cal .c.has:hover,.cal .c.has:active{transform:none}
}

/* ---------------------------------------------------------------- analytics: raised cards; each chart draws in once it is in view */
.an-hero,.an-tile,.an-card{box-shadow:var(--lift); border-radius:var(--r)}
.an-hero{background:radial-gradient(90% 120% at 0% 0%, rgba(26,83,163,.22), transparent 60%), var(--card)}
.an-hero .an-v{font-size:clamp(44px,4.8vw,62px); letter-spacing:-.035em}
.an-tile .an-v{font-family:var(--disp); font-weight:700; letter-spacing:-.02em}
.an-hero,.an-tile{transition:opacity .5s var(--ease), transform .6s var(--ease)}
.an-hero.pre,.an-tile.pre{opacity:0; transform:translateY(10px)}
.an-tiles .an-tile:nth-child(2){transition-delay:.04s} .an-tiles .an-tile:nth-child(3){transition-delay:.08s}
.an-tiles .an-tile:nth-child(4){transition-delay:.12s} .an-tiles .an-tile:nth-child(5){transition-delay:.16s}
.an-tiles .an-tile:nth-child(6){transition-delay:.2s}
.an-card.pre .an-chart,.an-card.pre .an-meters{opacity:0}
.an-chart .bar{transform-box:fill-box}
.an-chart .bar.v-up{transform-origin:50% 100%} .an-chart .bar.v-dn{transform-origin:50% 0}
.an-chart .bar.h-r{transform-origin:0 50%} .an-chart .bar.h-l{transform-origin:100% 50%}
.play .an-chart .bar.v-up,.play .an-chart .bar.v-dn{animation:growy .55s var(--spring) both; animation-delay:calc(var(--k, 0) * 28ms + 60ms)}
.play .an-chart .bar.h-r,.play .an-chart .bar.h-l{animation:growx .55s var(--spring) both; animation-delay:calc(var(--k, 0) * 28ms + 60ms)}
.play .an-chart .val{animation:fade .35s ease-out .45s both}
.an-chart .dot{transform-box:fill-box; transform-origin:center}
.play .an-chart .dot{animation:pop .4s var(--spring) both; animation-delay:calc(var(--k, 0) * 20ms + 300ms)}
@keyframes pop{from{transform:scale(0)}}
.play .eq-line{stroke-dasharray:var(--len); animation:dash .9s var(--ease) both}
@keyframes dash{from{stroke-dashoffset:var(--len)}}
.play .eq-area{animation:fade .9s ease-out .4s both}
.play .an-mt .track i{transform-origin:left center; animation:growx .9s var(--spring) .1s both}
/* hover: the bar or dot under the pointer stays bright, the others step back */
.an-chart .bar,.an-chart .dot{transition:opacity .15s ease}
.an-chart svg.hl .bar:not(.on),.an-chart svg.hl .dot:not(.on){opacity:.35}
#an-tip{transition:opacity .12s ease, transform .07s ease-out; border-radius:10px; backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  background:rgba(13,33,71,.92)}
#an-tip.on{opacity:1}
@media (prefers-reduced-motion:reduce){
  .an-hero.pre,.an-tile.pre{opacity:1; transform:none}
  .an-card.pre .an-chart,.an-card.pre .an-meters{opacity:1}
  .play .an-chart .bar,.play .an-chart .dot,.play .eq-line,.play .eq-area,.play .an-mt .track i,.play .an-chart .val{animation:none}
  #an-tip{transition:none}
}
.cal + .hint{margin-top:16px}
.cal-money .money-chart{height:auto}

/* calendar tiles (second pass): day and trade count on top, the P&L as the figure, a bar for the day's size */
.cal .c.has{padding:0}
.cal .c .cbtn{position:relative; display:flex; flex-direction:column; justify-content:space-between; gap:6px; height:100%; padding:10px 12px 14px; overflow:hidden}
.cal .c > .ct{display:flex; justify-content:space-between; align-items:center; padding:10px 12px}
.cal .ct{display:flex; justify-content:space-between; align-items:center; gap:6px; width:100%}
.cal .c .ct .n{font:500 11px/1 var(--mono); color:rgba(232,238,248,.7); padding:4px 6px; border-radius:6px; background:rgba(255,255,255,.06); white-space:nowrap}
.cal .c.today > .ct .n{color:var(--acc); background:rgba(111,155,230,.14)}
.cal .c .vals{align-items:flex-end}
.cal .c .v{font:600 17px/1.15 var(--disp); letter-spacing:-.01em}
.cal .c .fee{font-size:11px}
.cal .c .cbar{position:absolute; left:12px; bottom:7px; height:3px; border-radius:2px; width:calc((100% - 24px) * var(--heat, 0)); min-width:6px;
  background:var(--up); opacity:.9; transform-origin:left center}
.play-data .cal .c .cbar{animation:growx .55s var(--spring) .1s both}
.cal .c.r .cbar{background:var(--down)}
.cal .wk{flex-direction:column; justify-content:center; gap:4px}
.cal .wk b{font:600 16px/1.2 var(--disp); letter-spacing:-.01em}
.cal .wk.g{background:rgba(55,214,143,.05)} .cal .wk.r{background:rgba(240,97,109,.05)}
/* the four numbers above the calendar as cards */
.stat-tiles{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 32px}
.stile{background:var(--card); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--lift); padding:16px 18px; min-width:0}
.stile .k{display:block; color:var(--faint); font:600 11px/1.3 var(--mono); letter-spacing:.1em; text-transform:uppercase}
.stile b{display:block; font:700 26px/1.15 var(--disp); letter-spacing:-.02em; margin:8px 0 2px}
.stile small{display:block; color:var(--mut); font-size:12.5px}
.stile small em{font:600 12.5px var(--mono); font-style:normal}
.ring-tile{display:flex; align-items:center; justify-content:space-between; gap:12px}
.ring{width:52px; height:52px; flex:none; transform:rotate(-90deg)}
.ring circle{fill:none; stroke-width:5}
.ring-bg{stroke:var(--card3)}
.ring-fg{stroke:var(--acc); stroke-linecap:round; stroke-dasharray:var(--p) 100}
.play-data .ring-fg{animation:ring-in .8s var(--ease) .15s both}
@keyframes ring-in{from{stroke-dasharray:0 100}}
@media (max-width:860px){ .stat-tiles{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:720px){
  .cal .c .cbtn{padding:6px 5px 9px; gap:2px}
  .cal .c > .ct{padding:6px 5px}
  .cal .c .ct .n{display:none}
  .cal .c .cbar{left:5px; bottom:4px; width:calc((100% - 10px) * var(--heat, 0)); height:2px}
  .cal .c .vs{font:600 11.5px/1.2 var(--mono)}
  .stile{padding:14px} .stile b{font-size:22px} .ring{width:44px; height:44px}
}
@media (prefers-reduced-motion:reduce){ .cal .c .cbar,.ring-fg{animation:none} }
.cal .c:not(.has){padding:0}


/* ---------------------------------------------------------------- polish pass: number strips as cards everywhere, touch sizes */
/* taste pass: a number strip is one quiet panel with hairline dividers, so the figure above it leads; each cell
   draws its divider to the left and above, and the panel clips the ones on its outer edge (any number of rows) */
.numbers{gap:0; border:1px solid var(--line); border-radius:var(--r); background:var(--card); box-shadow:var(--lift);
  overflow:hidden; margin:0 0 32px}
.numbers > div,.numbers > div + div,.numbers > div:nth-child(even),.numbers > div:nth-child(n+3){background:none; border:0;
  border-radius:0; padding:16px 20px; box-shadow:-1px 0 0 var(--line), 0 -1px 0 var(--line)}
.numbers b{font-size:26px}
@media (max-width:720px){
  .numbers > div,.numbers > div + div,.numbers > div:nth-child(even),.numbers > div:nth-child(n+3){padding:14px 16px}
  .numbers b{font-size:22px}
}
.cal-empty{margin:0 0 16px; padding:18px 20px}
/* fingers: at least 44 px for the small icon buttons and filter pills */
@media (pointer:coarse){
  .icon-btn,.row-acts .icon-btn{width:44px; height:44px}
  .fold-btn{width:44px; height:44px}
  .seg a,.sh-seg button{min-height:44px; display:inline-flex; align-items:center}
  .react{min-height:36px; padding:6px 12px}
  .notif > summary{width:44px; height:44px}
}
@media (prefers-reduced-motion:reduce){ .rw-puck{transition:none} }

/* ---------------------------------------------------------------- monthly payout goal (tracker head) */
.goal{display:flex; align-items:center; gap:12px; margin-top:16px; padding:8px 16px 8px 8px; border:1px solid var(--line); border-radius:16px;
  background:rgba(255,255,255,.025); color:var(--tx); font:inherit; text-align:left; cursor:pointer;
  transition:border-color .15s ease, background-color .15s ease, transform .2s var(--spring)}
.goal:hover{border-color:var(--ctl); background:var(--card)}
.goal:active{transform:scale(.98)}
.goal .ring{width:44px; height:44px}
.goal b{display:block; font:600 16px/1.3 var(--mono)}
.goal b .faint{font-weight:500}
.goal small{display:block; color:var(--mut); font-size:13px}
.goal.done .ring-fg{stroke:var(--up)}
.goal-set{margin-top:14px; font-size:14px}

/* ---------------------------------------------------------------- payout leaderboard */
.lb-optin{display:flex; align-items:center; gap:14px; margin:0 0 22px; padding:14px 16px; border:1px solid var(--line); border-radius:16px; background:var(--card)}
.lb-optin.on{border-color:rgba(55,214,143,.35); background:linear-gradient(90deg, rgba(55,214,143,.07), transparent 60%), var(--card)}
.lb-optin img{width:40px; height:40px; border-radius:50%; object-fit:cover; flex:none; background:var(--card2)}
.lb-optin p{margin:0; flex:1; color:var(--mut); font-size:14.5px; line-height:1.5}
.lb-optin b{color:var(--tx)}
.lb-switch{display:flex; flex-wrap:wrap; gap:10px 12px; margin:0 0 16px}
.lb-switch .seg{margin:0}
.lb{list-style:none; margin:0 0 16px; padding:0; display:grid; gap:8px}
.lb-row{display:grid; grid-template-columns:44px 40px minmax(0,1fr) auto; gap:14px; align-items:center; padding:12px 18px 12px 12px;
  background:var(--card); border:1px solid var(--line); border-radius:16px; box-shadow:var(--lift)}
.intro .lb-row{animation:rise .5s var(--ease) both; animation-delay:calc(var(--i, 0) * 40ms)}
.lb-row img{width:40px; height:40px; border-radius:50%; object-fit:cover; background:var(--card2)}
.lb-rank{display:grid; place-items:center; width:36px; height:36px; border-radius:12px; background:var(--card2); font:700 16px/1 var(--disp); color:var(--mut)}
.lb-row.top1 .lb-rank{background:rgba(231,194,75,.16); color:#f3dc8f}
.lb-row.top2 .lb-rank{background:rgba(198,210,230,.14); color:#dfe6f2}
.lb-row.top3 .lb-rank{background:rgba(214,140,90,.16); color:#efc29f}
.lb-row.top1{border-color:rgba(231,194,75,.3)}
.lb-row.me{box-shadow:0 0 0 2px var(--acc), var(--lift)}
.lb-name{min-width:0}
.lb-name b{display:block; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.lb-name b small{font:600 10.5px/1 var(--mono); letter-spacing:.08em; text-transform:uppercase; color:var(--acc); margin-left:6px}
.lb-name > small{display:block; color:var(--faint); font-size:13px}
.lb-paid{font:700 20px/1 var(--disp); letter-spacing:-.01em; color:var(--up); white-space:nowrap}
.lb-paid.neg{color:var(--down)} .lb-paid.zero{color:var(--mut)}
.lb-val{display:grid; grid-template-columns:auto 150px; align-items:center; gap:28px}
.lb-val .lb-paid{text-align:right}
.lb-pf{display:flex; flex-direction:column; gap:3px; white-space:nowrap}
.lb-pf b{font:700 20px/1 var(--disp); letter-spacing:-.01em; color:var(--tx); font-variant-numeric:tabular-nums}
.lb-pf small{color:var(--faint); font-size:12.5px}
@media (max-width:720px){
  .lb-val{grid-template-columns:auto; gap:6px; justify-items:end}
  .lb-pf{align-items:flex-end} .lb-pf b{font-size:15px} .lb-pf small{font-size:11.5px}
}
@media (max-width:720px){
  .lb-optin{flex-wrap:wrap} .lb-optin .btn{width:100%}
  .lb-row{grid-template-columns:36px 36px minmax(0,1fr) auto; gap:10px; padding:10px 12px 10px 10px}
  .lb-row img{width:36px; height:36px} .lb-rank{width:32px; height:32px; font-size:14px}
  .lb-paid{font-size:17px}
}
@media (prefers-reduced-motion:reduce){ .intro .lb-row{animation:none} }

/* five sections: tablets and small laptops use the short names (as the phone tab bar) and drop the logo's words */
.nav a{white-space:nowrap}
.nav .sh{display:none}
@media (max-width:1180px) and (min-width:721px){
  .nav .lg{display:none} .nav .sh{display:inline}
  .bar .logo > span,.buy .hide-sm,.menu .who{display:none}
  .bar .wrap{gap:14px}
}
@media (max-width:860px) and (min-width:721px){ .nav a{padding:6px 9px; font-size:14px} .buy > summary{padding:8px 6px} }

/* ---------------------------------------------------------------- React Bits, ported (static/bits.js) */
/* Split Text: the page title rises in letter by letter (first visit of a session) */
.st .st-w{display:inline-block; white-space:nowrap}
.st .st-c{display:inline-block; animation:st-rise .7s var(--ease) both; animation-delay:calc(var(--c) * 24ms)}
@keyframes st-rise{from{opacity:0; transform:translateY(.45em)}}
/* Spotlight Card: a soft light and a brighter rim under the mouse */
.spot :is(a.acct,.lb-row,.an-hero,.an-tile,.stile){position:relative}
.spot :is(a.acct,.lb-row,.an-hero,.an-tile,.stile)::after,
.spot :is(a.acct,.lb-row,.an-hero,.an-tile,.stile)::before{content:""; position:absolute; pointer-events:none; border-radius:inherit;
  opacity:0; transition:opacity .35s var(--ease)}
.spot :is(a.acct,.lb-row,.an-hero,.an-tile,.stile)::after{inset:0;
  background:radial-gradient(280px circle at var(--sx, 50%) var(--sy, 50%), rgba(111,155,230,.09), transparent 70%)}
.spot :is(a.acct,.lb-row,.an-hero,.an-tile,.stile)::before{inset:-1px; padding:1px;
  background:radial-gradient(180px circle at var(--sx, 50%) var(--sy, 50%), rgba(111,155,230,.6), transparent 70%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0)}
.spot :is(a.acct,.lb-row,.an-hero,.an-tile,.stile):hover::after,
.spot :is(a.acct,.lb-row,.an-hero,.an-tile,.stile):hover::before{opacity:1}
/* Shiny Text: a slow shine every few seconds across an achievement */
.shiny{background:linear-gradient(110deg, currentColor 0 42%, rgba(255,255,255,.95) 50%, currentColor 58% 100%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; animation:shine 5s ease-in-out 1.2s infinite}
@keyframes shine{0%{background-position:100% 0} 30%,100%{background-position:0 0}}
/* Click Spark: the burst drawn where a reaction is given */
.click-spark{position:fixed; z-index:200; pointer-events:none}
@media (prefers-reduced-motion:reduce){
  .st .st-c{animation:none}
  .shiny{animation:none; background:none; -webkit-text-fill-color:currentColor}
}


/* trader profiles (prop_trader.html): a member's stats and their latest feed events; names in the feed and on the
   leaderboard link here */
.fe a.fe-name{color:var(--tx); font-weight:600}
.fe a.fe-name:hover,.lb-name a:hover{text-decoration:underline; text-underline-offset:3px}
.lb-name a{color:inherit}
.tp-id{display:flex; align-items:center; gap:20px; min-width:0}
.tp-av{width:88px; height:88px; border-radius:50%; object-fit:cover; flex:none; background:var(--card2);
  box-shadow:0 0 0 3px var(--bg), 0 0 0 5px var(--line)}
.tp-id h1{overflow-wrap:anywhere}
.tp-sub{color:var(--mut); margin:10px 0 0; font-size:15px}
.tp-firms{display:flex; gap:8px; margin:12px 0 0}
.tp-firms img{width:28px; height:28px; border-radius:7px; object-fit:cover; background:var(--card2)}
.tp-own{background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:14px 18px; margin:0 0 28px;
  color:var(--mut); font-size:14.5px; line-height:1.55}
.tp-own a{white-space:nowrap}
.tp-private{margin:0 0 32px}
.stile b.pos{color:var(--up)} .stile b.neg{color:var(--down)}
.tp-act{max-width:760px}
.tp-feed{background:var(--card); border:1px solid var(--line); border-radius:var(--r); overflow:hidden}
.tp-feed .feed-list{border-top:0}
.tp-feed .fe:last-child{border-bottom:0}
@media (max-width:720px){
  .tp-id{gap:14px} .tp-av{width:64px; height:64px}
}
/* badges: old-school medals (_prop_icons.badge_medal) on one shelf; the medal carries the tier, the name is
   stamped under it. Not earned yet: the medal in pewter, with how far along the member is. */
.badges{list-style:none; margin:0 0 32px; padding:26px 18px 22px; display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:22px 12px; background:radial-gradient(ellipse at 50% 0%, rgba(231,194,75,.06), transparent 60%), var(--card);
  border:1px solid var(--line); border-radius:var(--r); box-shadow:inset 0 1px 0 var(--hi)}
.badge-c{--t:198,210,230; display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px; min-width:0}
.badge-c.bronze{--t:196,127,69} .badge-c.silver{--t:182,193,210} .badge-c.gold,.badge-c.founder{--t:226,174,54}
.badge-c.special{--t:164,124,240} .badge-c.diamond{--t:127,227,241}
.medal{display:block; margin-bottom:6px; filter:drop-shadow(0 6px 10px rgba(0,0,0,.45))}
.medal-rb{font:800 11px/1 var(--disp); letter-spacing:.14em; text-transform:uppercase}
.badge-c b{font:800 13px/1.25 var(--disp); letter-spacing:.07em; text-transform:uppercase; color:var(--tx)}
.badge-c small{color:var(--mut); font-size:12.5px; line-height:1.35}
.badge-c.locked .medal{opacity:.62; filter:none}
.badge-c.locked b{color:var(--mut)}
.badge-p{display:block; width:100%; max-width:132px; height:4px; border-radius:4px; background:var(--card3); overflow:hidden; margin-top:8px}
.badge-p i{display:block; height:100%; border-radius:inherit; background:rgb(var(--t))}
.badge-c.locked .badge-p i{background:var(--acc)}
.badge-next{color:var(--faint) !important; font-size:12px !important; margin-top:4px}
@media (max-width:720px){ .badges{grid-template-columns:repeat(2,minmax(0,1fr)); padding:22px 10px 18px} }
/* claiming badges: ready ones glow on their owner's profile until claimed; a claimed one lands like a stamp */
.sec-head .tp-ready{color:#f3dc8f; font-weight:600}
.sec-head .claim-all{margin:0}
.badge-c.ready .medal{animation:medal-glow 2.4s ease-in-out infinite}
@keyframes medal-glow{0%,100%{filter:drop-shadow(0 6px 10px rgba(0,0,0,.45)) drop-shadow(0 0 0 rgba(var(--t),0))}
  50%{filter:drop-shadow(0 6px 10px rgba(0,0,0,.45)) drop-shadow(0 0 16px rgba(var(--t),.55))}}
.badge-c .claim{margin-top:10px; background:linear-gradient(180deg, #f6dc8a, #d9a930); color:#2a1c02; border-color:#b8861d}
.badge-c .claim:hover{background:linear-gradient(180deg, #ffe7a3, #e2b43c)}
.badge-c form{margin:0}
.badge-c.just .medal{animation:medal-stamp .55s cubic-bezier(.2,1.6,.4,1) both}
@keyframes medal-stamp{0%{transform:scale(1.6) rotate(-14deg); opacity:0} 60%{opacity:1} 100%{transform:none}}
.menu > summary{position:relative}
/* open things (unread inbox messages + badges to claim): a blue counter on the avatar, a count per menu item */
.menu-count{position:absolute; left:22px; top:-2px; min-width:19px; height:19px; padding:0 5px; border-radius:999px;
  background:#2f7bf0; color:#fff; font:700 11px/19px var(--mono); text-align:center; box-shadow:0 0 0 2px var(--bg)}
.menu-n{display:inline-block; margin-left:8px; min-width:20px; padding:2px 6px; border-radius:999px; background:#2f7bf0; color:#fff;
  font:700 11.5px/1.3 var(--mono); text-align:center}
@media (prefers-reduced-motion:reduce){ .badge-c.ready .medal,.badge-c.just .medal{animation:none} }
.tp-claimbar{display:flex; align-items:center; gap:14px; flex-wrap:wrap}
/* the claim button and the progress bar sit at the bottom of each badge, level across the row */
.badges{align-items:stretch}
.badge-c{height:100%}
.badge-foot{margin-top:auto; padding-top:2px; width:100%; display:flex; flex-direction:column; align-items:center}
/* inbox */
.inbox-list{list-style:none; margin:0 0 40px; padding:0; display:grid; gap:12px; max-width:780px}
.msg{background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:18px 20px}
.msg.new{border-color:rgba(47,123,240,.55); box-shadow:inset 3px 0 0 #2f7bf0}
.msg-head{display:flex; align-items:baseline; gap:10px; flex-wrap:wrap}
.msg-head h2{font-size:18px; margin:0; flex:1 1 auto; min-width:0; overflow-wrap:anywhere}
.msg-head time{font:500 12px var(--mono); color:var(--faint)}
.new-pill{background:rgba(47,123,240,.16); color:#9cc2ff}
.msg-body{margin-top:10px; color:var(--mut); line-height:1.6; overflow-wrap:anywhere}
.msg-body a{color:var(--acc)}
/* badge events in the feed: a gold edge, and each badge name with a dot in its tier's colour */
.fe.stage-badge{box-shadow:inset 2px 0 0 #e2ae36}
.fe-badge{white-space:nowrap}
.fe-badge i{display:inline-block; width:9px; height:9px; border-radius:50%; margin:0 5px 1px 0; vertical-align:middle;
  box-shadow:0 0 0 1.5px rgba(0,0,0,.35)}
.fe-badge i.t-bronze{background:#c47f45} .fe-badge i.t-silver{background:#b6c1d2} .fe-badge i.t-gold,.fe-badge i.t-founder{background:#e2ae36}
.fe-badge i.t-special{background:#a47cf0} .fe-badge i.t-diamond{background:#7fe3f1}
/* the account site's start page: every app this account can use (hub.html) */
/* the app overview (account site start page): the Prop Tracker leads, the other apps in a grouped list beside it.
   Each app has its own colour, used only for its icon and the lead's glow. */
.hub-page{--app-prop:linear-gradient(140deg,#2462bd,#6f9be6); --app-links:linear-gradient(140deg,#0d8f7d,#3fd0b5);
  --app-cockpit:linear-gradient(140deg,#6a3fe0,#b48cff); --app-admin:linear-gradient(140deg,#a8661a,#e7c24b);
  --app-account:linear-gradient(140deg,#33456b,#6a7fae)}
.hub-hero{padding-bottom:22px}
.hub-head{display:flex; align-items:center; gap:18px}
.hub-head h1{margin:0}
.hub-av{width:72px; height:72px; border-radius:50%; object-fit:cover; border:2px solid var(--line); box-shadow:0 0 0 4px var(--bg)}
.hub-head .eyebrow{margin-bottom:8px}
.hub-grid{display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:16px; align-items:start; margin:0 0 64px}
.hub-ic{flex:none; display:grid; place-items:center; width:44px; height:44px; border-radius:12px; color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25), 0 6px 16px -6px rgba(0,0,0,.6)}
.hub-ic svg{width:24px; height:24px}
.app-prop .hub-ic{background:var(--app-prop)} .app-links .hub-ic{background:var(--app-links)}
.app-cockpit .hub-ic{background:var(--app-cockpit)} .app-admin .hub-ic{background:var(--app-admin)}
.app-account .hub-ic{background:var(--app-account)}
.hub-chev{width:18px; height:18px; flex:none; color:var(--faint); transition:transform .18s var(--ease), color .18s}

.hub-lead{position:relative; display:flex; flex-direction:column; gap:26px; min-height:100%; padding:26px; color:var(--tx);
  background:radial-gradient(120% 90% at 0% 0%, rgba(36,98,189,.30), transparent 60%), var(--card);
  border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--lift); overflow:hidden;
  transition:border-color .18s, transform .18s var(--ease)}
.hub-lead:hover{text-decoration:none; border-color:#2a4479}
.hub-lead:active{transform:scale(.995)}
.hub-lead-top{display:flex; gap:16px; align-items:flex-start}
.hub-lead .hub-ic{width:56px; height:56px; border-radius:15px}
.hub-lead .hub-ic svg{width:30px; height:30px}
.hub-lead h2{margin:2px 0 4px; font:700 26px/1.15 var(--disp); letter-spacing:-.015em}
.hub-lead-top p{margin:0; color:var(--mut); font-size:15px; line-height:1.5; max-width:46ch}
.hub-stats{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; border-top:1px solid var(--line)}
.hub-stats div{padding:18px 0 0}
.hub-stats div + div{padding-left:18px; border-left:1px solid var(--line)}
.hub-stats dt{color:var(--faint); font-size:12.5px; letter-spacing:.02em}
.hub-stats dd{margin:8px 0 0; font:700 30px/1 var(--disp); font-variant-numeric:tabular-nums; letter-spacing:-.02em; white-space:nowrap}
.hub-empty{margin:0; padding-top:18px; border-top:1px solid var(--line); color:var(--mut); font-size:15px}
.hub-lead-foot{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:auto}
.hub-open{display:inline-flex; align-items:center; gap:4px; padding:10px 14px 10px 18px; border-radius:999px; background:var(--brand);
  color:#fff; font-weight:600; font-size:15px; transition:background .18s}
.hub-open .hub-chev{color:#fff}
.hub-lead:hover .hub-open{background:var(--brand-h)}
.hub-lead:hover .hub-open .hub-chev{transform:translateX(2px)}
.hub-pill{padding:5px 11px; border-radius:999px; background:rgba(111,155,230,.14); color:var(--acc); font-size:13.5px; font-weight:600}

.hub-side{display:flex; flex-direction:column; gap:16px}
.hub-list{list-style:none; margin:0; padding:0; background:var(--card); border:1px solid var(--line); border-radius:var(--r);
  box-shadow:var(--lift); overflow:hidden}
.hub-list li + li .hub-row::before{content:""; position:absolute; top:0; left:78px; right:0; border-top:1px solid var(--line)}
.hub-row{position:relative; display:flex; align-items:center; gap:16px; min-height:76px; padding:14px 16px 14px 18px; color:var(--tx);
  transition:background .15s}
.hub-row:hover{text-decoration:none; background:var(--card2)}
.hub-row:hover .hub-chev{color:var(--tx); transform:translateX(2px)}
.hub-row:active{background:var(--card3)}
.hub-txt{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px}
.hub-txt b{font:600 16.5px/1.3 var(--body)}
.hub-txt > span{color:var(--mut); font-size:14px; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.hub-txt .mono{font-size:13px}
.hub-note{margin:0 4px; color:var(--faint); font-size:13.5px}

/* arrival: the lead first, then the list, once */
@keyframes hub-in{from{opacity:0; transform:translateY(8px)}}
.hub-lead{animation:hub-in .45s var(--ease) both}
.hub-side{animation:hub-in .45s var(--ease) .07s both}
@media (max-width:860px){
  .hub-grid{grid-template-columns:minmax(0,1fr); gap:14px}
  .hub-lead{padding:22px 20px; gap:22px}
  .hub-head{gap:14px} .hub-av{width:56px; height:56px}
}
@media (max-width:480px){
  .hub-stats dd{font-size:22px}
  .hub-stats div + div{padding-left:12px}
  .hub-lead h2{font-size:22px}
}
@media (prefers-reduced-motion:reduce){
  .hub-lead,.hub-side{animation:none}
  .hub-lead,.hub-row,.hub-chev,.hub-open{transition:none}
}
/* the M's Wallet on the app overview and its page */
.hub-page{--app-wallet:linear-gradient(140deg,#b07a14,#f0c44c)}
.app-wallet .hub-ic{background:var(--app-wallet)}
/* the M's Wallet as the lead card */
.hub-ms{overflow:hidden; isolation:isolate;
  background:radial-gradient(60% 90% at 100% 0%, rgba(240,196,76,.16), transparent 60%), radial-gradient(70% 120% at 0% 100%, rgba(36,98,189,.35), transparent 60%),
             linear-gradient(140deg, #0d2350, #081733 70%) !important; border-color:#23407a !important}
.hub-ms-coin{position:absolute; right:26px; top:26px; width:128px; height:128px; z-index:-1; opacity:.95;
  filter:drop-shadow(0 14px 24px rgba(0,0,0,.5))}
.hub-m{flex:none; width:.62em; height:.62em; margin-left:.12em; vertical-align:-.04em; filter:drop-shadow(0 2px 4px rgba(0,0,0,.4))}
.hub-ms-bal .hub-m{width:44px; height:44px; margin-left:4px; align-self:center}
.hub-ms-top{display:flex; flex-direction:column; gap:6px; max-width:calc(100% - 150px)}
.hub-kicker{margin:0; font:600 12px/1 var(--mono); letter-spacing:.12em; text-transform:uppercase; color:#ffd98a}
.hub-ms-bal{display:flex; align-items:baseline; gap:10px; margin:8px 0 2px}
.hub-ms-bal b{font:700 64px/1 var(--disp); letter-spacing:-.035em; color:#fff; font-variant-numeric:tabular-nums}
.hub-ms-goal{display:flex; justify-content:space-between; gap:12px; margin:6px 0 0; color:var(--mut); font-size:14px; max-width:420px}
.hub-ms-goal b{color:var(--tx)}
.hub-ms-meter{height:8px; max-width:420px; margin-top:6px}
.hub-ms h2{margin:6px 0 0} .hub-ms-sub{margin:0; color:var(--mut); font-size:15px}
.hub-ms .hub-stats dd small{font:600 15px var(--body); color:var(--faint); letter-spacing:0}
.hub-stats dd.gold{color:#ffd98a}
.hub-pill.gold{background:rgba(240,196,76,.14); color:#ffd98a}
.hub-pill.sm{padding:2px 8px; font-size:12.5px}
@media (max-width:640px){ .hub-ms-coin{width:76px; height:76px; right:18px; top:18px} .hub-ms-bal b{font-size:48px} .hub-ms-bal .hub-m{width:34px; height:34px} .hub-ms-top{max-width:calc(100% - 70px)}
  .hub-ms .hub-stats dd{font-size:19px} .hub-ms .hub-stats dt{white-space:nowrap} .hub-ms .hub-stats div + div{padding-left:10px} }

.hub-wallet{position:relative; display:flex; align-items:center; gap:16px; padding:18px; color:var(--tx); background:var(--card);
  border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--lift); transition:background .15s, border-color .15s}
.hub-wallet:hover{text-decoration:none; background:var(--card2); border-color:#2a4479}
.hub-wallet:hover .hub-chev{color:var(--tx); transform:translateX(2px)}
.hub-bal{color:var(--tx) !important; font-weight:600}
.meter{display:block; height:6px; margin-top:8px; border-radius:999px; background:rgba(240,196,76,.16); overflow:hidden}
.meter i{display:block; height:100%; border-radius:inherit; background:#f0c44c}
.wallet{padding-bottom:64px}
/* ---- M's Wallet ------------------------------------------------------------------------------------------- */
.wallet{--gold:#f0c44c; --gold2:#ffdf85; --wv-ease:cubic-bezier(.22,1,.36,1)}
.wallet .ic{flex:none; width:20px; height:20px} .wallet .ic.sm{width:16px; height:16px} .wallet .ic.xs{width:13px; height:13px; vertical-align:-1px}
.wv-k{display:flex; align-items:center; gap:6px; color:var(--mut); font-size:13px; font-weight:500; letter-spacing:.01em}
.wv-sub{display:flex; align-items:center; gap:6px; color:var(--faint); font-size:13.5px}
.wv-sub b{color:var(--tx); font-weight:600}
.wv-empty-card{display:flex; gap:22px; align-items:center; max-width:680px; padding:28px; background:var(--card); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--lift)}
.wv-empty-card h2{margin:0 0 8px; font:700 22px/1.2 var(--disp)} .wv-empty-card p{color:var(--mut); margin:0 0 16px}

/* the hero: coin, balance, the way to EV+ */
.wv-hero{position:relative; display:grid; grid-template-columns:auto minmax(0,1fr) minmax(260px,.8fr); align-items:center; gap:8px 34px;
  padding:34px 36px; margin:0 0 16px; border-radius:24px; overflow:hidden; isolation:isolate;
  background:radial-gradient(60% 120% at 8% 50%, rgba(240,196,76,.20), transparent 60%),
             radial-gradient(70% 140% at 100% 0%, rgba(36,98,189,.45), transparent 60%),
             linear-gradient(135deg, #0d2350 0%, #091a3c 55%, #071430 100%);
  border:1px solid #23407a; box-shadow:inset 0 1px 0 rgba(255,255,255,.09), 0 30px 60px -30px rgba(0,0,0,.7)}
.wv-hero::after{content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.35;
  background-image:radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size:22px 22px;
  mask-image:linear-gradient(90deg, transparent 30%, #000 100%); -webkit-mask-image:linear-gradient(90deg, transparent 30%, #000 100%)}
.wv-coinwrap{position:relative; width:184px; height:184px}
.wv-coinwrap::before{content:""; position:absolute; inset:14%; border-radius:50%; background:radial-gradient(circle, rgba(240,196,76,.55), rgba(240,196,76,0) 70%); filter:blur(18px)}
.wv-coin{position:relative; width:100%; height:100%; filter:drop-shadow(0 18px 30px rgba(0,0,0,.55))}
.wv-bal{min-width:0}
.wv-status{display:inline-flex; align-items:center; gap:7px; margin:0 0 16px; padding:5px 11px 5px 9px; border-radius:999px; font:600 11.5px/1 var(--mono);
  letter-spacing:.08em; text-transform:uppercase; color:#ffd98a; background:rgba(240,196,76,.12); border:1px solid rgba(240,196,76,.3)}
.wv-status i{width:7px; height:7px; border-radius:50%; background:currentColor}
.wv-status.on{color:#7ef0b8; background:rgba(55,214,143,.12); border-color:rgba(55,214,143,.32)}
.wv-num{display:flex; align-items:baseline; gap:12px; margin:6px 0 10px}
.wv-num b{font:700 clamp(54px,7vw,84px)/.95 var(--disp); letter-spacing:-.035em; color:#fff; font-variant-numeric:tabular-nums}
.wv-num span{font:700 26px/1 var(--disp); color:var(--gold)}
.wv-meta{display:flex; flex-wrap:wrap; gap:6px 18px; color:var(--mut); font-size:14px}
.wv-meta span{display:inline-flex; align-items:center; gap:6px} .wv-meta b{color:var(--tx); font-weight:600}
.wv-meta .ic{color:var(--gold)}
.wv-soon{margin:16px 0 0; max-width:46ch; color:var(--mut); font-size:14px}
.wv-goal{display:flex; align-items:center; gap:20px; padding:20px 22px; border-radius:18px; background:rgba(4,12,30,.45);
  border:1px solid rgba(255,255,255,.07); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px)}
.wv-ring{position:relative; flex:none; width:112px; height:112px; display:grid; place-items:center}
.wv-ring svg{position:absolute; inset:0; transform:rotate(-90deg)}
.wv-ring circle{fill:none; stroke-width:9; stroke-linecap:round}
.wv-ring .t{stroke:rgba(255,255,255,.08)}
.wv-ring .v{transition:stroke-dashoffset .7s var(--wv-ease), stroke .4s}
.wv-ring .v{stroke:var(--gold); stroke-dasharray:326.7; stroke-dashoffset:calc(326.7 * (1 - var(--p) / 100));
  filter:drop-shadow(0 0 6px rgba(240,196,76,.5))}
.wv-ring.done .v{stroke:#37d68f; filter:drop-shadow(0 0 6px rgba(55,214,143,.5))}
.wv-ring.idle img{opacity:.55; filter:grayscale(.3)}
.wv-ring img{width:62px; height:62px; filter:drop-shadow(0 6px 12px rgba(0,0,0,.5))}
.wv-goaltx{display:flex; flex-direction:column; gap:4px; min-width:0}
.wv-goaltx b{font:700 30px/1.05 var(--disp); letter-spacing:-.02em} .wv-goaltx b small{font:600 15px var(--body); color:var(--mut); letter-spacing:0}
.wv-goaltx b.gold{color:var(--gold)}

/* today's drop */
.wv-drop{position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1.1fr); margin:0 0 44px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--lift); overflow:hidden}
.wv-drop > div:not(.wv-track){display:flex; flex-direction:column; gap:8px; padding:22px 24px 26px}
.wv-drop > div + div:not(.wv-track){border-left:1px solid var(--line)}
.wv-pot b{font:700 40px/1 var(--disp); letter-spacing:-.02em} .wv-pot b small{font:600 16px var(--body); color:var(--gold); letter-spacing:0}
.wv-pot .wv-k .ic{color:var(--gold)}
.wv-digits{display:flex; gap:8px}
.wv-digits span{display:flex; align-items:baseline; gap:3px; padding:8px 12px 9px; border-radius:12px; background:var(--bg2);
  border:1px solid var(--line); box-shadow:inset 0 1px 0 var(--hi)}
.wv-digits b{font:600 30px/1 var(--mono); color:#fff; font-variant-numeric:tabular-nums; letter-spacing:-.02em}
.wv-digits i{font:500 13px var(--body); font-style:normal; color:var(--faint)}
.wv-bars{display:flex; align-items:flex-end; gap:4px; height:46px}
.wv-bars i{flex:1; height:max(var(--h), 4px); min-width:0; border-radius:4px 4px 2px 2px; background:linear-gradient(180deg, #4f7fd0, #2a5299)}
.wv-bars i.zero{background:rgba(255,255,255,.07)}
.wv-bars i.now{background:transparent; border:1.5px dashed var(--gold); height:max(var(--h), 8px)}
.wv-days .fire{color:#ff9a4a}
.wv-track{position:absolute; left:0; right:0; bottom:0; height:4px; background:rgba(255,255,255,.04)}
.wv-track i{display:block; height:100%; background:linear-gradient(90deg, rgba(240,196,76,.25), var(--gold)); border-radius:0 4px 4px 0;
  box-shadow:0 0 12px rgba(240,196,76,.6); transition:width 1s linear}

/* one-time rewards */
.wv-h{display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:0 0 14px}
.wv-h h2{margin:0; font:700 22px/1.2 var(--disp); letter-spacing:-.01em} .wv-h span{color:var(--faint); font-size:14px}
.wv-quests{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0 0 44px}
.wv-q{display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:16px; margin:0; padding:20px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--lift);
  transition:border-color .2s, transform .25s var(--wv-ease)}
.wv-q:hover{border-color:#26437c}
.wv-q.feature{grid-column:1 / -1; padding:24px; background:radial-gradient(80% 140% at 0% 0%, rgba(240,196,76,.10), transparent 60%), var(--card);
  border-color:rgba(240,196,76,.28)}
.wv-q.done{opacity:.72} .wv-q.done:hover{border-color:var(--line)}
.wv-qi{display:grid; place-items:center; width:46px; height:46px; border-radius:14px}
.wv-qi.gold{color:var(--gold); background:rgba(240,196,76,.12); box-shadow:inset 0 0 0 1px rgba(240,196,76,.25)}
.wv-qi.blue{color:var(--acc); background:rgba(111,155,230,.12); box-shadow:inset 0 0 0 1px rgba(111,155,230,.25)}
.wv-qi.violet{color:var(--funded); background:var(--funded-bg); box-shadow:inset 0 0 0 1px rgba(180,140,255,.25)}
.wv-qi.green{color:var(--up); background:rgba(55,214,143,.1); box-shadow:inset 0 0 0 1px rgba(55,214,143,.25)}
.wv-q.done .wv-qi{color:var(--up); background:rgba(55,214,143,.1); box-shadow:inset 0 0 0 1px rgba(55,214,143,.25)}
.wv-qb{display:flex; flex-direction:column; gap:6px; min-width:0}
.wv-qb > b{font-weight:600; font-size:16px}
.wv-q.feature .wv-qb > b{font:700 20px/1.2 var(--disp)}
.wv-qb p{margin:0; color:var(--mut); font-size:14px}
.wv-xs{display:flex; flex-wrap:wrap; gap:6px; margin:2px 0 0; padding:0; list-style:none}
.wv-xs a{display:inline-flex; align-items:center; gap:5px; min-height:32px; padding:0 11px; border-radius:999px; font:500 13.5px/1 var(--mono);
  color:var(--ink, #e8eefc); text-decoration:none; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.12);
  transition:background-color .15s ease, border-color .15s ease}
.wv-xs a:hover{background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.24)}
.wv-xs a:focus-visible{outline:2px solid var(--gold2); outline-offset:2px}
.wv-chip{display:inline-flex; align-items:center; gap:6px; padding:6px 11px 6px 7px; border-radius:999px; white-space:nowrap;
  font:700 14px/1 var(--body); color:var(--gold2); background:rgba(240,196,76,.1); border:1px solid rgba(240,196,76,.3)}
.wv-chip img{width:18px; height:18px}
.wv-q.feature .wv-chip{font-size:16px; padding:8px 14px 8px 9px} .wv-q.feature .wv-chip img{width:22px; height:22px}
.wv-st{display:inline-flex; align-items:center; gap:6px; margin-top:4px; color:var(--faint); font-size:13.5px}
.wv-st.ok{color:var(--up); font-weight:600} .wv-st.bad{color:#ffb3b9}
.wv-wait{display:flex; align-items:center; gap:8px; margin:6px 0 0 !important; color:var(--faint) !important}
.wv-link{display:flex; gap:8px; margin-top:8px; max-width:560px}
.wv-link input{flex:1; min-width:0; font:500 15px/1 var(--mono); color:#fff}
.wv-link .btn.ok{background:#1f8f5f}
.wv-stats{display:flex; flex-wrap:wrap; gap:6px 18px; margin-top:6px; color:var(--faint); font-size:13.5px}
.wv-stats b{color:var(--tx); font-weight:600}
.wv-claim{display:flex; gap:8px; margin-top:8px}
.wv-claim input{flex:1; min-width:0}

.wv-claim{gap:10px; margin-top:12px}
.wv-claim input{min-height:52px; font-size:16px}
.wv-claim-btn{min-height:52px; padding:12px 22px; font-size:16px; border-radius:14px; gap:10px;
  background:linear-gradient(180deg, #2a6ad0, var(--brand)); box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 8px 20px -8px rgba(36,98,189,.8)}
.wv-claim-btn:hover{background:linear-gradient(180deg, #3276e0, var(--brand-h))}
.wv-claim-btn[disabled]{opacity:.5; cursor:not-allowed; box-shadow:none}
.wv-cb{display:inline-flex; align-items:center; gap:4px; padding:4px 9px 4px 5px; border-radius:999px; font-size:14px; color:var(--gold2);
  background:rgba(4,12,30,.35)}
.wv-cb img{width:16px; height:16px}
.wv-claim:not(:has(input)) .wv-claim-btn{width:100%; max-width:260px}

/* invite bonuses: 5 - 10 - 25 Active friends */
.wv-ms{margin:0; padding:14px 18px 62px; border-radius:14px; background:rgba(4,12,30,.5); border:1px solid var(--line)}
.wv-ms-h{display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:16px}
.wv-ms-h > b{font-weight:700} .wv-ms-h span{color:var(--faint); font-size:13px} .wv-ms-h span b{color:var(--tx)}
.wv-ms-track{position:relative; height:6px; margin:6px 34px 0 4px; border-radius:999px; background:rgba(255,255,255,.07)}
.wv-ms-track > i{position:absolute; left:0; top:0; bottom:0; border-radius:inherit; background:linear-gradient(90deg, rgba(240,196,76,.5), var(--gold));
  box-shadow:0 0 10px rgba(240,196,76,.45)}
.wv-ms-m{position:absolute; top:50%; display:flex; flex-direction:column; align-items:center; transform:translate(-50%, -13px)}
.wv-ms-m em{display:grid; place-items:center; width:26px; height:26px; border-radius:50%; font:700 11.5px/1 var(--mono); font-style:normal;
  color:var(--mut); background:var(--card2); border:2px solid #2a4479}
.wv-ms-m.got em{color:#1a1300; background:linear-gradient(180deg, var(--gold2), var(--gold)); border-color:var(--gold)}
.wv-ms-m small{margin-top:5px; font-size:11.5px; color:var(--faint); white-space:nowrap} .wv-ms-m small b{color:var(--mut)}
.wv-ms-m strong{font:700 13px/1.1 var(--body); color:var(--gold2); white-space:nowrap}
.wv-ms-m:not(.got) strong{color:var(--mut)}

.wv-every{display:inline-flex; align-items:center; gap:4px; margin-left:6px; padding:2px 8px; border-radius:999px; vertical-align:2px;
  font:600 11.5px/1.4 var(--body); color:#9fc0f5; background:rgba(111,155,230,.12); border:1px solid rgba(111,155,230,.28)}
.wv-qi.ok{color:var(--up)}

/* one-time rewards, compact: the details of the invite steps open on demand */
.wv-quests{gap:10px}
.wv-q{gap:12px; padding:14px 16px}
.wv-q.feature{padding:18px}
.wv-qi{width:38px; height:38px; border-radius:12px}
.wv-qb{gap:4px}
.wv-qb > b{font-size:15px}
.wv-q.feature .wv-qb > b{font-size:18px}
.wv-qb p{font-size:13.5px; line-height:1.45}
.wv-st{margin-top:2px; font-size:13px}
.wv-q .wv-claim{margin-top:6px; gap:8px}
.wv-q .wv-claim input{min-height:44px; font-size:15px}
.wv-q .wv-claim-btn{min-height:44px; padding:8px 16px; font-size:15px}
.wv-xs a{min-height:28px; padding:0 9px; font-size:12.5px}
.wv-q.feature .wv-link{margin-top:6px}
.wv-more{margin-top:4px}
.wv-more > summary{display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:8px 0 2px; cursor:pointer; list-style:none;
  color:var(--acc); font-size:13.5px; font-weight:600}
.wv-more > summary::-webkit-details-marker{display:none}
.wv-more > summary .wv-stats{margin:0; font-weight:400}
.wv-more > summary .ic{transition:transform .2s var(--wv-ease)}
.wv-more[open] > summary .ic{transform:rotate(180deg)}
.wv-more > summary:focus-visible{outline:2px solid var(--gold2); outline-offset:3px; border-radius:6px}
.wv-more .wv-inv{margin-top:10px}
/* every Claim button the same size */
.wv-claim-btn{min-width:184px; justify-content:center}
@media (max-width:640px){ .wv-claim-btn{min-width:0} .wv-q .wv-claim{flex-direction:column} .wv-q .wv-claim .wv-claim-btn{width:100%} }

/* leaderboard: the most M's earned */
.wv-lb{list-style:none; margin:0 0 20px; padding:6px; border-radius:16px; background:rgba(8,23,51,.55); border:1px solid var(--line); counter-reset:none}
.wv-lb li{display:flex; align-items:center; gap:14px; padding:11px 12px; border-radius:11px}
.wv-lb li + li{border-top:1px solid rgba(170,195,255,.07)}
.wv-lb li.me{background:rgba(240,196,76,.09); border-top-color:transparent; box-shadow:inset 0 0 0 1px rgba(240,196,76,.35)}
.wv-lb li.gap{margin-top:10px; position:relative}
.wv-lb li.gap::before{content:"···"; position:absolute; left:50%; top:-15px; transform:translateX(-50%); color:var(--faint); font-size:12px; letter-spacing:2px}
.wv-lb b{flex:1; min-width:0; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.wv-lr{display:grid; place-items:center; width:30px; height:30px; flex:none; border-radius:50%; font:700 13px/1 var(--body); color:var(--mut); background:rgba(255,255,255,.05); font-variant-numeric:tabular-nums}
.wv-lr.r1{color:#2a1a00; background:linear-gradient(180deg,var(--gold2),var(--gold))}
.wv-lr.r2{color:#141b2e; background:linear-gradient(180deg,#eef2fa,#b9c3d6)}
.wv-lr.r3{color:#2a1400; background:linear-gradient(180deg,#f2b27a,#c9793c)}
.wv-le{font:700 15px/1 var(--body); font-variant-numeric:tabular-nums} .wv-le small{color:var(--gold); font-weight:600}

/* completed one-time rewards */
.wv-done{list-style:none; margin:0 0 20px; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:10px}
.wv-done li{display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:14px; background:rgba(8,23,51,.55); border:1px solid var(--line)}
.wv-done b{flex:1; min-width:0; font-weight:600; color:var(--mut)}
.wv-dk{display:grid; place-items:center; width:30px; height:30px; flex:none; border-radius:50%; color:var(--up); background:rgba(55,214,143,.12)}


.wv-title{margin:0; line-height:0}
.wv-title img{display:block; width:auto; height:64px; max-width:100%}
@media (max-width:640px){ .wv-title img{height:46px} }
@media (prefers-reduced-motion:no-preference){
  .wv-title img{animation:wv-title-in .7s var(--wv-ease, cubic-bezier(.22,1,.36,1)) both}
  @keyframes wv-title-in{from{opacity:0; transform:translateY(8px) scale(.98)}}
}

/* M's flying into the balance */
.wv-fly{position:fixed; left:0; top:0; width:28px; height:28px; z-index:1000; pointer-events:none; will-change:transform, opacity;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.45)) drop-shadow(0 0 6px rgba(240,196,76,.35))}
.wv-num{position:relative}
.wv-plus{position:absolute; left:100%; top:-6px; margin-left:12px; white-space:nowrap; font:700 22px/1 var(--disp); color:var(--gold2);
  text-shadow:0 0 16px rgba(240,196,76,.55); pointer-events:none; animation:wv-plus 1.8s var(--wv-ease) both}
.wv-plus.pending{color:#9fc0f5; text-shadow:none; font-size:17px}
@keyframes wv-plus{0%{opacity:0; transform:translateY(10px) scale(.8)} 15%{opacity:1; transform:none} 75%{opacity:1} 100%{opacity:0; transform:translateY(-14px)}}
.wv-pend{display:inline-flex; align-items:center; padding:3px 9px; border-radius:999px; font-size:12.5px; font-weight:600; color:#9fc0f5;
  background:rgba(111,155,230,.12); border:1px solid rgba(111,155,230,.3)}
.wv-admin{margin:28px 0 0; font-size:13.5px} .wv-admin a{color:var(--faint)}
/* the test panel (admins): a bar above the wallet */
.wv-lab{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 16px; padding:12px 14px; border-radius:16px;
  background:repeating-linear-gradient(135deg, rgba(240,196,76,.05) 0 10px, transparent 10px 20px), var(--bg2); border:1px dashed rgba(240,196,76,.45)}
.wv-lab-h{display:flex; flex-direction:column; margin-right:8px} .wv-lab-h small{color:var(--faint); font-size:12px}
.wv-lab button{display:inline-flex; align-items:center; gap:8px; min-height:38px; padding:8px 12px; border-radius:10px;
  font:600 13.5px var(--body); color:var(--tx); background:var(--card2); border:1px solid var(--line); cursor:pointer;
  transition:background .15s, border-color .15s, transform .15s}
.wv-lab button:hover{border-color:var(--ctl); background:var(--card3)} .wv-lab button:active{transform:scale(.97)}
.wv-lab button em{font-style:normal; color:var(--gold2)} .wv-lab button.quiet{color:var(--mut); background:transparent}
.wv-lab p{flex-basis:100%; margin:2px 2px 0; color:var(--faint); font-size:12px}
@media (max-width:640px){ .wv-plus{left:auto; right:0; top:-26px} }

/* rewards ready to claim */
.wv-ready{display:grid; gap:10px; margin:0 0 44px}
.wv-rd{display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:16px; margin:0; padding:16px 18px; border-radius:var(--r);
  background:radial-gradient(80% 160% at 0% 50%, rgba(240,196,76,.09), transparent 60%), var(--card); border:1px solid rgba(240,196,76,.28); box-shadow:var(--lift);
  transition:opacity .4s, border-color .3s}
.wv-rd.busy{opacity:.6; border-color:var(--line)}
.wv-rdt{display:flex; flex-direction:column; gap:2px; min-width:0} .wv-rdt b{font-weight:600; font-size:16px} .wv-rdt small{color:var(--faint); font-size:13.5px}
@media (max-width:640px){ .wv-rd{grid-template-columns:auto minmax(0,1fr); padding:14px} .wv-rd > .btn, .wv-rd > .wv-st{grid-column:1 / -1} .wv-rd > .btn{width:100%} }

/* invite steps */
.wv-inv{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px; align-items:stretch; margin:10px 0 4px}
.wv-steps{list-style:none; margin:0; padding:0; display:grid; gap:8px; align-content:start}
.wv-steps li{display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:14px; padding:12px 14px;
  border-radius:14px; background:rgba(4,12,30,.5); border:1px solid var(--line); position:relative}
.wv-steps li + li::before{content:""; position:absolute; left:27px; top:-9px; width:2px; height:8px; background:rgba(240,196,76,.35)}
.wv-steps .n{display:grid; place-items:center; width:28px; height:28px; border-radius:50%; font:700 13px/1 var(--mono);
  color:#1a1300; background:linear-gradient(180deg, var(--gold2), var(--gold)); box-shadow:0 0 0 4px rgba(240,196,76,.12)}
.wv-steps .t{display:flex; flex-direction:column; gap:1px; min-width:0}
.wv-steps .t b{font-weight:700} .wv-steps .t small{color:var(--faint); font-size:13px}
.wv-steps .r{font:700 15px/1 var(--body); color:var(--gold2); font-variant-numeric:tabular-nums}
.wv-steps .c{min-width:96px; text-align:right; color:var(--faint); font-size:13px} .wv-steps .c b{color:var(--tx)}
.wv-q.feature .wv-chip small{font:500 12.5px var(--body); color:var(--mut)}

@media (max-width:1000px){
  .wv-inv{grid-template-columns:minmax(0,1fr)}
  .wv-hero{grid-template-columns:auto minmax(0,1fr)}
  .wv-goal{grid-column:1 / -1}
  .wv-drop{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wv-days{grid-column:1 / -1; border-left:0 !important; border-top:1px solid var(--line)}
}
@media (max-width:640px){
  .wv-hero{grid-template-columns:minmax(0,1fr); padding:24px 20px; gap:14px; text-align:left}
  .wv-coinwrap{position:absolute; right:-26px; top:14px; width:132px; height:132px; opacity:.95}
  .wv-bal{position:relative}
  .wv-goal{padding:16px; gap:16px} .wv-ring{width:88px; height:88px} .wv-ring img{width:48px; height:48px}
  .wv-goaltx b{font-size:24px}
  .wv-drop{grid-template-columns:minmax(0,1fr)}
  .wv-drop > div + div:not(.wv-track){border-left:0; border-top:1px solid var(--line)}
  .wv-days{grid-column:auto}
  .wv-quests,.wv-inv{grid-template-columns:minmax(0,1fr)}
  .wv-steps li{grid-template-columns:auto minmax(0,1fr) auto; gap:10px 12px}
  .wv-steps .c{grid-column:2 / -1; text-align:left; min-width:0}
  .wv-q{grid-template-columns:auto minmax(0,1fr); padding:16px; gap:12px}
  .wv-q .wv-chip{grid-column:2; grid-row:1; justify-self:end; align-self:start}
  .wv-q .wv-qb{grid-column:1 / -1}
  .wv-h{flex-direction:column; gap:2px}
  .wv-empty-card{flex-direction:column; align-items:flex-start}
}
@media (prefers-reduced-motion:no-preference){
  .wv-coin{animation:wv-float 6s ease-in-out infinite}
  @keyframes wv-float{50%{transform:translateY(-8px) rotate(-3deg)}}
  .wv-ring .v{animation:wv-ring 1.1s var(--wv-ease) .15s backwards}
  @keyframes wv-ring{from{stroke-dashoffset:326.7}}
  .wv-bars i{transform-origin:bottom; animation:wv-bar .6s var(--wv-ease) both; animation-delay:calc(var(--d) * 30ms)}
  @keyframes wv-bar{from{transform:scaleY(0)}}
  .wv-q:not(.done):hover{transform:translateY(-2px)}
}
.hub-coin{flex:none; width:52px; height:52px; margin:-4px 0; filter:drop-shadow(0 6px 14px rgba(0,0,0,.45))}

/* the app overview: "Get the MMM app" (installable web app) */
.hub-install{position:relative; display:flex; align-items:center; gap:12px; margin:0 0 18px; padding:12px 44px 12px 14px; border-radius:16px;
  background:rgba(8,23,51,.6); border:1px solid var(--line)}
.hub-install[hidden]{display:none}
.hub-install img{border-radius:11px; flex:none}
.hub-install div{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px}
.hub-install b{font-weight:600; white-space:nowrap} .hub-install span{color:var(--faint); font-size:13.5px; line-height:1.35}
.hub-install .btn{flex:none}
.hub-install-x{position:absolute; top:50%; right:2px; transform:translateY(-50%); width:40px; height:44px; border:0; border-radius:10px;
  background:none; color:var(--faint); font-size:15px; cursor:pointer}
.hub-install-x:hover{color:var(--mut)} .hub-install-x:focus-visible{outline:2px solid var(--gold, #f0c44c); outline-offset:-4px}
