:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-elevated: #11151a;
  --surface: #151a21;
  --surface-strong: #1b212a;
  --surface-soft: #101419;
  --line: #28313c;
  --line-strong: #394453;
  --text: #edf2f7;
  --text-soft: #c6cfda;
  --muted: #8a96a6;
  --accent: #e8b34b;
  --accent-soft: #382d18;
  --up: #ff655d;
  --down: #4ac08b;
  --info: #59b9d8;
  --warning: #ee9c56;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --content-width: 1120px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
select,
input {
  font: inherit;
}

button,
select {
  color: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

strong {
  font-weight: 700;
}

::selection {
  color: #111;
  background: var(--accent);
}

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

.skip-link {
  position: fixed;
  z-index: 100; 
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #111;
  background: var(--accent);
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.page-progress {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 120ms linear;
}

.masthead {
  border-bottom: 1px solid var(--line);
  background: #0d1014;
}

.masthead__inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 28px 24px 20px;
}

.brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #151007;
  background: var(--accent);
  border-radius: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.15em;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.meta-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.freshness {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--muted);
  border-radius: 50%;
}

.freshness[data-mode="live"] .status-dot {
  background: var(--down);
  box-shadow: 0 0 0 4px rgba(74, 192, 139, 0.12);
}

.freshness[data-mode="mixed"] .status-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 179, 75, 0.12);
}

.freshness[data-mode="snapshot"] .status-dot,
.freshness[data-mode="error"] .status-dot {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(238, 156, 86, 0.12);
}

.update-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.separator {
  width: 1px;
  height: 10px;
  background: var(--line-strong);
}

.refresh-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.auto-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  user-select: none;
}

.auto-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.switch {
  position: relative;
  width: 30px;
  height: 18px;
  background: #39414c;
  border-radius: 999px;
  transition: background 160ms ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  background: #d8dee7;
  border-radius: 50%;
  transition: transform 160ms ease;
}

.auto-control input:checked + .switch {
  background: var(--accent);
}

.auto-control input:checked + .switch::after {
  background: #16120a;
  transform: translateX(12px);
}

.auto-control input:focus-visible + .switch {
  outline: 2px solid var(--info);
  outline-offset: 3px;
}

.select-control {
  position: relative;
}

.select-control::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 13px;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

