:root {
  --bg: #f5f2ec;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #15171c;
  --muted: #676b73;
  --faint: #9a9da3;
  --line: #e5e0d6;
  --brand: #5b4bc4;
  --brand-soft: #efedf8;
  --up: #1a7f5a;
  --up-soft: #eaf4ee;
  --down: #c0473d;
  --down-soft: #f8ebe8;
  --heat0: #dedad2;
  --heat1: #ecd9a8;
  --heat2: #e7bd8f;
  --heat3: #dc9a7c;
  --heat4: #cf8496;
  --new: #fffaea;
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.04), 0 4px 16px rgba(20, 20, 30, 0.05);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1014;
    --surface: #161920;
    --surface-2: #1b1f27;
    --ink: #ecebe6;
    --muted: #a0a5ad;
    --faint: #6d727b;
    --line: #262b34;
    --brand: #a99cf0;
    --brand-soft: #221f33;
    --up: #5cc495;
    --up-soft: #13281f;
    --down: #e57d72;
    --down-soft: #2c1a18;
    --heat0: #353b45;
    --new: #25221a;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1014;
  --surface: #161920;
  --surface-2: #1b1f27;
  --ink: #ecebe6;
  --muted: #a0a5ad;
  --faint: #6d727b;
  --line: #262b34;
  --brand: #a99cf0;
  --brand-soft: #221f33;
  --up: #5cc495;
  --up-soft: #13281f;
  --down: #e57d72;
  --down-soft: #2c1a18;
  --heat0: #353b45;
  --new: #25221a;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15.5px/1.5 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.up { color: var(--up); }
.down { color: var(--down); }
.empty, .none { color: var(--muted); font-style: italic; }

