:root {
  --bg: #080b0c;
  --bg-soft: #101615;
  --panel: rgba(16, 24, 22, 0.78);
  --panel-strong: rgba(20, 31, 29, 0.96);
  --line: rgba(209, 184, 132, 0.18);
  --muted: #97a49c;
  --text: #f3efe3;
  --gold: #d8b46a;
  --copper: #c87f4d;
  --green: #79d5a8;
  --blue: #7eb6ff;
  --cyan: #5ff5ff;
  --violet: #b7a2ff;
  --red: #ff7f6d;
  --magenta: #ff75c8;
  --ink: #050707;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --neon: 0 0 22px rgba(95, 245, 255, 0.24), 0 0 44px rgba(216, 180, 106, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(121, 213, 168, 0.16), transparent 32rem),
    radial-gradient(circle at 85% 0%, rgba(216, 180, 106, 0.12), transparent 28rem),
    radial-gradient(circle at 50% 100%, rgba(95, 245, 255, 0.08), transparent 35rem),
    linear-gradient(135deg, #070909 0%, #0e1412 47%, #090b0d 100%);
  font-family: "Aptos Display", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.36;
  z-index: 0;
}

.ambient-one {
  width: 24rem;
  height: 24rem;
  left: -8rem;
  top: 20rem;
  background: rgba(121, 213, 168, 0.24);
}

.ambient-two {
  width: 28rem;
  height: 28rem;
  right: -10rem;
  top: 8rem;
  background: rgba(200, 127, 77, 0.22);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.17;
  background:
    linear-gradient(transparent 0 94%, rgba(95, 245, 255, 0.28) 95%, transparent 100%);
  background-size: 100% 7px;
  mix-blend-mode: screen;
}

.hero,
main {
  position: relative;
  z-index: 1;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
  padding: 3.4rem clamp(1rem, 4vw, 4rem) 1.6rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.96;
}

h1 {
  max-width: 62rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 7.5rem);
  letter-spacing: -0.07em;
}

h2 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.05rem;
}

.subtitle {
  max-width: 55rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

button.primary {
  border: 0;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--green));
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(121, 213, 168, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 46px rgba(95, 245, 255, 0.22), 0 10px 30px rgba(216, 180, 106, 0.18);
}

.stamp {
  min-width: 13rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.055);
}

.stamp span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.stamp strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.9rem;
}

main {
  padding: 0 clamp(1rem, 4vw, 4rem) 4rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.kpi {
  min-height: 10rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow), var(--neon);
}

.kpi::after {
  content: "";
  position: absolute;
  width: 9rem;
  height: 9rem;
  right: -4rem;
  bottom: -4rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 180, 106, 0.22), transparent 70%);
}

.kpi label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.kpi strong {
  display: block;
  margin-top: 1.15rem;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: -0.05em;
}

.kpi small {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 1.15rem;
  overflow: hidden;
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(95, 245, 255, 0.08), transparent 28%, rgba(216, 180, 106, 0.08));
  opacity: 0.55;
}

