:root{color-scheme:light}
body{padding-bottom:70px}
.theme-toggle{position:fixed;right:20px;bottom:18px;z-index:45;display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:30px;background:var(--white);color:var(--ink);font-size:14px;font-weight:650;box-shadow:0 4px 20px #0002}
.theme-toggle>span:first-child{font-size:20px;line-height:1}
@media screen{
:root[data-theme="dark"]{color-scheme:dark;--ink:#ffffff;--muted:#bbbbbb;--line:#343434;--paper:#000000;--white:#121212;--mint:#152510;--deep:#75d457;--blue:#4160d5;--green:#58ba3b;--red:#f3a68f}
[data-theme="dark"] :is(.sidebar,.topbar,.stat,.card,.property,.unit-hero,.ticket,.flyer,.threads button,.login-form-side,.portal-header,.team-record,dialog,.payment-method){background:var(--white)}
[data-theme="dark"] :is(.btn,.icon-btn,.attention-row button,.roles button.selected,.field,input,select,textarea){background:#1c1c1c;border-color:var(--line);color:var(--ink)}
[data-theme="dark"] :is(.support,.roles,.campaign-preview,.report-item,.bubble,.condition-photos,.modal-head button,.progress){background:#202020}
[data-theme="dark"] :is(.nav button:hover,.btn:hover){background:#292929}
[data-theme="dark"] :is(.nav button.active,.filter-tabs button.on,.portal-subnav .on,.team-record.selected,.payment-method.chosen,.bubble.mine,.threads button.on){background:var(--mint);color:#b7e6a6;border-color:#50704c}
[data-theme="dark"] .btn.primary{background:var(--green);border-color:var(--green);color:#122c0e}
[data-theme="dark"] .btn.primary:hover{background:#70cd51}
[data-theme="dark"] :is(.cash-card,.balance,.btn.dark){background:#090909;color:#f3f7fa;border-color:#343434}
[data-theme="dark"] .cash-card select{background:#1c1c1c;color:#ffffff}
[data-theme="dark"] :is(.workspace,.nav button,.demo,.stat-top,.stat-value small,.stat-top .icon,th,.activity-row small,.foot,.ticket-id,.inspection-banner p){color:var(--muted)}
[data-theme="dark"] :is(.stat-note strong,.stat.featured .stat-value,.link,.accent,.flyer-price,.transfer-steps b,.inspection-readonly>.icon,.notice-tabs button.on,#team-status){color:#75d457}
[data-theme="dark"] :is(.stat.featured,.notice,.inspection-banner){background:#152510;border-color:#39533c;color:#c0d8b7}
[data-theme="dark"] .inspection-banner.is-locked{background:#111b38;border-color:#465b70;color:#c3d1e7}
[data-theme="dark"] :is(.badge,.avatar,.activity-icon,.rule-number,.method-mark,.method-1,.method-3,.nav button .count,.attention-icon.green,.inspection-symbol){background:#29422e;color:#b2dda0}
[data-theme="dark"] :is(.badge.blue,.doc-icon,.attention-icon.blue,.method-2){background:#283953;color:#b4c6ff}
[data-theme="dark"] :is(.badge.amber,.attention-icon){background:#463722;color:#f0ca8c}
[data-theme="dark"] :is(.badge.red,.login-error){background:#482e29;color:#ffc1aa}
[data-theme="dark"] #team-error{color:#ffc1aa}
[data-theme="dark"] :is(.brand img,.login-box>img,.portal-header img){background:#fff;border-radius:10px;padding:5px}
[data-theme="dark"] .property-image{background:#202020}
[data-theme="dark"] dialog::backdrop{background:#0009}
[data-theme="dark"] #toast{background:#1c1c1c;color:#f2f7fa;border-color:#343434}
}
@media screen{
[data-theme="dark"] .login-story{background:#000;color:#fff}
[data-theme="dark"] :is(.login-story p,.cash-card .sub){color:#bbb}
[data-theme="dark"] :is(.badge.blue,.doc-icon,.attention-icon.blue){background:#18234b;color:#b3c3ff}
[data-theme="dark"] .btn.program-blue{background:#4160d5;border-color:#4160d5;color:#fff}
[data-theme="dark"] :is(.bar.expense,.legend span:last-child i){background:#4160d5}
[data-theme="dark"] :is(.bar:not(.expense),.legend span:first-child i){background:#58ba3b}
}
@media(max-width:700px){.theme-toggle{right:12px;bottom:12px}}
@media print{.theme-toggle{display:none}body{padding-bottom:0}}
