.cook-shell{color-scheme:light dark;--ink:#193c2e;--muted:#586b5a;--base:#f8f9f1;--card:#fffef8;--edge:#d7dfd0;--action:#1c402f;--on:#fff;--accent:#e8efe0}
@media(prefers-color-scheme:dark){.cook-shell{--ink:#e6efe4;--muted:#b8c9b9;--base:#11271e;--card:#193528;--edge:#395647;--action:#bcd4ad;--on:#153524;--accent:#234333}}
.cook-shell,.cook-shell *{box-sizing:border-box}body.cook-shell{margin:0;background:var(--base);color:var(--ink);font:1rem/1.55 system-ui,sans-serif}
.cook-shell a{color:inherit;text-underline-offset:.22em}.cook-shell :is(button,input,select,textarea){font:inherit;color:inherit}.cook-shell :is(button,select,input,textarea){border:1px solid var(--edge);border-radius:.65rem;background:var(--card);padding:.48rem .72rem}.cook-shell button{cursor:pointer}.cook-shell button:disabled{opacity:.5;cursor:default}.cook-shell textarea{width:100%;resize:vertical}.cook-shell label{display:grid;gap:.24rem}
.cook-shell :is(button[aria-current=true],button[aria-pressed=true],.cook-primary){background:var(--action);color:var(--on);border-color:var(--action)}
.cook-shell :is(button,a,input,select,textarea):focus-visible{outline:2px solid currentColor;outline-offset:3px}
.cook-header{display:flex;align-items:center;gap:1rem;padding:.65rem max(1rem,calc((100vw - 72rem)/2));border-bottom:1px solid var(--edge);background:var(--card)}.cook-header button{margin-left:auto}.cook-brand{text-decoration:none;font:2rem Georgia,serif}
.cook-main{color:var(--ink);width:min(72rem,calc(100% - 2rem));margin:1.5rem auto 7rem}.cook-shell :is(h1,h2,h3){font-family:Georgia,serif;line-height:1.15;margin:.2em 0 .4em}.cook-shell h1{font-size:clamp(2rem,5vw,4rem)}.cook-shell h2{font-size:clamp(1.45rem,3vw,2.25rem)}.cook-shell p{margin:.35rem 0 .75rem}.cook-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.4rem 1rem}.cook-title p{flex-basis:100%;color:var(--muted);min-height:1.55em}
#views,.cook-toolbar,.cook-chips,.cook-controls{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}#views{margin-bottom:1rem}#views button{flex:1}.cook-toolbar{align-items:end;margin:.5rem 0 1rem}
.cook-card,.cook-panel{border:1px solid var(--edge);background:var(--card);border-radius:1rem;padding:clamp(.8rem,2vw,1.35rem);min-width:0}.cook-panel+.cook-panel{margin-top:1rem}.cook-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:.75rem}.cook-grid .cook-panel{margin:0}.cook-muted{color:var(--muted)}.cook-chip{display:inline-flex;background:var(--accent);padding:.24rem .55rem;border-radius:1rem;margin:.18rem 0}.cook-matches{margin-top:1rem}.cook-card{display:grid;align-content:start;gap:.45rem}.cook-card img{width:100%;height:8rem;object-fit:cover;border-radius:.65rem}.cook-step-image{display:block;max-width:100%;max-height:18rem;object-fit:contain}.cook-card p{margin:0}
.cook-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(14rem,1fr);gap:.75rem}.cook-columns>.cook-panel{margin:0}.cook-instruction{font-size:clamp(1.15rem,3vw,1.7rem)}.cook-check{display:flex;align-items:start;gap:.5rem}.cook-check input{margin-top:.45em;accent-color:var(--action)}.cook-list{padding-left:1.2rem}.cook-list li{margin:.35rem 0}.cook-portion{width:6rem}
#alarms{position:sticky;bottom:.5rem;border:1px solid var(--edge);border-radius:1rem;background:var(--card);padding:.6rem .9rem;margin-top:.8rem;box-shadow:0 .3rem 1.3rem #0002;max-height:35dvh;overflow:auto}#alarms[hidden]{display:none}.cook-timer{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;padding:.25rem 0}.cook-clock{font-variant-numeric:tabular-nums;font-weight:700}
@media(max-width:650px){.cook-columns{grid-template-columns:1fr}.cook-header{gap:.55rem}.cook-header button{font-size:.8rem}.cook-main{margin-top:.9rem}#views button{padding:.4rem;white-space:nowrap}}

:root[data-cook-theme=light] .cook-shell, :root[data-botani-theme=light] .cook-shell, :root[data-cook-theme=light] body.cook-shell{color-scheme:light;--ink:#193c2e;--muted:#586b5a;--base:#f8f9f1;--card:#fffef8;--edge:#d7dfd0;--action:#1c402f;--on:#fff;--accent:#e8efe0}
:root[data-cook-theme=dark] .cook-shell, :root[data-botani-theme=dark] .cook-shell, :root[data-cook-theme=dark] body.cook-shell{color-scheme:dark;--ink:#e6efe4;--muted:#b8c9b9;--base:#11271e;--card:#193528;--edge:#395647;--action:#bcd4ad;--on:#153524;--accent:#234333}

.cook-kitchen-link{border-left:1px solid var(--edge);padding-left:.9rem;text-decoration:none}
.kitchen-nav{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}
#views>a,#views>button{display:inline-flex;justify-content:center;align-items:center;flex:0 1 auto;white-space:nowrap;border:1px solid var(--edge);border-radius:100vw;background:var(--card);color:var(--ink);text-decoration:none;padding:.36rem .82rem;font-size:.9rem}
#views>button[aria-current=true]{color:var(--on);background:var(--action);border-color:var(--action)}
.cook-week-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;margin:.75rem 0 1rem}
.cook-week-toolbar button[aria-label]{min-width:2.5rem;font-size:1.1rem;line-height:1.1}
.cook-week-toolbar strong{min-width:10rem;text-align:center}
.cook-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.5rem}
.cook-day{min-width:0;display:grid;grid-template-rows:auto repeat(3,minmax(6.6rem,1fr));gap:.4rem}
.cook-day>h3{font:650 .85rem/1.2 system-ui,sans-serif;padding:.3rem .35rem;margin:0;border-radius:.45rem}
.cook-today>h3{background:var(--action);color:var(--on)}
.cook-meal{min-width:0;border-radius:.7rem;padding:.48rem;background:var(--accent);border:1px solid var(--edge);display:flex;flex-direction:column;align-items:stretch;gap:.32rem}
.cook-meal-breakfast{background:color-mix(in srgb,var(--card) 88%,#d0a954)}
.cook-meal-lunch{background:color-mix(in srgb,var(--card) 85%,#84a773)}
.cook-meal-dinner{background:color-mix(in srgb,var(--card) 86%,#9ba5c9)}
.cook-meal h4,.cook-list-group h4{margin:0;font-size:.8rem}
.cook-meal>button{margin-top:auto;align-self:flex-start}
.cook-meal button{font-size:.77rem;padding:.17rem .4rem}
.cook-meal-entry{overflow-wrap:anywhere;font-size:.83rem;border-top:1px solid var(--edge);padding:.28rem 0}
.cook-meal-entry small{display:block;color:var(--muted)}
.cook-meal-entry button+button{margin-left:.2rem}
.cook-meal-editor{margin-bottom:1rem;padding:.8rem;border:1px solid var(--edge);border-radius:.75rem;background:var(--accent)}
.cook-meal-editor .cook-toolbar{margin:0}
.cook-meal-editor label[hidden]{display:none}
.cook-weekly-list{margin-top:1rem}
.cook-list-group{padding:.55rem 0;border-top:1px solid var(--edge)}
.cook-list-group h4{font-size:1rem}
@media(max-width:850px){
  .cook-week{grid-template-columns:1fr}
  .cook-day{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto 1fr;gap:.35rem}
  .cook-day>h3{grid-column:1/-1}
}
.cook-week-jump{display:inline-block;margin:-.35rem 0 .8rem;font-size:.88rem}
.cook-day-strip{display:none}
.cook-meal-entry[draggable=true]{cursor:grab}
.cook-meal-entry[draggable=true]:active{cursor:grabbing}
.cook-week-toolbar+.cook-meal-editor{margin-top:.5rem}
.cook-week-toolbar~button+.cook-week-jump{margin:.5rem}
@media(max-width:850px){
 .cook-day-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.22rem;margin:.65rem 0}
 .cook-day-strip button{font-size:.75rem;line-height:1.2;white-space:normal;padding:.35rem .12rem;min-height:2.6rem}
 .cook-day:not(.cook-active-day){display:none}
 .cook-day{grid-template-columns:1fr;grid-template-rows:auto repeat(3,auto)}
 .cook-day>h3{grid-column:auto}
}

.cook-meal-uses{font-size:.8rem;color:var(--muted)}.cook-meal-uses summary{cursor:pointer}
.cook-preview-narrow{max-width:390px}.cook-preview-narrow .cook-columns{grid-template-columns:1fr}
