/* Comfortable mobile controls with a complete, explicit dark palette. */
:root{--v2-surface:#fffefa;--v2-soft:#edf2e8;--v2-text:#283b30;--v2-muted:#59695f}
button.small,.album-link,.filters button{min-height:44px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #c58b43;outline-offset:3px}
.settings-menu{display:grid;gap:12px;margin:18px 0}.account-control,.undo-banner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 16px;margin:12px 0;background:var(--v2-soft);border:1px solid var(--line);border-radius:14px}.pending-amount{padding:12px;border-inline-start:4px solid #b78035;background:#fbf0d9;border-radius:8px;color:#684913}.cleanup-item{align-items:flex-start;padding:10px;border-bottom:1px solid var(--line)}.cleanup-item span{overflow-wrap:anywhere}.cleanup-item small{display:block;color:var(--muted)}.fixed-row h4{margin:5px 0}.fixed-row{scroll-margin:100px}.fixed-totals{overflow-wrap:anywhere}.success{color:#27613e}dialog input,dialog select{max-width:100%}dialog form>details{margin:16px 0}dialog .actions{gap:10px}progress{accent-color:var(--brand)}
html[data-theme=dark]{color-scheme:dark;--ink:#edf2ec;--muted:#b7c2b7;--brand:#bad6aa;--brand-dark:#8db47d;--soft:#2d3d31;--paper:#16201b;--card:#223028;--line:#45564a;--good:#b8e3bd;--warning:#f3cd86;--danger:#ffb4ac;--v2-surface:#223028;--v2-soft:#2c3b30;--v2-text:#edf2ec;--v2-muted:#b7c2b7}
html[data-theme=dark] body,html[data-theme=dark] .family-backdrop{background:#16201b;color:var(--ink)}
html[data-theme=dark] .family-backdrop img{opacity:.08}
html[data-theme=dark] .workspace{background:#16201bea}
html[data-theme=dark] .sidebar,html[data-theme=dark] .navigation{background:#1b2921;border-color:var(--line)}
html[data-theme=dark] :is(.card,.empty,.stat,.quick-compose,.home-overview button,.daily-board,.daily-person,.private-reminders,.fixed-costs,.cover-copy,dialog,.auth .card){background:var(--card);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(input,textarea,select,button,.comment,.notice-item,.dinner-summary,.oslo-day,.fixed-totals,.reminder-row,.daily-note,.photo-manage,.post-result,.goal-step,.choice){background:#29392e;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(button.primary,.stat.highlight){background:#bad6aa;color:#17261b;border-color:#bad6aa}
html[data-theme=dark] button.ghost{background:transparent;color:var(--ink)}
html[data-theme=dark] button.danger,html[data-theme=dark] .error{color:var(--danger)}
html[data-theme=dark] :is(h1,h2,h3,h4,.greeting,.brand h1,.daily-place,.notice-title,.amount,.fixed-totals b,.home-overview b,.cover-copy h3,.quick-compose>p,.toolbar h2){color:var(--ink)}
html[data-theme=dark] :is(.muted,.caption,.hint,.nav-label,.toolbar p,.page-footer,.post-meta,.private,.server-info,.sidebar-note,.cover-copy p,.daily-person small,.daily-note){color:var(--muted)}
html[data-theme=dark] :is(.eyebrow,.plan-link,.navigation button,.notice-bell,.album-link,a){color:var(--brand)!important}
html[data-theme=dark] :is(.navigation button[aria-selected=true],.filters button[aria-pressed=true],.daily-person.is-me,.notice-item.unread,.choice[aria-pressed=true]){background:#3a503d;color:#edf4e7;border-color:#7da16b}
html[data-theme=dark] :is(.status,.dinner-chip,.nav-count){background:#394d3c;color:#d9f0c9}
html[data-theme=dark] :is(.status.pending,.status.reviewed,.pending-amount,.reminder-row.due){background:#443b26;color:#ffe2a7}
html[data-theme=dark] :is(.status.cancelled,.status.rejected,.dinner-chip.no){background:#4c3230;color:#ffc7bd}
html[data-theme=dark] :is(dialog .actions,.notice-toolbar,.launch-counts span,.cover-photo,.photo-stage,.photo-hint){background:#223028;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.success,.dinner-chip.yes){color:#c1e6b3}
html[data-theme=dark] ::placeholder{color:#a5b0a6;opacity:1}
html[data-theme=dark] dialog::backdrop{background:#000a}
@media(max-width:600px){.fixed-row>.row{align-items:flex-start}.fixed-row .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.fixed-row .actions button{font-size:.85rem;padding:8px;line-height:1.6}.fixed-totals{grid-template-columns:1fr!important;gap:10px}.fixed-totals span{display:flex;justify-content:space-between;gap:10px}.daily-people{gap:10px}.account-control,.undo-banner{font-size:.9rem}.cleanup-item{min-height:48px}dialog{width:calc(100% - 20px)}.settings-menu button{min-height:48px}}
html[data-theme=dark] .cover{background:#25342b;border-color:var(--line)}
html[data-theme=dark] .quick-actions .private-compose{background:#3a503d!important;color:#edf4e7!important}
html[data-theme=dark] .home-overview span{color:var(--muted)}
html[data-theme=dark] .fixed-totals span{background:#2c3b30;color:var(--muted);border-color:var(--line)}
html[data-theme=dark] .fixed-totals span b{color:var(--ink)}
html[data-theme=dark] .export-tools a{background:#2c3b30;color:var(--ink)!important;border-color:var(--line)}
html[data-theme=dark] .stat.highlight :is(p,strong,small,span){color:#17261b!important}
html[data-theme=dark] .photo-hint,html[data-theme=dark] .album-link{color:var(--muted)!important}
html[data-theme=dark] .quick-actions button span{color:inherit}
@media(max-width:600px){
 .cover-finance .memory-board,.cover-purchases .memory-board,.cover-goals .memory-board{display:none}
 .cover-finance,.cover-purchases,.cover-goals{padding:10px 16px;margin-bottom:16px}
 .cover-finance .cover-copy,.cover-purchases .cover-copy,.cover-goals .cover-copy{padding:6px}
 .cover-finance .cover-copy>p:not(.eyebrow),.cover-purchases .cover-copy>p:not(.eyebrow),.cover-goals .cover-copy>p:not(.eyebrow){display:none}
 .cover-finance .cover-copy h3,.cover-purchases .cover-copy h3,.cover-goals .cover-copy h3{font-size:1.1rem}
}
