@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #000000;
  --panel: #050505;
  --panel-2: #0b0b0b;
  --border: rgba(110, 110, 110, 0.45);
  --border-soft: rgba(72, 72, 72, 0.72);
  --text: #e5e5e5;
  --muted: #9a9a9a;
  --link: #f7b347;
  --accent: #f7b347;
  --accent-2: #8d6420;
  --positive: #85ff66;
  --negative: #ff3b30;
  --warning: #f7b347;
  --shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  --grid: rgba(255, 255, 255, 0.03);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(180deg, #000000 0%, #050505 100%);
  background-size: 28px 28px, 28px 28px, auto;
  color: var(--text);
}

a { color: var(--link); text-decoration: none; }
a:hover { color: #ffd18a; text-decoration: none; }

.page-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.site-header,
.site-footer,
.hero,
.detail-hero,
.summary-grid,
.metric-grid,
.detail-grid,
.panel,
.filters,
.chart-toolbar {
  width: 100%;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 24, 29, 0.96), rgba(12, 17, 22, 0.98));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.03);
}

.brand {
  color: var(--text);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subtle { color: var(--muted); }
.small { font-size: 0.9rem; }
.top-nav a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-soft);
  padding: 9px 13px;
  border-radius: 8px;
  background: #0a0a0a;
  color: #c7c7c7;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.top-nav a:hover { border-color: rgba(160,160,160,0.4); background: rgba(255,255,255,0.05); }
.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero,
.detail-hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero h1,
.detail-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(247,179,71,0.08);
  border: 1px solid rgba(247,179,71,0.24);
  color: #ffd18a;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero p,
.lead {
  color: #c9c9c9;
  font-size: 1rem;
  line-height: 1.58;
}

.hero-callout,
.panel,
.metric-card,
.summary-card,
.detail-aside {
  background: linear-gradient(180deg, rgba(20, 27, 33, 0.98), rgba(13, 18, 23, 0.98));
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.03);
}

.hero-callout {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(63, 81, 91, 0.44);
  color: var(--muted);
}
.stat:last-child { border-bottom: 0; padding-bottom: 0; }
.stat span {
  color: #f3f3f3;
  font-size: 1.55rem;
  font-weight: 700;
}

.summary-grid,
.metric-grid,
.detail-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-grid.single-row { grid-template-columns: 1.4fr 1fr; }

.summary-card,
.panel,
.metric-card,
.compare-card {
  padding: 18px;
}

.data-status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.compact-banner {
  margin-top: -6px;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid var(--border-soft);
}
.status-chip.ok {
  background: rgba(133,255,102,0.12);
  border-color: rgba(133,255,102,0.28);
  color: #d7ffcf;
}
.status-chip.positive {
  background: rgba(133,255,102,0.12);
  border-color: rgba(133,255,102,0.28);
  color: #e4ffde;
}
.status-chip.negative {
  background: rgba(255,115,82,0.12);
  border-color: rgba(255,115,82,0.28);
  color: #ffd8cf;
}
.status-chip.muted {
  background: rgba(18,26,31,0.94);
  color: #c8c8c8;
}

.summary-card h3,
.panel h2,
.metric-card strong,
.metric-card span,
.detail-aside strong {
  margin: 0;
}

