/* Layout: one kitchen-table column; sticky top bar with tabs on desktop, thumb bar on phones; recipes open in a full sheet. */
:root{
  --bg:#F2F4EC; --surface:#FFFFFF; --surface-2:#E7EBDD; --ink:#1B2318; --muted:#5C6853; --line:#D3DAC6;
  --basil:#2E5B32; --basil-soft:#DCE8D3; --pepper:#C63F27; --pepper-hover:#AE3520; --on-pepper:#FFFFFF; --saffron:#E0A42A;
  --tint-m:#F6E7C2; --tint-d:#D9E7D0; --tint-e:#F4D9D2; --tint-c:#DCE3F0; --seg-on:#FFFFFF;
  --good:#2E7D4F; --warn:#B7791F;
  --shadow:0 1px 2px rgba(27,35,24,.06),0 10px 30px rgba(27,35,24,.08);
  --font-display:"Bricolage Grotesque","Avenir Next","Segoe UI",system-ui,sans-serif;
  --font-body:"Figtree","Avenir Next","Segoe UI",system-ui,sans-serif;
  --r:16px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#131711; --surface:#1B2019; --surface-2:#252C22; --ink:#ECF0E5; --muted:#A3AE98; --line:#323B2E;
  --basil:#93C985; --basil-soft:#253522; --pepper:#E5604A; --pepper-hover:#F07560; --on-pepper:#1A0F0C; --saffron:#EDBB4C;
  --tint-m:#3A321E; --tint-d:#24341F; --tint-e:#3B2621; --tint-c:#232B3A; --seg-on:#3A4435;
  --good:#6FCB91; --warn:#E7B45A;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 10px 30px rgba(0,0,0,.35); color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#131711; --surface:#1B2019; --surface-2:#252C22; --ink:#ECF0E5; --muted:#A3AE98; --line:#323B2E;
  --basil:#93C985; --basil-soft:#253522; --pepper:#E5604A; --pepper-hover:#F07560; --on-pepper:#1A0F0C; --saffron:#EDBB4C;
  --tint-m:#3A321E; --tint-d:#24341F; --tint-e:#3B2621; --tint-c:#232B3A; --seg-on:#3A4435;
  --good:#6FCB91; --warn:#E7B45A;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 10px 30px rgba(0,0,0,.35); color-scheme:dark}

*{box-sizing:border-box}
html,body{margin:0}
img{max-width:100%}
body{padding-top:env(safe-area-inset-top,0px)}
[hidden]{display:none!important}
html,body{background:var(--bg)}
body{color:var(--ink);font-family:var(--font-body);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--saffron);outline-offset:2px;border-radius:8px}
h1,h2,h3{font-family:var(--font-display);line-height:1.1;margin:0;text-wrap:balance;letter-spacing:-.01em}
p{margin:0}
.muted{color:var(--muted)}
.eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}

/* top bar */
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:30;background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.top-in{max-width:1120px;margin:0 auto;padding-inline:16px;padding-block:10px;display:flex;align-items:center;gap:16px}
.logo{display:flex;align-items:center;gap:8px;font-family:var(--font-display);font-weight:800;font-size:1.45rem;letter-spacing:-.03em;background:none;border:0;padding:0}
.logo b{color:var(--pepper)}
.logo svg{width:30px;height:30px}
.tabs{display:none;gap:4px;margin-left:auto;flex-wrap:wrap}
.tabs button{border:0;background:none;padding:8px 12px;border-radius:999px;font-weight:600;color:var(--muted);display:flex;align-items:center;gap:6px}
.tabs button:hover{color:var(--ink);background:var(--surface-2)}
.tabs button[aria-current="page"]{color:var(--ink);background:var(--surface-2)}
.tabs svg{width:18px;height:18px}
.badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--pepper);color:var(--on-pepper);font-size:.7rem;font-weight:700;font-variant-numeric:tabular-nums}
.badge:empty{display:none}
.who{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:.85rem;color:var(--muted)}
.who img{width:28px;height:28px;border-radius:50%}
.who-name{max-width:14ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:520px){.who-name{display:none}}
.btn .g-ic{display:none}
@media (min-width:860px){.tabs{display:flex}.who{margin-left:0}}

/* bottom nav */
.bnav{position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px);display:grid;grid-template-columns:repeat(6,1fr)}
.bnav button{border:0;background:none;padding:8px 2px 7px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:.68rem;font-weight:600;color:var(--muted);position:relative}
.bnav button[aria-current="page"]{color:var(--pepper)}
.bnav svg{width:22px;height:22px}
.bnav .badge{position:absolute;top:3px;left:calc(50% + 6px)}
@media (min-width:860px){.bnav{display:none}}

.wrap{max-width:1120px;margin:0 auto;padding-inline:20px;padding-block:28px 120px}
@media (max-width:560px){.wrap{padding-inline:16px;padding-block:20px 110px}}
.view{display:flex;flex-direction:column;gap:40px}
@media (max-width:560px){.view{gap:32px}}
.vhead{display:flex;flex-direction:column;gap:6px}
.vhead h1{font-size:clamp(1.9rem,5vw,2.8rem);font-weight:800}

/* segmented filters */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:24px;display:flex;flex-direction:column;gap:20px;box-shadow:var(--shadow)}
@media (max-width:560px){.panel{padding:18px;border-radius:20px}}
.fgroup{display:flex;flex-direction:column;gap:8px}
.fgroup > span{font-weight:700;font-size:.95rem}
.seg{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));gap:4px;background:var(--surface-2);padding:4px;border-radius:14px}
.seg button{border:0;background:none;border-radius:11px;min-height:46px;padding:6px 8px;font-weight:600;font-size:.92rem;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;line-height:1.2;text-align:center;transition:background .15s,color .15s,box-shadow .15s}
.seg button small{font-size:.72rem;font-weight:500;opacity:.8}
.seg button:hover{color:var(--ink)}
.seg button[aria-pressed="true"]{background:var(--seg-on);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.08),0 2px 8px rgba(0,0,0,.06)}
@media (max-width:420px){.seg button{font-size:.84rem;padding:6px 4px}}
.chip{border:1px solid var(--line);background:var(--surface);border-radius:999px;min-height:40px;padding:8px 16px;font-weight:600;font-size:.9rem;white-space:nowrap;flex:none}
.chip:hover{border-color:var(--muted)}
.chip[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}