/* Header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.logo {
  font: 800 30px/1 var(--serif);
  letter-spacing: -0.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: flex-end;
}
.logo-dot {
  width: 9px; height: 9px; margin: 0 0 4px 3px; border-radius: 50%;
  background: var(--brand);
}
.logo:hover { color: var(--ink); }
.tagline { color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.tagline small { font-size: 12px; color: var(--faint); }
.tagline small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tagline small a:hover { color: var(--brand); }
.top nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.top nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 14.5px; }
.top nav a:hover { color: var(--ink); background: var(--surface-2); }
.top nav a[aria-current] { color: var(--ink); background: var(--surface-2); }
.theme { border: 0; background: none; color: var(--muted); font-size: 17px; cursor: pointer; padding: 6px 8px; }

/* "Updated · Next update" line */
.topline {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap;
  margin: 18px 0 14px;
}
.today { display: flex; align-items: center; gap: 8px; margin: 0; flex-wrap: wrap; }
.today b { margin-right: 4px; }
.today b { font: 700 19px/1.2 var(--serif); }
.market {
  font: 600 12px var(--sans); padding: 3px 10px; border-radius: 999px;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--line);
}
.market.open { color: var(--up); background: var(--up-soft); border-color: transparent; }
.market.open::before { content: "● "; }
.status {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font: 500 13px var(--mono); color: var(--muted);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft);
}
.status .reload {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  color: var(--brand); background: var(--brand-soft);
}
.status .reload:hover { color: #fff; background: var(--brand); }
.status.busy .pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .status .reload {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  color: var(--brand); background: var(--brand-soft);
}
.status .reload:hover { color: #fff; background: var(--brand); }
.status.busy .pulse { animation: none; } }

/* AI board strip */
.board {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0 0; padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.board-label { font-weight: 700; font-size: 13px; white-space: nowrap; color: var(--brand); }
.board-label small { display: block; font-weight: 500; color: var(--faint); font-size: 11.5px; }
.board-track { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.board-track::-webkit-scrollbar { display: none; }
.board-item {
  display: inline-flex; gap: 6px; align-items: baseline; white-space: nowrap;
  padding: 4px 9px; border-radius: 8px; background: var(--surface-2);
  font: 500 12.5px var(--mono); border-bottom: 2px solid var(--heat0);
}
.board-item b { font-weight: 700; }
.board-item.heat1 { border-bottom-color: var(--heat1); }
.board-item.heat2 { border-bottom-color: var(--heat2); }
.board-item.heat3 { border-bottom-color: var(--heat3); }
.board-item.heat4 { border-bottom-color: var(--heat4); }

/* Two columns */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; margin-top: 20px; align-items: start; }
.col-side { position: sticky; top: 16px; }

/* Stories */
.kicker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.story.big {
  padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.story.big h1 { font: 700 clamp(24px, 3.2vw, 34px)/1.15 var(--serif); letter-spacing: -0.015em; }
.story.big .summary { color: var(--muted); margin: 10px 0 12px; font-size: 16px; max-width: 62ch; }
/* A site's mark next to the logo (qc): a round tag, centred on the wordmark */
.logo-site {
  align-self: center; margin-left: 9px; padding: 4px 9px 5px; border-radius: 999px;
  font: 700 12px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--brand);
}
/* A site's section band in the side column (Showbiz on qc) */
.panel-title { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.band-side .panel-head { padding: 14px 16px 10px; }
.side-list { padding: 0 16px 6px; }
.side-list .story { padding: 10px 0; }
.side-list .story:last-child { border-bottom: 0; }
.band-side + .band-side { margin-top: 16px; }
.side-list .headline { font: 600 15.5px/1.3 var(--serif); }

/* Developing subjects: the headline story, then its related stories */
.topic-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 8px; font-size: 13px; }
.topic-label .dev {
  font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--down); background: var(--down-soft); padding: 2px 7px; border-radius: 999px;
}
.topic-label b { font: 700 14px var(--sans); color: var(--ink); }
.topic-label .topic-count { color: var(--muted); font-size: 12.5px; }
.topic .related { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
/* One line each: the headline cut off before its outlet and time */
.topic .related li { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.topic .related a { font: 600 15px/1.3 var(--serif); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topic .related .meta { flex: none; flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 640px) {
  .topic .related li { flex-wrap: wrap; gap: 2px 8px; }
  .topic .related a { white-space: normal; }
}
.topic .related a:hover { color: var(--brand); }
.topic.card .related a { font-size: 14.5px; }
.topic .related .meta { font-size: 12px; }
.topic-more { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
/* Headlines 2 and 3, full width under the lead like it, a size smaller */
.topic-row { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.topic-row .story.big h1 { font-size: clamp(21px, 2.5vw, 27px); }
.topic.card h2 { flex: 0 0 auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.story.card {
  padding: 14px 16px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.story.card .kicker { margin: 0; }
.story.card h2 { font: 600 18px/1.25 var(--serif); letter-spacing: -0.005em; flex: 1; }
.story h1 a:hover, .story h2 a:hover, .headline:hover { color: var(--brand); }

.band { margin-top: 28px; }
.band-title {
  display: flex; align-items: center; gap: 8px;
  font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 4px;
}
.band-ai .band-title { border-bottom-color: var(--brand); color: var(--brand); margin-bottom: 0; }
.band .cards { margin-top: 12px; }
.cards-title { margin-top: 28px; }
.list .story { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list .headline { font: 600 17px/1.3 var(--serif); }
.line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }
.story.new { background: var(--new); box-shadow: -8px 0 0 var(--new), 8px 0 0 var(--new); }

/* Ticker chips: the stock's last session next to its news */
.chip {
  display: inline-flex; gap: 5px; align-items: baseline;
  padding: 2px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line);
  font: 500 12px/1.4 var(--mono); color: var(--ink);
}
.chip b { font-weight: 700; }
.chip.hot { border-color: var(--heat2); }
.chip.hot b::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--heat3); margin-right: 5px; vertical-align: 1px; }
.tag-ai {
  display: inline-block; padding: 1px 6px; border-radius: 5px;
  background: var(--brand-soft); color: var(--brand); font: 700 10.5px/1.5 var(--sans); letter-spacing: 0.06em;
}
.meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.meta .count { color: var(--brand); background: var(--brand-soft); font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.meta .src { font-weight: 500; color: var(--ink); opacity: 0.8; }
.meta .dot { color: var(--faint); }
.line .meta { margin-left: 2px; }

/* X posts about a story, Techmeme-style: a line of handles, each post in a popover */
.xline { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
/* In the big blocks, on the sources line */
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 10px; }
.summary + .meta-row { margin-top: 0; }
.xline.inline { margin: 0; font-size: 12.5px; }
.xline .xlabel { font-weight: 700; color: var(--ink); margin-right: 1px; }
.xline .xh { color: var(--brand); font-weight: 500; }
.xline .xh:hover, .xline .xh[aria-expanded="true"] { text-decoration: underline; }
.xpop {
  position: absolute; z-index: 60; max-height: 60vh; overflow: auto; padding: 11px 14px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 2px 6px rgba(20, 20, 30, 0.08), 0 12px 40px rgba(20, 20, 30, 0.18);
}
.xpop .xwho { display: block; color: var(--muted); font-size: 12.5px; }
.xpop .xwho b { color: var(--ink); font-weight: 600; }
.xpop .dot { color: var(--faint); margin: 0 5px; }
.xpop .xtext { display: block; margin: 5px 0 8px; font-size: 14.5px; line-height: 1.45; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.xpop .on-x { font: 600 12.5px var(--sans); color: var(--brand); }

/* Segmented tabs */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.seg a { padding: 4px 11px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.seg a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.06); }

/* Volume panel */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.panel-head { display: grid; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.views { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: -2px -16px 0; padding: 0 16px; }
.views button {
  border: 0; background: none; cursor: pointer; padding: 4px 0 9px; margin-bottom: -1px;
  font: 700 17px var(--serif); color: var(--faint); border-bottom: 2px solid transparent;
}
.views button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.view-title { font: 700 19px var(--serif); padding: 14px 16px 0; }
.view-sub { margin: 2px 0 0; padding: 0 16px 8px; color: var(--muted); font-size: 12.5px; }
.tabbed .view-title { display: none; }
.tabbed .view-sub { padding-top: 10px; }
.view + .view { border-top: 1px solid var(--line); }
.tabbed .view + .view { border-top: 0; }
.stories-count { font: 600 12px var(--mono); color: var(--brand); background: var(--brand-soft); padding: 2px 7px; border-radius: 6px; }
.mini-movers li { padding: 10px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.mm-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ticker { font: 700 14px var(--mono); }
.mm-name { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-figures { display: flex; align-items: center; gap: 6px; }
.mm-why {
  grid-column: 1 / -1; font-size: 13px; line-height: 1.35; color: var(--ink); opacity: 0.85;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mm-why.none { color: var(--faint); font-style: italic; opacity: 1; }
.more-link { display: block; padding: 12px 16px; font-weight: 600; font-size: 13.5px; color: var(--brand); }
.band .more-link { padding-left: 0; }

/* Relative volume bar and change pill */
.rvbar {
  position: relative; display: inline-flex; align-items: center; justify-content: flex-end;
  width: 76px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden;
  font: 700 12px var(--mono);
}
.rvbar i { position: absolute; inset: 0 auto 0 0; background: var(--heat0); opacity: 0.7; }
.rvbar b { position: relative; }
.heat1 i { background: var(--heat1); }
.heat2 i { background: var(--heat2); }
.heat3 i { background: var(--heat3); }
.heat4 i { background: var(--heat4); }
.pill { display: inline-block; min-width: 62px; text-align: right; padding: 2px 7px; border-radius: 6px; font: 700 12px/18px var(--mono); }
.pill.up { background: var(--up-soft); }
.pill.down { background: var(--down-soft); }

/* Pages */
.page-head { margin: 24px 0 12px; }
.page-head h1 { font: 700 34px/1.1 var(--serif); letter-spacing: -0.02em; }
.page-head p { color: var(--muted); margin: 6px 0 12px; }
.company .ticker { font-size: 0.8em; color: var(--brand); margin-right: 6px; }

.movers { max-width: 860px; }
.mover { padding: 14px 0; border-bottom: 1px solid var(--line); }
.mover-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.mm-comment { grid-column: 1 / -1; margin: 2px 0 0; color: var(--ink); font-size: 13px; line-height: 1.4; }
.mm-source {
  grid-column: 1 / -1; font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mm-source:hover { color: var(--brand); }
.stage { font: 600 11.5px var(--sans); color: var(--muted); }
.rank { font: 500 12px var(--mono); color: var(--faint); width: 22px; }
.mover .ticker { font-size: 16px; }
.mover .name { color: var(--muted); font-size: 14px; }
.figures { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.why { margin: 8px 0 0 32px; display: grid; gap: 4px; }
.why li { padding-left: 12px; border-left: 2px solid var(--brand-soft); }
.why a { font: 600 15.5px/1.35 var(--serif); }
.why .meta { margin-left: 6px; }
.mover .none { margin: 6px 0 0 32px; font-size: 13.5px; }

.feed { max-width: 860px; }
details { margin-top: 6px; font-size: 14px; }
summary { color: var(--muted); cursor: pointer; font-size: 12.5px; font-weight: 500; }
details ul { margin: 6px 0 0 10px; display: grid; gap: 4px; }

.sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 24px; max-width: 860px; }
.session-card { display: grid; gap: 6px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.sc-day { font-size: 12.5px; color: var(--muted); }
.sc-rv { position: relative; font: 700 18px var(--mono); padding: 2px 0 6px; }
.sc-rv i { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--heat0); }
.sc-rv small { font: 500 11px var(--sans); color: var(--muted); }
.session-card .pill { justify-self: start; }

.prose { max-width: 680px; }
.prose h2 { font: 700 20px var(--serif); margin: 26px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose p a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose h2 .radar-icon { vertical-align: -2px; }

footer { margin-top: 48px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer p { margin: 4px 0; }
footer a { color: var(--brand); }

/* Phones and tablets: the volume panel first, the news after */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .col-side { position: static; order: -1; }
  .mini-movers li:nth-child(n + 7) { display: none; }
}
@media (max-width: 560px) {
  .tagline { display: none; }
  .top-row { flex-wrap: nowrap; gap: 8px; }
  .logo { font-size: 26px; }
  .top nav { gap: 0; }
  .top nav a { padding: 5px 6px; font-size: 13.5px; }
  .theme { padding: 5px 4px; }
  .status { font-size: 12px; }
  .story.big { padding: 18px 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .mover .name { flex-basis: 100%; order: 5; padding-left: 32px; }
  .why { margin-left: 0; }
  .mover .none { margin-left: 0; }
}

/* Alerts: the ask to turn them on */
.alerts-ask {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 20;
  width: min(600px, calc(100% - 32px));
  display: flex; align-items: center; gap: 14px;
  padding: 14px 14px 14px 18px; border-radius: 14px;
  background: var(--ink); color: var(--bg); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.alerts-ask[hidden] { display: none; }
.alerts-ask .bell { width: 22px; height: 22px; flex: none; fill: currentColor; }
.alerts-ask div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.alerts-ask b { font: 700 17px/1.25 var(--serif); }
.alerts-ask span { font-size: 13.5px; opacity: 0.8; }
.alerts-on {
  border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer;
  background: var(--brand); color: #fff; font: 600 14.5px var(--sans);
}
.alerts-close { border: 0; background: none; color: inherit; opacity: 0.7; font-size: 22px; cursor: pointer; padding: 0 4px; }
@media (max-width: 560px) {
  .alerts-ask { bottom: 12px; gap: 10px; padding: 12px; }
  .alerts-ask span { font-size: 12.5px; }
}

/* Last alert, in the feed */
.last-alert {
  display: flex; align-items: center; gap: 16px; margin: 22px 0 0; padding: 16px 20px;
  background: var(--surface); border: 1.5px solid var(--brand); border-radius: 16px;
}
.alert-slot { list-style: none; padding: 18px 0 12px; }
.alert-slot .last-alert { margin: 0; }
.last-alert > div { flex: 1; min-width: 0; }
.la-kicker { margin: 0 0 4px; color: var(--brand); font-weight: 600; font-size: 14px; }
.la-title { display: block; font: 700 21px/1.25 var(--serif); color: var(--ink); }
.la-sub { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.last-alert .alerts-on[hidden] { display: none; }
.last-alert .alerts-on:disabled { opacity: 0.85; cursor: default; }
@media (max-width: 560px) {
  .last-alert { flex-direction: column; align-items: stretch; padding: 14px 16px; }
}

/* Sentinelle Radar */
.radar-icon { flex: none; color: var(--brand); vertical-align: -3px; }
.radar-card {
  /* one box; its right column is the side panel's width plus half the gap
     below (360 + 28/2), so the dividing line sits midway between the news
     and the panel */
  margin: 0 0 14px; overflow: hidden;
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: 16px;
}
.radar-pane { display: grid; grid-template-columns: minmax(0, 1fr) 374px; }
.radar-pane[hidden] { display: none; }
.radar-pane + .radar-pane { border-top: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); }
.tabbed .radar-pane + .radar-pane { border-top: 0; }
.radar-tabs {
  display: flex; gap: 22px; padding: 0 18px; flex-wrap: wrap;
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.radar-tabs button {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer;
  padding: 12px 0 10px; margin-bottom: -1px; border-bottom: 2px solid transparent;
  font: 700 17px var(--serif); color: var(--faint);
}
.radar-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.radar-tabs button[aria-selected="false"] .radar-icon { opacity: 0.55; }
.tabbed .radar-main header .radar-brand { display: none; }
.radar-leaders h3 small { font: 500 12px var(--sans); color: var(--faint); margin-left: 4px; }
.rl-move { font: 600 12px var(--mono); white-space: nowrap; }
.rl-move.up, .radar-chips .up, .ai-table td.up { color: var(--up); }
.rl-move.down, .radar-chips .down, .ai-table td.down { color: var(--down); }
.radar-chips .up, .radar-chips .down { font: 600 12px var(--mono); }
.ai-table td.theme { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ai-table .ri-news { display: block; font-size: 12.5px; margin-top: 2px; }
/* Both sides stretch to the same height with their "→" link pinned to the
   bottom, so the two links line up whatever the summary's length */
.radar-main, .radar-leaders { display: flex; flex-direction: column; }
.radar-main { padding: 14px 18px 12px; }
.radar-card .rl-more { margin-top: auto; padding-top: 10px; align-self: flex-start; }
.radar-leaders {
  padding: 14px 18px 12px 32px; border-left: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.radar-leaders h3 { margin: 0 0 8px; font: 700 14px var(--serif); }
.radar-leaders h3 a { color: var(--ink); }
.radar-leaders ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.radar-leaders li { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.radar-leaders .ticker { font-size: 13px; }
.rl-more { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand); }
.rl-name { color: var(--muted); font-size: 12.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radar-card header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.radar-brand { display: inline-flex; align-items: center; gap: 8px; font: 700 17px var(--serif); color: var(--ink); margin: 0; }
.radar-date { color: var(--muted); font-size: 13px; }
.radar-what { margin-left: auto; font-size: 13px; color: var(--brand); }
.radar-summary { margin: 8px 0 10px; color: var(--ink); font-size: 15px; max-width: 80ch; }
.radar-summary .t-link { font: 700 0.92em var(--mono); color: var(--brand); }
.radar-summary .t-link:hover { text-decoration: underline; }
.radar-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.radar-chips a {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 13px;
}
.radar-chips a:hover { border-color: var(--brand); }
.radar-chips b { font: 700 13px var(--mono); }
.radar-chips .more { color: var(--brand); font-weight: 600; background: none; border-color: transparent; }
.event { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.radar-chips .event { color: var(--muted); }
.radar-chips .event > span[aria-hidden] { display: none; }  /* text only: calmer next to the summary */
.ev-entered_30_30, .ev-stage_advancement, .ev-score_velocity { color: var(--up); }
.ev-left_30_30 { color: var(--down); }
/* In lists, the status is a badge like the movers' % change, without the emoji */
.mini-movers .event, .ri-head .event {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px;
  font: 600 12px/18px var(--sans); background: var(--surface-2);
}
.mini-movers .event > span[aria-hidden], .ri-head .event > span[aria-hidden] { display: none; }
.mini-movers .ev-entered_30_30, .mini-movers .ev-stage_advancement, .mini-movers .ev-score_velocity,
.ri-head .ev-entered_30_30, .ri-head .ev-stage_advancement, .ri-head .ev-score_velocity { background: var(--up-soft); }
.mini-movers .ev-left_30_30, .ri-head .ev-left_30_30 { background: var(--down-soft); }
.mini-movers .ev-insider_cluster_buy, .ri-head .ev-insider_cluster_buy { color: var(--brand); background: var(--brand-soft); }
.views button .radar-icon, .views button .tab-icon { width: 14px; height: 14px; vertical-align: -2px; color: var(--brand); }
.views button[aria-selected="false"] .radar-icon, .views button[aria-selected="false"] .tab-icon { opacity: 0.55; }
.on-radar .market-seg { display: none; }
.panel:not(.on-radar) .radar-seg { display: none; }
.seg button { border: 0; background: none; cursor: pointer; padding: 4px 11px; border-radius: 7px; font: 500 13px var(--sans); color: var(--muted); white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.06); }
.view-section { font: 700 15px var(--serif); padding: 12px 16px 2px; margin: 0; border-top: 1px solid var(--line); }
.mm-comment { grid-column: 1 / -1; margin: 2px 0 0; color: var(--ink); font-size: 13px; line-height: 1.4; }
.mm-source {
  grid-column: 1 / -1; font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mm-source:hover { color: var(--brand); }
.stage { font: 600 11.5px var(--sans); color: var(--muted); }
.rank { font: 600 12px var(--mono); color: var(--faint); min-width: 16px; }
.score { font: 700 12px var(--mono); color: var(--brand); background: var(--brand-soft); padding: 2px 7px; border-radius: 6px; }
.perfect { font: 700 11px var(--mono); color: var(--up); background: var(--up-soft); padding: 2px 6px; border-radius: 6px; }

.radar-head .radar-brand { font-size: 15px; color: var(--brand); }
.radar-nav { display: flex; gap: 16px; font-size: 13.5px; margin-top: 4px; }
.radar-page .radar-summary { font-size: 17px; color: var(--ink); max-width: 70ch; }
.radar-section { margin: 26px 0; }
.radar-section > h2 { font: 700 22px var(--serif); margin: 0 0 10px; }
.radar-section > h2 small { font: 600 13px var(--mono); color: var(--muted); margin-left: 6px; }
.radar-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.radar-items li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 80px;
}
.radar-items li:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ri-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ri-head .score { margin-left: auto; }
.ri-name { color: var(--muted); font-size: 13px; }
.ri-desc { margin: 0; font: 600 14px var(--sans); }
.ri-comment { margin: 0; color: var(--muted); font-size: 14px; }
.ri-news { font-size: 13.5px; color: var(--brand); }
.table-wrap { overflow-x: auto; }
.radar-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14px; }
.radar-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.radar-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.radar-table tr:last-child td { border-bottom: 0; }
.radar-more { color: var(--muted); font-size: 13.5px; margin: 12px 0 0; }
.radar-section .disclaimer { color: var(--muted); font-size: 13.5px; }
.radar-section ul { padding-left: 20px; margin: 0 0 12px; }
.radar-section li { margin-bottom: 6px; }
@media (max-width: 900px) {
  .radar-pane { grid-template-columns: minmax(0, 1fr); }
  .radar-leaders { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); padding-left: 18px; }
}
@media (max-width: 760px) {
  .radar-items { grid-template-columns: minmax(0, 1fr); }
  .radar-what { margin-left: 0; }
}

/* ETFs */
.mm-drivers, .mover-drivers { font-size: 13px; color: var(--muted); margin-top: 4px; }
.mini-movers .mm-drivers { grid-column: 1 / -1; margin-top: 2px; }
.mover-drivers { margin: 6px 0 0 32px; }
.drivers .ticker { font-size: 12px; }
.drivers .up { color: var(--up); } .drivers .down { color: var(--down); }
.tag-etn { font: 600 10.5px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.holdings { margin: 8px 0 24px; }
.holdings td.up { color: var(--up); } .holdings td.down { color: var(--down); }
.held-by { color: var(--muted); font-size: 14px; margin: 4px 0 20px; }
.held-by .ticker { font-size: 12.5px; }
.moves-key { font-size: 12.5px; color: var(--faint); }
.today .moves-key::before { content: "·"; margin-right: 8px; }
.radar-switch { display: flex; width: max-content; max-width: 100%; margin-bottom: 14px; }
.radar-section .mover-drivers { margin-left: 0; }

/* TradingView's price chart on ticker pages */
.tv-chart { height: 220px; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.tv-chart .tradingview-widget-container { flex: 1; min-height: 0; }
.tv-credit { margin: 0; padding: 4px 12px 6px; font-size: 11.5px; text-align: right; }
.tv-credit a { color: var(--faint); }
.rl-theme { font-size: 13px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-theme { font-weight: 700; font-size: 14px; }
.mm-drivers .ticker { font-size: 12px; }
.side-sub { font: 700 16px var(--serif); padding: 16px 16px 0; margin: 0; border-top: 1px solid var(--line); }
.mm-drivers .up { color: var(--up); } .mm-drivers .down { color: var(--down); }
.ai-table .mm-drivers { font-size: 12.5px; }
.side-label { margin: 10px 16px 0; font: 600 11.5px var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.radar-table tr.group th { text-align: left; font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); background: var(--surface-2); }

/* Search */
.search { position: relative; margin-left: auto; }
.top nav { margin-left: 0; }
.search input {
  width: 210px; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font: 14px var(--sans);
}
.search input:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.search-list {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: max(100%, 320px); margin: 0; padding: 4px;
  list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.search-list a { display: flex; align-items: baseline; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--ink); }
.search-list b { font: 700 13px var(--mono); }
.search-list span { color: var(--muted); font-size: 13px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-list small { font: 600 10.5px var(--mono); color: var(--faint); }
.search-list li[aria-selected="true"] a, .search-list a:hover { background: var(--surface-2); }
.search-results li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sr-name { color: var(--ink); }
.sr-meta { color: var(--faint); font-size: 13px; margin-left: auto; }
@media (max-width: 760px) {
  .search { order: 5; flex-basis: 100%; margin-left: 0; }
  .search input { width: 100%; }
  .top nav { margin-left: auto; }
}
@media (max-width: 560px) {
  .top-row { flex-wrap: wrap; }
  .search { order: 5; }
  .radar-tabs { gap: 14px; padding: 0 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .radar-tabs button { font-size: 15px; gap: 6px; white-space: nowrap; }
  .radar-tabs .radar-icon { width: 15px; height: 15px; }
}
@media (max-width: 560px) { .rt-word { display: none; } }
.radar-broad { margin: -4px 0 10px; font-size: 14px; color: var(--muted); max-width: 80ch; } .radar-broad b { color: var(--ink); font-weight: 600; } .radar-broad .t-link { font: 700 0.92em var(--mono); color: var(--brand); }
