:root {
  color-scheme: light;
  --bg: #f7f8f3;
  --panel: rgba(255, 255, 250, 0.9);
  --panel-strong: rgba(255, 255, 250, 0.97);
  --panel-soft: #f1f5ef;
  --ink: #111827;
  --ink-soft: #354052;
  --muted: #596274;
  --line: rgba(17, 24, 39, 0.14);
  --line-strong: rgba(17, 24, 39, 0.24);
  --green: #2d6a4f;
  --blue: #294c7a;
  --amber: #9a5b13;
  --red: #8f2d32;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  --shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.06);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  overflow-x: hidden;
  background:
    linear-gradient(rgba(17, 24, 39, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.022) 1px, transparent 1px),
    linear-gradient(140deg, rgba(41, 76, 122, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(45, 106, 79, 0.08), transparent 34%),
    var(--bg);
  background-size: 38px 38px, 38px 38px, auto, auto, auto;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

.strategy-shell {
  width: min(1460px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  margin: 0 auto;
  padding: 20px 0 38px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.site-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: rgba(255, 255, 250, 0.78);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--panel-strong);
}

.hero-panel,
.panel,
.model-card,
.overview-tile {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 250, 0.96), rgba(255, 255, 250, 0.82)),
    var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  border-left: 4px solid rgba(45, 106, 79, 0.55);
  background:
    linear-gradient(135deg, rgba(45, 106, 79, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 250, 0.96), rgba(255, 255, 250, 0.84));
  box-shadow: var(--shadow);
}

.title-block {
  min-width: 0;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

h1 span {
  display: inline;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.24;
}

.lead {
  max-width: 840px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.runtime-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 250, 0.82);
}

.runtime-card dl,
.model-status {
  display: grid;
  gap: 10px;
  margin: 0;
}

.runtime-card dt,
.model-status span,
.overview-tile span,
.metric-chip span,
.input-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.runtime-card dd {
  min-width: 0;
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.strategy-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(45, 106, 79, 0.32);
  border-radius: 6px;
  color: var(--green);
  background: rgba(45, 106, 79, 0.1);
  font-weight: 800;
  cursor: pointer;
}

.strategy-button.secondary {
  color: var(--blue);
  background: rgba(41, 76, 122, 0.08);
  border-color: rgba(41, 76, 122, 0.22);
}

.strategy-button:hover {
  border-color: rgba(45, 106, 79, 0.42);
  background: rgba(45, 106, 79, 0.14);
}

.status-pill,
.source-badge,
.signal-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.status-pill.real,
.source-badge.real,
.source-badge.scraped,
.source-badge.derived,
.signal-pill.bullish {
  color: var(--green);
  background: rgba(45, 106, 79, 0.1);
  border-color: rgba(45, 106, 79, 0.24);
}

.status-pill.mock,
.source-badge.mock,
.signal-pill.bearish {
  color: var(--red);
  background: rgba(143, 45, 50, 0.1);
  border-color: rgba(143, 45, 50, 0.24);
}

.source-badge.manual,
.signal-pill.neutral {
  color: var(--amber);
  background: rgba(154, 91, 19, 0.1);
  border-color: rgba(154, 91, 19, 0.24);
}

.source-badge.proxy {
  color: var(--blue);
  background: rgba(41, 76, 122, 0.1);
  border-color: rgba(41, 76, 122, 0.24);
}

.status-pill.loading {
  color: var(--blue);
  background: rgba(41, 76, 122, 0.1);
  border-color: rgba(41, 76, 122, 0.24);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.overview-tile {
  min-width: 0;
  min-height: 112px;
  padding: 14px 16px;
}

.overview-tile strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}

.overview-tile p,
.model-summary,
.source-status-list em {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.decision-desk {
  display: grid;
  gap: 12px;
}

.desk-main {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(440px, 1.15fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(41, 76, 122, 0.14);
  border-left: 4px solid rgba(41, 76, 122, 0.48);
  border-radius: 8px;
  background: rgba(247, 248, 243, 0.62);
}

.desk-main.bullish {
  border-left-color: rgba(45, 106, 79, 0.66);
}

.desk-main.bearish {
  border-left-color: rgba(143, 45, 50, 0.64);
}

.desk-main h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 2.6vw, 34px);
}

