*{box-sizing:border-box}body{margin:0;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;font-family:var(--ui);background:#e7e5e0}#app{width:1200px;max-width:100%;flex:none}sc-if,sc-for{display:contents}[data-stage]{margin:auto}input{min-width:0}input:focus-visible,[role=button]:focus-visible,button:focus-visible{outline:3px solid var(--ink);outline-offset:4px}[role=button]{touch-action:manipulation}button{font:inherit;cursor:pointer}#status{font:12px var(--ui);color:var(--mut);min-height:18px;max-width:1200px;text-align:center;margin-top:12px}.prototype-controls{display:flex;gap:18px;justify-content:center;font:12px var(--ui);color:var(--mut);margin-top:8px}.prototype-controls button{background:none;border:0;color:inherit;text-decoration:underline;text-underline-offset:3px;padding:0}dialog{border:0;border-radius:32px;background:var(--card);color:var(--ink);padding:28px;width:min(620px,calc(100% - 32px));max-height:80dvh;font-family:var(--ui);box-shadow:0 30px 80px #0004}dialog::backdrop{background:#12131755;backdrop-filter:blur(8px)}dialog header{display:flex;align-items:center;justify-content:space-between}dialog h2{margin:0;font-family:var(--disp);font-size:28px}dialog p{line-height:1.5;font-size:14px}dialog button{border:0;padding:12px 18px;background:var(--bg);color:var(--ink);border-radius:99px;font-size:13px}dialog button[aria-pressed=true]{background:var(--ink);color:var(--card)}.utility-modes{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}details{margin-top:20px}summary{cursor:pointer}body:has([data-stage][data-dark=true]){background:#090a0c}
@media(min-width:1250px) and (min-height:501px){[data-stage]{width:1200px!important;height:760px!important}}
@media(min-width:801px) and (min-height:501px) and (max-width:1249px){body{padding:20px}#app{width:1200px;transform-origin:center center}[data-stage]{width:100%!important;height:760px!important}[data-stage]>sc-if>div{padding-left:40px!important;padding-right:40px!important}}
@media(max-width:800px),(max-height:500px){body{padding:0;justify-content:flex-start}#app{width:100%}[data-stage]{width:100%!important;min-height:100dvh;height:auto!important;border-radius:0!important;overflow:visible!important;box-shadow:none!important;display:flex;flex-direction:column}[data-stage]>sc-if>div{position:relative!important;inset:auto!important;min-height:100dvh;padding:90px 24px 130px!important;gap:28px!important;grid-template-columns:minmax(0,1fr)!important;justify-content:flex-start!important;align-items:stretch!important}[data-stage]>sc-if>div>div[style*="width:"]{width:100%!important}[data-stage]>sc-if>div>div[style*="font-size:calc(68px"]{font-size:42px!important}[data-stage] [style*="font-size:calc(62px"],[data-stage] [style*="font-size:calc(56px"],[data-stage] [style*="font-size:calc(58px"]{font-size:38px!important;line-height:1.38!important}[data-stage] [style*="font-size:calc(124px"],[data-stage] [style*="font-size:calc(112px"],[data-stage] [style*="font-size:calc(96px"],[data-stage] [style*="font-size:calc(92px"]{font-size:72px!important}[data-stage] [style*="grid-template-columns:repeat(3"]{grid-template-columns:1fr!important}[data-stage] [style*="grid-template-columns:repeat(4"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}[data-stage] [style*="display:flex;align-items:center;gap:28px"],[data-stage] [style*="display:flex;align-items:center;gap:12px"],[data-stage] [style*="display:flex;align-items:baseline;gap:16px"]{flex-wrap:wrap}[data-stage] [style*="width:460px"],[data-stage] [style*="width:520px"],[data-stage] [style*="width:560px"],[data-stage] [style*="width:380px"]{max-width:100%!important}[data-stage] [style*="height:210px"]{height:210px!important}[data-stage]>div:last-child{position:fixed!important;bottom:16px!important;height:64px!important;max-width:calc(100vw - 20px);gap:3px!important;z-index:60!important}[data-dock]{width:44px!important;height:44px!important}[data-stage]>div:last-child>div[style*="max-width:"]{display:none!important}[data-stage]>div:last-child>div[style*="width:1px"]{margin-left:0!important;margin-right:0!important}[data-stage] [style*="position:relative;display:grid;grid-template-columns:repeat(3"]{grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important}[data-stage] [style*="width:68px;height:84px"]{width:44px!important;height:62px!important;border-radius:18px!important}[data-stage] [style*="width:{{"]{max-width:100%}[data-stage] [style*="border-radius:36px"]{min-width:0}[data-stage] input{font-size:28px!important}[data-stage] [style*="z-index:60"],[data-stage] [style*="z-index:50"]{max-width:calc(100vw - 48px)!important}.prototype-controls{padding:0 16px 12px;flex-wrap:wrap}#status{padding:8px 20px;margin-top:0}[data-stage]>div[style*="top:14px"]{max-width:calc(100% - 32px)}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* Current request overrides the export's presentation frame on desktop. */
@media(min-width:801px) and (min-height:501px){body{padding:0;justify-content:flex-start;background:var(--bg)}#app{width:100%;max-width:1440px;transform:none}[data-stage]{width:100%!important;height:calc(100dvh - 52px)!important;min-height:700px;border-radius:0!important;box-shadow:none!important;overflow:visible!important}#status{margin-top:0}.prototype-controls{margin:6px 0 12px}body:has([data-stage][data-dark=true]){background:var(--bg)}}
.custom-deposit{display:flex;flex-direction:column;gap:10px;max-width:380px;font-size:13px;color:var(--mut)}.custom-deposit>div{display:flex;align-items:center;gap:12px;padding:18px 22px;background:var(--card);border-radius:24px}.custom-deposit input{border:0;background:transparent;color:var(--ink);font-family:var(--disp);font-size:28px;width:100%;outline-offset:6px;font-weight:600}.custom-deposit small{font-size:12px}.custom-deposit input::-webkit-inner-spin-button{appearance:none}
@keyframes homeCardIn{from{opacity:0;transform:translateY(22px) scale(.97)}to{opacity:1;transform:none}}
.home-card{animation:homeCardIn .75s cubic-bezier(.22,1,.36,1) backwards!important;transition:transform .5s cubic-bezier(.22,1,.36,1),box-shadow .5s ease!important;will-change:transform}.home-card:nth-child(2){animation-delay:.1s!important}.home-card:nth-child(3){animation-delay:.2s!important}@media(hover:hover){.home-card[role=button]:hover{transform:translateY(-5px)!important}}.home-card[role=button]:active{transform:translateY(-1px) scale(.96)!important}
@keyframes scrIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.home-card{animation:none!important;transition:none!important}}
body{--dw:600!important}.custom-deposit input{font-weight:600}.home-card[role=button]:focus-visible{transform:translateY(-5px)!important}
@media(min-width:801px) and (min-height:501px){[data-stage]{min-height:0}}
@media(max-width:800px),(max-height:500px){[data-stage] [style*="grid-template-columns:minmax(0,1fr) minmax(0,1fr)"]{grid-template-columns:1fr!important}sc-if[value="{{ R.k }}"]>div>div:first-child{flex-wrap:wrap}sc-if[value="{{ R.k }}"]>div>div:first-child>div:last-child{margin-left:0!important;width:100%!important}.custom-deposit{max-width:100%}}

[style*="font-family:'Material Symbols Rounded'"]{font-weight:300!important}
.deposit-display{font-size:var(--amount-size,124px)!important;overflow-wrap:anywhere}
[data-stage] .deposit-display{font-size:var(--amount-size,124px)!important}
#status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0;padding:0;min-height:0}.prototype-controls{display:none}body{transition:background-color .5s ease,color .35s ease}
@media(min-width:801px) and (min-height:501px){#app{max-width:1200px}[data-stage]{height:100dvh!important}[data-stage]>div:last-child{transition:width .55s cubic-bezier(.22,1,.36,1),transform .6s var(--spring),opacity .35s!important}[data-stage]>div:last-child>div{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){body{transition:none!important}}
/* One background layer keeps page and theme transitions uniform edge to edge. */
[data-stage]>sc-if>div{background:transparent!important}
#status{position:fixed;top:0;left:0}
/* Keep each primary page together instead of distributing groups across it. */
[data-stage] .centered-home{justify-content:center!important;gap:40px!important;padding-top:96px!important;padding-bottom:128px!important}
.centered-home>div:first-child{align-items:center!important;text-align:center}.centered-home>div:last-child{width:100%;max-width:1056px;align-self:center}
[data-stage] .sentence-screen{justify-content:center!important;gap:18px!important;padding-top:96px!important;padding-bottom:128px!important}
[data-stage] .sentence-copy{margin-top:0!important}[data-stage] .sentence-scenarios{margin-top:10px!important}.sentence-heading{margin-bottom:2px}
.sentence-copy .line-break{flex-basis:100%}[data-stage] .sentence-copy.sentence-copy.lines-held{row-gap:0!important}
/* Dock contents keep their natural width. Only the shell and CTA interpolate. */
[data-stage] .app-dock{padding:0!important;display:block!important;transition:width var(--motion-dock) var(--spring),transform .65s var(--spring),opacity .35s!important}
.dock-content{position:relative;display:flex;align-items:flex-end;gap:6px;width:max-content;flex:none;height:68px;padding:0 8px 8px}
.dock-item{background:transparent!important;z-index:1}
.dock-highlight{position:absolute;left:0;pointer-events:none;border-radius:999px;background:var(--dockAct);transition:transform var(--motion-dock) var(--spring),width var(--motion-dock) var(--spring),height var(--motion-dock) var(--spring),top var(--motion-dock) var(--spring),opacity .25s;z-index:0}
.dock-content>.dock-cta{width:var(--cta-width,0px)!important;max-width:none!important;transition:width var(--motion-dock) var(--spring),margin-left var(--motion-dock) var(--spring),opacity .25s!important;flex:none}
.dock-cta>div{width:max-content}
/* Page enter and exit are staggered per section in app.js (motionChunks); the export's whole-page scrIn is replaced. */
[data-stage] .page-content{animation:none!important}
[data-stage] .page-content.page-outgoing{pointer-events:none;z-index:2}
@media(max-width:800px),(max-height:500px){[data-stage] .centered-home{padding:90px 24px 195px!important;gap:28px!important}[data-stage] .sentence-screen{padding:90px 24px 195px!important;gap:18px!important}.sentence-scenarios{width:100%}}
@media(prefers-reduced-motion:reduce){.dock-highlight,[data-stage] .app-dock,.dock-content>.dock-cta{transition:none!important}}
[data-stage] .page-outgoing *{animation:none!important;transition:none!important}
/* The portfolio grows with its rows and the page scrolls under the dock, like the other pages. */
@media(min-width:801px) and (min-height:501px){[data-stage] .portfolio-screen.page-content{position:relative!important;inset:auto!important;min-height:100dvh;padding-bottom:150px!important}[data-stage] .portfolio-screen>div:nth-child(2){flex:none}}
[data-stage]>div.app-dock:last-child{transition:width var(--motion-dock) var(--spring),transform .65s var(--spring),opacity .35s!important}
@media(max-width:360px){.dock-content{gap:1px;padding-left:6px;padding-right:6px}}
@media(prefers-reduced-motion:reduce){[data-stage]>div.app-dock:last-child{transition:none!important}}
@media(max-width:800px),(max-height:500px){[data-stage] .menu-popup{position:fixed!important;left:24px!important;right:24px!important;top:var(--popup-top,96px)!important;bottom:auto!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - 80px);overflow-y:auto}}
html{scrollbar-width:none;transition:background-color .5s ease}html::-webkit-scrollbar{display:none;width:0;height:0}
.menu-popup,dialog{scrollbar-gutter:stable}
[data-stage] .menu-popup{position:fixed!important;left:var(--popup-left,24px)!important;right:auto!important;top:var(--popup-top,96px)!important;bottom:auto!important;width:var(--popup-width,360px)!important;max-height:min(420px,calc(100dvh - 100px));overflow-y:auto}
@media(max-width:800px),(max-height:500px){[data-stage] .sentence-copy{font-size:calc(38px * 2 / 3)!important;line-height:1.3!important}}

/* Drag handles must never begin browser text selection. */
[data-stage] [style*="touch-action:none"],[data-stage] [style*="touch-action:none"] *{user-select:none;-webkit-user-select:none}


.review-details{padding:18px 22px;border-radius:28px;background:var(--card);display:flex;flex-direction:column;gap:12px;font-size:13px;color:var(--mut);flex:none}
.review-legs{margin:0;line-height:1.5}
[data-stage] .review-scenarios{margin:0!important;display:flex!important;flex-direction:column;gap:8px;max-width:none!important}
@media(min-width:801px) and (min-height:501px){[data-stage] .review-screen>div:first-child{overflow:auto;scrollbar-gutter:stable;min-height:0}[data-stage] .review-screen>div:first-child>div{flex-shrink:0}}

/* Token lists remain scrollable without a visible scrollbar track. */
[data-stage] span:has(>[aria-label^="Token:"])>.menu-popup{scrollbar-width:none;scrollbar-gutter:auto}
[data-stage] span:has(>[aria-label^="Token:"])>.menu-popup::-webkit-scrollbar{display:none}

[data-stage][data-dark=true]{--amb:#f4d45f}
[data-stage][data-dark=true] [style*="background:var(--amb)"]{color:#29220b!important}
.earn-review-note{font-size:14px;color:var(--mut);margin-top:-10px}

/* Review uses the same columns and available height for both strategies. */
[data-stage] .review-screen{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;padding:92px 48px 120px!important;gap:16px!important;align-items:stretch!important}
.review-main,.review-summary{min-width:0;min-height:0}
.review-summary{display:flex;flex-direction:column;gap:16px!important}
.review-rows{flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto;scrollbar-gutter:stable;padding:8px 26px!important}
.review-rows>sc-for>div{flex:1;min-height:min-content;align-items:center!important;padding:14px 0!important}
.review-rows>sc-for>div:last-child{border-bottom:0!important}
.review-rows>sc-for>div>span:last-child{overflow-wrap:anywhere;max-width:72%;text-align:right}
.review-confirm{flex:none;min-height:68px;margin-top:0!important}
.review-summary>[role=checkbox]{flex:none}
.review-renew{display:flex;flex-direction:column;gap:10px;flex:none;font-size:13px;color:var(--mut);padding:0 16px}
.review-renew>div{align-self:flex-start}
.earn-review-note{margin:0;line-height:1.5}
.earn-review-scenarios{display:flex!important;flex-direction:column;gap:12px!important}
.earn-review-scenarios>sc-for>div{padding:18px!important;gap:8px!important;border-radius:24px!important}
.earn-review-scenarios>sc-for>div>span:nth-child(2){font-size:22px!important}
@media(max-width:800px),(max-height:500px){[data-stage] .review-screen{grid-template-columns:minmax(0,1fr)!important;padding:90px 24px 120px!important;gap:24px!important}.review-main{padding:24px!important}.review-rows{flex:none;overflow:visible}.review-rows>sc-for>div{flex:none}.review-sentence{font-size:26px!important}.review-legs{overflow-wrap:anywhere}.review-scenarios>sc-for>div{flex-wrap:wrap}.review-scenarios>sc-for>div>span:nth-child(2){white-space:normal!important;overflow:visible!important;text-overflow:clip!important}}
.review-market-note{margin:0;color:var(--mut);font-size:12px;line-height:1.4}
[hidden]{display:none!important}
.wallet-panel{padding:18px 0;border-bottom:1px solid var(--line)}
.wallet-panel h3{font-size:18px;margin:0;font-weight:600}
.wallet-panel label{display:flex;align-items:center;gap:12px;font-size:14px}
.wallet-panel select{font:inherit;color:var(--ink);background:var(--bg);padding:8px 12px;border:0;border-radius:12px}
.review-renew:has([aria-disabled=true]){opacity:.7}

/* Reviews keep their scroll range without visible scrollbar tracks. */
[data-stage] .review-main,[data-stage] .review-rows{scrollbar-width:none!important;scrollbar-gutter:auto!important;overscroll-behavior-y:contain}
[data-stage] .review-main::-webkit-scrollbar,[data-stage] .review-rows::-webkit-scrollbar{display:none;width:0;height:0}
html:has([data-route="1h"]),html:has([data-route="1p"]){scrollbar-width:none;scrollbar-gutter:auto}
html:has([data-route="1h"])::-webkit-scrollbar,html:has([data-route="1p"])::-webkit-scrollbar{display:none}
.is-dragging,.is-dragging *{cursor:grabbing!important;user-select:none!important}
[data-stage] .review-main{padding:26px!important;gap:18px!important}
[data-stage] .review-sentence{font-size:clamp(24px,2.2vw,32px)!important;line-height:1.3!important}
.review-details.review-outcomes{padding:0;background:transparent;gap:0}
[data-stage] .review-scenarios,.earn-review-scenarios{gap:10px!important}
.review-outcome{border-radius:22px;margin:0;flex:none;font-size:13px;color:var(--mut)}
.review-outcome>summary,.invest-outcome{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px;list-style:none}
.review-outcome>summary{cursor:pointer;position:relative;padding-inline-end:36px}
.review-outcome>summary::-webkit-details-marker{display:none}
.review-outcome>summary:after{content:'+';position:absolute;inset-inline-end:14px;font-size:18px;color:var(--ink)}
.review-outcome[open]>summary:after{content:'−'}
.outcome-icon{font-family:'Material Symbols Rounded';font-size:21px;font-weight:300;color:var(--ink)}
.outcome-title{min-width:0;line-height:1.35;font-size:14px;font-weight:600;color:var(--ink)}
.outcome-value{font-size:14px;font-weight:600;text-align:right;overflow-wrap:anywhere;max-width:145px}
.outcome-explanation{padding:0 16px 16px 60px;font-size:13px;line-height:1.5}
.outcome-explanation p{margin:0 0 8px}.outcome-explanation p:last-child{margin-bottom:0}
.review-disclosure{margin:0;flex:none;color:var(--mut);font-size:13px}
.review-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;font-size:14px;color:var(--ink);list-style:none}
.review-disclosure>summary:after{content:'+';font-size:18px}.review-disclosure[open]>summary:after{content:'−'}
.review-disclosure>summary::-webkit-details-marker{display:none}
.review-disclosure>summary:focus-visible,.review-outcome>summary:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:12px}
.review-contracts{display:flex;flex-direction:column;gap:8px;line-height:1.5;padding-bottom:12px;overflow-wrap:anywhere}
.review-disclosure>div{margin:0!important}
.review-renewal{padding:0 16px}.review-renewal .review-renew{padding:0 0 10px}
.review-rows>sc-for>div{gap:14px!important;min-height:54px}
@media(min-width:801px) and (min-height:501px) and (max-height:740px){[data-stage] .review-screen{padding-top:72px!important;padding-bottom:104px!important}[data-stage] .review-main{padding:22px!important;gap:14px!important}.review-outcome>summary,.invest-outcome{padding-top:12px;padding-bottom:12px}.review-disclosure>summary{padding-top:10px;padding-bottom:10px}.review-summary{gap:12px!important}.review-rows{padding:4px 22px!important}}
@media(max-width:800px),(max-height:500px){[data-stage] .review-main{padding:24px!important}.review-outcome>summary,.invest-outcome{grid-template-columns:24px minmax(0,1fr) auto;gap:10px;padding-left:14px}.outcome-value{max-width:92px;font-size:13px}.outcome-explanation{padding-left:48px}.review-sentence{font-size:26px!important}}
.review-extra-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;flex:none}
.review-extra-details>.review-disclosure[open]{grid-column:1/-1}
.review-extra-details .review-disclosure>summary{padding:10px 0}

/* The page canvas and scroll gutters share one theme value. */
html,body{background:var(--page-bg,#f5f3ee)!important;transition:background-color .5s ease;color-scheme:inherit}
body{width:100%;min-height:100dvh}
#app,[data-stage]{background:transparent!important}
a{color:var(--ink)}
#connect{width:min(460px,calc(100% - 32px));padding:28px;border-radius:36px;max-height:calc(100dvh - 40px);scrollbar-width:none}
#connect header{gap:20px;margin-bottom:18px}
#connect h2{font-size:32px;font-weight:600}
#connect .connect-close{width:40px;height:40px;display:flex;align-items:center;justify-content:center;padding:0;flex:none}
.connect-content>p,.connect-note{font-size:14px;color:var(--mut);line-height:1.5}
.connect-wallets{display:flex;flex-direction:column;gap:10px;margin:22px 0}
#connect .connect-wallets button,.connect-account{width:100%;display:flex;align-items:center;gap:14px;text-align:start;padding:14px 18px;border-radius:24px;font-size:16px}
.connect-wallets button>.outcome-icon{margin-inline-start:auto}
.connect-remember{display:flex;align-items:flex-start;gap:12px;margin:-6px 0 4px;padding:12px 4px;font-size:14px;color:var(--ink);cursor:pointer}.connect-remember input{width:18px;height:18px;margin:1px 0 0;accent-color:var(--ink);flex:none}.connect-remember span{display:flex;flex-direction:column;gap:2px}.connect-remember small{font-size:12.5px;color:var(--mut)}
.connect-wallet-icon{width:40px;height:40px;flex:none;border-radius:12px;object-fit:contain;outline:none}
.connect-monogram{width:40px;height:40px;flex:none;border-radius:14px;background:var(--mint);color:var(--ink);display:flex;align-items:center;justify-content:center;font-family:var(--disp);font-size:20px}
.connect-empty{background:var(--bg);border-radius:26px;padding:22px;margin:20px 0;text-align:center}
.connect-empty>.outcome-icon{font-size:32px}
.connect-empty p{font-size:14px;color:var(--mut);line-height:1.5}
#connect .connect-empty button{background:var(--card);width:100%;margin-top:8px}
#connect .connect-primary{display:block;width:100%;min-height:58px;background:var(--btn);color:var(--btnFg);font-size:16px;margin-top:22px}
.connect-secondary{display:flex;justify-content:space-between;align-items:center;border-radius:22px;padding:16px 18px;background:var(--bg);text-decoration:none;font-size:14px}
.connect-progress{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;min-height:200px}
.connect-spinner{width:36px;height:36px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--ink);animation:connectSpin .8s linear infinite}
@keyframes connectSpin{to{transform:rotate(360deg)}}
#connect .err-chip{margin:16px 0 0}
.connect-avatar{width:40px;height:40px;flex:none;border-radius:50%}
.connect-subaccount{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;margin:18px 0}
.connect-subaccount select{font:inherit;padding:10px 14px;color:var(--ink);background:var(--bg);border:0;border-radius:14px}
[data-stage] .receipt-screen{gap:18px!important}
.receipt-screen h1{font-family:var(--disp);font-size:clamp(36px,5vw,64px);margin:0;font-weight:600}
.receipt-mark{display:flex;align-items:center;justify-content:center;width:72px;height:72px;background:var(--mint);border-radius:50%}
.receipt-mark .outcome-icon{font-size:36px}
.receipt-description{color:var(--mut);font-size:17px;line-height:1.4;margin:0}
.receipt-facts{width:min(680px,100%);background:var(--card);border-radius:28px;padding:10px 24px;text-align:start}
.receipt-facts>sc-for>div{display:flex;align-items:baseline;justify-content:space-between;gap:24px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}
.receipt-facts>sc-for>div:last-child{border:0}
.receipt-facts>sc-for>div>span:first-child{color:var(--mut);flex:none}
.receipt-facts>sc-for>div>span:last-child{overflow-wrap:anywhere;white-space:pre-line;text-align:right;max-width:75%;line-height:1.4}
.receipt-actions{display:flex;gap:12px}
.receipt-actions button{border:0;border-radius:99px;min-height:58px;padding:0 28px;background:var(--card);color:var(--ink)}
.receipt-actions button:last-child{background:var(--btn);color:var(--btnFg)}
/* Data pills remain indivisible and outcomes never clip at a column boundary. */
.review-sentence span{display:inline-block;white-space:nowrap;vertical-align:baseline}
[data-stage] .review-main{overflow:visible!important;height:auto;align-self:stretch}
[data-stage] .review-main>.review-payoff{margin-top:0!important;flex:none}
.review-payoff{padding-top:6px}
@media(min-width:801px) and (min-height:501px){
 [data-stage]:is([data-route="1h"],[data-route="1p"],[data-route="1j"],[data-route="1r"],[data-route="1s"],[data-route="1x"],[data-route="1k"]){height:auto!important;min-height:100dvh}
 [data-stage] .review-screen,[data-stage] .receipt-screen{position:relative!important;inset:auto!important;min-height:100dvh;height:auto!important}
 [data-stage] .review-summary{min-height:calc(100dvh - 212px);align-self:stretch}
 [data-stage]:is([data-route="1h"],[data-route="1p"],[data-route="1j"],[data-route="1r"],[data-route="1s"],[data-route="1x"],[data-route="1k"]) .app-dock{position:fixed!important}
}
@media(min-width:801px) and (min-height:501px) and (max-height:740px){[data-stage] .review-summary{min-height:calc(100dvh - 176px)}}
@media(max-width:800px),(max-height:500px){[data-stage] .receipt-screen{padding:90px 24px 120px!important}.receipt-facts{padding:8px 18px}.receipt-actions{width:100%;flex-wrap:wrap}.receipt-actions button{flex:1;white-space:nowrap}#connect{padding:24px}}
@media(prefers-reduced-motion:reduce){html,body{transition:none!important}}
.outcome-value{white-space:nowrap;overflow-wrap:normal;max-width:none!important}
[data-stage] .review-main{gap:14px!important}
.review-outcome>summary,.invest-outcome{padding-top:12px;padding-bottom:12px}
.review-payoff-plot{padding-top:24px!important}
.review-payoff-plot>sc-for>div>div:first-child{height:75px!important}
.review-payoff-plot>sc-for>div>div:last-child{height:50px!important}

@keyframes accountIn{from{opacity:0;transform:translateY(16px) scale(.95)}to{opacity:1;transform:none}}
#connect[open]{animation:accountIn .55s var(--spring) both}
@media(prefers-reduced-motion:reduce){#connect[open]{animation:none}}

/* ============ Dynamic island: page, live balance, add money, account ============ */
/* The authored island is replaced by .isl (public/account.js). */
.dynamic-island{display:none!important}
.ms{font-family:'Material Symbols Rounded';font-weight:300;font-style:normal;line-height:1;letter-spacing:0;text-transform:none;white-space:nowrap;font-size:20px;display:inline-block;-webkit-font-smoothing:antialiased}
:where(.isl-root) button{border:0;padding:0;background:none;color:inherit;font:inherit;cursor:pointer}
.isl-root{position:fixed;top:12px;left:0;right:0;z-index:70;display:flex;justify-content:center;pointer-events:none}
.isl{pointer-events:auto;position:relative;height:44px;background:var(--isl);color:#fff;border-radius:24px;overflow:hidden;font:500 13px var(--ui);box-shadow:0 14px 34px -18px rgba(0,0,0,.55),inset 0 0 0 1px var(--islRing);transition:width .42s cubic-bezier(.32,.72,0,1),height .42s cubic-bezier(.32,.72,0,1),border-radius .42s cubic-bezier(.32,.72,0,1),box-shadow .3s}
.isl.is-open{border-radius:30px;transition:width .5s cubic-bezier(.34,1.12,.64,1),height .5s cubic-bezier(.34,1.12,.64,1),border-radius .5s cubic-bezier(.34,1.12,.64,1),box-shadow .4s;box-shadow:0 34px 90px -28px rgba(0,0,0,.6),inset 0 0 0 1px var(--islRing)}
.isl-bar{display:flex;align-items:center;gap:6px;height:44px;padding:0 5px;width:max-content;white-space:nowrap}
/* Open, the bar steps aside; the panel repeats the balance and actions, with close at its top right. */
.isl.is-open .isl-bar{display:none}.isl.is-open .isl-panel{padding-top:10px}
.isl-page{display:flex;align-items:center;gap:7px;font-weight:600;color:rgba(255,255,255,.92);padding-right:2px}
.isl-page .ms{font-size:18px;color:rgba(255,255,255,.55)}
.isl-brand{padding:0 10px 0 9px}.isl-brand img{width:18px;height:18px;border-radius:6px}
.isl-sep{width:1px;height:18px;background:rgba(255,255,255,.14);margin:0 4px;flex:none}
.isl-fund{display:flex;align-items:center;gap:2px;height:34px;padding:2px;border-radius:99px;background:rgba(255,255,255,.08);box-sizing:border-box}
.isl-balance{display:flex;align-items:center;gap:8px;height:30px;padding:0 10px 0 12px;border-radius:99px;transition:background-color .15s ease-out}
@media(hover:hover){.isl-balance:hover{background:rgba(255,255,255,.08)}}
.isl-balance:has(+.isl-add){padding-right:6px}
.isl-amount{font:600 15px var(--ui);letter-spacing:-.01em;font-variant-numeric:tabular-nums}
@keyframes livePulse{0%{box-shadow:0 0 0 0 oklch(0.8 0.17 155 / .55)}70%,100%{box-shadow:0 0 0 7px oklch(0.8 0.17 155 / 0)}}
.isl-tag{font-size:11px;font-weight:500;color:rgba(255,255,255,.55)}
.isl-add,.isl-avatar{width:34px;height:34px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;transition:transform .35s var(--spring),scale .15s ease-out}
:where(.isl-root) .isl-add{background:none;color:rgba(255,255,255,.6)}
/* Add money is a quiet companion to the balance, not a second primary action. */
.isl-fund .isl-add{width:26px;height:26px;margin-right:2px;transition:background-color .15s ease-out,color .15s ease-out,scale .15s ease-out}
.isl-add .ms{font-size:17px;font-weight:400}
@media(hover:hover){.isl-fund .isl-add:hover{transform:none;background:rgba(255,255,255,.12);color:#fff}}
@media(hover:hover){.isl-add:hover,.isl-avatar:hover{transform:scale(1.07)}}.isl-add:active,.isl-avatar:active{scale:.96}
.isl-avatar{box-shadow:inset 0 0 0 2px rgba(255,255,255,.14)}
:where(.isl-root) .isl-connect{display:flex;align-items:center;gap:7px;height:34px;padding:0 14px 0 11px;border-radius:99px;background:#fff;color:#0d0e11;font-weight:600}
.isl-connect .ms{font-size:18px}
:where(.isl-root) .isl-more{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.75);transition:background-color .15s ease-out}@media(hover:hover){.isl-more:hover{background:rgba(255,255,255,.1)}}
/* Skeleton: same geometry as the connected bar so nothing jumps when the balance lands. */
.isl-skel{pointer-events:none}
.isl-skel-avatar{background:linear-gradient(90deg,rgba(255,255,255,.08),rgba(255,255,255,.2),rgba(255,255,255,.08));background-size:200% 100%;animation:shimmer 1.3s linear infinite}
.isl-skel .isl-add{width:26px;height:26px;margin-right:2px}
.isl-skel-avatar{box-shadow:none}
@media(prefers-reduced-motion:reduce){.isl-skel-avatar{animation:none}}
.isl-spin{width:14px;height:14px;border-radius:50%;border:2px solid rgba(0,0,0,.15);border-top-color:#0d0e11;animation:connectSpin .8s linear infinite}
.isl-bar:has(.isl-toast){max-width:calc(100vw - 24px);height:auto;min-height:44px}
.isl-toast{display:flex;align-items:center;gap:8px;min-width:0;padding:6px 0 6px 5px;animation:islIn .35s ease both}
.isl-toast>.ms{flex:none;font-size:18px;color:oklch(0.8 0.17 155)}
.isl-toast-text{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.isl-toast.is-error{align-items:flex-start;padding-top:9px}.isl-toast.is-error>.ms{color:oklch(0.76 0.14 30);margin-top:1px}
.isl-toast.is-error .isl-toast-text{display:flex;flex-direction:column;gap:1px;max-width:min(320px,calc(100vw - 96px));padding-bottom:3px}
.isl-toast-text strong{font-weight:600;color:#fff}.isl-toast.is-error .isl-toast-text>span{font-size:12px;color:rgba(255,255,255,.62)}
.isl-toast.is-error .isl-toast-dismiss{margin-top:-5px}
.isl-toast-action{flex:none;display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 10px 0 13px;margin-left:4px;border-radius:99px;background:#fff;color:#121317;font:600 13px var(--ui);white-space:nowrap;transition:scale .15s ease-out}
.isl-toast-action .ms{font-size:16px;font-weight:400}
.isl-toast-action:active{scale:.96}
.isl-toast.is-error .isl-toast-action{align-self:center;margin-top:-4px}
/* Unused beta invites, beside the balance: tap to share them. */
.isl-invites{flex:none;display:flex;align-items:center;gap:5px;height:34px;padding:0 12px 0 10px;border-radius:99px;background:rgba(255,255,255,.08);color:#fff;font:600 13px var(--ui);font-variant-numeric:tabular-nums;transition:background-color .15s ease-out,scale .15s ease-out}
.isl-invites .ms{font-size:17px;font-weight:400;color:oklch(0.85 0.12 160)}
@media(hover:hover){.isl-invites:hover{background:rgba(255,255,255,.14)}}.isl-invites:active{scale:.96}
.isl-toast-dismiss{flex:none;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.isl-toast-dismiss .ms{font-size:18px;color:rgba(255,255,255,.7)}
@media(hover:hover){.isl-toast-dismiss:hover{background:rgba(255,255,255,.1)}}
.isl-root :focus-visible{outline:2px solid currentColor;outline-offset:2px}
.isl-panel{max-height:calc(100dvh - 72px);overflow:auto;scrollbar-width:none;padding:2px 18px 18px;opacity:0;transform:translateY(-8px) scale(.98);transform-origin:top center;transition:opacity .18s ease,transform .45s var(--spring)}
.isl.is-open .isl-panel{opacity:1;transform:none;transition-delay:.08s}
/* Panel content is shared by the island (dark) and the mobile sheet (card). */
.isl-panel{--p-fg:#fff;--p-mut:rgba(255,255,255,.55);--p-line:rgba(255,255,255,.1);--p-soft:rgba(255,255,255,.08);--p-primary:#fff;--p-primaryFg:#0d0e11;--p-good:oklch(0.8 0.17 155);--p-bad:oklch(0.74 0.15 25)}
.sheet{--p-fg:var(--ink);--p-mut:var(--mut);--p-line:var(--line);--p-soft:var(--bg);--p-primary:var(--ink);--p-primaryFg:var(--card);--p-good:var(--good);--p-bad:var(--bad)}
.acc-head{display:flex;align-items:center;gap:12px;padding:8px 0 14px;color:var(--p-fg)}
.acc-avatar{width:40px;height:40px;border-radius:50%;flex:none}
.acc-avatar-empty{display:flex;align-items:center;justify-content:center;background:var(--p-soft);color:var(--p-mut)}
.acc-id{display:flex;flex-direction:column;gap:2px;min-width:0;margin-right:auto}
.acc-id strong{font:600 15px var(--ui)}.acc-id span{font-size:12px;color:var(--p-mut)}
:where(.isl-root) .acc-icon{width:34px;height:34px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;background:var(--p-soft);color:var(--p-fg)}
.acc-icon .ms{font-size:18px}
.acc-balance{display:flex;flex-direction:column;gap:4px;padding:4px 0 18px;color:var(--p-fg)}
.acc-label{font-size:12px;color:var(--p-mut)}
.acc-total{font-family:var(--disp);font-weight:600;font-size:42px;letter-spacing:-.035em;line-height:1.05;font-variant-numeric:tabular-nums}
.acc-split{display:flex;flex-wrap:wrap;column-gap:16px;row-gap:4px;margin-top:8px;font-size:13px;color:var(--p-mut)}
.acc-split strong{margin-inline-start:4px;color:var(--p-fg);font-weight:600;font-variant-numeric:tabular-nums}
.acc-split .good{color:var(--p-good)}.acc-split .bad{color:var(--p-bad)}
.acc-actions{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px}
:where(.isl-root) .acc-actions>*{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:74px;border-radius:20px;background:var(--p-soft);color:var(--p-fg);font:600 12.5px var(--ui);text-decoration:none;transition:scale .15s ease-out,background-color .15s ease-out}
.acc-actions>*:active{scale:.96}
:where(.isl-root) .acc-actions .acc-primary{background:var(--p-primary);color:var(--p-primaryFg)}
.acc-actions .ms{font-size:22px}
.acc-label{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
:where(.isl-root) .acc-tag{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px 0 8px;border-radius:99px;background:oklch(0.8 0.12 85 / .16);color:var(--p-fg);font-size:11.5px;font-weight:500}
@media(hover:hover){:where(.isl-root) .acc-tag:hover{background:oklch(0.8 0.12 85 / .26)}}
.acc-tag-dot{width:6px;height:6px;border-radius:50%;background:oklch(0.82 0.14 85);animation:tagPulse 1.6s ease-in-out infinite}
@keyframes tagPulse{50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.acc-tag-dot{animation:none}}
:where(.isl-root) .acc-tag.is-quiet{background:color-mix(in oklch, var(--p-fg) 8%, transparent)}@media(hover:hover){:where(.isl-root) .acc-tag.is-quiet:hover{background:color-mix(in oklch, var(--p-fg) 14%, transparent)}}.acc-tag.is-quiet .acc-tag-dot{background:oklch(0.7 0.14 160);animation:none}
.acc-section{margin-top:16px;padding-top:14px;border-top:1px solid var(--p-line);color:var(--p-fg)}
.acc-section h3{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 6px;font:600 13px var(--ui)}.acc-section h3 span{font-weight:400;font-size:12px;color:var(--p-mut)}
.acc-tokens{list-style:none;margin:0;padding:0}
.acc-tokens li{display:flex;align-items:center;gap:10px;padding:6px 0;font-size:13px}
.acc-tokens strong{margin-inline-start:auto;font-weight:600;font-variant-numeric:tabular-nums}
.acc-coin{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--p-soft);font-size:11px;font-weight:700}
.acc-empty{margin:0;font-size:13px;line-height:1.5;color:var(--p-mut)}.acc-empty a{color:var(--p-fg);white-space:nowrap}.acc-link{all:unset;cursor:pointer;color:var(--p-fg);text-decoration:underline;white-space:nowrap}
.acc-skeleton{height:26px;margin:6px 0;border-radius:8px;background:linear-gradient(90deg,var(--p-soft),var(--p-line),var(--p-soft));background-size:200% 100%;animation:shimmer 1.2s linear infinite}
@keyframes shimmer{to{background-position:-200% 0}}
.acc-prefs{display:flex;align-items:center;justify-content:space-between;gap:12px}
.acc-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:var(--p-fg)}
.seg{display:flex;padding:3px;border-radius:99px;background:var(--p-soft)}
:where(.isl-root) .seg button{min-width:44px;padding:6px 12px;border-radius:99px;display:flex;align-items:center;justify-content:center;color:var(--p-mut);font-size:12.5px;font-weight:500;transition:background-color .15s ease-out,color .15s ease-out}
:where(.isl-root) .seg button[aria-checked=true]{background:var(--p-primary);color:var(--p-primaryFg)}
.seg .ms{font-size:17px}
.acc-row select{font:inherit;color:var(--p-fg);background:var(--p-soft);border:0;border-radius:10px;padding:7px 10px;max-width:60%}
.acc-pick{display:flex;flex-direction:column;gap:6px}
:where(.isl-root) .acc-pick-trigger,:where(.isl-root) .acc-pick-list button{width:100%;display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;color:var(--p-fg);font:500 13px var(--ui);text-align:start;transition:background-color .15s ease-out,scale .15s ease-out}
:where(.isl-root) .acc-pick-trigger{background:var(--p-soft)}
:where(.isl-root) .acc-pick-trigger:active,:where(.isl-root) .acc-pick-list button:active{scale:.98}
.acc-pick-label{color:var(--p-mut);margin-inline-end:auto}
.acc-pick-list .acc-pick-name{margin-inline-end:auto}
.acc-pick-name{font-weight:600}
.acc-pick-meta{display:flex;align-items:center;gap:6px;color:var(--p-mut);font-variant-numeric:tabular-nums}
.acc-pick-meta em{font-style:normal;font-size:11px;padding:2px 7px;border-radius:99px;background:var(--p-line);color:var(--p-fg)}
.acc-pick .ms{font-size:18px;width:18px;color:var(--p-mut);transition:rotate .2s ease-out}
.acc-pick.is-open .acc-pick-trigger .ms{rotate:180deg}
.acc-pick-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;animation:pickIn .18s ease-out both}
:where(.isl-root) .acc-pick-list button{background:var(--p-soft)}
:where(.isl-root) .acc-pick-list button[aria-selected=true]{background:var(--p-line)}
:where(.isl-root) .acc-pick-list button[aria-selected=true] .ms{color:var(--p-fg)}
@media (hover:hover){:where(.isl-root) .acc-pick-list button:hover,:where(.isl-root) .acc-pick-trigger:hover{background:var(--p-line)}}
@keyframes pickIn{from{opacity:0;translate:0 -4px}}
@media (prefers-reduced-motion:reduce){.acc-pick-list{animation:none}.acc-pick .ms{transition:none}}
.acc-chips{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 8px}
:where(.isl-root) .acc-chips button{padding:7px 12px;border-radius:99px;background:var(--p-soft);color:var(--p-fg);font-size:12px;font-weight:500}
/* One error at a time: readable explanation, one fix, dismiss. */
.err-chip{display:grid;grid-template-columns:18px minmax(0,1fr) auto auto;align-items:center;gap:4px 8px;margin:0 0 14px;padding:8px 6px 10px 12px;border-radius:14px;background:color-mix(in oklab,var(--p-bad,var(--bad)) 16%,transparent);color:var(--p-fg,var(--ink));font-size:13px;animation:errIn .25s ease both}
@keyframes errIn{from{opacity:0;transform:translateY(-4px)}}
.err-chip>.ms{font-size:18px;color:var(--p-bad,var(--bad))}
.err-copy{display:contents}
.err-title{grid-column:2;grid-row:1;font-weight:600}
.err-detail{grid-column:2 / -1;grid-row:2;line-height:1.45;overflow-wrap:anywhere}
.err-chip .err-fix{grid-column:3;grid-row:1;padding:6px 12px;border-radius:99px;background:var(--p-primary,var(--ink));color:var(--p-primaryFg,var(--card));font:600 12.5px var(--ui);min-height:0}
.err-chip .err-x{grid-column:4;grid-row:1;width:28px;height:28px;padding:0;border-radius:50%;display:flex;align-items:center;justify-content:center;background:transparent;color:var(--p-mut,var(--mut));min-height:0}
.err-x .ms{font-size:16px}
:where(.isl-root) .acc-disconnect{margin-top:12px;width:100%;height:42px;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--p-bad);font-size:13px}
.acc-disconnect .ms{font-size:18px}
/* Bottom sheet (narrow screens) */
.sheet-scrim{position:fixed;inset:0;pointer-events:auto;background:rgba(10,11,13,.4);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);opacity:0;transition:opacity .35s ease}
.sheet{position:fixed;left:0;right:0;bottom:0;pointer-events:auto;display:flex;flex-direction:column;max-height:calc(100dvh - 40px);background:var(--card);color:var(--ink);border-radius:28px 28px 0 0;box-shadow:0 -20px 60px -20px rgba(0,0,0,.4);padding-bottom:env(safe-area-inset-bottom);transform:translateY(100%);transition:transform .45s cubic-bezier(.32,.72,0,1);touch-action:none}
.isl-root.sheet-open .sheet{transform:none}.isl-root.sheet-open .sheet-scrim{opacity:1}
.sheet.is-dragging{transition:none}
.sheet-grip{flex:none;width:40px;height:5px;margin:10px auto 4px;border-radius:99px;background:var(--faint)}
.sheet-body{overflow:auto;padding:4px 20px 28px;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:none}
.sheet .acc-head{touch-action:none}
html.sheet-locked,html.sheet-locked body{overflow:hidden}
@media(max-width:800px),(max-height:500px){
 .isl-root{top:calc(8px + env(safe-area-inset-top));padding:0 12px}
 .isl{max-width:100%}
 .isl-avatar,.isl-tag{display:none}
}
@media(prefers-reduced-motion:reduce){.isl,.isl-panel,.sheet,.sheet-scrim{transition:none}}

/* Live price sits beside the strategy it prices. */
.page-ticker{display:inline-flex;align-items:center;gap:7px;margin-left:12px;padding:5px 11px 5px 10px;border-radius:99px;background:var(--card);font:500 12.5px var(--ui);color:var(--mut);vertical-align:middle;letter-spacing:normal;text-transform:none;white-space:nowrap}
.page-ticker b{font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.page-ticker-symbol{font-weight:600;color:var(--ink)}
.page-ticker-state{font-size:11.5px}
.page-ticker-dot{width:6px;height:6px;border-radius:50%;background:var(--mut3)}
.page-ticker.is-live .page-ticker-dot{position:relative;background:oklch(0.7 0.17 155)}
/* The live ring scales and fades on the compositor; animating box-shadow repainted every frame. */
.page-ticker.is-live .page-ticker-dot::after{content:'';position:absolute;inset:0;border-radius:50%;background:oklch(0.8 0.17 155);animation:livePing 2.4s cubic-bezier(0,0,.2,1) infinite;will-change:transform,opacity}
@keyframes livePing{0%{transform:scale(1);opacity:.6}70%,100%{transform:scale(2.3);opacity:0}}
@media(prefers-reduced-motion:reduce){.page-ticker.is-live .page-ticker-dot::after{animation:none;opacity:0}}

/* Dock: navigation only, with labels on hover. */
@media(hover:hover) and (min-width:801px) and (min-height:501px){
 .dock-item>span:last-child{transition:opacity .18s ease,transform .35s var(--spring)!important}
 .dock-item:hover>span:last-child,.dock-item:focus-visible>span:last-child{opacity:1!important;transform:translate(-50%,0)!important}
}
/* ============ Add money ============ */
[data-stage] .funding-screen{position:relative!important;inset:auto!important;min-height:100dvh;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;padding:104px 24px 150px!important;gap:0!important}
[data-stage][data-route="1e"]{height:auto!important;min-height:100dvh}
[data-stage][data-route="1e"] .app-dock{position:fixed!important}
.fund{width:min(460px,100%);display:flex;flex-direction:column;gap:14px;margin:auto 0}
.fund-head{display:flex;flex-direction:column;gap:8px;text-align:center;margin-bottom:8px}
.fund-head h1{margin:0;font:600 clamp(34px,4vw,46px)/1.05 var(--disp);letter-spacing:-.035em}
.fund-head p{margin:0 auto;max-width:360px;font-size:15px;line-height:1.45;color:var(--mut)}
.fund-card{display:flex;flex-direction:column;align-items:center;gap:16px;padding:26px 22px 22px;border-radius:32px;background:var(--card);transition:opacity .3s}
.fund-card.is-locked{opacity:.6}
.fund-amount{display:flex;align-items:baseline;justify-content:center;gap:6px;width:100%;color:var(--mut)}
.fund-currency{font:600 40px var(--disp)}
[data-stage] .fund-amount input{width:5ch;min-width:1.5ch;field-sizing:content;max-width:100%;padding:0;border:0;background:transparent;outline:none;text-align:center;color:var(--ink);font:600 64px/1.05 var(--disp)!important;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.fund-unit{font:500 15px var(--ui)}
.fund-presets{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.fund-presets button{border:0;padding:9px 16px;border-radius:99px;background:var(--bg);color:var(--ink);font:500 14px var(--ui);transition:background-color .15s ease-out,color .15s ease-out,scale .15s ease-out}
.fund-presets button[aria-pressed=true]{background:var(--ink);color:var(--card)}
.fund-presets button:active{scale:.96}
.fund-available{margin:0;font-size:13px;color:var(--mut)}
.fund-steps{list-style:none;margin:0;padding:6px 20px;border-radius:28px;background:var(--card);animation:fb .45s ease both}
.fund-steps li{display:flex;align-items:center;gap:14px;padding:12px 0}
.fund-step-icon{width:32px;height:32px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--bg);color:var(--mut3);font-family:'Material Symbols Rounded';font-size:20px;transition:background-color .3s ease-out,color .3s ease-out}
.fund-steps li[data-state=done] .fund-step-icon{background:var(--mint);color:var(--ink)}
.fund-steps li[data-state=active] .fund-step-icon{color:var(--ink);animation:connectSpin 1.1s linear infinite}
.fund-step-text{display:flex;flex-direction:column;gap:2px}
.fund-step-text strong{font-size:14px;font-weight:600}.fund-step-text small{font-size:12.5px;color:var(--mut)}
.fund-steps li[data-state=todo] strong{color:var(--mut)}
.fund-error{margin:0;text-align:center;font-size:13.5px;line-height:1.45;color:var(--bad)}
.fund-submit{min-height:60px;border:0;border-radius:99px;background:var(--btn);color:var(--btnFg);font:600 16px var(--ui);transition:scale .15s ease-out}
.fund-submit:active:not(:disabled){scale:.96}.fund-submit:disabled{background:var(--dis);color:var(--mut);cursor:default}
.fund-foot{margin:0;text-align:center;font-size:12.5px;color:var(--mut)}
.fund-links{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px}
.fund-links a{color:var(--ink);text-underline-offset:3px}
.fund-faucet{border:0;background:var(--card);color:var(--ink);border-radius:99px;padding:12px 20px;font:500 14px var(--ui);cursor:pointer}
.fund-faucet:disabled{opacity:.6;cursor:default}
.fund-trouble{margin:0;padding:2px 18px;border-radius:22px;background:var(--card);font-size:13px;color:var(--mut);line-height:1.5}
.fund-trouble summary{padding:12px 0;color:var(--ink);cursor:pointer}
.fund-trouble p{margin:0 0 8px}
.fund-trouble input{width:100%;margin:2px 0 10px;padding:12px 14px;border:0;border-radius:14px;background:var(--bg);color:var(--ink);font:13px ui-monospace,Menlo,monospace}
.fund-trouble button{margin-bottom:14px;padding:10px 18px;border:0;border-radius:99px;background:var(--ink);color:var(--card);font:500 13px var(--ui)}
.fund[data-state=credited] .fund-card{display:none}
.fund[data-state=credited] .fund-head:before{content:'check';width:72px;height:72px;margin:0 auto 10px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--mint);color:var(--ink);font:36px 'Material Symbols Rounded';animation:pop .5s var(--spring) both}
@media(max-width:800px),(max-height:500px){[data-stage] .funding-screen{padding:76px 20px 120px!important}[data-stage] .fund-amount input{font-size:54px!important}}

/* Portfolio header: total value centered, filter beneath. */
[data-stage] .portfolio-screen>div:first-child{flex-direction:column;align-items:center!important;gap:14px!important}
[data-stage] .portfolio-screen>div:first-child>div:first-child{align-items:center;text-align:center}
[data-stage] .portfolio-screen>div:first-child>div:last-child{margin:0!important}
/* ============ Empty portfolio ============ */
.portfolio-empty{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;max-width:600px;margin:auto;padding:16px 0 40px;text-align:center;animation:fb .55s cubic-bezier(.2,.8,.2,1) both}
/* The empty state centers on the page itself, not in the space the header and empty list leave over. */
.portfolio-screen.is-empty>div:nth-child(2){display:none!important}
.portfolio-screen.is-empty>.portfolio-empty{position:absolute;inset:0;height:fit-content;padding:0 24px;box-sizing:border-box}
.portfolio-screen.is-empty :is(.pf-toolbar,.pf-bar,.pf-chart),.portfolio-screen.is-signed-out>div:first-child{display:none!important}
.pe-art{position:relative;width:150px;height:100px;margin-bottom:10px}
.pe-art span{position:absolute;left:50%;top:50%;width:96px;height:64px;border-radius:20px;background:var(--card);box-shadow:0 14px 30px -18px rgba(0,0,0,.3);transition:transform .6s var(--spring)}
.pe-art span:nth-child(1){background:var(--lil);transform:translate(-50%,-50%) translate(-30px,8px) rotate(-12deg)}
.pe-art span:nth-child(2){background:var(--mint);transform:translate(-50%,-50%) translate(30px,8px) rotate(12deg)}
.pe-art span:nth-child(3){transform:translate(-50%,-50%) translateY(-6px)}
.pe-art span:nth-child(3):before,.pe-art span:nth-child(3):after{content:'';position:absolute;left:16px;height:8px;border-radius:9px}
.pe-art span:nth-child(3):before{top:20px;right:28px;background:var(--line)}
.pe-art span:nth-child(3):after{top:36px;right:52px;background:var(--mint)}
.portfolio-empty:hover .pe-art span:nth-child(1){transform:translate(-50%,-50%) translate(-40px,6px) rotate(-18deg)}
.portfolio-empty:hover .pe-art span:nth-child(2){transform:translate(-50%,-50%) translate(40px,6px) rotate(18deg)}
.pe-title{margin:0;font:600 clamp(28px,3vw,38px)/1.1 var(--disp);letter-spacing:-.03em}
.pe-copy{margin:0;max-width:420px;font-size:15px;line-height:1.5;color:var(--mut)}
.pe-primary{margin-top:6px;min-height:52px;padding:0 26px;border:0;border-radius:99px;background:var(--btn);color:var(--btnFg);font:600 15px var(--ui)}


/* ============ Mobile: dialogs become bottom sheets ============ */
@keyframes sheetUp{from{transform:translateY(100%)}to{transform:none}}
@media(max-width:800px),(max-height:500px){
 #connect{width:100%;max-width:none;margin:auto 0 0;border-radius:28px 28px 0 0;max-height:calc(100dvh - 40px);padding:22px 22px calc(24px + env(safe-area-inset-bottom))}
 #connect[open]{animation:sheetUp .45s cubic-bezier(.32,.72,0,1) both}
}

/* Mobile: sentence chip editors open as bottom sheets, so the sentence stays visible above. */
@media(max-width:800px),(max-height:500px){
 [data-stage] .menu-popup{top:auto!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;max-width:none!important;max-height:72dvh!important;border-radius:28px 28px 0 0!important;padding:10px 16px calc(20px + env(safe-area-inset-bottom))!important;z-index:80!important;transform-origin:bottom center!important}
 [data-stage] .menu-popup:before{content:'';display:block;width:40px;height:5px;margin:0 auto 12px;border-radius:99px;background:var(--faint)}
 [data-stage] .menu-popup[style*="pointer-events: auto"]{transform:none!important;box-shadow:0 0 0 100vmax rgba(10,11,13,.32),0 -20px 60px -20px rgba(0,0,0,.4)!important}
 [data-stage] .menu-popup[style*="pointer-events: none"]{transform:translateY(48px)!important}
}
@media(max-width:800px),(max-height:500px){[data-stage]:has(.menu-popup[style*="pointer-events: auto"])>div.app-dock:last-child{transform:translate(-50%,160px)!important;opacity:0!important;pointer-events:none}}

/* ============ Interface polish (better-typography, -ui, -accessibility) ============ */
/* Typography: smoothing once at the root, balanced headings, no orphans in descriptions. */
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-size-adjust:100%}
:is(h1,h2,h3,.pe-title,.fund-head h1,.receipt-screen h1,#connect h2,.sentence-heading){text-wrap:balance}
:is(p,.pe-copy,.fund-head p,.receipt-description,.acc-empty,.connect-note,.fund-step-text small,.outcome-explanation p){text-wrap:pretty}
a{text-decoration-thickness:from-font;text-underline-position:from-font;text-decoration-skip-ink:auto}
/* Values that update in place keep their width. */
:is(.dock-cta,.deposit-display,.review-rows,.receipt-facts,.pf-stats,.ts-facts,.outcome-value,.acc-tokens,.fund-available,.sentence-copy,.sentence-scenarios){font-variant-numeric:tabular-nums}
/* Long hashes, addresses and IDs never escape their container. */
:is(.receipt-facts,.review-contracts,.acc-empty,.fund-error,.acc-error){overflow-wrap:break-word}
/* iOS zooms the page when focused text is under 16px. */
@media(max-width:800px),(max-height:500px){.fund-trouble input,.acc-row select,.connect-subaccount select,.wallet-panel select{font-size:16px}}

/* UI: a 1px neutral ring keeps images crisp on any surface. Pure black in light, pure white in dark. */
img{outline:1px solid oklch(0 0 0 / .1);outline-offset:-1px}
.isl img,[data-stage][data-dark=true] img{outline-color:oklch(1 0 0 / .1)}

/* Accessibility: the amount field draws no outline of its own, so its card carries the focus ring. */
.fund-card:has(input:focus-visible){outline:3px solid var(--ink);outline-offset:4px}
.custom-deposit>div:has(input:focus-visible){outline:3px solid var(--ink);outline-offset:4px}
.custom-deposit input:focus-visible{outline:none}
/* Forced colors: rings use the system highlight. */
@media(forced-colors:active){:focus-visible{outline-color:Highlight!important}}
/* Touch: the 34px island controls reach 44px without growing visually. Decorative layers never take clicks. */
@media(pointer:coarse){:where(.isl-add,.isl-more,.isl-connect,.isl-avatar){position:relative}:where(.isl-add,.isl-more,.isl-connect,.isl-avatar)::after{content:'';position:absolute;inset:-5px -3px}}
.dock-highlight,.pe-art,.page-ticker-dot{pointer-events:none}
/* Reduced motion keeps loading feedback; everything else is already static. */
@media(prefers-reduced-motion:reduce){.connect-spinner,.isl-spin{animation:connectSpin 1.6s linear infinite!important}.fund-steps li[data-state=active] .fund-step-icon{animation:connectSpin 2.2s linear infinite!important}}
/* Skip link: first focusable element, visible only on focus. */
.skip-link{position:fixed;top:12px;left:12px;z-index:100;padding:10px 16px;border-radius:99px;background:var(--ink);color:var(--card);font:600 14px var(--ui);text-decoration:none;translate:0 -200%}
.skip-link:focus-visible{translate:none;outline:3px solid var(--ink);outline-offset:3px}
[data-stage] .page-content:focus{outline:none}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* Film grain: a fixed noise layer over the page. Multiply darkens specks on light paper, screen lifts them on dark. */
body::after{content:"";position:fixed;inset:0;z-index:2147483646;pointer-events:none;opacity:var(--grainOp,.07);mix-blend-mode:var(--grainBlend,multiply);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:180px}
@media print{body::after{display:none}}
/* Distance from today's price, inside the price pill. */
.chip-move{align-self:center;align-items:center;margin:0 .05em 0 .12em;padding:.32em .55em;border-radius:999px;background:color-mix(in oklch,var(--card) 62%,transparent);font:600 .34em/1 var(--ui);letter-spacing:0;font-variant-numeric:tabular-nums;white-space:nowrap}
/* Receipt confetti sits above everything and never takes input. */
.fx-confetti{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:2147483645}
/* Price-drag cursor: a dot that carries the live move from today's price. */
html.fx-dragging,html.fx-dragging *{cursor:none!important}
.fx-cursor{position:fixed;left:0;top:0;z-index:2147483647;pointer-events:none;display:flex;align-items:center;gap:8px;opacity:0;scale:.6;transition:opacity .15s ease-out,scale .3s var(--spring,ease-out)}
.fx-cursor.on{opacity:1;scale:1}
.fx-cursor-dot{width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;background:var(--ink);box-shadow:0 0 0 4px color-mix(in oklch,var(--card) 70%,transparent)}
.fx-cursor-label{margin-top:-9px;transform:translateY(-22px);padding:6px 10px;border-radius:999px;background:var(--ink);color:var(--card);font:600 13px/1 var(--ui);font-variant-numeric:tabular-nums;white-space:nowrap;box-shadow:0 10px 24px -10px #0006}
.fx-cursor[data-tone=up] .fx-cursor-label{background:var(--good);color:#fff}
.fx-cursor[data-tone=down] .fx-cursor-label{background:var(--bad);color:#fff}
@media (pointer:coarse){.fx-cursor-dot{opacity:0}.fx-cursor-label{transform:translateY(-56px)}}
/* Countdown to the next maker quote on the testnet review button. */
.quote-ring{position:relative;width:32px;height:32px;flex:none;align-items:center;justify-content:center}
.quote-ring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.quote-ring circle{fill:none;stroke:currentColor;stroke-width:3}
.quote-ring circle:first-child{opacity:.22}
.quote-ring [data-ring-arc]{stroke-linecap:round;stroke-dasharray:94.25;transition:stroke-dashoffset .25s linear}
.quote-ring [data-ring-s]{font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
.quote-ring.refreshing svg{animation:connectSpin .8s linear infinite}
.quote-ring.refreshing [data-ring-arc]{stroke-dashoffset:70!important}
@media(prefers-reduced-motion:reduce){.quote-ring [data-ring-arc]{transition:none}.quote-ring.refreshing svg{animation:none}}

/* ============ Invite & earn, leaderboard (public/referral-pages.js) ============ */
.acc-invite-link{display:flex;align-items:center;gap:8px;margin-top:8px;padding:5px 5px 5px 14px;border-radius:16px;background:var(--p-soft)}
.acc-invite-url{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 13px ui-monospace,Menlo,monospace;color:var(--p-fg)}
/* Concentric with the link field: its 16px radius minus the 5px inset. */
.acc-invite-link .acc-icon{border-radius:11px;background:var(--p-primary);color:var(--p-primaryFg)}.acc-invite-link .acc-icon:disabled{opacity:.4;cursor:default}
.acc-invite-links{display:flex;flex-direction:column;margin-top:6px}
:where(.isl-root) .acc-invite-links button{display:flex;align-items:center;gap:10px;min-height:40px;font-size:13px;color:var(--p-fg);text-align:start;border-radius:12px}
.acc-invite-links button span:not(.ms){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acc-invite-links .ms{font-size:18px;color:var(--p-mut)}
@media(hover:hover){.acc-invite-links button:hover span:not(.ms){text-decoration:underline;text-underline-offset:3px}}

[data-stage] :is(.referral-screen,.leaderboard-screen){position:relative;min-height:100dvh;display:flex;justify-content:center;padding:104px 24px 150px;box-sizing:border-box}
:is(.ref,.lb){width:min(640px,100%);display:flex;flex-direction:column;gap:14px}
.ref-head{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;margin-bottom:10px}
.ref-kicker{display:inline-flex;align-items:center;gap:6px;padding:6px 12px 6px 10px;border-radius:99px;background:var(--card);font:600 13px var(--ui);color:var(--ink)}
.ref-kicker .ms{font-size:17px}
.ref-head h1{margin:0;font:var(--dw,600) clamp(32px,4.4vw,48px)/1.05 var(--disp);letter-spacing:-.035em;color:var(--ink)}
.ref-head p{margin:0;max-width:480px;font-size:15px;line-height:1.5;color:var(--mut)}
.ref-card{border-radius:28px;background:var(--card);color:var(--ink)}
.ref-link-card{display:flex;flex-direction:column;gap:10px;padding:20px}
.ref-label{font-size:13px;color:var(--mut)}
.ref-link{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 18px;border-radius:20px;background:var(--bg)}
.ref-url{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 15px ui-monospace,Menlo,monospace}
:is(.ref-copy,.ref-share,.ref-name-row button,.ref-board-link,.lb-tabs button){border:0;font:600 14px var(--ui);cursor:pointer;transition:scale .15s ease-out,background-color .2s,color .3s}
:is(.ref-copy,.ref-share,.ref-name-row button,.ref-board-link):active{scale:.96}
/* Concentric with .ref-link: its 20px radius minus the 6px inset. */
.ref-copy{display:flex;align-items:center;gap:6px;height:44px;padding:0 18px 0 14px;border-radius:14px;background:var(--btn);color:var(--btnFg)}
.ref-copy .ms,.ref-share .ms{font-size:18px}
.ref-share{display:flex;align-items:center;justify-content:center;gap:8px;height:48px;border-radius:99px;background:var(--bg);color:var(--ink)}
.ref-joined{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;color:var(--mut)}.ref-joined .ms{font-size:16px;color:var(--bad)}
.ref-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ref-stat{display:flex;flex-direction:column;gap:4px;padding:18px 20px;border-radius:24px;min-width:0}
.ref-stat>span{font-size:13px;color:var(--mut)}
.ref-stat strong{font:var(--dw,600) 30px/1.1 var(--disp);letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.ref-stat small{font-size:12px;color:var(--mut)}
.ref-section{padding:18px 20px}
.ref-section-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:6px}
.ref-section-head h2{margin:0;font:600 16px var(--ui)}.ref-section-head>span{font-size:13px;color:var(--mut)}
.ref-friends,.ref-how,.lb-list{list-style:none;margin:0;padding:0}
.ref-friends li,.lb-list li,.lb-you{display:flex;align-items:center;gap:12px;padding:10px 0}
.ref-friends li+li,.lb-list li+li{border-top:1px solid var(--line)}
.ref-orb{width:36px;height:36px;border-radius:50%;flex:none}
.ref-friend{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.ref-friend strong{font:600 15px var(--ui);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ref-friend small{font-size:12.5px;color:var(--mut)}
.ref-earned{font:600 15px var(--ui);color:var(--good);font-variant-numeric:tabular-nums}
.ref-empty{margin:0;padding:6px 0 2px;font-size:14px;line-height:1.5;color:var(--mut)}
.ref-how li{display:flex;gap:14px;padding:8px 0}
.ref-how li>span:last-child{display:flex;flex-direction:column;gap:2px}.ref-how strong{font:600 15px var(--ui)}.ref-how small{font-size:13px;line-height:1.45;color:var(--mut)}
.ref-step{width:28px;height:28px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;background:var(--mint);color:#121317;font:700 13px var(--ui)}
.ref-error{margin:0;font-size:13px;color:var(--bad);text-align:center}.ref-error:empty{display:none}
.ref-board-link{display:flex;align-items:center;gap:10px;height:56px;padding:0 18px;border-radius:99px;background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.ref-board-link .ms:last-child{margin-left:auto}.ref-board-link .ms{font-size:20px}
@media(hover:hover){.ref-board-link:hover{background:var(--card)}}
/* One pill slides between the tabs, like the other segmented controls. */
.lb-tabs{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:5px;border-radius:99px;background:var(--card)}
.lb-tabs::before{content:'';position:absolute;top:5px;bottom:5px;left:5px;width:calc((100% - 10px) / 4);border-radius:99px;background:var(--btn);box-shadow:var(--t-raisedInk);transition:transform .5s var(--spring)}
.lb-tabs:has(button:nth-child(2)[aria-selected=true])::before{transform:translateX(100%)}
.lb-tabs:has(button:nth-child(3)[aria-selected=true])::before{transform:translateX(200%)}
.lb-tabs:has(button:nth-child(4)[aria-selected=true])::before{transform:translateX(300%)}
.lb-tabs button{position:relative;min-width:0;height:42px;padding:0 4px;border-radius:99px;background:transparent;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* The time frame: a quieter row of chips under the metric tabs; greyed out for live unrealized P&L. */
.lb-periods{display:flex;justify-content:center;gap:6px;transition:opacity .25s}
.lb-periods[aria-disabled=true]{opacity:.4}
.lb-periods button{min-width:56px;height:32px;padding:0 12px;border:1px solid var(--line);border-radius:99px;background:transparent;color:var(--mut);font:600 13px var(--ui);font-variant-numeric:tabular-nums;cursor:pointer;transition:scale .15s ease-out,background-color .2s,color .2s,border-color .2s}
.lb-periods button[aria-checked=true]{border-color:transparent;background:var(--card);color:var(--ink)}
.lb-periods button[aria-disabled=true]{cursor:default}
.lb-periods button:not([aria-disabled=true]):active{scale:.96}
.lb-tabs button[aria-selected=true]{color:var(--btnFg)}
.lb-you{padding:14px 20px}
.lb-you-rank{font:var(--dw,600) 28px var(--disp);letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.lb-list{padding:6px 20px}
.lb-rank{width:28px;height:28px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;font:600 13px var(--ui);color:var(--mut);font-variant-numeric:tabular-nums}
.lb-list li[data-top=true] .lb-rank{background:var(--amb,oklch(0.9 0.08 85));color:#121317}
.lb-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 15px var(--ui)}
.lb-value{font:600 15px var(--ui);font-variant-numeric:tabular-nums}
.lb-list li[data-you=true]{margin:0 -12px;padding-inline:12px;border-radius:16px;background:color-mix(in oklch,var(--mint) 35%,transparent)}
.lb-list li[data-you=true]+li,.lb-list li:has(+li[data-you=true]){border-color:transparent}
.lb-empty{padding:22px 20px;text-align:center}
.lb-foot{margin:0;font-size:12.5px;line-height:1.5;color:var(--mut);text-align:center}
@media(max-width:800px),(max-height:500px){[data-stage] :is(.referral-screen,.leaderboard-screen){padding:76px 16px 128px}.ref-stats{grid-template-columns:1fr}.ref-stat{flex-direction:row;flex-wrap:wrap;align-items:baseline;column-gap:10px}.ref-stat strong{order:-1;font-size:26px}.ref-stat small{flex-basis:100%}.ref-copy span:not(.ms){display:none}.ref-copy{padding:0 14px}}
@media(prefers-reduced-motion:reduce){:is(.ref-copy,.ref-share,.ref-name-row button,.ref-board-link):active{scale:1}}
/* Position page: the orders behind a live position. Settled rows open their Sepolia transaction. */
.position-history{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px;padding-top:14px;border-top:1px solid var(--line)}
.ph-head{display:flex;justify-content:space-between;align-items:baseline;font-size:14px;color:var(--mut)}.ph-head span:last-child{font-size:12px}
.ph-list{display:flex;flex-direction:column;min-height:0;overflow:auto;margin:0 -12px;padding:0 0 2px}
.ph-row{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;padding:10px 12px;border:0;border-radius:18px;background:none;color:var(--ink);text-align:start;font-size:14px;font-variant-numeric:tabular-nums;animation:fb .5s cubic-bezier(.2,.8,.2,1) backwards;transition:background .2s}
.ph-row:hover{background:var(--soft2)}
.ph-dot{width:8px;height:8px;border-radius:50%}
.ph-main,.ph-side{display:flex;flex-direction:column;gap:2px;min-width:0}.ph-side{text-align:end}
.ph-main>span:first-child,.ph-side>span:first-child{font-weight:600}
.ph-main>span:last-child,.ph-side>span:last-child{font-size:12px;color:var(--mut)}
@keyframes ph-pulse{50%{opacity:.35}}
@media(max-width:800px),(max-height:500px){.position-history{flex:none}.ph-list{overflow:visible}}

/* ============ Portfolio rows: labelled numbers, actions on the right ============ */
/* Portfolio header: cash, invested and open P&L as one row of pills; tab counts ride inside the filter. */
.pf-pills{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
[data-stage] .pf-pills>.pf-pill{display:inline-flex;align-items:baseline;gap:6px;margin:0!important;padding:10px 16px;border-radius:999px;background:var(--card);font-size:15px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.pf-pill small{font-size:13px;font-weight:500;color:var(--mut)}
.pf-pill b{font-weight:600;color:var(--ink)}
/* The percentage reads as a footnote to the P&L beside it: smaller, lighter, no brackets. */
.pf-pct{margin-left:4px;font-style:normal;font-size:.8em;font-weight:500;opacity:.7}
.pf-pill .pf-pct{margin-left:-2px;font-size:12px}
.pf-pct:empty{display:none}
/* Language: a quiet code in the top-right corner, a short list on click. */
.lang{position:fixed;top:18px;right:20px;z-index:72;font:500 12px var(--ui)}
.lang-btn{padding:6px 10px;border:0;border-radius:99px;background:transparent;color:var(--mut);font:inherit;letter-spacing:.04em;cursor:pointer;transition:color .2s,background .2s}
.lang-btn:hover,.lang-btn[aria-expanded="true"]{color:var(--ink);background:var(--card)}
.lang-btn:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.lang-menu{position:absolute;top:calc(100% + 6px);right:0;margin:0;padding:6px;list-style:none;min-width:168px;max-height:min(420px,calc(100dvh - 80px));overflow-y:auto;border-radius:18px;background:var(--card);box-shadow:0 24px 48px -24px rgba(20,20,40,.35),0 0 0 1px var(--line);font-size:14px}
.lang-menu li{padding:9px 12px;border-radius:12px;color:var(--ink);cursor:pointer;outline:0}
.lang-menu li:hover,.lang-menu li:focus{background:var(--bg)}
.lang-menu li[aria-selected="true"]{font-weight:600}
/* Opening the list: the panel unfolds from the corner and the languages follow one after another. */
.lang-menu.is-in{animation:lang-pop .32s cubic-bezier(.2,.8,.2,1) both;transform-origin:top right}
.lang-menu.is-in li{animation:lang-item .38s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i) * 22ms + 40ms)}
@keyframes lang-pop{from{opacity:0;transform:translateY(-4px) scale(.96)}}
@keyframes lang-item{from{opacity:0;transform:translateY(-6px);filter:blur(2px)}}
@media(prefers-reduced-motion:reduce){.lang-menu.is-in,.lang-menu.is-in li{animation-duration:.01ms;animation-delay:0s}}
.seg-count{display:inline-grid;place-items:center;min-width:20px;height:20px;box-sizing:border-box;margin-left:6px;padding:0 6px;border-radius:99px;background:color-mix(in srgb,currentColor 12%,transparent);font-size:11.5px;font-weight:600;line-height:1;vertical-align:1px;font-variant-numeric:tabular-nums}
.pf-row{cursor:pointer;display:grid;grid-template-columns:minmax(240px,1fr) auto auto;align-items:center;gap:28px;padding:18px 18px 18px 26px;border-radius:30px;background:var(--card);animation:fb .55s cubic-bezier(.2,.8,.2,1) backwards;transition:box-shadow .3s}
.pf-row:hover{box-shadow:0 20px 40px -26px rgba(0,0,0,.35)}
.pf-main{display:flex;flex-direction:column;gap:4px;min-width:0;cursor:pointer;border-radius:16px}
.pf-title{font-size:17px;font-weight:600;overflow-wrap:anywhere;text-wrap:balance}
.pf-sub{font-size:13px;color:var(--mut)}
.pf-stats{display:grid;grid-template-columns:repeat(4,minmax(88px,auto));gap:4px 22px;margin:0}
.pf-stat{display:flex;flex-direction:column;gap:3px;min-width:0}
.pf-stat dt{font-size:12px;color:var(--mut)}
.pf-stat dd{margin:0;font-size:15px;font-weight:600;white-space:nowrap}
.pf-actions{display:flex;gap:8px}
.pf-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:92px;padding:0 16px 0 12px;border:0;border-radius:999px;background:var(--bg);color:var(--ink);font-size:14px;font-weight:600;transition:background .2s,transform .2s var(--spring)}
.pf-actions button .outcome-icon{font-size:18px}
.pf-actions button:hover{background:var(--line)}
.pf-actions button:active{transform:scale(.96)}
.pf-row[data-kind="3"]{grid-template-columns:minmax(0,1fr) auto}
@media(max-width:1000px) and (min-width:801px) and (min-height:501px){.pf-stats{grid-template-columns:repeat(2,minmax(88px,auto))}}
@media(max-width:800px),(max-height:500px){
 .pf-row{grid-template-columns:1fr;gap:16px;padding:18px 20px}
 .pf-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .pf-actions button{flex:1}
}

/* ============ Close / Add sheet ============ */
.trade-sheet{width:min(440px,calc(100% - 32px));padding:28px;border-radius:36px;max-height:calc(100dvh - 40px);scrollbar-width:none}
.trade-sheet[open]{animation:accountIn .55s var(--spring) both}
.trade-sheet header{gap:20px;margin-bottom:6px}
.trade-sheet h2{font-size:30px;font-weight:600}
.trade-sheet .ts-dismiss{width:40px;height:40px;display:flex;align-items:center;justify-content:center;padding:0;flex:none}
.ts-subject{margin:0 0 18px;color:var(--mut)}
.ts-sizes{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:5px;border-radius:999px;background:var(--bg)}
/* Amount: type any size; the presets below fill it in. */
.ts-amount{display:flex;align-items:baseline;gap:10px;padding:14px 20px;border-radius:24px;background:var(--bg);cursor:text;transition:box-shadow .2s}
.ts-amount:focus-within{box-shadow:0 0 0 2px var(--ink)}
.ts-amount input{flex:1;min-width:0;padding:0;border:0;background:transparent;color:var(--ink);font-family:var(--disp);font-size:34px;font-weight:600;font-variant-numeric:tabular-nums;outline:none}
.ts-amount input[aria-invalid=true]{color:var(--bad)}
.ts-amount-unit{font-size:15px;font-weight:600;color:var(--mut)}
.ts-amount-hint{margin:8px 4px 12px;font-size:13px;color:var(--mut)}
.ts-amount-hint.is-bad{color:var(--bad)}
.trade-sheet .ts-sizes button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:50px;font-size:15px;font-weight:600;background:transparent;transition:background .25s,color .25s}
.trade-sheet .ts-sizes button small{font-size:11px;font-weight:500;opacity:.65;font-variant-numeric:tabular-nums}
.trade-sheet .ts-sizes button[aria-checked=true]{background:var(--btn);color:var(--btnFg)}
.trade-sheet .ts-sizes button:disabled{opacity:.5;cursor:default}
.ts-facts{margin:18px 0 0;padding:4px 18px;border-radius:24px;background:var(--bg)}
.ts-facts>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.ts-facts>div:last-child{border-bottom:0}
.ts-facts dt{font-size:14px;color:var(--mut)}
.ts-facts dd{margin:0;font-size:15px;font-weight:600;text-align:end}
.trade-sheet .ts-confirm{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:58px;margin-top:18px;background:var(--btn);color:var(--btnFg);font-size:16px;font-weight:600}
.trade-sheet .ts-confirm[aria-disabled=true]{background:var(--dis);color:var(--mut);cursor:progress}
.trade-sheet .ts-note{margin:12px 0 0;font-size:13px;color:var(--mut);text-align:center}
.trade-sheet .err-chip{margin:14px 0 0}
/* Filled: the sheet becomes the receipt, same mark as the open-position receipt. */
.ts-done{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:6px}
.ts-done-mark{display:flex;align-items:center;justify-content:center;width:64px;height:64px;margin-bottom:14px;border-radius:50%;background:var(--mint);animation:popIn .5s var(--spring) both}
.ts-done-mark .outcome-icon{font-size:32px}
.ts-done h2{margin:0}
.ts-done .ts-subject{margin:4px 0 0}
.ts-result{margin:18px 0 0;font-family:var(--disp);font-size:44px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums}
.ts-result-label{margin:6px 0 0;font-size:14px;color:var(--mut)}
.trade-sheet.is-pop .ts-done-mark{width:48px;height:48px;margin-bottom:10px}
.trade-sheet.is-pop .ts-done-mark .outcome-icon{font-size:24px}
.trade-sheet.is-pop .ts-result{margin-top:12px;font-size:32px}
@media(prefers-reduced-motion:reduce){.ts-done-mark{animation:none}}
@media(prefers-reduced-motion:reduce){.trade-sheet[open]{animation:none}}
@media(max-width:800px),(max-height:500px){
 .trade-sheet{width:100%;max-width:none;margin:auto 0 0;border-radius:28px 28px 0 0;padding:22px 22px calc(24px + env(safe-area-inset-bottom))}
 .trade-sheet[open]{animation:sheetUp .45s cubic-bezier(.32,.72,0,1) both}
}
.trade-sheet .quote-ring{display:flex}
/* Add from a portfolio row: a small popover pinned to the button, with the page still visible behind it. */
@media(min-width:801px) and (min-height:501px){
 .trade-sheet.is-pop{position:fixed;inset:auto;margin:0;width:340px;padding:18px;border-radius:26px;box-shadow:0 24px 60px -18px rgba(0,0,0,.4),0 0 0 1px var(--line)}
 .trade-sheet.is-pop[open]{animation:popIn .32s var(--spring) both}
 .trade-sheet.is-pop::backdrop{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
 .trade-sheet.is-pop header{margin-bottom:2px}
 .trade-sheet.is-pop h2{font-size:20px}
 .trade-sheet.is-pop .ts-dismiss{width:32px;height:32px}
 .trade-sheet.is-pop .ts-subject{margin-bottom:12px;font-size:13px}
 .trade-sheet.is-pop .ts-sizes button{min-height:44px;font-size:14px}
 .trade-sheet.is-pop .ts-amount{padding:10px 16px;border-radius:18px}
 .trade-sheet.is-pop .ts-amount input{font-size:26px}
 .trade-sheet.is-pop .ts-amount-hint{margin:6px 4px 10px;font-size:12px}
 .trade-sheet.is-pop .ts-facts{margin-top:12px;padding:2px 14px;border-radius:18px}
 .trade-sheet.is-pop .ts-facts>div{padding:9px 0}
 .trade-sheet.is-pop .ts-facts dt,.trade-sheet.is-pop .ts-facts dd{font-size:13px}
 .trade-sheet.is-pop .ts-confirm{min-height:48px;margin-top:12px;font-size:15px}
 .trade-sheet.is-pop .ts-note{margin-top:8px;font-size:12px}
}
@keyframes popIn{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.trade-sheet.is-pop[open]{animation:none}}

/* Invite screen (#invite): what a ?ref= link opens. A focused page, so the dock steps aside. */
[data-stage] :is(.invite-screen,.profile-screen,.setup-screen,.gate-screen){position:relative;min-height:100dvh;display:flex;justify-content:center;padding:104px 24px 150px;box-sizing:border-box}
[data-stage] :is(.invite-screen,.setup-screen,.gate-screen){padding-bottom:40px}
/* Desktop: the invite and the beta gate sit in the middle of the screen. */
@media(min-width:801px) and (min-height:501px){[data-stage] :is(.invite-screen,.gate-screen){align-items:center;padding-top:40px}}
.gate .inv-actions{margin-top:0}
[data-stage]:is([data-route="1t"],[data-route="1v"],[data-route="1w"])>.app-dock{opacity:0!important;pointer-events:none;transform:translate(-50%,24px)!important}
.inv{width:min(420px,100%);display:flex;flex-direction:column;gap:28px}
.inv-hero{display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center;margin-top:24px}
.inv-orb-wrap{position:relative;width:112px;height:112px}
.inv-orb{display:block;width:112px;height:112px;border-radius:50%;box-shadow:0 18px 40px -18px #12131755}
.inv-badge{position:absolute;right:-6px;bottom:-2px;width:40px;height:40px;border-radius:50%;background:var(--ink);color:var(--card);display:flex;align-items:center;justify-content:center;border:4px solid var(--bg);box-sizing:border-box}
.inv-badge .ms{font-size:20px}
.inv-kicker{font:500 14px var(--ui);color:var(--mut)}
.inv-hero h1{margin:0;font:700 38px/1.05 var(--disp);letter-spacing:-.035em;color:var(--ink);text-wrap:balance}
.inv-card{list-style:none;margin:0;padding:8px 20px;border-radius:28px;background:var(--card);color:var(--ink)}
.inv-card li{display:flex;align-items:center;gap:14px;padding:14px 0;font-size:15px;line-height:1.35}
.inv-card li+li{border-top:1px solid var(--line)}
.inv-icon{width:36px;height:36px;border-radius:12px;flex:none;display:flex;align-items:center;justify-content:center;color:#121317}
.inv-icon .ms{font-size:20px}.inv-icon-mint{background:var(--mint)}.inv-icon-lil{background:var(--lil)}
.inv-actions{margin-top:auto;display:flex;flex-direction:column;gap:10px}
.inv-accept,.inv-skip{border:0;border-radius:99px;font:600 17px var(--ui);cursor:pointer;transition:scale .15s ease-out}
.inv-accept{height:60px;background:var(--btn);color:var(--btnFg)}
.inv-skip{height:48px;background:transparent;color:var(--mut);font-weight:500;font-size:14px}
:is(.inv-accept,.inv-skip):active{scale:.97}

/* Account setup (#setup): after accepting an invite and logging in, a name and photo, then Add money. */
.setup-top{display:flex;justify-content:center;min-height:20px}
.setup-invite{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--mut)}
.setup-mini{width:20px;height:20px;border-radius:50%;flex:none}
.setup-step{flex:1;display:flex;flex-direction:column;gap:28px;margin:0}
.setup-step .inv-hero{margin-top:0}
.setup-name{display:flex;flex-direction:column;gap:8px}
.setup-name input{height:64px;padding:0 22px;border:0;border-radius:24px;background:var(--card);color:var(--ink);font:600 24px var(--disp);letter-spacing:-.02em;text-align:center;box-shadow:inset 0 0 0 2px var(--ink);outline:none}
.setup-name input::placeholder{color:var(--mut)}
.setup-name small{font-size:13px;color:var(--mut);text-align:center;text-wrap:balance}
/* Tapping a face picks a photo; the camera badge says so. */
.face-pick{display:block;cursor:pointer;border-radius:50%}
.face-pick:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:4px}
.face-pick[data-busy="true"]{pointer-events:none}
.face-pick[data-busy="true"]>span:first-child{animation:facePulse 1s ease-in-out infinite alternate}
@keyframes facePulse{to{opacity:.55}}
.face-alt{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:0;border-radius:99px;background:var(--card);color:var(--ink);font:500 13px var(--ui);cursor:pointer;transition:scale .15s ease-out}
.face-alt .ms{font-size:16px}.face-alt:active{scale:.96}

/* Profile (#profile): your public name and orb, opened from the account island. */
.prof{width:min(480px,100%);display:flex;flex-direction:column;gap:14px}
.prof-hero{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;margin-bottom:6px}
.prof-orb-wrap{position:relative}
.prof-orb{display:block;width:104px;height:104px;border-radius:50%;transition:background .3s ease}
.prof-shuffle{position:absolute;right:-4px;bottom:-4px;width:44px;height:44px;border-radius:50%;border:4px solid var(--bg);background:var(--ink);color:var(--card);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:scale .15s ease-out}
.prof-shuffle:active{scale:.9}.prof-shuffle .ms{font-size:18px}
.prof-name{display:flex;align-items:center;gap:4px;min-width:0;max-width:100%}
.prof-name h1{margin:0;font:700 36px/1.05 var(--disp);letter-spacing:-.035em;color:var(--ink);overflow-wrap:anywhere}
.prof-edit{width:44px;height:44px;flex:none;border:0;border-radius:50%;background:transparent;color:var(--mut);display:flex;align-items:center;justify-content:center;cursor:pointer}
.prof-edit .ms{font-size:20px}
@media(hover:hover){.prof-edit:hover{background:var(--card);color:var(--ink)}}
.prof-name-form{display:flex;flex-direction:column;gap:10px;width:min(340px,100%)}
.prof-name-form input{height:56px;padding:0 18px;border:0;border-radius:20px;background:var(--card);color:var(--ink);font:600 22px var(--disp);letter-spacing:-.02em;text-align:center;box-shadow:inset 0 0 0 2px var(--ink)}
.prof-name-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.prof-name-actions button{height:46px;border:0;border-radius:99px;background:var(--card);color:var(--ink);font:600 14px var(--ui);cursor:pointer}
.prof-name-actions .prof-save{background:var(--btn);color:var(--btnFg)}
.prof-joined{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--mut)}
.prof-mini-orb{width:18px;height:18px;border-radius:50%;flex:none}
.prof-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.prof-stat{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border-radius:22px;min-width:0}
.prof-stat>span{font-size:12px;color:var(--mut)}
.prof-stat strong{font:var(--dw,600) 24px/1.15 var(--disp);letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.prof-links{display:flex;flex-direction:column;padding:4px 20px}
.prof-links button{display:flex;align-items:center;gap:12px;min-height:56px;padding:0;border:0;background:transparent;color:var(--ink);font:500 15px var(--ui);text-align:start;cursor:pointer}
.prof-links button+button{border-top:1px solid var(--line)}
.prof-links button>span:first-child{flex:1}
.prof-links small{font-size:13px;color:var(--mut)}
.prof-share>span:first-child{display:flex;flex-direction:column;gap:2px;padding:10px 0}
.prof-share .pf-switch{flex:none}
.prof-share[aria-checked=true] .pf-switch{background:var(--ink)}
.prof-share[aria-checked=true] .pf-switch:after{transform:translateX(12px)}.prof-links .ms{font-size:20px;color:var(--mut)}
.prof-mono{font:500 13px ui-monospace,Menlo,monospace}

/* The island's header is your profile: name and orb, tap to open it. */
.acc-profile{display:flex;align-items:center;gap:12px;flex:1;min-width:0;margin-right:auto;padding:0;border:0;background:transparent;color:inherit;text-align:start;cursor:pointer}
.acc-profile .acc-id{margin-right:0}.acc-profile .acc-id strong,.acc-profile .acc-id span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acc-avatar{position:relative}
.acc-avatar-edit{position:absolute;right:-3px;bottom:-3px;width:20px;height:20px;border-radius:50%;background:var(--p-primary);color:var(--p-primaryFg);display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px var(--isl)}
.acc-avatar-edit .ms{font-size:12px}
.sheet .acc-avatar-edit{box-shadow:0 0 0 2px var(--card)}
@media(prefers-reduced-motion:reduce){.prof-orb,.prof-shuffle,.face-alt,:is(.inv-accept,.inv-skip){transition:none}.face-pick[data-busy="true"]>span:first-child{animation:none;opacity:.6}}

/* The portfolio filter is a four-tab segmented control. The mobile rule that folds 4-column grids
   into 2 is for stat grids; the filter keeps one row of quarters so the sliding pill lines up. */
[data-stage] .pf-filter.pf-filter{grid-template-columns:repeat(4,minmax(0,1fr))!important;max-width:100%;box-sizing:border-box}
@media(max-width:800px),(max-height:500px){[data-stage] .pf-filter.pf-filter{width:100%!important}}
@media(max-width:400px){[data-stage] .pf-filter>sc-for>div,[data-stage] .pf-filter>div:not(:first-child){font-size:13px!important;padding-left:2px!important;padding-right:2px!important;white-space:nowrap}}

/* ============ Review outcomes: one neutral tray, colour only in the icon chip ============ */
[data-stage] .review-scenarios,[data-stage] .earn-review-scenarios{gap:6px!important;padding:6px!important;border-radius:24px;background:var(--flb)}
.review-outcome{background:var(--card);border-radius:18px}
.review-outcome>summary,.invest-outcome{grid-template-columns:36px minmax(0,1fr) auto;padding:10px 14px 10px 10px}
.review-outcome>summary{padding-inline-end:36px}
.review-outcome .outcome-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;font-size:19px}
.review-outcome .outcome-value{font-size:15px}
/* The explanation sits right under its title, so it reads as that outcome's caption. */
.outcome-explanation{padding:0 14px 12px 58px;margin-top:-6px;line-height:1.4}
.outcome-explanation p{margin-bottom:4px}
@media(max-width:800px),(max-height:500px){.review-outcome>summary,.invest-outcome{grid-template-columns:32px minmax(0,1fr) auto;gap:10px;padding-left:8px}.review-outcome .outcome-icon{width:32px;height:32px;border-radius:11px;font-size:18px}.review-outcome .outcome-value{font-size:14px}.outcome-explanation{padding-left:50px}}

/* Share a trade (public/share.js): a quiet pill on trade pages, and a preview sheet with the card. */
[data-stage] .share-trade{margin-left:auto;flex:none;display:inline-flex;align-items:center;gap:7px;height:44px;padding:0 18px 0 15px;border:0;border-radius:99px;background:var(--card);color:var(--ink);font:600 14px var(--ui);cursor:pointer;transition:transform .35s var(--spring),scale .15s ease-out}
[data-stage] .share-trade .outcome-icon{font-size:19px}
@media(hover:hover){[data-stage] .share-trade:hover{transform:translateY(-1px)}}[data-stage] .share-trade:active{scale:.96}
[data-stage] .share-host{position:relative}[data-stage] .share-host>.share-trade{position:absolute;top:22px;right:22px;background:var(--bg)}
.share-sheet{width:min(720px,calc(100% - 32px))}
.share-preview{margin:14px 0 18px;border-radius:20px;overflow:hidden;aspect-ratio:16/9;background:var(--line);box-shadow:0 0 0 1px var(--ring)}
.share-preview img{display:block;width:100%;height:auto}
.share-skeleton{width:100%;height:100%;background:linear-gradient(90deg,var(--line),var(--bg),var(--line));background-size:200% 100%;animation:shimmer 1.2s linear infinite}
.share-actions{display:flex;gap:8px;min-height:52px}
.share-actions button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;border:0;border-radius:99px;background:var(--bg);color:var(--ink);font:600 15px var(--ui);cursor:pointer}
.share-actions .share-primary{flex:1.4;background:var(--btn);color:var(--btnFg)}.share-actions svg{width:17px;height:17px}
.share-actions .outcome-icon{font-size:19px}
.share-status{min-height:20px;margin:10px 0 0;font-size:13px;color:var(--mut);text-align:center}
@media(max-width:800px),(max-height:500px){[data-stage] .share-trade>span:last-child{display:none}[data-stage] .share-trade{width:44px;padding:0;justify-content:center}.share-actions button{font-size:14px}}
@media(prefers-reduced-motion:reduce){.share-skeleton{animation:none}}

/* ============ Mobile shell (≤800px) ============
   One layer, last in the file. Phones get no island: the account sits at the dock's right edge.
   The dock is always one row; with a primary action, tabs drop their labels and the action fills
   the space between them and the account. Motion is transform/opacity only, on iOS sheet curves. */
.dock-account{display:none}
@media(max-width:800px),(max-height:500px){
 :root{--m-ease:cubic-bezier(.32,.72,0,1);--m-top:calc(env(safe-area-inset-top) + 24px);--m-dock:60px;--m-dock-gap:max(12px,env(safe-area-inset-bottom));--m-bottom:calc(var(--m-dock-gap) + var(--m-dock) + 32px)}
 html{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 :is(button,a,summary,[role=button],[data-dock],[data-roll],[onClick],input,select){touch-action:manipulation}
 /* The film grain blends over every pixel on each scroll frame; phones skip it. */
 body::after{display:none}
 /* Toasts still drop in at the top; otherwise there is no island. */
 .isl-root .isl:not(:has(.isl-toast)){display:none}
 .isl-root{top:calc(env(safe-area-inset-top) + 8px)}

 /* Pages: edge to edge, clear of the status bar and the dock. */
 [data-stage] .page-content.page-content{padding:var(--m-top) 20px var(--m-bottom)!important;min-height:100dvh!important;box-sizing:border-box!important}
 [data-stage] .sentence-screen.page-content{justify-content:flex-end!important}

 /* Invest and Earn: the strategy and live price head the page; the sentence is the hero, near the thumb. */
 [data-stage] .sentence-screen .sentence-heading{margin-bottom:auto;justify-content:space-between;flex-wrap:wrap;row-gap:8px}
 [data-stage] .sentence-screen .page-ticker{margin-left:0}
 [data-stage] .sentence-copy.sentence-copy{margin-top:12px!important;font-size:clamp(28px,8.4vw,40px)!important;line-height:1.24!important;row-gap:.16em!important}
 [data-stage] .sentence-copy+div{flex-wrap:nowrap!important;gap:14px!important;align-items:center!important}
 [data-stage] .sentence-copy+div>div:first-child{flex:none;padding:12px 22px!important}
 [data-stage] .sentence-copy+div>div:last-child{flex:1;min-width:0;text-align:right;line-height:1.35}
 [data-stage] .sentence-copy+div>div:last-child b{display:block;font:600 22px/1.1 var(--disp);letter-spacing:-.02em}
 /* Dock */
 [data-stage]>div.app-dock:last-child{position:fixed!important;bottom:var(--m-dock-gap)!important;height:var(--m-dock)!important;max-width:calc(100vw - 24px)!important;border-radius:30px!important;overflow:hidden;contain:layout paint;display:flex!important;justify-content:center;transition:width .4s var(--m-ease),transform .5s var(--m-ease),opacity .3s ease!important}
 .dock-content{flex:none;height:var(--m-dock);padding:6px;gap:2px;align-items:center;box-sizing:border-box}
 .dock-content>div[style*="width:1px"],[data-stage] .dock-lb{display:none!important}
 [data-stage] .dock-item[data-dock]{width:66px!important;height:48px!important;border-radius:24px!important;flex-direction:column!important;gap:2px;transition:transform .25s var(--m-ease)!important}
 [data-stage] .dock-item[data-dock]:active{transform:scale(.92)!important}
 [data-stage] .dock-item>span:first-child{font-size:22px!important}
 [data-stage] .dock-item>span:last-child{position:static!important;transform:none!important;opacity:.92!important;padding:0!important;background:none!important;color:inherit!important;font-size:10.5px!important;font-weight:600!important;letter-spacing:.01em;line-height:1.1}
 .dock-highlight{border-radius:24px;transition:transform .45s var(--m-ease),width .45s var(--m-ease),opacity .2s!important}
 .dock-account{position:relative;z-index:1;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:66px;height:48px;padding:0;border:0;border-radius:24px;background:none;color:var(--dockFg);font:600 10.5px/1.1 var(--ui);letter-spacing:.01em;cursor:pointer;transition:transform .25s var(--m-ease)}
 .dock-account:active{transform:scale(.92)}
 .dock-account:focus-visible{outline:2px solid currentColor;outline-offset:-2px}
 .dock-account-face{width:22px;height:22px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;transition:width .45s var(--m-ease),height .45s var(--m-ease)}
 .dock-account-face .ms{font-size:22px}
 .dock-account.is-connected .dock-account-face{box-shadow:0 0 0 1.5px color-mix(in oklch,var(--dockFg) 18%,transparent)}
 .dock-account-label{max-width:62px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums;opacity:.92}
 /* With a primary action: icons only, the action takes the middle. */
 .dock-content>.dock-cta{display:none!important}
 .app-dock.has-cta .dock-content{width:calc(100vw - 24px)}
 .app-dock.has-cta .dock-item[data-dock],.app-dock.has-cta .dock-account{width:46px!important}
 .app-dock.has-cta .dock-item>span:last-child,.app-dock.has-cta .dock-account-label{display:none!important}
 .app-dock.has-cta .dock-account-face{width:34px;height:34px}
 .app-dock.has-cta .dock-content>.dock-cta{display:flex!important;flex:1 1 0!important;min-width:0;width:auto!important;max-width:none!important;height:48px;margin:0 2px!important;opacity:1!important;align-self:center;animation:mCtaIn .5s var(--m-ease) both}
 .app-dock.has-cta .dock-cta>div{width:100%!important;min-width:0;height:48px!important;padding:0 16px!important;justify-content:center;gap:7px!important;font-size:15px!important;overflow:hidden;transition:transform .2s var(--m-ease)}
 .app-dock.has-cta .dock-cta>div:active{transform:scale(.96)}
 .dock-cta>div>span:last-child{display:none!important}
 @keyframes mCtaIn{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}

 /* Position: a real back button, a readable title, stats in two columns. */
 [data-stage] .page-content [style*="width:44px;height:44px;border-radius:50%"]{flex:none!important}
 [data-stage][data-route="1l"] .page-content>div:first-child{align-items:flex-start!important}
 [data-stage][data-route="1l"] .page-content>div:first-child>span:nth-child(2){flex:1;min-width:0;font-size:26px!important;line-height:1.18!important;padding-top:6px}
 [data-stage][data-route="1l"] .page-content [style*="grid-template-columns:repeat(3"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 16px!important}
 /* Expiry preview: the verdict fits the width instead of breaking word by word. */
 [data-stage][data-route="1n"] .page-content>div:first-child>span[style*="calc(72px"]{font-size:52px!important;line-height:1.02!important;text-wrap:balance}
 [data-stage][data-route="1n"] .page-content>div:first-child>span[style*="calc(124px"]{font-size:64px!important}
 /* Invite & earn: three small stats side by side. */
 [data-stage] .ref-stats.ref-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 [data-stage] .ref-stats .ref-stat{flex-direction:column;align-items:flex-start;padding:14px;border-radius:22px;gap:2px}
 [data-stage] .ref-stats .ref-stat strong{order:-1;font-size:24px}
 [data-stage] .ref-stats .ref-stat>span{font-size:12px;line-height:1.25}
 [data-stage] .ref-stats .ref-stat small{display:none}
 /* Sheets dim the page; a live blur under a fading scrim drops frames on phones. */
 .sheet-scrim{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(10,11,13,.42)}
 dialog::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(10,11,13,.42)!important}
 .sheet{will-change:transform}
 /* Sentence chip editors: a real bottom sheet that slides fully in and out. */
 [data-stage] .menu-popup{transition:transform .5s var(--m-ease),opacity .25s ease!important}
 [data-stage] .menu-popup[style*="pointer-events: none"]{transform:translateY(105%)!important}
 /* The sentence lifts clear of an open editor, like content avoiding the keyboard.
    Padding, not transform: a transformed ancestor would re-anchor the fixed sheet inside the sentence. */
 [data-stage] .sentence-screen.page-content{transition:padding-bottom .5s var(--m-ease)}
 [data-stage] .sentence-screen.page-content:has(.menu-popup[style*="pointer-events: auto"]){padding-bottom:min(340px,42dvh)!important}
 [data-stage] .sentence-copy+div{transition:opacity .25s ease}
 [data-stage] .sentence-screen:has(.menu-popup[style*="pointer-events: auto"]) .sentence-copy+div{opacity:0}
}
@media(max-width:360px){.app-dock.has-cta .dock-item[data-dock],.app-dock.has-cta .dock-account{width:42px!important}.app-dock.has-cta .dock-cta>div{padding:0 12px!important;font-size:14px!important}}
@media(max-width:800px) and (prefers-reduced-motion:reduce),(max-height:500px) and (prefers-reduced-motion:reduce){.app-dock.has-cta .dock-content>.dock-cta{animation:none}}

/* Review rows waiting on a quote: the value is a shimmering bar the same height as the text. */
.review-rows [data-skel="1"]{display:block;width:88px;height:14px;border-radius:7px;background:linear-gradient(90deg,var(--line),var(--dis),var(--line));background-size:200% 100%;animation:shimmer 1.3s linear infinite}
.review-rows sc-for>div:nth-child(odd) [data-skel="1"]{width:64px}
@media(prefers-reduced-motion:reduce){.review-rows [data-skel="1"]{animation:none}}

/* Price chart under the Invest and Earn sentences. Desktop: a toggle beside the price shows or hides it.
   Phones: a one-line peek under the sentence opens the chart in a sheet. */
.chart-icon,.pc-grip{font-family:'Material Symbols Rounded';font-weight:300;font-style:normal;line-height:1;letter-spacing:0;text-transform:none;white-space:nowrap;font-feature-settings:'liga'}
[data-stage] .sentence-heading{width:100%;max-width:1040px}
[data-stage] .sentence-heading>span:first-child{box-sizing:border-box;height:28px;display:inline-flex;align-items:center;padding:0 12px!important;line-height:1}
.page-ticker{box-sizing:border-box;height:28px;padding:0 11px 0 10px;cursor:pointer;transition:background .2s}
.page-ticker:hover{background:var(--soft2)}
.chart-toggle{margin-left:auto;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px 0 9px;border:0;border-radius:99px;background:transparent;color:var(--mut);font:500 12.5px var(--ui);transition:background .2s,color .2s}
.chart-toggle .chart-icon{font-size:17px}
.chart-toggle:hover,.chart-toggle[aria-pressed=true]{background:var(--card);color:var(--ink)}
.sentence-chart{display:grid;grid-template-rows:1fr;width:100%;max-width:1040px;transition:grid-template-rows .55s cubic-bezier(.32,.72,0,1),opacity .35s ease,transform .55s cubic-bezier(.32,.72,0,1),filter .35s ease}
.sentence-chart-inner{min-height:0;overflow:hidden;padding:0 2px 8px}
.chart-off .sentence-chart{grid-template-rows:0fr;opacity:0;transform:translateY(10px);filter:blur(6px);pointer-events:none}
.chart-off .sentence-chart-inner{visibility:hidden;transition:visibility 0s .55s}
.sc-head{display:flex;justify-content:flex-end;padding-top:10px;margin-bottom:6px}
.chart-ranges{display:inline-flex;gap:2px;padding:3px;border-radius:99px;background:var(--soft2)}
.chart-ranges button{height:26px;padding:0 11px;border:0;border-radius:99px;background:transparent;color:var(--mut);font:500 12px var(--ui);transition:background .2s,color .2s}
.chart-ranges button[aria-pressed=true]{background:var(--card);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.sc-plot{height:clamp(150px,24dvh,230px)}
.price-chart{position:relative;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.price-chart svg{display:block;width:100%;height:100%;overflow:visible}
.pc-line{fill:none;stroke:var(--ink);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.pc-fill-a{stop-color:var(--ink);stop-opacity:.08}.pc-fill-b{stop-color:var(--ink);stop-opacity:0}
.pc-future{fill:var(--ink);fill-opacity:.03}
.pc-band-good{fill:var(--upb);fill-opacity:.75}.pc-band-bad{fill:var(--dnb);fill-opacity:.8}
.pc-grid{stroke:var(--faint);stroke-dasharray:2 4}
.pc-label{fill:var(--mut3);font:500 11px var(--ui);font-variant-numeric:tabular-nums}
.pc-axis{fill:var(--mut);font:500 11px var(--ui)}
.pc-level{stroke:var(--ink);stroke-width:1.5;stroke-dasharray:5 5}
.pc-cross{stroke:var(--mut3)}
.pc-dot{fill:var(--card);stroke:var(--ink);stroke-width:2}
.pc-now{fill:var(--ink);stroke:var(--card);stroke-width:3}
.pc-tip{position:absolute;top:0;transform:translateX(-50%);font:12px var(--ui);color:var(--mut);white-space:nowrap;pointer-events:none}
.pc-tip b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.pc-zone{position:absolute;font:500 11.5px var(--ui);color:var(--ink);opacity:.72;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-tag{position:absolute;right:0;transform:translateY(-50%);display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 12px 0 8px;border-radius:99px;background:var(--btn);color:var(--btnFg);font:600 12.5px var(--ui);font-variant-numeric:tabular-nums;white-space:nowrap;cursor:ns-resize;touch-action:none;box-shadow:0 8px 20px rgba(0,0,0,.18);transition:scale .3s var(--spring)}
.pc-tag .pc-grip{font-size:17px;opacity:.7}
.pc-tag:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.price-chart.is-dragging .pc-tag{scale:1.06}
.price-chart.is-dragging .pc-tip{visibility:hidden}
.pc-message{position:absolute;inset:0;display:grid;place-items:center;font-size:13px;color:var(--mut)}
.chart-peek{display:none}
.chart-sheet .sc-plot{height:240px;margin-top:12px}
.chart-sheet .cs-kicker{margin:0 0 4px;font-size:13px;color:var(--mut)}
.chart-sheet .chart-ranges{margin-top:14px}
.chart-sheet .ts-dismiss .chart-icon{font-size:22px}
.spark{display:block;overflow:visible}.spark path{fill:none;stroke:var(--ink);stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}
@media(max-width:800px),(max-height:500px){
 [data-stage] .sentence-chart,.chart-toggle{display:none!important}
 .chart-peek{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:0 10px 0 16px;border:0;border-radius:18px;background:var(--card);color:var(--mut);font:500 13px var(--ui);text-align:left}
 .chart-peek b,.cp-symbol{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
 .cp-change.is-up{color:var(--good)}.cp-change.is-down{color:var(--bad)}
 .cp-spark{margin-left:auto;color:var(--ink)}.cp-spark .spark path{stroke:currentColor}.cp-spark.is-up{color:var(--good)}.cp-spark.is-down{color:var(--bad)}
 .cp-open{display:inline-flex;align-items:center;gap:2px;font-size:12px}
 .cp-open .chart-icon{font-size:18px}
 [data-stage] .sentence-screen:has(.menu-popup[style*="pointer-events: auto"]) .chart-peek{opacity:0}
}
@media(prefers-reduced-motion:reduce){.sentence-chart{transition:opacity .2s ease}.chart-off .sentence-chart{transform:none;filter:none}}
/* Leaderboard beside the chart: other hunch users in the same token. Desktop opens it under the chart with the same
   motion; phones get a second peek that opens it in a sheet. */
.crowd-toggle{margin-left:0}
/* With the chart and the leaderboard both open, Invest and Earn outgrow the window: the page scrolls inside the
   stage, centred while it still fits, and the bottom padding keeps the last row clear of the dock. */
@media(min-width:801px) and (min-height:501px){[data-stage] .sentence-screen.page-content{overflow-y:auto;overscroll-behavior:contain;justify-content:safe center!important;overflow-x:hidden}}
.sentence-crowd{display:grid;grid-template-rows:1fr;width:100%;max-width:1040px;transition:grid-template-rows .55s cubic-bezier(.32,.72,0,1),opacity .35s ease,transform .55s cubic-bezier(.32,.72,0,1),filter .35s ease}
.sentence-crowd-inner{min-height:0;overflow:hidden;padding:0 2px 8px}
.crowd-off .sentence-crowd{grid-template-rows:0fr;opacity:0;transform:translateY(10px);filter:blur(6px);pointer-events:none}
.crowd-off .sentence-crowd-inner{visibility:hidden;transition:visibility 0s .55s}
.crowd-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:10px;margin-bottom:6px}
/* Latest / Top P&L: one pill slides between the two halves, like the leaderboard tabs. */
.crowd-sort{position:relative;display:inline-grid;grid-template-columns:1fr 1fr;gap:0}
.crowd-sort::before{content:'';position:absolute;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);border-radius:99px;background:var(--card);box-shadow:0 1px 3px rgba(0,0,0,.08);transition:translate .5s var(--spring)}
.crowd-sort:has([data-crowd-sort=pnl][aria-pressed=true])::before{translate:100% 0}
.crowd-sort button{position:relative;cursor:pointer}
.crowd-sort button[aria-pressed=true]{background:transparent;box-shadow:none}
@media (prefers-reduced-motion:reduce){.crowd-sort::before{transition:none}}
.crowd-title{font:600 14px var(--ui);color:var(--ink)}
.crowd-list{list-style:none;margin:0;padding:4px 16px;border-radius:22px;background:var(--card)}
.crowd-row{display:block}
/* Each row opens that person's profile: the whole row is one button, with a chevron that slides in on hover. */
.crowd-open{width:calc(100% + 16px);margin:0 -8px;display:grid;grid-template-columns:36px minmax(0,1fr) auto 18px;align-items:center;gap:12px;min-height:64px;padding:10px 8px;border:0;border-radius:16px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:background-color .2s ease-out}
.crowd-open:hover{background:color-mix(in oklch,var(--soft2) 45%,transparent)}
.crowd-open:active{scale:.99}
.crowd-chev{font-size:18px;color:var(--mut3);opacity:0;translate:-4px 0;transition:opacity .2s ease-out,translate .2s ease-out}
.crowd-open:hover .crowd-chev,.crowd-open:focus-visible .crowd-chev{opacity:1;translate:0 0}
@media (hover:none){.crowd-chev{opacity:1;translate:0 0}}
.crowd-row+.crowd-row{border-top:1px solid var(--line)}
.crowd-row[data-finished=true] .crowd-face{opacity:.7}
.crowd-face{width:36px;height:36px;border-radius:50%;flex:none}
.crowd-who{display:flex;flex-direction:column;gap:2px;min-width:0}
.crowd-who b{display:flex;align-items:center;gap:6px;min-width:0;font:600 14px var(--ui);color:var(--ink)}
.crowd-who b>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crowd-you{flex:none;padding:1px 7px;border-radius:99px;background:var(--soft2);color:var(--mut);font:500 11px var(--ui)}
.crowd-who small{display:flex;flex-wrap:wrap;gap:0 6px;font:400 12.5px var(--ui);color:var(--mut)}
.crowd-who small>span:first-child{color:var(--ink);opacity:.8}
.crowd-who small>span+span:before{content:'·';margin-right:6px}
.crowd-who small>.crowd-state:before,.crowd-who small>.crowd-state+span:before{content:none}
.crowd-state{padding:0 6px;border-radius:99px;background:var(--soft2);font-weight:500}
.crowd-pnl{display:flex;flex-direction:column;align-items:flex-end;gap:1px;font-variant-numeric:tabular-nums;white-space:nowrap}
.crowd-pnl b{font:var(--dw,600) 20px/1.1 var(--disp);letter-spacing:-.01em}
.crowd-pnl small{font:500 12px var(--ui);color:var(--mut)}
.crowd-pnl.is-up b{color:var(--good)}.crowd-pnl.is-down b{color:var(--bad)}
.crowd-empty{padding:22px 0;text-align:center;font:400 13px var(--ui);color:var(--mut)}
.crowd-foot{margin:10px 4px 0;font:400 12px var(--ui);color:var(--mut)}
.crowd-foot:empty{display:none}
.crowd-foot button{padding:0;border:0;background:none;color:var(--ink);font:inherit;font-weight:500;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.crowd-faces{display:inline-flex;flex:none}
.crowd-faces>span{width:22px;height:22px;border-radius:50%;box-shadow:0 0 0 2px var(--card)}
.crowd-faces>span+span{margin-left:-7px}
.crowd-faces .chart-icon{width:auto;height:auto;box-shadow:none;font-size:20px;color:var(--ink)}
.crowd-peek .cp-open{margin-left:auto}
.crowd-sheet .crowd-list{max-height:min(62dvh,560px);overflow-y:auto;padding:0;background:transparent}
.crowd-sheet .crowd-head{padding-top:4px}
/* Your own trade on this token, set apart above everyone else's. */
.crowd-mine{display:flex;flex-direction:column;gap:10px;padding-top:10px}
.crowd-mine:empty{display:none}
.crowd-me-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font:600 14px var(--ui);color:var(--ink)}
.crowd-me-head span+span{font:500 12.5px var(--ui);color:var(--mut);font-variant-numeric:tabular-nums}
.crowd-me{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:16px;width:100%;padding:18px 22px;border:0;border-radius:26px;background:var(--card);color:var(--ink);font:inherit;text-align:left;cursor:pointer;box-shadow:0 0 0 1.5px var(--ink),0 10px 30px -12px rgb(60 48 24 / .25);transition:scale .15s ease-out}
.crowd-me:active{scale:.985}
.crowd-me+.crowd-me{margin-top:2px}
.crowd-me-face{width:52px;height:52px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;background:var(--soft2);color:var(--mut)}
.crowd-me-face .chart-icon{font-size:24px}
.crowd-me-who{display:flex;flex-direction:column;gap:4px;min-width:0}
.crowd-me-who b{display:flex;align-items:center;gap:8px;min-width:0;font:600 15px var(--ui)}
.crowd-me-who b>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crowd-me-line{font:400 15px/1.35 var(--ui);color:var(--ink)}
.crowd-me-who small{font:400 12.5px var(--ui);color:var(--mut)}
.crowd-me-pnl b{font-size:32px;letter-spacing:-.02em}
.crowd-me-pnl small{font-size:13px}
.crowd-me-pnl.is-up small{color:var(--good)}.crowd-me-pnl.is-down small{color:var(--bad)}
.crowd-me.is-empty{cursor:default;box-shadow:0 0 0 1.5px var(--faint);grid-template-columns:52px minmax(0,1fr) auto}
.crowd-me.is-empty:active{scale:1}
.crowd-me-cta{padding:12px 18px;min-height:44px;border:0;border-radius:99px;background:var(--btn);color:var(--btnFg);font:500 13px var(--ui);white-space:nowrap;cursor:pointer;transition:scale .15s ease-out}
.crowd-me-cta:active{scale:.96}
.crowd-mine+.crowd-head{margin-top:16px}
@media(max-width:800px),(max-height:500px){
 .crowd-me{grid-template-columns:40px minmax(0,1fr);gap:4px 12px;padding:16px}
 .crowd-me-face{width:40px;height:40px}
 .crowd-me-pnl{grid-column:2;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:8px}
 .crowd-me-pnl b{font-size:28px}
 .crowd-me.is-empty{grid-template-columns:40px minmax(0,1fr)}
 .crowd-me-cta{grid-column:2;justify-self:start;margin-top:6px}
}
/* Leaderboard page rows open the trader's profile too. */
.lb-list li[role=button]{cursor:pointer;margin:0 -12px;padding-inline:12px;border-radius:16px;transition:background-color .2s ease-out}
.lb-list li[role=button]:hover{background:color-mix(in oklch,var(--soft2) 45%,transparent)}
.lb-chev{font-size:18px;color:var(--mut3)}

/* Trader profile (#trader/<code>): P&L first, the chart under it, then standing, then positions. */
[data-stage] .trader-screen{position:relative;min-height:100dvh;display:flex;justify-content:center;padding:96px 24px 150px;box-sizing:border-box}
.tp{width:min(1080px,100%);display:flex;flex-direction:column;gap:18px;color:var(--ink)}
.tp-nav{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tp-pill{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px 0 12px;border:0;border-radius:99px;background:var(--card);color:var(--ink);font:500 13px var(--ui);cursor:pointer;transition:scale .15s ease-out}
.tp-pill:active{scale:.96}
.tp-pill .chart-icon{font-size:18px}
.tp-head{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:6px 4px}
.tp-face{width:76px;height:76px;border-radius:50%;flex:none}
.tp-head>.tp-face{order:0}
.tp-id{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.tp-id h1{margin:0;font:var(--dw,600) clamp(28px,3.4vw,38px)/1.05 var(--disp);letter-spacing:-.025em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp-id p{margin:0;font-size:13.5px;color:var(--mut)}
.tp-rank{display:flex;align-items:center;gap:14px;padding:12px 20px 12px 14px;border-radius:22px;background:var(--isl,#121317);color:#fff}
.tp-rank[hidden]{display:none}
.tp-rank-icon{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:oklch(0.91 0.08 85);color:#121317}
.tp-rank-icon .chart-icon{font-size:22px}
.tp-rank>span:last-child{display:flex;flex-direction:column}
.tp-rank b{font:var(--dw,600) 28px/1 var(--disp);font-variant-numeric:tabular-nums}
.tp-rank small{font-size:12px;color:rgb(255 255 255 / .6)}
.tp-hero{padding:28px 28px 20px;display:flex;flex-direction:column;gap:6px}
.tp-kicker{margin:0;font-size:14px;color:var(--mut);min-height:1.2em}
.tp-total{margin:0;font:var(--dw,600) clamp(52px,7vw,84px)/.95 var(--disp);letter-spacing:-.045em;font-variant-numeric:tabular-nums;min-height:.95em}
.tp-total.is-down{color:var(--bad)}
.tp-delta{display:flex;align-items:baseline;gap:8px;margin:2px 0 14px;font:500 15px var(--ui);font-variant-numeric:tabular-nums;color:var(--good);min-height:1.3em}
.tp-delta.is-down{color:var(--bad)}
.tp-delta small{font-size:14px;font-weight:400;color:var(--mut)}
.tp-plot{height:clamp(180px,30dvh,280px);touch-action:pan-y}
.tp-hero .chart-ranges{align-self:flex-start;margin-top:8px}
.tp-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.tp-stats:empty{display:none}
.tp-stat{display:flex;flex-direction:column;gap:6px;padding:18px 20px;border-radius:24px}
.tp-stat small{font-size:12.5px;color:var(--mut)}
.tp-stat b{display:flex;align-items:center;gap:10px;font:var(--dw,600) 28px/1.1 var(--disp);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.tp-stat b.is-up{color:var(--good)}.tp-stat b.is-down{color:var(--bad)}
.tp-stat>span{font-size:12.5px;color:var(--mut)}
.tp-faces>span{width:22px;height:22px}
.tp-bar{display:block;flex:1;height:6px;max-width:120px;border-radius:99px;background:linear-gradient(90deg,var(--ink) var(--w),var(--soft2) var(--w))}
.tp-positions{padding:14px 14px 8px}
.tp-tabs{display:inline-flex;gap:2px;padding:3px;margin:4px 6px 8px;border-radius:99px;background:var(--bg)}
.tp-tabs button{min-height:40px;padding:0 16px;border:0;border-radius:99px;background:transparent;color:var(--mut);font:500 14px var(--ui);cursor:pointer;transition:background-color .2s,color .2s}
.tp-tabs button[aria-selected=true]{background:var(--card);color:var(--ink);box-shadow:0 1px 3px rgb(0 0 0 / .08)}
.tp-list{list-style:none;margin:0;padding:0}
.tp-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px 10px}
.tp-row+.tp-row{border-top:1px solid var(--line)}
.tp-coin{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;font:600 11.5px var(--ui);color:#121317;overflow:hidden}
.tp-what{display:flex;flex-direction:column;gap:4px;min-width:0}
.tp-what b{font:500 15.5px/1.35 var(--ui)}
.tp-what small{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:12.5px;color:var(--mut)}
.tp-kind{padding:0 7px;border-radius:99px;background:var(--soft2);font-weight:500}
.tp-pnl b{font-size:24px}
.tp-empty{padding:28px 12px;text-align:center;font-size:13.5px;color:var(--mut)}
.trader-screen.is-loading .tp-stats,.trader-screen.is-loading .tp-positions{opacity:.5}
@media(max-width:800px),(max-height:500px){
 [data-stage] .trader-screen{padding:24px 16px 128px}
 .tp{gap:14px}
 .tp-share-label{display:none}
 .tp-pill:has(.tp-share-label){padding:0;width:44px;justify-content:center}
 .tp-head{gap:12px;flex-wrap:nowrap}
 .tp-face{width:56px;height:56px}
 .tp-rank{flex-direction:column;gap:0;padding:8px 12px;border-radius:16px;text-align:center}
 .tp-rank-icon{display:none}
 .tp-rank b{font-size:22px}
 .tp-rank small{font-size:10.5px;max-width:84px}
 .tp-hero{padding:20px 16px 16px;border-radius:28px}
 .tp-total{font-size:54px}
 .tp-delta{flex-wrap:wrap;font-size:14px}
 .tp-plot{height:200px}
 .tp-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .tp-stat{padding:14px 16px;border-radius:22px}
 .tp-stat b{font-size:24px}
 .tp-stat>span{font-size:11.5px}
 .tp-positions{padding:10px 10px 6px}
 .tp-tabs{display:flex;margin:0 2px 6px}.tp-tabs button{flex:1}
 .tp-row{grid-template-columns:38px minmax(0,1fr) auto;gap:12px;padding:14px 4px}
 .tp-coin{width:38px;height:38px;border-radius:12px;font-size:10px}
 .tp-what b{font-size:14px}
 .tp-pnl b{font-size:20px}
}
.crowd-sheet .crowd-title{color:var(--mut);font-weight:500}
@media(max-width:800px),(max-height:500px){[data-stage] .sentence-crowd{display:none!important}.crowd-peek{margin-top:-10px}}
@media(prefers-reduced-motion:reduce){.sentence-crowd{transition:opacity .2s ease}.crowd-off .sentence-crowd{transform:none;filter:none}}
/* Loading states reuse the loaded markup: the last known numbers sit under a shimmer, so sizes never change. */
.isl-skel .isl-amount,.acc-balance.is-skel [data-num],.acc-tokens.is-skel strong{border-radius:7px;color:transparent!important;background:linear-gradient(90deg,var(--p-soft,rgba(255,255,255,.08)),var(--p-line,rgba(255,255,255,.2)),var(--p-soft,rgba(255,255,255,.08)));background-size:200% 100%;animation:shimmer 1.2s linear infinite}
.isl-skel .isl-amount{background-image:linear-gradient(90deg,rgba(255,255,255,.08),rgba(255,255,255,.2),rgba(255,255,255,.08))}
.isl-skel .isl-amount *,.acc-balance.is-skel [data-num] *{color:transparent!important}
.isl-skel .isl-add{color:transparent}
.isl-skel .isl-add .ms{opacity:0}
@media(prefers-reduced-motion:reduce){.isl-skel .isl-amount,.acc-balance.is-skel [data-num],.acc-tokens.is-skel strong{animation:none}}
.token-menu [style*="width:40px;height:6px"]{display:none!important}
.token-spark{flex:none;width:56px;height:20px;display:flex;align-items:center;color:var(--mut3)}
.token-spark .spark path{stroke:currentColor}
/* Token rows: ticker and price read together on the left; the week's move and its line close the row in green or red. */
.token-menu sc-for>div>span:first-child{flex:none!important}
.token-menu sc-for>div>span:nth-child(3){display:none}
.token-price{flex:1;font:500 14px var(--ui);color:inherit;opacity:.55;font-variant-numeric:tabular-nums;white-space:nowrap}
.token-change{flex:none;font:600 13px var(--ui);font-variant-numeric:tabular-nums;white-space:nowrap}
.token-change.is-up,.token-spark.is-up{color:var(--good)}
.token-change.is-down,.token-spark.is-down{color:var(--bad)}
.page-ticker-state:empty{display:none}
/* Phones: the dock floats only max(12px, safe area) above the screen edge, so its shadow must fade out within that gap. */
@media(max-width:800px),(max-height:500px){[data-stage]>div.app-dock:last-child{box-shadow:0 2px 12px -4px rgba(20,20,30,.28),inset 0 0 0 1px var(--dockRing)!important}}
/* End-date picker: listed expiries only, scrolling inside the popover. */
.chip-pop:has(>.cal-if[style*="contents"])>.chip-title{display:none}
.cal-list{position:relative;display:flex;flex-direction:column;gap:2px;max-height:min(320px,50dvh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;padding:2px;mask-image:linear-gradient(transparent,#000 10px,#000 calc(100% - 14px),transparent)}
.cal-list::-webkit-scrollbar{display:none}
.cal-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:8px 8px 8px 14px;border-radius:18px;cursor:pointer;transition:background .2s}
.cal-row:hover{background:var(--bg)}
.cal-row[aria-current=true]{background:var(--bg)}
.cal-date{display:flex;flex-direction:column;gap:2px;min-width:0}
.cal-date strong{font-size:15px;font-weight:600;color:var(--ink)}
.cal-date small{font-size:12px;color:var(--mut)}
.cal-odds{flex:none;min-width:58px;padding:7px 10px;border-radius:999px;font-size:14px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}

/* Tactile pass: wells sit slightly below the surface, keys slightly above with a hairline of light on top. Every alpha scales with --k. */
:root{--k:1;
 --t-hl:rgb(255 255 255 / calc(.9 * var(--k)));--t-hlInk:rgb(255 255 255 / calc(.16 * var(--k)));
 --t-lo:rgb(60 48 24 / calc(.035 * var(--k)));--t-edge:rgb(60 48 24 / calc(.07 * var(--k)));--t-edgeInk:rgb(0 0 0 / calc(.3 * var(--k)));
 --t-drop:0 1px 1px rgb(60 48 24 / calc(.05 * var(--k))),0 2px 6px -2px rgb(60 48 24 / calc(.1 * var(--k)));
 --t-dropInk:0 1px 1px rgb(0 0 0 / calc(.12 * var(--k))),0 4px 10px -4px rgb(0 0 0 / calc(.28 * var(--k)));
 --t-well:inset 0 1px 2px rgb(60 48 24 / calc(.075 * var(--k))),inset 0 0 0 .5px rgb(60 48 24 / calc(.05 * var(--k)));
 --t-rim:0 1px 0 rgb(255 255 255 / calc(.85 * var(--k)));
 --t-press:inset 0 1px 2px rgb(60 48 24 / calc(.1 * var(--k)));
 --t-pressInk:inset 0 1px 3px rgb(0 0 0 / calc(.35 * var(--k)));
 --t-knob:inset 0 1px 0 var(--t-hl),inset 0 -1px 0 var(--t-lo),0 0 0 .5px var(--t-edge),0 1px 1px rgb(0 0 0 / calc(.06 * var(--k))),0 4px 10px -3px rgb(0 0 0 / calc(.2 * var(--k)));
 --t-raised:inset 0 1px 0 var(--t-hl),inset 0 -1px 0 var(--t-lo),0 0 0 .5px var(--t-edge),var(--t-drop);
 --t-raisedInk:inset 0 1px 0 var(--t-hlInk),inset 0 0 0 .5px var(--t-edgeInk),var(--t-dropInk)}
:root:has([data-stage][data-dark=true]){
 --t-hl:rgb(255 255 255 / calc(.075 * var(--k)));--t-hlInk:rgb(255 255 255 / calc(.9 * var(--k)));
 --t-lo:rgb(0 0 0 / calc(.25 * var(--k)));--t-edge:rgb(0 0 0 / calc(.45 * var(--k)));--t-edgeInk:rgb(0 0 0 / calc(.4 * var(--k)));
 --t-drop:0 1px 1px rgb(0 0 0 / calc(.3 * var(--k))),0 2px 6px -2px rgb(0 0 0 / calc(.45 * var(--k)));
 --t-dropInk:0 1px 1px rgb(0 0 0 / calc(.35 * var(--k))),0 4px 10px -4px rgb(0 0 0 / calc(.55 * var(--k)));
 --t-well:inset 0 1px 2px rgb(0 0 0 / calc(.4 * var(--k))),inset 0 0 0 .5px rgb(0 0 0 / calc(.3 * var(--k)));
 --t-rim:0 1px 0 rgb(255 255 255 / calc(.045 * var(--k)));
 --t-press:inset 0 1px 2px rgb(0 0 0 / calc(.4 * var(--k)));
 --t-knob:inset 0 1px 0 rgb(255 255 255 / calc(.9 * var(--k))),inset 0 -1px 0 rgb(0 0 0 / calc(.06 * var(--k))),0 0 0 .5px var(--t-edge),0 1px 1px rgb(0 0 0 / calc(.3 * var(--k))),0 4px 10px -3px rgb(0 0 0 / calc(.5 * var(--k)))}

/* Recessed: fields, drag tracks, switch tracks, segmented tracks */
[data-stage] [style*="touch-action:none"][style*="border-radius:999px"],
[data-stage] [style*="height:72px;padding:0 20px;border-radius:24px;background:var(--bg)"],
[data-stage] [style*="width:52px;height:32px;border-radius:99px"],
[data-stage] [style*="grid-template-columns:repeat(3,minmax(0,1fr));padding:5px;border-radius:999px"],
.custom-deposit>div,.chart-ranges,:where(.isl-root) .seg,.trade-sheet .ts-sizes,
.ref-name-row input,.fund-trouble input,.wallet-panel select{box-shadow:var(--t-well),var(--t-rim)}
/* The island stays dark in both themes: its tracks take the dark well and no light rim, which drew a white line under the theme switch on light. */
:where(.isl-root) .seg:not(.sheet .seg){box-shadow:inset 0 1px 2px rgb(0 0 0 / calc(.4 * var(--k))),inset 0 0 0 .5px rgb(0 0 0 / calc(.3 * var(--k)))}

/* Raised: thumbs and knobs (these carry inline shadows) */
[data-stage] [style*="background:linear-gradient(180deg,#fff,#f1efe9)"],
[data-stage] [style*="width:26px;height:26px;border-radius:50%;background:#FFFFFE"]{box-shadow:var(--t-knob)!important}
/* The position slider's thumb sits in a tight 6px inset, so its drop stays close and soft */
[data-stage] [style*="width:52px;height:52px;border-radius:50%;background:#FFFFFE"]{box-shadow:inset 0 1px 0 var(--t-hl),inset 0 -1px 0 var(--t-lo),0 0 0 .5px var(--t-edge),var(--t-drop)!important}
/* A faint sheen on the slider thumbs only */
[data-stage] [style*="background:linear-gradient(180deg,#fff,#f1efe9)"]::after,
[data-stage] [style*="width:52px;height:52px;border-radius:50%;background:#FFFFFE"]::after{content:"";position:absolute;inset:3px;border-radius:50%;background:radial-gradient(120% 90% at 50% 0%,rgb(255 255 255 / calc(.18 * var(--k))),transparent 60%);pointer-events:none}
[data-stage] [style*="touch-action:none"]:active [style*="background:linear-gradient(180deg,#fff,#f1efe9)"],
[data-stage] [style*="touch-action:none"]:active [style*="background:#FFFFFE"]{box-shadow:inset 0 1px 0 var(--t-hl),0 0 0 .5px var(--t-edge),0 1px 1px rgb(0 0 0 / calc(.08 * var(--k))),0 2px 5px -2px rgb(0 0 0 / calc(.22 * var(--k)))!important}
[data-stage] [style*="width:28px;height:28px;flex:none;border-radius:10px"]{box-shadow:inset 0 0 0 2px var(--ink),var(--t-drop)!important}

/* Raised: light keys and pills */
[data-stage] [style*="cursor:pointer"][style*="border-radius:999px;background:var(--card)"],
[data-stage] [style*="cursor:pointer"][style*="border-radius:999px;background:var(--bg)"],
[data-stage] [style*="cursor:pointer"][style*="border-radius:50%;background:var(--bg)"],
[data-stage] [style*="cursor:pointer"][style*="border-radius:50%;background:var(--card)"],
.fund-presets button,.pf-actions button,.receipt-actions button,.share-actions button,.prof-name-actions button,dialog button,.ref-share,
#connect .connect-wallets button,.chart-ranges button[aria-pressed=true],:where(.isl-root) .acc-chips button{box-shadow:var(--t-raised)}

/* Raised: ink keys and sliding highlights */
[data-stage] [style*="cursor:pointer"][style*="background:var(--btn)"],
[data-stage] [style*="border-radius:999px;background:var(--btn);transition:left"],
[data-stage] [style*="border-radius:24px;background:var(--btn);transition:top"],
[data-stage] [style*="background:var(--dockAct)"]:not(.dock-item),.dock-highlight,
.fund-presets button[aria-pressed=true],.receipt-actions button:last-child,dialog button[aria-pressed=true],
.ref-copy,.ref-name-row button,.fund-trouble button,
.trade-sheet .ts-sizes button[aria-checked=true],:where(.isl-root) .seg button[aria-checked=true]{box-shadow:var(--t-raisedInk)}
/* The theme switch in the account sheet uses the same light raised key as the other sheet buttons, in both themes */
.sheet .seg button[aria-checked=true]{background:var(--card);color:var(--ink);box-shadow:var(--t-raised)}
/* On light the full drop reads as a heavy line under the switch, so its shading runs at 20% */
:root:not(:has([data-stage][data-dark=true])) .sheet .seg button[aria-checked=true]{box-shadow:inset 0 1px 0 var(--t-hl),inset 0 -1px 0 rgb(60 48 24 / calc(.007 * var(--k))),0 0 0 .5px var(--t-edge),0 1px 1px rgb(60 48 24 / calc(.01 * var(--k))),0 2px 6px -2px rgb(60 48 24 / calc(.02 * var(--k)))}

/* Pressed: the top light drops away and a soft inner shade replaces the lift */
[data-stage] [style*="cursor:pointer"][style*="border-radius:999px;background:var(--card)"]:active,
[data-stage] [style*="cursor:pointer"][style*="border-radius:999px;background:var(--bg)"]:active,
[data-stage] [style*="cursor:pointer"][style*="border-radius:50%"]:active,
.fund-presets button:active,.pf-actions button:active,.receipt-actions button:active,.share-actions button:active,
.prof-name-actions button:active,dialog button:active,.ref-share:active,#connect .connect-wallets button:active,
:where(.isl-root) .acc-chips button:active{box-shadow:var(--t-press),0 0 0 .5px var(--t-edge)}
[data-stage] [style*="cursor:pointer"][style*="background:var(--btn)"]:active,
[data-stage] [style*="background:var(--dockAct)"]:not(.dock-item):active,
.fund-presets button[aria-pressed=true]:active,.receipt-actions button:last-child:active,
.ref-copy:active,.ref-name-row button:active,.fund-trouble button:active{box-shadow:var(--t-pressInk),inset 0 0 0 .5px var(--t-edgeInk)}

/* Earn venues: the hunch account on Derive or the wallet through Rysk, side by side above the plan's rows. */
.venue-pick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;flex:none}
.venue-option{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;padding:14px 16px;border:0;border-radius:22px;background:var(--card);color:var(--ink);text-align:left;font:inherit;cursor:pointer;box-shadow:0 0 0 1px var(--ring);transition:box-shadow .2s,transform .2s var(--spring)}
.venue-option:hover{transform:translateY(-1px)}
.venue-option[aria-pressed=true]{box-shadow:0 0 0 2px var(--ink)}
.venue-option[aria-disabled=true]{opacity:.55;cursor:default;transform:none}
.venue-head{display:flex;flex-direction:column;gap:2px}
.venue-head strong{font:600 14px var(--ui)}
.venue-head small{font-size:12px;color:var(--mut)}
.venue-prem{font-family:var(--disp);font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--good)}
.venue-note{font-size:12px;line-height:1.4;color:var(--mut)}
@media(max-width:800px),(max-height:500px){.venue-pick{grid-template-columns:1fr}}

/* Money moves (withdraw, move to an options account) reuse the trade sheet; the Max link sits in the hint. */
.money-sheet .ts-amount-hint{display:flex;align-items:center;justify-content:space-between;gap:12px}
.money-sheet .acc-link{border:0;background:none;padding:0;color:var(--ink);font:500 13px var(--ui);text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* Add money by address: a code block to copy, and the deposits Derive has seen on their way in. */
.fund-address{margin:0;padding:2px 18px;border-radius:22px;background:var(--card);font-size:13px;color:var(--mut);line-height:1.5}
.fund-address summary{padding:12px 0;color:var(--ink);cursor:pointer}
.fund-address p{margin:0 0 10px}
.fund-address-row{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.fund-address-row code{flex:1;min-width:0;padding:12px 14px;border-radius:14px;background:var(--bg);color:var(--ink);font:12px ui-monospace,Menlo,monospace;overflow-wrap:anywhere}
.fund-address-row button{flex:none;padding:10px 16px;border:0;border-radius:99px;background:var(--ink);color:var(--card);font:500 13px var(--ui)}
.fund-pending{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:6px}
.fund-pending:empty{display:none}
.fund-pending li{display:flex;justify-content:space-between;gap:12px;padding:10px 14px;border-radius:14px;background:var(--bg);color:var(--ink)}

/* Portfolio table. Above it: the filter on the left, the money pills and the chart toggle on the right, all one height.
   Under it: Earn's income and the failed-orders switch on the left, the CSV export on the right. */
.portfolio-screen{--pf-bar:46px}
[data-stage] .pf-toolbar{align-self:stretch;display:flex;align-items:center;justify-content:space-between;gap:10px 16px}
[data-stage] .pf-toolbar>.pf-filter{flex:0 1 440px;min-width:0;height:var(--pf-bar);box-sizing:border-box;max-width:440px}
[data-stage] .pf-filter>sc-for>div{display:flex;align-items:center;justify-content:center;height:calc(var(--pf-bar) - 10px);padding:0 8px!important;box-sizing:border-box;white-space:nowrap}
[data-stage] .pf-toolbar>.pf-pills{flex-wrap:nowrap;justify-content:flex-end;margin:0;gap:8px}
/* Narrow laptops: the pills drop under the filter once both no longer fit on one line. */
@media(max-width:1180px) and (min-width:801px) and (min-height:501px){[data-stage] .pf-toolbar{flex-wrap:wrap}[data-stage] .pf-toolbar>.pf-filter{flex:none}}
[data-stage] .pf-pills>.pf-pill{align-items:center;height:var(--pf-bar);box-sizing:border-box;padding:0 16px}
/* Row two: failed orders and income on the left; the chart's range, the chart toggle and Export CSV on the right. */
.pf-bar{align-self:stretch;display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;min-height:34px;margin-top:-4px}
.pf-bar-end{display:flex;align-items:center;gap:6px;margin-left:auto}
.pf-bar .chart-toggle{margin-left:0}
.pf-chart-off .pf-bar .chart-ranges{display:none}
.pf-bar .chart-ranges{animation:fb .4s cubic-bezier(.2,.8,.2,1) both}
.pf-chart{align-self:stretch;display:grid;grid-template-rows:1fr;transition:grid-template-rows .55s cubic-bezier(.32,.72,0,1),opacity .35s ease,transform .55s cubic-bezier(.32,.72,0,1),filter .35s ease}
.pf-chart-inner{min-height:0;overflow:hidden;padding:0 2px 4px}
.pf-chart .sc-plot{height:clamp(150px,22dvh,220px)}
.pf-chart-off .pf-chart{grid-template-rows:0fr;opacity:0;transform:translateY(10px);filter:blur(6px);pointer-events:none}
.pf-chart-off .pf-chart-inner{visibility:hidden;transition:visibility 0s .55s}
.pf-foot-start{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;min-width:0}
.pf-income{margin:0;font-size:12.5px;color:var(--mut)}
.pf-export{display:inline-flex;align-items:center;gap:6px;height:28px;border:0;background:none;padding:0 12px 0 9px;border-radius:99px;color:var(--mut);font:500 12.5px var(--ui);cursor:pointer;transition:background .2s,color .2s}
.pf-export:hover{color:var(--ink);background:var(--card)}
.pf-export .outcome-icon{font-size:17px}
.pf-failed-toggle{display:inline-flex;align-items:center;gap:8px;height:28px;border:0;background:none;padding:0 10px 0 6px;border-radius:99px;color:var(--mut);font:500 12.5px var(--ui);cursor:pointer}
.pf-failed-toggle:hover{color:var(--ink);background:var(--card)}
.pf-failed-toggle .seg-count{margin-left:0}
.pf-switch{position:relative;width:30px;height:18px;border-radius:99px;background:var(--line);transition:background .2s}
.pf-switch:after{content:'';position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:var(--card);box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .25s var(--spring)}
.pf-failed-toggle[aria-checked=true]{color:var(--ink)}
.pf-failed-toggle[aria-checked=true] .pf-switch{background:var(--ink)}
.pf-failed-toggle[aria-checked=true] .pf-switch:after{transform:translateX(12px)}
/* A failed order can be removed from the list: its close mark appears on hover, always on touch screens. */
.pf-row{position:relative}
.pf-row[data-failed=true]{background:color-mix(in srgb,var(--card) 70%,transparent)}
.pf-dismiss{position:absolute;top:-6px;right:-6px;z-index:2;width:28px;height:28px;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:var(--card);cursor:pointer;opacity:0;scale:.8;transition:opacity .18s ease,scale .25s var(--spring)}
.pf-dismiss .outcome-icon{font-size:16px;color:inherit}
.pf-row:hover .pf-dismiss,.pf-dismiss:focus-visible{opacity:1;scale:1}
@media(hover:none){.pf-dismiss{opacity:1;scale:1}}
/* Share is an icon: the label only took room from the row. */
[data-stage] .pf-actions .pf-share{min-width:44px;width:44px;padding:0;flex:none}
@media(prefers-reduced-motion:reduce){.pf-chart,.pf-dismiss,.pf-switch:after{transition:none}.pf-bar .chart-ranges{animation:none}}

/* Receipt: Share sits with the other actions; See portfolio stays the primary one. */
.receipt-actions{flex-wrap:wrap;justify-content:center}
.receipt-actions button:last-child{background:var(--card);color:var(--ink)}
.receipt-actions [data-action-binding="{{ go.k }}"]{background:var(--btn);color:var(--btnFg)}
.receipt-actions .receipt-share{display:inline-flex;align-items:center;gap:8px}
.receipt-actions .receipt-share .outcome-icon{font-size:18px}

/* Account: the one-tap switch, laid out like the other settings rows. */
.acc-prefs{flex-wrap:wrap}
.acc-switch{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:4px 0 10px;border:0;background:none;color:var(--p-fg);text-align:left;font:inherit;cursor:pointer}
.acc-switch-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.acc-switch-text strong{font:600 13px var(--ui)}
.acc-switch-text small{font-size:12px;color:var(--p-mut);line-height:1.4}
.acc-switch-track{flex:none;position:relative;width:42px;height:24px;border-radius:99px;background:var(--p-soft);transition:background .2s}
.acc-switch-track span{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--p-fg);transition:transform .25s var(--spring)}
.acc-switch[aria-checked=true] .acc-switch-track{background:oklch(0.7 0.14 160)}
.acc-switch[aria-checked=true] .acc-switch-track span{transform:translateX(18px);background:#fff}
.acc-actions button[disabled]{opacity:.5;cursor:default}

/* Invite & earn: name your link (after a first trade). The host stays fixed; only the name is typed. */
.ref-alias{display:flex;align-items:flex-end;gap:10px;margin-top:4px}
.ref-alias label{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.ref-alias-field{display:flex;align-items:center;min-width:0;padding:0 14px;border-radius:16px;background:var(--bg);font:500 14px ui-monospace,Menlo,monospace}
.ref-alias-host{flex:none;color:var(--mut);white-space:nowrap}
.ref-alias-field input{flex:1;min-width:0;height:44px;padding:0;border:0;background:transparent;color:var(--ink);font:inherit;outline:none}
.ref-alias-field:focus-within{box-shadow:0 0 0 2px var(--ink)}
.ref-alias button{height:44px;padding:0 18px;border:0;border-radius:14px;background:var(--ink);color:var(--card);font:600 14px var(--ui);cursor:pointer}
.ref-alias-note{margin:2px 0 0;font-size:13px;color:var(--mut)}
@media (max-width:520px){.ref-alias{flex-direction:column;align-items:stretch}.ref-alias-host{max-width:45%;overflow:hidden;text-overflow:ellipsis}}

/* Leaderboard: share your rank as a card carrying your invite link. */
.lb-you .lb-share{flex:none;display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin-left:4px;border:0;border-radius:50%;background:var(--bg);color:var(--ink);cursor:pointer}
.lb-you .lb-share .ms{font-size:19px}

/* ============ Phones, both orientations: full bleed, safe areas, nothing wider than the screen ============
   Last in the file so it wins over the mobile shell above. Landscape phones (short, wide) share the phone
   layout; there the dock keeps its compact width instead of spanning the screen. */
@media(max-width:800px),(max-height:500px){
 /* One overflowing word would make iOS zoom the whole page out; clip instead, and let rows wrap. */
 html,body{overflow-x:clip;max-width:100%}
 body{min-height:100svh}
 [data-stage] .page-content.page-content{padding-left:max(20px,calc(env(safe-area-inset-left) + 12px))!important;padding-right:max(20px,calc(env(safe-area-inset-right) + 12px))!important}
 /* Cost card and odds share a row while they fit; otherwise the odds drop under the card. */
 [data-stage] .sentence-copy+div{flex-wrap:wrap!important;row-gap:10px!important}
 [data-stage] .sentence-copy+div>div:first-child{flex:0 1 auto;min-width:0}
 [data-stage] .sentence-copy+div>div:last-child{flex:1 0 112px}
 /* The language button lines up with the page's first row; that row ends before it. */
 .lang{top:var(--m-top);right:max(16px,calc(env(safe-area-inset-right) + 8px))}
 .lang-btn{height:28px;padding:0 10px;background:var(--card);color:var(--ink)}
 .lang-menu{max-height:min(420px,calc(100dvh - var(--m-top) - 48px))}
 [data-stage] .sentence-screen .sentence-heading{padding-right:48px;box-sizing:border-box}
 [data-stage] :is(.referral-screen,.leaderboard-screen) .ref-head{padding-right:40px;padding-left:40px}
 /* Portfolio: pills (and the chart icon) first, then the filter right above the table. */
 .portfolio-screen{--pf-bar:42px}
 [data-stage] .pf-toolbar{flex-direction:column-reverse;align-items:stretch}
 [data-stage] .pf-toolbar>.pf-filter{flex:none;max-width:none}
 [data-stage] .pf-toolbar>.pf-pills{flex-wrap:wrap;justify-content:center;gap:6px}
 [data-stage] .pf-pills>.pf-pill{padding:0 13px;font-size:14px}
 .pf-pill small{font-size:12px}
 .pf-chart-btn.chart-toggle{display:inline-flex!important}
}
/* Portrait phones: the dock spans the screen so every label reads in full, in any language. */
@media(max-width:800px) and (orientation:portrait){
 [data-stage]>div.app-dock:last-child{width:calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right))!important;max-width:520px!important}
 .app-dock .dock-content,.app-dock.has-cta .dock-content{width:100%}
 .app-dock:not(.has-cta) :is(.dock-item[data-dock],.dock-account){flex:1 1 0!important;min-width:0;width:auto!important}
 .app-dock:not(.has-cta) .dock-item>span:last-child,.app-dock:not(.has-cta) .dock-account-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px!important}
}
/* Landscape phones: little height, so the dock tucks lower and pages leave less room above it. */
@media(max-height:500px){
 :root{--m-top:calc(env(safe-area-inset-top) + 16px);--m-dock-gap:max(8px,env(safe-area-inset-bottom));--m-bottom:calc(var(--m-dock-gap) + var(--m-dock) + 20px)}
 [data-stage] .sentence-screen.page-content{justify-content:flex-start!important}
 [data-stage] .sentence-screen .sentence-heading{margin-bottom:8px}
}

/* ============ Scrollbars: macOS overlay style everywhere ============
   Native bars are hidden on every scroller (a mouse or "Show scroll bars: Always" would draw classic gutters that
   steal width and sit there before anyone scrolls); scrollbars.js floats a thin thumb over the edge while scrolling. */
*{scrollbar-width:none!important;scrollbar-gutter:auto!important}
*::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.mac-scrollbars{position:fixed;inset:0;z-index:2147483644;pointer-events:none}
.mac-sb{position:fixed;box-sizing:border-box;border-radius:0;opacity:0;pointer-events:none;transition:opacity .3s ease .05s,width .15s ease,left .15s ease,background-color .15s ease}
.mac-sb.is-on{opacity:1;pointer-events:auto;transition:opacity .12s ease,width .15s ease,left .15s ease,background-color .15s ease}
.mac-sb.is-wide{background:color-mix(in srgb,var(--sb-ink,#000) 5%,transparent);box-shadow:inset 1px 0 color-mix(in srgb,var(--sb-ink,#000) 9%,transparent)}
.mac-sb-thumb{position:absolute;top:0;left:2px;right:2px;border-radius:99px;background:color-mix(in srgb,var(--sb-ink,#000) 48%,transparent);box-shadow:0 0 0 .5px color-mix(in srgb,var(--sb-ink,#000) 8%,transparent);will-change:transform}
.mac-sb.is-wide .mac-sb-thumb,.mac-sb.is-drag .mac-sb-thumb{background:color-mix(in srgb,var(--sb-ink,#000) 62%,transparent)}
@media(pointer:coarse){.mac-sb{pointer-events:none!important}}

/* The network an account is on: next to the balance in the closed island, and beside each account in the panel.
   Picking an account on the other network switches the site's flow (app.js setFlow). */
.isl-net{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:99px;background:rgba(255,255,255,.12);font:600 11px var(--ui);letter-spacing:.01em;white-space:nowrap}
.isl-net.is-hyper{background:color-mix(in oklch,var(--mint) 45%,transparent)}
.acc-flow-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.acc-flow{width:100%;display:grid;grid-template-columns:1fr auto;align-items:center;gap:1px 12px;padding:10px 12px;border-radius:14px;color:var(--p-fg);font:500 13px var(--ui);text-align:start;transition:background-color .15s ease-out,scale .15s ease-out}
.acc-flow:hover{background:var(--p-soft)}
.acc-flow:active{scale:.98}
.acc-flow.is-active{background:var(--p-soft)}
.acc-flow-name{font-weight:600}
.acc-flow-value{grid-column:1;color:var(--p-mut);font-size:12px;font-variant-numeric:tabular-nums}
.acc-net{grid-column:2;grid-row:1/3;padding:4px 10px;border-radius:99px;background:var(--lil);color:var(--ink);font:600 11.5px var(--ui);white-space:nowrap}
.acc-net.is-hyper{background:var(--mint)}
/* In the HyperEVM flow Invest leaves the dock: it narrows to nothing and fades while the other tabs close the gap,
   and the dock shell follows through resizeDock(). */
.dock-content>.dock-item{transition:background .35s,color .35s,transform .4s var(--spring),width .45s cubic-bezier(.22,1,.36,1),height .45s cubic-bezier(.22,1,.36,1),margin .45s cubic-bezier(.22,1,.36,1),opacity .25s ease!important}
.dock-content>.dock-item.is-gone{width:0!important;margin-right:-6px;opacity:0;overflow:hidden;pointer-events:none}
@media(prefers-reduced-motion:reduce){.dock-content>.dock-item{transition:none!important}}
