:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1e2925;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body { margin: 0; }

main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 68px 32px 40px;
}

h1 {
  margin: 0 0 34px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.4px;
}

figure { margin: 0; }

.chart-frame {
  position: relative;
  display: flex;
  min-width: 0;
}

.y-axis {
  position: relative;
  z-index: 1;
  flex: 0 0 54px;
  background: #fff;
  color: #7d8781;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.y-axis span {
  position: absolute;
  right: 12px;
  transform: translateY(-50%);
}

.chart-plot {
  position: relative;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  touch-action: pan-y;
}

svg {
  display: block;
  width: 100%;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

.grid { stroke: #e9eeeb; stroke-width: 1; }
.axis { fill: #828b86; font-size: 10px; }
.value { fill: #276f55; font-size: 11px; font-weight: 500; }
.trace { fill: none; stroke: #218362; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.point { fill: #218362; }

.chart-tooltip {
  position: absolute;
  z-index: 2;
  width: max-content;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid #dce5df;
  border-radius: 5px;
  background: #fff;
  color: #285a45;
  box-shadow: 0 3px 12px #183a2010;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-line;
  pointer-events: none;
}

.chart-tooltip[hidden] { display: none; }

.empty-state {
  position: absolute;
  top: 42%;
  left: 54px;
  right: 0;
  margin: 0;
  color: #737e77;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  pointer-events: none;
}

.empty-state[hidden] { display: none; }

figcaption {
  margin-top: 20px;
  color: #828b86;
  font-size: 12px;
  line-height: 1.6;
}

.no-script { color: #737e77; font-size: 14px; }

@media (max-width: 600px) {
  main { padding: 34px 16px 28px; }
  h1 { margin-bottom: 24px; font-size: 21px; }
  .y-axis { flex-basis: 44px; }
  .y-axis span { right: 9px; }
  .empty-state { left: 44px; font-size: 13px; }
}
