:root {
  --ink: #eaf0e8;
  --muted: #939e95;
  --faint: #657068;
  --night: #0a0d0b;
  --panel: #111512;
  --panel-2: #151a16;
  --line: #283029;
  --acid: #b7f34a;
  --mint: #52d6a0;
  --cyan: #62c7d9;
  --amber: #ffbd59;
  --coral: #ff756f;
  --violet: #ad91ff;
  --shell: min(1180px, calc(100vw - 48px));
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--night);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 77% 6%, rgb(183 243 74 / 8%), transparent 28rem),
    var(--night);
  color: var(--ink);
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: var(--night);
  background: var(--acid);
  border-radius: 5px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  width: var(--shell);
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 27px;
  height: 26px;
  display: flex;
  gap: 3px;
  align-items: end;
}

.brand-mark i {
  display: block;
  width: 7px;
  background: var(--acid);
  border-radius: 2px 2px 0 0;
}

.brand-mark i:nth-child(1) { height: 11px; }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-mark i:nth-child(3) { height: 26px; }

.header-meta {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgb(255 189 89 / 10%);
}

.live-dot.ready {
  background: var(--mint);
  box-shadow: 0 0 0 4px rgb(82 214 160 / 11%);
}

.hero {
  padding-block: 88px 78px;
}

.eyebrow,
.section-index,
.panel-label {
  color: var(--acid);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) 270px minmax(220px, 0.75fr);
  gap: 48px;
  align-items: center;
  margin-top: 24px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 690px;
  font-size: clamp(45px, 5.4vw, 78px);
  font-weight: 570;
  letter-spacing: -0.056em;
  line-height: 0.97;
}

