/* GENERATED by tools/gen_dark.py from styles.css. Edit tools/dark_overrides.css for hand tweaks. */
html[data-theme=dark]{color-scheme:dark;--ink:#e6eee8;--muted:#94a59b;--paper:#0e1612;--surface:#15201a;--line:#243229;--green:#86bb94;--green-dark:#3b6b4b;--sand:#1c2820;--pie-empty:#243229}
html[data-theme=dark] .side-label{color:#acb4af}
html[data-theme=dark] .sync-card div span{color:#9ea8a2}
html[data-theme=dark] .topbar{border-bottom:1px solid #2f3c34}
html[data-theme=dark] .breadcrumbs b{color:#c6ccc7}
html[data-theme=dark] .icon-button,html[data-theme=dark] .mobile-menu{color:#bdc3be}
html[data-theme=dark] .page h1{color:#dae1dd}
html[data-theme=dark] .panel{border:1px solid #2e3b34}
html[data-theme=dark] .meter{background:#1a211d}
html[data-theme=dark] .bmi-marker{border:2px solid #242e28}
html[data-theme=dark] .select-small{border:1px solid #2f3c34;background:#131815;color:#b3b8b4}
html[data-theme=dark] .chart-legend{color:#b3b9b4}
html[data-theme=dark] .chart-foot{border-top:1px solid #2c3730}
html[data-theme=dark] .chart-foot span:last-child{color:#b0bdb3}
html[data-theme=dark] .diary-meal-head{border-bottom:1px solid #2b3730}
html[data-theme=dark] .food-avatar{background:#1a221d;color:#b4bfb1}
html[data-theme=dark] .diary-macros{border-bottom:1px solid #2d3932}
html[data-theme=dark] .diary-macros b{color:#c1c9c2}
html[data-theme=dark] .search-box{border:1px solid #303d35}
html[data-theme=dark] .filter-tab.active{background:#1d2520;color:#bdd0c1}
html[data-theme=dark] .filter-tab span{background:#11151399}
html[data-theme=dark] .food-table th{background:#141916}
html[data-theme=dark] .food-table td{border-bottom:1px solid #2b3730;color:#b1b7b3}
html[data-theme=dark] .food-name strong{color:#cad1cb}
html[data-theme=dark] .food-emoji{background:#1a211c}
html[data-theme=dark] .tag{background:#1a221d}
html[data-theme=dark] .shared-tag{background:#1a211d}
html[data-theme=dark] .history-list{border-top:1px solid #2c3730}
html[data-theme=dark] .history-row{border-bottom:1px solid #2b362f}
html[data-theme=dark] .history-row strong{color:#bdc6bd}
html[data-theme=dark] .modal{background:#131916}
html[data-theme=dark] .form-field>span{color:#b6bcb7}
html[data-theme=dark] .form-field input{border:1px solid #303d35;color:#cfd7d0}
html[data-theme=dark] .secondary-button{border:1px solid #313e36}
html[data-theme=dark] .auth-note{border-top:1px solid #2d3932}
html[data-theme=dark] .meal-tab{border:1px solid #2f3b34}
html[data-theme=dark] .meal-tab.active{background:#1c2420;color:#bbcebe;border-color:#324037}
html[data-theme=dark] .log-food-item{border-bottom:1px solid #2b3730}
html[data-theme=dark] .log-food-item button{background:#1a211c;color:#b4c6b6}
html[data-theme=dark] .quick-add{border-top:1px solid #2d3932}
html[data-theme=dark] .account-tabs{border-bottom:1px solid #2e3b33}
html[data-theme=dark] .account-tab.active{color:#bccec0}
html[data-theme=dark] .fat-details-toggle{color:#b7caba}
html[data-theme=dark] .fat-details{background:#1a211d;border:1px solid #303e36}
html[data-theme=dark] .edit-entry{color:#b2c4b3}
@media(max-width:760px){
  html[data-theme=dark] .bottom-nav{background:#131916;border-top:1px solid #303d35}
  html[data-theme=dark] .bottom-nav button{color:#9da39d}
  html[data-theme=dark] .bottom-nav button.active{color:#b7cfbe}
}
html[data-theme=dark] .topbar{border-color:#303d35}
html[data-theme=dark] .page h1{color:#d2e1d8}
html[data-theme=dark] .diary-summary{background:#1a211d}
html[data-theme=dark] .food-table th{background:#181e1b}
html[data-theme=dark] .food-table tbody tr:hover{background:#151a17}
html[data-theme=dark] .filter-tab.active{background:#202923;color:#c0d5c4}
html[data-theme=dark] .footer-note{border-top:1px solid #2f3c35}
html[data-theme=dark] .portion-editor{border:1px solid #323f37;background:#181e1b}
html[data-theme=dark] .portion-editor label>span{color:#b4bcb4}
html[data-theme=dark] .portion-input-wrap{border:1px solid #324037}
html[data-theme=dark] .portion-input-wrap input{color:#d0ddd4}
html[data-theme=dark] .portion-preview{color:#c0d6c4}
html[data-theme=dark] .modal{border:1px solid #303d35}
@media(max-width:760px){
  html[data-theme=dark] .bottom-nav button.active{color:#c1d8c8}
}
html[data-theme=dark] .plan-card pre{color:#b3bab5;background:#171d19}
html[data-theme=dark] .modal textarea{border:1px solid #303d35;color:#cfd7d0}
html[data-theme=dark] .modal select{border:1px solid #303d35;color:#cfd7d0}
html[data-theme=dark] .sync-status{background:#1a211c;color:#e9d6b5;border:1px solid #574a2e}
html[data-theme=dark] .sync-status[data-state=error]{background:#171d19;color:#dbafaf;border-color:#4b2b2b}
html[data-theme=dark] .ring-graphic b.over{color:#d9a890}
html[data-theme=dark] .ring-arc{stroke:#b9cfbd}
html[data-theme=dark] .ring-arc.ring-protein{stroke:#9892b3}
html[data-theme=dark] .day.below .dot{background:#382d1f;border-color:#5c4a35;color:#dec8ae}
html[data-theme=dark] .day.above .dot{background:#3b281f;color:#e3b8a6}
/* Hand-written dark-mode fixes that the generator cannot infer (inline SVG colours etc.). */
html[data-theme=dark] svg line[stroke="#edf0e9"]{stroke:#243229}
html[data-theme=dark] svg circle[fill="#fff"]{fill:#15201a}
html[data-theme=dark] svg text{fill:#7d8f84}
html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select{background-color:var(--surface);color:var(--ink)}
html[data-theme=dark] .search-box input,html[data-theme=dark] .portion-input-wrap input{background:transparent}
html[data-theme=dark] ::placeholder{color:#6f8077}
html[data-theme=dark]{--green-text:#86bb94;--muted:#9db0a4;--macro-protein:#7fa8e0;--macro-carbs:#e0a24a;--macro-fat:#e48a9b;--macro-fiber:#84c07e;--shadow-sm:0 1px 3px rgba(0,0,0,.4);--shadow-md:0 4px 14px rgba(0,0,0,.45);--shadow-lg:0 16px 40px rgba(0,0,0,.55)}
