/* 2BB brand layer — loaded after calm.css.
   Identity: Bullish & Bearish. Bull blue and bear orange from the logo,
   a soft brand-coloured atmosphere, live hero board, ticker tape, gentle motion. */

:root {
  --bull: #4c94ff;
  --bull-strong: #7cb2ff;
  --bear: #ff8a3d;
  --bear-strong: #ffab73;
  --accent: var(--bull);
  --accent-strong: var(--bull-strong);
  --cyan: var(--bull);
  --on-accent: #06101f;
  --bg: #0b0e14;
  --card: #121722;
  --card-2: #171d2a;
  --surface: #121722;
  --surface-raised: #171d2a;
  --line: rgba(160, 185, 230, .10);
  --line-2: rgba(160, 185, 230, .18);
  --spectrum: linear-gradient(90deg, var(--bear), #f4c56a 45%, var(--bull));
}
:root[data-theme="light"] {
  --bull: #1f63d6;
  --bull-strong: #164ea9;
  --bear: #d4570c;
  --bear-strong: #a9450a;
  --accent: var(--bull);
  --accent-strong: var(--bull-strong);
  --cyan: var(--bull);
  --on-accent: #ffffff;
  --bg: #f5f6f9;
  --card: #ffffff;
  --card-2: #f8f9fc;
  --surface: #ffffff;
  --surface-raised: #f8f9fc;
  --line: rgba(20, 35, 70, .10);
  --line-2: rgba(20, 35, 70, .18);
  --text: #141a26;
  --muted: #4d5869;
  --muted-2: #657083;
}

/* ---- Atmosphere: soft brand glow + fine dot grid behind every page ------- */
html { background: var(--bg); }
body {
  background:
    radial-gradient(60rem 40rem at -10% -10%, color-mix(in srgb, var(--bull) 16%, transparent), transparent 60%),
    radial-gradient(55rem 38rem at 110% -5%, color-mix(in srgb, var(--bear) 12%, transparent), transparent 60%),
    var(--bg) !important;
  background-attachment: fixed !important;
}
body::after {
  content: "" !important; display: block !important;
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
          mask-image: linear-gradient(180deg, #000, transparent 75%);
}
:root[data-theme="light"] body {
  background:
    radial-gradient(60rem 40rem at -10% -10%, color-mix(in srgb, var(--bull) 10%, transparent), transparent 60%),
    radial-gradient(55rem 38rem at 110% -5%, color-mix(in srgb, var(--bear) 9%, transparent), transparent 60%),
    var(--bg) !important;
}
/* Signature: a thin bear→bull spectrum line along the top of the site. */
.topbar { position: sticky; background: color-mix(in srgb, var(--bg) 88%, transparent) !important; }
.topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--spectrum); opacity: .9; }
@supports (backdrop-filter: blur(1px)) {
  .topbar { backdrop-filter: saturate(140%) blur(10px) !important; -webkit-backdrop-filter: saturate(140%) blur(10px) !important; }
}

/* Cards sit slightly above the atmosphere. */
.home-tracker-panel, .playbook-card, .home-data-panel, .earnings-radar-card, #app .grid > .card,
.guide-card, .info-content article, .info-aside, .watch-table-wrap, .watch-summary-strip, .related-stock-card, .company-card, .calm-ticker-hero {
  background: color-mix(in srgb, var(--card) 92%, transparent) !important;
}
.playbook-card, .guide-card, .company-card, .related-stock-card, .earnings-radar-card {
  transition: transform .25s ease, border-color .25s ease !important;
}
.playbook-card:hover, .guide-card:hover, .company-card:hover, .related-stock-card:hover, .earnings-radar-card:hover {
  transform: translateY(-3px) !important; border-color: color-mix(in srgb, var(--bull) 45%, transparent) !important;
}
/* Each playbook keeps its own colour on the spectrum. */
.playbook-card { position: relative; overflow: hidden; }
.playbook-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--bull); }
.playbook-card:nth-child(2)::before { background: linear-gradient(90deg, var(--bull), var(--bear)); }
.playbook-card:nth-child(3)::before { background: var(--bear); }

/* ---- Hero ------------------------------------------------------------------ */
.public-hero.brand-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  background:
    radial-gradient(30rem 22rem at 0% 0%, color-mix(in srgb, var(--bull) 18%, transparent), transparent 70%),
    radial-gradient(28rem 22rem at 100% 100%, color-mix(in srgb, var(--bear) 16%, transparent), transparent 70%),
    color-mix(in srgb, var(--card) 85%, transparent) !important;
  border: 1px solid var(--line-2) !important;
}
.public-hero.brand-hero::before {
  content: "" !important; display: block !important; position: absolute; inset: 0 0 auto; height: 3px; background: var(--spectrum);
  animation: none !important;
}
.brand-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.7rem) !important; line-height: 1.06; letter-spacing: -.035em !important; }
.bull-word, .bear-word { position: relative; white-space: nowrap; }
.bull-word { color: var(--bull); }
.bear-word { color: var(--bear); }
.bull-word::after, .bear-word::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; border-radius: 1em; opacity: .35;
  background: currentColor; transform-origin: left; animation: brand-underline 1.1s .35s cubic-bezier(.2,.7,.2,1) both;
}
.bear-word::after { animation-delay: .6s; }
@keyframes brand-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.brand-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; margin-right: .3rem; vertical-align: .05em; }
.brand-dot.bull { background: var(--bull); }
.brand-dot.bear { background: var(--bear); margin-right: .55rem; }

.brand-hero-visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.brand-art {
  position: absolute; width: min(62%, 260px); height: auto; opacity: .55; pointer-events: none; z-index: 0;
  filter: saturate(1.05);
}
.brand-art.bull { top: -6%; left: -4%; animation: brand-float 9s ease-in-out infinite; }
.brand-art.bear { bottom: -8%; right: -6%; animation: brand-float 10s ease-in-out -4s infinite reverse; }
:root[data-theme="light"] .brand-art { opacity: .4; }
@keyframes brand-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-1.5deg); } }

/* Live board */
.hero-board {
  position: relative; z-index: 1; width: min(100%, 400px);
  padding: 1rem 1rem .9rem; border: 1px solid var(--line-2); border-radius: 16px;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  -webkit-backdrop-filter: blur(6px) !important; backdrop-filter: blur(6px) !important;
}
.hero-board-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .55rem; }
.hero-board-head span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-board-head small { font-size: .72rem; color: var(--muted-2); }
.hero-board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.hero-board-list li.is-loading { height: 2.6rem; border-radius: 10px; background: var(--surface-hover); animation: brand-pulse 1.4s ease-in-out infinite; }
@keyframes brand-pulse { 50% { opacity: .45; } }
.hero-board-list a {
  display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) 2.2rem; grid-template-areas: "sym name score" "bar bar band";
  align-items: center; gap: .15rem .6rem; padding: .5rem .55rem; border-radius: 10px; color: inherit;
}
.hero-board-list a:hover { background: var(--surface-hover); }
.hb-symbol { grid-area: sym; font-weight: 800; letter-spacing: .01em; }
.hb-name { grid-area: name; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .8rem; }
.hb-score { grid-area: score; text-align: right; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.hb-band { grid-area: band; text-align: right; font-size: .62rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; }
.hb-bar { grid-area: bar; height: 5px; border-radius: 6px; background: var(--line); overflow: hidden; }
.hb-bar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.hero-board.is-ready .hb-bar i { width: var(--w); }
.hb-bar i.bull, .hb-score.bull { color: var(--bull); }
.hb-bar i.bear, .hb-score.bear { color: var(--bear); }
.hb-bar i.mid, .hb-score.mid { color: #e2b553; }
.hb-bar i { background: currentColor; }
.hero-board-list li { opacity: 0; transform: translateY(6px); }
.hero-board.is-ready .hero-board-list li { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 80ms); }
.hero-board-foot { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.spectrum-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--spectrum); }
.spectrum-label { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.spectrum-label.bear { color: var(--bear); }
.spectrum-label.bull { color: var(--bull); }

/* ---- Ticker tape ------------------------------------------------------------- */
.ticker-tape {
  position: relative; overflow: hidden; margin: .9rem 0 0; padding: .55rem 0;
  border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--card) 80%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-tape[hidden] { display: none; }
.ticker-tape-track { display: flex; width: max-content; animation: tape-scroll var(--tape-duration, 45s) linear infinite; }
.ticker-tape:hover .ticker-tape-track, .ticker-tape:focus-within .ticker-tape-track { animation-play-state: paused; }
.tape-group { display: flex; align-items: center; flex-shrink: 0; }
.tape-item { display: inline-flex; align-items: baseline; gap: .4rem; padding: 0 1rem; color: var(--text); font-size: .86rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tape-item b { font-weight: 800; }
.tape-item span { color: var(--muted); }
.tape-item em { font-style: normal; font-weight: 700; font-size: .8rem; }
.tape-item em.bull { color: var(--bull); }
.tape-item em.bear { color: var(--bear); }
.tape-item:hover b { color: var(--bull); }
.tape-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); flex-shrink: 0; }
@keyframes tape-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Scroll-in reveal ----------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-revealed { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }

