/* Home-Nest v23: premium per-account theme, no changes to the light design. */
.theme-setting{margin-top:3px;padding:17px;border:1px solid #e8eee7;border-radius:17px;background:linear-gradient(145deg,#f7faf5,#fdfdfa)}
.theme-setting-heading{display:flex;align-items:center;gap:12px;margin-bottom:15px}
.theme-setting-heading>span:last-child{flex:1;min-width:0}
.theme-setting-heading strong{display:block;font-size:13px;color:#40594a}
.theme-setting-heading small{display:block;margin-top:4px;color:#83958a;font-size:11px;line-height:1.4}
.theme-setting-icon{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:12px;background:#e6efe6;color:#557866}
.theme-setting-icon svg{height:19px;width:19px}
.theme-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.theme-option{display:flex;align-items:center;gap:10px;min-height:63px;border:1.5px solid #e5ebe3;background:#fff;border-radius:14px;text-align:left;padding:10px 12px;color:#4a6253;font-size:12px;font-weight:800;transition:border-color .18s,background .18s,transform .18s}
.theme-option:hover{transform:translateY(-1px);border-color:#9bb8a5}
.theme-option.selected{border-color:#638b70;background:#eff7ef;box-shadow:0 0 0 2px #9bbbaa24}
.theme-option>svg{height:16px;width:16px;margin-left:auto;color:#537f64}
.theme-swatch{height:38px;width:39px;display:grid;place-items:center;flex:none;border-radius:11px;box-shadow:inset 0 0 0 1px #00000010;overflow:hidden}
.theme-swatch i{height:18px;width:22px;display:block;border-radius:5px;box-shadow:0 2px 6px #0002}
.theme-swatch-light{background:linear-gradient(145deg,#eff4ed 52%,#d8e7dd 52%)}
.theme-swatch-light i{background:#fff;border-top:5px solid #547e68}
.theme-swatch-dark{background:linear-gradient(145deg,#1d2c2a 52%,#354c44 52%)}
.theme-swatch-dark i{background:#243431;border-top:5px solid #8dcaa6;box-shadow:0 2px 7px #0006}
@media(max-width:370px){.theme-setting{padding:12px}.theme-option{gap:7px;padding:9px}.theme-swatch{height:32px;width:32px}}

:root[data-theme="dark"]{
 color-scheme:dark;
 --bg:#101917;
 --ink:#edf3ed;
 --muted:#9faea4;
 --forest:#8dbba1;
 --forest-dark:#a7cdb5;
 --border:#30433a;
 --white:#1b2925;
 --shadow:0 14px 35px rgba(0,0,0,.19);
}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .sidebar{background:#15211e;border-right-color:#2b4037}
html[data-theme="dark"] .nav-label,html[data-theme="dark"] .eyebrow{color:#9daf9f}
html[data-theme="dark"] .nav-link{color:#a7b9ac}
html[data-theme="dark"] .nav-link:hover{background:#20332b;color:#eef5ef}
html[data-theme="dark"] .nav-link.active{background:#2a4637;color:#dbf5e3}
html[data-theme="dark"] .nav-count{background:#335444;color:#d0f5dc}
html[data-theme="dark"] .brand small,html[data-theme="dark"] .profile-text small,html[data-theme="dark"] .chevron{color:#96ad9c}
html[data-theme="dark"] .side-quote{background:linear-gradient(145deg,#243a30,#1d3029);border:1px solid #345145}
html[data-theme="dark"] .side-quote small,html[data-theme="dark"] .quote-sun{color:#a6c5ac}
html[data-theme="dark"] .topbar{background:#15211edf;border-bottom-color:#2b3c34}
html[data-theme="dark"] .today-pill{color:#b0c4b4}
html[data-theme="dark"] .headline-desc,html[data-theme="dark"] .panel-subtitle,html[data-theme="dark"] .event-body small,html[data-theme="dark"] .event-time small,html[data-theme="dark"] .list-meta,html[data-theme="dark"] .task-info small,html[data-theme="dark"] .grocery-info small,html[data-theme="dark"] .progress-copy,html[data-theme="dark"] .calendar-aside-date,html[data-theme="dark"] .group-title,html[data-theme="dark"] .no-results,html[data-theme="dark"] .empty,html[data-theme="dark"] .install-hint{color:#abb9ae}
html[data-theme="dark"] .accent{color:#add4b8}
html[data-theme="dark"] .panel,html[data-theme="dark"] .section-card,html[data-theme="dark"] .stat-card{background:#1c2a26;border-color:#30433a;box-shadow:0 17px 32px rgba(0,0,0,.16)}
html[data-theme="dark"] .panel-title,html[data-theme="dark"] .empty strong{color:#f0f6f0}
html[data-theme="dark"] .home-stage .stat-card{background:rgba(25,40,34,.92);border-color:#54766370;box-shadow:0 14px 34px #0006}
html[data-theme="dark"] .stat-kicker{background:#2c4539df;border-color:#456651;color:#d6f0dc}
html[data-theme="dark"] .stat-label{color:#b6c8ba}
html[data-theme="dark"] .stat-icon{background:#294c38;color:#b4e1ba}
html[data-theme="dark"] .stat-icon.peach{background:#4b3532;color:#ffd0b3}
html[data-theme="dark"] .stat-icon.lavender{background:#3c3550;color:#d6c8ff}
html[data-theme="dark"] .btn-primary{background:#6e9c7c;color:#0c2116;box-shadow:0 8px 22px #0004}
html[data-theme="dark"] .btn-primary:hover{background:#8eb49a}
html[data-theme="dark"] .btn-soft,html[data-theme="dark"] .btn-outline,html[data-theme="dark"] .btn-icon{background:#2c4034;color:#d9efe1;border-color:#49614f}
html[data-theme="dark"] .btn-soft:hover,html[data-theme="dark"] .btn-outline:hover,html[data-theme="dark"] .btn-icon:hover{background:#36513f}
html[data-theme="dark"] .btn-danger{background:#4a2d2b;color:#ffbdb2}
html[data-theme="dark"] .day-chip,html[data-theme="dark"] .count-bubble{background:#2b4838;color:#c7ebd0}
html[data-theme="dark"] .empty-icon,html[data-theme="dark"] .grocery-emoji{background:#2b3d34;color:#c6e4ce}
html[data-theme="dark"] .check{background:#192720;border-color:#57705e}
html[data-theme="dark"] .check.checked{background:#83ae8d;border-color:#83ae8d;color:#173325}
html[data-theme="dark"] .line-title.done,html[data-theme="dark"] .task-info .done,html[data-theme="dark"] .grocery-info .done{color:#8a9a8d}
html[data-theme="dark"] .soft-banner{background:linear-gradient(120deg,#263f30,#22392e);border:1px solid #3b5b46}
html[data-theme="dark"] .soft-banner p{color:#b7c6b8}
html[data-theme="dark"] .soft-banner::after{color:#486d53}
html[data-theme="dark"] .soft-banner .btn{background:#dceee0;color:#264834}
html[data-theme="dark"] .week-header{color:#9aa99d}
html[data-theme="dark"] .date-cell{color:#dde9dd}
html[data-theme="dark"] .date-cell.other{color:#73867a}
html[data-theme="dark"] .date-cell.today .date-num{background:#36513d;color:#f0faed}
html[data-theme="dark"] .date-cell.selected{background:#2b4232;border-color:#678d71}
html[data-theme="dark"] .date-cell.selected .date-num{background:#8aaf91;color:#112118}
html[data-theme="dark"] .calendar-event,html[data-theme="dark"] .calendar-event.peach,html[data-theme="dark"] .calendar-event.lavender,html[data-theme="dark"] .calendar-event.blue{background:#253a30;color:#f0f5ef}
html[data-theme="dark"] .calendar-event.peach{background:#382b2b}
html[data-theme="dark"] .calendar-event.lavender{background:#302d3e}
html[data-theme="dark"] .calendar-event.blue{background:#253747}
html[data-theme="dark"] .calendar-event small{color:#b0c2b2}
html[data-theme="dark"] .calendar-event-rich>svg{color:#b2d1bb}
html[data-theme="dark"] .filter-chip{background:#1d2c24;color:#becdc1;border-color:#3c5142}
html[data-theme="dark"] .filter-chip.active{background:#355441;color:#f0faef;border-color:#789b80}
html[data-theme="dark"] .task-row,html[data-theme="dark"] .grocery-row,html[data-theme="dark"] .event-row,html[data-theme="dark"] .list-section,html[data-theme="dark"] .detail-data-row{border-color:#34483c}
html[data-theme="dark"] .event-row-button:hover,html[data-theme="dark"] .event-row-button:focus-visible{background:#293d32}
html[data-theme="dark"] .event-row-chevron{background:#2f4a39;color:#b1d1b7}
html[data-theme="dark"] .searchbox{background:#253630;border-color:#476051;color:#b9cfbc}
html[data-theme="dark"] .searchbox input{color:#e7f0e7}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#86998c}
html[data-theme="dark"] .progress-track,html[data-theme="dark"] .task-progress-track{background:#34493c}
html[data-theme="dark"] .progress-track span{background:#83af8c}
html[data-theme="dark"] .priority-pill{background:#49342d;color:#ffb99c}
html[data-theme="dark"] .modal-overlay{background:rgba(4,13,9,.78);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
html[data-theme="dark"] .modal{background:#1b2924;color:#eaf4e9;border:1px solid #3c5544;box-shadow:0 25px 70px #0008}
html[data-theme="dark"] .modal-desc,html[data-theme="dark"] .field-hint,html[data-theme="dark"] .photo-instructions{color:#a7b8aa}
html[data-theme="dark"] .field label,html[data-theme="dark"] .field>span{color:#c4dbc9}
html[data-theme="dark"] .field input,html[data-theme="dark"] .field select,html[data-theme="dark"] .field textarea,html[data-theme="dark"] .event-form-grid #field-imageKey{background:#22372c;border-color:#415846;color:#f0f8f1}
html[data-theme="dark"] .member-pick,html[data-theme="dark"] .profile-option{background:#25392e;border-color:#49614f;color:#cfdfd0}
html[data-theme="dark"] .member-pick.selected,html[data-theme="dark"] .profile-option.selected{background:#365b43;border-color:#7daa86;color:#eefbed}
html[data-theme="dark"] .mobile-nav{background:#182620;border-top-color:#3e5144;box-shadow:0 -8px 25px #0005}
html[data-theme="dark"] .mobile-link{color:#a5b8a8}
html[data-theme="dark"] .mobile-link.active{color:#d9f1dc}
html[data-theme="dark"] .mobile-link.active .mobile-icon{background:#30513b}
html[data-theme="dark"] .settings-preview:not(.with-cover){background:linear-gradient(130deg,#355442,#263b34)}
html[data-theme="dark"] .settings-action,html[data-theme="dark"] .theme-setting{background:linear-gradient(150deg,#25392e,#202f29);border-color:#435747;color:#e8f5e9}
html[data-theme="dark"] .settings-action small,html[data-theme="dark"] .theme-setting-heading small{color:#b1c4b5}
html[data-theme="dark"] .settings-secondary{border-top-color:#405245}
html[data-theme="dark"] .settings-secondary p,html[data-theme="dark"] .theme-setting-heading strong{color:#eef7ed}
html[data-theme="dark"] .settings-secondary p span{color:#afc1b1}
html[data-theme="dark"] .theme-setting-icon{background:#3b5b45;color:#e4f5e6}
html[data-theme="dark"] .theme-option{background:#203129;color:#c7d9c9;border-color:#48614f}
html[data-theme="dark"] .theme-option.selected{background:#375744;color:#f3fff4;border-color:#8db79a;box-shadow:0 0 0 2px #92c4a01b}
html[data-theme="dark"] .theme-option>svg{color:#c6e4ca}
html[data-theme="dark"] .settings-member{color:#c5daca}
html[data-theme="dark"] .settings-member.selected{background:#34503c}
html[data-theme="dark"] .event-image-preview,html[data-theme="dark"] .event-all-day-control{background:#263c30;border-color:#445d49}
html[data-theme="dark"] .event-image-preview strong,html[data-theme="dark"] .event-all-day-control strong{color:#eef6e9}
html[data-theme="dark"] .event-image-preview small,html[data-theme="dark"] .event-all-day-control small{color:#bbccbc}
html[data-theme="dark"] .event-all-day-icon{background:#41694d;color:#e6f5e6}
html[data-theme="dark"] .detail-data-row,html[data-theme="dark"] .detail-data-row p{color:#e9f2e9}
html[data-theme="dark"] .detail-data-row strong{color:#a7bcae}
html[data-theme="dark"] .detail-data-row>svg{color:#91bca0}
html[data-theme="dark"] .detail-person,html[data-theme="dark"] .detail-navigate{background:#2e4b38;border-color:#45694b;color:#e1f5e6}
html[data-theme="dark"] .detail-empty,html[data-theme="dark"] .detail-reminder-note{color:#a9bbaa}
html[data-theme="dark"] .task-subtask-view{background:#243a2f;border-color:#47624f;color:#e1efe4}
html[data-theme="dark"] .task-subtask-view.is-complete span{color:#8fa494}
html[data-theme="dark"] .task-subtask-view input{accent-color:#9acfa4}
html[data-theme="dark"] .task-subtask-heading>span{color:#d5edda}
html[data-theme="dark"] .task-subtask-heading>small,html[data-theme="dark"] .task-mini-progress{color:#acc4b1}
html[data-theme="dark"] .subtask-editor-remove{background:#4a332f;color:#ffcbbf}
html[data-theme="dark"] .crop-stage{background:#253a31;box-shadow:0 0 0 5px #1b2924,0 0 0 7px #7b9d82}
html[data-theme="dark"] .crop-cover{box-shadow:0 0 0 4px #1b2924,0 0 0 6px #7b9d82}
html[data-theme="dark"] .home-stage:not(.has-cover)::before{background:linear-gradient(160deg,#273e31,#172a23 58%,var(--bg));}
html[data-theme="dark"] .home-stage.has-cover::before{background-image:linear-gradient(180deg,rgba(10,28,28,.58) 0%,rgba(10,31,30,.40) 36%,rgba(21,50,45,.15) 73%,rgba(16,25,23,0) 100%),var(--cover-image)}
html[data-theme="dark"] .page-stage.has-cover::before{background-image:linear-gradient(180deg,rgba(10,27,30,.45) 0%,rgba(14,43,45,.44) 55%,rgba(16,25,23,.12) 100%),var(--cover-image)}
html[data-theme="dark"] .page-stage.has-cover::after{background-image:linear-gradient(180deg,rgba(8,29,32,.53),rgba(9,37,40,.23) 58%,rgba(15,40,43,.07)),var(--cover-image)}
html[data-theme="dark"] .home-stage:not(.has-cover) .weather-panel{color:#e5f5ed}
html[data-theme="dark"] .home-stage:not(.has-cover) .weather-day{background:#294239b0;border-color:#658c77;color:#e8f8ed}
html[data-theme="dark"] .home-stage:not(.has-cover) .weather-now-meta{border-color:#4b7158}
html[data-theme="dark"] .toast{background:#34533d;border:1px solid #769e7f;color:#fff}
@media(max-width:700px){
  html[data-theme="dark"] body{background:var(--bg)}
  html[data-theme="dark"] .topbar{background:#15211e}
}
@media(prefers-reduced-motion:reduce){.theme-option{transition:none}}
