#overview-period-control.overview-period-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
}

.overview-period-button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.overview-period-button:hover:not(:disabled) {
  color: #1d4ed8;
  background: #eff6ff;
}

.overview-period-button.active {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 5px 14px rgba(37, 99, 235, .2);
}

.overview-period-button:disabled {
  cursor: wait;
  opacity: .68;
}

.chart-card-header {
  align-items: center;
  gap: 14px;
}

#overview-growth-chart-wrap {
  position: relative;
  min-height: 350px;
  height: 350px;
  padding: 6px 4px 0;
  overflow-x: auto;
  overflow-y: hidden;
}

#overview-growth-chart-wrap canvas {
  display: block;
  width: 100%;
  height: 330px;
  min-width: 640px;
}

.overview-growth-legend {
  padding-top: 8px;
  border-top: 1px solid rgba(226, 232, 240, .75);
}

@media (max-width: 760px) {
  .chart-card-header {
    align-items: stretch;
  }

  #overview-period-control.overview-period-control {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview-period-button {
    padding: 0 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .overview-period-button {
    transition: none;
  }
}
