:root{color-scheme:light}
.lap-theme-control{display:flex;align-items:center;justify-content:flex-end;gap:8px;max-width:100%;width:fit-content;margin:0 0 18px auto;padding:6px 9px;border:1px solid #cad9ce;border-radius:9px;background:#fff;color:#17383d;font:600 12px/1.4 system-ui,sans-serif;letter-spacing:normal;text-transform:none}
.lap-theme-control select{display:block;width:auto;min-width:128px;min-height:40px;margin:0;padding:8px;border:1px solid #cad9ce;border-radius:6px;background:#fff;color:#17383d;font:500 13px/1.4 system-ui,sans-serif}
.advisor-header .lap-theme-control{margin:0 0 0 auto;flex-shrink:0}
.sidebar .lap-theme-control{display:block;width:100%;margin:18px 0 0}
.sidebar .lap-theme-control select{width:100%;margin-top:6px}
.lap-theme-control select:focus-visible{outline:3px solid #176c65;outline-offset:3px}
html[data-lap-theme=dark]{color-scheme:dark;--lap-bg:#0e171c;--lap-surface:#17262d;--lap-raised:#20343b;--lap-control:#10212a;--lap-line:#48606b;--ink:#fff;--muted:#fff;--teal:#fff;--line:#48606b;--bg:#0e171c;--mint:#173d35;--amber:#352b19}
html[data-lap-theme=dark] body{background:var(--lap-bg)!important}
/* Deliberately white text throughout dark mode, including legacy component
   colors and new dynamically rendered reports. Preserve image/logo colors. */
html[data-lap-theme=dark] body,html[data-lap-theme=dark] body *{color:#fff!important;border-color:var(--lap-line)!important}
html[data-lap-theme=dark] :is(header,.sidebar,.advisor-header,.advisor-card,.card,.comparison-card,.property-summary,.record-section,.home-tile,.buyer-section,.assumption-proposal,.lap-theme-control,.epochshield-badge,dialog){background:var(--lap-surface)!important}
html[data-lap-theme=dark] :is(input,select,textarea,option,button){background:var(--lap-control)!important}
html[data-lap-theme=dark] :is(.home-facts div,.data-label,.comparison-tag,.photo-unavailable,.privacy-note,.demo-banner,.info,.research-question,.assumptions-guide,.record-section[open] summary,.glossary-button:hover,.help-icon:hover,.login-verification,.status,.demo-pill,.pill,.avatar,th,#auth-status:not(:empty),#profile-save-status){background:var(--lap-raised)!important}
html[data-lap-theme=dark] :is(.primary,.btn,.tabs button.selected,.workspace-tabs a[aria-current=page],.home-tile[aria-pressed=true],nav a.active,nav a:hover,.sidebar.menu-open .mobile-menu-toggle,.progress div){background:#19554c!important;border-color:#83bbae!important}
html[data-lap-theme=dark] :is(.secondary,.btn.secondary,.workspace-tabs a,.glossary-button,.help-icon,.mobile-menu-toggle){background:var(--lap-control)!important}
html[data-lap-theme=dark] .workspace-tabs a[aria-current=page]{background:#19554c!important}
html[data-lap-theme=dark] :is(.primary:hover:enabled,.btn:hover){background:#123f39!important}
html[data-lap-theme=dark] :is(.missing,.automation-notice,.simulation-badge,.alert,.status.warn,.comparison-tag.caution){background:#352b19!important;border-color:#d3ac62!important}
html[data-lap-theme=dark] :is(.discrepancy-red,.discrepancy-red[open] summary,.status.danger,.review-line,#auth-status.error,#profile-save-status.error){background:#3d2026!important;border-color:#e58b89!important}
html[data-lap-theme=dark] :is(.status.good,#profile-save-status.saved){background:#173d35!important;border-color:#83bbae!important}
html[data-lap-theme=dark] .evidence-warning{border-color:#e58b89!important}
html[data-lap-theme=dark] .hero,html[data-lap-theme=dark] .house{background:#18343c!important}
html[data-lap-theme=dark] :is(.property-photo,.property-illustration,.progress){background:var(--lap-raised)!important}
html[data-lap-theme=dark] :is(.auth-links button,.password-wrap button,.close,.lap-company button){background:transparent!important}
html[data-lap-theme=dark] .divider::before,html[data-lap-theme=dark] .divider::after{background:var(--lap-line)}
html[data-lap-theme=dark] dialog::backdrop{background:#000b}
html[data-lap-theme=dark] a{text-decoration:underline;text-underline-offset:3px}
html[data-lap-theme=dark] :is(nav a,.brand,.btn){text-decoration:none}
html[data-lap-theme=dark] :is(input,textarea)::placeholder{color:#fff;opacity:.8}
html[data-lap-theme=dark] :is(input,textarea):-webkit-autofill{-webkit-text-fill-color:#fff!important;box-shadow:0 0 0 1000px var(--lap-control) inset!important;caret-color:#fff}
html[data-lap-theme=dark] :is(input,textarea){caret-color:#fff;accent-color:#83bbae}
html[data-lap-theme=dark] :is(button,input,select,textarea):disabled{opacity:1;border-style:dashed}
html[data-lap-theme=dark] :focus-visible{outline:3px solid #c1ecff!important;outline-offset:3px}
html[data-lap-theme=dark] svg text{fill:#fff!important}
html[data-lap-theme=dark] ::selection{color:#fff;background:#19554c}
@media(max-width:650px){.advisor-header .lap-theme-control{margin-left:0;flex-wrap:wrap}.lap-theme-control{font-size:11px}.lap-theme-control select{min-width:120px}}
@media print{.lap-theme-control{display:none!important}html[data-lap-theme=dark] body,html[data-lap-theme=dark] body *{color:#000!important;background:#fff!important;box-shadow:none!important}}
