/* Supper 2.4 — accessible saved colour themes and compact week actions */
.plan-actions{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) auto;gap:7px}
.plan-actions .btn{min-width:0;white-space:nowrap;font-size:12px}
.plan-actions .clear-week-btn{padding:10px 12px;border:1px solid #e6d6d0;background:var(--paper);color:#a64e43;font-weight:720}
.plan-actions .clear-week-btn:focus-visible{outline:3px solid #bc7e74;outline-offset:2px}
.settings-save-note{margin:-8px 0 18px;font-size:12px;color:var(--green);font-weight:650;line-height:1.45}
.theme-switch-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);border-radius:13px;padding:13px 14px;margin:6px 0 18px;cursor:pointer;background:var(--paper)}
.theme-switch-row>span:first-child{display:flex;flex-direction:column;gap:3px}
.theme-switch-row strong{font-size:14px;color:var(--ink)}
.theme-switch-row small{font-size:11px;color:var(--muted)}
.switch-control{position:relative;width:49px;height:29px;flex-shrink:0}
.switch-control input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2}
.switch-track{display:block;width:49px;height:29px;border-radius:99px;background:#c2cdc3;transition:background .15s;position:relative}
.switch-track:before{content:'';position:absolute;top:3px;left:3px;height:23px;width:23px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #1113;transition:transform .15s}
.switch-control input:checked + .switch-track{background:#548f64}
.switch-control input:checked + .switch-track:before{transform:translateX(20px)}
.switch-control input:focus-visible + .switch-track{outline:3px solid #779e7f;outline-offset:3px}
.settings-data{margin-top:22px;border-top:1px solid var(--line);padding-top:17px}
.settings-data h3{margin:0 0 7px;font-size:16px}
.settings-data p{margin-bottom:12px;line-height:1.5}
.settings-data-actions{display:flex;gap:8px;flex-wrap:wrap}
.settings-data-actions .btn{font-size:12px;padding:9px 10px;min-height:39px}
@media(max-width:400px){
  .plan-actions{gap:6px}
  .plan-actions .btn{font-size:11px;padding:10px 4px}
  .plan-actions .clear-week-btn{font-size:10px;padding:10px 7px}
}
:root[data-theme='dark']{
  color-scheme:dark;
  --bg:#111914;
  --paper:#1b271f;
  --ink:#edf3eb;
  --deep:#426f51;
  --green:#93c49f;
  --muted:#afc0b0;
  --line:#35473a;
  --shadow:none;
}
[data-theme='dark'] body{background:var(--bg);color:var(--ink)}
[data-theme='dark'] .header{border-color:var(--line)}
[data-theme='dark'] .brand{color:var(--ink)}
[data-theme='dark'] .brand-symbol{background:#365e44;color:#f2f8f2}
[data-theme='dark'] .icon-btn{background:#26362c;color:var(--ink);border-color:var(--line)}
[data-theme='dark'] .bottom-nav{background:rgba(25,37,29,.97);border-color:#36463b;box-shadow:0 -6px 25px #0006}
[data-theme='dark'] .nav-btn{color:#b0c4b4}
[data-theme='dark'] .nav-btn.active{background:#32483a;color:#d3efdc}
[data-theme='dark'] .section-overline{color:#9fc3a9}
[data-theme='dark'] .quiet-control{color:#daeada;border-color:var(--line);background:var(--paper)}
[data-theme='dark'] .quiet-control span{color:#9cbea4}
[data-theme='dark'] .week-switch,[data-theme='dark'] .compact-summary,[data-theme='dark'] .day-card,[data-theme='dark'] .shop-tools,[data-theme='dark'] .shop-list,[data-theme='dark'] .recipe-card,[data-theme='dark'] .panel,[data-theme='dark'] .price-panel,[data-theme='dark'] .searchbar,[data-theme='dark'] .empty-state,[data-theme='dark'] .modal,[data-theme='dark'] .theme-switch-row{background:var(--paper);border-color:var(--line);color:var(--ink)}
[data-theme='dark'] .week-switch .round-btn,[data-theme='dark'] .swap-btn,[data-theme='dark'] .price-manual-btn,[data-theme='dark'] .close-btn,[data-theme='dark'] .empty-icon{background:#2b3c31;border-color:#46604b;color:#d3e6d6}
[data-theme='dark'] .today-link,[data-theme='dark'] .back-link,[data-theme='dark'] .text-link,[data-theme='dark'] .link-button,[data-theme='dark'] .inline-pref{color:#9ed3a9}
[data-theme='dark'] .btn{background:#3d7752;color:#fff}
[data-theme='dark'] .btn.secondary{background:#304436;color:#e3f4e5;border:1px solid #4b6651}
[data-theme='dark'] .btn.secondary:hover,[data-theme='dark'] .btn.ghost:hover{background:#39543f}
[data-theme='dark'] .btn.ghost{background:transparent;color:#d5ead9;border-color:var(--line)}
[data-theme='dark'] .plan-actions .clear-week-btn{background:#3a2c2a;color:#ffd3c8;border:1px solid #80544e}
[data-theme='dark'] .compact-summary{color:#bed2bf}
[data-theme='dark'] .summary-price{color:var(--ink)}
[data-theme='dark'] .summary-price span,[data-theme='dark'] .slot-meta,[data-theme='dark'] .day-date,[data-theme='dark'] .page-intro p{color:#aebeae}
[data-theme='dark'] .day-header,[data-theme='dark'] .day-card .slot-row+.slot-row,[data-theme='dark'] .shop-item,[data-theme='dark'] .ing-row,[data-theme='dark'] .detail-section{border-color:#34463a}
[data-theme='dark'] .day-card.today{border-color:#80b28e;box-shadow:0 0 0 1px #639671}
[data-theme='dark'] .today-pill{background:#294834;color:#c5edd0}
[data-theme='dark'] .slot-label{color:#a0c3a7}
[data-theme='dark'] .slot-title,[data-theme='dark'] .day-name,[data-theme='dark'] .shop-item .item-name,[data-theme='dark'] .recipe-card h3{color:var(--ink)}
[data-theme='dark'] .empty-icon{border-style:dashed}
[data-theme='dark'] .empty-title{color:#b8c9b9}
[data-theme='dark'] .recipe-card .food-art,[data-theme='dark'] .food-art{filter:brightness(.87) saturate(.8)}
[data-theme='dark'] .filter{background:#28382e;color:#c6dcca;border-color:#415648}
[data-theme='dark'] .filter.active{background:#497b58;color:#fff;border-color:#63926c}
[data-theme='dark'] .fav-btn{background:#2e4034;color:#f1bcc2}
[data-theme='dark'] .shop-group-title,[data-theme='dark'] .quick-title{color:#b6cdb9}
[data-theme='dark'] .shop-item.done .item-name{color:#819786}
[data-theme='dark'] .shop-tools .progress{background:#304036}
[data-theme='dark'] .shop-tools .progress div{background:#76b889}
[data-theme='dark'] .shop-item input{accent-color:#71b587}
[data-theme='dark'] .pantry-tag{background:#293b2f;border-color:#45634a}
[data-theme='dark'] .pantry-tag .pantry-edit{color:#e1f0e3}
[data-theme='dark'] .pantry-tag .pantry-edit small,[data-theme='dark'] .pantry-offset{color:#aac8b0}
[data-theme='dark'] .pantry-tag>button:last-child{color:#b6cabb}
[data-theme='dark'] .suggest-items button{background:#2b3e31;color:#c1d7c2;border-color:#59705a}
[data-theme='dark'] .pantry-add-grid input,[data-theme='dark'] .pantry-add-grid select,[data-theme='dark'] .add-inline input,[data-theme='dark'] .field input,[data-theme='dark'] .field select,[data-theme='dark'] .field textarea,[data-theme='dark'] .ai-workbench textarea,[data-theme='dark'] .ai-swap-select select,[data-theme='dark'] .searchbar input,[data-theme='dark'] .check-options label{background:#243429;color:#ecf4eb;border:1px solid #475c4b}
[data-theme='dark'] .searchbar input{border:0;background:transparent}
[data-theme='dark'] input::placeholder,[data-theme='dark'] textarea::placeholder{color:#9dae9f;opacity:1}
[data-theme='dark'] input,[data-theme='dark'] select,[data-theme='dark'] textarea{color:var(--ink)}
[data-theme='dark'] .field label{color:#c2d6c5}
[data-theme='dark'] .field .hint,[data-theme='dark'] .fine-print{color:#9fb7a4}
[data-theme='dark'] .settings-save-note{color:#9cd6a8}
[data-theme='dark'] .switch-track{background:#536454}
[data-theme='dark'] .switch-control input:checked + .switch-track{background:#5ca073}
[data-theme='dark'] .detail-chip{background:#304736;color:#d1ecd4}
[data-theme='dark'] .ing-row span:last-child{color:#b7c7b7}
[data-theme='dark'] .step-no{background:#344e3b;color:#d3eed5}
[data-theme='dark'] .serving-ctrl button{background:#314236;color:#d2e9d5}
[data-theme='dark'] .picker-item{background:#223126;border-color:#3d5441;color:#e9f5e9}
[data-theme='dark'] .picker-item:hover{background:#304836}
[data-theme='dark'] .modal-overlay{background:#020a05c7}
[data-theme='dark'] .detail-head .close-btn{background:#1b2c21f2}
[data-theme='dark'] .ai-mode{background:#24372a;border-color:#425e49;color:#d4e4d7}
[data-theme='dark'] .ai-mode.selected{background:#427953;color:#fff;border-color:#508a60}
[data-theme='dark'] .ai-workbench,[data-theme='dark'] .ai-help,[data-theme='dark'] .price-result,[data-theme='dark'] .price-total,[data-theme='dark'] .scan-status,[data-theme='dark'] .ai-preview-list article{background:#1b291f;border:1px solid #3d5141;color:var(--ink)}
[data-theme='dark'] .ai-answer,[data-theme='dark'] .swap-panel{background:#213729;border-color:#3e5d45;color:#edf5ec}
[data-theme='dark'] .swap-count{background:#3a533f;color:#b9e1bf}
[data-theme='dark'] .swap-item{background:#223329;border-color:#425f47}
[data-theme='dark'] .swap-copy strong,[data-theme='dark'] .swap-head h3,[data-theme='dark'] .price-result strong{color:#e6f2e7}
[data-theme='dark'] .swap-copy span,[data-theme='dark'] .swap-applied-row span{color:#b4dcba}
[data-theme='dark'] .swap-copy small,[data-theme='dark'] .swap-disclaimer{color:#b8c9ba}
[data-theme='dark'] .swap-applied{background:#2d4733}
[data-theme='dark'] .swap-recipe-note{background:#2a4733;color:#ceefd4}
[data-theme='dark'] .price-summary span,[data-theme='dark'] .price-result small,[data-theme='dark'] .price-total small{color:#b6c8b8}
[data-theme='dark'] .price-body{border-color:var(--line)}
[data-theme='dark'] .price-right a{color:#ace3b5}
[data-theme='dark'] .price-manual-btn{background:#304b36;color:#e2f1e5}
[data-theme='dark'] .connection-link{background:#284130;border-color:#49674f;color:#dcf1df}
[data-theme='dark'] .ai-pref-line,[data-theme='dark'] .micro-badge{color:#bdd4c1}
[data-theme='dark'] .micro-badge{background:#314b38}
[data-theme='dark'] .ai-preview{border-color:#3e5642}
[data-theme='dark'] .inline-error{background:#3d2925;border-color:#825249;color:#ffd2c7}
[data-theme='dark'] .toast{background:#4a7856;color:#fff}
