.combined-metrics-card {
  display: grid;
  gap: 14px;
  background: var(--theme-metric-bg);
  border: 1px solid var(--theme-chart-border);
  border-radius: 18px;
  box-shadow: var(--theme-card-shadow);
}

.combined-metrics-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.combined-metrics-title h2 { margin-bottom: 6px; }
.combined-metrics-title p {
  max-width: 820px;
  color: #243841;
  font-size: 14px;
  line-height: 1.45;
}

.combined-range-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(122,145,156,.36);
}

.combined-range-tabs button {
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #21333c;
  font: inherit;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
}

.combined-range-tabs button.is-active {
  background: #fff;
  color: #16262e;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 6px 14px rgba(20,36,45,.10);
}

.combined-chart-shell {
  position: relative;
  border-radius: 12px;
  background: #fbfaf7;
  border: 1px solid rgba(144,164,174,.34);
  overflow: hidden;
}

.combined-chart-canvas {
  display: block;
  width: 100%;
  height: 640px;
}

.combined-loading,
.combined-notice {
  color: #31464f;
  font-size: 13px;
  font-weight: 900;
}

.combined-notice.is-hidden,
.combined-loading.is-hidden { display: none; }

.combined-series-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 6px 2px 2px;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.combined-series-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #1f3139;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.combined-series-toggle input {
  width: 14px;
  height: 14px;
  accent-color: #006fb8;
}

.combined-series-toggle i {
  display: inline-block;
  width: 16px;
  height: 4px;
  border-radius: 999px;
  background: var(--series-color, #006fb8);
}

.combined-series-toggle small {
  color: #465b64;
  font-size: 11px;
  font-weight: 900;
}

.combined-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.combined-stat-card {
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  background: #fffef9;
  border: 1px solid rgba(122,145,156,.34);
  box-shadow: 0 8px 22px rgba(19,36,45,.06);
}

.combined-stat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--series-color, #1f3139);
  font-size: 13.5px;
  font-weight: 900;
}

.combined-stat-head i {
  width: 20px;
  height: 4px;
  border-radius: 999px;
  background: var(--series-color, #006fb8);
}

.combined-stat-lines {
  display: grid;
  gap: 8px;
  color: #31464f;
  font-size: 12.5px;
  line-height: 1.3;
}

.combined-stat-lines div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(122,145,156,.22);
  padding-top: 8px;
}

.combined-stat-label {
  color: #243841;
  font-weight: 950;
}

.combined-stat-value {
  color: #10222b;
  font-weight: 900;
  text-align: right;
}

.combined-stat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 30px;
  padding: 4px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--series-color, #006fb8) 14%, #ffffff 86%);
  border: 1px solid color-mix(in srgb, var(--series-color, #006fb8) 36%, rgba(18,34,43,.20) 64%);
  color: #10222b;
  font-weight: 950;
  letter-spacing: .01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.combined-field-note {
  margin: 0;
  color: #465b64;
  font-size: 12px;
  line-height: 1.4;
}

:root.wsg-night .combined-stat-card,
:root.dark-mode .combined-stat-card,
body.wsg-night .combined-stat-card,
body.dark-mode .combined-stat-card {
  background: rgba(6, 24, 45, .82);
  border: 1px solid rgba(95, 129, 166, .28);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

:root.wsg-night .combined-stat-lines,
:root.dark-mode .combined-stat-lines,
body.wsg-night .combined-stat-lines,
body.dark-mode .combined-stat-lines {
  color: #c5d7ea;
}

:root.wsg-night .combined-stat-lines div,
:root.dark-mode .combined-stat-lines div,
body.wsg-night .combined-stat-lines div,
body.dark-mode .combined-stat-lines div {
  border-top: 1px solid rgba(122, 156, 191, .16);
}

:root.wsg-night .combined-stat-label,
:root.dark-mode .combined-stat-label,
body.wsg-night .combined-stat-label,
body.dark-mode .combined-stat-label {
  color: #e2edf8;
}

:root.wsg-night .combined-stat-value,
:root.dark-mode .combined-stat-value,
body.wsg-night .combined-stat-value,
body.dark-mode .combined-stat-value {
  color: #f3f8fd;
}

:root.wsg-night .combined-stat-pill,
:root.dark-mode .combined-stat-pill,
body.wsg-night .combined-stat-pill,
body.dark-mode .combined-stat-pill {
  background: color-mix(in srgb, var(--series-color, #6aa8ff) 10%, #0d2238 90%);
  border: 1px solid color-mix(in srgb, var(--series-color, #6aa8ff) 30%, rgba(173, 198, 226, .30) 70%);
  color: #f3f8fd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
