:root {
  color-scheme: light;
  --background: #f4f6f8;
  --surface: #ffffff;
  --surface-subtle: #f7f8fa;
  --ink: #111827;
  --ink-soft: #4b5563;
  --ink-muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --navy: #0f2d4a;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --positive: #087f5b;
  --positive-soft: #e8f7f1;
  --negative: #c2413b;
  --negative-soft: #fff0ef;
  --warning: #a16207;
  --warning-soft: #fff8df;
  --neutral: #64748b;
  --neutral-soft: #eef2f6;
  --radius: 16px;
  --shadow: 0 8px 28px rgb(15 45 74 / 6%);
  --shadow-hover: 0 14px 38px rgb(15 45 74 / 10%);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% -10%, rgb(37 99 235 / 7%), transparent 32rem),
    var(--background);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

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

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgb(209 213 219 / 70%);
  background: rgb(244 246 248 / 88%);
  backdrop-filter: blur(18px);
}

.topbar__inner,
.shell,
.footer {
  width: min(1440px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 11px;
}

.topbar__actions,
.live-status,
.button,
.session-pills,
.session-pill,
.decision__header,
.legend,
.legend span,
.metric-card__header,
.section-heading,
.breadth-legend,
.quality-badge {
  display: flex;
  align-items: center;
}

.topbar__actions {
  gap: 8px;
}

.live-status {
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.live-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 4px var(--warning-soft);
}

.live-status[data-state="ready"] .live-status__dot {
  background: var(--positive);
  box-shadow: 0 0 0 4px var(--positive-soft);
}

.live-status[data-state="error"] .live-status__dot {
  background: var(--negative);
  box-shadow: 0 0 0 4px var(--negative-soft);
}

.button {
  min-height: 38px;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding-inline: 13px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.button:hover {
  border-color: #aab2bd;
  box-shadow: 0 4px 14px rgb(15 45 74 / 8%);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.install-button {
  color: var(--blue);
}

.install-button[hidden] {
  display: none;
}

.button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

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

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

.shell {
  padding-block: 26px 54px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 750px;
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 13px;
}

.session-pills {
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.session-pill {
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 65%);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.session-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neutral);
  content: "";
}

.session-pill[data-open="true"]::before {
  background: var(--positive);
}

.card {
  min-width: 0;
  border: 1px solid rgb(229 231 235 / 90%);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.decision {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  overflow: hidden;
  margin-bottom: 12px;
}

.decision__main {
  padding: 24px;
  background:
    linear-gradient(135deg, rgb(37 99 235 / 5%), transparent 55%),
    var(--surface);
}

.decision__header {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.signal-badge,
.quality-badge {
  width: fit-content;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.signal-badge {
  padding: 7px 10px;
  background: var(--neutral-soft);
  color: var(--neutral);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signal-badge[data-tone="positive"] {
  background: var(--positive-soft);
  color: var(--positive);
}

.signal-badge[data-tone="negative"] {
  background: var(--negative-soft);
  color: var(--negative);
}

.signal-badge[data-tone="warning"] {
  background: var(--warning-soft);
  color: var(--warning);
}

.timestamp {
  color: var(--ink-muted);
  font-size: 11px;
}

.decision h2 {
  max-width: 650px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.12;
}

.decision__summary {
  max-width: 690px;
  margin: 12px 0 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.confidence {
  max-width: 560px;
}

.confidence__labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--ink-muted);
  font-size: 11px;
}

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

.confidence__track {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: var(--neutral-soft);
}

.confidence__track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition:
    width 450ms ease,
    background 250ms ease;
}

.decision__explanation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: var(--surface-subtle);
}

.explanation-column h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot--positive {
  background: var(--positive);
}
.dot--warning {
  background: var(--warning);
}

.signal-list,
.warning-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list {
  display: grid;
  gap: 11px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.signal-list li {
  position: relative;
  padding-left: 14px;
}

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

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.metric-card {
  min-height: 156px;
  padding: 16px;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.metric-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.metric-card__header {
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.help {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.help:hover,
.help:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.metric-card__value {
  margin-top: 16px;
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1;
}

.metric-card__value--compact {
  font-size: clamp(23px, 2.4vw, 30px);
}

.metric-card__delta {
  min-height: 19px;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 800;
}

.metric-card p {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.4;
}

.positive {
  color: var(--positive) !important;
}
.negative {
  color: var(--negative) !important;
}
.warning {
  color: var(--warning) !important;
}
.muted {
  color: var(--ink-muted) !important;
}

.analysis-grid,
.breadth-layout,
.footer-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 12px;
}

.analysis-grid {
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.8fr);
}

.chart-card,
.levels-card,
.breadth-card,
.movers-card,
.market-card,
.quality-card,
.guide-card {
  padding: 18px;
}

.section-heading {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.section-heading > * {
  min-width: 0;
}

.section-heading .eyebrow {
  margin-bottom: 5px;
}

.legend {
  justify-content: flex-end;
  gap: 15px;
  flex-wrap: wrap;
  color: var(--ink-muted);
  font-size: 10px;
}

.legend span {
  gap: 6px;
}

.legend__line {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.legend__line--range {
  height: 7px;
  background: rgb(37 99 235 / 12%);
}

.legend__line--close {
  height: 0;
  border-top: 1px dashed #94a3b8;
  background: transparent;
}

.chart {
  min-height: 300px;
}

.chart svg {
  display: block;
  width: 100%;
  min-height: 280px;
  overflow: visible;
}

.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.chart-axis {
  fill: var(--ink-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.chart-reference__label {
  fill: #475569;
  font-size: 10px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.chart__empty {
  display: grid;
  min-height: 310px;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-subtle);
  color: var(--ink-muted);
  font-size: 12px;
}

.level-list {
  display: grid;
  gap: 6px;
}

.level {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.level:last-child {
  border-bottom: 0;
}

.level__marker {
  width: 8px;
  height: 8px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.level__label strong,
.level__label small {
  display: block;
}

.level__label strong {
  font-size: 12px;
}

.level__label small {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 10px;
}

.level__value {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.beginner-note {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid #dce7ff;
  border-radius: 14px;
  background: var(--blue-soft);
  color: #1e3a5f;
}

.beginner-note strong {
  font-size: 11px;
}

.beginner-note p {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.55;
}

.breadth-layout {
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
}

.ratio {
  color: var(--ink-soft);
  font-size: 12px;
}

.breadth-bar {
  display: flex;
  overflow: hidden;
  height: 18px;
  border-radius: 999px;
  background: var(--neutral-soft);
}

.breadth-bar span {
  display: block;
  min-width: 0;
  transition: width 400ms ease;
}

.breadth-bar__up {
  background: var(--positive);
}
.breadth-bar__flat {
  background: #94a3b8;
}
.breadth-bar__down {
  background: var(--negative);
}

.breadth-legend {
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  color: var(--ink-muted);
  font-size: 11px;
}

.breadth-legend strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 15px;
}

.movers-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.movers-columns h3 {
  margin-bottom: 13px;
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.movers-list {
  display: grid;
  gap: 11px;
}

.mover__topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 11px;
}

.mover__topline strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mover__track {
  overflow: hidden;
  height: 4px;
  border-radius: 999px;
  background: var(--neutral-soft);
}

.mover__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--positive);
}

.mover[data-tone="negative"] .mover__track span {
  background: var(--negative);
}

.market-card {
  margin-bottom: 12px;
}

.section-heading--market {
  align-items: flex-end;
}

.section-description {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

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

.market-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.market-group h3 {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.market-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.market-row:last-child {
  border-bottom: 0;
}

.market-row__name strong,
.market-row__name small {
  display: block;
}

.market-row__name {
  min-width: 0;
  overflow: hidden;
}

.market-row__name small {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 9px;
}

.market-row__value,
.market-row__change {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.market-row__change {
  min-width: 50px;
}

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

.quality-badge {
  min-height: 25px;
  padding-inline: 9px;
  background: var(--neutral-soft);
  color: var(--neutral);
}

.quality-badge[data-tone="positive"] {
  background: var(--positive-soft);
  color: var(--positive);
}

.quality-badge[data-tone="warning"] {
  background: var(--warning-soft);
  color: var(--warning);
}

.quality-badge[data-tone="negative"] {
  background: var(--negative-soft);
  color: var(--negative);
}

.quality-card > p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

details {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

summary {
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.warning-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.5;
}

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

.warning-list li::before {
  position: absolute;
  left: 0;
  content: "–";
}

.guide-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 11px;
}

.guide-steps li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
}

.guide-steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

.guide-steps strong {
  color: var(--ink);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px 34px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 10px;
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 750;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.help-dialog {
  width: min(480px, calc(100% - 32px));
  padding: 26px;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgb(15 23 42 / 25%);
}

.help-dialog::backdrop {
  background: rgb(15 23 42 / 42%);
  backdrop-filter: blur(3px);
}

.help-dialog h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.help-dialog p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.help-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-subtle);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 20px;
}

.install-dialog h2 {
  max-width: 360px;
  margin-bottom: 12px;
}

.install-dialog__intro,
.install-dialog__note {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.install-dialog__intro {
  margin-bottom: 18px;
}

.install-dialog__note {
  margin: 18px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
}

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

.install-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
}

.install-steps li > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
}

.install-steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.share-symbol {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-inline: 2px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

:focus-visible {
  outline: 3px solid rgb(37 99 235 / 35%);
  outline-offset: 2px;
}

@media (max-width: 1120px) {
  .decision {
    grid-template-columns: 1fr;
  }

  .decision__explanation {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .analysis-grid,
  .breadth-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .market-groups,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .section-description {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .topbar__inner,
  .shell,
  .footer {
    width: min(100% - 24px, 1440px);
  }

  .topbar__inner {
    min-height: 56px;
  }

  .brand small,
  .live-status {
    display: none;
  }

  .button {
    width: 34px;
    min-height: 34px;
    padding: 0;
  }

  .button svg {
    width: 17px;
  }

  .button {
    font-size: 0;
  }

  .shell {
    padding-block: 14px 30px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }

  h1 {
    font-size: 23px;
    line-height: 1.08;
  }

  .session-pills {
    justify-content: flex-start;
    gap: 5px;
  }

  .session-pill {
    gap: 5px;
    padding: 5px 7px;
    font-size: 9px;
  }

  .decision__main,
  .decision__explanation,
  .chart-card,
  .levels-card,
  .breadth-card,
  .movers-card,
  .market-card,
  .quality-card,
  .guide-card {
    padding: 14px;
  }

  .decision__explanation {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .decision__header {
    gap: 8px;
    margin-bottom: 10px;
  }

  .signal-badge {
    padding: 6px 8px;
    font-size: 9px;
  }

  .timestamp {
    font-size: 9px;
  }

  .decision h2 {
    font-size: 20px;
    line-height: 1.12;
  }

  .decision__summary {
    margin: 8px 0 12px;
    font-size: 11px;
    line-height: 1.42;
  }

  .confidence__labels {
    margin-bottom: 5px;
    font-size: 9px;
  }

  .confidence__track {
    height: 5px;
  }

  .explanation-column h3 {
    gap: 5px;
    margin-bottom: 7px;
    font-size: 10px;
  }

  .signal-list {
    gap: 6px;
    font-size: 10px;
    line-height: 1.32;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }

  .metric-card {
    min-height: 108px;
    padding: 10px 8px;
    border-radius: 12px;
  }

  .metric-card__header {
    gap: 3px;
    font-size: 0;
  }

  .metric-card__header > span::after {
    content: attr(data-short);
    font-size: 10px;
  }

  .help {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    font-size: 9px;
  }

  .metric-card__value {
    overflow: hidden;
    margin-top: 13px;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .metric-card__value--compact {
    font-size: 12px;
    letter-spacing: -0.05em;
  }

  .metric-card__delta {
    min-height: 16px;
    margin-top: 5px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .metric-card p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 5px;
    font-size: 8px;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 11px;
  }

  .chart-card .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

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

  .legend {
    justify-content: flex-start;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    font-size: 8px;
  }

  .legend span {
    min-width: 0;
    gap: 4px;
  }

  .legend span:last-child {
    grid-column: 1 / -1;
  }

  .legend__line {
    width: 11px;
  }

  .chart,
  .chart svg,
  .chart__empty {
    min-height: 224px;
  }

  .chart-reference__label {
    font-size: 9px;
  }

  .market-row {
    grid-template-columns: minmax(80px, 1fr) auto auto;
    gap: 8px;
  }

  .market-groups {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .market-group h3 {
    padding: 9px 10px;
    font-size: 9px;
  }

  .market-row {
    min-height: 39px;
    padding: 6px 8px;
    font-size: 9px;
  }

  .market-row__name small {
    font-size: 8px;
  }

  .market-row__change {
    min-width: 38px;
  }

  .movers-columns {
    gap: 12px;
  }

  .movers-columns h3 {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .movers-list {
    gap: 8px;
  }

  .mover__topline {
    gap: 6px;
    margin-bottom: 4px;
    font-size: 9px;
  }

  .ratio {
    font-size: 10px;
  }

  .breadth-legend {
    gap: 6px;
    margin-top: 10px;
    font-size: 9px;
  }

  .breadth-legend strong {
    font-size: 13px;
  }

  .install-dialog {
    padding: 22px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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