.wide {
  margin-top: 1rem;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.command-strip {
  display: grid;
  grid-template-columns: minmax(18rem, 0.42fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  background:
    linear-gradient(120deg, rgba(216, 180, 106, 0.12), rgba(95, 245, 255, 0.055)),
    var(--panel-strong);
}

.compendium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.analysis-card {
  min-height: 10.5rem;
  padding: 1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 90% 0%, rgba(95, 245, 255, 0.12), transparent 9rem),
    rgba(0, 0, 0, 0.2);
}

.analysis-card h3 {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.analysis-card ul {
  margin: 0;
  padding-left: 1rem;
  color: #cbd6cd;
  line-height: 1.45;
}

.analysis-card li + li {
  margin-top: 0.35rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(22rem, 0.85fr);
  gap: 1rem;
  margin-top: 1rem;
}

.dashboard-grid.triad {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bottom {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-head.compact {
  margin-bottom: 0.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(216, 180, 106, 0.25);
  color: var(--gold);
  background: rgba(216, 180, 106, 0.08);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.hint {
  display: inline-flex;
  width: 1.05rem;
  height: 1.05rem;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  font-size: 0.72rem;
  font-weight: 950;
  cursor: help;
  position: relative;
  vertical-align: middle;
  box-shadow: 0 0 18px rgba(95, 245, 255, 0.35);
}

.hint::after {
  content: none;
}

.floating-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.82rem 0.92rem;
  border: 1px solid rgba(95, 245, 255, 0.34);
  border-radius: 0.95rem;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(95, 245, 255, 0.16), transparent 9rem),
    linear-gradient(145deg, rgba(10, 17, 17, 0.98), rgba(5, 8, 8, 0.98));
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(95, 245, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  line-height: 1.38;
  font-weight: 650;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(0.35rem) scale(0.98);
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.floating-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.floating-tooltip::before {
  content: "";
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  left: var(--arrow-x, 1rem);
  top: -0.42rem;
  transform: rotate(45deg);
  border-left: 1px solid rgba(95, 245, 255, 0.28);
  border-top: 1px solid rgba(95, 245, 255, 0.28);
  background: rgba(8, 14, 14, 0.98);
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.track-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 1.35rem;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(95, 245, 255, 0.025);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.track-card:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 245, 255, 0.28);
}

.track-top {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: flex-start;
}

.track-code {
  font-size: 2.4rem;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.status {
  display: inline-flex;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.status.good {
  color: var(--green);
  background: rgba(121, 213, 168, 0.12);
}

.status.warn {
  color: var(--gold);
  background: rgba(216, 180, 106, 0.12);
}

.status.bad {
  color: var(--red);
  background: rgba(255, 127, 109, 0.12);
}

.status.info {
  color: var(--cyan);
  background: rgba(95, 245, 255, 0.12);
}

.role-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.86rem;
}

.role-row strong {
  color: var(--text);
}

.meter {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 0.75rem 0;
}

.meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--copper));
  border-radius: inherit;
}

canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  background:
    radial-gradient(circle at 50% 50%, rgba(95, 245, 255, 0.07), transparent 60%),
    rgba(0, 0, 0, 0.18);
  border-radius: 1rem;
  border: 1px solid rgba(95, 245, 255, 0.11);
  box-shadow: inset 0 0 24px rgba(95, 245, 255, 0.045);
}

#timelineChart,
#predictorChart {
  height: clamp(13rem, 25vw, 16.25rem);
}

#trackRadarChart,
#decisionDonutChart,
#topKChart {
  height: clamp(14rem, 26vw, 18rem);
}

#q4TrackChart,
#q6TrackChart,
#top4Q4Chart,
#top6Q6Chart {
  height: clamp(11.75rem, 22vw, 15.5rem);
}

#roiShadowChart {
  height: clamp(10.5rem, 20vw, 14.4rem);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.legend span::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  margin-right: 0.35rem;
  background: var(--color);
}

.table-wrap {
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: rgba(0, 0, 0, 0.16);
}

th,
td {
  padding: 0.78rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: top;
  font-size: 0.86rem;
}

th {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: rgba(216, 180, 106, 0.06);
}

th .hint {
  width: 0.95rem;
  height: 0.95rem;
  font-size: 0.62rem;
}

td {
  color: #dfe6dc;
}

.mini-list,
.hypotheses,
.recommendations,
.inventory,
.restrictions {
  display: grid;
  gap: 0.7rem;
}