.desk-main p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.desk-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.desk-stat-strip span,
.decision-strip span,
.family-read dl div,
.family-panel-head dl div {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 250, 0.72);
}

.desk-stat-strip em,
.decision-strip em,
.family-read dt,
.family-panel-head dt {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
  line-height: 1.35;
  text-transform: uppercase;
}

.desk-stat-strip strong,
.decision-strip strong,
.family-read dd,
.family-panel-head dd {
  display: block;
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 880;
  line-height: 1.05;
}

.desk-watchlist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.codex-committee-card {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(41, 76, 122, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 250, 0.94), rgba(239, 245, 239, 0.82)),
    rgba(255, 255, 250, 0.74);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
}

.committee-card-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
}

.committee-card-head span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.committee-card-head strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.committee-headline {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 840;
  line-height: 1.5;
}

.committee-memo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.committee-memo-section {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 250, 0.7);
}

.committee-memo-section.primary {
  border-color: rgba(45, 106, 79, 0.24);
  background: rgba(239, 245, 239, 0.9);
}

.committee-memo-section span {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.committee-memo-section ul {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.committee-memo-section li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.committee-memo-section li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(41, 76, 122, 0.56);
  content: "";
}

.desk-watchlist article,
.family-read {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 250, 0.64);
}

.desk-watchlist span,
.family-read span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 860;
  text-transform: uppercase;
}

.desk-watchlist p,
.family-read p,
.family-panel-head span {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.section-mini-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 2px;
}

.section-mini-head h3,
.section-mini-head p {
  margin: 0;
}

.section-mini-head h3 {
  font-size: 16px;
}

.section-mini-head p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.family-read-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.family-read {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.family-read.bullish {
  border-color: rgba(45, 106, 79, 0.26);
}

.family-read.bearish {
  border-color: rgba(143, 45, 50, 0.24);
}

.family-read strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.25;
}

.family-read .family-stance {
  color: var(--ink-soft);
  font-weight: 720;
}

.family-read dl,
.family-panel-head dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.trigger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.trigger-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 250, 0.64);
}

.trigger-card span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 860;
  text-transform: uppercase;
}

.trigger-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.trigger-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}


.plain-explainer {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(41, 76, 122, 0.16);
  border-left: 3px solid rgba(41, 76, 122, 0.5);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 250, 0.9), rgba(247, 248, 243, 0.76)),
    rgba(41, 76, 122, 0.05);
}

.plain-kicker {
  color: var(--blue);
  font-size: 11px;
  font-weight: 860;
  text-transform: uppercase;
}

.plain-explainer strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.plain-explainer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.principle-block {
  display: grid;
  gap: 5px;
  padding: 10px 0;
  border-top: 1px solid rgba(41, 76, 122, 0.12);
  border-bottom: 1px solid rgba(41, 76, 122, 0.12);
}

.principle-block span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0;
}

.plain-explainer .principle-block p {
  color: var(--ink-soft);
}

.overview-tile.bullish {
  border-color: rgba(45, 106, 79, 0.28);
}

.overview-tile.neutral {
  border-color: rgba(154, 91, 19, 0.24);
}

.overview-tile.bearish {
  border-color: rgba(143, 45, 50, 0.24);
}

.panel {
  margin-top: 14px;
  padding: 18px;
}

.panel-head,
.model-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.panel-head h2,
.model-head h3 {
  margin: 0;
}

.panel-head > span,
.model-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.chart-wrap {
  margin-top: 14px;
  overflow-x: visible;
}

.forecast-board {
  display: grid;
  gap: 12px;
}

.forecast-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.forecast-summary-card,
.forecast-rank-card {
  min-width: 0;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 250, 0.72);
}

.forecast-summary-card {
  padding: 12px;
}

.forecast-summary-card span,
.forecast-rank-head span,
.forecast-rank-head em,
.forecast-rank-foot span {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 860;
  line-height: 1.35;
  text-transform: uppercase;
}

.forecast-summary-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
}

