:root {
  color-scheme: light;
  --lh-bg: #f1f3f6; --lh-panel: #fff; --lh-panel-soft: #f7f8fa;
  --lh-fg: #1b2430; --lh-muted: #556174; --lh-border: #d8dee7;
  --lh-accent: #286ef1; --lh-accent-hover: #1859d6; --lh-accent-soft: #eaf2ff;
  --lh-success: #16a46a; --lh-warning: #ee9d28; --lh-danger: #d63342; --lh-edit: #7550bb; --lh-edit-hover: #62419c;
  --lh-shadow: 0 12px 32px rgba(37,65,113,.045);
  --lh-max-width: 48rem; --lh-gap: 1rem; --lh-radius: 12px;
  --lh-connected-dot-size: 12px; --lh-connected-line-width: 2px;
  --lh-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --lh-bg: #0f1113; --lh-panel: #191b1e; --lh-panel-soft: #242629;
  --lh-fg: #f4f5f6; --lh-muted: #b2b5ba; --lh-border: #36393d;
  --lh-accent: #4a9aff; --lh-accent-hover: #72b1ff; --lh-accent-soft: #252f3c;
  --lh-success: #48c995; --lh-warning: #f4b44e; --lh-danger: #ee4c55; --lh-edit: #9267d8; --lh-edit-hover: #a985eb;
  --lh-shadow: 0 12px 40px rgba(0,0,0,.14);
}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]):not([data-theme="dark"]){
  color-scheme: dark;
  --lh-bg: #0f1113; --lh-panel: #191b1e; --lh-panel-soft: #242629;
  --lh-fg: #f4f5f6; --lh-muted: #b2b5ba; --lh-border: #36393d;
  --lh-accent: #4a9aff; --lh-accent-hover: #72b1ff; --lh-accent-soft: #252f3c;
  --lh-success: #48c995; --lh-warning: #f4b44e; --lh-danger: #ee4c55; --lh-edit: #9267d8; --lh-edit-hover: #a985eb;
  --lh-shadow: 0 12px 40px rgba(0,0,0,.14);
}}

/* LifeHQ type scale: 5 text roles plus micro/metadata, shared across modules. */
:root{--lh-text-title:2rem;--lh-text-section:20px;--lh-text-panel:16px;--lh-text-label:1rem;--lh-text-body:1rem;--lh-text-caption:12px}