/* generator */
.gen{max-width:760px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:20px}
.gen-head{display:flex;flex-direction:column;gap:6px;text-align:center;align-items:center;padding-top:8px}
.gen-head h1{font-size:clamp(2.3rem,7vw,3.8rem);font-weight:800;letter-spacing:-.035em}
.gen-head h1 em{font-style:normal;color:var(--pepper)}
.gen-go{display:flex;flex-direction:column;align-items:center;gap:10px;padding-top:4px}
.gen-foot{display:flex;flex-direction:column;gap:16px;align-items:center;text-align:center;padding:4px 8px 0}
.gen-foot p{max-width:46ch}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%}
@media (max-width:480px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.stats span{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 8px;font-size:.85rem;color:var(--muted);display:flex;flex-direction:column;align-items:center}
.stats strong{color:var(--ink);font-family:var(--font-display);font-size:1.5rem;line-height:1.1;font-variant-numeric:tabular-nums}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:var(--surface);border-radius:12px;min-height:44px;padding:10px 16px;font-weight:700;font-size:.92rem;line-height:1.2;transition:background .15s,border-color .15s,transform .1s}
.btn:hover{border-color:var(--muted);background:var(--surface-2)}
.btn:active{transform:scale(.98)}
.btn:disabled{opacity:.45;cursor:default}
.btn svg{width:18px;height:18px;flex:none}
.btn.primary{background:var(--pepper);color:var(--on-pepper);border-color:var(--pepper)}
.btn.primary:hover{background:var(--pepper-hover);border-color:var(--pepper-hover)}
.btn.dark{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.btn.dark:hover{background:var(--ink);opacity:.9}
.btn.ghost{border-color:transparent;background:none}
.btn.ghost:hover{background:var(--surface-2)}
.btn.small{min-height:36px;padding:6px 12px;font-size:.84rem;border-radius:10px}
.btn.on{background:var(--tint-e);border-color:var(--pepper);color:var(--pepper)}
.btn.danger{color:var(--pepper)}
.btn-gen{width:100%;min-height:62px;padding:16px 22px;font-size:1.2rem;font-family:var(--font-display);font-weight:800;border-radius:16px;letter-spacing:-.01em;box-shadow:0 6px 18px color-mix(in srgb,var(--pepper) 35%,transparent)}
.btn-gen svg{width:26px;height:26px;transition:transform .3s}
.btn-gen:hover svg{transform:rotate(90deg)}

/* generator result */
.gen-result{scroll-margin-top:80px}
.shuffle{font-family:var(--font-display);font-weight:800;font-size:clamp(1.6rem,4vw,2.4rem);text-align:center;padding:48px 16px;color:var(--muted);background:var(--surface);border:1px dashed var(--line);border-radius:22px}
.empty{background:var(--surface);border:1px dashed var(--line);border-radius:20px;padding:28px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.empty .big{font-size:2.6rem;line-height:1}
.empty h3{font-size:1.25rem}

/* recipe */
.recipe{background:var(--surface);border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:var(--shadow)}
.r-head{display:grid;grid-template-columns:auto 1fr;gap:22px;padding:24px;align-items:center}
@media (max-width:560px){.r-head{grid-template-columns:1fr;padding:20px 18px;gap:16px}.r-tile{width:88px;height:88px;font-size:48px;border-radius:22px}}
.r-tile{width:120px;height:120px;border-radius:28px;display:grid;place-items:center;font-size:64px;background:var(--tint,var(--tint-d))}
.r-title{display:flex;flex-direction:column;gap:8px;min-width:0}
.r-title h2{font-size:clamp(1.6rem,4vw,2.3rem);font-weight:800}
.meta{display:flex;flex-wrap:wrap;gap:6px}
.pill{display:inline-flex;align-items:center;gap:5px;background:var(--surface-2);border-radius:999px;padding:4px 10px;font-size:.82rem;font-weight:600;font-variant-numeric:tabular-nums}
.pill svg{width:14px;height:14px}
.pill.health{background:var(--basil-soft);color:var(--basil)}
.pill.trad{background:var(--tint-m)}
.pill.own{background:var(--tint-c)}
.r-actions{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;padding:0 22px 22px}
.r-actions .btn{min-height:48px}
@media (max-width:560px){.r-actions{grid-template-columns:1fr 1fr;padding:0 18px 18px}.r-actions .btn{font-size:.86rem;padding:10px 10px}.r-actions .btn.dark{grid-column:1/-1;order:-1}}
.r-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);border-top:1px solid var(--line)}
@media (max-width:760px){.r-body{grid-template-columns:1fr}}
.r-body > section{padding:22px;display:flex;flex-direction:column;gap:14px;min-width:0}
.r-body > section + section{border-left:1px solid var(--line)}
@media (max-width:760px){.r-body > section + section{border-left:0;border-top:1px solid var(--line)}}
.r-body h3{font-size:1.2rem}
.sec-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.stepper{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;overflow:hidden}
.stepper button{border:0;background:none;width:40px;height:38px;font-size:1.2rem;font-weight:700}
.stepper button:hover{background:var(--surface-2)}
.stepper span{min-width:92px;text-align:center;font-size:.85rem;font-weight:600;font-variant-numeric:tabular-nums}
.ings{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.ings li{border-bottom:1px solid var(--line)}
.ings li:last-child{border-bottom:0}
.ings label{display:flex;gap:10px;align-items:flex-start;padding:9px 0;cursor:pointer}
.ings input{margin-top:4px;accent-color:var(--basil);width:17px;height:17px;flex:none}
.ings input:checked + span{text-decoration:line-through;color:var(--muted)}
.ings .alt{display:block;font-size:.8rem;color:var(--muted)}
.ings .have{color:var(--good);font-size:.75rem;font-weight:700;margin-left:6px}
.steps{list-style:none;margin:0;padding:0;counter-reset:s;display:flex;flex-direction:column;gap:14px}
.steps li{counter-increment:s;display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:start}
.steps li::before{content:counter(s);width:30px;height:30px;border-radius:50%;background:var(--ink);color:var(--bg);display:grid;place-items:center;font-weight:700;font-size:.9rem;font-family:var(--font-display)}
.steps .tbtn{margin-top:6px}

/* cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}
@media (max-width:480px){.grid{grid-template-columns:1fr 1fr;gap:12px}.card .tile{font-size:44px}.card .cb{padding:10px 12px 12px}.card h3{font-size:.98rem}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column;text-align:left;padding:0;position:relative;transition:transform .15s,box-shadow .15s}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.card .tile{aspect-ratio:16/10;max-width:100%;display:grid;place-items:center;font-size:58px;background:var(--tint,var(--tint-d))}
.card .cb{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px;flex:1}
.card h3{font-size:1.08rem;font-weight:700}
.card .cm{display:flex;gap:10px;flex-wrap:wrap;font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums;margin-top:auto}
.card .cm span{display:inline-flex;align-items:center;gap:4px}
.card .cm svg{width:13px;height:13px}
.card .open{position:absolute;inset:0;border:0;background:none;border-radius:var(--r);z-index:1}
.heart{position:absolute;top:10px;right:10px;z-index:2;width:36px;height:36px;border-radius:50%;border:0;background:color-mix(in srgb,var(--surface) 85%,transparent);display:grid;place-items:center;color:var(--muted)}
.heart svg{width:19px;height:19px}
.heart[aria-pressed="true"]{color:var(--pepper)}
.heart[aria-pressed="true"] svg{fill:currentColor}
.matchbar{height:6px;border-radius:3px;background:var(--surface-2);overflow:hidden}
.matchbar i{display:block;height:100%;background:var(--good);border-radius:3px}
.miss{font-size:.8rem;color:var(--muted)}
.miss b{color:var(--pepper);font-weight:600}

.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.search{flex:1 1 240px;display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;min-height:44px;padding:0 14px;min-width:0}
.search svg{width:18px;height:18px;color:var(--muted);flex:none}
.search input{border:0;background:none;padding:10px 0;width:100%;outline:none;min-width:0}
.search:focus-within{border-color:var(--ink)}
select.sel{border:1px solid var(--line);background:var(--surface);border-radius:12px;min-height:44px;padding:9px 14px;font-weight:600}
.count{font-size:.88rem;color:var(--muted);font-variant-numeric:tabular-nums}

/* home extras */
.cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.cat{border:1px solid var(--line);border-radius:var(--r);padding:16px;text-align:left;background:var(--tint,var(--surface));display:flex;flex-direction:column;gap:4px}
.cat .ce{font-size:2rem;line-height:1}
.cat strong{font-family:var(--font-display);font-size:1.1rem}
.cat small{color:var(--muted);font-variant-numeric:tabular-nums}
.cat:hover{border-color:var(--muted)}
.section{display:flex;flex-direction:column;gap:16px}
.section-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.section-h h2{font-size:1.5rem;font-weight:800}
.potd{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:18px}
@media (max-width:600px){.potd{grid-template-columns:auto 1fr}.potd .btn{grid-column:1/-1}}
.potd .r-tile{width:84px;height:84px;font-size:44px;border-radius:22px}
.potd h3{font-size:1.35rem}

/* fridge */
.fridge{display:grid;grid-template-columns:minmax(0,360px) minmax(0,1fr);gap:24px;align-items:start}
@media (max-width:860px){.fridge{grid-template-columns:1fr}}
.addrow{display:flex;gap:8px}
.addrow input{flex:1;min-width:0;min-height:44px;border:1px solid var(--line);background:var(--bg);border-radius:12px;padding:10px 14px}
.pantry{display:flex;flex-wrap:wrap;gap:6px}
.pchip{display:inline-flex;align-items:center;gap:4px;background:var(--basil-soft);color:var(--basil);border-radius:999px;padding:5px 6px 5px 12px;font-weight:600;font-size:.88rem}
.pchip button{border:0;background:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;color:inherit;font-size:1rem;line-height:1}
.pchip button:hover{background:color-mix(in srgb,var(--basil) 18%,transparent)}
.quick{display:flex;flex-wrap:wrap;gap:6px}
.quick button{border:1px dashed var(--line);background:none;border-radius:999px;min-height:34px;padding:5px 12px;font-size:.86rem;color:var(--muted)}
.quick button:hover{border-color:var(--basil);color:var(--basil)}
.check{display:flex;gap:10px;align-items:flex-start;font-size:.9rem}
.check input{accent-color:var(--basil);margin-top:3px;width:17px;height:17px}
.sticky-side{position:sticky;top:84px}
@media (max-width:860px){.sticky-side{position:static}}
.note{font-size:.82rem;color:var(--muted)}
.mlist{display:flex;flex-direction:column;gap:12px}
.mrow{display:grid;grid-template-columns:72px minmax(0,1fr);gap:16px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:12px;position:relative}
.mrow .tile{width:72px;height:72px;border-radius:16px;display:grid;place-items:center;font-size:38px;background:var(--tint,var(--tint-d))}
.mrow h3{font-size:1.08rem}
.mrow .mb{display:flex;flex-direction:column;gap:6px;min-width:0}
.mrow .mtop{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.mrow .pct{font-family:var(--font-display);font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.mrow .acts{display:flex;gap:6px;flex-wrap:wrap;position:relative;z-index:2}
.mrow .open{position:absolute;inset:0;border:0;background:none;border-radius:var(--r);z-index:1}

/* list */
.shop{display:flex;flex-direction:column;gap:18px}
.sgroup{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:8px 18px}
.sgroup h3{font-size:1rem;padding:10px 0 4px;display:flex;justify-content:space-between;gap:10px;align-items:center}
.sitem{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--line)}
.sitem label{display:flex;gap:10px;align-items:center;flex:1;cursor:pointer;min-width:0}
.sitem input{accent-color:var(--basil);width:18px;height:18px;flex:none}
.sitem input:checked + span{text-decoration:line-through;color:var(--muted)}
.sitem .x{border:0;background:none;color:var(--muted);width:28px;height:28px;border-radius:50%;font-size:1.1rem}
.sitem .x:hover{background:var(--surface-2);color:var(--pepper)}

/* forms */
.form{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:640px){.form{grid-template-columns:1fr}}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field.full{grid-column:1/-1}
.field label,.field .lbl{font-weight:700;font-size:.88rem}
.field input,.field textarea,.field select{border:1px solid var(--line);background:var(--bg);border-radius:12px;padding:10px 12px;width:100%}
.field textarea{min-height:130px;resize:vertical;line-height:1.5}
.field .hint{font-size:.8rem;color:var(--muted)}
.inline{display:flex;flex-wrap:wrap;gap:8px}
.inline label{display:inline-flex;gap:6px;align-items:center;font-weight:600;font-size:.9rem;border:1px solid var(--line);border-radius:999px;padding:6px 12px;cursor:pointer}
.inline input{accent-color:var(--pepper)}
.emojis{display:flex;flex-wrap:wrap;gap:4px}
.emojis button{width:40px;height:40px;border-radius:10px;border:1px solid transparent;background:var(--surface-2);font-size:1.3rem}
.emojis button[aria-pressed="true"]{border-color:var(--pepper);background:var(--tint-e)}
.err{color:var(--pepper);font-weight:600;font-size:.9rem}
.gate{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center}
.gate .big{font-size:3rem}
@media (max-width:560px){.gate{grid-template-columns:1fr}}

/* dialog */
dialog.sheet{border:0;padding:0;background:transparent;max-width:min(1000px,calc(100vw - 24px));width:100%;max-height:calc(100dvh - 24px);color:var(--ink)}
dialog.sheet::backdrop{background:rgba(10,14,9,.55)}
.sheet-in{position:relative}
.sheet-close{position:absolute;top:12px;right:12px;z-index:3;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--surface);font-size:1.3rem;display:grid;place-items:center}
@media (max-width:600px){dialog.sheet{max-width:100vw;max-height:100dvh;height:100dvh;margin:0}.sheet .recipe{border-radius:0;min-height:100dvh;border:0}}

/* cook mode */
.cook{position:fixed;inset:0;z-index:60;background:var(--bg);display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
.cook-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}
.cook-top strong{font-family:var(--font-display);font-size:1.1rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cook-prog{height:4px;background:var(--surface-2)}
.cook-prog i{display:block;height:100%;background:var(--pepper);transition:width .3s}
.cook-main{flex:1;overflow:auto;padding-inline:16px;padding-block:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;text-align:center}
.cook-main .num{font-family:var(--font-display);font-weight:800;color:var(--pepper);font-size:1rem;letter-spacing:.06em;text-transform:uppercase}
.cook-main .txt{font-size:clamp(1.4rem,4.2vw,2.3rem);font-family:var(--font-display);font-weight:700;max-width:28ch;line-height:1.25}
.cook-nav{display:flex;gap:10px;padding:14px 16px;border-top:1px solid var(--line)}
.cook-nav .btn{flex:1;padding:14px}

/* timer + toast */
.timer{position:fixed;right:16px;bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:70;background:var(--ink);color:var(--bg);border:0;border-radius:999px;padding:10px 16px;font-weight:700;display:flex;gap:8px;align-items:center;box-shadow:var(--shadow);font-variant-numeric:tabular-nums}
.timer.done{background:var(--pepper);color:var(--on-pepper);animation:pulse 1s infinite}
.timer svg{width:18px;height:18px}
@media (min-width:860px){.timer{bottom:24px}}
@keyframes pulse{50%{transform:scale(1.06)}}
.toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);opacity:0;z-index:80;background:var(--ink);color:var(--bg);padding:10px 18px;border-radius:999px;font-weight:600;font-size:.92rem;transition:.25s;pointer-events:none;max-width:calc(100vw - 32px);text-align:center}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media (min-width:860px){.toast{bottom:28px}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* generator: one tap + filter drawer */
.gen-panel{gap:14px}
.gen-sum{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.sum-pills{display:flex;flex-wrap:wrap;gap:6px;align-items:center;cursor:pointer;min-width:0}
.sum-pills .count{margin-left:4px}
.filters-btn{min-height:40px}
.linkish{border:0;background:none;padding:4px 0;color:var(--basil);font-weight:700;align-self:center;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.linkish:hover{text-decoration-thickness:2px}

dialog.drawer{border:0;padding:0;margin:0;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);position:fixed;inset:auto 0 0 0;width:100%;max-width:100%;max-height:88dvh;border-radius:24px 24px 0 0;overflow:hidden}
dialog.drawer::backdrop{background:rgba(10,14,9,.5)}
dialog.drawer[open]{animation:drawer-up .25s ease-out}
@keyframes drawer-up{from{transform:translateY(40px);opacity:0}}
.drawer-in{display:flex;flex-direction:column;max-height:88dvh}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 8px}
.drawer-head h2{font-size:1.4rem;font-weight:800}
.drawer-head .sheet-close{position:static}
.drawer-body{overflow:auto;padding:8px 20px 16px;display:flex;flex-direction:column;gap:20px}
.drawer-foot{display:flex;gap:10px;padding:14px 20px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--surface)}
.drawer-foot .btn.primary{flex:1;min-height:50px}
@media (min-width:760px){
  dialog.drawer{inset:0 0 0 auto;width:420px;max-height:100dvh;height:100dvh;border-radius:24px 0 0 24px}
  .drawer-in{max-height:100dvh;height:100%}
  .drawer-body{flex:1}
  dialog.drawer[open]{animation:drawer-in .25s ease-out}
  @keyframes drawer-in{from{transform:translateX(40px);opacity:0}}
}
@media (max-width:420px){.btn-gen{font-size:1.05rem;padding:14px 16px}.btn-gen svg{width:22px;height:22px}}


