:root[data-theme="dark"]{color-scheme:dark;--ink:#e8eee9;--muted:#a1ada5;--line:#344239;--paper:#1c2821;--green:#9db99b;--mint:#26362a;background:#111914}
:root[data-theme="dark"] body{background:#111914;color:var(--ink)}
:root[data-theme="dark"] .topbar,:root[data-theme="dark"] .site-footer{border-color:#29372e}
:root[data-theme="dark"] .brand,:root[data-theme="dark"] .welcome-row h1,:root[data-theme="dark"] .auth-card h1{color:#edf2ed}
:root[data-theme="dark"] .brand-mark{background:#54785d}
:root[data-theme="dark"] .auth-card,:root[data-theme="dark"] .card,:root[data-theme="dark"] .summary-card{background:#1b2821;border-color:#2d3a31;box-shadow:0 5px 20px #0002}
:root[data-theme="dark"] .summary-main{background:#24352a;border-color:#314637}
:root[data-theme="dark"] .auth-art{background:#29382d;color:#a7c4a2}
:root[data-theme="dark"] .intro,:root[data-theme="dark"] .welcome-copy,:root[data-theme="dark"] .compact-card>p,:root[data-theme="dark"] .stats-copy{color:#a4afa7}
:root[data-theme="dark"] .eyebrow{color:#a3b3a5}
:root[data-theme="dark"] input,:root[data-theme="dark"] select{background:#121b16;color:#e7eee8;border-color:#405047}
:root[data-theme="dark"] input::placeholder{color:#7f8d83}
:root[data-theme="dark"] .button-quiet,:root[data-theme="dark"] .text-button{color:#b9ceb8}
:root[data-theme="dark"] .button-quiet:hover{background:#2b382f}
:root[data-theme="dark"] .form-message,:root[data-theme="dark"] .sync-label,:root[data-theme="dark"] .month-picker,:root[data-theme="dark"] .site-footer{color:#9ca99f}
:root[data-theme="dark"] .privacy-note,:root[data-theme="dark"] .entry-row,:root[data-theme="dark"] .fixed-row,:root[data-theme="dark"] .stats-table th,:root[data-theme="dark"] .stats-table td{border-color:#2d3a31}
:root[data-theme="dark"] .summary-top,:root[data-theme="dark"] .summary-label{color:#bbc9bd}
:root[data-theme="dark"] .summary-card p,:root[data-theme="dark"] .meter-caption,:root[data-theme="dark"] .entry-date,:root[data-theme="dark"] .fixed-day,:root[data-theme="dark"] .stats-total{color:#a0aca3}
:root[data-theme="dark"] .summary-card strong,:root[data-theme="dark"] .inline-edit strong,:root[data-theme="dark"] .section-heading h2,:root[data-theme="dark"] .dialog h2{color:#edf2ed}
:root[data-theme="dark"] .summary-main strong.projection-negative{color:#ff9b82}
:root[data-theme="dark"] .positive{color:#9ac49b}
:root[data-theme="dark"] .summary-symbol.symbol-income,:root[data-theme="dark"] .entry-icon{background:#2c4030;color:#aad0a7}
:root[data-theme="dark"] .summary-symbol.symbol-expense,:root[data-theme="dark"] .entry-icon.expense{background:#443228;color:#e5ad84}
:root[data-theme="dark"] .entry-amount.expense{color:#e2a17a}
:root[data-theme="dark"] .entry-status{background:#463d2c;color:#e3c58e}
:root[data-theme="dark"] .icon-button{background:#202d25;border-color:#3a493f;color:#c7ddc5}
:root[data-theme="dark"] .delete-button{color:#a4b0a6}
:root[data-theme="dark"] .soft-icon{color:#a3bea5}
:root[data-theme="dark"] .meter{background:#3d4b40}
:root[data-theme="dark"] .meter span{background:#9cbd98}
:root[data-theme="dark"] .stats-period{background:#28382d;color:#bdcfbd}
:root[data-theme="dark"] .stats-table th{background:#243229;color:#b7c4b9}
:root[data-theme="dark"] .stats-table td{color:#e3ebe4}
:root[data-theme="dark"] .stats-table .stats-total-row td{background:#243229;color:#eaf0ea}
:root[data-theme="dark"] .dialog{background:#1b2821;color:#e8eee9;border-color:#3a493e}
:root[data-theme="dark"] .dialog::backdrop{background:#050a078c}
:root[data-theme="dark"] .dialog .button-quiet{color:#c5d0c7}
:root[data-theme="dark"] .site-footer{border-top-color:#29372e}
@media(max-width:520px){.theme-toggle{padding:8px 9px;font-size:10px}.theme-toggle #theme-label{display:none}}
