:root {
  color-scheme: dark;
  --bg: #050712;
  --panel: rgba(12, 18, 38, 0.92);
  --panel-soft: rgba(18, 25, 52, 0.86);
  --ink: #f7fbff;
  --muted: #aeb8d4;
  --line: rgba(142, 165, 255, 0.24);
  --teal: #00e5ff;
  --teal-soft: rgba(0, 229, 255, 0.12);
  --blue: #5aa9ff;
  --amber: #ffc857;
  --amber-soft: rgba(255, 200, 87, 0.14);
  --red: #ff3e7f;
  --red-soft: rgba(255, 62, 127, 0.13);
  --green: #21d19f;
  --green-soft: rgba(33, 209, 159, 0.13);
  --violet: #8b5cf6;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.58;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: #050712;
  color: #f7fbfb;
  border-bottom: 4px solid rgba(255, 200, 87, 0.72);
}

.header-inner {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 28px;
}

.header-copy {
  max-width: 940px;
}

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

.site-header .eyebrow {
  color: #9de2d8;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
}

h2 {
  margin: 0;
  font-size: clamp(23px, 2.6vw, 31px);
  line-height: 1.25;
}

h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.subtitle {
  max-width: 940px;
  margin: 14px 0 0;
  color: #d9e8e7;
  font-size: 16px;
}

.timestamp {
  margin: 10px 0 0;
  color: #bdd4d2;
  font-size: 13px;
}

.hero-metrics,
.metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.hero-metrics {
  margin-top: 24px;
}