/* header shortcuts: saved + shopping list */
.top-icons{display:flex;gap:4px;margin-left:auto}
.icon-btn{position:relative;width:42px;height:42px;border-radius:12px;border:0;background:none;color:var(--ink);display:grid;place-items:center}
.icon-btn:hover,.icon-btn.on{background:var(--surface-2)}
.icon-btn.on{color:var(--pepper)}
.icon-btn svg{width:22px;height:22px}
.icon-btn .badge{position:absolute;top:3px;right:2px}
@media (min-width:860px){.top-icons{margin-left:8px}}
@media (max-width:859px){.who{display:none}}
.bnav{grid-template-columns:repeat(4,1fr)}

/* "Unë": account + sub-tabs */
.une-bar{display:flex;flex-direction:column;gap:14px}
.acct{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:12px 14px}
.acct img{width:40px;height:40px;border-radius:50%}
.acct-t{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.3}
.acct-t span{font-size:.85rem}
.une-bar .seg button small{font-size:.72rem;font-weight:700;color:var(--pepper);opacity:1}
.une-bar .seg button small:empty{display:none}

/* compact result card right under the button */
.gen-result:empty{display:none}
.pick{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:20px;display:flex;flex-direction:column;gap:14px;box-shadow:var(--shadow);animation:pick-in .25s ease-out}
@keyframes pick-in{from{transform:translateY(8px);opacity:0}}
.pick-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.pick-top .eyebrow{color:var(--basil)}
.pick-save{display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:var(--pepper);font-weight:700;padding:6px 8px;margin:-6px -8px;border-radius:10px}
.pick-save:hover{background:var(--tint-e)}
.pick-save svg{width:18px;height:18px}
.pick-save[aria-pressed="true"] svg{fill:currentColor}
.pick-main{display:flex;align-items:center;gap:14px}
.pick-emoji{width:64px;height:64px;flex:none;border-radius:18px;display:grid;place-items:center;font-size:36px;background:var(--tint)}
.pick h2{font-size:clamp(1.5rem,5vw,2rem);font-weight:800}
.pick-ings{color:var(--muted)}
.pick-actions{display:grid;grid-template-columns:1.6fr 1fr;gap:10px}
.pick-actions .btn{min-height:50px;font-size:1rem}
.pick.shuffle{align-items:center;text-align:center;padding:36px 20px;border-style:dashed;box-shadow:none;animation:none}
.pick.shuffle p{font-family:var(--font-display);font-weight:800;font-size:1.4rem;color:var(--muted)}

/* quick ideas row */
.quick-row{display:flex;flex-direction:column;gap:10px;min-width:0}
.qr-title{font-size:1.15rem;font-weight:800}
.qscroll{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;scrollbar-width:none;min-width:0}
.qscroll::-webkit-scrollbar{display:none}
.qcard{flex:0 0 150px;scroll-snap-align:start;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 14px;display:flex;flex-direction:column;gap:4px}
.qcard:hover{border-color:var(--muted)}
.qcard .qe{font-size:1.6rem;line-height:1}
.qcard .qt{color:var(--pepper);font-weight:700;font-size:.85rem;font-variant-numeric:tabular-nums}
.qcard .qn{font-weight:700;line-height:1.25}

/* "Unë": add-recipe + publish option */
.add-recipe{width:100%;min-height:50px;border-style:dashed;border-width:2px;color:var(--pepper);border-color:color-mix(in srgb,var(--pepper) 45%,var(--line));background:var(--surface)}
.add-recipe:hover{background:var(--tint-e);border-color:var(--pepper)}
.publish-box{background:var(--basil-soft);border-radius:14px;padding:14px 16px}
.publish-box .check{font-size:.95rem}
.publish-box .hint{color:var(--muted)}

/* dish-type chips + report box + time pick */
.chipwrap{display:flex;flex-wrap:wrap;gap:6px}
.chipwrap .chip small{font-weight:600;opacity:.6;margin-left:2px}
.chipwrap .chip[aria-pressed="true"] small{opacity:.8}
.report-box{margin:0 22px 22px;padding:14px 16px;border-radius:14px;background:var(--tint-e);display:flex;flex-direction:column;gap:10px}
.time-pick button{min-height:52px}

/* ---------- navbar: centred tabs, frosted bars ---------- */
.top{background:color-mix(in srgb,var(--bg) 72%,transparent);backdrop-filter:saturate(1.4) blur(18px);-webkit-backdrop-filter:saturate(1.4) blur(18px)}
.top-in{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding-block:12px}
.top-in .logo{justify-self:start}
.top-in .tabs{margin:0;justify-self:center;gap:4px;padding:4px;background:var(--surface-2);border-radius:999px;flex-wrap:nowrap}
.top-in .tabs button{padding:8px 18px;gap:8px;color:var(--muted);position:relative;transition:background .15s,color .15s}
.top-in .tabs button:hover{background:color-mix(in srgb,var(--seg-on) 60%,transparent);color:var(--ink)}
.top-in .tabs button[aria-current="page"]{background:var(--seg-on);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.08),0 2px 8px rgba(0,0,0,.06)}
.top-in .tabs button[aria-current="page"] svg{color:var(--pepper)}
.top-in .tabs .badge{position:absolute;top:2px;right:6px}
.top-right{justify-self:end;display:flex;align-items:center;gap:8px}
.top-in .top-icons{margin:0}
@media (max-width:859px){.top-in{grid-template-columns:1fr auto}.top-in .tabs{display:none}}

.bnav{background:color-mix(in srgb,var(--surface) 78%,transparent);backdrop-filter:saturate(1.4) blur(18px);-webkit-backdrop-filter:saturate(1.4) blur(18px);padding-top:6px;padding-inline:8px}
.bnav button{gap:4px;padding:2px 2px 8px;font-size:.72rem}
.bnav button svg{width:22px;height:22px;padding:5px 18px;box-sizing:content-box;border-radius:999px;transition:background .2s,color .2s}
.bnav button[aria-current="page"] svg{background:var(--tint-e);color:var(--pepper)}
.bnav .badge{top:0;left:calc(50% + 10px)}