/* ---- Brand colours on existing UI --------------------------------------------- */
.eyebrow, .card-label { color: var(--bull) !important; }
.section-intro .eyebrow::before, .section-head .eyebrow::before {
  content: ""; display: inline-block; width: 1.1rem; height: 2px; margin-right: .45rem; vertical-align: .25em; border-radius: 2px; background: var(--spectrum);
}
.primary, .search button, .calm-hero-search button { background: var(--bull) !important; color: var(--on-accent) !important; }
.primary:hover, .search button:hover, .calm-hero-search button:hover { background: var(--bull-strong) !important; }
.text-link { color: var(--bull); }
.ticker-section-nav a.active { border-bottom-color: var(--bull); }
.tier-badge.sudden-spike { color: var(--bear) !important; border-color: color-mix(in srgb, var(--bear) 45%, transparent) !important; }

/* ---- Light-mode readability: colours that were hard-coded for dark ---------- */
:root[data-theme="light"] .basket-position-open,
:root[data-theme="light"] .playbook-method,
:root[data-theme="light"] .playbook-risk,
:root[data-theme="light"] .ticker-profile-source-link,
:root[data-theme="light"] .ticker-info-fact a,
:root[data-theme="light"] .index-badge { color: var(--bull) !important; }
:root[data-theme="light"] .playbook-subtitle,
:root[data-theme="light"] .earnings-meta span,
:root[data-theme="light"] .earnings-meta b,
:root[data-theme="light"] .earnings-radar-card span,
:root[data-theme="light"] .earnings-radar-card b,
:root[data-theme="light"] .earnings-radar-card small { color: var(--muted) !important; }
:root[data-theme="light"] .earnings-meta b { color: var(--text) !important; }
:root[data-theme="light"] .history-window-tabs button.active,
:root[data-theme="light"] .tab-buttons button.active { background: var(--bull) !important; color: #fff !important; }
:root[data-theme="light"] .watch-tabs button.active span,
:root[data-theme="light"] .watch-tabs .active > span { color: var(--bull) !important; border-color: color-mix(in srgb, var(--bull) 40%, transparent) !important; }
:root[data-theme="light"] .index-badge { border-color: color-mix(in srgb, var(--bull) 40%, transparent) !important; background: transparent !important; }

/* ---- Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .public-hero.brand-hero { grid-template-columns: 1fr; }
  .brand-hero-visual { min-height: 0; padding: 1.5rem 0 .5rem; }
  .brand-art { width: 44%; opacity: .35; }
  .brand-art.bull { top: -4%; left: -6%; }
  .brand-art.bear { bottom: -10%; right: -8%; }
  .hero-board { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-tape-track { animation: none !important; overflow-x: auto; }
  .ticker-tape { overflow-x: auto; }
  .brand-art { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hb-bar i { transition: none !important; width: var(--w) !important; }
  .hero-board-list li { opacity: 1 !important; transform: none !important; }
}

/* ---- Sector strip (market context, like an index bar) ---------------------- */
.sector-strip { display: flex; align-items: stretch; gap: .75rem; margin: 0 0 .9rem; }
.sector-strip[hidden] { display: none; }
.sector-strip-label { display: grid; align-content: center; flex: 0 0 auto; padding-right: .75rem; border-right: 1px solid var(--line); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.sector-strip-label small { font-size: .62rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted-2); }
.sector-strip-row { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sector-strip-row::-webkit-scrollbar { display: none; }
.sector-chip {
  position: relative; display: grid; gap: .1rem; flex: 0 0 auto; min-width: 7.2rem; padding: .5rem .7rem .6rem;
  border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--card) 85%, transparent); color: var(--text); overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.sector-chip:hover { transform: translateY(-2px); border-color: var(--line-2); }
.sc-name { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.sc-move { font-size: .95rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sector-chip.bull .sc-move { color: var(--green); }
.sector-chip.bear .sc-move { color: var(--red); }
.sc-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--w); }
.sector-chip.bull .sc-bar { background: var(--green); }
.sector-chip.bear .sc-bar { background: var(--red); }
@media (max-width: 640px) { .sector-strip-label { display: none; } }

/* Fixes: headline colours must beat older .public-hero h1 span rules. */
.public-hero.brand-hero h1 .bull-word { color: var(--bull) !important; }
.public-hero.brand-hero h1 .bear-word { color: var(--bear) !important; }
/* Art frames the board instead of hiding behind it. */
.brand-hero-visual { padding: 2.5rem 1.5rem; }
.brand-art { width: min(58%, 240px); opacity: .85; }
.brand-art.bull { top: -2%; left: -10%; z-index: 0; }
.brand-art.bear { bottom: -4%; right: -10%; z-index: 2; opacity: .9; }
:root[data-theme="light"] .brand-art { opacity: .75; }
.hero-board { z-index: 1; }
@media (max-width: 900px) {
  .brand-art { width: 38%; opacity: .6; }
  .brand-art.bull { top: -6%; left: -8%; }
  .brand-art.bear { bottom: -8%; right: -8%; }
}
.brand-art.bear { z-index: 0; bottom: -12%; right: -16%; }
.brand-art.bull { top: -6%; left: -14%; }
:root[data-theme="light"] .brand-copy b,
:root[data-theme="light"] .change-row strong,
:root[data-theme="light"] .change-row b { color: var(--text) !important; }
.hero-board-list a { grid-template-columns: 3.4rem minmax(0, 1fr) auto; }
.hb-band { white-space: nowrap; }

/* ---- Company page: header leans toward the side its score is on ----------- */
.calm-ticker-hero { position: relative; overflow: hidden; isolation: isolate; border-color: var(--line-2) !important; }
.calm-ticker-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--spectrum); }
.calm-ticker-hero::after {
  content: "" !important; display: block !important; position: absolute; z-index: -1; pointer-events: none;
  width: 34rem; height: 26rem; top: -10rem; right: -8rem; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--side, var(--bull)) 22%, transparent), transparent);
}
.calm-ticker-hero.side-bull { --side: var(--bull); }
.calm-ticker-hero.side-bear { --side: var(--bear); }
.calm-ticker-hero.side-mid { --side: #e2b553; }
.calm-ticker-hero.side-none::after { display: none !important; }
.calm-ticker-hero .ticker-symbol-mark { border-color: color-mix(in srgb, var(--side, var(--bull)) 45%, transparent) !important; color: var(--side, var(--text)) !important; }
/* Section tab bar picks up the brand line under the active/hovered tab. */
.ticker-section-nav a:hover { border-bottom-color: color-mix(in srgb, var(--bull) 50%, transparent) !important; }
/* Guides, watchlist and info pages: spectrum accent on the page title. */
.info-hero h1::after, .watch-header h1::after {
  content: ""; display: block; width: 3.5rem; height: 3px; margin-top: .9rem; border-radius: 3px; background: var(--spectrum);
}
.ticker-price-line strong { color: var(--text) !important; }
/* No colour transition on the page itself: avoids a dark flash when light mode loads. */
html, body { transition: none !important; }
:root[data-theme="light"] .hb-score.mid, :root[data-theme="light"] .hb-bar i.mid { color: #a8760b; }
.breadcrumb a, .breadcrumb a span { color: var(--muted) !important; }
.breadcrumb a:hover, .breadcrumb a:hover span { color: var(--text) !important; }
.basket-position-rank { color: var(--muted-2) !important; }

/* ---- Search suggestions: readable in both themes, including the highlighted row ---- */
.search-suggestions, .hero-search-suggestions, .calm-hero-search .hero-search-suggestions {
  background: var(--card) !important; color: var(--text) !important;
  border: 1px solid var(--line-2) !important; border-radius: 12px !important; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35) !important;
}
:root[data-theme="light"] .search-suggestions { box-shadow: 0 16px 40px rgba(20, 35, 70, .16) !important; }
.search-suggestion, .hero-search-suggestions .search-suggestion { color: var(--text) !important; border-bottom-color: var(--line) !important; background: transparent !important; }
.search-suggestion:hover, .search-suggestion.is-active,
.hero-search-suggestions .search-suggestion:hover, .hero-search-suggestions .search-suggestion.is-active {
  background: color-mix(in srgb, var(--bull) 14%, var(--card)) !important;
}
.search-suggestion-symbol { color: var(--text) !important; font-weight: 700 !important; }
.search-suggestion-name, .search-suggestion-meta, .search-empty,
.hero-search-suggestions .search-suggestion-name, .hero-search-suggestions .search-suggestion-meta, .hero-search-suggestions .search-empty { color: var(--muted) !important; }
.search-suggestion.is-active .search-suggestion-name, .search-suggestion:hover .search-suggestion-name { color: var(--text) !important; }

/* ---- Sector strip: a moving market ticker ----------------------------------- */
.sector-strip-row {
  overflow: hidden !important; flex: 1; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.sector-strip-track { display: flex; width: max-content; animation: tape-scroll var(--sector-duration, 40s) linear infinite; }
.sector-strip:hover .sector-strip-track, .sector-strip:focus-within .sector-strip-track { animation-play-state: paused; }
.sector-strip-group { display: flex; gap: .45rem; padding-right: .45rem; flex-shrink: 0; }
.sector-chip { min-width: 9.2rem; }
.sc-name small { font-size: .62rem; color: var(--muted-2); letter-spacing: .03em; }
.sc-more { display: flex; gap: .55rem; font-size: .66rem; font-variant-numeric: tabular-nums; }
.sc-more .bull { color: var(--green); }
.sc-more .bear { color: var(--red); }
.live-dot { display: inline-block; width: .45rem; height: .45rem; margin-right: .35rem; border-radius: 50%; background: var(--green); vertical-align: .1em; animation: live-pulse 2s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent) !important; } 50% { box-shadow: 0 0 0 5px transparent !important; } }
@media (prefers-reduced-motion: reduce) {
  .sector-strip-track { animation: none !important; }
  .sector-strip-row { overflow-x: auto !important; }
  .sector-strip-group[aria-hidden] { display: none; }
}
@keyframes live-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.live-dot { animation: live-blink 1.8s ease-in-out infinite !important; }