.hero-copy h1 em {
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-copy > p {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.as-of {
  margin-top: 30px;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.as-of strong {
  margin-left: 8px;
  color: var(--ink);
  font-weight: 650;
}

.score-orbit {
  position: relative;
  width: 242px;
  aspect-ratio: 1;
  justify-self: center;
}

.score-orbit svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.orbit-track,
.orbit-progress {
  fill: none;
  stroke-width: 9;
}

.orbit-track {
  stroke: var(--line);
}

.orbit-progress {
  stroke: var(--acid);
  stroke-linecap: round;
  stroke-dasharray: 572;
  stroke-dashoffset: 572;
  filter: drop-shadow(0 0 9px rgb(183 243 74 / 22%));
  transition: stroke-dashoffset 800ms cubic-bezier(0.22, 1, 0.36, 1), stroke 300ms ease;
}

.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-center strong {
  margin-block: 2px -4px;
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1;
}

.score-label,
.score-scale {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-change {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.regime-panel {
  padding: 22px 0 20px 24px;
  border-left: 1px solid var(--line);
}

.regime-panel > strong {
  display: block;
  margin-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: capitalize;
}

.regime-panel > p {
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.confidence-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.confidence-row strong {
  color: var(--ink);
}

.confidence-track {
  height: 3px;
  margin-top: 8px;
  overflow: hidden;
  background: var(--line);
  border-radius: 5px;
}

.confidence-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--acid);
  transition: width 600ms ease;
}

.confidence-track i[data-level="0"] { width: 0; }
.confidence-track i[data-level="10"] { width: 10%; }
.confidence-track i[data-level="20"] { width: 20%; }
.confidence-track i[data-level="30"] { width: 30%; }
.confidence-track i[data-level="40"] { width: 40%; }
.confidence-track i[data-level="50"] { width: 50%; }
.confidence-track i[data-level="60"] { width: 60%; }
.confidence-track i[data-level="70"] { width: 70%; }
.confidence-track i[data-level="80"] { width: 80%; }
.confidence-track i[data-level="90"] { width: 90%; }
.confidence-track i[data-level="100"] { width: 100%; }

.snapshot,
.development,
.readings {
  padding-block: 82px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2,
.methodology-intro h2 {
  margin: 7px 0 0;
  font-size: clamp(29px, 3vw, 43px);
  font-weight: 570;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-heading > p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.metric-card {
  position: relative;
  min-height: 188px;
  padding: 25px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.metric-card:last-child {
  border-right: 0;
}

.metric-card.result {
  background: var(--acid);
  color: #12170e;
}

.metric-sign {
  position: absolute;
  top: 18px;
  right: 21px;
  color: var(--faint);
  font-family: Georgia, serif;
  font-size: 24px;
}

.metric-card.adds .metric-sign { color: var(--mint); }
.metric-card.drains .metric-sign { color: var(--coral); }
.metric-card.result .metric-sign { color: #526529; }

.metric-name {
  display: block;
  max-width: 150px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.metric-card.result .metric-name,
.metric-card.result small {
  color: #44521f;
}

.metric-card strong {
  display: block;
  margin-top: 34px;
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 590;
  letter-spacing: -0.05em;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 12px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.component-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.component-strip > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  align-content: center;
  min-height: 70px;
  padding: 9px 18px;
  border-right: 1px solid var(--line);
}

.component-strip > div:last-child {
  border-right: 0;
}

.component-strip span {
  color: var(--muted);
  font-size: 11px;
}

.component-strip strong {
  font-size: 17px;
  font-weight: 600;
}

.component-strip small {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.component-strip strong[data-band="positive"] { color: var(--mint); }
.component-strip strong[data-band="neutral"] { color: var(--ink); }
.component-strip strong[data-band="negative"] { color: var(--coral); }

[data-signal="supportive"] { color: var(--mint) !important; }
[data-signal="restrictive"] { color: var(--coral) !important; }
[data-signal="neutral"] { color: var(--faint); }

.metric-card.result [data-signal] {
  color: #44521f !important;
}

.range-control,
.metric-control {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.range-control button,
.metric-control button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 4px;
  cursor: pointer;
}

.range-control button {
  min-width: 42px;
  padding: 6px 10px;
  font-size: 11px;
}

.metric-control button {
  padding: 7px 12px;
  font-size: 11px;
}

.range-control button:hover,
.metric-control button:hover,
.range-control button:focus-visible,
.metric-control button:focus-visible {
  color: var(--ink);
}

.range-control button[aria-pressed="true"],
.metric-control button[aria-pressed="true"] {
  color: #12170e;
  background: var(--acid);
}

.chart-card {
  padding: 18px 20px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 15px;
}

.chart-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 14px;
  color: var(--muted);
  font-size: 10px;
}

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

.chart-key i {
  width: 13px;
  height: 2px;
}

.chart-key i.key-acid { background: var(--acid); }
.chart-key i.key-mint { background: var(--mint); }
.chart-key i.key-cyan { background: var(--cyan); }
.chart-key i.key-amber { background: var(--amber); }
.chart-key i.key-coral { background: var(--coral); }
.chart-key i.key-violet { background: var(--violet); }

.chart-wrap {
  position: relative;
  min-height: 390px;
}

#history-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 330px;
  overflow: visible;
}

#history-chart .grid-line {
  stroke: #283029;
  stroke-width: 1;
  shape-rendering: crispEdges;
}

#history-chart .axis-text {
  fill: #727d74;
  font-size: 10px;
  font-family: inherit;
}

#history-chart .regime-band {
  opacity: 0.035;
}

#history-chart .series-path {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}

#history-chart .hover-line {
  stroke: #768078;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

#history-chart .hover-dot {
  stroke: var(--panel);
  stroke-width: 3;
}

.chart-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 155px;
  padding: 10px 12px;
  pointer-events: none;
  color: var(--ink);
  background: #202620f2;
  border: 1px solid #3b463c;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 30%);
  font-size: 11px;
  transform: translate(12px, -50%);
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip span {
  margin-top: 4px;
  color: var(--muted);
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

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

th,
td {
  padding: 18px 15px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
  font-size: 12px;
}

td:first-child {
  width: 22%;
}

.reading-name {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.reading-id {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.reading-value {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.reading-previous {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.reading-move {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.effect-badge {
  display: inline-flex;
  padding: 3px 8px;
  color: var(--badge-color);
  background: color-mix(in srgb, var(--badge-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--badge-color) 28%, transparent);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.effect-badge.adds { --badge-color: var(--mint); }
.effect-badge.drains { --badge-color: var(--coral); }
.effect-badge.context { --badge-color: var(--cyan); }
.effect-badge.tightens { --badge-color: var(--amber); }

.effect-copy {
  display: block;
  max-width: 220px;
  margin-top: 7px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.45;
}

.loading-cell {
  padding-block: 40px;
  text-align: center;
}

.methodology {
  padding-block: 100px;
  background: #0e120f;
  border-top: 1px solid var(--line);
}

.methodology-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  column-gap: 80px;
  align-items: end;
  margin-bottom: 50px;
}

.methodology-intro .section-index {
  grid-column: 1 / -1;
}

.methodology-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.method-card {
  position: relative;
  min-height: 390px;
  padding: 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-number {
  position: absolute;
  top: 28px;
  right: 31px;
  color: var(--acid);
  font-family: Georgia, serif;
  font-size: 19px;
}

.method-card h3,
.input-legend h3 {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

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

.formula {
  margin: 34px 0 25px;
  padding: 18px;
  color: var(--acid);
  background: rgb(183 243 74 / 6%);
  border: 1px solid rgb(183 243 74 / 18%);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  text-align: center;
}

.formula.compact {
  font-size: 13px;
}

.formula-card dl {
  margin: 27px 0 0;
}

.formula-card dl div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.formula-card dt { color: var(--ink); }
.formula-card dd { margin: 0; color: var(--muted); }

.scale-list {
  padding: 0;
  margin: 25px 0 0;
  list-style: none;
}

.scale-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.scale-list b {
  color: var(--ink);
  font-weight: 550;
}

.weight-list {
  display: grid;
  gap: 13px;
  margin-top: 36px;
}

.weight-list > div {
  display: grid;
  grid-template-columns: 78px 1fr 34px;
  gap: 13px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.weight-list i {
  display: block;
  height: 7px;
  background: linear-gradient(90deg, var(--acid) var(--weight), var(--line) var(--weight));
  border-radius: 9px;
}

.weight-list i.weight-40 { --weight: 40%; }
.weight-list i.weight-20 { --weight: 20%; }
.weight-list i.weight-15 { --weight: 15%; }
.weight-list i.weight-5 { --weight: 5%; }

.weight-list b {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.equation-note {
  margin-top: 33px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.regime-ladder {
  display: grid;
  margin: 30px 0 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.regime-ladder div {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 8px 12px;
  border-bottom: 1px solid rgb(10 13 11 / 45%);
  font-size: 11px;
}

.regime-ladder div:last-child { border-bottom: 0; }
.regime-ladder b { font-weight: 700; }
.regime-ladder span { font-weight: 550; }
.regime-ladder .strong { color: #14200e; background: var(--acid); }
.regime-ladder .constructive { color: #102019; background: var(--mint); }
.regime-ladder .neutral { color: #121918; background: #9baaa0; }
.regime-ladder .caution { color: #241a0c; background: var(--amber); }
.regime-ladder .stress { color: #270d0c; background: var(--coral); }

.input-legend {
  padding-top: 74px;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.legend-grid article {
  min-height: 210px;
  padding: 23px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legend-grid b,
.legend-grid span {
  display: block;
}

.legend-grid b {
  min-height: 44px;
  font-size: 12px;
  line-height: 1.35;
}

.legend-grid span {
  margin: 15px 0 8px;
  color: var(--acid);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legend-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.interpretation-note {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 45px;
  margin-top: 70px;
  padding: 30px;
  color: #17200f;
  background: var(--acid);
  border-radius: 7px;
}

.interpretation-note strong {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
}

.interpretation-note p {
  margin: 0;
  font-size: 13px;
}

footer {
  padding-block: 38px;
  background: #080a09;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
}

.footer-inner strong,
.footer-inner span {
  display: block;
}

.footer-inner strong {
  font-size: 13px;
}

.footer-inner span,
.footer-inner p {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 10px;
}

.error-banner {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  width: min(400px, calc(100vw - 36px));
  padding: 16px;
  background: #2b1615;
  border: 1px solid #663330;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 35%);
}

.error-banner strong,
.error-banner span {
  display: block;
}

.error-banner span {
  margin-top: 3px;
  color: #d0aca9;
  font-size: 11px;
}

.error-banner button {
  margin-top: 12px;
  padding: 5px 11px;
  background: var(--coral);
  border: 0;
  border-radius: 4px;
  color: #251110;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

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

  .regime-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .regime-panel .panel-label,
  .regime-panel > strong,
  .regime-panel > p {
    grid-column: 1;
  }

  .confidence-row,
  .confidence-track {
    grid-column: 2;
  }

  .confidence-row {
    align-self: end;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

  .legend-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 62px;
  }

  .header-meta {
    max-width: 145px;
    font-size: 9px;
    text-align: right;
  }

  .hero {
    padding-block: 54px 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-copy h1 {
    font-size: clamp(43px, 13vw, 64px);
  }

  .score-orbit {
    width: 215px;
  }

  .regime-panel {
    display: block;
  }

  .confidence-row {
    margin-top: 25px;
  }

  .snapshot,
  .development,
  .readings {
    padding-block: 58px;
  }

  .section-heading,
  .methodology-intro {
    display: block;
  }

  .section-heading > p,
  .methodology-intro > p {
    margin-top: 16px;
    text-align: left;
  }

  .chart-heading .range-control {
    margin-top: 22px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-card,
  .metric-card:nth-child(2) {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-card:last-child {
    border-bottom: 0;
  }

  .metric-card strong {
    margin-top: 25px;
  }

  .component-strip {
    grid-template-columns: 1fr 1fr;
  }

  .component-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .component-strip > div:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .component-strip > div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
    border-right: 0;
  }

  .chart-card {
    padding-inline: 8px;
  }

  .chart-toolbar {
    display: block;
    padding-inline: 8px;
  }

  .metric-control {
    width: 100%;
  }

  .metric-control button {
    flex: 1;
    padding-inline: 6px;
  }

  .chart-key {
    justify-content: start;
    margin-top: 13px;
  }

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

  #history-chart {
    min-height: 280px;
  }

  .table-wrap {
    overflow: visible;
    border-top: 0;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  table {
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  tbody {
    display: grid;
    gap: 12px;
  }

  tbody tr {
    padding: 8px 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  tbody td,
  tbody td:first-child {
    display: grid;
    grid-template-columns: minmax(96px, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
    gap: 14px;
    width: 100%;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }

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

  tbody td::before {
    content: attr(data-label);
    color: var(--faint);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .reading-name,
  .reading-id {
    grid-column: 2;
  }

  .reading-effect {
    align-items: start;
  }

  .reading-effect .effect-badge,
  .reading-effect .effect-copy {
    grid-column: 2;
  }

  .effect-copy {
    max-width: none;
  }

  .methodology {
    padding-block: 70px;
  }

  .method-grid,
  .legend-grid {
    grid-template-columns: 1fr;
  }

  .method-card {
    min-height: 0;
    padding: 28px 22px;
  }

  .legend-grid article {
    min-height: 0;
  }

  .interpretation-note {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner p {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