.forecast-summary-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.forecast-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.forecast-rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 8px;
}

.forecast-rank-card {
  display: grid;
  gap: 7px;
  padding: 9px 10px;
}

.forecast-rank-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: baseline;
}

.forecast-rank-head em {
  display: none;
}

.forecast-rank-head strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 860;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forecast-mini-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
}

.forecast-mini-track i {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: rgba(89, 98, 116, 0.42);
}

.forecast-rank-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.forecast-rank-foot strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
}

.forecast-rank-card.bullish .forecast-mini-track i {
  background: var(--green);
}

.forecast-rank-card.neutral .forecast-mini-track i {
  background: var(--amber);
}

.forecast-rank-card.bearish .forecast-mini-track i {
  background: var(--red);
}

.forecast-board-empty {
  padding: 16px;
  color: var(--muted);
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 250, 0.7);
  font-weight: 780;
}

.chart-row.bullish .chart-bar,
.chart-row.bullish .chart-dot {
  fill: var(--green);
}

.chart-row.neutral .chart-bar,
.chart-row.neutral .chart-dot {
  fill: var(--amber);
}

.chart-row.bearish .chart-bar,
.chart-row.bearish .chart-dot {
  fill: var(--red);
}

.model-grid {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

.model-family-panel {
  min-width: 0;
  padding-top: 4px;
}

.family-panel-head {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px 10px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.family-panel-head h2 {
  margin: 0;
}

.family-panel-head dl {
  grid-template-columns: repeat(2, minmax(100px, 1fr));
}

.family-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.model-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
}

.model-card.compact {
  gap: 12px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.model-card.bullish {
  border-color: rgba(45, 106, 79, 0.28);
}

.model-card.neutral {
  border-color: rgba(154, 91, 19, 0.24);
}

.model-card.bearish {
  border-color: rgba(143, 45, 50, 0.24);
}

.model-status {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.model-status strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.mode-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.decision-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.model-card.compact .plain-explainer {
  padding: 10px;
  gap: 6px;
}

.model-card.compact .plain-explainer strong {
  font-size: 14px;
}

.model-card.compact .plain-explainer p {
  font-size: 12px;
}

.model-card.compact .principle-block {
  padding: 8px 0;
}

.card-footer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.card-footer-line > span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.model-detail {
  padding-top: 4px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.model-detail summary {
  min-height: 34px;
  color: var(--blue);
}

.detail-stack {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.risk-block {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(247, 248, 243, 0.72);
}

.risk-block h4,
.risk-block p {
  margin: 0;
}

.risk-block h4 {
  color: var(--ink);
  font-size: 13px;
}

.risk-block p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.metric-chip {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(247, 248, 243, 0.72);
}

.metric-chip strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}

.model-history {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(247, 248, 243, 0.68);
}

.history-title-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.history-title-row h4,
.history-title-row p {
  margin: 0;
}

.history-title-row h4 {
  font-size: 13px;
}

.history-title-row p,
.history-note,
.history-source,
.history-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.history-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.history-stats span {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 250, 0.62);
}

.history-stats em,
.history-stats strong {
  display: block;
}

.history-stats em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
  text-transform: uppercase;
}

.history-stats strong {
  margin-top: 4px;
  font-size: 13px;
}

.history-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.history-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.history-legend i {
  width: 18px;
  height: 3px;
  border-radius: 999px;
}

.history-legend .actual {
  background: rgba(41, 76, 122, 0.5);
}

.history-legend .predicted {
  background: var(--green);
}

.history-legend .baseline {
  background: rgba(89, 98, 116, 0.46);
}

.history-chart-wrap {
  margin-top: 8px;
  overflow-x: auto;
}

.history-chart {
  min-width: 620px;
  width: 100%;
  height: auto;
}

.history-plot-bg {
  fill: rgba(255, 255, 250, 0.58);
}

.history-grid-line {
  stroke: rgba(17, 24, 39, 0.1);
}

.history-zero-line {
  stroke: rgba(17, 24, 39, 0.26);
  stroke-dasharray: 4 6;
}

.history-baseline-line,
.history-actual-line,
.history-predicted-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.history-baseline-line {
  stroke: rgba(89, 98, 116, 0.54);
  stroke-width: 1.7;
  stroke-dasharray: 6 6;
}

.history-actual-line {
  stroke: rgba(41, 76, 122, 0.48);
  stroke-width: 2;
}

.history-predicted-line {
  stroke: var(--green);
  stroke-width: 2.4;
}

.history-predicted-line.neutral {
  stroke: var(--amber);
}

.history-predicted-line.bearish {
  stroke: var(--red);
}

.history-last-dot {
  fill: var(--green);
  stroke: var(--panel-strong);
  stroke-width: 2;
}

.history-last-dot.neutral {
  fill: var(--amber);
}

.history-last-dot.bearish {
  fill: var(--red);
}

.history-axis-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.history-axis-title {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.history-axis-label.indicator {
  fill: var(--green);
}

.history-end-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.history-end-label.actual {
  fill: var(--blue);
}

.history-end-label.bullish {
  fill: var(--green);
}

.history-end-label.neutral {
  fill: var(--amber);
}

.history-end-label.bearish {
  fill: var(--red);
}

.history-end-label.baseline {
  fill: var(--muted);
}

.history-source,
.history-note {
  margin: 8px 0 0;
}

.history-source a {
  color: var(--ink);
  font-weight: 820;
}

.history-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 250, 0.58);
}

.input-list {
  display: grid;
  gap: 8px;
}

.input-list h4 {
  margin: 0;
  font-size: 13px;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.input-row strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.input-row em {
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.input-row em.real {
  color: var(--green);
}

.input-row em.scraped,
.input-row em.derived,
.input-row em.proxy {
  color: var(--green);
}

.input-row em.manual {
  color: var(--amber);
}

.input-row em.mock {
  color: var(--red);
}

details {
  color: var(--muted);
}

summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.65;
}

.manual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manual-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.manual-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 140px) 52px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(247, 248, 243, 0.72);
}

