:root{--surface:#fff;--surface-subtle:#fafafa;--surface-hover:#f4f4f5;--text:#18181b;--text-muted:#71717a;--stroke:#e4e4e7;--primary:#18181b;--on-primary:#fff;--danger:#b91c1c;--danger-soft:#fef2f2;--danger-border:#fecaca;--success:#166534;--success-soft:#f0fdf4;--success-border:#bbf7d0;--warning:#92400e;--warning-soft:#fffbeb;--warning-border:#fde68a}
html[data-theme=dark]{--surface:#1b1e22;--surface-subtle:#111315;--surface-hover:#272b31;--text:#f4f4f5;--text-muted:#aeb4bd;--stroke:#363b43;--primary:#e8ebef;--on-primary:#171a1f;--danger:#ff9696;--danger-soft:#351e23;--danger-border:#74333d;--success:#92dfac;--success-soft:#192f24;--success-border:#325a42;--warning:#f5ce85;--warning-soft:#332c1e;--warning-border:#675535;--background:var(--surface-subtle);--foreground:var(--text);--muted:var(--text-muted);--border:var(--stroke);--paper:var(--surface-subtle);--ink:var(--text);--line:var(--stroke)}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:6px;min-height:36px;padding:7px 11px;border:1px solid var(--stroke);border-radius:7px;background:var(--surface);color:var(--text);font:600 12px/1.3 Inter,system-ui,sans-serif;white-space:nowrap;cursor:pointer}
.theme-toggle:hover{background:var(--surface-hover)}.theme-toggle:focus-visible{outline:2px solid var(--text);outline-offset:3px}
html[data-theme=dark] .button-primary,html[data-theme=dark] .button-dark{background:var(--primary)!important;color:var(--on-primary)!important;border-color:var(--primary)!important}
html[data-theme=dark] .button-primary:hover,html[data-theme=dark] .button-dark:hover{background:#ccd3dc!important}
html[data-theme=dark] :is(.login-story,.closing){background:#202a1a;color:#eef5e8}
html[data-theme=dark] .payment-wallet-qr{background:#fff;color:#18181b}
dialog{background:var(--surface);color:var(--text)}
@media(max-width:600px){.portal-header{gap:14px}.portal-header nav{gap:12px;flex-wrap:wrap}.topbar-actions{gap:7px}.topbar-actions>.badge{display:none}.header-actions{gap:10px}}

html[data-theme=dark]{--home-tone-161819:var(--text);--home-tone-171a16:var(--text);--home-tone-191d17:var(--text);--home-tone-20241c:var(--text);--home-tone-252b25:var(--text);--home-tone-2d3527:var(--text);--home-tone-343839:var(--text);--home-tone-526631:var(--text-muted);--home-tone-53595d:var(--text-muted);--home-tone-536048:var(--text-muted);--home-tone-545e62:var(--text-muted);--home-tone-555e63:var(--text-muted);--home-tone-556537:var(--text-muted);--home-tone-567f24:var(--text-muted);--home-tone-578310:var(--text-muted);--home-tone-60665b:var(--text-muted);--home-tone-627945:var(--text-muted);--home-tone-687076:var(--text-muted);--home-tone-68716e:var(--text-muted);--home-tone-6a755d:var(--text-muted);--home-tone-6a991b:var(--text-muted);--home-tone-6d7f4d:var(--text-muted);--home-tone-71796a:var(--text-muted);--home-tone-729744:var(--text-muted);--home-tone-737b72:var(--text-muted);--home-tone-737b7d:var(--text-muted);--home-tone-777d80:var(--text-muted);--home-tone-787f71:var(--text-muted);--home-tone-7b886c:var(--text-muted);--home-tone-7ba935:var(--text-muted);--home-tone-7c8872:var(--text-muted);--home-tone-7ca838:var(--text-muted);--home-tone-7d8475:var(--text-muted);--home-tone-81878b:var(--text-muted);--home-tone-818878:var(--text-muted);--home-tone-859077:var(--text-muted);--home-tone-869379:var(--text-muted);--home-tone-86a951:var(--text-muted);--home-tone-879080:var(--text-muted);--home-tone-899086:var(--text-muted);--home-tone-89917e:var(--text-muted);--home-tone-899280:var(--text-muted);--home-tone-8a9085:var(--text-muted);--home-tone-8a9283:var(--text-muted);--home-tone-8a947f:var(--text-muted);--home-tone-8d9686:var(--text-muted);--home-tone-929899:var(--text-muted);--home-tone-969b99:var(--text-muted);--home-tone-a0ac95:var(--text-muted);--home-tone-b7c1ae:var(--surface-hover);--home-tone-c2ceb5:var(--surface-hover);--home-tone-d4dccb:var(--surface-hover);--home-tone-d9dddf:var(--surface-hover);--home-tone-dbe0d5:var(--surface-hover);--home-tone-dce3d4:var(--surface-hover);--home-tone-dce5d2:var(--surface-hover);--home-tone-dfe8d5:var(--surface-hover);--home-tone-e0e5da:var(--surface-hover);--home-tone-e0e8d5:var(--surface-hover);--home-tone-e1e7db:var(--surface-hover);--home-tone-e2e7dd:var(--surface-hover);--home-tone-e4e8e0:var(--surface-hover);--home-tone-e4e8e1:var(--surface-hover);--home-tone-e4e9db:var(--surface-hover);--home-tone-e5e8e9:var(--surface-hover);--home-tone-e9ece5:var(--surface-hover);--home-tone-edf0e9:var(--surface-hover);--home-tone-edf0ec:var(--surface-hover);--home-tone-edf3e7:var(--surface-hover);--home-tone-eef0ec:var(--surface-hover);--home-tone-eff3e9:var(--surface-hover);--home-tone-eff4e8:var(--surface-hover);--home-tone-f1f3ef:var(--surface-hover);--home-tone-f4f7ef:var(--surface-hover);--home-tone-f5f7f6:var(--surface-hover);--home-tone-f7f8f5:var(--surface-hover);--home-tone-f7f8f6:var(--surface-hover);--home-tone-fafbf8:var(--surface-hover);--home-tone-fafbfa:var(--surface-hover);}
html[data-theme=dark] .button-light{color:#18181b}html[data-theme=dark] .brand-mark{color:#18181b}html[data-theme=dark] .closing h2{color:#eef5e8}html[data-theme=dark] .closing-symbol{color:#334329}
html[data-theme=dark] :is(.floating-note,.estimate){color:#18181b}html[data-theme=dark] :is(.floating-note div>span,.estimate>span,.estimate>div){color:#405323}html[data-theme=dark] .note-icon{background:#e7f4d2;color:#18181b}html[data-theme=dark] .mini-mark{color:#18181b}
