/* One shared dark palette for the app, its sheets, and PWA chrome. */
:root{color-scheme:dark;--bg:#101114;--bg2:#1c1e23;--label:#f4f4f5;--label2:#a8abb4;--label3:#858995;--sep:#30333b;--accent:#ccff00;--on-accent:#101114;--green:#65d993;--red:#ff8078;--fill:#292c33;--fill2:#202329;--glass:rgba(24,26,31,.94);--glass-edge:#363941;--surface:#101114;--surface-secondary:#1c1e23;--border:#30333b;--text-primary:#f4f4f5;--text-secondary:#a8abb4;--ink:#f4f4f5;--muted:#a8abb4;--secondary:#a8abb4;--paper:#191b20;--wash:#1c1e23;--line:#30333b;--action:var(--accent)}
html,body,body::before,html.modal-open,.top,body #discover .top,.hunt-screen,.hunt-header{background:var(--bg)}
.glass{box-shadow:0 8px 30px #0005,inset 0 0 0 1px var(--border)}
.sheet,.cele-card{background:var(--paper);color:var(--ink)}.grab{background:var(--paper)}
.grab::after{background:#555a65}.scrim{background:rgba(0,0,0,.65)}
.seg .thumb,.tabs .sel{background:#30333b;box-shadow:none}.tabs{background:var(--glass);border:1px solid var(--border)}
.tabs button{color:var(--muted)}.tabs button[aria-selected=true]{color:var(--action)}
.chip[aria-pressed=true],.qtip[aria-expanded=true]{background:var(--label);color:var(--bg)}
.formula,.amt,.feed-bet,.discovery-card .get{background:var(--wash);border-color:var(--border);color:var(--action)}
.btn,.amt.all,.get.solid,.feed-alert button,#setup-dialog .setup-primary{background:#ccff00;color:#101114}
.btn.light{background:var(--wash);color:var(--action)}
.discovery-card .app-hook,.app-description{color:var(--muted)}
.discovery-card{min-height:108px;contain-intrinsic-size:auto 108px;padding:16px 0}
.discovery-card .app-hook{display:block;overflow:visible;-webkit-line-clamp:unset;line-height:18px;margin-top:4px}
.filter-picker:hover{background:#292c33}.ai-label{background:#292d24;color:#c6d2b5}
.feed-alert,.feed-alert.is-on{background:#202719;border-color:#3e4d24}.alert-bell{background:#303b1e;color:#ccff00}.feed-alert span:not(.alert-bell),.feed-alert.is-on strong{color:#c4d4ad}
.feed-alert.is-on button{color:var(--action)}
.up,.rank-movement.up{color:var(--green)}.down,.rank-movement.down{color:var(--red)}
.spin-panel{background:radial-gradient(ellipse at 50% 45%,#342b1d,var(--paper) 70%)}.spin-eyebrow{color:#efc77e}.spin-panel>p,.spin-odds{color:var(--muted)}.spin-panel #spin-result{color:var(--ink)}.wheel-pointer{border-top-color:#f4f4f5;filter:drop-shadow(0 2px 1px #000)}
.receipt,.hold-preview{background:#252a33;border:1px solid #424957;box-shadow:0 10px 35px #0008}
.get[data-confirmed]{background:#293416;border-color:#576d22;color:#ddff66}
input,textarea{color:var(--label);caret-color:var(--action)}input::placeholder,textarea::placeholder{color:#969ba6}
a{color:var(--action)}.player-avatar{color:#252831}.player-avatar img{background:var(--wash)}
.investor-line{display:flex;align-items:center;gap:6px;min-height:32px;max-width:100%;margin:4px 0 -4px;font-size:11px;line-height:16px;text-align:left;color:var(--muted)}
.investor-line:hover{color:var(--action)}.investor-avatars{display:flex;flex-shrink:0}.investor-avatars:empty{display:none}
.investor-avatars .av{width:20px;height:20px;font-size:12px;border:2px solid var(--bg);margin-left:-5px}.investor-avatars .av:first-child{margin-left:0}.investor-avatars .avatar-emoji{font-size:12px}.investor-avatars img{width:100%;height:100%;border-radius:50%}
.investor-sheet{padding-top:20px}.investor-sheet h3{font-size:22px;margin:0 36px 8px 0}.investor-list{list-style:none;padding:0;margin:20px 0}
.investor-person{display:flex;align-items:center;gap:12px;width:100%;text-align:left;min-height:76px;border-bottom:1px solid var(--border)}.investor-person>span:not(.av){flex:1;min-width:0;font-size:14px}.investor-person small{display:block;font-size:12px;line-height:18px;color:var(--muted);font-weight:400;margin-top:3px}.investor-person strong{text-align:right;font-size:14px}.investor-person .av{flex-shrink:0}
.since{background:#242a1c}.hunt-search,#wallet{background:var(--wash);border-color:var(--border)}#wallet small{color:var(--muted)}
.portfolio-open .sb.up,.sale-review .up,.feed-copy .up{color:var(--green)}.portfolio-open .sb.down,.sale-review .down,.feed-copy .down{color:var(--red)}
.top{border-color:var(--border)}.discovery-card .get,#discover .get{background:var(--wash);color:var(--action);border-color:var(--border)}
/* Stable first paint: reserve asynchronous content without rebuilding the list. */
#discover .row{content-visibility:visible;contain-intrinsic-size:none}
.discovery-loading{min-height:calc(100svh - 280px);padding:40px 0;color:var(--muted);font-size:13px}
.investor-slot{height:32px;margin-top:4px;min-width:0;overflow:hidden}
.investor-line{height:32px;min-height:32px;margin:0;overflow:hidden}.investor-line>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.investor-placeholder{display:block;width:90px;height:8px;border-radius:4px;background:var(--wash);margin:12px 0}
#discover .ic img{opacity:1;transition:none}.account-nav .balance-strip{height:52px}.balance-strip strong{font-variant-numeric:tabular-nums}

/* One quiet ordering control; factual momentum sits with the app, not in another card. */
.momentum-line{display:block;font-size:12px;line-height:17px;color:var(--label2);margin:5px 0;overflow-wrap:anywhere}
.momentum-line.positive{color:var(--green)}
.momentum-detail{margin:8px 0 16px;color:var(--label2);font-size:13px;line-height:1.5}
.momentum-detail summary{min-height:44px;align-content:center;color:var(--accent);cursor:pointer}
.momentum-detail p{margin:4px 0 8px}.momentum-detail small{color:var(--label3)}

/* Optional heads-up settings sit in the existing list flow. */
.radar-settings{margin:12px 0 16px;border-bottom:1px solid var(--line,#303238);padding:0 0 14px;color:#a5a6ad;font-size:14px}
.radar-settings p{line-height:1.5;margin:8px 0 14px}.radar-settings label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
.radar-settings select{max-width:70%;background:#202227;color:#f4f4f6;border:1px solid #36383e;border-radius:12px;padding:10px;font:inherit;font-size:16px}.radar-settings button{min-height:44px;padding:10px 20px}.radar-settings #radar-status{font-size:12px}

/* One category filter, and quiet, truthful observed-history charts. */
.discovery-filters .category-picker{max-width:calc(100% - 112px)}
.ratings-history{padding:20px 0;margin:16px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);min-height:220px}
.ratings-heading{display:flex;align-items:start;justify-content:space-between;gap:16px}
.ratings-history h3{margin:0;font-size:16px;letter-spacing:-.2px}
.ratings-heading p,.ratings-heading small{font-size:11px;color:var(--text-secondary);margin:5px 0 0;display:block;font-weight:400}
.ratings-heading strong{text-align:right;font-size:20px;font-variant-numeric:tabular-nums}
.ratings-history svg{display:block;width:100%;max-height:180px;overflow:visible;margin-top:8px}
.ratings-grid{stroke:var(--border);stroke-width:.6;fill:none}
.ratings-line{stroke:var(--accent);stroke-width:2.5;fill:none;stroke-linecap:round;stroke-linejoin:round}
.ratings-dot{fill:#e5ff80;stroke:var(--surface);stroke-width:1.5}
.ratings-history svg text{font-size:10px;fill:var(--text-secondary)}
.ratings-reading{font-size:13px;line-height:20px;margin:8px 0;min-height:40px;font-variant-numeric:tabular-nums}
.ratings-reading span,.ratings-footnote{font-size:11px;color:var(--text-secondary);line-height:17px}
.ratings-scrubber{width:100%;height:28px;accent-color:var(--accent);margin:0;touch-action:pan-y}
.ratings-footnote{margin:6px 0 12px}
.ratings-data{font-size:12px;color:var(--text-secondary)}
.ratings-data summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
.ratings-data table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.ratings-data th,.ratings-data td{padding:8px 0;border-bottom:1px solid var(--border);text-align:right}
.ratings-data th:first-child,.ratings-data td:first-child{text-align:left}
#sheet .ratings-history{margin:16px 24px}
#sheet .momentum-detail{margin-left:24px;margin-right:24px}

/* Compact Discover controls: timestamp, category, bell, shuffle. */
#discover .discovery-filters{margin:8px 0 8px}
#discover .settle{margin-top:12px;min-height:28px}
#discover .discovery-filters .category-picker{max-width:calc(100% - 180px)}
.alerts-bell{margin-left:auto;flex:0 0 44px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--wash);color:var(--label)}
.alerts-bell:hover{background:#292c32}.alerts-bell:active{transform:scale(.96)}
.alerts-bell:focus-visible{outline:2px solid var(--action);outline-offset:3px}
.discovery-filters .shuffle-apps{margin-left:0}
.radar-dialog{width:calc(100% - 24px);max-width:480px;max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:24px;border:1px solid var(--line);border-radius:24px;background:var(--surface,#191b20);color:var(--label,#f5f5f7);box-sizing:border-box;overscroll-behavior:contain}
.radar-dialog::backdrop{background:#0009}
.radar-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.radar-dialog h2{font-size:20px;letter-spacing:-.4px;margin:0}
#radar-close{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:var(--wash);color:var(--label2);font-size:20px}
.radar-dialog .radar-settings{margin:0;padding:0;border:0}
.radar-dialog .radar-settings #radar-save{display:block;width:100%;margin:20px 0 12px}
html.radar-open{overflow:hidden}
@media(max-width:440px){#discover .discovery-filters .category-picker{max-width:calc(100% - 104px)}}

/* Neon actions always pair a lime fill with dark ink. */
.prize-wheel>span:nth-child(3){color:var(--on-accent)}
.spin-panel .btn{color:#fff}

.feed-copy b{color:var(--label)}