.mini-row,
.hypothesis,
.recommendation,
.inventory-row,
.restriction {
  padding: 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.hypothesis strong,
.recommendation strong {
  display: block;
  margin-bottom: 0.35rem;
}

.hypothesis p,
.recommendation p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.tagline {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
}

.tag {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
}

.tag.good {
  color: var(--green);
  border-color: rgba(121, 213, 168, 0.22);
  background: rgba(121, 213, 168, 0.09);
}

.tag.warn {
  color: var(--gold);
  border-color: rgba(216, 180, 106, 0.22);
  background: rgba(216, 180, 106, 0.09);
}

.tag.bad {
  color: var(--red);
  border-color: rgba(255, 127, 109, 0.22);
  background: rgba(255, 127, 109, 0.09);
}

.decision-hit {
  display: grid;
  gap: 0.25rem;
}

.decision-hit small {
  color: var(--muted);
}

.score-bar {
  min-width: 5rem;
}

.score-bar span:first-child {
  display: block;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.score-bar span:first-child i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--gold));
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 5;
  max-width: 28rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(6, 9, 8, 0.94);
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.hidden {
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
}

@media (max-width: 1180px) {
  .kpi-grid,
  .track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .dashboard-grid.triad,
  .bottom {
    grid-template-columns: 1fr;
  }

  .command-strip,
  .compendium {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .kpi-grid,
  .track-grid {
    grid-template-columns: 1fr;
  }
}


/* Shadow economic observability: diagnostic hierarchy, never operational emphasis. */
.economic-observatory {
  background:
    radial-gradient(circle at 8% 0%, rgba(95, 245, 255, 0.10), transparent 26rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    var(--panel-strong);
}

.economic-head {
  align-items: center;
}

.shadow-safety {
  display: grid;
  justify-items: end;
  gap: 0.55rem;
  text-align: right;
}

.shadow-safety strong {
  color: var(--red);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
}

.diagnostic-pill {
  border-color: rgba(95, 245, 255, 0.28);
  color: var(--cyan);
  background: rgba(95, 245, 255, 0.075);
}

.shadow-empty {
  padding: 2.2rem;
  border: 1px dashed rgba(95, 245, 255, 0.22);
  border-radius: 1.2rem;
  color: var(--muted);
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
}

.capture-funnels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.capture-funnel {
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(95, 245, 255, 0.13);
  background: rgba(0, 0, 0, 0.20);
}

.funnel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.funnel-title strong {
  color: var(--cyan);
}

.funnel-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.funnel-flow > div {
  min-height: 5rem;
  display: grid;
  align-content: center;
  padding: 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.funnel-flow small {
  color: var(--muted);
  letter-spacing: 0.08em;
}

.funnel-flow b {
  margin-top: 0.25rem;
  color: var(--text);
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}

.funnel-arrow {
  color: var(--cyan);
  font-size: 1.4rem;
}

.muted-arrow {
  color: rgba(216, 180, 106, 0.54);
}

.funnel-flow .roi-node {
  opacity: 0.66;
  border-style: dashed;
}

.shadow-metric-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.economic-metric {
  min-height: 7.3rem;
  padding: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.18);
}

.economic-metric > span,
.economic-metric small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.economic-metric > span {
  min-height: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.economic-metric strong {
  display: block;
  margin: 0.35rem 0;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.economic-metric.primary {
  border-color: rgba(95, 245, 255, 0.18);
  background: linear-gradient(145deg, rgba(95, 245, 255, 0.07), rgba(0, 0, 0, 0.18));
}

.economic-metric.primary strong {
  color: var(--cyan);
}

.economic-metric.financial,
.economic-metric.dividend {
  opacity: 0.86;
}

.economic-metric.roi {
  opacity: 0.62;
  border-style: dashed;
}

.economic-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.economic-chart-card {
  padding: 0.85rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(0, 0, 0, 0.17);
}

.economic-chart-card h3 {
  margin-bottom: 0.75rem;
}

.shadow-table-wrap {
  margin-top: 0.85rem;
}

.shadow-table-wrap table {
  min-width: 1500px;
}

.cell-note {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}

.roi-cell {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
}

.roi-secondary {
  display: grid;
  grid-template-columns: minmax(15rem, 0.38fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 0.85rem;
  padding: 1rem;
  border-radius: 1.15rem;
  border: 1px dashed rgba(216, 180, 106, 0.18);
  background: rgba(0, 0, 0, 0.15);
  opacity: 0.82;
}

.roi-secondary p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 1380px) {
  .shadow-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .capture-funnels,
  .economic-chart-grid,
  .roi-secondary {
    grid-template-columns: 1fr;
  }

  .shadow-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shadow-safety {
    justify-items: start;
    text-align: left;
  }

  .economic-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .shadow-metric-grid {
    grid-template-columns: 1fr;
  }

  .funnel-flow {
    grid-template-columns: 1fr;
  }

  .funnel-arrow {
    text-align: center;
  }
}


.shadow-explainer {
  display: grid;
  grid-template-columns: minmax(10rem, 0.22fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(216, 180, 106, 0.14);
  background: rgba(216, 180, 106, 0.045);
}

.shadow-explainer strong {
  color: var(--gold);
}

.shadow-explainer p {
  margin: 0;
  color: #c6d0c8;
  line-height: 1.5;
}

.economic-metric > span .hint {
  display: inline-flex;
  min-height: 0;
  width: 0.95rem;
  height: 0.95rem;
  color: var(--ink);
  font-size: 0.62rem;
  letter-spacing: 0;
}

.race-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.15);
  color: var(--muted);
  font-size: 0.82rem;
}

.secondary-action {
  border: 1px solid rgba(95, 245, 255, 0.22);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  color: var(--cyan);
  background: rgba(95, 245, 255, 0.07);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.secondary-action:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 245, 255, 0.42);
  background: rgba(95, 245, 255, 0.12);
}

.secondary-action:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.secondary-action[hidden] {
  display: none;
}

@media (max-width: 960px) {
  .panel {
    padding: 1rem;
  }

  .panel-head {
    gap: 0.75rem;
  }

  #timelineChart,
  #predictorChart {
    height: 12.4rem;
  }

  #trackRadarChart,
  #decisionDonutChart,
  #topKChart {
    height: 13rem;
  }

  #q4TrackChart,
  #q6TrackChart,
  #top4Q4Chart,
  #top6Q6Chart {
    height: 11rem;
  }

  #roiShadowChart {
    height: 9.75rem;
  }
}

