/* Appearance uses the same green/gold language in both themes. Photos stay original. */
:root{color-scheme:light}
.theme-control{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap;flex-shrink:0}
.theme-control>select{width:auto;margin:0;padding:8px 10px;font-size:12px;min-height:40px}
.login .theme-control{justify-content:flex-end;margin-bottom:28px}
@media(max-width:1200px){.theme-control>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}}
@media(max-width:800px){.topbar nav{order:3}.topbar .theme-control{margin-left:auto}.theme-control>select{max-width:155px;font-size:13px!important}}
@media screen{
  :root[data-theme="dark"]{color-scheme:dark;color:#e4ece5;background:#121a16;--green:#a9d3b7;--muted:#afbaad;--line:#3c4b40;--cream:#121a16;--gold:#e4b876}
  [data-theme="dark"] :is(button,input,select,textarea){background:#233229;border-color:#4a5b4d;color:#e4ece5}
  [data-theme="dark"] :is(input,textarea)::placeholder{color:#a7b2a5;opacity:1}
  [data-theme="dark"] button:hover{background:#344b3b}
  [data-theme="dark"] :is(.topbar,.recipe-card,.week-panel,.shopping-main,.surface,dialog,.nutrition-board,.meal-slot){background:#1b2820;border-color:#3c4b40}
  [data-theme="dark"] :is(.day-card.filled,.meal-slot.has-meal){background:#223027;border-color:#4a604b}
  [data-theme="dark"] :is(.day-card,.recipe-notes,.nutrition-editor,.family-recipe,.review-check,.empty){background:#202e25;border-color:#455844}
  [data-theme="dark"] :is(.week-toolbar,.family-pill,.count-badge,.shopping-note){background:#29372a;border-color:#46543e;color:#c5d2bc}
  [data-theme="dark"] :is(.muted,.eyebrow,.recipe-kicker,.recipe-meta,.recipe-notes,.week-switch small,.shopping-item small,.form-grid small,.ingredients small,.choose-recipe small,.nutrition-heading p:not(.eyebrow),.nutrition-scope,.nutrition-info,.ring-caption,.nutrition-bottom small,.nutrition-unit,.meal-slot-heading>span,footer,.login p,.amount-label,.dropzone,.evening-label span,.ring-count small,.meat-budget span,.coverage p){color:#b0bdac}
  [data-theme="dark"] :is(.day-heading span:not(.day-tag),.remove){color:#b0bdac}
  [data-theme="dark"] :is(.text-button,.aisle h3,.step-counter,.provenance-filters>label,.meal-slot-heading strong,.nutrition-info summary,.big-number){color:#b9d6ad}
  [data-theme="dark"] :is(nav button,.title-button,.text-button,.remove,.dropzone,.evening-label input,.toolbar-actions button,dialog .close){background:transparent}
  [data-theme="dark"] :is(nav .active,.origin-label,.status-label,.week-goals .met,.leftover-label){background:#304934;color:#d1e8c6;border-color:#55734e}
  [data-theme="dark"] :is(.notice,.day-tag,.status-label.draft,.week-goals span){background:#3e3422;color:#f0d5a3;border-color:#d4a252}
  [data-theme="dark"] :is(.warning,.source-notes,.unknown-count,.meat-budget.over strong){color:#f0bf7c}
  [data-theme="dark"] :is(.primary,#toast,.timer){background:#416d52;border-color:#588462;color:#fff}
  [data-theme="dark"] .primary:hover{background:#4c7d5e}
  [data-theme="dark"] :is(#toast.error,#login-error){color:#ffe0d7}
  [data-theme="dark"] #toast.error{background:#793e31}
  [data-theme="dark"] .timer.finished{background:#765217}
  [data-theme="dark"] .timer button{background:#233d2b;color:white}
  [data-theme="dark"] :is(.meal-component,.evening-label,.prep-item,.shopping-item,.shopping-line,.ingredients li,.nutrition-bottom){border-color:#3c4b40}
  [data-theme="dark"] .shopping-note hr{border-color:#4e5f45}
  [data-theme="dark"] :is(.day-card.drag-over,.meal-slot.drag-over){background:#345137;outline-color:#b4cf87}
  [data-theme="dark"] .photo-button{background:#314333}
  [data-theme="dark"] .nutrition-card{--accent:#91c98e;background:#293b2b}
  [data-theme="dark"] .food-legumes{--accent:#e4ae78;background:#3d3025}
  [data-theme="dark"] .food-wholegrain{--accent:#e6c574;background:#3d3723}
  [data-theme="dark"] .food-fish{--accent:#8fc6da;background:#253b43}
  [data-theme="dark"] .food-meatFree{--accent:#b3c889;background:#333d28}
  [data-theme="dark"] .nutrition-card:hover{filter:brightness(1.13)}
  [data-theme="dark"] .ring-track{stroke:#81927b;opacity:.35}
  [data-theme="dark"] .budget-slots span{background:#40503d}
  [data-theme="dark"] .budget-slots .used{background:#d5b37f}
  [data-theme="dark"] .budget-slots .used.beyond{background:#e7946d}
  [data-theme="dark"] .coverage-days>span{background:#2c352a;border-color:#526049;color:#bec9b3}
  [data-theme="dark"] .coverage-days .known-day{background:#365139;color:#d5ebc7;border-color:#688159}
  [data-theme="dark"] .coverage-days .unknown-day{background:#463b28;color:#f0d5a3}
  [data-theme="dark"] .nutrition-tip{background:#2c412b}
  [data-theme="dark"] .nutrition-tip>span{color:#b9cbaa}
  [data-theme="dark"] :is(.nutrition-tip button,.mobile-jumps a){background:#26392b;color:#d9e9d2}
  [data-theme="dark"] :focus-visible{outline-color:#f0c173}
  [data-theme="dark"] ::selection{background:#63835a;color:white}
}
@media print{.theme-control{display:none!important}:root{color-scheme:light}}