/* ---- Tiny reader poll in the company header ---------------------------------- */
#pollBox { display: inline-flex; align-items: center; }
.mini-poll { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .4rem .25rem .6rem; border: 1px solid var(--line); border-radius: 999px; }
.mini-poll-label { font-size: .72rem; color: var(--muted-2); margin-right: .1rem; }
.mini-vote {
  display: inline-flex; align-items: center; gap: .25rem; padding: .22rem .5rem; border-radius: 999px;
  border: 1px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: .78rem; cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.mini-vote svg { width: 15px; height: 15px; fill: currentColor; }
.mini-vote b { font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-vote.up:hover:not(:disabled), .mini-vote.up.selected { color: var(--bull); background: color-mix(in srgb, var(--bull) 14%, transparent); }
.mini-vote.down:hover:not(:disabled), .mini-vote.down.selected { color: var(--bear); background: color-mix(in srgb, var(--bear) 14%, transparent); }
.mini-vote:active:not(:disabled) { transform: scale(.92); }
.mini-vote:disabled { cursor: default; }
.mini-vote:disabled:not(.selected) { opacity: .55; }
.mini-poll-split { width: 2.6rem; height: 4px; border-radius: 4px; background: var(--bear); overflow: hidden; }
.mini-poll-split i { display: block; height: 100%; width: var(--up); background: var(--bull); }
.mini-poll-done, .mini-poll-error { font-size: .7rem; color: var(--muted-2); padding-right: .3rem; }
.mini-poll-error { color: var(--red); }

/* ---- Income statement / balance sheet: fit any window size ------------------- */
.fin-chart-wrap { overflow: hidden !important; }
.fin-chart-wrap svg, .financial-side-by-side .fin-chart-wrap svg {
  display: block; width: 100% !important; height: auto !important; min-width: 0 !important; max-width: 100%;
}
.fin-axis-label, .financial-side-by-side .fin-axis-label { font-size: 12px !important; fill: var(--muted) !important; font-weight: 600; }
.fin-value-label, .financial-side-by-side .fin-value-label { font-size: 11px !important; fill: var(--muted-2) !important; }
.fin-chart-card .chart-header { align-items: center; gap: .75rem; flex-wrap: wrap; }
.fin-chart-card .chart-header h3 { font-size: clamp(1rem, 1.6vw, 1.2rem) !important; letter-spacing: -.01em !important; }
.fin-revenue-bar { fill: color-mix(in srgb, var(--bull) 55%, transparent) !important; stroke: none !important; }
.fin-revenue-bar:hover, .fin-revenue-bar:focus { fill: var(--bull) !important; }
.fin-income-line { stroke: #e2a33b !important; stroke-width: 2.5 !important; }
.fin-income-dot { fill: #e2a33b !important; stroke: var(--card) !important; stroke-width: 2 !important; }
.rev-dot { background: var(--bull) !important; }
.inc-dot { background: #e2a33b !important; }
.gridline { stroke: var(--line) !important; }
.zero-line { stroke: var(--line-2) !important; }
.financial-side-by-side { align-items: start; }
@media (max-width: 1100px) { .financial-side-by-side { grid-template-columns: 1fr !important; } }
/* Balance sheet rows wrap cleanly on narrow screens. */
.balance-row { min-width: 0; }
.balance-stack div { min-width: 0; }
.balance-stack b { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .balance-row { grid-template-columns: 1fr !important; gap: .35rem; }
  .balance-stack div { grid-template-columns: 4.6rem minmax(0, 1fr) auto !important; }
}
.mini-poll { border-color: var(--line-2) !important; background: color-mix(in srgb, var(--card-2) 70%, transparent); }

/* ===== Search, round 2 ======================================================== */
/* The hero must not clip the dropdown; the artwork is clipped by its own panel instead. */
.public-hero.brand-hero { overflow: visible !important; }
.brand-hero-visual { overflow: hidden; border-radius: 18px; }
.brand-art.bull { top: -4%; left: -8%; }
.brand-art.bear { bottom: -6%; right: -8%; }
.calm-hero-search { position: relative; z-index: 40; }

/* Search fields: one consistent, clearly visible style. */
.calm-hero-search input, .topbar .search {
  border: 1px solid color-mix(in srgb, var(--bull) 28%, var(--line-2)) !important;
  background: color-mix(in srgb, var(--bg) 70%, var(--card)) !important;
}
.calm-hero-search input { color: var(--text) !important; font-size: 1.02rem !important; padding: .95rem 1rem .95rem 2.6rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c9bb3' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: .9rem 50% !important; background-size: 1.05rem !important; }
.calm-hero-search input::placeholder, .topbar .search input::placeholder { color: var(--muted) !important; opacity: 1; }
.calm-hero-search input:focus, .topbar .search:focus-within {
  border-color: var(--bull) !important; outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bull) 25%, transparent) !important;
}
.topbar .search input { color: var(--text) !important; background: transparent !important; }

/* Dropdown rows: [TICKER] Company name ............ EXCHANGE */
.search-suggestions { top: calc(100% + .4rem) !important; max-height: min(26rem, 60vh); overflow-y: auto !important; padding: .3rem !important; z-index: 60 !important; }
.search-suggestion {
  display: flex !important; align-items: center; justify-content: space-between; gap: .9rem;
  padding: .6rem .65rem !important; border-radius: 9px; border-bottom: 0 !important;
}
.search-suggestion > span:first-child { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.search-suggestion-symbol {
  flex: 0 0 auto; min-width: 4rem; padding: .25rem .45rem; border-radius: 7px; text-align: center;
  font-size: .82rem !important; letter-spacing: .02em; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--bull) 14%, transparent); color: var(--bull) !important;
}
.search-suggestion-name { display: block; min-width: 0; font-size: .92rem !important; color: var(--text) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion-meta { flex: 0 0 auto; font-size: .7rem !important; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2) !important; }
.search-suggestion:hover, .search-suggestion.is-active { background: color-mix(in srgb, var(--bull) 12%, transparent) !important; }
.search-suggestion.is-active .search-suggestion-symbol, .search-suggestion:hover .search-suggestion-symbol { background: var(--bull); color: var(--on-accent) !important; }
.search-empty { padding: .8rem; }
.public-hero.brand-hero::before { border-top-left-radius: inherit; border-top-right-radius: inherit; }

/* ===== Reader poll (compact card in the company header) ========================= */
.reader-poll-wrap { display: block; margin-top: 1rem; }
.reader-poll {
  display: grid; gap: .6rem; max-width: 34rem; padding: .8rem .9rem;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: color-mix(in srgb, var(--card-2) 75%, transparent);
}
.reader-poll-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .8rem; }
.reader-poll-head span { font-weight: 700; font-size: .92rem; }
.reader-poll-head small { color: var(--muted-2); font-size: .72rem; }
.reader-poll-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.poll-choice {
  display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .5rem;
  border: 1px solid var(--line-2); border-radius: 10px; background: transparent; color: var(--text);
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.poll-choice svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }
.poll-choice b { font-weight: 700; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.poll-choice.up svg { color: var(--bull); }
.poll-choice.down svg { color: var(--bear); }
.poll-choice.flat svg { color: var(--muted); }
.poll-choice.up:hover:not(:disabled), .poll-choice.up.selected { border-color: var(--bull); background: color-mix(in srgb, var(--bull) 14%, transparent); }
.poll-choice.down:hover:not(:disabled), .poll-choice.down.selected { border-color: var(--bear); background: color-mix(in srgb, var(--bear) 14%, transparent); }
.poll-choice.flat:hover:not(:disabled), .poll-choice.flat.selected { border-color: var(--muted); background: var(--surface-hover); }
.poll-choice:active:not(:disabled) { transform: scale(.96); }
.poll-choice:disabled { cursor: default; }
.poll-choice:disabled:not(.selected) { opacity: .7; }
.poll-result-bar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: var(--line); }
.poll-result-bar i { display: block; height: 100%; transition: width .6s ease; }
.poll-result-bar i.up { background: var(--bull); }
.poll-result-bar i.flat { background: var(--muted-2); }
.poll-result-bar i.down { background: var(--bear); }
.reader-poll-done { color: var(--muted-2); font-size: .72rem; }
@media (max-width: 480px) { .poll-choice span { font-size: .78rem; } .poll-choice { padding: .5rem .3rem; } }

/* Price is a last close, not a live quote: shown as a quiet fact. */
.ticker-price-line { gap: .2rem .45rem !important; margin: .35rem 0 0 !important; align-items: baseline; }
.ticker-price-line span { font-size: .78rem !important; color: var(--muted-2) !important; }
.ticker-price-line strong { font-size: 1rem !important; font-weight: 700 !important; letter-spacing: 0 !important; }
/* Keep the hero (and its search dropdown) above the ticker tape that follows it. */
.public-hero.brand-hero { position: relative; z-index: 6; }
.ticker-tape { position: relative; z-index: 1; }

/* ===== Screener ================================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.screener-head { padding: clamp(1.25rem, 3vw, 2.25rem) 0 1rem; }
.screener-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.1; margin: .45rem 0 .5rem; }
.screener-head h1::after { content: ""; display: block; width: 3.5rem; height: 3px; margin-top: .9rem; border-radius: 3px; background: var(--spectrum); }
.screener-head p { color: var(--muted); max-width: 62ch; margin: 0; }
.screener-panel {
  position: sticky; top: 66px; z-index: 15; display: grid; gap: .7rem; padding: .9rem; margin-bottom: .9rem;
  border: 1px solid var(--line-2); border-radius: 14px; background: color-mix(in srgb, var(--card) 94%, transparent);
}
@supports (backdrop-filter: blur(1px)) { .screener-panel { backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; } }
.screener-filters { display: grid; grid-template-columns: minmax(180px, 1.6fr) repeat(5, minmax(120px, 1fr)); gap: .55rem; }
.scr-field { display: grid; gap: .25rem; min-width: 0; }
.scr-field span { font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); }
.scr-field input, .scr-field select {
  width: 100%; min-width: 0; padding: .55rem .6rem; border-radius: 9px; font: inherit; font-size: .88rem;
  border: 1px solid var(--line-2) !important; background: var(--bg) !important; color: var(--text) !important;
}
.scr-field input:focus, .scr-field select:focus { outline: none; border-color: var(--bull) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bull) 22%, transparent) !important; }
.screener-presets { display: flex; flex-wrap: wrap; gap: .4rem; }
.scr-preset {
  padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
}
.scr-preset:hover { color: var(--text); border-color: var(--bull); background: color-mix(in srgb, var(--bull) 10%, transparent); }
.scr-reset { margin-left: auto; }
.screener-meta { margin: 0 0 .5rem; font-size: .82rem; color: var(--muted); }
.screener-table-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--card) 92%, transparent); }
.screener-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.screener-table thead th {
  padding: .6rem .7rem; text-align: left; font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted-2); background: var(--card-2); border-bottom: 1px solid var(--line);
}
.screener-table td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .88rem; }
.screener-table tbody tr:last-child td { border-bottom: 0; }
.screener-table tbody tr:hover td { background: var(--surface-hover); }
.scr-star { width: 2.4rem; padding-right: 0 !important; }
.scr-company a { display: flex; align-items: center; gap: .6rem; min-width: 0; color: var(--text); }
.scr-ticker { flex: 0 0 auto; min-width: 3.6rem; padding: .2rem .4rem; border-radius: 6px; text-align: center; font-weight: 800; font-size: .8rem; color: var(--bull); background: color-mix(in srgb, var(--bull) 13%, transparent); }
.scr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22rem; }
.scr-company a:hover .scr-name { text-decoration: underline; }
.scr-score { min-width: 8.5rem; }
.scr-score-num { font-weight: 800; font-size: 1.02rem; margin-right: .35rem; }
.scr-band { font-size: .7rem; color: var(--muted-2); }
.scr-bar { display: block; height: 4px; margin-top: .3rem; border-radius: 4px; background: var(--line); overflow: hidden; max-width: 7.5rem; }
.scr-bar b { display: block; height: 100%; border-radius: inherit; }
.scr-score-num.bull, .scr-band.bull { color: var(--bull); }
.scr-score-num.bear, .scr-band.bear { color: var(--bear); }
.scr-score-num.mid, .scr-band.mid { color: #e2b553; }
:root[data-theme="light"] .scr-score-num.mid, :root[data-theme="light"] .scr-band.mid { color: #a8760b; }
.scr-bar b.bull { background: var(--bull); }
.scr-bar b.bear { background: var(--bear); }
.scr-bar b.mid { background: #e2b553; }
.scr-num { text-align: right !important; white-space: nowrap; }
.scr-sig small { display: none; }
.scr-sector, .scr-sig { color: var(--muted); }
.scr-loading, .scr-empty { padding: 2rem !important; text-align: center; color: var(--muted); }
.screener-more { display: flex; justify-content: center; margin: 1rem 0 2rem; }
@media (max-width: 1100px) {
  .screener-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scr-search { grid-column: 1 / -1; }
  .screener-table .scr-sig { display: none; }
}
@media (max-width: 760px) {
  .screener-panel { position: static; }
  .screener-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screener-table thead { display: none; }
  .screener-table, .screener-table tbody { display: block; }
  .screener-table tr { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; grid-template-areas: "star co score" "star meta close"; gap: .15rem .5rem; padding: .65rem .6rem; border-bottom: 1px solid var(--line); }
  .screener-table td { padding: 0 !important; border: 0 !important; }
  .screener-table .scr-star { grid-area: star; align-self: center; }
  .screener-table .scr-company { grid-area: co; min-width: 0; }
  .screener-table .scr-score { grid-area: score; min-width: 0; text-align: right; }
  .screener-table .scr-sector { grid-area: meta; font-size: .76rem; }
  .screener-table .scr-close { grid-area: close; font-size: .76rem; color: var(--muted); }
  .screener-table td.scr-num:not(.scr-close) { display: none; }
  .scr-bar { margin-left: auto; }
  .scr-band { display: none; }
  .scr-name { max-width: 100%; }
}

/* ===== Save buttons (star) ======================================================= */
.star-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .35rem; border-radius: 9px;
  border: 1px solid transparent; background: transparent; color: var(--muted-2); cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600;
  transition: color .15s ease, background .15s ease, transform .15s ease;
}
.star-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.star-btn:hover { color: #f0b429; background: color-mix(in srgb, #f0b429 12%, transparent); }
.star-btn.is-on { color: #f0b429; }
.star-btn.is-on svg { fill: currentColor; }
.star-btn.with-label { padding: .35rem .7rem; border-color: var(--line-2); color: var(--muted); }
.star-btn.with-label.is-on { color: #f0b429; border-color: color-mix(in srgb, #f0b429 55%, transparent); }
.star-btn.pop svg { animation: star-pop .4s ease; }
@keyframes star-pop { 40% { transform: scale(1.35) rotate(-8deg); } 100% { transform: none; } }
.ticker-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .8rem; }
.ticker-name-row .ticker-company-name { margin: 0 !important; }

/* ===== My stocks (homepage) ========================================================= */
.mystocks-section { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.mystocks-section:empty { display: none; }
.mystocks-section .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.mystocks-tabs { display: inline-flex; gap: .25rem; padding: .25rem; border: 1px solid var(--line-2); border-radius: 999px; }
.mystocks-tabs button { padding: .35rem .8rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.mystocks-tabs button b { margin-left: .2rem; font-size: .72rem; color: var(--muted-2); }
.mystocks-tabs button.active { background: var(--bull); color: var(--on-accent); }
.mystocks-tabs button.active b { color: inherit; opacity: .8; }
.mystocks-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: .6rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.mystock-card { position: relative; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--card) 92%, transparent); transition: transform .2s ease, border-color .2s ease; }
.mystock-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.mystock-link { display: grid; gap: .25rem; padding: .75rem .8rem .8rem; color: var(--text); }
.mystock-top b { font-weight: 800; }
.mystock-card .star-btn { position: absolute; top: .45rem; right: .45rem; }
.mystock-name { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 1.6rem; }
.mystock-score { display: flex; align-items: baseline; gap: .4rem; }
.mystock-score strong { font-size: 1.4rem; font-weight: 800; }
.mystock-score small { font-size: .7rem; color: var(--muted-2); }
.mystock-card.bull .mystock-score strong { color: var(--bull); }
.mystock-card.bear .mystock-score strong { color: var(--bear); }
.mystock-card.mid .mystock-score strong { color: #e2b553; }
:root[data-theme="light"] .mystock-card.mid .mystock-score strong { color: #a8760b; }
.mystock-bar { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.mystock-bar i { display: block; height: 100%; background: var(--muted-2); }
.mystock-card.bull .mystock-bar i { background: var(--bull); }
.mystock-card.bear .mystock-bar i { background: var(--bear); }
.mystock-card.mid .mystock-bar i { background: #e2b553; }
.mystocks-empty { padding: 1rem 1.1rem; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); font-size: .9rem; }
.mystocks-empty a { color: var(--bull); }
.star-inline svg { width: 15px; height: 15px; vertical-align: -2px; fill: none; stroke: #f0b429; stroke-width: 2; }
.mystocks-row { grid-auto-columns: minmax(170px, 230px) !important; justify-content: start; }
.screener-table { min-width: 0 !important; }
@media (max-width: 760px) { .screener-table, .screener-table tbody, .screener-table tr { width: 100% !important; min-width: 0 !important; } }

/* Result rows are <button>s inside the search forms, so the forms' "button" rules
   (Search button colours) also hit them. These more specific rules undo that. */
.search .search-suggestions .search-suggestion, .calm-hero-search .search-suggestions .search-suggestion {
  background: transparent !important; color: var(--text) !important; border: 0 !important;
  padding: .6rem .65rem !important; border-radius: 9px !important; font-weight: 500 !important; width: 100%;
}
.search .search-suggestions .search-suggestion:hover, .search .search-suggestions .search-suggestion.is-active,
.calm-hero-search .search-suggestions .search-suggestion:hover, .calm-hero-search .search-suggestions .search-suggestion.is-active {
  background: color-mix(in srgb, var(--bull) 14%, transparent) !important; color: var(--text) !important;
}
.search .search-suggestion .search-suggestion-symbol, .calm-hero-search .search-suggestion .search-suggestion-symbol {
  background: color-mix(in srgb, var(--bull) 16%, transparent) !important; color: var(--bull) !important;
}
.search .search-suggestion.is-active .search-suggestion-symbol, .search .search-suggestion:hover .search-suggestion-symbol,
.calm-hero-search .search-suggestion.is-active .search-suggestion-symbol, .calm-hero-search .search-suggestion:hover .search-suggestion-symbol {
  background: var(--bull) !important; color: var(--on-accent) !important;
}
.search .search-suggestion .search-suggestion-name, .calm-hero-search .search-suggestion .search-suggestion-name { color: var(--text) !important; font-weight: 600; }
.search .search-suggestion .search-suggestion-meta, .calm-hero-search .search-suggestion .search-suggestion-meta { color: var(--muted) !important; }
.search .search-suggestions { min-width: 22rem; }
@media (max-width: 520px) { .search .search-suggestions { min-width: 0; } }
.topbar .search .search-suggestions { left: auto !important; right: 0 !important; width: max(100%, 30rem) !important; max-width: calc(100vw - 2rem); }


/* ===== 2BB Weekly ================================================================ */
.weekly-teaser {
  display: flex; align-items: center; gap: 1rem; margin-top: 1rem; padding: .9rem 1.1rem;
  border: 1px solid var(--line-2); border-radius: 14px; color: var(--text);
  background: linear-gradient(90deg, color-mix(in srgb, var(--bear) 10%, transparent), color-mix(in srgb, var(--bull) 12%, transparent)), var(--card);
  transition: transform .2s ease, border-color .2s ease;
}
.weekly-teaser[hidden] { display: none; }
.weekly-teaser:hover { transform: translateY(-2px); border-color: var(--bull); }
.wt-badge { flex: 0 0 auto; padding: .3rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--on-accent); background: var(--spectrum); }
.wt-text { display: grid; min-width: 0; }
.wt-text b { font-size: .98rem; }
.wt-text small { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-cta { margin-left: auto; flex: 0 0 auto; font-weight: 700; color: var(--bull); }
.weekly-table-wrap { overflow-x: auto; margin: .6rem 0 1.2rem; border: 1px solid var(--line); border-radius: 12px; }
.weekly-table { width: 100%; min-width: 0 !important; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.weekly-table th { text-align: left; padding: .55rem .7rem; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); background: var(--card-2); border-bottom: 1px solid var(--line); }
.weekly-table td { padding: .5rem .7rem; border-bottom: 1px solid var(--line); }
.weekly-table tr:last-child td { border-bottom: 0; }
.weekly-article .guide-body h3 { font-size: .95rem; margin: 1rem 0 .2rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 640px) { .wt-text small { display: none; } .weekly-teaser { gap: .7rem; } }
.weekly-article .info-hero h1 { max-width: 28ch !important; font-size: clamp(1.8rem, 3.4vw, 2.6rem) !important; }

/* ===== Watchlist redesign ========================================================= */
.watch-asof { margin: -.2rem 0 .8rem; font-size: .8rem; color: var(--muted-2); }
.watch-tabs { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 1.2rem !important; }
.watch-tabs::-webkit-scrollbar { display: none; }
.watch-tabs button { padding: .8rem .85rem !important; font-weight: 650 !important; font-size: .9rem; white-space: nowrap; }
.watch-tabs button span { margin-left: .3rem; padding: .05rem .45rem; border-radius: 999px; font-size: .72rem; background: var(--surface-hover); color: var(--muted); }
.watch-tabs button.active span { background: color-mix(in srgb, var(--bull) 18%, transparent); color: var(--bull); }

/* Scoreboard cards */
.wo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.wo-card {
  position: relative; display: grid; gap: .75rem; padding: 1.1rem 1.15rem 1rem; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 16px; background: color-mix(in srgb, var(--card) 92%, transparent);
}
.wo-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--spectrum); }
.wo-card header { display: grid; gap: .15rem; }
.wo-card-title { font-weight: 800; font-size: 1rem; }
.wo-card header small { color: var(--muted-2); font-size: .76rem; }
.wo-big { display: grid; gap: .1rem; }
.wo-big strong { font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.wo-big span { font-size: .76rem; color: var(--muted); }
.wo-win { display: grid; gap: .3rem; font-size: .78rem; color: var(--muted); }
.wo-win-bar { height: 8px; border-radius: 8px; background: color-mix(in srgb, var(--bear) 55%, transparent); overflow: hidden; }
.wo-win-bar i { display: block; height: 100%; border-radius: inherit; background: var(--bull); }
.wo-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: .5rem; margin: 0; padding-top: .7rem; border-top: 1px solid var(--line); }
.wo-facts div { display: grid; gap: .1rem; }
.wo-facts dt { font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.wo-facts dd { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.wo-extra { margin: 0; font-size: .78rem; color: var(--muted); }
.wo-card-link { justify-self: start; padding: 0; border: 0; background: none; color: var(--bull); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.wo-card-link:hover { text-decoration: underline; }
.up { color: var(--green); }
.down { color: var(--red); }
.flat { color: var(--muted); }

/* Panels */
.wo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.wo-panel { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--card) 92%, transparent); min-width: 0; }
.wo-panel-wide { grid-column: 1 / -1; }
.wo-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.wo-panel-head h2 { margin: 0; font-size: 1.05rem; }
.wo-panel-head small { color: var(--muted-2); font-size: .75rem; }

/* Monthly bars (HTML/CSS, crisp at any width) */
.wo-monthly { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(56px, 1fr); gap: .6rem; height: 220px; overflow-x: auto; }
.wo-month { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.wo-month-bars { display: flex; gap: 4px; justify-content: center; }
.wo-bar-slot { display: grid; grid-template-rows: 1fr 1fr; width: 26px; }
.wo-bar-half { position: relative; display: flex; }
.wo-bar-half.pos { align-items: flex-end; border-bottom: 1px solid var(--line-2); }
.wo-bar-half.neg { align-items: flex-start; }
.wo-bar-half i { position: relative; display: block; width: 100%; border-radius: 5px 5px 0 0; transition: height .6s ease; }
.wo-bar-half.neg i { border-radius: 0 0 5px 5px; }
.wo-bar-half i.bull { background: var(--bull); }
.wo-bar-half i.bear { background: var(--bear); }
.wo-bar-half i b { position: absolute; left: 50%; transform: translateX(-50%); font-size: .62rem; font-weight: 700; white-space: nowrap; color: var(--muted); }
.wo-bar-half.pos i b { bottom: calc(100% + 2px); }
.wo-bar-half.neg i b { top: calc(100% + 2px); }
.wo-month-label { margin-top: .45rem; text-align: center; font-size: .75rem; color: var(--muted); }
.wo-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .8rem; font-size: .78rem; color: var(--muted); }
.wo-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.wo-legend i { width: 10px; height: 10px; border-radius: 3px; }
.wo-legend i.bull { background: var(--bull); }
.wo-legend i.bear { background: var(--bear); }
.wo-note { margin-left: auto; color: var(--muted-2); }

/* Distribution */
.wo-dist { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .45rem; height: 210px; }
.wo-dist-col { display: grid; grid-template-rows: auto 1fr auto; gap: .3rem; text-align: center; min-width: 0; }
.wo-dist-n { font-weight: 750; font-size: .85rem; }
.wo-dist-track { display: flex; align-items: flex-end; border-bottom: 1px solid var(--line-2); }
.wo-dist-track i { display: block; width: 100%; border-radius: 6px 6px 0 0; }
.wo-dist-track i.up { background: var(--bull); }
.wo-dist-track i.down { background: var(--bear); }
.wo-dist-label { font-size: .66rem; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Latest results feed */
.wo-feed { list-style: none; margin: 0; padding: 0; display: grid; }
.wo-feed li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.wo-feed li:last-child { border-bottom: 0; }
.wo-feed a { display: flex; align-items: baseline; gap: .5rem; min-width: 0; color: var(--text); }
.wo-feed-sym { font-weight: 800; }
.wo-feed-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; color: var(--muted); }
.wo-feed-prog { font-size: .7rem; color: var(--muted-2); white-space: nowrap; }
.wo-feed-date { font-size: .75rem; color: var(--muted-2); white-space: nowrap; }
.wo-pill { display: inline-block; min-width: 4rem; padding: .18rem .45rem; border-radius: 7px; text-align: center; font-weight: 750; font-size: .8rem; font-variant-numeric: tabular-nums; }
.wo-pill.up { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.wo-pill.down { color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); }
.wo-pill.flat { color: var(--muted); background: var(--surface-hover); }
.wo-disclaimer { margin: 1rem 0 0; font-size: .76rem; color: var(--muted-2); }

/* Priority cards */
.wp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.4rem 0 .7rem; }
.wp-section-head:first-child { margin-top: 0; }
.wp-section-head h2 { margin: 0; font-size: 1.15rem; }
.wp-section-head small { color: var(--muted-2); font-size: .78rem; }
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.wp-card {
  position: relative; display: grid; gap: .65rem; padding: .95rem 1rem; border: 1px solid var(--line); border-radius: 14px;
  background: color-mix(in srgb, var(--card) 92%, transparent); transition: transform .2s ease, border-color .2s ease;
}
.wp-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.wp-card.is-today { border-color: color-mix(in srgb, var(--bull) 45%, transparent); }
.wp-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.wp-card header a { display: grid; min-width: 0; color: var(--text); }
.wp-card header b { font-size: 1.05rem; font-weight: 800; }
.wp-card header span { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-meta { display: flex; flex-wrap: wrap; gap: .3rem; }
.wp-chip { padding: .12rem .5rem; border-radius: 999px; font-size: .68rem; font-weight: 650; border: 1px solid var(--line-2); color: var(--muted); }
.wp-chip.today { color: var(--bull); border-color: color-mix(in srgb, var(--bull) 50%, transparent); }
.wp-chip.status { color: var(--text); }
.wp-result { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.wp-result strong { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.wp-result small { font-size: .75rem; color: var(--muted-2); }
.wp-track-bar { position: relative; height: 8px; border-radius: 8px; background: linear-gradient(90deg, color-mix(in srgb, var(--bear) 45%, transparent), var(--line) 50%, color-mix(in srgb, var(--bull) 55%, transparent)); }
.wp-zero { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--muted-2); border-radius: 2px; }
.wp-dot { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid var(--card); background: var(--muted); transition: left .6s ease; }
.wp-dot.up { background: var(--bull); }
.wp-dot.down { background: var(--bear); }
.wp-track-labels { display: flex; justify-content: space-between; margin-top: .3rem; font-size: .64rem; color: var(--muted-2); }
.wp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: 0; padding-top: .55rem; border-top: 1px solid var(--line); }
.wp-facts dt { font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.wp-facts dd { margin: 0; font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.wp-done td.r, .wp-done th.r { text-align: right; }
.wp-outcome { font-size: .78rem; font-weight: 650; }
.wp-outcome.hit { color: var(--green); }
.wp-outcome.early { color: var(--muted); }

@media (max-width: 1000px) {
  .wo-cards { grid-template-columns: 1fr; }
  .wo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wo-feed li { grid-template-columns: minmax(0, 1fr) auto; }
  .wo-feed-prog, .wo-feed-date { display: none; }
  .wo-note { margin-left: 0; }
  .wo-dist { gap: .25rem; }
}
.wo-month-label { margin-top: 1.25rem !important; }
.wo-monthly { height: 240px !important; padding-top: 1rem; }
.watch-table td.good, .watch-table td .good, .watch-table b.good { color: var(--green) !important; }
.watch-table td.bad, .watch-table td .bad, .watch-table b.bad { color: var(--red) !important; }
.performance-strip strong { white-space: nowrap; }
.earnings-day-tabs { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; gap: .4rem; scrollbar-width: thin; max-width: 100%; }
.earnings-day-tabs button { flex: 0 0 auto; }
.earnings-watch-head { display: grid !important; gap: .8rem; }


/* ===== Earnings calendar ========================================================= */
.ec-bar { display: grid; gap: .8rem; padding: .9rem; margin-bottom: 1rem; border: 1px solid var(--line-2); border-radius: 14px; background: color-mix(in srgb, var(--card) 94%, transparent); }
.ec-weeknav { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ec-nav { width: 2.2rem; height: 2.2rem; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.ec-nav:hover:not(:disabled) { border-color: var(--bull); color: var(--bull); }
.ec-nav:disabled { opacity: .35; cursor: default; }
.ec-week { display: grid; min-width: 9rem; text-align: center; }
.ec-week b { font-size: 1.05rem; }
.ec-week small { font-size: .74rem; color: var(--muted-2); }
.ec-thisweek { margin-left: auto; }
.ec-filters { display: grid; grid-template-columns: repeat(3, minmax(140px, 220px)) auto; gap: .55rem; align-items: end; }
.ec-mine { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .2rem; font-size: .86rem; color: var(--muted); cursor: pointer; }
.ec-mine input { accent-color: var(--bull); width: 1rem; height: 1rem; }
.ec-legend { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; font-size: .74rem; color: var(--muted-2); }
.ec-legend-icon { width: 14px; height: 14px; fill: none; stroke-width: 2; vertical-align: -2px; }
.ec-legend-icon.pre { stroke: #e2b553; }
.ec-legend-icon.post { stroke: var(--bull); fill: color-mix(in srgb, var(--bull) 25%, transparent); }
.ec-week-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .7rem; margin-bottom: 2rem; align-items: start; }
.ec-day { display: grid; gap: .5rem; padding: .7rem; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--card) 92%, transparent); min-width: 0; }
.ec-day.is-today { border-color: color-mix(in srgb, var(--bull) 60%, transparent); box-shadow: inset 0 3px 0 var(--bull) !important; }
.ec-day.is-past { opacity: .85; }
.ec-day header { display: flex; align-items: baseline; gap: .4rem; padding: 0 .15rem .45rem; border-bottom: 1px solid var(--line); }
.ec-dname { font-weight: 800; }
.ec-ddate { color: var(--muted); font-size: .85rem; }
.ec-todaytag { padding: .05rem .45rem; border-radius: 999px; font-size: .66rem; font-weight: 800; color: var(--on-accent); background: var(--bull); }
.ec-dcount { margin-left: auto; padding: .05rem .45rem; border-radius: 999px; font-size: .72rem; color: var(--muted); background: var(--surface-hover); }
.ec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.ec-item { display: grid; gap: .2rem; padding: .5rem .55rem; border-radius: 10px; border: 1px solid transparent; color: var(--text); transition: background .15s ease, border-color .15s ease; }
.ec-item:hover { background: var(--surface-hover); border-color: var(--line-2); }
.ec-top { display: flex; align-items: center; gap: .35rem; }
.ec-ticker { font-weight: 800; letter-spacing: .01em; }
.ec-saved { color: #f0b429; font-size: .8rem; }
.ec-score { margin-left: auto; min-width: 2rem; padding: .05rem .35rem; border-radius: 6px; text-align: center; font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ec-score.bull { color: var(--bull); background: color-mix(in srgb, var(--bull) 14%, transparent); }
.ec-score.bear { color: var(--bear); background: color-mix(in srgb, var(--bear) 14%, transparent); }
.ec-score.mid { color: #e2b553; background: color-mix(in srgb, #e2b553 14%, transparent); }
:root[data-theme="light"] .ec-score.mid { color: #8a6208; }
.ec-score.none { color: var(--muted-2); }
.ec-name { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-bottom { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.ec-session { display: inline-flex; align-items: center; gap: .25rem; font-size: .68rem; color: var(--muted); }
.ec-session svg { width: 13px; height: 13px; fill: none; stroke-width: 2; }
.ec-session.pre svg { stroke: #e2b553; }
.ec-session.post svg { stroke: var(--bull); fill: color-mix(in srgb, var(--bull) 25%, transparent); }
.ec-session.tbd { color: var(--muted-2); }
.ec-confirmed { font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green); }
.ec-est, .ec-result { font-size: .72rem; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.ec-result { color: var(--text); }
.ec-result b.beat { color: var(--green); }
.ec-result b.miss { color: var(--red); }
.ec-none { margin: .3rem .2rem; font-size: .8rem; color: var(--muted-2); }
.ec-more { justify-self: start; padding: .3rem .2rem; border: 0; background: none; color: var(--bull); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.earnings-seo section { margin-bottom: 1rem; }
@media (max-width: 760px) {
  .ec-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-thisweek { margin-left: 0; }
  .ec-week-grid { grid-template-columns: 1fr; }
}

/* Header: with nine menu items, switch to the menu button below 1280px. */
@media (min-width: 1281px) { .topbar .search { width: min(20rem, 22vw) !important; } .top-nav a { padding-inline: .55rem !important; } }
@media (max-width: 1280px) {
  .topbar { flex-wrap: wrap; gap: .6rem; }
  .nav-toggle { display: flex !important; order: 1; }
  .top-nav {
    display: none !important; order: 4; position: absolute; top: 100%; left: 1rem; right: 1rem;
    flex-direction: column; align-items: stretch; width: auto; max-width: none; overflow: visible;
    margin-top: .5rem; padding: .5rem; border: 1px solid var(--line-2); border-radius: 12px;
    background: var(--card) !important; z-index: 30;
  }
  .top-nav.open { display: flex !important; }
  .top-nav a { width: 100%; padding: .75rem .85rem; border-radius: 8px; }
  .topbar .search { order: 3; flex: 1 1 auto; width: auto !important; min-width: 0; }
  .theme-toggle { position: static; order: 2; }
}

/* ===== Homepage v2 ================================================================ */
/* Today on 2BB */
.today-line { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin: 1rem 0 0; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--card) 85%, transparent); font-size: .92rem; color: var(--muted); }
.today-line[hidden] { display: none; }
.today-badge { flex: 0 0 auto; padding: .2rem .6rem; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--on-accent); background: var(--bull); }
.today-text b { color: var(--text); }
.today-text a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.today-text a:hover { color: var(--bull); }

/* Market mood */
.mood-section { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.mood-section[hidden] { display: none; }
.mood-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem 2rem; padding: clamp(1.1rem, 2.5vw, 1.6rem); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  background: radial-gradient(28rem 16rem at 0% 100%, color-mix(in srgb, var(--bear) 12%, transparent), transparent 70%),
              radial-gradient(28rem 16rem at 100% 0%, color-mix(in srgb, var(--bull) 14%, transparent), transparent 70%),
              color-mix(in srgb, var(--card) 90%, transparent); }
.mood-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--spectrum); }
.mood-head h2 { margin: .35rem 0 .5rem; font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.mood-word.bull { color: var(--bull); }
.mood-word.bear { color: var(--bear); }
.mood-word.mid { color: #e2b553; }
:root[data-theme="light"] .mood-word.mid { color: #a8760b; }
.mood-head p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .92rem; }
.mood-head b.bull { color: var(--bull); }
.mood-head b.bear { color: var(--bear); }
.mood-meter { position: relative; align-self: center; padding-top: 1.4rem; }
.mood-bar { display: flex; height: 14px; border-radius: 14px; overflow: hidden; background: var(--line); }
.mood-bar i { display: block; height: 100%; transition: width .8s ease; }
.mood-bar i.bear { background: var(--bear); }
.mood-bar i.flat { background: color-mix(in srgb, var(--muted-2) 45%, transparent); }
.mood-bar i.bull { background: var(--bull); }
.mood-needle { position: absolute; top: 0; transform: translateX(-50%); transition: left .8s ease; }
.mood-needle span { display: block; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 11px solid var(--text); }
.mood-scale { display: flex; justify-content: space-between; margin-top: .45rem; font-size: .72rem; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.mood-scale .bear { color: var(--bear); }
.mood-scale .bull { color: var(--bull); }
.mood-bands { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.mood-band { display: grid; gap: .1rem; padding: .5rem .6rem; border-radius: 10px; background: var(--surface-subtle); border-top: 3px solid var(--line-2); }
.mood-band span { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); }
.mood-band b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.mood-band small { font-size: .72rem; color: var(--muted-2); }
.mood-band small.up { color: var(--green); }
.mood-band small.down { color: var(--red); }
.mood-band.weak, .mood-band.cautious { border-top-color: var(--bear); }
.mood-band.neutral { border-top-color: #e2b553; }
.mood-band.constructive, .mood-band.strong { border-top-color: var(--bull); }

/* Earnings coming up */
.home-earnings { margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--card) 90%, transparent); }
.home-earnings[hidden] { display: none; }
.he-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.he-head h2 { margin: .25rem 0 0; font-size: 1.15rem; }
.he-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.he-day-head { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .45rem; }
.he-day-head b { font-size: .95rem; }
.he-day-head small { color: var(--muted-2); font-size: .76rem; }
.he-items { display: flex; flex-wrap: wrap; gap: .4rem; }
.he-item { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .55rem; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.he-item:hover { border-color: var(--bull); transform: translateY(-1px); }
.he-sym { font-weight: 800; font-size: .85rem; }
.he-when { font-size: .8rem; color: var(--muted); }
.he-score { min-width: 1.7rem; padding: .02rem .3rem; border-radius: 6px; text-align: center; font-size: .74rem; font-weight: 800; }
.he-score.bull { color: var(--bull); background: color-mix(in srgb, var(--bull) 14%, transparent); }
.he-score.bear { color: var(--bear); background: color-mix(in srgb, var(--bear) 14%, transparent); }
.he-score.mid { color: #e2b553; background: color-mix(in srgb, #e2b553 14%, transparent); }
:root[data-theme="light"] .he-score.mid { color: #8a6208; }
.he-more { align-self: center; padding: .3rem .5rem; font-size: .8rem; font-weight: 700; color: var(--bull); }

/* Track record strip */
.track-strip { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; padding: .8rem 1.1rem; border: 1px solid var(--line-2); border-radius: 14px; color: var(--muted); font-size: .9rem; background: color-mix(in srgb, var(--card) 88%, transparent); transition: border-color .2s ease; }
.track-strip[hidden] { display: none; }
.track-strip:hover { border-color: var(--bull); }
.track-badge { padding: .2rem .6rem; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text); border: 1px solid var(--line-2); }
.track-text { display: flex; flex-wrap: wrap; gap: .3rem .8rem; }
.track-text b { color: var(--text); }
.track-text i { color: var(--line-2); font-style: normal; }
.track-cta { margin-left: auto; font-weight: 700; color: var(--bull); }

/* Rising and falling */
.movers-section { margin-top: clamp(2rem, 4vw, 3rem); }
.movers-section .section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.movers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.movers-col { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--card) 92%, transparent); min-width: 0; }
.movers-col h3 { margin: 0 0 .5rem; font-size: .95rem; }
.movers-col.up h3 { color: var(--bull); }
.movers-col.down h3 { color: var(--bear); }
.movers-col ul { list-style: none; margin: 0; padding: 0; }
.movers-col li a { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) auto auto; align-items: center; gap: .6rem; padding: .55rem .2rem; border-bottom: 1px solid var(--line); color: var(--text); }
.movers-col li:last-child a { border-bottom: 0; }
.movers-col li a:hover { background: var(--surface-hover); }
.mv-sym { font-weight: 800; }
.mv-reason { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-scores { font-size: .82rem; color: var(--muted-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mv-scores b { color: var(--text); }
.mv-delta { min-width: 3.2rem; padding: .15rem .4rem; border-radius: 7px; text-align: center; font-weight: 800; font-size: .82rem; font-variant-numeric: tabular-nums; }
.mv-delta.up { color: var(--bull); background: color-mix(in srgb, var(--bull) 14%, transparent); }
.mv-delta.down { color: var(--bear); background: color-mix(in srgb, var(--bear) 14%, transparent); }
.movers-loading { padding: .6rem .2rem; color: var(--muted-2); font-size: .85rem; }

@media (max-width: 860px) {
  .mood-card { grid-template-columns: 1fr; }
  .mood-bands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .movers-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .mood-bands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .movers-col li a { grid-template-columns: 3.2rem minmax(0, 1fr) auto; }
  .mv-reason { display: none; }
  .track-cta { margin-left: 0; }
}
@media (max-width: 640px) { .track-text i { display: none; } .track-text { flex-direction: column; } }