.summary-card p,
.panel p,
.bullet-list li,
.link-list li { line-height: 1.6; color: #d0d0d0; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  background: rgba(8,8,8,0.96);
  color: var(--muted);
  font-size: 0.8rem;
}
.chip.dark { background: rgba(18,18,18,0.98); color: #f1f1f1; border-color: rgba(122,122,122,0.42); }
.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.ticker-icon-shell {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0b0b0b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.ticker-icon-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 120ms ease;
}
.ticker-icon-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: inline-grid;
  place-items: center;
  color: #f1f1f1;
  font-size: 0.66rem;
  font-weight: 700;
  font-family: "IBM Plex Mono", Consolas, monospace;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(36,36,36,0.98), rgba(14,14,14,0.98));
  transition: opacity 120ms ease;
}
.ticker-symbol {
  line-height: 1;
}
.ticker-chip {
  white-space: nowrap;
  gap: 9px;
}
.ticker-chip .ticker-icon-shell {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}
.stat-ticker {
  display: block;
}
.stat-ticker-badge {
  font-size: 1.4rem;
  font-weight: 700;
}
.stat-ticker-badge .ticker-icon-shell {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}
.mover-ticker {
  font-weight: 700;
  margin-bottom: 4px;
}
.mover-ticker .ticker-icon-shell,
.compare-header-ticker .ticker-icon-shell,
.compare-thesis-ticker .ticker-icon-shell {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}
.compare-header-ticker {
  font-weight: 700;
}
.compare-thesis-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.compare-thesis-heading .ticker-symbol {
  font-size: 1.15rem;
}

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.compare-builder {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
.compare-form {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.preset-chip {
  color: #d7d7d7;
}
label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}
input, select, button, .secondary-button {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 11px 13px;
  background: #080808;
  color: var(--text);
  font-size: 0.94rem;
}
select {
  color: var(--text);
  background-color: #090909;
}
option {
  color: #e6e6e6;
  background: #090909;
}
input:focus,
select:focus,
button:focus,
.secondary-button:focus {
  outline: none;
  border-color: rgba(150,150,150,0.5);
  box-shadow: 0 0 0 1px rgba(130,130,130,0.3), 0 0 0 4px rgba(255,255,255,0.05);
}
button,
.secondary-button {
  cursor: pointer;
  text-align: center;
  font-weight: 600;
}
button {
  background: linear-gradient(180deg, rgba(30,30,30,0.98), rgba(14,14,14,0.98));
  border-color: rgba(115,115,115,0.42);
  color: #ebebeb;
}
.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(30,30,30,0.98), rgba(14,14,14,0.98));
  border-color: rgba(115,115,115,0.42);
  color: #ebebeb;
}
button:hover,
.secondary-button:hover {
  background: linear-gradient(180deg, rgba(38,38,38,0.98), rgba(18,18,18,0.98));
  border-color: rgba(155,155,155,0.48);
  color: #f5f5f5;
}
.filter-actions { display: flex; gap: 10px; }