/* ---------- timer pill + alarm ---------- */
.timer{padding:8px 10px 8px 14px;gap:10px;max-width:calc(100vw - 32px)}
.timer .t-time{font-size:1.05rem}
.timer .t-label{font-weight:500;opacity:.75;font-size:.82rem;max-width:22ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.timer .t-x{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--bg) 18%,transparent);font-size:1rem}
.alarm{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:16px;background:rgba(10,14,9,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.alarm-card{background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:28px 24px;width:min(380px,100%);display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;box-shadow:var(--shadow)}
.alarm-card h2{font-size:1.8rem;font-weight:800}
.alarm-ring{width:84px;height:84px;border-radius:50%;display:grid;place-items:center;background:var(--tint-e);color:var(--pepper);animation:ring .5s ease-in-out infinite alternate}
.alarm-ring svg{width:44px;height:44px}
@keyframes ring{from{transform:rotate(-12deg)}to{transform:rotate(12deg)}}
.alarm-actions{display:grid;grid-template-columns:1.4fr 1fr;gap:10px;width:100%;margin-top:8px}
.alarm-actions .btn{min-height:52px}

/* video link */
.video-btn{background:var(--ink);color:var(--bg);border-color:var(--ink);text-decoration:none}
.video-btn:hover{background:var(--ink);opacity:.9}
.video-field input{font-family:inherit}

/* language toggle: SQ / EN */
.lang{display:flex;gap:2px;padding:3px;background:var(--surface-2);border-radius:999px}
.lang button{border:0;background:none;border-radius:999px;min-width:36px;height:30px;padding:0 8px;font:inherit;font-size:.78rem;font-weight:700;letter-spacing:.04em;color:var(--muted);cursor:pointer;transition:background .15s,color .15s}
.lang button:hover{color:var(--ink)}
.lang button[aria-pressed="true"]{background:var(--seg-on);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.08)}
@media (max-width:420px){.lang button{min-width:30px;padding:0 6px}}
@media (min-width:1100px){.who .btn{white-space:nowrap}}
/* the SQ/EN toggle needs room in the header on narrow desktops */
@media (min-width:860px) and (max-width:1099px){.top-in .tabs button{padding:8px 8px;gap:6px}.lang button{min-width:32px;padding:0 6px}}

/* ---------- hero: warm band, meal tabs, quick chips, inline filters, suggestion card ---------- */
:root{--font-serif:"Fraunces",Georgia,"Times New Roman",serif;--hero-a:#FCF3E7;--hero-b:#F3D9C1;--hero-ink:#2B1A12;--hero-muted:#76563F;--spark:#B5532E;--spark-hover:#9C4524;--on-spark:#FFFFFF}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--hero-a:#2C1E16;--hero-b:#3D251A;--hero-ink:#F7EADF;--hero-muted:#D4B7A2;--spark:#F0905F;--spark-hover:#F5A57B;--on-spark:#22120A}}
:root[data-theme="dark"]{--hero-a:#2C1E16;--hero-b:#3D251A;--hero-ink:#F7EADF;--hero-muted:#D4B7A2;--spark:#F0905F;--spark-hover:#F5A57B;--on-spark:#22120A}

.hero{position:relative;isolation:isolate;overflow:hidden;margin:-8px 0 32px;border-radius:32px;padding:48px 20px 28px;color:var(--hero-ink);
  background:radial-gradient(110% 80% at 12% 0%,var(--hero-a) 0%,transparent 60%),radial-gradient(90% 90% at 100% 100%,color-mix(in srgb,var(--spark) 22%,var(--hero-b)) 0%,transparent 70%),var(--hero-b)}
@media (max-width:560px){.hero{margin:-20px -16px 24px;border-radius:0 0 28px 28px;padding:30px 16px 20px}}
.hero-deco span{position:absolute;z-index:-1;font-size:clamp(40px,7vw,72px);opacity:.18;transform:rotate(var(--r,0deg));pointer-events:none;user-select:none}
.hero-deco span:nth-child(1){top:6%;left:4%;--r:-14deg}
.hero-deco span:nth-child(2){top:10%;right:6%;--r:12deg}
.hero-deco span:nth-child(3){top:38%;left:-1%;--r:24deg}
.hero-deco span:nth-child(4){top:34%;right:-2%;--r:-30deg}
.hero-deco span:nth-child(5){bottom:22%;left:5%;--r:8deg}
.hero-deco span:nth-child(6){bottom:10%;right:7%;--r:-10deg}
.hero-deco span:nth-child(7){bottom:2%;left:30%;--r:16deg}
.hero-deco span:nth-child(8){top:2%;left:52%;--r:-6deg}
@media (max-width:560px){.hero-deco span:nth-child(n+5){display:none}}
.hero-in{max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:16px}
.hero-copy{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.hero .eyebrow{color:var(--spark)}
.hero h1{font-family:var(--font-serif);font-weight:700;font-size:clamp(2.5rem,8vw,4.4rem);letter-spacing:-.025em;line-height:1}
.hero h1 em{font-style:italic;color:var(--spark)}
.hero-sub{margin:0;color:var(--hero-muted);font-size:1.08rem;max-width:40ch}

.meal-tabs{background:color-mix(in srgb,var(--hero-ink) 9%,transparent);border-radius:16px;margin-top:6px}
.meal-tabs button{color:var(--hero-muted);min-height:44px}
.meal-tabs button:hover{color:var(--hero-ink)}
.meal-tabs button[aria-pressed="true"]{background:var(--surface);color:var(--ink)}

.qf{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
@media (max-width:560px){.qf{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;margin-inline:-16px;padding:2px 16px 4px;scrollbar-width:none}.qf::-webkit-scrollbar{display:none}}
.qchip{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:40px;padding:8px 14px;border-radius:999px;border:1px solid color-mix(in srgb,var(--hero-ink) 18%,transparent);background:color-mix(in srgb,var(--surface) 72%,transparent);color:var(--hero-ink);font:inherit;font-weight:600;font-size:.9rem;white-space:nowrap;cursor:pointer;transition:background .12s,border-color .12s,color .12s,transform .1s}
.qchip:hover{border-color:var(--spark)}
.qchip:active{transform:scale(.96)}
.qchip[aria-pressed="true"]{background:var(--spark);border-color:var(--spark);color:var(--on-spark)}
.qchip:disabled{opacity:.4;cursor:default;border-color:color-mix(in srgb,var(--hero-ink) 18%,transparent)}
.qchip.more{background:var(--hero-ink);border-color:var(--hero-ink);color:var(--hero-a)}
.qchip.more svg{width:16px;height:16px}
.qchip .chev{transition:transform .16s ease-out}
.qchip.more[aria-expanded="true"] .chev{transform:rotate(180deg)}
.qbadge{display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--spark);color:var(--on-spark);font-size:.72rem}

/* custom filters open right under the chips: fast, no overlay */
.fpanel{display:grid;grid-template-rows:0fr;opacity:0;margin-top:-16px;transition:grid-template-rows .16s cubic-bezier(.2,.8,.2,1),opacity .12s ease-out,margin-top .16s cubic-bezier(.2,.8,.2,1)}
.fpanel.open{grid-template-rows:1fr;opacity:1;margin-top:0}
.fpanel-in{overflow:hidden;min-height:0}
.fpanel-body{display:flex;flex-direction:column;gap:16px;padding:18px;margin-bottom:2px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}
.fpanel-foot{display:flex;align-items:center;gap:8px;padding-top:14px;border-top:1px solid var(--line)}
.fpanel-foot .count{margin-right:auto}
@media (prefers-reduced-motion: reduce){.fpanel,.qchip .chev{transition:none}}

/* suggestion card */
.hero .pick{border:0;border-radius:26px;padding:22px;color:var(--ink);box-shadow:0 2px 4px rgba(43,26,18,.06),0 24px 48px rgba(43,26,18,.16);animation:pick-in .18s ease-out}
.hero .pick h2{font-family:var(--font-serif);font-weight:700;letter-spacing:-.01em}
.hero .pick-top .eyebrow{display:inline-flex;align-items:center;gap:6px;color:var(--spark)}
.hero .pick-top .eyebrow svg{width:16px;height:16px}
.hero .pick-save{color:var(--spark)}
.pick-desc{margin:4px 0 0;font-size:.95rem}
.pick-main{align-items:flex-start}
.hero .pick-actions .btn.primary{background:var(--spark);border-color:var(--spark);color:var(--on-spark)}
.hero .pick-actions .btn.primary:hover{background:var(--spark-hover);border-color:var(--spark-hover)}
.btn.spark{background:transparent;border:2px solid var(--spark);color:var(--spark)}
.btn.spark:hover{background:color-mix(in srgb,var(--spark) 10%,transparent);border-color:var(--spark)}
.btn.spark svg{transition:transform .25s}
.btn.spark:hover svg{transform:rotate(90deg)}
.empty-pick{align-items:center;text-align:center}
.empty-pick .big{font-size:2.4rem}
@media (min-width:861px){.hero{padding-top:40px}.hero-in{max-width:780px}.hero h1{font-size:clamp(2.5rem,5.2vw,3.7rem)}.hero .gen-result{width:100%;max-width:640px;align-self:center}}
@media (max-width:560px){.qchip.more{order:-1}}
.hero .pick-actions{grid-template-columns:1fr 1fr}.hero .pick-actions .btn{white-space:nowrap;padding-inline:12px}
/* one clear action above the suggestion: generate another */
.btn-spark{align-self:center;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:14px 34px;border:0;border-radius:999px;background:var(--spark);color:var(--on-spark);font-family:var(--font-display);font-weight:800;font-size:1.15rem;letter-spacing:-.01em;cursor:pointer;box-shadow:0 8px 22px color-mix(in srgb,var(--spark) 38%,transparent);transition:background .15s,transform .1s}
.btn-spark:hover{background:var(--spark-hover)}
.btn-spark:active{transform:scale(.97)}
.btn-spark:disabled{opacity:.45;cursor:default;box-shadow:none}
.btn-spark svg{width:24px;height:24px;transition:transform .3s}
.btn-spark:hover:not(:disabled) svg{transform:rotate(90deg)}
@media (max-width:560px){.btn-spark{align-self:stretch}}
.hero .pick-actions{grid-template-columns:1fr}
/* only the generate button is solid; chips stay quiet so they don't compete with it */
.qchip[aria-pressed="true"]{background:color-mix(in srgb,var(--spark) 16%,var(--surface));border-color:var(--spark);color:var(--hero-ink);box-shadow:inset 0 0 0 1px var(--spark)}
.qchip.more{background:transparent;border-color:color-mix(in srgb,var(--hero-ink) 30%,transparent);color:var(--hero-ink)}
.qchip.more:hover,.qchip.more[aria-expanded="true"]{border-color:var(--spark)}

/* hero photo: always darkened, so the hero uses light text in both themes. Photo: Scott Greer / Unsplash (free licence). */
.hero{--hero-photo:url(img/hero-1.webp);--hero-ink:#FBF1E7;--hero-muted:#E8D2C1;--hero-a:#FBF1E7;--spark:#F0905F;--spark-hover:#F5A57B;--on-spark:#22120A;
  background:linear-gradient(180deg,rgba(24,13,8,.62) 0%,rgba(24,13,8,.74) 55%,rgba(24,13,8,.86) 100%),var(--hero-photo) center/cover no-repeat,#2C1E16}
.hero-deco{display:none}
.hero h1,.hero-sub{text-shadow:0 2px 18px rgba(0,0,0,.35)}
.meal-tabs{background:rgba(255,255,255,.12);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.meal-tabs button[aria-pressed="true"]{background:var(--hero-ink);color:#2B1A12}
.qchip{background:rgba(20,10,6,.38);border-color:rgba(255,255,255,.22);color:var(--hero-ink);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.qchip[aria-pressed="true"]{background:color-mix(in srgb,var(--spark) 26%,rgba(20,10,6,.5));border-color:var(--spark);color:var(--hero-ink);box-shadow:inset 0 0 0 1px var(--spark)}
.qchip:disabled{border-color:rgba(255,255,255,.14)}
.qchip.more{background:transparent;border-color:rgba(255,255,255,.4);color:var(--hero-ink)}
/* hero runs edge to edge on every screen, flush under the top bar */
html{overflow-x:clip}
.hero{margin:-28px calc(50% - 50vw) 32px;border-radius:0;padding-inline:20px}
@media (max-width:560px){.hero{margin:-20px calc(50% - 50vw) 24px;padding-inline:16px}}

/* calmer header: one 40px line, no stacked pills */
.top-in .tabs{background:none;padding:0;gap:2px}
.top-in .tabs button{height:40px;padding:0 14px;border-radius:12px;box-shadow:none}
.top-in .tabs button:hover{background:var(--surface-2)}
.top-in .tabs button[aria-current="page"]{background:var(--surface-2);box-shadow:none}
.top-right{gap:4px}
.lang{background:none;padding:0;gap:0;height:40px;align-items:center;margin-right:4px}
.lang button{height:40px;min-width:0;padding:0 8px;border-radius:10px;font-size:.82rem;box-shadow:none}
.lang button + button{position:relative}
.lang button + button::before{content:"";position:absolute;left:0;top:13px;bottom:13px;width:1px;background:var(--line)}
.lang button[aria-pressed="true"]{background:none;box-shadow:none;color:var(--ink)}
.lang button[aria-pressed="false"]{font-weight:600}
.icon-btn{width:40px;height:40px}
.who:empty{display:none}
.who-btn{width:40px;height:40px;border:0;padding:0;background:none;border-radius:50%;display:grid;place-items:center;cursor:pointer}
.who-btn img,.who-btn span{width:30px;height:30px;border-radius:50%}
.who-btn span{display:grid;place-items:center;background:var(--spark);color:var(--on-spark);font-weight:700;font-size:.85rem}
.who-btn:hover img,.who-btn:hover span{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--line)}
@media (min-width:860px) and (max-width:1099px){.top-in .tabs button{padding:0 10px}}
.hero h1{padding-bottom:.12em}
.hero h1{padding-bottom:.42em}
.hero-copy{gap:4px}
.hero h1{padding-bottom:.3em}

/* generate + week plan side by side */
.gen-actions{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap}
.btn-week{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:14px 26px;border-radius:999px;border:2px solid rgba(255,255,255,.55);background:rgba(20,10,6,.38);color:var(--hero-ink);font-family:var(--font-display);font-weight:800;font-size:1.05rem;letter-spacing:-.01em;cursor:pointer;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:border-color .15s,background .15s,transform .1s}
.btn-week:hover{border-color:var(--spark);background:rgba(20,10,6,.5)}
.btn-week:active{transform:scale(.97)}
.btn-week svg{width:22px;height:22px}
@media (max-width:560px){.gen-actions{display:grid;grid-template-columns:1fr}.btn-spark,.btn-week{width:100%}.btn-week{min-height:50px;font-size:1rem}}

/* week plan card */
.week{background:var(--surface);color:var(--ink);border-radius:26px;padding:20px;display:flex;flex-direction:column;gap:14px;box-shadow:0 2px 4px rgba(43,26,18,.06),0 24px 48px rgba(43,26,18,.16);animation:pick-in .18s ease-out;scroll-margin-top:80px}
@media (min-width:861px){.week{width:100%;max-width:640px;align-self:center}}
.week-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.week-head .eyebrow{display:inline-flex;align-items:center;gap:6px;color:var(--spark)}
.week-head .eyebrow svg{width:16px;height:16px}
.week-head h2{font-family:var(--font-serif);font-weight:700;font-size:1.5rem;margin-top:4px}
.week-head .sheet-close{position:static;flex:none}
.week-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.week-list li{display:grid;grid-template-columns:92px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.week-list li:first-child{border-top:0}
.wd{font-weight:700;font-size:.85rem;color:var(--muted)}
.wrec{display:flex;align-items:center;gap:10px;min-width:0;border:0;background:none;padding:6px 8px;margin:-6px -8px;border-radius:12px;text-align:left;color:inherit;font:inherit;cursor:pointer}
.wrec:hover{background:var(--surface-2)}
.we{width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:10px;background:var(--surface-2);font-size:20px}
.wn{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.wt{font-size:.82rem;color:var(--muted);white-space:nowrap}
.wswap{width:38px;height:38px;border:1px solid var(--line);background:none;border-radius:10px;color:var(--spark);display:grid;place-items:center;cursor:pointer}
.wswap:hover{border-color:var(--spark)}
.wswap svg{width:18px;height:18px}
.week-foot{display:flex;gap:8px;flex-wrap:wrap}
.week-foot .btn.spark{flex:1}
@media (max-width:560px){.week{padding:16px}.week-list li{grid-template-columns:minmax(0,1fr) auto;row-gap:2px}.wd{grid-column:1/-1}.wt{display:none}}
@media (max-width:560px){.week-foot{display:grid;grid-template-columns:1fr}.week-foot .btn{width:100%}}

/* filters collapsed into one summary line under the actions */
.fsum{align-self:center;display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:44px;padding:8px 16px;border-radius:999px;border:1px solid rgba(255,255,255,.28);background:rgba(20,10,6,.4);color:var(--hero-ink);font:inherit;font-size:.92rem;cursor:pointer;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:border-color .15s,background .15s}
.fsum:hover,.fsum[aria-expanded="true"]{border-color:var(--spark);background:rgba(20,10,6,.55)}
.fsum svg{width:17px;height:17px;flex:none}
.fsum-l{font-weight:700}
.fsum-v{color:var(--hero-muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fsum .chev{transition:transform .16s ease-out}
.fsum[aria-expanded="true"] .chev{transform:rotate(180deg)}
@media (max-width:560px){.fsum{align-self:stretch;justify-content:flex-start}.fsum .chev{margin-left:auto}}
@media (min-width:861px){.fpanel{width:100%;max-width:640px;align-self:center}}

/* tabs and chips inside the white filter panel */
.fpanel .meal-tabs{background:var(--surface-2);backdrop-filter:none;-webkit-backdrop-filter:none;margin:0}
.fpanel .meal-tabs button{color:var(--muted)}
.fpanel .meal-tabs button[aria-pressed="true"]{background:var(--seg-on);color:var(--ink)}
.fpanel .qf{justify-content:flex-start;flex-wrap:wrap;overflow:visible;margin:0;padding:0}
.fpanel .qchip{background:var(--surface);border-color:var(--line);color:var(--ink);backdrop-filter:none;-webkit-backdrop-filter:none}
.fpanel .qchip:hover{border-color:var(--spark)}
.fpanel .qchip[aria-pressed="true"]{background:color-mix(in srgb,var(--spark) 14%,var(--surface));border-color:var(--spark);color:var(--ink);box-shadow:inset 0 0 0 1px var(--spark)}
.fpanel .qchip:disabled{border-color:var(--line)}

/* ---------- warm palette from the reference: cream, beige cards, burnt orange, warm brown text ---------- */
:root{
  --bg:#F7F1E8; --surface:#FFFBF5; --surface-2:#EFE4D8; --ink:#3C3631; --muted:#65564A; --line:#D9C8B7;
  --basil:#5E6B34; --basil-soft:#E7E4CF; --pepper:#B35624; --pepper-hover:#9E4A1B; --on-pepper:#FFFFFF; --saffron:#D9A03F;
  --tint-m:#F3E3C8; --tint-d:#EBDDD1; --tint-e:#F2D9C9; --tint-c:#E9E1D8; --seg-on:#FFFBF5;
  --good:#5E7A3A; --warn:#B7791F;
  --shadow:0 1px 2px rgba(60,54,49,.06),0 10px 30px rgba(60,54,49,.08);
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#1A1411; --surface:#241C17; --surface-2:#30261F; --ink:#F5EDE4; --muted:#D2C2B3; --line:#4A3C32;
  --basil:#B7C48A; --basil-soft:#2E3020; --pepper:#E07D45; --pepper-hover:#EB9360; --on-pepper:#1E120B; --saffron:#E8B65A;
  --tint-m:#3A2F1F; --tint-d:#33291F; --tint-e:#3D2820; --tint-c:#2F2924; --seg-on:#3D3129;
  --good:#A8C77F; --warn:#E7B45A; --shadow:0 1px 2px rgba(0,0,0,.3),0 10px 30px rgba(0,0,0,.35)}}
:root[data-theme="dark"]{
  --bg:#1A1411; --surface:#241C17; --surface-2:#30261F; --ink:#F5EDE4; --muted:#D2C2B3; --line:#4A3C32;
  --basil:#B7C48A; --basil-soft:#2E3020; --pepper:#E07D45; --pepper-hover:#EB9360; --on-pepper:#1E120B; --saffron:#E8B65A;
  --tint-m:#3A2F1F; --tint-d:#33291F; --tint-e:#3D2820; --tint-c:#2F2924; --seg-on:#3D3129;
  --good:#A8C77F; --warn:#E7B45A; --shadow:0 1px 2px rgba(0,0,0,.3),0 10px 30px rgba(0,0,0,.35)}

/* over the photo the main button is the reference's burnt orange, and cards stay cream in both themes */
.hero .btn-spark{background:#B35624;color:#FFFFFF;box-shadow:0 8px 22px rgba(179,86,36,.4)}
.hero .btn-spark:hover{background:#9E4A1B}
.hero .pick,.hero .week,.hero .fpanel-body{
  --surface:#F3ECE1; --surface-2:#EBDDD1; --ink:#3C3631; --muted:#65564A; --line:#D6C5B4; --seg-on:#FFFBF5;
  --spark:#B35624; --spark-hover:#9E4A1B; --on-spark:#FFFFFF; --good:#5E7A3A; --basil:#5E6B34; --basil-soft:#E3E2C8;
  --tint-m:#F3E3C8; --tint-d:#E7DACB; --tint-e:#F2D9C9; --tint-c:#E9E1D8;
  background:var(--surface);color:var(--ink);border-color:var(--line)}
.hero .pick .pill,.hero .week .we{background:var(--surface-2);color:var(--ink)}
.hero .pick .pill.health{background:var(--basil-soft);color:var(--basil)}
/* chips inside the cream panel: page-colour text must stay light-theme too, and selected matches the other chips */
.hero .fpanel-body{--bg:#FFFBF5}
.fpanel .chip{background:var(--surface);border-color:var(--line);color:var(--ink)}
.fpanel .chip:hover{border-color:var(--spark)}
.fpanel .chip[aria-pressed="true"]{background:color-mix(in srgb,var(--spark) 14%,var(--surface));border-color:var(--spark);color:var(--ink);box-shadow:inset 0 0 0 1px var(--spark)}
.fpanel .chip[aria-pressed="true"] small{color:var(--spark);opacity:1}

/* desktop: the hero fills the screen under the top bar, content centred vertically */
@media (min-width:861px){.hero{min-height:calc(100svh - 65px);display:flex;flex-direction:column;justify-content:center;padding-block:48px}.hero-in{width:100%}}

/* nav icons: thin modern line icons; the active item is one colour (icon = label), no orange icon */
.top-in .tabs button svg,.bnav button svg,.icon-btn svg{stroke-width:1.75}
.top-in .tabs button[aria-current="page"] svg{color:inherit}
.bnav button[aria-current="page"]{color:var(--ink)}
.bnav button[aria-current="page"] svg{background:var(--surface-2);color:var(--ink)}
.icon-btn.on{color:var(--ink);background:var(--surface-2)}

/* YouTube in the recipe: thumbnail first, the player loads on tap */
.yt{display:flex;flex-direction:column;gap:8px}
.yt-play,.yt iframe{position:relative;display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:18px;overflow:hidden;background:#000;padding:0;cursor:pointer}
.yt-play img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.yt-play:hover img{transform:scale(1.03)}
.yt-btn{position:absolute;inset:0;margin:auto;width:68px;height:68px;border-radius:50%;display:grid;place-items:center;background:var(--pepper);color:var(--on-pepper);box-shadow:0 8px 24px rgba(0,0,0,.35);transition:transform .15s}
.yt-play:hover .yt-btn{transform:scale(1.08)}
.yt-btn svg{width:28px;height:28px;margin-left:3px}
.yt-cap{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.85rem;color:var(--muted)}
.yt-cap a{color:var(--pepper);font-weight:700}
.yt{width:100%;max-width:560px;margin-inline:auto}

.hero h1{padding-bottom:.5em}

/* logo touch: the cedilla under "Ç" is a hand-drawn heart, home cooking made with love */
.heart-c{position:relative;display:inline-block}
.heart-c svg{position:absolute;left:50%;top:84%;width:.4em;height:.6em;transform:translateX(-50%);overflow:visible;fill:none;stroke:var(--spark);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
/* filter panel: the main button generates a recipe within the filters; full width on phones */
.hero .fpanel-foot .btn.primary{background:var(--spark);border-color:var(--spark);color:var(--on-spark)}
.hero .fpanel-foot .btn.primary:hover{background:var(--spark-hover);border-color:var(--spark-hover)}
@media (max-width:560px){.fpanel-foot{display:grid;grid-template-columns:1fr auto;row-gap:10px}.fpanel-foot #apply-filters{grid-column:1/-1;grid-row:1;min-height:52px;font-size:1rem}.fpanel-foot .count{grid-row:2}}

/* actions: desktop = buttons in a row, filters summary on its own line; phone = 2 compact rows */
.gen-break{flex-basis:100%;height:0}
.fsum-n{display:none}
@media (max-width:560px){
  .hero-sub{font-size:.95rem}
  .gen-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .gen-actions .btn-spark{grid-column:1/-1;min-height:52px;font-size:1.05rem}
  .gen-break{display:none}
  .gen-actions .btn-week,.gen-actions .fsum{min-height:46px;padding:8px 12px;font-size:.92rem;justify-content:center;align-self:stretch;border-width:1px;border-color:rgba(255,255,255,.4)}
  .gen-actions .btn-week svg{width:18px;height:18px}
  .fsum-v{display:none}
  .fsum-n{display:grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--spark);color:var(--on-spark);font-size:.72rem}
  .fsum .chev{margin-left:0}
}

/* phones: one step smaller everywhere in the hero so it feels less crowded */
@media (max-width:560px){
  .hero{padding:22px 16px 18px}
  .hero-in{gap:12px}
  .hero .eyebrow{font-size:.68rem}
  .hero h1{font-size:2.15rem}
  .hero-sub{font-size:.86rem;line-height:1.45}
  .gen-actions{gap:8px}
  .gen-actions .btn-spark{min-height:46px;padding:10px 18px;font-size:.98rem;gap:8px}
  .gen-actions .btn-spark svg{width:20px;height:20px}
  .gen-actions .btn-week,.gen-actions .fsum{min-height:40px;padding:6px 10px;font-size:.84rem;gap:6px}
  .gen-actions .btn-week svg,.fsum svg{width:16px;height:16px}
  .hero .pick{padding:16px;gap:10px;border-radius:22px}
  .hero .pick h2{font-size:1.3rem}
  .hero .pick-emoji{width:48px;height:48px;font-size:26px;border-radius:14px}
  .pick-main{gap:12px}
  .pick-desc{font-size:.85rem}
  .hero .pick .pill{font-size:.74rem;padding:3px 8px}
  .hero .pick .pill svg{width:13px;height:13px}
  .pick-ings{font-size:.85rem}
  .hero .pick-actions .btn{min-height:42px;font-size:.92rem}
  .hero .pick-top .eyebrow{font-size:.66rem}
  .pick-save{font-size:.9rem}
}

/* recipe window: the close button (and on phones the recipe name) stays on screen while you scroll */
.sheet-bar{position:sticky;top:0;z-index:5;height:0;display:flex;justify-content:flex-end;align-items:flex-start;pointer-events:none}
.sheet-bar .sheet-close{position:static;margin:12px 12px 0 0;pointer-events:auto;box-shadow:0 4px 14px rgba(0,0,0,.18)}
.sheet-title{display:none}
@media (max-width:600px){
  .sheet-bar{height:auto;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px 8px 18px;background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line);pointer-events:auto;padding-top:calc(8px + env(safe-area-inset-top,0px))}
  .sheet-title{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-display);font-weight:800;font-size:1rem}
  .sheet-bar .sheet-close{margin:0;flex:none;box-shadow:none}
  .sheet .recipe{min-height:calc(100dvh - 57px)}
}

/* servings stepper: rounded pill with round +/- buttons that warm up on hover */
.stepper{gap:4px;padding:4px;border:0;background:var(--surface-2);overflow:visible}
.stepper button{width:34px;height:34px;border-radius:50%;background:var(--surface);color:var(--ink);font-size:1.15rem;line-height:1;display:grid;place-items:center;box-shadow:0 1px 2px rgba(0,0,0,.08);transition:background .15s,color .15s,transform .1s}
.stepper button:hover{background:var(--pepper);color:var(--on-pepper)}
.stepper button:active{transform:scale(.92)}
.stepper span{min-width:96px;font-size:.9rem;font-weight:700}

/* desktop: the top of the recipe window gets the same darkened food photo as the main header */
@media (min-width:601px){
  .sheet .r-head{color:#FBF1E7;background:linear-gradient(180deg,rgba(24,13,8,.62),rgba(24,13,8,.8)),var(--photo,url(img/hero-1.webp)) center/cover;padding:30px 28px}
  .sheet .r-head h2{font-family:var(--font-serif);color:#FBF1E7}
  .sheet .r-head .muted{color:#E8D2C1}
  .sheet .r-head .eyebrow{color:#F0905F}
  .sheet .r-head .pill{background:rgba(255,255,255,.14);color:#FBF1E7}
  .sheet .r-head .pill.health{background:rgba(183,196,138,.22);color:#DCE6B5}
  .sheet .r-head .pill.trad,.sheet .r-head .pill.own{background:rgba(240,144,95,.2);color:#F7C9AE}
  .sheet .r-head .r-tile{box-shadow:0 8px 24px rgba(0,0,0,.3)}
  .sheet .r-actions{padding:22px 28px 24px}
}

/* "Çka kam" on phones: the single column may shrink to the screen; long chip rows scroll inside it */
@media (max-width:860px){.fridge{grid-template-columns:minmax(0,1fr)}}
.fridge > *,.fridge .section,.fridge .toolbar{min-width:0}
.fridge .toolbar .chips{max-width:100%}

/* ---------- the rest of the app follows the hero: photo banner on top, serif titles, cream cards, burnt-orange accents ---------- */
.vhead{position:relative;isolation:isolate;margin:-28px calc(50% - 50vw) 0;padding:56px max(20px,calc(50vw - 560px)) 44px;gap:10px;align-items:center;text-align:center;color:#FBF1E7;
  background:linear-gradient(180deg,rgba(24,13,8,.66) 0%,rgba(24,13,8,.78) 60%,rgba(24,13,8,.9) 100%),url(img/hero-1.webp) var(--vpos,center) / cover no-repeat,#2C1E16}
#v-frigo .vhead{--vpos:20% 30%}
#v-shfleto .vhead{--vpos:80% 60%}
#v-ruajtura .vhead{--vpos:50% 15%}
#v-lista .vhead{--vpos:10% 80%}
#v-imat .vhead{--vpos:90% 25%}
.vhead .eyebrow{color:#F0905F}
.vhead h1{font-family:var(--font-serif);font-weight:700;font-size:clamp(2.1rem,5.5vw,3.3rem);letter-spacing:-.025em;line-height:1.05;color:#FBF1E7;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.vhead .muted{color:#E8D2C1;max-width:52ch;margin:0;font-size:1.04rem;text-shadow:0 1px 10px rgba(0,0,0,.3)}
@media (max-width:560px){.vhead{margin-top:-20px;padding:36px 16px 30px}}

/* serif titles everywhere, like the hero */
.section-h h2,.card h3,.mrow h3,.empty h3,.gate h3,.cat strong,#rform-title{font-family:var(--font-serif);font-weight:700;letter-spacing:-.01em}
.section-h h2{font-size:1.7rem}

/* cards, rows and panels: the hero card's cream, softer corners, warm lift on hover */
.card,.mrow,.panel,.acct,.empty,.cat{border-radius:22px}
.card,.mrow{transition:transform .15s,box-shadow .15s,border-color .15s}
.card:hover,.mrow:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--pepper) 45%,var(--line));box-shadow:0 2px 4px rgba(43,26,18,.05),0 18px 36px rgba(43,26,18,.12)}
.panel{box-shadow:0 2px 4px rgba(43,26,18,.04),0 18px 40px rgba(43,26,18,.08)}

/* burnt orange instead of near-black for actions and selected chips */
.btn.dark{background:var(--pepper);color:var(--on-pepper);border-color:var(--pepper);border-radius:999px;padding-inline:20px}
.btn.dark:hover{background:var(--pepper-hover);border-color:var(--pepper-hover);opacity:1}
#surprise{border-radius:999px;border:2px solid var(--pepper);color:var(--pepper);background:transparent}
#surprise:hover{background:color-mix(in srgb,var(--pepper) 10%,transparent)}
.chip:hover{border-color:var(--pepper)}
.chip[aria-pressed="true"]{background:color-mix(in srgb,var(--pepper) 14%,var(--surface));color:var(--ink);border-color:var(--pepper);box-shadow:inset 0 0 0 1px var(--pepper)}
.search,select.sel{border-radius:999px}
.search:focus-within{border-color:var(--pepper)}
.steps li::before{background:var(--pepper);color:var(--on-pepper)}
.empty .big,.empty>svg{color:var(--pepper)}

/* real food photos (one per dish type) in place of the emoji tiles; user recipes keep their emoji */
.tile:has(img),.r-tile:has(img),.pick-emoji:has(img),.we:has(img),.qe:has(img){padding:0;overflow:hidden;background:var(--surface-2)}
.tile img,.r-tile img,.pick-emoji img,.we img,.qe img{width:100%;height:100%;object-fit:cover;display:block}
.qcard .qe:has(img){display:block;height:92px;margin:-12px -14px 6px;border-radius:15px 15px 0 0}
.qcard:has(.qe img){overflow:hidden}
.hero .pick-emoji:has(img){width:76px;height:76px;border-radius:18px}
@media (max-width:560px){.hero .pick-emoji:has(img){width:60px;height:60px;border-radius:14px}}

/* more contrast: the phone tab bar is near-opaque (the page no longer washes it out),
   idle labels are clearly readable, and the current tab gets a visible pill */
.bnav{background:color-mix(in srgb,var(--surface) 96%,transparent);border-top-color:var(--line);box-shadow:0 -6px 20px rgba(0,0,0,.06)}
.bnav button{color:color-mix(in srgb,var(--ink) 74%,var(--surface))}
.bnav button[aria-current="page"]{color:var(--ink);font-weight:800}
.bnav button[aria-current="page"] svg{background:color-mix(in srgb,var(--ink) 13%,var(--surface));color:var(--ink)}
.top-in .tabs button{color:color-mix(in srgb,var(--ink) 74%,var(--bg))}
.card .cm,.count{color:color-mix(in srgb,var(--ink) 72%,var(--surface))}

/* recipe window buttons: main actions share the row, copy + share are compact icon buttons at the end */
.r-actions{display:flex;flex-wrap:wrap;align-items:stretch}
.r-actions > .btn{flex:1 1 170px}
.r-icons{display:flex;gap:8px;flex:none}
.btn.icon-only{width:48px;min-width:48px;padding:0;justify-content:center;gap:0}
.btn.icon-only svg{width:20px;height:20px}
@media (max-width:560px){
  .r-actions{display:grid;grid-template-columns:1fr 1fr auto}
  .r-actions .btn.dark{grid-column:1/-1}
  .r-actions > .btn{flex:none}
  .btn.icon-only{width:44px;min-width:44px}
}

/* ---------- preparation: tick off steps, live timer buttons, a calmer cook mode ---------- */
.steps li{cursor:pointer;border-radius:14px;margin:-6px;padding:6px;transition:background .15s}
.steps li:hover{background:color-mix(in srgb,var(--surface-2) 60%,transparent)}
.steps li p{transition:color .15s}
.steps li.done::before{content:"✓";background:var(--basil);color:#fff}
.steps li.done p{color:var(--muted);text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--muted) 60%,transparent)}
[data-timer]{font-variant-numeric:tabular-nums}
[data-timer].running{background:var(--pepper);border-color:var(--pepper);color:var(--on-pepper)}
[data-timer].running svg{animation:tb-tick 1s steps(2) infinite}
@keyframes tb-tick{50%{opacity:.45}}

.cook-top{gap:12px}
.cook-top strong{flex:1}
.cook-art{width:40px;height:40px;border-radius:12px;overflow:hidden;flex:none;display:grid;place-items:center;font-size:1.4rem;background:var(--surface-2)}
.cook-art img{width:100%;height:100%;object-fit:cover;display:block}
.cook-top .sheet-close{position:static}
.cook-main{justify-content:flex-start;padding-block:22px 28px;gap:18px}
.cook-main > .num{margin-top:auto}
.cook-extra{display:flex;flex-direction:column;align-items:center;gap:16px;width:min(560px,100%);margin-bottom:auto}
.cook-dots{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.cook-dots button{width:26px;height:6px;border-radius:99px;border:0;padding:0;background:var(--line);cursor:pointer}
.cook-dots button.past{background:color-mix(in srgb,var(--pepper) 45%,var(--line))}
.cook-dots button.now{background:var(--pepper);width:38px}
.cook-ings{display:flex;flex-direction:column;align-items:center;gap:8px}
.cook-ings > div{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.cook-ings .pill{background:var(--surface);border:1px solid var(--line);font-size:.92rem;padding:6px 12px}
.cook-tbtn{min-height:52px;padding:12px 22px;font-size:1.02rem}
.cook-all{width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:18px}
.cook-all summary{list-style:none;cursor:pointer;padding:12px 16px;font-weight:700;text-align:center;color:var(--ink)}
.cook-all summary::-webkit-details-marker{display:none}
.cook-all summary::after{content:" ▾";color:var(--muted)}
.cook-all[open] summary::after{content:" ▴"}
.cook-all .ings{padding:0 16px 10px}
.cook-all .ings li{padding:7px 0}
/* the big countdown ring (conic progress) while a timer runs in cook mode */
.cook-ring{--p:0;width:190px;height:190px;border-radius:50%;flex:none;display:grid;place-items:center;
  background:conic-gradient(var(--pepper) calc(var(--p) * 360deg),var(--surface-2) 0)}
.cook-ring[hidden]{display:none}
.cook-ring-in{width:164px;height:164px;border-radius:50%;background:var(--bg);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px;text-align:center}
.cook-ring-in strong{font-family:var(--font-display);font-size:2.2rem;line-height:1;font-variant-numeric:tabular-nums}
.cook-ring-in small{font-size:.74rem;color:var(--muted);max-width:13ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.timer.in-cook{display:none}
.cook.finished .cook-dots{display:none}
.cook-done-art{width:min(260px,70vw);aspect-ratio:4/3;border-radius:24px;overflow:hidden;display:grid;place-items:center;font-size:5rem;background:var(--surface-2);box-shadow:var(--shadow)}
.cook-done-art img{width:100%;height:100%;object-fit:cover}
@media (max-width:560px){.cook-ring{width:160px;height:160px}.cook-ring-in{width:138px;height:138px}.cook-ring-in strong{font-size:1.8rem}}

/* diet is always visible over the photo; the Filters button is brighter so it reads as a control */
.diet-bar{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:14px}
.diet-bar button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:7px 15px;border-radius:999px;border:1px solid rgba(255,255,255,.42);background:rgba(20,10,6,.38);color:#FBF1E7;font:inherit;font-weight:600;font-size:.92rem;cursor:pointer;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:background .15s,border-color .15s,color .15s}
.diet-bar button:hover{border-color:#fff;background:rgba(20,10,6,.55)}
.diet-bar button[aria-pressed="true"]{background:#FBF1E7;border-color:#FBF1E7;color:#3C3631;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.hero .fsum{border-color:rgba(255,255,255,.55);background:rgba(20,10,6,.5);font-weight:600}
.hero .fsum:hover{border-color:#fff}
.hero .fsum-n{background:#C3632C;color:#fff}
@media (max-width:560px){
  .diet-bar{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;margin-inline:-16px;padding:2px 16px;scrollbar-width:none}
  .diet-bar::-webkit-scrollbar{display:none}
  .diet-bar button{flex:none;min-height:38px;padding:6px 13px;font-size:.88rem}
}

/* phones: the hero fills the screen between the top bar and the tab bar, content centred and given room */
@media (max-width:860px){
  .hero{min-height:calc(100svh - 132px - env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;justify-content:center;padding-block:32px 28px}
  .hero-in{width:100%;gap:20px}
  .hero .diet-bar{margin-top:4px}
}
@media (max-width:560px){
  .hero h1{font-size:clamp(2.3rem,10.5vw,2.9rem)}
  .hero .hero-sub{font-size:1rem;line-height:1.45}
}
@media (max-width:560px){.hero .diet-bar{flex-wrap:wrap;overflow:visible;justify-content:center;margin-inline:0;padding:0}}

/* "More filters": a quiet text link under the diet chips (no border); opens the full panel below it */
.fmore{align-self:center;display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:40px;padding:6px 10px;margin-top:-4px;border:0;background:none;color:#FBF1E7;font:inherit;font-size:.95rem;font-weight:700;cursor:pointer;text-underline-offset:4px}
.fmore:hover .fmore-l,.fmore:focus-visible .fmore-l{text-decoration:underline}
.fmore-v{font-weight:500;color:#E8D2C1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fmore-v::before{content:"· "}
.fmore svg{width:17px;height:17px;flex:none;transition:transform .16s ease-out}
.fmore[aria-expanded="true"] svg{transform:rotate(180deg)}
.fmore[aria-expanded="true"] .fmore-v{display:none}
@media (max-width:560px){.gen-actions .btn-week{grid-column:1/-1}}

/* recipe window: no light hairline around the dark photo header (it read as white corners in light mode) */
.sheet .recipe{border:0;box-shadow:0 24px 60px rgba(20,12,8,.35)}
/* the window itself is rounded, so a scrolled recipe keeps round corners top and bottom;
   focus lands on the window (not the × button), so no focus ring shows on open */
@media (min-width:601px){dialog.sheet{border-radius:24px}}
.sheet-in:focus{outline:none}

/* generate icon: a dish cover; on hover the lid lifts open (hinged at its right edge) and the stars twinkle */
.ico-cloche .lid{transform-box:view-box;transform-origin:4px 19.2px;transition:transform .35s cubic-bezier(.3,1.4,.5,1)}
.ico-cloche .stars path{transform-box:fill-box;transform-origin:center;transition:transform .35s ease,opacity .35s}
.btn-spark:hover:not(:disabled) svg{transform:none}
button:hover:not(:disabled) .ico-cloche .lid{transform:translateY(-.6px) rotate(-20deg)}
.ico-cloche .steam{opacity:0;transform:translateY(1.5px);transition:opacity .3s,transform .4s ease-out;stroke-width:1.6}
button:hover:not(:disabled) .ico-cloche .steam{opacity:1;transform:none;transition-delay:.1s}
button:hover:not(:disabled) .ico-cloche .stars path{transform:scale(1.2) rotate(45deg)}
button:hover:not(:disabled) .ico-cloche .stars path:nth-child(2){transition-delay:.06s}
button:hover:not(:disabled) .ico-cloche .stars path:nth-child(3){transition-delay:.12s}
.btn-spark .ico-cloche{overflow:visible;margin-top:-2px}
@media (prefers-reduced-motion:reduce){.ico-cloche .lid,.ico-cloche .stars path{transition:none}}

/* dropdowns: our own chevron with the same inner padding as the left side */
select.sel,.field select{appearance:none;-webkit-appearance:none;padding-right:46px;background-repeat:no-repeat;background-position:right 18px center;background-size:16px 16px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233C3631' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
.field select{background-position:right 14px center}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) select.sel,:root:not([data-theme="light"]) .field select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5EDE4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}}
:root[data-theme="dark"] select.sel,:root[data-theme="dark"] .field select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5EDE4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}

/* phones load a smaller hero photo (same picture, 900px wide) */
@media (max-width:700px){.hero{--hero-photo:url(img/hero-1-m.webp)}.vhead{background-image:linear-gradient(180deg,rgba(24,13,8,.66) 0%,rgba(24,13,8,.78) 60%,rgba(24,13,8,.9) 100%),url(img/hero-1-m.webp)}}

/* "Deri 25 min" sits with the diet chips but is its own on/off filter: a small gap and an orange "on" state */
.diet-bar .qtime{margin-left:6px}
.diet-bar .qtime[aria-pressed="true"]{background:#B35624;border-color:#B35624;color:#fff}
@media (max-width:560px){.diet-bar .qtime{margin-left:0}}

/* ---------- motion: hero entrance, heart, generate loader, photo shimmer ---------- */
/* hero: lines rise in one after another when the page opens */
@keyframes rise-in{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.hero .hero-copy > *,.hero .gen-actions,.hero .diet-bar,.hero .fmore{animation:rise-in .7s cubic-bezier(.2,.8,.2,1) both}
.hero .hero-copy > :nth-child(1){animation-delay:.05s}
.hero .hero-copy > :nth-child(2){animation-delay:.15s}
.hero .hero-copy > :nth-child(3){animation-delay:.28s}
.hero .gen-actions{animation-delay:.4s}
.hero .diet-bar{animation-delay:.52s}
.hero .fmore{animation-delay:.62s}
/* the photo settles in with a slow zoom */
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:inherit;background-size:cover;animation:settle 2.4s cubic-bezier(.2,.8,.2,1) both;pointer-events:none}
@keyframes settle{from{transform:scale(1.08)}to{transform:none}}
/* the heart under the Ç draws itself */
.heart-c svg path{stroke-dasharray:150;stroke-dashoffset:150;animation:draw-heart 1.1s ease-out .75s forwards}
@keyframes draw-heart{to{stroke-dashoffset:0}}

/* generate: a covered dish, the lid lifts, a bit of steam, then the meal */
.pick-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:260px;text-align:center}
.pick-loading p{margin:0;color:var(--muted);font-weight:600}
.cl{width:96px;height:78px;overflow:visible}
.cl-plate{stroke:var(--spark);stroke-width:5;stroke-linecap:round}
.cl-lid{fill:var(--spark);transform-box:view-box;transform-origin:12px 50px;animation:lid-lift .52s cubic-bezier(.3,1.4,.5,1) both}
.cl-steam{fill:none;stroke:var(--muted);stroke-width:3;stroke-linecap:round;opacity:0;animation:steam .52s ease-out .12s both}
@keyframes lid-lift{0%{transform:rotate(0)}35%{transform:rotate(3deg)}100%{transform:rotate(-24deg) translateY(-4px)}}
@keyframes steam{from{opacity:0;transform:translateY(6px)}to{opacity:.9;transform:none}}
.pick{animation:pick-in .32s ease-out}

/* photos: a soft shimmer while loading, then a fade-in */
.tile:has(img),.r-tile:has(img),.qe:has(img),.pick-emoji:has(img),.we:has(img),.cook-art:has(img),.cook-done-art:has(img){background:linear-gradient(100deg,var(--surface-2) 30%,color-mix(in srgb,var(--surface-2) 55%,#fff) 50%,var(--surface-2) 70%) 0 0/300% 100%;animation:shimmer 1.3s linear infinite}
.tile img,.r-tile img,.qe img,.pick-emoji img,.we img,.cook-art img,.cook-done-art img{opacity:0;transition:opacity .35s}
.tile img.ok,.r-tile img.ok,.qe img.ok,.pick-emoji img.ok,.we img.ok,.cook-art img.ok,.cook-done-art img.ok{opacity:1}
.tile:has(img.ok),.r-tile:has(img.ok),.qe:has(img.ok),.pick-emoji:has(img.ok),.we:has(img.ok),.cook-art:has(img.ok),.cook-done-art:has(img.ok){animation:none}
@keyframes shimmer{to{background-position:-300% 0}}

/* before the recipes have loaded: the buttons wait, with a small spinner on Generate */
.booting #gen-btn,.booting #week-btn,.booting #diet-bar,.booting .fmore{pointer-events:none;opacity:.75}
.booting #gen-btn svg{animation:spin .9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

@media (prefers-reduced-motion:reduce){
  .hero .hero-copy > *,.hero .gen-actions,.hero .diet-bar,.hero .fmore,.hero::before,.pick,.cl-lid,.cl-steam{animation:none}
  .heart-c svg path{animation:none;stroke-dashoffset:0}
  .tile:has(img),.r-tile:has(img),.qe:has(img),.pick-emoji:has(img),.we:has(img){animation:none}
}
