/* Shared MMHVAULT V2 light/dark theme. Dark remains the default. */
:root[data-theme=light]{color-scheme:light;--bg:#f7f8fa;--sidebar:#fff;--surface:#fff;--surface-raised:#f0f2f5;--border:#dce0e6;--text:#20242c;--muted:#596372;--accent:#315fba;--positive:#087653;--negative:#b73743}
.theme-toggle{width:38px;height:38px;display:grid;place-items:center;padding:0;border:1px solid var(--border);border-radius:7px;background:var(--surface-raised);color:var(--text);flex:none}
.theme-toggle .ico{width:17px;height:17px}
.theme-toggle .theme-moon{display:none}
:root[data-theme=light] .theme-toggle .theme-sun{display:none}
:root[data-theme=light] .theme-toggle .theme-moon{display:block}
.topbar-end{display:flex;align-items:center;gap:10px;min-width:0}
:root[data-theme=light] .nav-item{color:var(--muted)}
:root[data-theme=light] .nav-item:hover,:root[data-theme=light] .nav-item[aria-current=page]{background:#e7edf8;color:#254b9a}
:root[data-theme=light] .brandmark{background:#e3eaf9;color:#315fba}
:root[data-theme=light] .avatar{background:#e9edf3;color:var(--text)}
:root[data-theme=light] .topbar{border-color:var(--border)}
:root[data-theme=light] .card,:root[data-theme=light] .mobile-nav{background:var(--surface)}
:root[data-theme=light] .meter,:root[data-theme=light] .allocation-track,:root[data-theme=light] .budget-track{background:#e6eaf0}
:root[data-theme=light] .primary-action{background:#273b60;color:#fff;border-color:#273b60}
:root[data-theme=light] .primary-action:hover{background:#354e7b}
:root[data-theme=light] .account-icon,:root[data-theme=light] .market-icon{background:#edf2fc;color:var(--accent)}
:root[data-theme=light] .currency-list button[aria-pressed=true],:root[data-theme=light] .picker-option[aria-pressed=true],:root[data-theme=light] .dash-tabs button[aria-pressed=true]{background:#e7edf8;border-color:#c9d6ed;color:#254b9a}
:root[data-theme=light] .picker-option:hover,:root[data-theme=light] .account-row:hover{background:#f0f3f8}
:root[data-theme=light] .accounts-content input,:root[data-theme=light] .accounts-content select,:root[data-theme=light] #balanceCurrencyButton,:root[data-theme=light] #balanceCurrencySearch,:root[data-theme=light] #accountDialog,:root[data-theme=light] .balance-currency-menu{background:var(--surface);color:var(--text);border-color:var(--border)}
:root[data-theme=light] .balance-currency-menu{box-shadow:0 8px 22px #24354e20}
:root[data-theme=light] .overview-content .primary-kpi{border-color:#b9c9e7}
:root[data-theme=light] .chart [stroke="#29292b"]{stroke:#dce0e6}
:root[data-theme=light] .chart [fill="#a3a3a8"]{fill:#596372}
:root[data-theme=light] .chart [stroke="#91adf2"]{stroke:#4b72c7}
:root[data-theme=light] .chart [fill="#91adf2"]{fill:#4b72c7}
@media(max-width:767px){.topbar-end{gap:7px}.topbar-end>.muted{font-size:10px;white-space:nowrap}.theme-toggle{width:40px;height:40px}.topbar{gap:8px}}
