@import url('editorial-fonts.css');
/* Shared typography and palette, with Midnight Glow surfaces below. */
:root,:root[data-theme=dark]{color-scheme:dark;--bg:#1b1c1e;--panel:#222326;--card:#222326;--surface:#27282c;--sidebar:#17181a;--line:#34363b;--muted:#a4a6aa;--text:#eee;--accent:#eee;--chip:#2a2b2f;--green:#45b883;--red:#e8665d;--neutral:#a4a6aa;--on-accent:#1b1c1e;--font:'Inter','Helvetica Neue',Arial,sans-serif;--serif:'Libre Caslon Display',Georgia,serif}
:root[data-theme=light]{color-scheme:light;--bg:#f4f3ef;--panel:#efeee9;--card:#efeee9;--surface:#eae8e1;--sidebar:#ecebe6;--line:#d8d5cc;--muted:#5a5a5a;--text:#1a1a1a;--accent:#1a1a1a;--chip:#e4e2db;--green:#1d8656;--red:#c23f37;--neutral:#727272;--on-accent:#f4f3ef}
html[data-theme] body{background:var(--bg);color:var(--text);font:14px/1.55 var(--font)}
html[data-theme] body :is(button,input,textarea,select){font-family:var(--font);border-radius:0;accent-color:var(--accent)}
html[data-theme] body :is(h1,h2,h3,.price,.profile-metric>strong,.stat-value,.brand,.auth-brand){font-family:var(--serif);font-weight:400;letter-spacing:0;color:var(--text)}
html[data-theme] body h1{font-size:36px;line-height:1.15}html[data-theme] body h2{font-size:25px;line-height:1.25}html[data-theme] body h3{font-size:23px}
html[data-theme] body :is(button,a):hover:not(:disabled){color:var(--text)}
html[data-theme] body :is(button,a,input,textarea,select,[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
html[data-theme] body :is(input,textarea,select){background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-theme] body :is(input,textarea)::placeholder{color:var(--muted);opacity:.85}
html[data-theme] body :is(.soft-card,.prediction-card,.history-card,.thesis-card,.group-home,.group-card,.profile-metric,.auth-card,.search-results,.chart-tooltip,.feed-empty,.profile-empty,.discovery-empty,.people-scroll,.dm-layout,dialog,.composer-box,.gate-box,.privacy-options label,.market-data-notice,.shared-community-note,.holdings-card,.investment-card,.prediction-track,.empty-state){border-radius:0;background:var(--panel);border-color:var(--line);box-shadow:none;color:var(--text)}
html[data-theme] body :is(.sidebar,.topbar){background:var(--sidebar);border-color:var(--line)}
html[data-theme] body .brand{font-size:29px;letter-spacing:0;color:var(--text);font-weight:400}
html[data-theme] body :is(.brand-icon,.brand-mark,.brand .logo,.brand>svg){display:none}
html[data-theme] body .sidebar{width:232px;padding:24px 12px 18px}
html[data-theme] body .sidebar .brand{padding:0 14px 22px;margin:0}
html[data-theme] body .sidebar-nav{gap:2px;margin:0 0 28px}
html[data-theme] body .sidebar-nav a{height:40px;padding:0 14px;border-radius:0;border-left:2px solid transparent;font-size:14px;font-weight:500;color:var(--muted)}
html[data-theme] body .sidebar-nav a.active{border-left-color:var(--text);background:var(--chip);color:var(--text)}
html[data-theme] body .sidebar-nav svg{width:17px;height:17px}
html[data-theme] body .stock-item{border-radius:0;border:0;border-left:2px solid transparent;background:transparent;color:var(--text);padding:9px 14px}
html[data-theme] body .stock-item.active{background:var(--chip);border-left-color:var(--text);color:var(--text)}
html[data-theme] body .stock-item.active:hover{color:var(--text)!important}
html[data-theme] body .stock-item .mini-change{color:var(--green)}
html[data-theme] body .sidebar-label{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
html[data-theme] body .account-link{border-color:var(--line);color:var(--text)}
html[data-theme] body :is(.avatar,.avatar.mine,.message .avatar,.profile-avatar,.dm-avatar){background:var(--chip)!important;color:var(--text)!important;border:1px solid var(--line);border-radius:50%}
html[data-theme] body .topbar{min-height:68px;padding:14px 28px;gap:20px;border-bottom:1px solid var(--line)}
html[data-theme] body .search-wrap{border-radius:0;background:var(--panel);border:1px solid var(--line);padding:9px 12px}
html[data-theme] body :is(kbd,.demo-badge,.sample-label,.nav-count){border-radius:0;color:var(--muted);border-color:var(--line);background:transparent}
html[data-theme] body .workspace{padding-top:0}
html[data-theme] body :is(.ticker-tape,.ticker-strip,.market-ticker,.rolling-ticker){border-radius:0;background:var(--sidebar);border-color:var(--line)}
html[data-theme] body .stock-overview{background:transparent;padding:20px 0 16px;border:0}
html[data-theme] body .company-symbol{display:none}
html[data-theme] body .quote-block .price{font-size:44px}
html[data-theme] body .ticker-eyebrow{font-size:11px;letter-spacing:.1em;text-transform:uppercase}
html[data-theme] body .stat-label{font-size:10px;letter-spacing:.12em;text-transform:uppercase}
html[data-theme] body .stat-value{font-size:21px}
html[data-theme] body .chat-panel{border:1px solid var(--line);padding:22px;box-shadow:none}
html[data-theme] body .chat-heading h2{font-size:24px}
html[data-theme] body .message p{color:var(--text);font-size:13px;line-height:1.7}
html[data-theme] body :is(.room-info,.chat-footer,.main-footer,.profile-footnote,.chart-hint,.chart-labels,.feed-summary p,.subtitle){color:var(--muted)}
html[data-theme] body :is(.primary-button,.send-button,.primary,.submit,.auth-card button[type=submit]){background:var(--accent);color:var(--on-accent);border:1px solid var(--accent);border-radius:0;box-shadow:none;font-weight:600}
html[data-theme] body :is(.primary-button,.send-button,.primary,.submit):hover:not(:disabled){background:var(--accent);color:var(--on-accent)!important;filter:brightness(.9)}
html[data-theme] body :is(.callout-group-tabs,.prediction-source-tabs,.prediction-filters,.profile-filters,.groups-page-tabs){border-radius:0;background:var(--panel);border-color:var(--line)}
html[data-theme] body :is(.callout-group-tabs,.prediction-source-tabs,.profile-filters,.prediction-filters,.range-buttons) button{border-radius:0;font-size:12px;color:var(--muted);box-shadow:none}
html[data-theme] body :is(.callout-group-tabs,.prediction-source-tabs,.profile-filters,.prediction-filters) button:is([aria-selected=true],[aria-pressed=true],.active){background:var(--accent);color:var(--on-accent);box-shadow:none}
html[data-theme] body .range-buttons .selected{background:var(--chip);color:var(--text);outline:1px solid var(--line)}
html[data-theme] body :is(.content-tabs,.room-tabs,.profile-tabs){border-bottom:1px solid var(--line)}
html[data-theme] body :is(.content-tabs,.room-tabs,.profile-tabs) button{border-radius:0;color:var(--muted)}
html[data-theme] body :is(.content-tabs,.room-tabs,.profile-tabs) button:is(.active,[aria-selected=true]){color:var(--text);border-bottom-color:var(--text)}
html[data-theme] body .content-tabs button.active:after{width:100%;background:var(--text);border-radius:0}
html[data-theme] body :is(.direction-pill,.position-badge,.thesis-outlook.bullish){color:var(--green);background:color-mix(in srgb,var(--green) 12%,transparent);border:1px solid color-mix(in srgb,var(--green) 35%,transparent);border-radius:0}
html[data-theme] body :is(.bearish-pill,.thesis-outlook.bearish){color:var(--red);background:color-mix(in srgb,var(--red) 12%,transparent);border-color:color-mix(in srgb,var(--red) 35%,transparent)}
html[data-theme] body :is(.neutral-pill,.thesis-outlook.neutral){color:var(--neutral);background:var(--chip);border-color:var(--line)}
html[data-theme] body :is(.marker-swatch.neutral,.callout-dot.neutral){background:var(--neutral)}
html[data-theme] body :is(.personal-cover,.group-cover,.media-tile){background:linear-gradient(125deg,var(--surface),var(--sidebar));border-radius:0}
html[data-theme] body :is(.personal-identity,.group-identity){border-color:var(--line)}
html[data-theme] body .personal-identity .profile-avatar{border-color:var(--bg)}
html[data-theme] body :is(.profile-stats,.profile-tabs,.profile-identity,.history-card,.thesis-card){border-color:var(--line)}
html[data-theme] body :is(.profile-metric,.history-card,.thesis-card){border:1px solid var(--line)}
html[data-theme] body :is(.personal-edit,.social-profile-link,.group-picker select,.discovery-select select,.follow-voice,.callout-visibility,#theme-toggle,#privacy-open){border-radius:0;background:transparent;color:var(--text);border-color:var(--line)}
html[data-theme] body :is(.direction-options .selected,.direction-options [data-direction=down].selected){background:var(--chip);border-color:var(--text);color:var(--text)}
html[data-theme] body :is(dialog,#moderation-dialog){background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:0;padding:28px;box-shadow:0 24px 90px #0005}
html[data-theme] body dialog::backdrop{background:#0009;backdrop-filter:blur(3px)}
html[data-theme] body dialog :is(input,textarea,select){background:var(--surface);color:var(--text);border-color:var(--line);border-radius:0}
html[data-theme] body :is(#profile-editor .dialog-heading,#media-crop-dialog .dialog-heading,#group-page-edit){background:var(--panel);color:var(--text);border-color:var(--line);border-radius:0}
html[data-theme] body :is(.privacy-options label:has(input:checked),.groups-nav.active){background:var(--chip);border-color:var(--text)}
html[data-theme] body .dm-layout{border:1px solid var(--line);background:var(--bg)}
html[data-theme] body .dm-inbox{background:var(--sidebar);border-color:var(--line)}
html[data-theme] body .dm-thread{background:var(--bg)}
html[data-theme] body :is(.dm-conversation,.dm-search-result){border-radius:0;color:var(--text)}
html[data-theme] body .dm-conversation[aria-current=true]{background:var(--chip);border-left:2px solid var(--text)}
html[data-theme] body :is(.dm-message,.dm-message.mine){border-radius:0;background:var(--panel);border:1px solid var(--line);color:var(--text)}
html[data-theme] body .dm-message.mine{background:var(--chip)}
html[data-theme] body :is(.dm-inbox h2,.room-info){font-family:var(--font);font-size:11px;letter-spacing:.12em;text-transform:uppercase}
html[data-theme] body .dm-inbox h1{font-size:30px}
html[data-theme] body .toast{background:var(--text);color:var(--bg);border-radius:0}
html[data-theme] body .invite-main{max-width:850px;padding:40px 24px;margin:auto}
html[data-theme] body .invite-main h1{font-size:46px}
html[data-theme] body .invite-main :is(#invite-result,.invite-row){background:var(--panel);border-color:var(--line);border-radius:0}
html[data-theme] body .invite-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 5%;border-bottom:1px solid var(--line)}
@media(min-width:1001px){html[data-theme] body :is(.topbar,.workspace){margin-left:232px}}
@media(max-width:1000px) and (min-width:701px){html[data-theme] body .sidebar{width:200px}html[data-theme] body :is(.topbar,.workspace){margin-left:200px}html[data-theme] body .topbar{gap:12px;padding:14px 20px}}
@media(max-width:700px){html[data-theme] body .sidebar{width:100%;padding:16px;gap:12px}html[data-theme] body .sidebar .brand{padding:0;font-size:27px}html[data-theme] body .sidebar-nav{gap:4px;margin:0}html[data-theme] body .sidebar-nav a{padding:7px 9px;height:auto;border-left:0;border-bottom:2px solid transparent}html[data-theme] body .sidebar-nav a.active{border-bottom-color:var(--text)}html[data-theme] body .topbar{padding:12px 16px;gap:10px}html[data-theme] body h1{font-size:30px}html[data-theme] body .stock-overview{padding:12px 0}html[data-theme] body .chat-panel{padding:18px}html[data-theme] body dialog{padding:20px}html[data-theme] body .quote-block .price{font-size:36px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Shared control radius also applies to feature rules with IDs. */
html[data-theme] body :is(button,input,textarea,select){border-radius:var(--radius-control)!important}
html[data-theme] body #messages-page :is(.dm-layout,.dm-message,[data-peer]){border-radius:0}
html[data-theme] body #messages-page :is(#dm-send,.dm-badge),html[data-theme] body #dm-privacy .primary{background:var(--accent);color:var(--on-accent)}
html[data-theme] body .stock-heading h1{font-size:36px;font-weight:400}
html[data-theme] body .callout-control-label{font:22px var(--serif)}
html[data-theme] body .topbar :is(#account-menu-button,#notifications-button){white-space:nowrap;font-size:12px}
html[data-theme] body .topbar .search-wrap{flex:1;min-width:120px;max-width:360px;margin-left:0}
html[data-theme] body .position-tag{border-radius:0}
html[data-theme] body .chart-line{stroke:var(--green)}
html[data-theme] body .price-down .chart-line{stroke:var(--red)}
html[data-theme] body a{color:inherit}
html[data-theme] body .media-avatar{border-radius:50%;border-color:var(--panel)}
html[data-theme] body :is(.profile-metrics,.profile-stats,.profile-summary,.history-prices,.audience-tag){border-radius:0}
html[data-theme] body .holding-highlight:not(circle){background:var(--chip);color:var(--text);box-shadow:inset 3px 0 var(--text)}
html[data-theme] body .invite-main button:not(.submit){background:var(--panel);color:var(--text);border:1px solid var(--line)}
html[data-theme] body .invite-main :is(.notice,.invite-row small,#invite-result p){color:var(--muted)}
@media(max-width:700px){html[data-theme] body .topbar .search-wrap{flex-basis:100%;max-width:none;width:100%;order:-1}html[data-theme] body .sidebar-nav{scrollbar-width:none}}

html[data-theme] body [data-performance="true"]{position:relative;isolation:isolate;background:var(--panel)!important;border:1px solid color-mix(in srgb,var(--performance-color) 30%,var(--line))!important;box-shadow:none}
html[data-theme] body [data-performance="true"]::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at top right,color-mix(in srgb,var(--performance-color) 9%,transparent),transparent 55%);opacity:.65}
html[data-theme] body [data-performance-strong="true"]{border-color:color-mix(in srgb,var(--performance-color) 80%,var(--line))!important}
html[data-theme] body [data-performance-strong="true"]::before{background:radial-gradient(ellipse at top right,color-mix(in srgb,var(--performance-color) 16%,transparent),transparent 55%),radial-gradient(ellipse at bottom left,color-mix(in srgb,var(--performance-color) 8%,transparent),transparent 40%);box-shadow:inset 0 0 18px color-mix(in srgb,var(--performance-color) 9%,transparent),0 0 12px color-mix(in srgb,var(--performance-color) 12%,transparent);animation:call-frame-breathe 3.8s ease-in-out infinite alternate}
.call-result-label{margin-left:auto;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap;color:var(--muted)}
.call-result-label.positive{color:var(--green)}.call-result-label.negative{color:var(--red)}
.history-card-top .status-tag{margin-left:auto}.history-card-top .call-result-label{margin-left:10px}
@keyframes call-frame-breathe{from{opacity:.45}to{opacity:1}}
@media(prefers-reduced-motion:reduce){html[data-theme] body [data-performance-strong="true"]::before{animation:none;opacity:.7}}
@media(max-width:500px){.history-card-top,.prediction-author{flex-wrap:wrap;gap:8px}.call-result-label{font-size:9px}}
.profile-ticker-filter{display:flex;align-items:center;gap:8px;font-size:12px}.profile-ticker-filter select{width:auto;min-width:110px;padding:8px}.call-exit-levels{font-size:12px;color:var(--muted);padding:8px 0;border-block:1px solid var(--line)}
@media(max-width:700px){.profile-filters,.profile-section-heading{flex-wrap:wrap}.profile-ticker-filter{width:100%}}

/* Midnight Glow: gradients sampled from the Dark and Light reference artboards.
   Keep solid color tokens separate so color-mix and chart colors remain valid. */
:root,:root[data-theme=dark]{
  --glow-page:radial-gradient(900px 520px at 12% -8%,rgba(88,120,190,.22),rgba(88,120,190,0) 65%),radial-gradient(800px 500px at 95% 5%,rgba(69,184,131,.10),rgba(69,184,131,0) 60%),linear-gradient(180deg,#1c1e22 0%,#18191b 100%);
  --glow-sidebar:linear-gradient(180deg,#1d2130 0%,#15161a 55%,#141517 100%);
  --glow-panel:linear-gradient(160deg,#282c38 0%,#1e1f23 100%);
  --glow-tape:linear-gradient(90deg,rgba(88,120,190,.10),rgba(88,120,190,0) 70%);
  --glow-button:linear-gradient(180deg,#fff 0%,#d7dbe3 100%);
  --glow-button-text:#151618;--glow-button-border:#d9d9d9;
}
:root[data-theme=light]{
  --glow-page:radial-gradient(900px 520px at 12% -8%,rgba(88,120,190,.16),rgba(88,120,190,0) 65%),radial-gradient(800px 500px at 95% 5%,rgba(29,134,86,.07),rgba(29,134,86,0) 60%),linear-gradient(180deg,#f6f6f3 0%,#f1f0ec 100%);
  --glow-sidebar:linear-gradient(180deg,#e7ebf3 0%,#eeede9 55%,#eeede8 100%);
  --glow-panel:linear-gradient(160deg,#fff 0%,#f5f7fc 100%);
  --glow-tape:linear-gradient(90deg,rgba(88,120,190,.08),rgba(88,120,190,0) 70%);
  --glow-button:linear-gradient(180deg,#2b3242 0%,#151922 100%);
  --glow-button-text:#fff;--glow-button-border:#151922;
}
html[data-theme] body{background:var(--glow-page);background-attachment:fixed;min-height:100svh}
html[data-theme] body .sidebar{background:var(--glow-sidebar)}
html[data-theme] body .topbar{background:transparent}
html[data-theme] body :is(.ticker-tape,.ticker-strip,.market-ticker,.rolling-ticker){background:var(--glow-tape)}
html[data-theme] body :is(.soft-card,.prediction-card,.history-card,.thesis-card,.group-home,.group-card,.profile-metric,.auth-card,.search-results,.chart-tooltip,.feed-empty,.profile-empty,.discovery-empty,.people-scroll,.composer-box,.gate-box,.privacy-options label,.market-data-notice,.shared-community-note,.holdings-card,.investment-card,.prediction-track,.empty-state,.search-wrap,.chat-panel,.callout-group-tabs,.prediction-source-tabs,.prediction-filters,.profile-filters,.groups-page-tabs,.dm-layout,.dm-inbox,.dm-message,dialog,#moderation-dialog,#profile-editor .dialog-heading,#media-crop-dialog .dialog-heading,#group-page-edit){background:var(--glow-panel)}
html[data-theme] body .dm-thread{background:transparent}
html[data-theme] body :is(.personal-cover,.group-cover,.media-tile){background:var(--glow-sidebar)}
html[data-theme] body .invite-main :is(#invite-result,.invite-row,button:not(.submit)){background:var(--glow-panel)}
html[data-theme] body :is(.primary-button,.send-button,.primary,.submit,.auth-card button[type=submit]),html[data-theme] body #messages-page #dm-send,html[data-theme] body #dm-privacy .primary{background:var(--glow-button);color:var(--glow-button-text);border-color:var(--glow-button-border)}
html[data-theme] body :is(.primary-button,.send-button,.primary,.submit):hover:not(:disabled){background:var(--glow-button);color:var(--glow-button-text)!important}
html[data-theme] body [data-performance="true"]{background:var(--glow-panel)!important}
html[data-theme] body .search-wrap input{background:transparent}
html[data-theme] body :is(.identity-settings,#identity-options) button{background:var(--glow-panel)}

/* Market artboard: the chart belongs to the page, not a filled panel. */
html[data-theme] body #market-page .stock-overview.soft-card{background:transparent;padding:0 0 20px;border:0}
html[data-theme] body .quote-header{align-items:flex-start;gap:20px}
html[data-theme] body .ticker-eyebrow{font-size:11px;font-weight:600;letter-spacing:.12em;margin:4px 0 4px;text-transform:uppercase}
html[data-theme] body .stock-title-line{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
html[data-theme] body .stock-title-line h1{font-size:42px;line-height:1.1;margin:0}
html[data-theme] body .stock-title-line #ticker-label{font:600 14px var(--font);letter-spacing:.06em;color:var(--muted)}
html[data-theme] body .quote-block .price{font-size:48px;line-height:1.1}
html[data-theme] body .quote-meta{margin-top:4px;min-height:0;justify-content:flex-end}
html[data-theme] body .market-data-notice{background:var(--surface);border:0;margin:8px 0 16px;padding:10px 14px;color:var(--muted)}
html[data-theme] body .market-status-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;background:var(--surface);padding:10px 14px;margin:12px 0 16px;color:var(--muted);font-size:12px}
html[data-theme] body #market-page .market-status-row .market-data-notice{display:contents;background:none;margin:0;padding:0}
html[data-theme] body .callout-controls{margin:16px 0 12px}
html[data-theme] body .stock-overview .chart-container{height:240px;margin:0}
html[data-theme] body .chart-line{stroke-width:1.7;vector-effect:non-scaling-stroke}
html[data-theme] body .chart-controls{margin-top:14px;flex-wrap:wrap}
html[data-theme] body .chart-controls .callout-marker-legend{margin:0;margin-left:auto}
html[data-theme] body .chart-controls .chart-hint{display:none}
html[data-theme] body #chart-callout-summary{font-size:10px}
html[data-theme] body .range-buttons{gap:4px}
html[data-theme] body .range-buttons .selected{background:transparent;outline:1px solid var(--text)}
html[data-theme] body .stock-stats{margin-top:18px;padding-top:16px}
html[data-theme] body .stock-stats .stat-value{font:600 20px var(--font)}
html[data-theme] body .predictions-section{border-top:1px solid var(--line);padding-top:22px;margin-top:0}
html[data-theme] body .chat-panel .message{margin:0;padding:16px 0;border-bottom:1px solid var(--line)}
html[data-theme] body .chat-panel .message:has(+.message-continuation){border-bottom:0;padding-bottom:0}
html[data-theme] body .chat-panel .message:has(+.message-continuation) p{margin-bottom:0}
html[data-theme] body .chat-panel .message.message-continuation{padding-top:0}
html[data-theme] body .chat-panel .message p{font-size:14px;line-height:1.65;margin-top:12px}
html[data-theme] body .chat-panel .message-author{font-size:14px;font-weight:600;flex-wrap:wrap}
html[data-theme] body .chat-position-inline{border-radius:4px;padding:2px 6px;letter-spacing:.07em;font-size:10px;border:1px solid currentColor;background:transparent}
html[data-theme] body .chat-position-inline.is-long{color:var(--green);background:transparent}
html[data-theme] body .chat-position-inline.is-short{color:var(--red);background:transparent}
html[data-theme] body .prediction-filters{display:inline-flex;gap:6px;padding:4px;align-items:center}
html[data-theme] body .prediction-filters button{padding:9px 16px;min-height:38px;line-height:1.35;white-space:nowrap}
/* Keep chart space stable while a new timeframe loads; reveal all layers together. */
html[data-theme] body .chart-loading :is(#price-chart,.callout-rail,.chart-labels,.chart-callout-empty,.callout-marker-legend){visibility:hidden}
html[data-theme] body .chart-loading .chart-container{cursor:progress}
html[data-theme] body .chart-loading .chart-data-state{visibility:visible;color:var(--muted)}
/* Midnight Glow Light v2 — Platinum Sheen reference tokens. */
:root[data-theme=light]{
 --bg:#f6f7f9;--panel:#f7f8fa;--card:#f7f8fa;--surface:#f1f3f6;
 --sidebar:#e2e6eb;--line:#d3d8df;--muted:#5b626c;--text:#15181d;
 --accent:#15181d;--chip:#e8ebef;--neutral:#8d939b;--on-accent:#fff;
 --glow-page:linear-gradient(135deg,#fff 0%,#eef0f4 38%,#fafbfc 62%,#e8ebf0 100%);
 --glow-sidebar:linear-gradient(160deg,#f4f5f8 0%,#e2e6eb 100%);
 --glow-panel:linear-gradient(170deg,#fff 0%,#f7f8fa 70%,#eef0f4 100%);
 --glow-tape:linear-gradient(90deg,rgba(255,255,255,.9),rgba(228,231,236,.6) 50%,rgba(255,255,255,.9));
 --glow-button:linear-gradient(180deg,#fff 0%,#e4e7ec 45%,#cfd4db 100%);
 --glow-button-text:#15181d;--glow-button-border:#aeb4bd;
}
html[data-theme=light] body :is(input,textarea)::placeholder{color:#8d939b;opacity:1}
html[data-theme=light] body.editorial-login .auth{color:#141414}
html[data-theme=light] body.editorial-login :is(.subtitle,.greeting,.privacy,.switch){color:#555}
html[data-theme=light] body.editorial-login #identity-options button{background:#000;color:#fff;border-color:#000}
@media(max-width:700px){
 html[data-theme] body .stock-title-line h1{font-size:30px}
 html[data-theme] body .quote-block .price{font-size:32px}
 html[data-theme] body .ticker-eyebrow{font-size:9px}
 html[data-theme] body .stock-overview .chart-container{height:210px}
 html[data-theme] body .chart-controls .callout-marker-legend{width:100%;margin:6px 0 0}
 html[data-theme] body .marker-directions{flex-wrap:wrap}
}
/* Phone layouts: retain content in a single column, with local scrolling for data strips. */
@media(max-width:700px){
 html[data-theme] body{min-width:0}
 html[data-theme] body :is(.main-shell,.workspace,.main-content,.app-layout,#market-page,#profile-page,#theses-page,#callouts-page,#groups-page,#messages-page){min-width:0;width:100%;box-sizing:border-box}
 html[data-theme] body .sidebar{position:relative;height:auto;min-height:0;width:100%;padding:12px 16px;box-sizing:border-box}
 html[data-theme] body .sidebar-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px;width:100%;min-width:0;padding-bottom:4px}
 html[data-theme] body .sidebar-nav a{flex:0 0 auto;min-height:44px;display:flex;align-items:center;font-size:12px;padding:8px}
 html[data-theme] body .sidebar :is(.sidebar-label,#stock-list,.sidebar-user){display:none}
 html[data-theme] body .topbar{position:relative;display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px;min-width:0}
 html[data-theme] body .topbar .search-wrap{flex:1 0 100%;width:100%;box-sizing:border-box;max-width:none}
 html[data-theme] body .topbar> :is(.page-title,.feed-status){font-size:11px}
 html[data-theme] body .topbar button{min-height:40px}
 html[data-theme] body .workspace{margin:0;padding:16px}
 html[data-theme] body .app-layout{display:grid;grid-template-columns:minmax(0,1fr)}
 html[data-theme] body .quote-header{flex-wrap:wrap;gap:12px}
 html[data-theme] body .callout-controls{display:flex;flex-wrap:wrap;gap:10px}
 html[data-theme] body :is(.callout-group-tabs,.prediction-source-tabs,.profile-tabs,.content-tabs,.groups-page-tabs){max-width:100%;overflow-x:auto;flex-wrap:nowrap}
 html[data-theme] body :is(.callout-group-tabs,.prediction-source-tabs,.profile-tabs,.content-tabs,.groups-page-tabs)>*{flex-shrink:0;white-space:nowrap;min-height:44px}
 html[data-theme] body :is(.section-heading,.profile-section-heading,.profile-actions,.profile-summary,.feed-source,.prediction-toolbar){flex-wrap:wrap;gap:12px}
 html[data-theme] body :is(.stock-stats,.profile-metrics){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 html[data-theme] body :is(.history-card,.thesis-card,.news-card,.profile-card,.group-home){padding:16px;min-width:0;overflow-wrap:anywhere}
 html[data-theme] body .chat-panel{width:100%;box-sizing:border-box;padding:16px;height:600px;max-height:80dvh;min-height:360px}
 html[data-theme] body dialog{box-sizing:border-box;width:calc(100% - 24px);max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:18px;overflow:auto}
 html[data-theme] body :is(input,textarea,select){font-size:16px;max-width:100%;box-sizing:border-box}
 html[data-theme] body :is(.account-actions,.dialog-actions){display:flex;flex-wrap:wrap;gap:8px}
 html[data-theme] body .account-actions>*{min-height:44px;flex:1 1 140px}
 html[data-theme] body :is(.form-grid,.composer-grid,.group-directory-cards){grid-template-columns:minmax(0,1fr)}
 html[data-theme] body #messages-page .dm-layout{grid-template-columns:minmax(0,1fr);min-height:420px;height:70dvh}
 html[data-theme] body #messages-page :is(.dm-thread,.dm-inbox){padding:14px;min-width:0}
 html[data-theme] body #messages-page .dm-message{max-width:90%;overflow-wrap:anywhere}
 html[data-theme] body .invite-main{padding:16px;max-width:100%;box-sizing:border-box}
}
@media(max-width:700px){
 html[data-theme] body .sidebar-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;margin:0;gap:2px}
 html[data-theme] body .sidebar-nav a{justify-content:center;padding:6px 3px;font-size:11px;gap:5px}
 html[data-theme] body .sidebar-nav>button{min-width:0;min-height:44px;font-size:11px}
 html[data-theme] body .profile-tabs{gap:12px}
 html[data-theme] body .profile-tabs a{font-size:12px}
 html[data-theme] body .profile-filters{max-width:100%;box-sizing:border-box}
 html[data-theme] body .range-buttons button{min-width:40px;min-height:44px}
}
html[data-theme] body #account-gate.welcome-screen{position:fixed;inset:0;box-sizing:border-box;min-height:100dvh;display:grid;place-items:center;text-align:center;background:var(--glow-page);padding:24px;z-index:10000}
.welcome-screen>div{width:min(540px,100%)}.welcome-screen .welcome-brand{font:24px var(--serif);margin-bottom:48px}.welcome-screen h1{font-size:clamp(32px,6vw,56px);overflow-wrap:anywhere;margin:0 0 16px}.welcome-screen p{color:var(--muted)}.welcome-progress{display:block;width:120px;height:2px;background:var(--line);margin:32px auto;overflow:hidden}.welcome-progress::after{content:'';display:block;width:50%;height:100%;background:var(--text);animation:welcome-slide 1.2s ease-in-out infinite alternate}@keyframes welcome-slide{from{transform:translateX(-50%)}to{transform:translateX(150%)}}@media(prefers-reduced-motion:reduce){.welcome-progress::after{animation:none;transform:translateX(50%)}}
/* Typed greeting moves through the viewer while the dashboard is ready behind it. */
html[data-theme] body #account-gate.welcome-screen{background:none;isolation:isolate;overflow:hidden}
html[data-theme] body #account-gate.welcome-screen::before{content:'';position:absolute;inset:0;background:var(--glow-page);z-index:-1;opacity:1;transition:none}
html[data-theme] body #account-gate.welcome-flying::before{opacity:1}
.welcome-screen .welcome-brand,.welcome-screen .welcome-progress,.welcome-screen>div>p{display:none}
.welcome-screen>div{width:min(1000px,100%)}
html[data-theme] body .welcome-screen h1{font-size:clamp(30px,5.5vw,72px);line-height:1.15;margin:0;transform-origin:50% 50%;will-change:transform,opacity;overflow-wrap:normal}
@media(prefers-reduced-motion:reduce){html[data-theme] body #account-gate.welcome-screen::before{transition:none}}
/* Mobile chat uses the same live room, composer and holdings filters as desktop. */
.mobile-chat-launch{display:none}
@media(max-width:700px){
 html[data-theme] body .welcome-screen h1{font-size:clamp(28px,8vw,44px);line-height:1.2;max-width:90vw;margin:auto;text-wrap:balance}
 html[data-theme] body #market-page>.chat-panel{display:none!important}
 html[data-theme] body .mobile-chat-launch{display:flex;align-items:center;gap:12px;width:100%;text-align:left;margin-top:20px;padding:16px;border:1px solid var(--line);background:var(--glow-panel);color:var(--text);font-size:16px}
 .mobile-chat-launch small{display:block;margin-top:5px;font-size:12px;color:var(--muted)}
 .mobile-chat-launch>span:last-child{margin-left:auto}
 html[data-theme] body #mobile-chat-sheet{box-sizing:border-box;width:100%;max-width:100%;height:94dvh;max-height:94dvh;margin:auto 0 0;padding:12px 16px max(12px,env(safe-area-inset-bottom));border:1px solid var(--line);border-radius:18px 18px 0 0;overflow:hidden;background:var(--glow-page)}
 #mobile-chat-sheet[open]{display:flex;flex-direction:column;animation:chat-sheet-enter .22s ease-out}
 html[data-theme] body #mobile-chat-sheet .chat-panel{display:flex!important;flex-direction:column;flex:1;min-height:0;height:auto;max-height:none;padding:12px 0 0;margin:0;border:0;background:transparent;overflow:hidden}
 #mobile-chat-sheet .messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
 #mobile-chat-sheet .chat-heading,#mobile-chat-sheet .room-tabs,#mobile-chat-sheet #chat-composer{flex-shrink:0}
 #mobile-chat-sheet .chat-heading h2{font-size:24px}
 #mobile-chat-sheet .chat-footer{flex-wrap:wrap}
 #mobile-chat-sheet .chat-filter-popover{max-width:calc(100vw - 48px);box-sizing:border-box;z-index:5}
 .mobile-chat-close{align-self:flex-start;padding:10px 0;min-height:44px;color:var(--text)}
 body.mobile-chat-open{overflow:hidden}
}
@keyframes chat-sheet-enter{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){#mobile-chat-sheet[open]{animation:none}}
/* Compact mobile filters and consistent chat controls. */
.mobile-chat-launch .chat-launch-chevron{margin-left:auto;flex:none}
@media(max-width:700px){
 html[data-theme] body .explore-filter-panel[open]>.explore-filter-body{width:270px;max-width:calc(100vw - 40px);padding:14px;border-radius:10px;max-height:60dvh}
 html[data-theme] body .explore-filter-body h2{font-size:21px;line-height:1.2;margin:0 0 8px}
 html[data-theme] body .explore-filter-body>p{font-size:12px;line-height:1.4;margin:0 0 12px}
 html[data-theme] body .explore-filter-panel .discovery-filter-row{gap:8px}
 html[data-theme] body .explore-filter-panel label{font-size:13px}
 html[data-theme] body .explore-filter-panel .holdings-filter{gap:8px;margin-top:10px}
 html[data-theme] body .explore-filter-panel .holdings-filter small{font-size:11px;line-height:1.4}
 html[data-theme] body .explore-filter-panel :is(input,select){font-size:16px;min-height:40px;padding:8px}
 html[data-theme] body .explore-filter-panel button{font-size:13px;padding:6px 8px;min-height:36px}
 html[data-theme] body #mobile-chat-sheet .composer-box{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);background:var(--surface);border-radius:10px}
 html[data-theme] body #mobile-chat-sheet .composer-box textarea{flex:1;min-width:0;width:100%;height:48px;min-height:48px;max-height:120px;padding:12px 4px;margin:0;border:0;background:transparent;resize:none;line-height:24px}
 html[data-theme] body #mobile-chat-sheet .send-button{position:static;flex:0 0 60px;width:60px;height:44px;min-height:44px;padding:0;border-radius:8px;display:grid;place-items:center;font-size:0;line-height:1;align-self:center}
 html[data-theme] body #mobile-chat-sheet .send-button::after{content:'Send';font-size:13px;font-weight:600;line-height:1}
}
/* Highlight the whole message and expose separate reaction/reply controls. */
html[data-theme] body .message[data-chat-id]{transition:background-color .14s ease}
html[data-theme] body .message[data-chat-id]:is(:hover,:focus-within){background:color-mix(in srgb,var(--text) 6%,transparent)}
html[data-theme] body .message-hover-actions{gap:5px}
html[data-theme] body .message-hover-actions :is(.reaction-trigger,.reply-trigger){display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:6px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--muted)}
html[data-theme] body .message-hover-actions :is(.reaction-trigger,.reply-trigger):is(:hover,:focus-visible){background:var(--chip);color:var(--text)}
@media(hover:none){html[data-theme] body .message-hover-actions{width:max-content}html[data-theme] body .message-hover-actions :is(.reaction-trigger,.reply-trigger){width:44px;height:44px}.compact-reaction-menu{left:0;top:100%}}
@media(prefers-reduced-motion:reduce){html[data-theme] body .message[data-chat-id]{transition:none}}
/* Roomier chat composer with a dedicated reply row and send action. */
html[data-theme] body .composer-box,html[data-theme] body #mobile-chat-sheet .composer-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;padding:12px;box-sizing:border-box}
html[data-theme] body .composer-box textarea,html[data-theme] body #mobile-chat-sheet .composer-box textarea{grid-column:1/-1;box-sizing:border-box;width:100%;min-width:0;height:88px;min-height:88px;max-height:180px;resize:vertical;padding:10px 12px;margin:0;background:var(--surface);border:1px solid var(--line);font-size:16px;line-height:1.5;text-align:left}
html[data-theme] body .composer-box textarea:focus-visible{outline:1px solid var(--muted);outline-offset:1px}
html[data-theme] body .composer-box .send-button,html[data-theme] body #mobile-chat-sheet .composer-box .send-button{grid-column:2;position:static;width:68px;height:40px;min-height:40px;padding:0;display:grid;place-items:center;align-self:end;border-radius:6px;font-size:0;line-height:1}
html[data-theme] body .composer-box .send-button::after{content:'Send';font-size:14px;line-height:1;font-weight:600}
html[data-theme] body .composer-box .chat-reply-draft{grid-column:1/-1;box-sizing:border-box;width:100%;min-width:0;padding:0 0 10px;margin:0;text-align:left;line-height:1.5}
html[data-theme] body .chat-reply-draft>span{min-width:0;flex:1}
html[data-theme] body .chat-reply-draft small{max-width:none;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html[data-theme] body .chat-reply-draft button{flex:none;width:32px;height:32px;padding:0}
/* Compact vertical market callout feed. */
html[data-theme] body #prediction-list{display:flex;flex-direction:column;gap:12px;overflow-x:hidden;overflow-y:auto;max-height:720px;max-height:min(720px,75dvh);scroll-snap-type:none;align-items:stretch;background:transparent;padding:2px 6px 2px 2px}
html[data-theme] body #prediction-list>.prediction-card{flex:0 0 auto;box-sizing:border-box;width:100%;min-width:0;min-height:0;padding:16px 18px}
html[data-theme] body #prediction-list .prediction-author{gap:10px}
html[data-theme] body #prediction-list .call-text{font-size:15px;line-height:1.5;margin:12px 0}
html[data-theme] body #prediction-list .call-stats{padding-top:12px;margin-top:12px;gap:12px}
html[data-theme] body #prediction-list .stat-value{font-size:23px}
html[data-theme] body #prediction-list .stat-label{font-size:10px}
html[data-theme] body #prediction-list .call-bottom{margin-top:12px;font-size:12px}
html[data-theme] body #carousel-nav{display:none!important}
/* Composer option A: one field, inset minimal send arrow. */
html[data-theme] body .composer-box,html[data-theme] body #mobile-chat-sheet .composer-box{position:relative;display:block;padding:0;border:1px solid var(--line);border-radius:0;background:var(--surface)}
html[data-theme] body .composer-box textarea,html[data-theme] body #mobile-chat-sheet .composer-box textarea{display:block;width:100%;height:130px;min-height:130px;max-height:240px;padding:14px 16px 48px;margin:0;border:0;border-radius:0;background:transparent;resize:vertical;font-size:16px;line-height:1.5}
html[data-theme] body .composer-box:focus-within{border-color:var(--muted)}
html[data-theme] body .composer-box textarea:focus-visible{outline:none}
html[data-theme] body .composer-box .send-button,html[data-theme] body #mobile-chat-sheet .composer-box .send-button{position:absolute;right:6px;bottom:6px;width:36px;height:36px;min-height:36px;padding:9px;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--text);font-size:0;display:grid;place-items:center}
html[data-theme] body .composer-box .send-button::after,html[data-theme] body #mobile-chat-sheet .composer-box .send-button::after{content:'';display:block;width:18px;height:18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 19V5m-6 6 6-6 6 6' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
html[data-theme] body .composer-box .send-button:hover:not(:disabled),html[data-theme] body #mobile-chat-sheet .composer-box .send-button:hover:not(:disabled){background:transparent;color:var(--text)!important;filter:none;opacity:.65}
html[data-theme] body .composer-box .send-button:focus-visible{outline:2px solid var(--muted);outline-offset:-3px}
html[data-theme] body .composer-box .chat-reply-draft{padding:10px 14px;margin:0;border-bottom:1px solid var(--line)}
@media(pointer:coarse){html[data-theme] body .composer-box .send-button,html[data-theme] body #mobile-chat-sheet .composer-box .send-button{width:44px;height:44px;min-height:44px;right:2px;bottom:2px}}
html[data-theme] body .composer-box textarea,html[data-theme] body #mobile-chat-sheet .composer-box textarea{resize:none}
/* Keep the inset composer arrow independent of primary-button theme styles. */
html[data-theme] body .composer-box button.send-button{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;color:var(--text)!important;appearance:none}
/* Compact amount entry and calmer reply-preview typography. */
html[data-theme] body .holdings-filter input{box-sizing:border-box;width:108px;min-width:0;min-height:32px;height:32px;padding:5px 8px;font-size:13px;line-height:20px}
html[data-theme] body .composer-box .chat-reply-draft{font-family:var(--font);font-size:13px;font-weight:400;line-height:1.45;letter-spacing:0;color:var(--muted)}
html[data-theme] body .composer-box .chat-reply-draft strong{font-family:inherit;font-weight:600;color:var(--text)}
html[data-theme] body .composer-box .chat-reply-draft small{font-family:inherit;font-size:12px;font-weight:400;line-height:1.5;margin-top:3px;color:var(--muted)}
@media(pointer:coarse){html[data-theme] body .holdings-filter input{font-size:16px;min-height:40px;height:40px;width:120px}}

/* Touch chat actions are opened by holding a message; existing reaction counts remain visible. */
@media(max-width:760px),(hover:none){
 html[data-theme] body .message .message-hover-actions{display:none!important}
 html[data-theme] body .message-reply-target{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
}
html[data-theme] body dialog.mobile-message-menu{position:fixed;inset:auto 12px max(16px,env(safe-area-inset-bottom));width:calc(100% - 24px);max-width:480px;max-height:80dvh;margin:0 auto;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--text);box-shadow:0 20px 80px #0006}
.mobile-message-menu::backdrop{background:#0008;backdrop-filter:blur(5px)}
.mobile-message-emojis{display:flex;justify-content:space-between;gap:4px;margin-bottom:12px}
.mobile-message-emojis button{font-size:26px;min-width:44px;min-height:44px;padding:6px;background:transparent;border:0}
.mobile-message-preview{padding:14px;background:var(--chip);border-radius:12px;max-height:30dvh;overflow:auto}
.mobile-message-preview p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.mobile-message-menu .mobile-message-reply,.mobile-message-menu .mobile-message-cancel{display:block;width:100%;text-align:left;padding:14px;font:inherit;color:var(--text);background:transparent;border:0;min-height:48px}
.mobile-message-menu button:focus-visible{outline:2px solid var(--text);outline-offset:2px}

/* One swipeable navigation row on phones. */
@media(max-width:700px){
 html[data-theme] body .sidebar-nav{display:flex;flex-direction:row;flex-wrap:nowrap;gap:22px;overflow-x:auto;overflow-y:hidden;width:100%;min-width:0;margin:0;padding:0;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
 html[data-theme] body .sidebar-nav::-webkit-scrollbar{display:none}
 html[data-theme] body .sidebar-nav>a,html[data-theme] body .sidebar-nav>button{display:flex;flex:0 0 auto;width:auto;min-width:0;min-height:48px;height:48px;align-items:center;justify-content:center;white-space:nowrap;padding:8px 0;margin:0;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;font-size:15px;font-weight:600;line-height:1.3;color:var(--muted);gap:6px}
 html[data-theme] body .sidebar-nav>:is(a,button).active{color:var(--text);background:transparent;border-left:0;border-bottom-color:var(--text)}
 html[data-theme] body .sidebar-nav svg{display:none}
}

.mobile-bottom-nav{display:none}
@media(max-width:700px){
 html[data-theme] body{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
 html[data-theme] body .mobile-bottom-nav{display:flex;position:fixed;left:12px;right:12px;bottom:max(10px,env(safe-area-inset-bottom));z-index:80;align-items:center;justify-content:space-between;gap:3px;padding:6px;box-sizing:border-box;border:1px solid var(--line);border-radius:30px;background:var(--panel);box-shadow:0 6px 30px #0004}
 html[data-theme] body .mobile-bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:52px;padding:5px 2px;box-sizing:border-box;border-radius:24px;color:var(--muted);font-size:10px;font-weight:600;text-decoration:none}
 html[data-theme] body .mobile-bottom-nav a.active{background:var(--chip);color:var(--text)}
 .mobile-bottom-nav svg{width:23px;height:23px;flex-shrink:0}
 html[data-theme] body .mobile-bottom-nav.keyboard-open,html[data-theme] body:is(.tt-has-dialog,x-_._) .mobile-bottom-nav{display:none}
 html[data-theme] body .mobile-bottom-nav a:focus-visible{outline:2px solid var(--text);outline-offset:1px}
}

.mobile-profile-tools{display:none}
@media(max-width:700px){
 html[data-theme] body .topbar #account-menu-button,html[data-theme] body .topbar #theme-toggle{display:none}
 html[data-theme] body .topbar{display:flex;flex-wrap:nowrap;align-items:center;gap:8px}
 html[data-theme] body .topbar .search-wrap{flex:1 1 0;min-width:0;width:auto;max-width:none;margin:0}
 html[data-theme] body .topbar #notifications-button{position:relative;flex:0 0 44px;width:44px;height:44px;min-width:44px;padding:10px;font-size:0;border:0;background:transparent}
 html[data-theme] body .topbar #notifications-button::before{content:'';display:block;width:23px;height:23px;background:var(--text);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9M10 21h4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
 html[data-theme] body .topbar #notifications-button[data-unread=true]::after{content:'';position:absolute;top:7px;right:7px;width:7px;height:7px;border-radius:50%;background:var(--accent)}
 html[data-theme] body .mobile-profile-tools{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}
 html[data-theme] body .mobile-profile-tools button{flex:1;min-height:44px;font-size:14px}
}

@media(max-width:700px){
 html[data-theme] body .mobile-bottom-nav{transition:transform .2s ease,opacity .2s ease}
 html[data-theme] body .mobile-bottom-nav.scroll-hidden{transform:translateY(calc(100% + 30px + env(safe-area-inset-bottom)));opacity:0;pointer-events:none}
}
@media(prefers-reduced-motion:reduce){html[data-theme] body .mobile-bottom-nav{transition:none}}

html[data-theme] body .chat-reply-preview{display:flex;align-items:center;gap:6px;position:relative;width:100%;min-width:0;max-width:100%;padding:0 0 8px;margin:0;border:0;background:transparent;color:var(--muted);text-align:left;font:inherit;font-size:12px;line-height:1.4;cursor:pointer}
.chat-reply-preview .reply-connector{position:absolute;left:-26px;top:7px;width:17px;height:10px;border-top:1px solid var(--muted);border-left:1px solid var(--muted);border-top-left-radius:6px;opacity:.6}
.chat-reply-preview .reply-mini-avatar{display:grid;place-items:center;flex:0 0 18px;width:18px;height:18px;border:1px solid var(--line);border-radius:50%;font-size:7px;color:var(--text);background:var(--panel)}
.chat-reply-preview .reply-mini-avatar:has(img){overflow:hidden;border-color:transparent}.chat-reply-preview .reply-mini-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.chat-reply-preview strong{flex:0 1 auto;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:12px}
.chat-reply-preview .reply-preview-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme] body .chat-reply-preview:hover{color:var(--text)}
html[data-theme] body .chat-reply-preview:focus-visible{outline:1px solid var(--text);outline-offset:3px}
html[data-theme] body .message.reply-jump-highlight{background:var(--chip)!important;box-shadow:inset 3px 0 var(--accent);transition:background .25s ease}
html[data-theme] body .message.has-chat-reply>.avatar{margin-top:26px}
/* Floating long-press actions: reaction pill, selected message, and Reply. */
html[data-theme] body dialog.mobile-message-menu{inset:0 4px auto;width:calc(100% - 8px);max-width:480px;max-height:calc(100dvh - 36px);padding:0;margin:0 auto;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:auto;color:var(--text)}
.mobile-message-menu::backdrop{background:rgba(0,0,0,.68);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.mobile-message-reaction-row{display:flex;align-items:center;gap:7px;margin:0 4px 8px}
html[data-theme] body .mobile-message-emojis{display:flex;justify-content:space-around;gap:0;margin:0;padding:0 4px;border-radius:28px;background:var(--panel);height:44px}
html[data-theme] body .mobile-message-emojis button,html[data-theme] body .mobile-message-all-reactions button{display:grid;place-items:center;width:40px;min-width:40px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;font-size:25px;line-height:1}
html[data-theme] body .mobile-message-more{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:50%;background:var(--panel);color:var(--text)}
.mobile-message-more svg{width:24px;height:24px}
html[data-theme] body .mobile-message-preview{display:flex;align-items:flex-start;gap:8px;margin:0 0 8px;padding:10px 9px;border-radius:24px;background:var(--surface);max-height:40dvh;overflow:auto}
.mobile-message-avatar{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:var(--chip);color:var(--text);font-size:9px;font-weight:600}
.mobile-message-preview-body{min-width:0;flex:1}
.mobile-message-preview-author{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:22px}
.mobile-message-preview-author strong{font-size:15px;font-weight:600;line-height:1.3}
html[data-theme] body .mobile-message-preview p{margin:1px 0 0;font-size:16px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
html[data-theme] body .mobile-message-menu .mobile-message-reply{display:flex;align-items:center;gap:10px;width:46%;min-width:176px;min-height:54px;padding:14px 17px;margin:0 4px;border:0;border-radius:23px;background:var(--panel);color:var(--text);font-size:16px;font-weight:600;text-align:left}
.mobile-message-reply svg{width:18px;height:18px}
.mobile-message-all-reactions:not([hidden]){display:flex;flex-wrap:wrap;width:fit-content;max-width:100%;gap:1px;margin:0 4px 8px;padding:4px;border-radius:24px;background:var(--panel)}
html[data-theme] body .mobile-message-menu button:disabled{opacity:.45}
html[data-theme] body .mobile-message-menu button:focus-visible{outline:2px solid var(--muted);outline-offset:-3px}
html[data-theme] body dialog.mobile-message-menu{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html[data-theme] body dialog.mobile-message-menu::backdrop{background:rgba(0,0,0,.68);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
html[data-theme] body .mobile-message-menu :is(.mobile-message-more,[data-mobile-reaction]){border-radius:50%!important}
html[data-theme] body .mobile-message-menu .mobile-message-reply{border-radius:23px!important}
/* Vector arrows avoid iOS replacing directional glyphs with emoji tiles. */
html[data-theme] body svg.direction-arrow{display:inline-block;width:.85em;height:.85em;vertical-align:-.08em;flex-shrink:0;color:inherit;pointer-events:none}
html[data-theme] body .callout-dot svg.direction-arrow{width:16px;height:16px;vertical-align:middle}
/* Keep direction icons centered beside labels instead of using font baselines. */
html[data-theme] body :is(.history-ticker>button,.direction-pill,.thesis-outlook,.direction-options button){display:inline-flex;align-items:center;gap:.35em}
html[data-theme] body .history-ticker>button>span:has(.direction-arrow){display:inline-flex;align-items:center;line-height:1}
html[data-theme] body :is(.history-ticker>button,.direction-pill,.thesis-outlook,.direction-options button) svg.direction-arrow{display:block;vertical-align:initial;margin:0}
/* Keep moderation in the same compact action row as reply and reactions. */
html[data-theme] body .message-hover-actions .admin-delete-message{position:static;display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;min-height:0;padding:6px;border:1px solid var(--line);background:var(--panel);color:var(--muted);line-height:1}
html[data-theme] body .message-hover-actions .admin-delete-message:is(:hover,:focus-visible){background:var(--chip);color:var(--red)}
html[data-theme] body .message-hover-actions .admin-delete-message svg{width:19px;height:19px;pointer-events:none}
html[data-theme] body .identity-meta .profile-groups-count{padding:0;border:0;background:transparent;font:inherit;color:inherit}
html[data-theme] body .identity-meta .profile-groups-count:disabled{opacity:1;cursor:default}
html[data-theme] body .identity-meta .profile-groups-count:not(:disabled):hover{text-decoration:underline}
#profile-groups-dialog{width:min(460px,calc(100vw - 32px));max-height:80dvh;overflow:auto}
.profile-group-list-row{padding:16px 0;border-bottom:1px solid var(--line)}
.profile-group-list-row:last-child{border-bottom:0}
.profile-group-list-row strong,.profile-group-list-row small{display:block}
.profile-group-list-row small,.profile-group-list-row p{color:var(--muted);font-size:13px}
.profile-group-list-row p{margin:6px 0 0}
html[data-theme] body a.profile-group-list-row{display:block;padding:16px 10px;text-decoration:none;border-radius:6px}
html[data-theme] body a.profile-group-list-row:hover{background:var(--chip)}
html[data-theme] body a.profile-group-list-row:focus-visible{outline:2px solid var(--muted);outline-offset:-2px}
/* Quiet chart data attribution below the chart controls. */
html[data-theme] body .market-status-row{display:block;margin:10px 0 16px;padding:0;border:0;background:transparent;box-shadow:none}
html[data-theme] body #market-data-notice{margin:0;padding:0;border:0;background:transparent;font-size:11px;line-height:1.5;font-weight:400;color:var(--muted);box-shadow:none}
html[data-theme] body #quote-time{display:none}
/* Keep symbols and prices intact; only company names may wrap. */
html[data-theme] body #search-results button[data-ticker]>strong{flex:0 0 auto;white-space:nowrap;word-break:normal;overflow-wrap:normal}
html[data-theme] body #search-results button[data-ticker]>span:not(.result-price){flex:1 1 auto;min-width:0}
html[data-theme] body #search-results button[data-ticker]>.result-price{flex:0 0 auto;white-space:nowrap}

/* Settings: a fixed header and one scrolling surface. */
html[data-theme] body #account-panel{width:min(580px,calc(100vw - 24px));height:min(720px,85dvh);max-height:85dvh;padding:0;overflow:hidden;box-sizing:border-box}
#account-panel[open]{display:flex;flex-direction:column}html[data-theme] body #account-panel>.dialog-heading{flex:none;padding:20px 24px;border-bottom:1px solid var(--line);align-items:center}#account-panel>.dialog-heading h2{margin:0;font-size:24px}#account-panel .settings-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:20px 24px;scrollbar-width:thin;scrollbar-gutter:stable}
#account-panel .settings-summary{padding-bottom:16px;border-bottom:1px solid var(--line)}#account-panel .settings-summary p{margin:5px 0;font-size:13px;overflow-wrap:anywhere}#account-panel .settings-summary p:first-child{font-size:15px}#account-panel .settings-summary .auth-note{margin-top:12px;font-size:12px;line-height:1.5}
#account-panel .account-actions{display:block;margin:0}#account-panel .account-actions section{margin:22px 0}#account-panel .account-actions h3{font-family:inherit;font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin:0 0 8px}
html[data-theme] body #account-panel .settings-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;box-sizing:border-box;text-align:left;padding:14px 0;margin:0;border:0;border-bottom:1px solid var(--line);background:transparent;text-decoration:none;color:var(--text);border-radius:0}#account-panel .settings-row strong{display:block;font-size:14px;font-weight:500}#account-panel .settings-row small{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:3px}#account-panel .settings-row>span:last-child{font-size:22px;color:var(--muted)}#account-panel .settings-row:hover{background:var(--surface)}#account-panel .settings-row:focus-visible{outline:2px solid var(--text);outline-offset:2px}#account-panel #account-logout strong{color:var(--red)}#account-panel [hidden]{display:none!important}#account-panel .settings-back{margin:0 0 12px;padding:8px 0}#account-panel #account-panel-content{margin-top:0}#account-panel #account-panel-error:empty{display:none}
@media(max-width:600px){html[data-theme] body #account-panel{height:90dvh;max-height:90dvh}#account-panel .settings-scroll{padding:16px}html[data-theme] body #account-panel>.dialog-heading{padding:16px}}

/* Author names advertise profile navigation independently of the callout card. */
html[data-theme] body .history-card .person-link strong:hover,
html[data-theme] body .history-card .person-link:focus-visible strong,
html[data-theme] body .prediction-card .callout-author-link:hover,
html[data-theme] body .prediction-card .callout-author-link:focus-visible{background:var(--chip);color:var(--text);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;border-radius:3px;box-shadow:0 0 0 3px var(--chip);cursor:pointer}
.callout-author-link{color:inherit;text-decoration:none}

/* Keep the profile creation menu aligned with the account actions. */
#profile-page .personal-identity:has(.profile-create){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:10px 24px;padding-top:16px!important}
#profile-page .personal-identity:has(.profile-create)>div{grid-column:1;grid-row:1 / 4;padding-top:52px;min-width:0}
#profile-page .personal-identity:has(.profile-create)>.personal-edit{position:static;grid-column:2;grid-row:1;justify-self:end}
#profile-page .personal-identity:has(.profile-create)>[data-dm-link]{grid-column:2;grid-row:2;justify-self:end}
#profile-page .personal-identity>.profile-create{grid-column:2;grid-row:3;justify-self:end;align-self:start;margin:0}
@media(max-width:600px){#profile-page .personal-identity:has(.profile-create)>div{grid-column:1 / -1;grid-row:4;padding-top:0}#profile-page .profile-create .explore-create-menu{max-width:calc(100vw - 64px)}}

/* Align asset search results into consistent symbol, description, and price columns. */
html[data-theme] body #search-results button[data-ticker]{display:grid;grid-template-columns:64px minmax(0,1fr) 9ch;column-gap:10px;align-items:center;text-align:left}
html[data-theme] body #search-results button[data-ticker]>.result-price{margin-left:0;text-align:right;font-variant-numeric:tabular-nums}

.group-people-search{display:block;width:100%;max-width:420px;margin:12px 0 16px;padding:10px 12px;border:1px solid var(--line);background:var(--surface);color:var(--text);font:inherit}.group-person-username{display:block;color:var(--muted);font-size:12px;margin-top:3px}.group-search-empty{color:var(--muted)}

.expert-management>section+section{margin-top:28px;padding-top:8px;border-top:1px solid var(--line)}.expert-management h3 span{font-family:var(--font);font-size:14px;color:var(--muted)}#expert-account-search{width:100%;margin-top:8px}.expert-management .admin-user{gap:16px}.expert-management .admin-user>span{min-width:0;overflow-wrap:anywhere}.expert-management .admin-user>button{flex-shrink:0}@media(max-width:480px){.expert-management .admin-user{flex-wrap:wrap}}

/* Callout detail: conversation with a separate record rail. */
html[data-theme] body #discovery-page .post-discussion.callout-detail{max-width:1200px;width:100%}
.callout-detail>h1{margin:18px 0 22px}
html[data-theme] body #discovery-page .callout-detail .callout-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;padding:0;margin:0;border:0;background:transparent;box-shadow:none;animation:none;outline:none;filter:none}
.callout-detail-grid:before,.callout-detail-grid:after{display:none!important}
.detail-main,.detail-rail{min-width:0}
html[data-theme] body #discovery-page .detail-post,html[data-theme] body #discovery-page .detail-rail>section{background:var(--glow-panel,var(--panel));border:1px solid var(--line);padding:22px}
.detail-post{border-left:2px solid var(--performance-color,var(--line))!important}
.detail-post .history-card-top{gap:12px}.detail-post .history-card-top>.follow-voice{margin-left:auto;flex-shrink:0}
.detail-post .call-text{font-size:16px;line-height:1.65;margin:18px 0;overflow-wrap:anywhere}
.detail-post .post-actions{border:0;padding:0;margin-top:22px;gap:22px}
.detail-rail{display:flex;flex-direction:column;gap:14px;align-self:start}
.detail-rail h2{font-family:var(--font);font-size:11px;text-transform:uppercase;letter-spacing:.12em;margin:0;color:var(--muted)}
.detail-record-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
html[data-theme] body #discovery-page .detail-record .history-prices{display:flex;flex-direction:column;gap:0;border:0;margin:0;padding:0}
html[data-theme] body #discovery-page .detail-record .history-prices>div:not(.callout-spark){display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:12px 0;border-top:1px solid var(--line);order:3}
html[data-theme] body #discovery-page .detail-record .history-prices>div:nth-child(3){order:0;display:flex;flex-direction:column;align-items:flex-start;border:0;padding:0 0 14px}
html[data-theme] body #discovery-page .detail-record .history-prices>div:nth-child(3)>strong{font-size:40px;font-weight:400;line-height:1.2}
html[data-theme] body #discovery-page .detail-record .history-prices>div:nth-child(3)>span{font-size:12px;order:2;margin-top:5px}
html[data-theme] body #discovery-page .detail-record .history-prices>div:not(:nth-child(3))>strong{font-size:14px;font-family:var(--font)}
html[data-theme] body #discovery-page .detail-record .history-prices>div>span{font-size:12px;text-transform:none;letter-spacing:0;color:var(--muted)}
html[data-theme] body #discovery-page .detail-record .history-prices>.callout-spark{order:1;display:block;width:100%;max-width:none;min-width:0;margin:0 0 16px;padding:0}
.detail-record .callout-spark svg{width:100%;height:auto;max-height:160px}
.detail-record .history-card-bottom{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;margin:0;padding:12px 0 0;border-top:1px solid var(--line)}
.detail-sources p,.detail-closing p{font-size:12px!important;color:var(--muted);line-height:1.6;margin:14px 0 0;overflow-wrap:anywhere}
html[data-theme] body #discovery-page .detail-closing{background:transparent;border-style:dashed}
.detail-closing .closing-note{margin:0;padding:0;border:0}
.callout-detail .detail-main>.sample-label{font-size:11px;margin:10px 0 16px;display:block}
.callout-detail .discussion-count{font-family:Georgia,serif;font-size:18px;color:var(--text);border:0;padding:18px 0 8px}
html[data-theme] body #discovery-page .callout-detail #post-comment-form{border:1px solid var(--line);background:var(--bg);padding:12px 16px;margin:0 0 12px;gap:10px}
.callout-detail .post-comments-list>p{font-size:13px;color:var(--muted)}
@media(max-width:1000px){html[data-theme] body #discovery-page .callout-detail .callout-detail-grid{grid-template-columns:minmax(0,1fr) 300px;gap:18px}}
@media(max-width:760px){html[data-theme] body #discovery-page .callout-detail .callout-detail-grid{grid-template-columns:minmax(0,1fr)}.detail-rail{width:100%}.detail-post .history-card-top{flex-wrap:wrap}}

html[data-theme] body #discovery-page .detail-rail h2{font-family:var(--font);font-size:11px;letter-spacing:.12em;margin:0;color:var(--muted)}
html[data-theme] body #discovery-page .detail-sources .source-price-note{display:block}

html[data-theme] body #discovery-page .detail-record .history-prices>div:nth-child(-n+2){display:flex!important;flex-direction:row;text-align:left}
html[data-theme] body #discovery-page .detail-record .history-prices>div:nth-child(-n+2)>span{width:auto;margin:0}
html[data-theme] body #discovery-page .detail-record .history-prices>div:nth-child(-n+2)>strong{margin:0;text-align:right}
html[data-theme] body #discovery-page .detail-rail>.detail-closing{background:transparent;border-style:dashed}
html[data-theme] body #discovery-page .detail-post{border-left:2px solid var(--performance-color,var(--line))!important}

/* Reference detail layout, including overrides for live performance decoration. */
html[data-theme] body #discovery-page .callout-detail-grid[data-performance]{background:transparent!important;border:0!important;box-shadow:none!important;isolation:auto}
html[data-theme] body #discovery-page .callout-detail-grid::before,html[data-theme] body #discovery-page .callout-detail-grid::after{display:none!important}
html[data-theme] body #discovery-page .detail-post{padding:20px}
.detail-post .person-link small{font-size:11px}.detail-post .history-ticker{margin:14px 0 10px}.detail-post .status-tag{display:inline-flex!important;font-size:11px;padding:2px 6px;border:1px solid var(--line);color:var(--muted)}
.detail-post-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:22px}.detail-post-footer .post-actions{width:auto;margin:0;flex-shrink:0}.detail-post-footer .sample-label{font-size:10px;color:var(--muted);text-align:right;margin:0;max-width:65%}
.detail-return{display:flex;align-items:baseline;gap:10px;margin:18px 0}.detail-return>strong{font-family:var(--serif,Georgia,serif);font-size:42px;font-weight:400;line-height:1.2}.detail-return>span{font-size:11px;color:var(--muted)}
.detail-record-heading .call-result-label{font-size:9px;padding:4px 7px;background:color-mix(in srgb,var(--performance-color,var(--muted)) 15%,transparent)}
.detail-chart{width:100%;min-height:140px;font-size:12px;color:var(--muted);display:grid;align-items:center}.detail-chart svg{width:100%;height:auto;display:block}
.detail-chart-controls{display:flex;gap:4px;border-top:1px solid var(--line);padding:12px 0 8px}.detail-chart-controls button{font-size:11px;padding:5px 7px;color:var(--muted)}.detail-chart-controls button[aria-pressed=true]{background:var(--text);color:var(--bg)}.detail-chart-caption{font-size:10px;color:var(--muted)}
.detail-data-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:11px 0;border-top:1px solid var(--line);font-size:12px}.detail-data-row>span:first-child{color:var(--muted);flex-shrink:0}.detail-data-row>span:last-child{text-align:right;overflow-wrap:anywhere}.detail-sources .detail-data-row{border:0;align-items:start;font-size:11px}.detail-sources h2{margin-bottom:12px!important}
html[data-theme] body #discovery-page .callout-detail .detail-main #post-comment-form{grid-template-columns:28px minmax(0,1fr) auto;align-items:start;padding:12px;gap:10px}.detail-reply-avatar{width:26px;height:26px;font-size:10px}
html[data-theme] body #discovery-page .callout-detail #post-comment-form textarea{min-height:56px;font-size:13px;padding:3px 0;margin:0;grid-column:2}
.callout-detail #post-comment-form button[type=submit]{align-self:end;font-size:12px;min-height:32px;padding:5px 14px}.callout-detail #comment-reply-context{grid-column:2/-1}.callout-detail .discussion-count small{font-family:var(--font);font-size:11px;color:var(--muted);margin-left:6px}
@media(max-width:600px){.detail-post-footer{flex-wrap:wrap}.detail-post-footer .sample-label{max-width:none;text-align:left}.detail-return>strong{font-size:36px}}

html[data-theme] body #discovery-page .detail-chart-controls button[aria-pressed=true],html[data-theme] body #discovery-page .detail-chart-controls button[aria-pressed=true]:hover{background:var(--text)!important;color:var(--bg)!important}

/* Compact discussion rows: keep names, positions and message text together. */
html[data-theme] body :is(.chat-panel,#group-page-messages,#general-group-messages) .message{margin:0;padding:12px 0;gap:10px}
html[data-theme] body :is(.chat-panel,#group-page-messages,#general-group-messages) .message p{margin:4px 0 0!important;line-height:1.45}
html[data-theme] body :is(.chat-panel,#group-page-messages,#general-group-messages) .message p+p{margin-top:3px!important}
html[data-theme] body :is(.chat-panel,#group-page-messages,#general-group-messages) .message:has(+.message-continuation){padding-bottom:3px;margin-bottom:0}
html[data-theme] body :is(.chat-panel,#group-page-messages,#general-group-messages) .message.message-continuation{padding-top:0}
html[data-theme] body :is(.chat-panel,#group-page-messages,#general-group-messages) .message.message-continuation p{margin-top:0!important}

html[data-theme] body .sidebar #stock-list .stock-item{transition:background-color .15s ease,border-color .15s ease}
@media(hover:hover){html[data-theme] body .sidebar #stock-list .stock-item:hover{background:color-mix(in srgb,var(--text) 7%,transparent)}html[data-theme] body .sidebar #stock-list .stock-item.active:hover{background:color-mix(in srgb,var(--text) 6%,var(--chip))}}
html[data-theme] body .sidebar #stock-list .stock-item:focus-visible{background:color-mix(in srgb,var(--text) 7%,transparent);outline:1px solid var(--muted);outline-offset:-2px}
@media(prefers-reduced-motion:reduce){html[data-theme] body .sidebar #stock-list .stock-item{transition:none}}

/* Separate open and remove buttons keep sidebar actions keyboard accessible. */
html[data-theme] body .sidebar #stock-list .stock-item{position:relative;padding:0;min-height:60px}
html[data-theme] body .sidebar #stock-list .stock-open{display:block;text-align:left;width:100%;min-width:0;padding:9px 74px 9px 14px;color:inherit;align-self:stretch}
html[data-theme] body .sidebar #stock-list .stock-item>.mini-change{position:absolute;right:14px;top:50%;transform:translateY(-50%);pointer-events:none}
html[data-theme] body .sidebar #stock-list .stock-remove{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:28px;height:28px;padding:0;border:1px solid var(--line);font-size:20px;line-height:1;opacity:0;pointer-events:none;color:var(--muted)}
html[data-theme] body .sidebar #stock-list .stock-item:is(:hover,:has(>.stock-remove:focus-visible))>.stock-remove{opacity:1;pointer-events:auto}
html[data-theme] body .sidebar #stock-list .stock-item:is(:hover,:has(>.stock-remove:focus-visible))>.mini-change{visibility:hidden}
html[data-theme] body .sidebar #stock-list .stock-remove:hover{color:var(--text);background:var(--surface)}
html[data-theme] body .sidebar #stock-list .stocks-empty{font-size:12px;color:var(--muted);padding:12px}
@media(hover:none){html[data-theme] body .sidebar #stock-list .stock-remove{opacity:1;pointer-events:auto}html[data-theme] body .sidebar #stock-list .stock-item>.mini-change{right:48px}html[data-theme] body .sidebar #stock-list .stock-open{padding-right:112px}}

html[data-theme] body #search-results .stock-search-row{display:flex;align-items:center;gap:10px;padding-right:12px}
html[data-theme] body #search-results .stock-search-row:focus-within,html[data-theme] body #search-results .stock-search-row:hover{background:var(--panel)}
html[data-theme] body #search-results .stock-search-open[data-ticker]{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 10px}
html[data-theme] body #search-results .stock-search-open>strong{grid-column:1;grid-row:1}
html[data-theme] body #search-results .stock-search-open>span:not(.result-price){grid-column:1;grid-row:2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
html[data-theme] body #search-results .stock-search-open>.result-price{grid-column:2;grid-row:1/3;font-size:12px}
html[data-theme] body #search-results .stock-search-add{display:block;flex:0 0 68px;width:68px;padding:5px 7px;border:1px solid var(--line);font-size:12px;text-align:center;white-space:nowrap}
html[data-theme] body #search-results .stock-search-add[data-added=true]{color:var(--muted);border-color:var(--line);cursor:pointer}
html[data-theme] body .stocks-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
html[data-theme] body #edit-stocks{font-size:12px;letter-spacing:0;padding:4px 8px;color:var(--muted)}
html[data-theme] body #edit-stocks[aria-pressed=true]{background:var(--text);color:var(--bg)}
html[data-theme] body .sidebar #stock-list .stock-drag-handle{display:none}
html[data-theme] body .sidebar #stock-list.editing-stocks .stock-drag-handle{display:block;position:absolute;left:3px;top:50%;transform:translateY(-50%);padding:4px;cursor:grab;color:var(--muted);font-size:19px;z-index:1}
html[data-theme] body .sidebar #stock-list.editing-stocks .stock-open{padding-left:30px}
html[data-theme] body .sidebar #stock-list.editing-stocks .mini-change{visibility:hidden}
html[data-theme] body .sidebar #stock-list.editing-stocks .stock-remove{opacity:1;pointer-events:auto;color:var(--red);border-radius:50%;background:color-mix(in srgb,var(--red) 12%,transparent)}
html[data-theme] body .sidebar #stock-list .stock-dragging{opacity:.45}
html[data-theme] body .sidebar #stock-list .stock-drop-before{box-shadow:inset 0 2px var(--text)}
html[data-theme] body .sidebar #stock-list .stock-drop-after{box-shadow:inset 0 -2px var(--text)}
.stocks-edit-footer{padding:12px;font-size:12px}.stocks-edit-footer>#stocks-add-ticker{width:100%;padding:8px;border:1px dashed var(--line);text-align:left;color:var(--muted)}#stocks-edit-status{padding-top:8px}#stocks-edit-status button{float:right;color:var(--text);font-size:12px}
@media(max-width:700px){html[data-theme] body .stocks-heading{display:none}}

/* Reserve one slot so hover swaps daily change for Add without shifting prices. */
html[data-theme] body #search-results .stock-search-row{position:relative;padding-right:90px}
html[data-theme] body #search-results .stock-search-change{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:68px;text-align:right;font-size:12px;font-variant-numeric:tabular-nums;pointer-events:none}
html[data-theme] body #search-results .stock-search-add{position:absolute;right:12px;top:50%;transform:translateY(-50%);opacity:0;pointer-events:none}
html[data-theme] body #search-results .stock-search-row:is(:hover,:focus-within)>.stock-search-add{opacity:1;pointer-events:auto}
html[data-theme] body #search-results .stock-search-row:is(:hover,:focus-within)>.stock-search-change{visibility:hidden}
@media(hover:none){html[data-theme] body #search-results .stock-search-add{opacity:1;pointer-events:auto}html[data-theme] body #search-results .stock-search-change{display:none}}

.stock-thesis-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-top:18px}.stock-thesis-toolbar .prediction-source-tabs{margin:0;max-width:100%;flex-wrap:wrap}.stock-thesis-filters{position:relative;margin-left:auto;font-size:13px}.stock-thesis-filters>summary{cursor:pointer;list-style:none;border:1px solid var(--line);padding:8px 12px}.stock-thesis-filters>div{position:absolute;right:0;top:100%;z-index:10;display:grid;gap:12px;padding:16px;border:1px solid var(--line);background:var(--panel);min-width:240px}.stock-thesis-filters label{display:grid;gap:5px}.stock-thesis-filters select,.stock-thesis-group select{background:var(--panel);color:var(--text);border:1px solid var(--line);padding:7px}.stock-thesis-summary{font-size:13px;color:var(--muted);margin:16px 0}.stock-thesis-group{margin:12px 0;font-size:13px}@media(max-width:600px){.stock-thesis-toolbar{flex-wrap:wrap}.stock-thesis-toolbar .prediction-source-tabs{width:100%}.stock-thesis-filters>div{max-width:calc(100vw - 48px)}}
.stock-inline-filters,.stock-pills-content{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}.stock-inline-filters{margin:12px 0 18px;padding:14px 0;border-bottom:1px solid var(--line)}.stock-pills-toggle,.stock-filter-pill>summary{border:1px solid var(--line);padding:8px 12px;color:var(--text);font-size:12px;cursor:pointer;list-style:none}.stock-filter-pill{position:relative}.stock-filter-pill>summary::-webkit-details-marker{display:none}.stock-filter-pill>summary.is-active{background:var(--surface);border-color:var(--muted)}.stock-pill-options,.stock-position-popover{position:absolute;top:calc(100% + 8px);left:0;z-index:40;background:var(--panel);border:1px solid var(--line);box-shadow:0 10px 30px #0004;padding:12px;min-width:170px}.stock-pill-options{display:grid;max-height:300px;overflow:auto}.stock-pill-options button{font-size:12px;text-align:left;padding:8px}.stock-pill-options button[aria-pressed=true],.stock-position-presets button[aria-pressed=true]{background:var(--surface);outline:1px solid var(--muted)}.stock-position-popover{width:340px;max-width:calc(100vw - 48px);font-size:12px}.stock-position-popover p{color:var(--muted);font-size:12px;line-height:1.5}.stock-position-presets{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}.stock-position-popover button{border:1px solid var(--line);padding:7px;font-size:12px}.stock-position-popover label{display:flex;align-items:center;gap:8px;margin:14px 0}.stock-position-popover input[type=number]{width:150px;min-width:0;background:var(--bg);color:var(--text);border:1px solid var(--line);padding:8px}.stock-position-popover footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px}.stock-position-popover [data-position-apply]{background:var(--text);color:var(--bg)}.stock-inline-filters>.text-button,.stock-pills-content>.text-button{padding:8px}.legacy-stock-filters{display:none!important}@media(max-width:600px){.stock-position-popover{left:auto;right:0}}

@media(max-width:600px){.stock-inline-filters{position:relative}.stock-position-pill{position:static}.stock-position-popover{left:0;right:auto;top:100%}}
/* Filters always reveal immediately to the left of their toggle. */
html[data-theme] body #community-source-row,.stock-thesis-toolbar{display:flex;flex-wrap:nowrap;align-items:center;column-gap:8px;row-gap:12px}
html[data-theme] body #community-source-row>.prediction-source-tabs,.stock-thesis-toolbar>.prediction-source-tabs{order:0;flex:0 1 auto;min-width:0;flex-wrap:nowrap;overflow-x:auto}
.stock-thesis-toolbar>.prediction-source-tabs button{flex-shrink:0;white-space:nowrap}
html[data-theme] body #community-source-row>.stock-inline-filters,.stock-thesis-toolbar>.stock-inline-filters{--filter-vertical:0;order:1;box-sizing:border-box;flex:0 0 auto;width:max-content;min-width:0;margin:0 0 0 auto;padding:0;border:0;gap:6px;flex-wrap:nowrap;align-items:center}
html[data-theme] body #community-source-row>#unified-callout-filters,.stock-thesis-toolbar>.stock-pills-toggle{order:2;margin-left:0;flex-shrink:0;white-space:nowrap}
html[data-theme] body #community-source-row:has(>.stock-inline-filters[hidden])>#unified-callout-filters,.stock-thesis-toolbar:has(>.stock-inline-filters[hidden])>.stock-pills-toggle{margin-left:auto}
.stock-inline-filters .stock-pills-content{flex-wrap:nowrap;align-items:center;gap:6px}
.stock-inline-filters.filters-animating{overflow:hidden;pointer-events:none}
.stock-inline-filters[inert]{pointer-events:none}
.stock-filter-pill>summary{white-space:nowrap}
.stock-position-popover{left:auto;right:0}
@media(max-width:650px){
 html[data-theme] body #community-source-row,.stock-thesis-toolbar{flex-wrap:wrap;column-gap:4px}
 html[data-theme] body #community-source-row>.prediction-source-tabs,.stock-thesis-toolbar>.prediction-source-tabs{flex:0 0 100%;width:100%}
 .stock-inline-filters .stock-pills-content{gap:3px}
 .stock-filter-pill>summary{padding:8px 4px;font-size:10px;max-width:56px;overflow:hidden;text-overflow:ellipsis}
 .stock-inline-filters>.text-button,.stock-pills-content>.text-button{padding:8px 3px;font-size:10px;white-space:nowrap}
 .stock-position-popover{left:auto;right:0}
}
@media(prefers-reduced-motion:no-preference){.stock-filter-pill[open]>.stock-pill-options,.stock-filter-pill[open]>.stock-position-popover{animation:stock-filter-menu-in 160ms ease-out}@keyframes stock-filter-menu-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}}
@media(max-width:420px){.stock-filter-pill>summary{max-width:36px;padding:8px 3px}.stock-inline-filters .stock-pills-content{gap:2px}.stock-inline-filters>.text-button,.stock-pills-content>.text-button{padding:8px 2px;font-size:9px}html[data-theme] body .stock-inline-filters{gap:2px}.stock-thesis-toolbar>.stock-pills-toggle{padding:8px 6px;font-size:11px}}
/* Space the staggered controls evenly while keeping the toggle anchored. */
@media(min-width:651px){html[data-theme] body #community-source-row>.stock-inline-filters,.stock-thesis-toolbar>.stock-inline-filters,.stock-inline-filters .stock-pills-content{gap:12px}.stock-filter-pill>summary{padding:9px 15px}.stock-inline-filters [data-stock-pills-clear]{margin:0 6px}html[data-theme] body #community-source-row>#unified-callout-filters,.stock-thesis-toolbar>.stock-pills-toggle{min-width:112px;text-align:center;box-sizing:border-box}}
.stock-pills-toggle[aria-expanded=true],#unified-callout-filters[open]>summary{background:var(--text);color:var(--bg)}
/* Keep Clear all beside the toggle, including the callout toolbar's later styles. */
html[data-theme] body #prediction-panel #community-source-row:has(>.stock-inline-filters:not([hidden]))>#unified-callout-filters,html[data-theme] body #stock-theses-panel .stock-thesis-toolbar:has(>.stock-inline-filters:not([hidden]))>.stock-pills-toggle{margin-left:0}
html[data-theme] body .stock-inline-filters [data-stock-pills-clear]{margin-right:0;margin-left:2px}
html[data-theme] body :is(.stock-filter-pill>summary,.stock-inline-filters button,.stock-pills-toggle,#unified-callout-filters>summary){transition:background-color 140ms ease,border-color 140ms ease,color 140ms ease}
html[data-theme] body :is(.stock-filter-pill>summary,.stock-inline-filters button,.stock-pills-toggle,#unified-callout-filters>summary):is(:hover,:focus-visible){background:color-mix(in srgb,var(--text) 12%,var(--bg));border-color:var(--muted);color:var(--text)}
html[data-theme] body :is(.stock-pills-toggle[aria-expanded=true],#unified-callout-filters[open]>summary,.stock-position-popover [data-position-apply]):is(:hover,:focus-visible){background:color-mix(in srgb,var(--text) 85%,var(--bg));color:var(--bg)}
@media(prefers-reduced-motion:reduce){html[data-theme] body :is(.stock-filter-pill>summary,.stock-inline-filters button,.stock-pills-toggle,#unified-callout-filters>summary){transition:none}}

/* Site-wide corner system: controls, surfaces, and navigation exceptions. */
:root{--radius-control:8px;--radius-card:14px;--radius-dialog:16px}
html[data-theme] body :is(summary,[role="button"],.primary-button,.secondary-button,.social-profile-link,.personal-edit,.search-wrap,.sidebar-nav a,.stock-item,.groups-nav,.callout-group-tabs,.prediction-source-tabs,.prediction-filters,.profile-filters,.range-buttons){border-radius:var(--radius-control)}
html[data-theme] body :is(.soft-card,.prediction-card,.history-card,.thesis-card,.group-home,.group-card,.profile-metric,.auth-card,.feed-empty,.profile-empty,.discovery-empty,.people-scroll,.composer-box,.gate-box,.privacy-options label,.market-data-notice,.shared-community-note,.holdings-card,.investment-card,.prediction-track,.empty-state,.chat-panel,.toast,.media-tile){border-radius:var(--radius-card)}
html[data-theme] body :is(dialog,#moderation-dialog){border-radius:var(--radius-dialog)!important}
html[data-theme] body :is(.search-results,.chart-tooltip){border-radius:12px}
html[data-theme] body #messages-page :is(.dm-layout,.dm-message){border-radius:var(--radius-card)}
html[data-theme] body #messages-page [data-peer]{border-radius:var(--radius-control)}
html[data-theme] body .invite-main :is(#invite-result,.invite-row){border-radius:var(--radius-card)}
html[data-theme] body :is(.personal-cover,.group-cover){border-radius:var(--radius-card) var(--radius-card) 0 0}
html[data-theme] body :is(.direction-pill,.position-badge,.thesis-outlook,.position-tag,.sample-label,.demo-badge,.nav-count,kbd){border-radius:4px}
html[data-theme] body :is(.content-tabs,.room-tabs,.profile-tabs,.explore-type-tabs)>:is(button,a){border-radius:0!important}
html[data-theme] body :is(.avatar,.profile-avatar,.dm-avatar,.mag-avatar){border-radius:50%!important}
html[data-theme] body input[type=radio]{border-radius:50%!important}
html[data-theme] body input[type=checkbox]{border-radius:4px!important}

/* Ticker quote buttons form a continuous strip with straight separators. */
html[data-theme] body .ticker-tape,html[data-theme] body .ticker-tape button{border-radius:0!important}
