body {
  margin: 0;
  padding: 32px 16px;
  background: #f3f6f8;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #203040;
}
main { max-width: 900px; margin: auto; }
#charts { display: grid; gap: 24px; }
.card {
  min-width: 0;
  padding: 24px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 3px 18px #15253612;
}
.chart-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.chart-title { margin: 0; font-size: 20px; }
.chart-updated { margin: 6px 0 0; font-size: 13px; color: #586778; }
.range-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.range-selector button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  background: white;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.range-selector button:hover { background: #edf3f8; }
.range-selector button[aria-pressed="true"] {
  border-color: #2463a6;
  background: #2463a6;
  color: white;
}
.range-selector button:focus-visible {
  outline: 2px solid #2463a6;
  outline-offset: 3px;
}
.range-selector button:disabled { opacity: 0.5; cursor: wait; }
.chart { width: 100%; height: 420px; }
.chart[hidden] { display: none; }
.error { color: #b42318; }