.manual-field span,
.manual-field em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.manual-field input {
  min-width: 0;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(255, 255, 250, 0.92);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.manual-field input:focus {
  outline: 2px solid rgba(41, 76, 122, 0.22);
  outline-offset: 1px;
}

.source-status-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 16px 0;
  list-style: none;
}

.source-status-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 260px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.source-status-list a {
  color: var(--blue);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: var(--ink);
  font-size: 13px;
}

td a {
  color: var(--blue);
  font-weight: 760;
}

.disclaimer {
  margin: 16px 0 0;
  padding: 16px 18px;
  color: var(--amber);
  border: 1px solid rgba(154, 91, 19, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 250, 0.96), rgba(255, 255, 250, 0.82)),
    rgba(154, 91, 19, 0.08);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1040px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .overview-grid,
  .manual-inputs,
  .forecast-summary-grid,
  .forecast-rank-grid,
  .family-read-grid,
  .family-model-grid,
  .committee-memo-grid,
  .trigger-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desk-main,
  .desk-watchlist {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .strategy-shell {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    padding: 14px 0 30px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-nav a {
    justify-content: center;
    text-align: center;
  }

  h1 {
    font-size: 28px;
    line-height: 1.14;
  }

  h1 span {
    display: block;
  }

  .hero-panel,
  .panel,
  .model-card,
  .overview-tile {
    padding: 14px;
  }

  .overview-grid,
  .metric-grid,
  .history-stats,
  .manual-inputs,
  .forecast-summary-grid,
  .forecast-rank-grid,
  .model-status,
  .family-read-grid,
  .family-model-grid,
  .committee-memo-grid,
  .decision-strip,
  .trigger-grid {
    grid-template-columns: 1fr;
  }

  .panel-head,
  .model-head,
  .family-panel-head,
  .family-read,
  .section-mini-head {
    display: grid;
  }

  .family-panel-head {
    align-items: start;
  }

  .family-panel-head dl {
    grid-template-columns: 1fr;
  }

  .manual-field {
    grid-template-columns: 1fr;
  }

  .input-row,
  .source-status-list li {
    grid-template-columns: 1fr;
  }
}
