#location_text {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.18rem;
}

#location_desc_text,
#power_desc_text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.stats-section-card .card-body {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.stats-kpi-tile {
  border: 1px solid var(--line-soft);
  border-radius: 0.9rem;
  padding: 0.62rem 0.68rem;
  background: var(--surface-strong);
  min-height: 100%;
}

.stats-kpi-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.2;
}

.stats-kpi-value {
  margin-top: 0.2rem;
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.stats-inline-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stats-pill {
  display: inline-block;
  margin-top: 0.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.15rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.stats-pill-fresh {
  color: #0f5132;
  background: #d8f2e4;
  border-color: #bbe6d0;
}

.stats-pill-stale {
  color: #8b5e10;
  background: #fdebcf;
  border-color: #f9dca8;
}

.stats-pill-critical {
  color: #7a271a;
  background: #f8d7d2;
  border-color: #efb7ae;
}

.stats-pill-no-data {
  color: var(--text-muted);
  background: var(--badge-light-bg);
  border-color: var(--badge-light-border);
}

:root[data-theme="dark"] .stats-pill-fresh {
  color: #d2ffe8;
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.45);
}

:root[data-theme="dark"] .stats-pill-stale {
  color: #fff1cd;
  background: rgba(245, 158, 11, 0.26);
  border-color: rgba(245, 158, 11, 0.5);
}

:root[data-theme="dark"] .stats-pill-critical {
  color: #ffd8d5;
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.46);
}

:root[data-theme="dark"] .stats-pill-no-data {
  color: #d9e2f2;
  background: #273245;
  border-color: #37465f;
}

.stats-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.1rem;
}

#plot_hourly_consistency_t,
#plot_hourly_consistency_h,
#plot_hourly_consistency_p,
#plot_corr_drift,
#plot_cycle_regularity,
#plot_seasonality_t,
#plot_seasonality_h,
#plot_seasonality_p {
  min-height: 300px;
}

@media (max-width: 576px) {
  #plot_hourly_consistency_t,
  #plot_hourly_consistency_h,
  #plot_hourly_consistency_p,
  #plot_corr_drift,
  #plot_cycle_regularity,
  #plot_seasonality_t,
  #plot_seasonality_h,
  #plot_seasonality_p {
    min-height: 260px;
  }
}