.table-wrap { overflow-x: auto; }
.stock-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px;
}
.stock-table th,
.stock-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
}
.stock-table th {
  color: #d6b06a;
  font-weight: 600;
  font-size: 0.82rem;
  font-family: "IBM Plex Mono", Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  background: rgba(13, 19, 24, 0.98);
  backdrop-filter: blur(6px);
}
.sortable-header {
  white-space: nowrap;
}
.table-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}
.table-sort-link:hover {
  color: #f1f1f1;
}
.table-sort-link.active {
  color: #f1f1f1;
}
.table-sort-indicator {
  color: #8b98a5;
  font-size: 0.72rem;
  line-height: 1;
}
.table-sort-link.active .table-sort-indicator {
  color: #f1f1f1;
}
.stock-table tbody tr:hover { background: rgba(255,255,255,0.04); }
.row-muted {
  background: rgba(255,255,255,0.01);
}
.ticker-link {
  font-weight: 700;
  color: #f1f1f1;
  display: inline-flex;
  margin-right: 0;
}
.table-company { font-weight: 600; }
.positive { color: var(--positive); }
.negative { color: var(--negative); }

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metric-card.missing,
.compare-card.degraded {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-style: dashed;
}
.metric-card span {
  color: var(--muted);
  font-size: 0.9rem;
}
.metric-card strong {
  font-size: 1.2rem;
  line-height: 1.2;
}
.metric-card em,
.financial-card em {
  color: #c4a36a;
  font-size: 0.76rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-aside.compact {
  padding: 18px;
  display: grid;
  gap: 14px;
}
.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mini-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-stat span { color: var(--muted); font-size: 0.9rem; }
.fallback-note {
  color: #d2d2d2;
  line-height: 1.55;
  padding: 14px;
  border-radius: 10px;
  background: rgba(15,22,27,0.94);
  border: 1px dashed rgba(71,95,108,0.5);
}

.back-link { display: inline-block; margin-bottom: 8px; }
.top-gap { margin-top: 10px; }

.chart-panel { padding-bottom: 12px; }
.news-panel {
  margin-bottom: 24px;
}
.news-list {
  display: grid;
  gap: 12px;
}
.news-row {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: rgba(15,22,27,0.92);
  color: var(--text);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.news-row:hover {
  border-color: rgba(247,179,71,0.34);
  background: rgba(247,179,71,0.06);
  transform: translateY(-1px);
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.news-row strong {
  font-size: 1rem;
  line-height: 1.45;
}
.news-row p {
  margin: 0;
  color: #c9c9c9;
  font-size: 0.95rem;
}
.timing-panel {
  margin-bottom: 24px;
}
.timing-grid,
.financial-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
.timing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.financial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.timing-card,
.financial-card {
  padding: 16px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: rgba(15,22,27,0.92);
}
.timing-card strong,
.financial-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.3rem;
}
.timing-card p,
.financial-card p {
  margin: 8px 0 0;
  color: #c7c7c7;
}
.financial-card span {
  color: var(--muted);
  font-size: 0.88rem;
}
.chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 6px;
}
.range-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.range-button {
  width: auto;
  background: linear-gradient(180deg, rgba(30,30,30,0.98), rgba(14,14,14,0.98));
  color: var(--text);
  border-radius: 8px;
}
.range-button.active { background: linear-gradient(180deg, rgba(38,38,38,0.98), rgba(18,18,18,0.98)); border-color: rgba(165,165,165,0.52); color: #f3f3f3; }
.price-chart {
  min-height: 420px;
}
.empty-chart {
  min-height: 320px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 16px;
}

.compare-card-grid,
.compare-insight-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
.compare-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compare-insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.compare-card,
.compare-stat {
  background: linear-gradient(180deg, rgba(20,27,33,0.98), rgba(12,18,23,0.98));
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.compare-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.compare-card h2,
.compare-insight-card h2 {
  margin: 12px 0 6px;
}
.compare-role {
  margin: 0;
}
.compare-link {
  width: auto;
  white-space: nowrap;
}
.compare-key-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.compare-stat {
  padding: 14px;
}
.compare-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.compare-stat strong {
  line-height: 1.35;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.compare-table th,
.compare-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
}
.compare-table thead th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(13,19,24,0.98);
}
.compare-table tbody th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(13,19,24,0.84);
}
.compare-section + .compare-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.compare-section h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}
.compare-empty {
  margin-bottom: 24px;
}
.compare-note {
  margin: 0;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #d6b06a;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(500px, 600px);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}
.market-hero-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.market-hero h1 {
  margin: 0 0 12px;
  max-width: 12ch;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 0.92;
}
.market-hero p {
  max-width: 72ch;
  color: #cbcbcb;
}
.market-mood-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
}
.market-mood-card strong,
.market-stat-card strong,
.mover-row span,
.sleeve-meta,
.compact-table td:nth-child(3),
.compact-table td:nth-child(4),
.compact-table td:nth-child(5),
.compact-table td:nth-child(6) {
  font-family: "IBM Plex Mono", Consolas, monospace;
}
.market-mood-card strong {
  font-size: 3rem;
  line-height: 1;
}
.market-mood-card.positive strong { color: var(--positive); }
.market-mood-card.negative strong { color: var(--negative); }

.market-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.market-stat-card {
  padding: 16px;
}
.market-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-family: "IBM Plex Mono", Consolas, monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.market-stat-card strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.market-stat-card p {
  margin: 0;
  color: #c7c7c7;
  font-size: 0.88rem;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) 420px;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.heatmap-panel {
  padding: 16px;
}
.heatmap-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}
.heatmap-toolbar h2,
.rail-header h2,
.table-header h2 {
  margin: 0 0 8px;
}
.heatmap-toolbar p,
.rail-header p,
.table-header p {
  margin: 0;
}
.heatmap-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
}
.heatmap-legend {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.legend-label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.legend-bar {
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #6f2316 0%, #b4442c 25%, #151c22 50%, #2e9f35 75%, #85ff66 100%);
  border: 1px solid var(--border-soft);
}
.legend-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.76rem;
  font-family: "IBM Plex Mono", Consolas, monospace;
}
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.sleeve-heatmap-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}
.sleeve-heatmap-card.wide {
  grid-column: 1 / -1;
}
.sleeve-heatmap-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.sleeve-heatmap-header h3 {
  margin: 4px 0 6px;
  font-size: 1.05rem;
}
.sleeve-heatmap-header p {
  margin: 0;
}
.sleeve-heatmap-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}
.sleeve-heatmap-map {
  min-height: 380px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #050505;
}
.heatmap-footer {
  margin-top: 10px;
}