@media (max-width: 720px) {
  .panel {
    padding: 0.9rem;
    border-radius: 1.4rem;
  }

  .panel-head,
  .panel-head.compact {
    margin-bottom: 0.65rem;
  }

  .economic-chart-card,
  .capture-funnel,
  .analysis-card,
  .track-card,
  .mini-row,
  .hypothesis,
  .recommendation,
  .economic-metric {
    padding: 0.8rem;
  }

  #timelineChart,
  #predictorChart {
    height: 11.2rem;
  }

  #trackRadarChart,
  #decisionDonutChart,
  #topKChart {
    height: 11.8rem;
  }

  #q4TrackChart,
  #q6TrackChart,
  #top4Q4Chart,
  #top6Q6Chart {
    height: 10rem;
  }

  #roiShadowChart {
    height: 8.85rem;
  }

  .shadow-explainer {
    grid-template-columns: 1fr;
  }

  .race-pagination {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 2.4rem 0.9rem 1.1rem;
  }

  main {
    padding: 0 0.9rem 2.5rem;
  }

  .subtitle {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .kpi {
    min-height: 8.7rem;
  }

  #timelineChart,
  #predictorChart {
    height: 10rem;
  }

  #trackRadarChart,
  #decisionDonutChart,
  #topKChart {
    height: 10.6rem;
  }

  #q4TrackChart,
  #q6TrackChart,
  #top4Q4Chart,
  #top6Q6Chart {
    height: 9.2rem;
  }

  #roiShadowChart {
    height: 8rem;
  }
}
