/* HouseFlow: integration safeguards for restored assets and current features. */
body .hf-login-v3-brand-logo img { max-width: 100% !important; object-fit: contain !important; }
body .hf-login-v3-hero img { max-width: 100% !important; object-fit: contain !important; }
.hf-recovery-desktop-nav { display: none; }
@media (min-width: 901px) {
 .hf-recovery-desktop-nav { display:flex; justify-content:center; gap:8px; flex-wrap:wrap; padding:8px 16px 11px; }
 .hf-recovery-desktop-nav a { padding:8px 14px; border-radius:10px; color:var(--muted); font-size:.85rem; font-weight:700; }
 .hf-recovery-desktop-nav a[aria-current="page"] { background:#e8f1ff; color:#155bd7; }
}
body:is(.theme-dark,[data-theme="dark"]):has(.hf2-summary,.hf2-expenses) { background:#0b1220 !important; }
body:is(.theme-dark,[data-theme="dark"]) :is(.hf2-summary,.hf2-expenses) { --ink:#edf4ff; --sub:#b7c8df; --line:#3b506b; --light:#1a2a40; }
body:is(.theme-dark,[data-theme="dark"]) :is(.hf2-inline-filter label,.hf2-fixed-grid label,.hf-receive-form label,.hf-receive-heading h2,.hf3-settlement-copy p) { color:#c3d3e8 !important; }
body:is(.theme-dark,[data-theme="dark"]) :is(.hf2-fixed-formhead strong,.hf2-exp-card h3,.hf2-exp-card-total strong,.hf2-exp-dates strong) { color:#edf4ff !important; }
body:is(.theme-dark,[data-theme="dark"]) :is(.hf2-empty,.hf-receive-empty,.hf-receive-note,.hf2-exp-tabs) { background:#15253b !important; color:#c3d3e8 !important; border-color:#3b506b !important; }
body:is(.theme-dark,[data-theme="dark"]) :is(.hf2-exp-tabs button,.hf2-help,.hf2-fixed-formfoot small,.hf2-import-fixed small) { color:#b7c8df; }
body:is(.theme-dark,[data-theme="dark"]) :is(.hf2-exp-tabs button.is-active,.hf-receive-clear,.hf-receive-destination button) { background:#284465 !important; color:#e0edff !important; border-color:#4a6587 !important; }
body:is(.theme-dark,[data-theme="dark"]) :is(.hf3-settlement-copy a,.hf2-summary-bottom a,.hf2-eyebrow,.hf-receive-kicker,.hf-recovery-desktop-nav a) { color:#82b8ff !important; }
body:is(.theme-dark,[data-theme="dark"]) .hf-recovery-desktop-nav a[aria-current="page"] { background:#233c5b; color:#e0edff !important; }
body:is(.theme-dark,[data-theme="dark"]) .hf2-exp-card.is-fixed { background:linear-gradient(160deg,#203c5c,#1b2b41 50%); }
body:is(.theme-dark,[data-theme="dark"]) .hf2-good { color:#48d8b5 !important; }
body:is(.theme-dark,[data-theme="dark"]) .hf2-warn { color:#ffd084 !important; }

/* Legacy global !important heading rules use these tokens. Resolve them with the active theme. */
body:is(.theme-dark,[data-theme="dark"]) {
 --text-main:#edf4ff; --color-text-primary:#edf4ff; --color-text-secondary:#b7c8df;
}
body:is(.theme-dark,[data-theme="dark"]) :is(.hf2-pagehead h1,.hf2-summary-title h2,.hf2-exp-toolbar-title h2) { color:#edf4ff !important; }