.metric-grid.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metric-card {
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.section-metrics .metric-card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.metric-card span {
  display: block;
  color: inherit;
  opacity: 0.76;
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1.18;
}

.metric-card small {
  display: block;
  margin-top: 7px;
  color: inherit;
  opacity: 0.78;
  font-size: 12px;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.tabs-inner {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  overflow-x: auto;
}

.tab-button,
.print-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.tab-button {
  padding: 0 12px;
}

.tab-button.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.print-button {
  padding: 0 13px;
  background: #182052;
  border-color: #293487;
  color: #fff;
}

.tab-spacer {
  flex: 1 1 auto;
}

main {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.section-head {
  margin: 8px 0 18px;
}

.section-head p:last-child {
  max-width: 870px;
  margin: 8px 0 0;
  color: var(--muted);
}

.overview-layout,
.two-col,
.chart-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col,
.cycle-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-metrics,
.cycle-grid,
.two-col,
.three-col,
.chart-grid,
details,
.research-card {
  margin-top: 16px;
}

.research-card,
.chart-card,
.cycle-card,
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.research-card,
.cycle-card,
details {
  padding: 18px;
}

.research-card p {
  margin: 0;
  color: #34424a;
}

.research-card.emphasis {
  border-left: 5px solid var(--amber);
}

.research-card.good {
  border-left: 5px solid var(--green);
}

.research-card.caution {
  border-left: 5px solid var(--red);
}

.compact-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #34424a;
}

.compact-list li + li {
  margin-top: 6px;
}

.cycle-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.cycle-matrix span {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel-soft);
  color: #34424a;
  font-size: 13px;
}

.cycle-matrix span.active {
  border-color: #d0962c;
  background: var(--amber-soft);
}

.cycle-matrix b {
  display: block;
  margin-top: 6px;
  color: var(--ink);
}

.cycle-card h3 {
  color: var(--ink);
}

.cycle-card p:not(.eyebrow) {
  margin: 0;
  color: #34424a;
}

.score-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.score-pill {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  align-items: center;
  border-radius: var(--radius);
  padding: 6px 8px;
  font-size: 12px;
}

.score-hot {
  color: var(--red);
  background: var(--red-soft);
}

.score-warm {
  color: var(--amber);
  background: var(--amber-soft);
}

.score-cool {
  color: var(--blue);
  background: #e7eff8;
}

.score-cold {
  color: #5d6470;
  background: #eceff1;
}

.score-neutral {
  color: var(--teal);
  background: var(--teal-soft);
}

.chart-card {
  padding: 16px;
}

.chart-card h3 {
  margin-bottom: 4px;
}

.note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.chart-wrap {
  width: 100%;
  min-height: 300px;
  position: relative;
}

canvas {
  display: block;
  width: 100%;
}

details summary {
  cursor: pointer;
  font-weight: 850;
}

.table-wrap {
  margin-top: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

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

th,
td {
  padding: 10px 11px;
  border-bottom: 1px solid #e8ecea;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f3f6f4;
  color: #2f3c44;
  font-weight: 850;
}

tr:last-child td {
  border-bottom: 0;
}

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

.source-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.source-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.source-card a {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 750;
}

.footnote {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.loading-error {
  padding: 12px;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background: var(--red-soft);
  color: var(--red);
}

.loading-warning {
  padding: 12px;
  border: 1px solid rgba(183, 121, 31, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 200, 87, 0.18);
  color: #7a4a00;
}

@media (max-width: 1100px) {
  .hero-metrics,
  .metric-grid,
  .metric-grid.six,
  .overview-layout,
  .two-col,
  .three-col,
  .cycle-grid,
  .chart-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .cycle-matrix,
  .score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner,
  .tabs-inner,
  main {
    width: min(100% - 24px, 1280px);
  }

  .cycle-matrix,
  .score-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 28px;
  }
}

/* Electric finance visual layer. Kept as late style values/overrides so the layout
   remains stable while the surface moves away from the previous theme. */
:root {
  color-scheme: dark;
  --bg: #050712;
  --panel: rgba(12, 18, 38, 0.92);
  --panel-soft: rgba(18, 25, 52, 0.86);
  --ink: #f7fbff;
  --muted: #aeb8d4;
  --line: rgba(142, 165, 255, 0.24);
  --teal: #00e5ff;
  --teal-soft: rgba(0, 229, 255, 0.12);
  --blue: #5aa9ff;
  --amber: #ffc857;
  --amber-soft: rgba(255, 200, 87, 0.14);
  --red: #ff3e7f;
  --red-soft: rgba(255, 62, 127, 0.13);
  --green: #21d19f;
  --green-soft: rgba(33, 209, 159, 0.13);
  --violet: #8b5cf6;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  --radius: 8px;
}

body {
  background:
    linear-gradient(90deg, rgba(90, 169, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 46, 159, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #050712 0%, #080b1a 48%, #050712 100%);
  background-size: 52px 52px, 52px 52px, auto;
  color: var(--ink);
}

a {
  color: #7fdcff;
}

.site-header {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.10) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 46, 159, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #040611 0%, #0b1027 46%, #16091f 100%);
  background-size: 42px 42px, 42px 42px, auto;
  border-bottom: 1px solid rgba(0, 229, 255, 0.38);
  box-shadow: inset 0 -1px 0 rgba(255, 46, 159, 0.25);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(0, 229, 255, 0.11) 42%, transparent 44%),
    linear-gradient(72deg, transparent 0%, rgba(255, 200, 87, 0.10) 64%, transparent 66%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.040) 0,
    rgba(255, 255, 255, 0.040) 1px,
    transparent 1px,
    transparent 9px
  );
  opacity: 0.36;
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: end;
  gap: 28px;
  padding: 54px 0 38px;
}

.header-copy {
  max-width: 760px;
}

.eyebrow,
.site-header .eyebrow {
  color: var(--teal);
}

h1 {
  max-width: 820px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  text-shadow: 0 0 28px rgba(0, 229, 255, 0.25);
}

.subtitle {
  color: #d7e5ff;
  font-size: 17px;
}

.timestamp {
  color: #91a2c8;
}

.cycle-badge {
  display: inline-flex;
  max-width: 100%;
  margin: 16px 0 0;
  padding: 8px 11px;
  border: 1px solid rgba(255, 200, 87, 0.44);
  border-radius: var(--radius);
  background: rgba(255, 200, 87, 0.10);
  color: #ffe4a6;
  box-shadow: 0 0 22px rgba(255, 200, 87, 0.10);
  font-size: 13px;
  font-weight: 800;
}

.hero-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.metric-card,
.section-metrics .metric-card,
.research-card,
.chart-card,
.cycle-card,
details,
.source-card,
.table-wrap {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.metric-card {
  min-height: 108px;
}

.hero-metrics .metric-card {
  border-color: rgba(0, 229, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(255, 46, 159, 0.08)),
    rgba(8, 14, 34, 0.70);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.metric-card span {
  color: #aeb8d4;
  opacity: 1;
}

.metric-card strong {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
}

.metric-card small {
  color: #b7c3df;
  opacity: 1;
}

.tabs {
  border-bottom-color: rgba(0, 229, 255, 0.22);
  background: rgba(5, 7, 18, 0.86);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.tab-button,
.print-button {
  border-color: rgba(142, 165, 255, 0.24);
  background: rgba(16, 23, 48, 0.82);
  color: #dbe8ff;
}

.tab-button:hover,
.print-button:hover {
  border-color: rgba(0, 229, 255, 0.55);
  color: #ffffff;
}

.tab-button.active {
  border-color: rgba(0, 229, 255, 0.78);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.26), rgba(255, 46, 159, 0.20));
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.13);
}

.print-button {
  background: linear-gradient(135deg, rgba(255, 46, 159, 0.28), rgba(139, 92, 246, 0.22));
}

.section-head p:last-child,
.research-card p,
.cycle-card p:not(.eyebrow),
.compact-list,
.note,
.source-card p,
.footnote {
  color: var(--muted);
}

.research-card.emphasis {
  border-left-color: var(--amber);
}

.research-card.good {
  border-left-color: var(--teal);
}

.research-card.caution {
  border-left-color: var(--red);
}

.compact-list li {
  padding-left: 2px;
}

.compact-list li::marker {
  color: var(--teal);
}

.evidence-refs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: 8px;
  vertical-align: middle;
}

.cycle-card > .evidence-refs {
  margin: 14px 0 0;
}

.evidence-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.08);
  color: #83eaff;
  font-size: 11px;
  font-weight: 850;
}

