:root{color-scheme:dark}
html[data-theme="light"]{color-scheme:light;--bg:#f1f5f9;--panel:#fff;--panel2:#e8f0f7;--line:#c8d6e3;--text:#152c40;--muted:#52677b;--primary:#12a67c;--blue:#1679bf;--danger:#be2943;--warning:#8b6107;--shadow:0 14px 40px rgba(29,57,80,.12)}
.theme-toggle{min-width:40px;min-height:40px;font-size:1.15rem;padding:8px 11px}
.theme-floating{position:fixed;top:14px;right:14px;z-index:50}
html[data-theme="light"] body{background:radial-gradient(circle at top right,#dceef7 0,transparent 32%),var(--bg)}
html[data-theme="light"] :is(.auth-card,.card,.panel,.tour-dialog){background:var(--panel);color:var(--text)}
html[data-theme="light"] :is(.topbar,.date-browser){background:rgba(248,251,255,.97)}
html[data-theme="light"] :is(.sidebar,.bottom-nav){background:#f8fbff}
html[data-theme="light"] :is(label,.info-content,.tour-dialog p,.info-disclosure summary){color:var(--text)}
html[data-theme="light"] :is(input,select,textarea,.upload-zone,.source-upload,.file-summary,.delete-counts>div,.invoice-field,.rate-settings,.mastercard-compare>div,.financial-summary article,.payment-chips>div,.recovery-mobile-list article){background:#f8fbff;color:var(--text)}
html[data-theme="light"] input::placeholder,html[data-theme="light"] textarea::placeholder{color:#61758a;opacity:1}
html[data-theme="light"] table{background:var(--panel)}
html[data-theme="light"] :is(th,.total-row td,.recovery-mobile-list dl div){background:#e8f0f7;color:var(--text)}
html[data-theme="light"] :is(th,td){border-color:var(--line)}
html[data-theme="light"] .nav-link{color:var(--muted)}
html[data-theme="light"] :is(.nav-link:hover,.nav-link.active){color:var(--text)}
html[data-theme="light"] :is(.info-disclosure,.recovery-rules){background:#eef7ff;border-color:#a9c9de}
html[data-theme="light"] .recovery-panel{background:linear-gradient(180deg,#edf9f4,#fff);border-color:#a6d3c1}
html[data-theme="light"] :is(.positive,.badge.active,.badge.completed,.badge.paid,.badge.resolved,.date-tab.active,.has-ronpos,.rate-pill){background:#d9f3e8;color:#146447}
html[data-theme="light"] :is(.negative,.import-error,.file-summary.invalid){color:#aa2440}
html[data-theme="light"] :is(.btn.danger,.notice.danger,.dialog-icon,.badge.suspended,.badge.failed,.badge.critical,.badge.open){background:#ffe5eb;color:#98203b;border-color:#e7a7b6}
html[data-theme="light"] .notice.success{background:#def4e9;border-color:#a6d3c1;color:#146447}
html[data-theme="light"] :is(.notice.warning,.badge.pending,.badge.warning,.date-source-note){background:#fff3d3;color:#79540b;border-color:#dbc28a}
html[data-theme="light"] .badge{background:#e3edf6;color:#304d68}
html[data-theme="light"] .has-fleet{background:#deedff;color:#205783}
html[data-theme="light"] .toast{background:#fff;color:var(--text)}
@media(max-width:760px){.topbar-actions{gap:6px}.theme-toggle{padding:7px;min-width:36px}.topbar .brand{gap:6px;font-size:.92rem}.topbar .brand-mark{width:30px;height:30px}.topbar-actions>.btn,.topbar-actions>form>.btn{padding:9px}.topbar{padding:0 10px}}