select {
  min-width: 104px;
  min-height: 44px;
  padding: 0 34px 0 12px;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover {
  color: var(--accent);
  background: var(--surface-strong);
  border-color: var(--line-strong);
}

.icon-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.icon-button.is-loading svg {
  animation: spin 850ms linear infinite;
}

button:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible,
.table-scroll:focus-visible {
  outline: 2px solid var(--info);
  outline-offset: 2px;
}

.section-nav {
  position: sticky;
  z-index: 40;
  top: 0;
  background: rgba(11, 13, 16, 0.96);
  border-bottom: 1px solid var(--line);
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .section-nav {
    background: rgba(11, 13, 16, 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.section-nav__inner {
  display: flex;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.section-nav__inner::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  flex: 0 0 auto;
  padding: 13px 12px 12px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.page-wrap {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.market-section,
.hero-grid,
.source-section {
  scroll-margin-top: 64px;
}

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

.summary-card {
  position: relative;
  padding: 17px 20px 17px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.summary-label {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.summary-text {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

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

.kpi-box {
  min-width: 0;
  padding: 15px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.kpi-label,
.kpi-note {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.kpi-value {
  display: block;
  margin: 3px 0 1px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 23px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.market-section {
  margin-top: 40px;
}

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

.section-heading h2 {
  margin: 0;
  padding-left: 11px;
  border-left: 4px solid var(--accent);
  font-size: 21px;
  line-height: 1.28;
}

.section-kicker {
  margin: 0 0 3px 15px;
  color: var(--muted);
  font-size: 9px;
}

.section-tag,
.unit-label {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 8px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.unit-label {
  min-height: 20px;
  padding: 1px 6px;
  color: var(--muted);
  background: var(--surface-strong);
  font-weight: 500;
}

.table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.table-scroll::-webkit-scrollbar {
  height: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 2px solid var(--surface);
  border-radius: 999px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.quote-table {
  min-width: 360px;
}

.quote-table--wide {
  min-width: 520px;
}

thead th {
  padding: 9px 11px;
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

tbody td {
  padding: 9px 11px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.cell-name {
  min-width: 120px;
  color: var(--text) !important;
  font-weight: 500;
}

.cell-code {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.number {
  text-align: right;
  white-space: nowrap;
}

.up {
  color: var(--up) !important;
  font-weight: 650;
}

.down {
  color: var(--down) !important;
  font-weight: 650;
}

.flat {
  color: var(--muted) !important;
}

.stale-mark {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  background: var(--warning);
  border-radius: 50%;
  vertical-align: middle;
}

.empty-cell {
  padding: 26px 14px !important;
  color: var(--muted) !important;
  text-align: center;
}

.data-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.data-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

.data-block--wide {
  margin-top: 18px;
}

.turnover-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 16px;
  padding: 12px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.turnover-label,
.turnover-hint {
  color: var(--muted);
  font-size: 12px;
}

.turnover-bar strong {
  color: var(--text);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.turnover-hint {
  margin-left: auto;
}

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

.metric-box {
  min-width: 0;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-box span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.metric-box strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 22px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.metric-box small {
  display: block;
  min-height: 18px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.insight-block {
  margin-top: 12px;
  padding: 13px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--info);
  border-radius: var(--radius);
}

.insight-label {
  display: block;
  margin-bottom: 4px;
  color: var(--info);
  font-size: 11px;
  font-weight: 700;
}

.insight-block p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.note-list {
  margin: 11px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  list-style: none;
}

.note-list li {
  position: relative;
  padding-left: 13px;
}

.note-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 2px;
  width: 4px;
  height: 4px;
  background: var(--line-strong);
  border-radius: 50%;
}

.sentiment-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.sentiment-item {
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sentiment-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.sentiment-item strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

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

.ladder-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
}

.ladder-level {
  padding: 2px 8px;
  color: #fff;
  background: var(--up);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ladder-count {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.ladder-names {
  min-width: 0;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.data-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 9px;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
}

.data-chip time,
.data-chip em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.source-section {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

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

.source-card {
  min-width: 0;
  padding: 12px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.source-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.source-card strong {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-badge {
  flex: 0 0 auto;
  padding: 1px 6px;
  color: var(--muted);
  background: var(--surface-strong);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
}

.source-badge[data-status="live"] {
  color: var(--down);
  background: rgba(74, 192, 139, 0.1);
}

.source-badge[data-status="partial"] {
  color: var(--accent);
  background: rgba(232, 179, 75, 0.1);
}

.source-badge[data-status="error"] {
  color: var(--warning);
  background: rgba(238, 156, 86, 0.1);
}

.source-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.source-details {
  margin-top: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.source-details summary {
  padding: 11px 13px;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 12px;
}

.source-details__body {
  padding: 0 13px 12px;
  color: var(--muted);
  font-size: 11px;
}

.source-details__body p {
  margin: 0 0 7px;
}

.disclaimer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding: 14px 16px;
  background: #1b1710;
  border: 1px solid #4a3921;
  border-radius: var(--radius);
}

.disclaimer strong {
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
}

.disclaimer p {
  margin: 0;
  color: #c9b894;
  font-size: 11px;
  line-height: 1.65;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.page-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  z-index: 80;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 14px;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 14px;
  color: #16120a;
  background: var(--accent);
  border-radius: 8px;
  text-align: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .data-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-grid--3 .data-block:last-child {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 760px) {
  .masthead__inner,
  .section-nav__inner,
  .page-wrap {
    padding-right: 16px;
    padding-left: 16px;
  }

  .masthead__inner {
    padding-top: 20px;
    padding-bottom: 16px;
  }

  .brand-row {
    display: block;
  }

  h1 {
    font-size: 25px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .refresh-tools {
    width: 100%;
    margin-top: 17px;
  }

  .auto-control {
    flex: 1 1 auto;
    justify-content: center;
  }

  .meta-row {
    display: block;
    margin-top: 14px;
  }

  .freshness {
    margin-top: 9px;
  }

  .kpi-grid,
  .data-grid--2,
  .data-grid--3,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .data-grid--3 .data-block:last-child {
    grid-column: auto;
  }

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

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .section-tag {
    max-width: 46%;
    white-space: normal;
  }

  .turnover-hint {
    width: 100%;
    margin-left: 0;
  }

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

  .page-footer {
    display: block;
  }

  .page-footer p + p {
    margin-top: 5px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  .page-wrap {
    padding-top: 18px;
  }

  .brand-lockup {
    align-items: flex-start;
    gap: 10px;
  }

  .eyebrow {
    font-size: 9px;
  }

  h1 {
    font-size: 23px;
  }

  .refresh-tools {
    gap: 6px;
  }

  .auto-control {
    padding: 0 9px;
    font-size: 12px;
  }

  select {
    min-width: 92px;
  }

  .summary-card {
    padding: 14px 15px 14px 17px;
  }

  .summary-text {
    font-size: 14px;
    line-height: 1.7;
  }

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

  .kpi-box {
    padding: 11px;
  }

  .kpi-label,
  .kpi-note {
    font-size: 10px;
  }

  .kpi-value {
    font-size: 17px;
  }

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

  .metric-box strong {
    font-size: 20px;
  }

  .sentiment-item {
    padding: 10px;
  }

  .sentiment-item span {
    font-size: 10px;
  }

  .sentiment-item strong {
    font-size: 19px;
  }

  .ladder-row {
    grid-template-columns: auto auto;
  }

  .ladder-names {
    grid-column: 1 / -1;
  }

  .disclaimer {
    display: block;
  }

  .disclaimer p {
    margin-top: 5px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
    text-align: center;
  }

  .section-nav a {
    padding-right: 10px;
    padding-left: 10px;
  }

  .table-card {
    border-radius: 6px;
  }

  .quote-table {
    min-width: 320px;
  }

  .quote-table--wide {
    min-width: 500px;
  }

  thead th:first-child,
  tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface);
    box-shadow: 1px 0 0 var(--line);
  }

  thead th:first-child {
    background: var(--surface-strong);
  }
}

@media (max-width: 430px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-box:last-child {
    grid-column: 1 / -1;
  }
}

@supports not (display: grid) {
  .brand-row,
  .meta-row,
  .refresh-tools,
  .kpi-grid,
  .data-grid,
  .metric-grid,
  .sentiment-strip,
  .source-grid,
  .disclaimer {
    display: flex;
    flex-wrap: wrap;
  }

  .kpi-box,
  .data-block,
  .metric-box,
  .sentiment-item,
  .source-card {
    width: calc(50% - 10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    color: #111;
    background: #fff;
  }

  .masthead,
  .section-nav,
  .refresh-tools,
  .toast,
  .page-progress {
    display: none;
  }

  .page-wrap {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .summary-card,
  .kpi-box,
  .table-card,
  .data-chip,
  .metric-box,
  .sentiment-item,
  .source-card,
  .insight-block {
    break-inside: avoid;
    color: #111;
    background: #fff;
    border-color: #bbb;
  }

  .section-heading h2,
  .data-block h3,
  .cell-name,
  .kpi-value,
  .metric-box strong,
  .sentiment-item strong {
    color: #111 !important;
  }

  table {
    font-size: 10px;
  }

  thead th,
  tbody td {
    color: #222;
    background: #fff !important;
  }
}
