body {
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
}

.back-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.back-link:hover { color: #fff; text-decoration: underline; }

.stat-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.stat-card {
  flex: 1;
  min-width: 130px;
  background: #f4f8fc;
  border: 1px solid #dce8f0;
  border-radius: 8px;
  padding: 14px 18px;
  text-align: center;
}

.peak-card {
  background: #fff8f0;
  border-color: #f0d8b8;
}

.stat-card-value {
  font-size: 26px;
  font-weight: 700;
  color: #1a3a5c;
  line-height: 1.1;
}

.peak-card .stat-card-value { color: #c0582a; }

.stat-card-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 5px;
}

.page-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
  gap: 8px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
  color: #444;
  user-select: none;
}

.legend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.chart-outer {
  padding: 20px;
  background: #fff;
}

.chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 12px 4px 4px;
  background: #fcfcfc;
}

.chart-msg {
  padding: 40px;
  text-align: center;
  color: #888;
  font-size: 14px;
}

.chart-scroll canvas {
  display: block;
}
