/* Balance-only presentation; theme choice remains with the shared authority. */
html[data-wz-screen="lifestyle-balance"] {
  --balance-surface: linear-gradient(145deg, #142e48ee, #091b30f5);
  --balance-inset: #06172b99;
  --balance-line: #85bded35;
  --balance-text: #edf6ff;
  --balance-muted: #b3c8dd;
}
html[data-wz-screen="lifestyle-balance"][data-wz-mode="light"] {
  --balance-surface: linear-gradient(145deg, #ffffffed, #e8f2fced);
  --balance-inset: #dceafa88;
  --balance-line: #517ca340;
  --balance-text: #122e49;
  --balance-muted: #405d76;
}
html[data-wz-screen="lifestyle-balance"] .connected-card {
  background: var(--balance-surface);
  border: 1px solid var(--balance-line);
  border-radius: 22px;
  color: var(--balance-text);
  box-shadow: inset 0 1px 0 #ffffff0c, 0 10px 28px #00000012;
}
html[data-wz-screen="lifestyle-balance"] .connected-meta { color: var(--balance-muted); }
html[data-wz-screen="lifestyle-balance"] .balance-connected-hero h2 { margin: 0 0 8px; }
html[data-wz-screen="lifestyle-balance"] .score-counts {
  justify-content: space-between;
  padding: 12px 16px;
  margin-top: 12px;
  border-radius: 16px;
  background: var(--balance-inset);
  border: 1px solid var(--balance-line);
}
html[data-wz-screen="lifestyle-balance"] .balance-intervals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--balance-line);
  border-radius: 15px;
  background: var(--balance-inset);
}
html[data-wz-screen="lifestyle-balance"] .balance-intervals button {
  margin: 0;
  padding: 8px 2px;
  min-width: 0;
  font-size: 12px;
  background: transparent;
  border-color: transparent;
  color: var(--balance-muted);
  border-radius: 11px;
}
html[data-wz-screen="lifestyle-balance"] .balance-intervals button[aria-pressed="true"] {
  background: linear-gradient(135deg, #197bdd, #075cae);
  border-color: #68c6ff;
  color: #fff;
  box-shadow: 0 3px 12px #007aff30;
  font-weight: 700;
}
html[data-wz-screen="lifestyle-balance"] .balance-date-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--balance-line);
}
html[data-wz-screen="lifestyle-balance"] .balance-date-range label { margin: 0; min-width: 0; }
html[data-wz-screen="lifestyle-balance"] .balance-date-range input { min-width: 0; box-sizing: border-box; }
html[data-wz-screen="lifestyle-balance"] .balance-date-range button { grid-column: 1 / -1; margin: 0; }
html[data-wz-screen="lifestyle-balance"] .personal-balance-candles svg {
  border-radius: 14px;
  background: var(--balance-inset);
  border: 1px solid var(--balance-line);
}
html[data-wz-screen="lifestyle-balance"] button:focus-visible,
html[data-wz-screen="lifestyle-balance"] input:focus-visible,
html[data-wz-screen="lifestyle-balance"] select:focus-visible { outline: 3px solid #299eff; outline-offset: 3px; }
html[data-wz-screen="lifestyle-balance"][data-wz-mode="light"] .connected-page { background: #edf4fc !important; color: var(--balance-text); }
html[data-wz-screen="lifestyle-balance"][data-wz-mode="light"] .connected-card :is(input, select, textarea) { background: #f7fbff; color: var(--balance-text); border-color: var(--balance-line); }
html[data-wz-screen="lifestyle-balance"][data-wz-mode="light"] .score-positive { color: #0067b6; }
html[data-wz-screen="lifestyle-balance"][data-wz-mode="light"] .score-negative { color: #b62e49; }
html[data-wz-screen="lifestyle-balance"][data-wz-mode="light"] #connected-title { color: var(--balance-text); }
html[data-wz-screen="lifestyle-balance"][data-wz-mode="light"] .lifestyle-nav { background: #f5f9fff5; border-color: var(--balance-line); }
html[data-wz-screen="lifestyle-balance"][data-wz-mode="light"] .lifestyle-nav a { color: var(--balance-muted); }
html[data-wz-screen="lifestyle-balance"][data-wz-mode="light"] .lifestyle-nav a[aria-current="page"] { background: #dbeeff; color: #075cae; }
