@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* Broader volume context uses existing metrics and stays out of compact tables. */
.watchlist-scroll .rvol-15m { font-size: 13px; font-weight: 550; }
.watchlist-unavailable .rvol-15m { color: #71687e; }
.watchlist-volume-note { margin: 0; padding: 8px 20px; font-size: 9px; line-height: 1.5; color: var(--muted); }
@media (max-width: 950px) {
  .market-watchlist .watchlist-15m { display: none; }
}

/* Strange Bulls shared visual language; market direction retains separate colors. */
:root {
  --accent: #bd97ff;
  --positive: #7ae0b1;
  --negative: #efaaa0;
  --muted: #a1a0ac;
}
body {
  background: radial-gradient(ellipse at 75% 0, #6836a01c, transparent 650px), var(--bg);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--bg); }
button, input, select { font-family: 'DM Sans', system-ui, sans-serif; }
h1, h2, h3 { font-family: 'Manrope', system-ui, sans-serif; }
h1 { font-weight: 700; letter-spacing: -1.4px; }
h2 { font-weight: 700; }
a { color: var(--accent); }
header { min-height: 106px; height: auto; gap: 24px; padding: 22px 0; }
.brand { flex-shrink: 0; gap: 13px; }
.bull-mark { width: 30px; height: 36px; color: var(--accent); flex-shrink: 0; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font: 800 26px/1 'Manrope', system-ui, sans-serif; letter-spacing: -.6px; }
.brand-dot { color: var(--accent); }
.brand-tagline { font-size: 10px; font-weight: 400; letter-spacing: .35px; color: var(--muted); }
.version { align-self: flex-start; margin-top: 4px; border-radius: 4px; }
header .connection { margin-left: auto; }
.research-menu { margin-left: 0; }
.research-menu summary { border-radius: 7px; padding: 10px 15px; color: var(--text); background: #ffffff04; }
.research-menu summary:hover { border-color: #bd97ff66; background: #bd97ff0d; }
.research-dropdown { border-radius: 10px; box-shadow: 0 12px 40px #0008; }
.heading { gap: 24px; padding-block: 36px; }
.eyebrow { letter-spacing: 2.5px; }
/* Interface accents describe attention and selection, not price direction. */
.eyebrow,
.diagnostics-panel summary,
.changes-grid h3 span,
.selection-rank,
.empty-icon { color: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); }
.panel { border-radius: 12px; box-shadow: 0 8px 32px #00000014; }
.metrics article { border-radius: 12px; background: linear-gradient(145deg, #19171f, #101318); }
.metrics strong { font-family: 'Manrope', system-ui, sans-serif; font-weight: 600; }
.leaders { background: linear-gradient(135deg, #22162f, #111018 65%); border-color: #bd97ff30; border-radius: 14px; }
.leader-card { border-radius: 10px; }
.leader-card.tier-4 { box-shadow: inset 0 2px var(--accent), 0 5px 25px #7942c315; }
.view-tabs { gap: 10px; }
.view-tabs button { border-radius: 8px; transition: background .15s, border-color .15s, color .15s; }
.view-tabs button:hover { color: var(--text); border-color: #bd97ff66; }
.view-tabs button[aria-pressed=true] {
  color: #f8f3ff;
  border-color: #ad77ea;
  background: linear-gradient(110deg, #854acc, #60309c);
  box-shadow: 0 4px 18px #7942c32b;
}
input[type=date] { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; color: var(--text); }
#outcomes-today { background: #bd97ff14; border: 1px solid #bd97ff55; color: var(--accent); padding: 8px 13px; border-radius: 6px; cursor: pointer; }
.replay-form button, .calibration-form button {
  background: linear-gradient(110deg, #854acc, #60309c);
  border-color: #ad77ea; border-radius: 7px; color: #f8f3ff; min-height: 38px;
}
button:hover:not(:disabled) { filter: brightness(1.08); }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#banner, .coverage-note { border-radius: 7px; }
.state { background: #272333; color: #c5bfce; }
.up { color: var(--positive); }
.down { color: var(--negative); }
.dot.live { background: var(--positive); box-shadow: 0 0 10px #7ae0b155; }
.breadth-track > div { background: var(--positive); }
.track { background: #2d2739; }
footer { padding-top: 30px; }
@media (max-width: 800px) {
  header { gap: 16px; }
  header .connection { gap: 6px; }
  .brand-name { font-size: 25px; }
}
@media (max-width: 650px) {
  header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 19px 0; }
  header .brand { grid-column: 1; grid-row: 1; }
  header .research-menu { grid-column: 2; grid-row: 1; justify-self: end; }
  header .connection { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 11px; }
  .brand-name { font-size: clamp(18px, 5vw, 24px); }
  .bull-mark { width: 26px; height: 31px; }
  .brand { gap: 9px; }
  .brand-tagline { font-size: 9px; }
  .research-menu summary { font-size: 11px; padding: 9px 12px; }
  .heading { padding-block: 28px; }
  h1 { font-size: 29px; }
  .leaders-heading { align-items: start; }
  .panel-heading { flex-wrap: wrap; gap: 12px; }
  .panel-heading > div { min-width: 0; }
  .view-tabs { gap: 6px; }
  .view-tabs button { font-size: 12px; padding: 11px 9px; }
  .universe-control select { min-width: 0; max-width: 100%; }
  .toolbar .sort { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* One primary watchlist; supporting information stays secondary. */
.preview-note { padding: 9px 16px; background: #bd97ff0d; border: 1px solid #bd97ff30; border-radius: 8px; color: var(--muted); font-size: 11px; }
.preview-note a { margin-left: 12px; }
#stocks-view > .heading { padding-block: 23px 12px; }
.dashboard-coverage { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.watchlist-workspace { align-items: start; margin-bottom: 24px; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
.market-watchlist { min-width: 0; overflow: hidden; border-color: #bd97ff38; }
.market-watchlist .panel-heading { padding: 22px 22px 15px; }
.market-watchlist .eyebrow { margin-bottom: 7px; font-size: 9px; }
.market-watchlist h2 { font-size: 24px; letter-spacing: -.6px; }
.market-watchlist .panel-heading p:last-child { font-size: 11px; }
.watchlist-search { display: flex; align-items: center; gap: 16px; padding: 0 22px 16px; }
.watchlist-search .search { flex: 0 1 360px; min-height: 40px; }
.watchlist-search > span { font-size: 10px; }
.top-attention { padding: 14px 22px 17px; border-top: 1px solid var(--line); background: linear-gradient(100deg, #bd97ff0e, transparent); }
.top-attention-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.top-attention-heading h3 { margin: 0; font-size: 12px; color: var(--accent); }
.top-attention-heading select { padding-block: 5px; font-size: 10px; }
.attention-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.attention-chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; border: 1px solid #bd97ff42; background: #bd97ff0b; color: var(--text); cursor: pointer; font-size: 12px; }
.attention-chip span { font-size: 10px; color: var(--accent); }
.attention-chip[aria-pressed=true] { border-color: var(--accent); background: #bd97ff20; }
#top-attention-empty { margin: 0; font-size: 11px; }
.watchlist-scroll { max-height: 580px; overflow: auto; scrollbar-color: #574367 var(--panel); scrollbar-width: thin; overscroll-behavior: contain; overflow-anchor: none; }
.watchlist-scroll table { width: 100%; }
.watchlist-scroll th { position: sticky; top: 0; z-index: 1; background: #15131c; }
.watchlist-scroll th:first-child { left: 0; z-index: 3; }
.watchlist-scroll td:first-child { position: sticky; left: 0; z-index: 2; background: #101318; }
.watchlist-scroll tr.selected td:first-child { background: #221a30; }
.watchlist-scroll td { padding: 11px 13px; font-size: 12px; height: 52px; }
.watchlist-scroll td:first-child { padding-left: 22px; }
.watchlist-scroll td:last-child { padding-right: 22px; }
.watchlist-scroll td small { margin-top: 2px; font-size: 9px; }
.watchlist-scroll .company { max-width: 180px; }
.watchlist-scroll .symbol-button { font-size: 13px; }
.watchlist-scroll .rvol { font-size: 13px; }
.watchlist-scroll .watchlist-status { font-size: 10px; color: var(--muted); }
.watchlist-scroll .data-warning { color: var(--amber); }
.watchlist-unavailable .rvol, .watchlist-unavailable .recent-change, .watchlist-unavailable .cumulative { color: #71687e; }
.watchlist-scroll tbody tr:hover { background: #bd97ff0a; }
.watchlist-scroll tbody tr.selected { background: #bd97ff15; }
.market-watchlist .table-footer { border-top: 1px solid var(--line); padding-block: 12px; font-size: 9px; }
.watchlist-workspace .context { display: block; position: sticky; top: 16px; }
.watchlist-workspace .context > p.muted { min-height: 0; }
.watchlist-workspace .comparison { margin-block: 20px 8px; }
.detail-price { font-size: 15px; color: var(--text); margin: 10px 0 15px; }
.ticker-extra summary { color: var(--accent); cursor: pointer; font-size: 11px; padding: 12px 0 4px; }
.supporting-section { margin-bottom: 18px; }
.supporting-section > summary { padding: 18px 22px; cursor: pointer; font: 600 15px 'Manrope', system-ui, sans-serif; }
.supporting-section > summary::marker { color: var(--accent); }
.supporting-section > summary > span { margin-left: 12px; font: 400 11px 'DM Sans', system-ui, sans-serif; color: var(--muted); }
#market-context > #tech-view { padding: 0 18px 18px; }
#market-context .tech-summary { background: var(--bg); box-shadow: none; }
#market-context .tech-metrics { gap: 12px; margin-bottom: 18px; }
#market-context .tech-metrics strong { font-size: 24px; }
#stocks-view .journal-panel td:last-child { min-width: 0; }
.watchlist-search .search:focus-within { outline-offset: 3px; }
@media (max-width: 1150px) { .watchlist-workspace { grid-template-columns: minmax(0, 1fr) 280px; } }
@media (max-width: 950px) {
  .watchlist-workspace { grid-template-columns: 1fr; }
  .watchlist-workspace .context { position: static; }
}
@media (max-width: 650px) {
  .watchlist-search { flex-direction: column; align-items: stretch; gap: 9px; padding-inline: 15px; }
  .watchlist-search .search { flex-basis: auto; }
  .market-watchlist .panel-heading { padding-inline: 15px; }
  .top-attention { padding-inline: 15px; }
  .watchlist-scroll { max-height: 460px; }
  .watchlist-scroll table { min-width: 620px; }
  .supporting-section > summary > span { display: block; margin: 6px 0 0; line-height: 1.5; }
  #market-context > #tech-view { padding-inline: 10px; }
  #market-context .tech-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #market-context .tech-metrics strong { font-size: 22px; }
}

/* Benchmarks remain visible immediately above the primary watchlist. */
.market-comparisons { margin-bottom: 24px; min-width: 0; overflow: hidden; }
.market-comparisons td small { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }

/* Keep the stocks in view; make context and supporting controls compact. */
.preview-note { padding: 5px 12px; font-size: 10px; }
header { min-height: 72px; padding: 14px 0; gap: 18px; }
.brand-name { font-size: 23px; }
.brand-tagline { font-size: 9px; }
#banner { margin-top: 10px; padding: 7px 12px; font-size: 11px; }
#banner.error, #banner.demo { padding-block: 10px; }
.view-tabs { margin: 14px 0 0; gap: 8px; }
.view-tabs button { padding: 8px 16px; font-size: 12px; }
#stocks-view > .heading { padding-block: 18px 10px; align-items: start; }
#stocks-view h1 { font-size: 23px; letter-spacing: -.65px; margin-bottom: 4px; }
#stocks-view .subtitle { font-size: 12px; }
#stocks-view .universe-control { display: grid; grid-template-columns: auto auto; gap: 5px 10px; align-items: center; max-width: 310px; }
.universe-control > label { font-size: 9px; }
#stocks-view .universe-control > select { min-width: 0; }
#stocks-view .universe-control > small { grid-column: 2; font-size: 9px; line-height: 1.4; }
#stocks-view .universe-control > .pill { grid-row: 2; grid-column: 1; margin: 0; padding: 3px 7px; font-size: 8px; }
.dashboard-coverage { font-size: 10px; margin-bottom: 14px; }
.market-comparisons { margin-bottom: 18px; }
.market-comparisons .panel-heading { padding: 10px 18px; }
.market-comparisons .panel-heading > div { display: flex; align-items: baseline; gap: 12px; }
.market-comparisons h2 { font-size: 13px; }
.market-comparisons .panel-heading p { font-size: 10px; margin: 0; }
.market-comparisons th { padding-block: 7px; font-size: 9px; }
.market-comparisons td { padding-block: 5px; font-size: 11px; }
.market-comparisons td small { display: inline; margin-left: 12px; font-size: 9px; }
.market-comparisons .symbol-button { font-size: 12px; }
.market-comparisons tbody tr:last-child td { border-bottom: 0; }
.market-watchlist .panel-heading { padding: 17px 20px 12px; }
.market-watchlist h2 { font-size: 21px; }
.watchlist-search { padding: 0 20px 12px; gap: 12px; }
.watchlist-search .search { flex: 1; min-height: 36px; }
.watchlist-search > span { font-size: 9px; }
.top-attention { padding: 11px 20px; }
.top-attention-heading { margin-bottom: 6px; }
.top-attention-heading h3 { font-size: 11px; }
.top-attention-heading .sort { font-size: 9px; }
.top-attention-heading select { font-size: 9px; padding: 3px 6px; }
.attention-chip { padding: 6px 10px; }
#top-attention-empty { font-size: 10px; }
.watchlist-scroll { max-height: 520px; }
.watchlist-scroll th { font-size: 10px; padding-block: 10px; }
.watchlist-scroll td { height: 54px; padding-block: 9px; }
.watchlist-scroll tbody tr.selected { background: #261d35; }
.watchlist-scroll tbody tr.selected td:first-child { background: #261d35; box-shadow: inset 3px 0 var(--accent); }
.stock-identity { display: flex; align-items: center; gap: 10px; }
.watchlist-activity { font-size: 8px; color: var(--muted); padding: 2px 5px; border-radius: 4px; background: #ffffff05; }
.watchlist-activity.qualified { color: var(--accent); background: #bd97ff15; }
.watchlist-workspace .context { border-color: #bd97ff35; padding: 20px; top: 12px; }
.selection-heading { margin-bottom: 10px; }
.selection-heading .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
.selection-heading .toggle { font-size: 9px; }
.selection-rank { font-size: 10px; color: var(--muted); margin-bottom: 9px; }
.watchlist-workspace .context h2 { font-size: 29px; }
#selected-name { font-size: 11px; margin-top: 4px; }
.detail-price { margin-block: 14px 5px; font-size: 15px; font-weight: 600; }
.price-description { font-size: 11px; margin-block: 0 12px; }
.activity-badge { display: inline-block; border: 1px solid var(--line); background: #ffffff04; padding: 4px 8px; border-radius: 5px; font-size: 10px; color: var(--muted); }
.activity-badge.qualified { color: var(--accent); border-color: #bd97ff55; background: #bd97ff10; }
#why { font-size: 10px; line-height: 1.6; margin-block: 8px 12px; }
.detail-summary { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 12px; margin: 18px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.detail-summary > div { display: block; padding: 0; border: 0; min-width: 0; }
.detail-summary dt { font-size: 9px; margin-bottom: 3px; }
.detail-summary dd { font-size: 14px; font-weight: 600; }
#detail-status { font-size: 10px; font-weight: 400; }
.watchlist-workspace .comparison { margin-top: 18px; }
.comparison-label { font-size: 10px; }
.track { height: 6px; }
.ticker-extra summary { font-size: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.ticker-extra #selected-duration { font-size: 10px; line-height: 1.6; }
.detail-back { display: none; }
@media (max-width: 1150px) {
  .stock-identity { gap: 6px; flex-wrap: wrap; }
}
@media (max-width: 950px) {
  .detail-back { display: inline-block; font-size: 11px; margin-bottom: 16px; text-decoration: none; }
  #ticker-details { scroll-margin-top: 14px; }
}
@media (max-width: 650px) {
  header { min-height: 80px; padding: 12px 0; gap: 10px; }
  .brand-name { font-size: 21px; }
  #stocks-view > .heading { display: block; }
  #stocks-view .universe-control { max-width: none; grid-template-columns: auto minmax(0,1fr); margin-top: 14px; }
  #stocks-view h1 { font-size: 22px; }
  .dashboard-coverage { line-height: 1.6; }
  .market-comparisons td small { display: none; }
  .market-comparisons table { min-width: 530px; }
  .market-comparisons .panel-heading { padding-inline: 15px; }
  .market-watchlist .panel-heading { padding-inline: 15px; }
  .watchlist-search { flex-direction: row; padding-inline: 15px; }
  .watchlist-search > span { display: none; }
  .top-attention { padding-inline: 15px; }
  .watchlist-scroll table { min-width: 650px; }
  .watchlist-scroll .company { max-width: 150px; }
  .watchlist-scroll { max-height: 410px; }
}

/* Scope belongs to the watchlist it controls, rather than another page heading. */
#market-comparisons { margin-top: 18px; }
.market-comparisons .pill { padding: 3px 8px; font-size: 8px; }
.market-watchlist .panel-heading { padding-block: 14px 10px; }
.watchlist-search > #watchlist-scope { display: none; }
#stocks-view .watchlist-search .universe-control { display: flex; flex: 0 0 auto; align-items: center; max-width: none; gap: 8px; }
.watchlist-search .universe-control > label { font-size: 10px; }
.watchlist-search .universe-control > select { width: 205px; min-height: 36px; }
.watchlist-search .universe-note { display: none; }
.market-watchlist .dashboard-coverage { margin: 0; padding: 10px 20px 0; font-size: 9px; color: var(--muted); border-top: 1px solid var(--line); }
.market-watchlist .table-footer { border-top: 0; padding-top: 7px; }
@media (max-width: 650px) {
  .watchlist-search { flex-wrap: wrap; gap: 8px; }
  .watchlist-search .search { flex-basis: 100%; }
  #stocks-view .watchlist-search .universe-control { width: 100%; }
  .watchlist-search .universe-control > select { flex: 1; width: auto; }
  .market-comparisons .panel-heading > div { gap: 7px; }
  .market-comparisons .panel-heading p { font-size: 9px; }
  .market-watchlist .dashboard-coverage { padding-inline: 15px; line-height: 1.6; }
}