.cycle-matrix span {
  border-color: rgba(142, 165, 255, 0.22);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.cycle-matrix span.active {
  border-color: rgba(255, 46, 159, 0.58);
  background: linear-gradient(135deg, rgba(255, 46, 159, 0.18), rgba(255, 200, 87, 0.12));
  color: #ffdce9;
  box-shadow: inset 0 0 24px rgba(255, 46, 159, 0.08);
}

.cycle-matrix b,
.cycle-card h3 {
  color: var(--ink);
}

.score-pill {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.score-hot {
  color: #ff9aba;
  background: rgba(255, 62, 127, 0.14);
}

.score-warm {
  color: #ffe09b;
  background: rgba(255, 200, 87, 0.14);
}

.score-cool {
  color: #9ddfff;
  background: rgba(90, 169, 255, 0.13);
}

.score-cold {
  color: #c3c9dc;
  background: rgba(142, 165, 255, 0.12);
}

.score-neutral {
  color: #d1b5ff;
  background: rgba(139, 92, 246, 0.13);
}

.chart-card {
  position: relative;
}

.chart-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.12), transparent 22%, transparent 78%, rgba(255, 46, 159, 0.10));
  pointer-events: none;
  opacity: 0.62;
}

.chart-card > * {
  position: relative;
  z-index: 1;
}

.chart-wrap {
  min-height: 300px;
}

canvas {
  cursor: crosshair;
}

.table-wrap {
  background: rgba(10, 15, 34, 0.86);
}

table {
  color: #dbe8ff;
}

th,
td {
  border-bottom-color: rgba(142, 165, 255, 0.18);
}

th {
  background: rgba(255, 255, 255, 0.055);
  color: #f5f8ff;
}

tr:hover td {
  background: rgba(0, 229, 255, 0.035);
}

details summary {
  color: #f7fbff;
}

.source-card,
.evidence-card,
.system-step {
  border: 1px solid rgba(142, 165, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.system-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.system-step {
  padding: 14px;
}

.system-step b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--red));
  color: #050712;
  font-size: 12px;
}

.system-step h3 {
  margin-top: 10px;
}

.system-step p {
  font-size: 13px;
}

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

.evidence-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.evidence-card p:not(.eyebrow),
.evidence-card small {
  color: var(--muted);
}

.evidence-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.evidence-metrics span {
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.07);
  color: #d7e5ff;
  font-size: 12px;
}

.chart-tooltip {
  position: fixed;
  z-index: 1000;
  width: max-content;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px 11px;
  border: 1px solid rgba(0, 229, 255, 0.60);
  border-radius: var(--radius);
  background: rgba(6, 10, 25, 0.94);
  color: #f7fbff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.48), 0 0 28px rgba(0, 229, 255, 0.13);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(10px, 10px, 0);
  transition: opacity 100ms ease;
}

.chart-tooltip.visible {
  opacity: 1;
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.chart-tooltip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.chart-tooltip b {
  color: #ffffff;
}

.loading-error {
  background: rgba(255, 62, 127, 0.14);
}

.loading-warning {
  background: rgba(255, 200, 87, 0.18);
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .system-flow,
  .evidence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 0;
  }

  .header-inner {
    padding: 34px 0 28px;
  }

  h1 {
    font-size: 36px;
  }

  .cycle-badge {
    display: flex;
    font-size: 12px;
  }
}

/* Institutional light visual layer. This is the final visual surface for v2. */
:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --panel: #ffffff;
  --panel-soft: #f9fbff;
  --ink: #102033;
  --muted: #5e6b7f;
  --line: #dce5f2;
  --teal: #008dff;
  --teal-soft: #e8f4ff;
  --blue: #1d4ed8;
  --amber: #b7791f;
  --amber-soft: #fff6df;
  --red: #d9266f;
  --red-soft: #fff0f6;
  --green: #0f8f6b;
  --green-soft: #e9f8f3;
  --violet: #6d5bd0;
  --shadow: 0 14px 34px rgba(16, 32, 51, 0.08);
}

body {
  background:
    linear-gradient(90deg, rgba(29, 78, 216, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 141, 255, 0.030) 1px, transparent 1px),
    #f6f8fc;
  background-size: 56px 56px, 56px 56px, auto;
  color: var(--ink);
}

a {
  color: var(--blue);
}

.site-header {
  min-height: 0;
  background:
    linear-gradient(120deg, rgba(0, 141, 255, 0.10), rgba(217, 38, 111, 0.06) 46%, rgba(255, 255, 255, 0.76)),
    #f8fbff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 38px rgba(16, 32, 51, 0.08);
  color: var(--ink);
}

.site-header::before,
.site-header::after {
  display: none;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 1fr);
  gap: 24px;
  align-items: end;
  padding: 30px 0 24px;
}

.header-copy {
  max-width: 760px;
}

h1 {
  max-width: 780px;
  color: #0d1b2f;
  font-size: clamp(30px, 3.9vw, 48px);
  line-height: 1.08;
  text-shadow: none;
}

