/* A quiet market: one place to discover, one place to own. */
:root{--ink:#17191d;--muted:#6b7078;--paper:#fff;--wash:#f5f5f7;--line:#e8e9ed;--action:#ccff00}
.tabs{width:min(380px,calc(100% - 2*var(--gutter)));grid-template-columns:repeat(4,minmax(0,1fr));height:60px;box-shadow:0 4px 22px #0000000d,inset 0 0 0 1px var(--line)}
.tabs .sel{width:calc((100% - 8px)/4)}.tabs button{font-size:11px;gap:3px}.tabs svg{width:23px;height:23px}
body #discover .top{position:static;padding:12px var(--gutter) 0;border:0;backdrop-filter:none;background:#fff}
#discover .bar{display:none}#discover .bar:has(#wallet:not([hidden])){display:flex;min-height:0;margin-bottom:6px}#discover .brand{display:none}
.discovery-toolbar{display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line);min-height:52px}
.discovery-toolbar button{font-size:15px;min-height:48px;font-weight:600;color:var(--muted)}
.discovery-toolbar button[aria-pressed="true"]{color:var(--ink);box-shadow:inset 0 -2px var(--ink)}
.discovery-toolbar .search-launch{margin-left:auto;width:44px;display:grid;place-items:center;color:var(--action);border-radius:50%;box-shadow:none}
.search-launch svg{width:22px;height:22px}
.discovery-filters{display:flex;align-items:center;gap:8px;margin:8px 0 12px;min-width:0}
.filter-picker{position:relative;display:flex;align-items:center;gap:12px;min-height:44px;min-width:0;padding:0 15px;background:var(--wash);border-radius:24px;color:var(--ink);font-size:14px;font-weight:600;line-height:20px}
.stage-picker{flex:0 0 auto}.category-picker{flex:0 1 auto;max-width:calc(100% - 118px)}
.filter-picker>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filter-picker select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px;appearance:auto}
.filter-chevron{flex:0 0 6px;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);color:var(--muted)}
.filter-picker:focus-within{outline:2px solid var(--action);outline-offset:2px}.filter-picker:hover{background:#ededf0}
#latest-hunt-peek{display:none!important}#ticker{display:none!important}
#settle{font-size:12px;line-height:18px;padding:8px 0;margin:0;min-height:34px;background:transparent;color:var(--muted);border-radius:0;display:flex;gap:6px}#settle .clk{width:5px;height:5px;box-shadow:none;background:var(--muted)}
#settle b{font-weight:500}#settle .mine-ct{display:none}
#discover .list{margin-top:0}.discovery-card{grid-template-columns:52px minmax(0,1fr) auto;column-gap:12px;min-height:126px;contain-intrinsic-size:auto 126px;padding:17px 0;align-items:start}
.discovery-card .ic{width:52px;height:52px;margin-top:2px}.discovery-card .tx{padding:0}.discovery-card .nm{font-size:16px;font-weight:600;line-height:21px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.discovery-card .app-hook{font-size:13px;line-height:19px;color:#626770;margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;letter-spacing:-.1px}
.discovery-card .app-context{display:block;font-size:11px;color:var(--muted);margin-top:6px;line-height:16px}.discovery-card .act{min-width:58px;align-self:center}.discovery-card .get{min-width:58px;min-height:44px;font-size:13px;padding:0 12px;border:1px solid var(--line);background:#fff}
.discovery-card::after{left:64px}.discovery-card .cap{font-size:10px}
.app-description{font-size:15px;line-height:23px;color:#626770;margin:18px var(--gutter) 8px}
#me .kpis{margin:0 0 14px}#me .kpi{background:transparent;padding:0 10px 0 0;border-radius:0}#me .kpi b{font-size:21px}#me .kpi span{font-size:12px}#me>.wrap>.sh2{margin-top:14px}
.portfolio-utility{margin:26px 0 0;border-top:1px solid var(--line)}.portfolio-utility>summary{cursor:pointer;font-size:15px;font-weight:600;min-height:52px;display:flex;align-items:center;justify-content:space-between}.portfolio-utility>summary::after{content:'+';color:var(--muted)}.portfolio-utility[open]>summary::after{content:'−'}
#me .push-card{margin-top:8px;background:transparent;padding:12px 0;border:0}#me .push-card p{font-size:13px;line-height:20px}
#me .daily-spin-entry{margin:16px 0;background:var(--wash);color:var(--ink);border:1px solid var(--line);font-size:13px;padding:12px 14px}.daily-spin-entry span{color:var(--action);font-size:12px}
#feed .lt{padding-top:0}.community-navigation{margin:12px 0 0}#feed .feedf{gap:20px}#feed-period{font-size:12px;line-height:18px;margin:12px 0 0}#feed .feed-alert{margin:16px 0}
.return-brief{display:flex;gap:12px;align-items:center;width:100%;text-align:left;background:var(--wash);border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin:12px 0 4px}.return-brief strong{font-size:15px;font-weight:600;display:block}.return-brief small{display:block;color:var(--muted);font-size:12px;line-height:18px;margin-top:3px}.return-brief>span:last-child{margin-left:auto;color:var(--action)}
.receipt{position:fixed;z-index:60;left:50%;bottom:calc(86px + env(safe-area-inset-bottom));transform:translate(-50%,16px);width:min(420px,calc(100% - 32px));padding:14px 16px;border-radius:20px;background:#17191d;color:white;box-shadow:0 8px 30px #0002;display:flex;gap:12px;align-items:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .3s var(--spring)}
.receipt.on{opacity:1;transform:translate(-50%,0);pointer-events:auto}.receipt-check{width:30px;height:30px;display:grid;place-items:center;border:1px solid #ffffff60;border-radius:50%;flex-shrink:0}.receipt-copy{min-width:0;flex:1}.receipt strong{display:block;font-size:14px;line-height:20px}.receipt small{display:block;font-size:11px;line-height:17px;color:#d4d6dc}.receipt button{min-height:44px;color:white;font-size:12px;font-weight:600;padding:0 4px;text-decoration:underline;text-underline-offset:4px}
.get[data-confirmed]{color:var(--action);background:#f4f9de;border-color:#deedaa}.balance-strip.updated{animation:balance-update .4s ease}.signin .fine{line-height:19px}.signin details summary{font-size:13px;color:var(--muted);min-height:44px;cursor:pointer;display:grid;place-items:center}.signin .auth-context{font-size:12px;color:var(--muted);line-height:18px;margin:16px 0}.signin .logo{background:transparent}
@keyframes balance-update{50%{transform:translateY(-2px)}}
#discover .setup-invite{margin-top:24px}.welcome-note{font-size:13px;color:var(--muted);line-height:20px;margin:12px 0 6px}
@media(max-width:360px){.discovery-card{grid-template-columns:44px minmax(0,1fr) auto;column-gap:10px}.discovery-card .ic{width:44px;height:44px}.discovery-card .nm{font-size:15px}.discovery-card .get{min-width:52px;padding:0 9px}.discovery-card::after{left:54px}.receipt{padding:12px;gap:8px}}
@media(prefers-reduced-motion:reduce){.receipt,.tabs .sel{transition:none}.balance-strip.updated{animation:none}}

#discover .bar{display:none!important}.account-nav .balance-strip .start-playing{background:transparent;border:0;padding:0;box-shadow:none;align-items:flex-start;gap:2px;flex-direction:column;justify-content:center}.start-playing strong{color:var(--action);font-size:14px}.start-playing small{font-size:11px}.discovery-card .app-hook{-webkit-line-clamp:3}
[data-quick-bet]{touch-action:pan-y;-webkit-touch-callout:none;user-select:none;transition:transform .12s ease,background .15s ease}[data-quick-bet]:active{transform:scale(.94)}[data-quick-bet].bet-holding{background:var(--action)!important;color:white!important;transform:scale(1.06)}
.hold-preview{position:fixed;left:50%;bottom:calc(100px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:10000;width:min(340px,calc(100% - 32px));padding:18px 20px;background:#17191d;color:white;border-radius:24px;box-shadow:0 8px 32px #0003;pointer-events:none;overflow:hidden;text-align:center}.hold-preview[hidden]{display:none}.hold-preview strong{display:block;font-size:28px;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.hold-preview span{display:block;font-size:12px;color:#d0d3d9;margin-top:5px}.hold-preview i{position:absolute;bottom:0;left:0;height:4px;width:100%;background:#ccff00;transform:scaleX(var(--hold-progress));transform-origin:left;transition:transform .12s linear}
.ownership-flight{position:fixed;width:36px;height:36px;border-radius:9px;object-fit:cover;z-index:10001;pointer-events:none}.discovery-badge{display:block;color:var(--action);font-size:11px;line-height:17px;margin-top:5px}.receipt.first-bet .receipt-check{background:var(--action);color:var(--on-accent,#101114)}.receipt-check{animation:backed-pop .35s ease-out}@keyframes backed-pop{from{transform:scale(.5)}to{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){[data-quick-bet],.hold-preview i{transition:none}[data-quick-bet]:active,[data-quick-bet].bet-holding{transform:none}.receipt-check{animation:none}}
.recap-spotlight{background:var(--wash);border-radius:20px;padding:18px;margin:18px 0}.recap-spotlight small{display:block;color:var(--muted);font-size:12px;margin-bottom:7px}.recap-spotlight strong{display:block;font-size:20px;line-height:26px;margin-bottom:5px}.recap-spotlight>span{font-size:14px}
.ai-label{display:inline-flex;vertical-align:middle;align-items:center;border-radius:5px;padding:2px 5px;font-size:10px;font-weight:600;line-height:14px;color:#626c50;background:#edf1e6;white-space:nowrap}.ai-reason{font-size:12px;line-height:18px;color:var(--muted);margin:6px 0 10px}.audience-picker{display:block;margin:10px 0}.audience-picker select{font:inherit;font-size:13px;color:var(--ink);background:var(--wash);border:0;border-radius:20px;min-height:44px;padding:0 30px 0 14px;max-width:100%}
.profile-name{display:flex;align-items:center;gap:6px}.profile-name strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-label{flex-shrink:0}.lbrow .n{display:flex;align-items:center;gap:6px;min-width:0}.lbrow .n>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audience-picker[hidden]{display:none}

/* One navigation row for discovery and activity; secondary filters stay quiet. */
.discovery-toolbar{gap:18px}.discovery-toolbar>button{white-space:nowrap;flex-shrink:0}.discovery-toolbar .search-launch{flex:0 0 44px}
.feed-context{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;margin-top:6px}.feed-context #feed-period{margin:0;font-size:12px;line-height:18px}.feed-filter{position:relative;margin:0;flex-shrink:0}.feed-filter summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--muted);font-size:12px;gap:3px}.feed-filter summary::-webkit-details-marker{display:none}.feed-filter summary:after{content:'⌄';margin-left:4px}.feed-filter[open] summary{color:var(--action)}.feed-filter>label{position:absolute;right:0;top:44px;z-index:5;display:grid;gap:8px;min-width:190px;padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 28px #00000012;font-size:12px;color:var(--muted)}.feed-filter select{font-size:16px;width:100%}
@media(max-width:360px){.discovery-toolbar{gap:12px}.discovery-toolbar button{font-size:14px}}

.rank-value{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.rank-movement{font-size:11px;line-height:1.2;font-weight:600;color:var(--secondary,#777);font-variant-numeric:tabular-nums}.rank-movement.up{color:#248245}.rank-movement.down{color:#c4463c}

/* A distinct, compact action at the trailing edge of Discover filters. */
.shuffle-apps{margin-left:auto;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;height:44px;padding:0 14px;border:1px solid var(--border);border-radius:24px;background:var(--wash);color:var(--action);font-family:inherit;font-size:14px;font-weight:600;line-height:1;cursor:pointer;transition:background .15s,transform .15s}
.shuffle-apps:hover{background:var(--fill);border-color:var(--label3)}.shuffle-apps:active{transform:scale(.94)}.shuffle-apps:focus-visible{outline:2px solid var(--action);outline-offset:3px}
.shuffle-apps svg{display:block;flex:none;width:22px;height:22px}.category-picker{flex-shrink:1}
@media(max-width:440px){.shuffle-apps{width:44px;padding:0}.shuffle-apps span{display:none}.filter-picker{padding:0 12px;gap:9px}}
@media(prefers-reduced-motion:reduce){.shuffle-apps{transition:none}.shuffle-apps:active{transform:none}}


.account-nav .search-launch{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin:0 0 8px auto;border-radius:50%;color:var(--action);background:var(--wash)}.account-nav .search-launch:hover{background:var(--fill)}.account-nav .search-launch:focus-visible{outline:2px solid var(--action);outline-offset:2px}
/* Keep the fund summary compact so the investments lead the screen. */

/* Portfolio uses the same page gutters and open list rhythm as Discover. */
.share-card-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;flex-shrink:0;border:1px solid var(--border);background:var(--wash);color:var(--action);border-radius:22px;padding:0 14px;font-size:14px;font-weight:600}.share-card-button:focus-visible{outline:2px solid var(--action);outline-offset:3px}.share-card-button:active{background:var(--fill)}
.app-share-line{display:flex;align-items:center;gap:12px;padding:0 24px;margin:10px 0 20px}.app-share-line .app-description{padding:0;margin:0;flex:1}.app-share-line .share-card-button{align-self:flex-start}
.portfolio-overview{padding:8px 0 20px}.portfolio-hero{display:flex;align-items:center;justify-content:space-between;gap:20px}.portfolio-label{display:block;color:var(--muted);font-size:13px;line-height:20px}.portfolio-total{display:block;font-size:40px;line-height:1.2;letter-spacing:-1.2px;font-weight:650;font-variant-numeric:tabular-nums;margin-top:4px}.portfolio-share{background:#ccff00;border-color:#ccff00;color:#101114;padding:0 16px;gap:7px}.portfolio-share svg{width:18px;height:18px}.portfolio-share:active{background:#b8e600}.portfolio-allocation{display:flex;flex-wrap:wrap;gap:8px 22px;margin:14px 0 0;font-size:13px;color:var(--muted)}.portfolio-allocation b{font-weight:500;color:var(--ink);margin-left:5px;font-variant-numeric:tabular-nums}.portfolio-performance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0 0}.portfolio-performance dt{font-size:12px;line-height:18px;color:var(--muted)}.portfolio-performance dd{font-size:18px;line-height:25px;font-weight:600;font-variant-numeric:tabular-nums;margin:5px 0 0}.portfolio-performance small{font-size:13px;font-weight:400;color:var(--muted)}
#portfolio-tabs{margin-top:0;gap:26px}#portfolio-tabs button{min-height:48px}#realized-summary:empty{display:none}#realized-summary:not(:empty){font-size:12px;margin:12px 0}.portfolio-content .portfolio-row{grid-template-columns:48px minmax(0,1fr) 68px;column-gap:12px;min-height:100px;padding:8px 0;content-visibility:visible}.portfolio-content .portfolio-row .ic{width:48px;height:48px;border-radius:11px}.portfolio-content .portfolio-row .nm{font-size:16px;line-height:22px}.portfolio-content .portfolio-row .sb{font-size:12px;line-height:18px}.portfolio-content .portfolio-row .cap{font-size:15px;line-height:20px;font-weight:600;color:var(--ink)}.portfolio-content .portfolio-row .act{min-width:0;align-items:flex-end;gap:5px}.portfolio-content .sell-button{min-width:64px;padding:0 12px}.portfolio-content .row::after{left:60px}.portfolio-tools{display:flex;justify-content:space-between;gap:16px;padding:14px 0;margin-top:12px;border-top:1px solid var(--line)}.portfolio-tools button{min-height:44px;color:var(--muted);font-size:13px}.portfolio-tools+.portfolio-utility{margin-top:0}@media(max-width:350px){.portfolio-total{font-size:34px}.portfolio-performance{gap:10px}.portfolio-performance dd{font-size:16px}.portfolio-content .portfolio-row{column-gap:9px;grid-template-columns:44px minmax(0,1fr) 64px}.portfolio-content .portfolio-row .ic{width:44px;height:44px}.portfolio-content .portfolio-row .nm{font-size:15px}}

/* Bulk exit belongs beside the holdings controls, not the primary fund summary. */
.portfolio-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:4px}
.portfolio-controls #portfolio-tabs{flex:0 1 auto;min-width:0;gap:24px}
.sell-all-button{flex:none;min-height:36px;padding:0 12px;border:1px solid var(--border);border-radius:18px;background:var(--wash);color:var(--text-secondary);font:inherit;font-size:12px;font-weight:600;white-space:nowrap}
.sell-all-button[hidden]{display:none}.sell-all-button:hover{color:var(--label);border-color:var(--label3)}.sell-all-button:focus-visible{outline:2px solid var(--action);outline-offset:3px}.sell-all-button:disabled{opacity:.5;cursor:wait}
@media(pointer:coarse){.sell-all-button{min-height:44px}}