.market-side-rail {
  display: grid;
  gap: 16px;
}
.side-banner {
  margin-bottom: 0;
}
.sleeve-board,
.mover-board,
.compact-compare {
  padding: 16px;
}
.rail-header {
  margin-bottom: 14px;
}
.compact-compare {
  gap: 10px;
}
.compact-compare .rail-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.compact-compare .rail-header p {
  text-align: right;
}
.compact-compare .stack-form {
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
  gap: 12px;
  align-items: end;
}
.compact-compare .stack-form .filter-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.compact-compare .chip-row {
  gap: 8px;
}
.sleeve-list,
.mover-list {
  display: grid;
  gap: 10px;
}
.sleeve-row,
.mover-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.mover-row {
  color: #f1f1f1;
}
.mover-row:hover {
  color: #f5f5f5;
}
.sleeve-row strong,
.mover-row strong {
  display: block;
  margin-bottom: 4px;
}
.sleeve-row p,
.mover-row p {
  margin: 0;
  color: #c9d7ee;
  font-size: 0.82rem;
  line-height: 1.5;
}
.sleeve-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}
.mover-grid {
  display: grid;
  gap: 12px;
}

.stack-form {
  grid-template-columns: 1fr;
}
.stack-form .filter-actions {
  width: 100%;
}
.stack-form .filter-actions,
.compare-form .filter-actions {
  align-self: end;
}

.research-table-section {
  padding: 16px;
}
.table-header {
  margin-bottom: 12px;
}
.compact-table {
  min-width: 1080px;
}
.compact-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compact-table td {
  font-size: 0.9rem;
}
.compact-table tbody tr:hover {
  background: rgba(77,146,255,0.06);
}

.bullet-list,
.link-list {
  margin: 0;
  padding-left: 18px;
}
.link-list { display: grid; gap: 10px; }

.site-footer {
  margin-top: 24px;
  padding: 16px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare-card-grid { grid-template-columns: 1fr; }
  .market-layout,
  .market-hero,
  .heatmap-toolbar {
    grid-template-columns: 1fr;
  }
  .market-hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timing-grid,
  .financial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero,
  .detail-hero,
  .detail-grid,
  .detail-grid.single-row,
  .summary-grid,
  .filters,
  .chart-toolbar,
  .compare-form,
  .data-status-banner,
  .heatmap-filters {
    grid-template-columns: 1fr;
    display: grid;
  }

  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { flex-direction: column; }
  .filter-actions { width: 100%; }
  .compare-insight-grid { grid-template-columns: 1fr; }
  .market-hero-side { grid-template-columns: 1fr; }
  .compare-card-top,
  .compare-key-stats { grid-template-columns: 1fr; display: grid; }
  .market-stat-strip { grid-template-columns: 1fr; }
  .compact-compare .rail-header {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .compact-compare .rail-header p {
    text-align: left;
  }
  .heatmap-grid { grid-template-columns: 1fr; }
  .sleeve-heatmap-card.wide { grid-column: auto; }
  .sleeve-heatmap-header {
    display: grid;
  }
  .sleeve-heatmap-meta {
    justify-items: start;
    text-align: left;
  }
  .sleeve-heatmap-map { min-height: 300px; }
  .timing-grid,
  .financial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-shell { padding: 16px 12px 40px; }
  .metric-grid { grid-template-columns: 1fr; }
  .hero h1,
  .detail-hero h1 { font-size: 2rem; }
}