h2,
h3 {
  color: var(--ink);
}

.eyebrow,
.site-header .eyebrow {
  color: #0079df;
}

.subtitle {
  color: #2d3f59;
}

.timestamp {
  color: #6a7890;
}

.cycle-badge {
  border-color: rgba(183, 121, 31, 0.34);
  background: var(--amber-soft);
  color: #7a4d11;
  box-shadow: none;
}

.hero-metrics,
.metric-grid.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card,
.hero-metrics .metric-card,
.section-metrics .metric-card,
.research-card,
.chart-card,
.cycle-card,
details,
.source-card,
.table-wrap {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-metrics .metric-card {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(0, 141, 255, 0.20);
}

.metric-card span,
.metric-card small,
.section-head p:last-child,
.research-card p,
.cycle-card p:not(.eyebrow),
.compact-list,
.note,
.source-card p,
.footnote,
.evidence-card p:not(.eyebrow),
.evidence-card small {
  color: var(--muted);
}

.metric-card strong {
  color: #0d1b2f;
  text-shadow: none;
}

.tabs {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(16, 32, 51, 0.08);
}

.tab-button,
.print-button {
  border-color: var(--line);
  background: #ffffff;
  color: #26364d;
}

.tab-button:hover,
.print-button:hover {
  border-color: rgba(0, 141, 255, 0.42);
  color: #0d1b2f;
}

.tab-button.active {
  border-color: rgba(0, 141, 255, 0.55);
  background: linear-gradient(135deg, #e8f4ff, #fff1f7);
  color: #0f3f73;
  box-shadow: none;
}

.print-button {
  background: #102033;
  border-color: #102033;
  color: #fff;
}

.overview-layout,
.two-col,
.chart-grid {
  gap: 16px;
}

.research-card.emphasis {
  border-left-color: var(--amber);
}

.research-card.good {
  border-left-color: var(--green);
}

.research-card.caution {
  border-left-color: var(--red);
}

.compact-list li::marker {
  color: #008dff;
}

.evidence-chip {
  border-color: #b8dcff;
  background: #eef7ff;
  color: #005ca8;
}

.cycle-matrix span {
  border-color: var(--line);
  background: var(--panel-soft);
  color: var(--muted);
}

.cycle-matrix span.active {
  border-color: rgba(217, 38, 111, 0.34);
  background: #fff1f7;
  color: #7f1644;
}

.score-pill {
  border: 1px solid rgba(16, 32, 51, 0.06);
}

.score-hot {
  color: #b91c5a;
  background: var(--red-soft);
}

.score-warm {
  color: #8a580f;
  background: var(--amber-soft);
}

.score-cool {
  color: #1d4ed8;
  background: #eaf1ff;
}

.score-cold {
  color: #475569;
  background: #eef2f7;
}

.score-neutral {
  color: #5b42b5;
  background: #f1efff;
}

.factor-matrix {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.matrix-cell {
  min-height: 156px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.matrix-cell strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 24px;
}

.matrix-cell span {
  display: block;
  margin-top: 3px;
  color: #27364c;
  font-weight: 850;
}

.matrix-cell small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.factor-panel-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.factor-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: 16px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
}

.factor-panel-copy p {
  margin: 0;
  color: var(--muted);
}

.factor-panel-copy h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.factor-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.factor-metrics .metric-card {
  min-height: 94px;
  padding: 12px;
  box-shadow: none;
}

.compact-chart {
  padding: 10px;
  box-shadow: none;
  background: #fbfdff;
}

.chart-card::before {
  display: none;
}

.chart-wrap {
  min-height: 260px;
}

canvas {
  cursor: crosshair;
}

.table-wrap {
  background: #fff;
}

table {
  color: #1f2e43;
}

th,
td {
  border-bottom-color: #e6edf7;
}

th {
  background: #f3f7fc;
  color: #22324a;
}

tr:hover td {
  background: #f8fbff;
}

details summary {
  color: var(--ink);
}

.source-card,
.evidence-card,
.system-step {
  border-color: var(--line);
  background: var(--panel-soft);
}

.system-step b {
  background: linear-gradient(135deg, #008dff, #d9266f);
  color: #fff;
}

.evidence-metrics span {
  background: #eef7ff;
  color: #1f2e43;
}

.factor-catalog > h3 {
  margin-top: 18px;
}

/* Trend-first responsive refinement. */
html,
body {
  overflow-x: hidden;
}

.header-inner,
.tabs-inner,
main {
  width: min(1680px, calc(100% - clamp(24px, 5vw, 72px)));
}

.site-header {
  background:
    linear-gradient(120deg, rgba(0, 141, 255, 0.12), rgba(217, 38, 111, 0.055) 42%, rgba(255, 255, 255, 0.84)),
    linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.header-inner {
  grid-template-columns: minmax(420px, 1.05fr) minmax(520px, 0.95fr);
  align-items: start;
}

.hero-metrics,
.metric-grid,
.metric-grid.six,
.factor-metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.hero-metrics .metric-card,
.section-metrics .metric-card {
  min-height: 98px;
}

.overview-layout {
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
}

.two-col,
.three-col,
.cycle-grid,
.source-grid,
.evidence-grid,
.system-flow {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.cycle-matrix {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.factor-matrix {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  align-items: stretch;
}

.factor-matrix.region-rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.matrix-region-row {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.matrix-region-label {
  display: grid;
  align-content: center;
  min-height: 178px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f1f7ff);
}

.matrix-region-label h3 {
  margin: 0;
  font-size: 18px;
}

.matrix-region-cells {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.matrix-score-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.matrix-score-line em {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eaf4ff;
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
}

.matrix-latest {
  display: grid;
  gap: 1px;
  color: var(--ink);
  font-size: 14px;
}

.matrix-latest small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 12px;
  margin-top: 14px;
}

.method-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.method-card p {
  color: var(--muted);
  font-size: 13px;
}

.driver-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.driver-list li {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid #dfe9f7;
  border-radius: var(--radius);
  background: #fff;
}

.driver-list b {
  color: var(--ink);
  font-size: 12px;
}

.driver-list span {
  color: var(--muted);
  font-size: 12px;
}

.matrix-cell {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.matrix-cell strong,
.matrix-cell span,
.matrix-cell small {
  margin-top: 0;
}

.matrix-spark {
  width: 100%;
  min-height: 58px;
  margin: 2px 0 1px;
}

.matrix-spark canvas {
  cursor: crosshair;
}

.factor-panel-list {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 18px;
}

.factor-panel {
  grid-template-columns: minmax(0, 1.58fr) minmax(340px, 0.62fr);
  min-width: 0;
  align-items: start;
}

.factor-panel-copy,
.chart-card,
.chart-wrap {
  min-width: 0;
}

.factor-panel-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.factor-panel.chart-first .chart-card {
  order: 0;
}

.factor-panel.chart-first .factor-panel-copy {
  order: 1;
}

.factor-bullets {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.factor-bullets li::marker {
  color: var(--blue);
}

.factor-note {
  margin-top: 0;
  padding: 6px 0 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.factor-note summary {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.factor-note p {
  margin-top: 8px;
  font-size: 12px;
}

.factor-research-block {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.factor-research-block h4 {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
}

.factor-research-block p,
.factor-research-block li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.factor-research-block ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 17px;
}

.latest-data-note {
  padding: 8px 10px;
  border: 1px solid rgba(0, 141, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 141, 255, 0.06);
}

.llm-provenance {
  margin: 8px 0 0;
  color: #7b8799;
  font-size: 11px;
  line-height: 1.45;
}

.factor-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  padding-top: 0;
}

.chart-wrap {
  min-height: 370px;
}

.factor-panel-copy .evidence-refs {
  display: flex;
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.factor-metrics .metric-card {
  min-height: 78px;
  padding: 10px;
}

.factor-metrics .metric-card strong {
  font-size: 20px;
}

.factor-metrics .metric-card small {
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.compact-chart {
  display: grid;
  align-content: stretch;
}

.section-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

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

.inline-tab-jump {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(0, 141, 255, 0.34);
  border-radius: var(--radius);
  background: #eef7ff;
  color: #0f3f73;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.event-summary-card {
  border-left: 5px solid var(--blue);
}

.event-summary-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px 0 0;
}

.event-summary-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.event-summary-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.event-summary-item {
  display: grid;
  grid-template-columns: minmax(92px, 0.16fr) minmax(0, 1fr) minmax(130px, 0.2fr);
  gap: 12px;
  min-width: 0;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.event-summary-item.is-ai {
  border-left: 3px solid var(--red);
  padding-left: 10px;
}

.event-summary-item.is-macro {
  border-left: 3px solid var(--blue);
  padding-left: 10px;
}

.event-summary-date,
.event-summary-main,
.event-summary-actions {
  min-width: 0;
}

.event-summary-date {
  display: grid;
  gap: 4px;
  align-content: start;
  color: var(--muted);
  font-size: 11px;
}

.event-summary-date b {
  color: var(--ink);
  font-size: 12px;
}

.event-summary-main h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.event-summary-main p,
.event-summary-main small,
.event-summary-actions small {
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.event-summary-main p {
  color: #334155;
}

.event-summary-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
  align-content: start;
}

.event-radar,
.event-control-card,
.event-columns,
.event-columns section,
.event-card,
.event-footer {
  min-width: 0;
  max-width: 100%;
}

.event-radar {
  display: grid;
  gap: 16px;
}

.event-control-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: start;
}

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

.event-control-grid span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.event-control-grid b {
  color: var(--ink);
}

.event-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.event-columns section {
  display: grid;
  gap: 12px;
}

.event-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.07);
}

.event-side-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
}

.event-side-card h3,
.event-side-card p {
  margin: 0;
}

.event-side-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}

.event-card.compact {
  padding: 13px;
  box-shadow: none;
}

.event-card.is-ai {
  border-left: 4px solid var(--red);
}

.event-card.is-macro {
  border-left: 4px solid var(--blue);
}

.event-card-header {
  display: grid;
  gap: 6px;
}

.event-card-header small {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.event-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.event-topline span,
.event-channels span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  font-size: 11px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.event-date {
  color: #075a9f;
}

.event-domain {
  color: #9b174f;
}

.event-status,
.event-depth,
.event-source-quality {
  color: #46556d;
}

.event-importance {
  color: #8a580f;
}

.importance-h .event-importance {
  background: #fff0f6;
  border-color: #ffd1e1;
  color: #b91c5a;
}

.event-card-body {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.event-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.event-summary-text,
.event-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.event-deep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.event-section {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.event-section h4,
.event-my-view h4,
.event-source-pack h4 {
  margin: 0;
  color: #102033;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.event-section ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 16px;
  color: #334155;
  font-size: 12px;
  line-height: 1.48;
}

.event-section li {
  overflow-wrap: anywhere;
}

.event-section-what {
  border-right: 1px solid #eef3fa;
  padding-right: 10px;
}

.event-section-impact ul {
  color: #26364d;
}

.event-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-channels span {
  color: #26364d;
}

.event-detail {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.event-detail summary {
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.event-detail-grid {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef3fa;
}

.event-my-view {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.event-my-view p {
  margin: 0;
  color: #1e293b;
  font-size: 13px;
  line-height: 1.55;
}

.event-source-pack {
  display: grid;
  gap: 8px;
}

.event-source-pack > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-source-pack span {
  display: inline-flex;
  gap: 5px;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.event-source-pack b {
  color: var(--ink);
}

.event-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding-top: 4px;
  border-top: 1px solid #eef3fa;
}

.event-footer small {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.event-footer .evidence-refs,
.event-summary-actions .evidence-refs {
  margin: 0;
}

.event-feedback {
  display: inline-flex;
  gap: 5px;
}

.event-feedback button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

.event-feedback button:hover,
.event-feedback button.active {
  border-color: rgba(0, 141, 255, 0.46);
  background: #eef7ff;
}

.chart-tooltip {
  border-color: rgba(0, 141, 255, 0.44);
  background: rgba(255, 255, 255, 0.98);
  color: #102033;
  box-shadow: 0 16px 42px rgba(16, 32, 51, 0.18);
}

.chart-tooltip span {
  color: var(--muted);
}

.chart-tooltip b {
  color: #0d1b2f;
}

.loading-error {
  background: var(--red-soft);
}

.overview-live-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(440px, 1.14fr);
  gap: 16px;
  align-items: start;
}

.overview-research-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.overview-research-stack .research-card {
  margin-top: 0;
}

.live-hot-feed {
  min-width: 0;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(16, 32, 51, 0.10);
  padding: 16px;
}

.overview-live-layout .live-hot-feed {
  margin-top: 0;
}

.live-hot-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.live-hot-head h3 {
  margin: 2px 0 4px;
}

.live-hot-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.live-hot-status {
  flex: 0 0 auto;
  max-width: 180px;
  border: 1px solid rgba(0, 141, 255, 0.20);
  border-radius: 999px;
  background: #eef7ff;
  color: #075991;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  text-align: right;
  overflow-wrap: anywhere;
}

.live-hot-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(3, minmax(116px, 0.72fr));
  gap: 10px;
  margin-top: 14px;
}

.live-hot-controls label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #5e6b7f;
  font-size: 12px;
  font-weight: 850;
}

.live-hot-controls input,
.live-hot-controls select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d7e4f2;
  border-radius: var(--radius);
  background: #fbfdff;
  color: #102033;
  font: inherit;
  font-size: 13px;
  padding: 8px 10px;
}

.live-hot-list {
  display: grid;
  gap: 0;
  max-height: 760px;
  overflow: auto;
  margin-top: 12px;
  padding-right: 4px;
}

.live-hot-feed-events .live-hot-list {
  max-height: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 12px;
  padding-right: 0;
}

.live-hot-row {
  min-width: 0;
  border-top: 1px solid #e8eef7;
  padding: 12px 0;
}

.live-hot-feed-events .live-hot-row {
  border: 1px solid #e3ebf5;
  border-radius: var(--radius);
  padding: 12px;
  background: #fbfdff;
}

.live-hot-row:first-child {
  border-top: 0;
}

.live-hot-title-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.live-hot-row h4 {
  min-width: 0;
  margin: 0;
  color: #102033;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.live-hot-score {
  flex: 0 0 auto;
  min-width: 44px;
  border-radius: 999px;
  background: #102033;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
  text-align: center;
}

.live-hot-score.importance-H {
  background: #d9266f;
}

.live-hot-score.importance-M {
  background: #0b6fb3;
}

.live-hot-score.importance-L {
  background: #526070;
}

.live-hot-summary {
  margin: 7px 0 0;
  color: #4a5870;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.live-hot-reason {
  margin: 7px 0 0;
  color: #1f3c56;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.live-hot-meta,
.live-hot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.live-hot-badges {
  margin-top: 8px;
}

.live-hot-meta {
  margin-top: 9px;
  color: #69778d;
  font-size: 12px;
}

.live-hot-pill {
  border: 1px solid #d7e4f2;
  border-radius: 999px;
  background: #f5f8fc;
  color: #33445a;
  font-size: 11px;
  font-weight: 850;
  padding: 3px 7px;
}

.live-hot-pill.review-candidate {
  border-color: rgba(217, 38, 111, 0.22);
  background: #fff1f7;
  color: #9b174f;
}

.live-hot-pill.review-approved,
.live-hot-pill.review-reviewed_candidate {
  border-color: rgba(15, 143, 107, 0.24);
  background: #edfff9;
  color: #096f54;
}

.live-hot-link {
  color: #005ca8;
  font-weight: 850;
  text-decoration: none;
}

.live-hot-link:hover {
  text-decoration: underline;
}

.live-hot-empty,
.live-hot-error {
  border: 1px dashed #d7e4f2;
  border-radius: var(--radius);
  color: #69778d;
  padding: 16px;
  background: #fbfdff;
}

.live-hot-error {
  border-color: rgba(217, 38, 111, 0.24);
  background: #fff1f7;
  color: #9b174f;
}

@media (max-width: 1180px) {
  .factor-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .factor-matrix.region-rows {
    grid-template-columns: 1fr;
  }

  .matrix-region-row {
    grid-template-columns: 1fr;
  }

  .matrix-region-label {
    min-height: 0;
  }

  .matrix-region-cells {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .factor-panel {
    grid-template-columns: 1fr;
  }

  .overview-layout {
    grid-template-columns: 1fr;
  }

  .overview-live-layout {
    grid-template-columns: 1fr;
  }

  .event-control-card,
  .event-columns {
    grid-template-columns: 1fr;
  }

  .event-control-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .live-hot-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .metric-grid.six,
  .factor-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 32px;
  }

  .header-inner {
    padding: 24px 0 20px;
  }

  .hero-metrics,
  .metric-grid.six,
  .factor-matrix,
  .factor-metrics {
    grid-template-columns: 1fr;
  }

  .factor-panel {
    padding: 12px;
  }

  .matrix-region-cells {
    grid-template-columns: 1fr;
  }

  .chart-wrap {
    min-height: 270px;
  }

  .header-inner,
  .tabs-inner,
  main {
    width: min(100% - 20px, 1680px);
  }

  .section-mini-head,
  .event-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .event-summary-item,
  .event-deep-grid,
  .event-control-grid {
    grid-template-columns: 1fr;
  }

  .live-hot-feed {
    padding: 12px;
  }

  .live-hot-head,
  .live-hot-title-line {
    display: grid;
    grid-template-columns: 1fr;
  }

  .live-hot-status {
    max-width: none;
    text-align: left;
  }

  .live-hot-controls,
  .live-hot-feed-events .live-hot-list {
    grid-template-columns: 1fr;
  }

  .live-hot-score {
    width: max-content;
  }

  .event-summary-actions {
    justify-items: start;
  }

  .event-section-what {
    border-right: 0;
    border-bottom: 1px solid #eef3fa;
    padding-right: 0;
    padding-bottom: 8px;
  }

  .event-feedback {
    justify-content: start;
  }
}

/* ECharts cockpit upgrade. */
.echart {
  width: 100%;
  min-width: 0;
  min-height: 260px;
}

.echart canvas {
  cursor: default;
}

.small-echart {
  min-height: 118px;
}

.event-echart {
  min-height: 300px;
}

.chart-wrap {
  display: grid;
  align-items: stretch;
}

.factor-panel.small-multiple-panel {
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.factor-verdict {
  position: sticky;
  top: 86px;
  align-self: start;
}

.factor-verdict .factor-note {
  margin-top: 4px;
}

.factor-small-multiples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.factor-visual-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.factor-visual-stack .chart-card {
  min-width: 0;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 32, 51, 0.045);
}

.factor-visual-stack .chart-wrap {
  min-height: 330px;
}

.factor-panel.has-main-chart .factor-small-multiples {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .factor-panel.has-main-chart .factor-small-multiples {
    grid-template-columns: minmax(0, 1fr);
  }
}

.factor-small-multiples.single-series {
  grid-template-columns: minmax(0, 1fr);
}

.small-multiple-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe9f7;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 8px 24px rgba(16, 32, 51, 0.045);
}

.small-multiple-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.small-multiple-head h4 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.28;
}

.small-multiple-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.small-multiple-head strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.small-chart-wrap {
  min-height: 118px;
}

.small-multiple-foot,
.recent-observations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.small-multiple-foot span,
.recent-observations span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid #e5edf7;
  border-radius: 6px;
  background: #fff;
  color: #5e6b7f;
  font-size: 11px;
}

.matrix-spark svg {
  display: block;
  width: 100%;
  height: 42px;
}

.matrix-spark .spark-axis {
  stroke: rgba(91, 117, 156, 0.22);
  stroke-width: 1;
}

.matrix-spark-empty {
  display: grid;
  place-items: center;
  min-height: 42px;
  color: var(--muted);
}

.echart-tip {
  display: grid;
  gap: 7px;
  width: auto;
  max-width: min(320px, calc(100vw - 56px));
  box-sizing: border-box;
  color: #102033;
  font: 12px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.echart-tip strong {
  display: block;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
}

.tip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, 0.42fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tip-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tip-row b {
  min-width: 0;
  color: #102033;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tip-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tip-meta {
  min-width: 0;
  color: #5e6b7f;
  font-size: 11px;
  line-height: 1.38;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.event-deep-dive {
  display: grid;
  gap: 14px;
}

.event-thesis-card,
.event-compare-card,
.event-visual-card,
.event-timeline-card,
.event-priority-card,
.event-risk-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
}

.event-thesis-card {
  border-left: 5px solid var(--blue);
  background:
    linear-gradient(120deg, rgba(0, 141, 255, 0.08), rgba(217, 38, 111, 0.045)),
    #fff;
}

.event-thesis-card h3 {
  max-width: 980px;
  font-size: clamp(21px, 2.8vw, 34px);
}

.event-compare-grid,
.event-visual-grid,
.event-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.event-action-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.95fr);
}

.event-compare-card.google {
  border-left: 4px solid var(--blue);
}

.event-compare-card.alicloud {
  border-left: 4px solid var(--red);
}

.event-timeline-card ol,
.event-priority-card ul,
.event-risk-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 13px;
}

.event-timeline-card li {
  display: grid;
  gap: 2px;
}

.event-timeline-card small {
  color: var(--muted);
}

.event-priority-card li b {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  margin-right: 6px;
  border-radius: 6px;
  background: #eef7ff;
  color: var(--blue);
}

.event-timeline-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(150px, 0.24fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
}

.event-timeline-row.is-ai {
  border-left-color: var(--red);
}

.event-row-date,
.event-row-main,
.event-row-meta {
  min-width: 0;
}

.event-row-date {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.event-row-date b,
.event-row-main h4 {
  color: var(--ink);
}

.event-row-main h4,
.event-row-main p {
  margin: 0;
}

.event-row-main p,
.event-row-main small,
.event-row-meta small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.event-row-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.event-row-meta span {
  padding: 3px 7px;
  border-radius: 6px;
  background: #f4f8ff;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.event-daily-stream,
.event-feature-stage,
.event-archive {
  min-width: 0;
}

.event-daily-stream {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 141, 255, 0.08), rgba(255, 184, 0, 0.08)),
    #fff;
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
}

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

.event-daily-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(180, 194, 216, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
}

.event-daily-grid span,
.event-daily-grid small,
.feature-stage-meta span,
.feature-stage-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.event-daily-grid h4,
.event-daily-grid p,
.feature-stage-copy h3,
.feature-stage-copy p,
.feature-stage-copy small {
  margin: 0;
  overflow-wrap: anywhere;
}

.event-daily-grid h4 {
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.28;
}

.event-daily-grid p {
  margin: 6px 0;
  color: #334155;
  font-size: 12px;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-feature-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 32, 51, 0.07);
}

.event-feature-stage.expanded {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.feature-state {
  display: inline-grid;
  place-items: center;
  padding: 5px 9px;
  border-radius: 6px;
  background: #eff7ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.event-feature-stage.compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 14px;
  padding: 16px;
  border-left: 5px solid var(--blue);
}

.event-feature-stage.compact.archive {
  border-left-color: var(--amber);
}

.feature-stage-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.feature-stage-copy h3 {
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.18;
}

.feature-stage-copy p {
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

.feature-stage-copy small {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-stage-meta {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  min-width: 0;
}

.feature-stage-meta > span {
  padding: 4px 8px;
  border-radius: 6px;
  background: #f5f8ff;
  font-weight: 800;
}

.event-archive {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.event-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.event-archive-group {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.event-archive-group h4 {
  margin: 0;
  color: var(--ink);
}

.event-archive-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
  overflow: hidden;
}

.event-archive-item summary {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
}

.event-archive-item summary span,
.event-archive-item summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.event-archive-item summary b {
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.event-archive-item .event-card {
  margin: 0;
  border-width: 1px 0 0;
  border-left-width: 4px;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 980px) {
  .factor-panel.small-multiple-panel,
  .event-control-card,
  .event-columns,
  .event-daily-grid,
  .event-feature-stage.compact,
  .event-archive-grid,
  .event-compare-grid,
  .event-visual-grid,
  .event-action-grid,
  .event-timeline-row {
    grid-template-columns: 1fr;
  }

  .factor-verdict {
    position: static;
  }

  .factor-small-multiples {
    grid-template-columns: 1fr;
  }

  .event-row-meta {
    justify-items: start;
  }

  .event-archive-item summary {
    grid-template-columns: 1fr;
  }
}

@media print {
  .tabs {
    display: none;
  }

  .site-header {
    background: #070a16;
    color: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .panel {
    display: block;
    break-after: auto;
  }

  .research-card,
  .chart-card,
  .cycle-card,
  details {
    box-shadow: none;
    break-inside: avoid;
  }
}
