/* Gezond Mandje, Material 3-stijl met een roze bronkleur: tonale vlakken in plaats van lijnen,
   afgeronde kaarten, een app-balk bovenaan en een navigatiebalk met pil-indicator onderaan. */
:root{color-scheme:light dark;
  --primary:#e0457b;--accent:#c92f68;--on-primary:#fff;--pc:#ffe0ea;--on-pc:#4a0f27;
  --sc:#fde6ee;--on-sc:#2c1519;--tc:#ffe4d3;--on-tc:#3d1a05;--ok:#d7f2e3;--on-ok:#05210f;
  --bg:#fff;--s1:#fcf2f5;--s2:#f9ecf0;--s3:#f5e8ec;--ink:#2a2128;--soft:#6e6169;--outline:#b49aa4;--hair:#f0e2e7;
  --err:#ba1a1a;--errc:#ffdad6;
  /* oude namen, zodat bestaande opmaak blijft werken */
  --green:var(--primary);--on:var(--on-primary);--blush:var(--pc);--line:var(--hair);--tom:var(--err);--mint:var(--ok);--peach:var(--tc);--panel:var(--s1);
  --r:24px;--shadow:0 1px 2px rgba(60,20,30,.12),0 2px 6px rgba(60,20,30,.08)}
@media(prefers-color-scheme:dark){:root{
  --primary:#ff8fb3;--accent:#ff9fbf;--on-primary:#4a0f27;--pc:#7f2942;--on-pc:#ffd9e0;--sc:#5a3f45;--on-sc:#ffd9e0;--tc:#6b3b1d;--on-tc:#ffdcc6;--ok:#1f4d33;--on-ok:#cdeedb;
  --bg:#1a1113;--s1:#22191b;--s2:#2b2123;--s3:#362b2e;--ink:#f0dee1;--soft:#d5c1c5;--outline:#9e8c90;--hair:#3d3134;--err:#ffb4ab;--errc:#93000a}}
*{box-sizing:border-box;min-width:0}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.45 Figtree,system-ui,sans-serif;overflow-x:clip;display:flex;flex-direction:column;-webkit-tap-highlight-color:transparent}
h1,h2,h3{font-weight:800;line-height:1.2;margin:0;letter-spacing:0}
h2{font-size:24px}h3{font-size:19px}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--primary)}
.gut{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.wrap{max-width:720px;margin:0 auto;width:100%}
@media(min-width:900px){html{background:var(--s3)}body{max-width:480px;margin:24px auto;height:calc(100% - 48px);border-radius:32px;overflow:hidden;box-shadow:0 10px 40px rgba(60,20,30,.18)}}

/* app-balk */
header{background:var(--bg);padding-top:calc(env(safe-area-inset-top,0px) + 8px);padding-bottom:4px;position:relative;z-index:1}
.top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:56px}
header h1{font-size:22px;font-weight:800;display:flex;align-items:center;gap:12px;line-height:1.1}
header h1 small{display:block;font-size:14px;font-weight:500;color:var(--accent);margin-top:2px}
header h1 img{width:32px;height:32px;flex:none}
header h1 .icon{margin-left:-10px;color:var(--ink)}
[hidden]{display:none!important}
.who{display:flex;gap:6px;align-items:center}
.who button{width:40px;height:40px;border-radius:50%;border:0;background:var(--s3);color:var(--soft);font-weight:700;font-size:15px;cursor:pointer;display:grid;place-items:center;padding:0}
.who button[aria-pressed=true]{background:var(--pc);color:var(--on-pc)}
.who button.gear{background:none;color:var(--soft)}
.who button svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
main{flex:1;overflow-y:auto;padding-top:8px;padding-bottom:24px}

/* navigatiebalk */
nav{background:var(--bg);border-top:1px solid var(--hair);padding-bottom:env(safe-area-inset-bottom,0px)}
nav .wrap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
nav button{border:0;background:none;padding:10px 2px 12px;cursor:pointer;color:var(--ink);font-size:13px;font-weight:500;display:flex;flex-direction:column;align-items:center;gap:4px}
nav button svg{width:30px;height:30px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:background .2s}
nav button{color:var(--ink)}
nav button[aria-current=page]{color:var(--primary);font-weight:700}

/* knoppen */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;border:0;background:var(--primary);color:var(--on-primary);border-radius:99px;padding:10px 24px;min-height:44px;font-weight:500;font-size:15px;cursor:pointer;transition:transform .1s,filter .15s}
.btn:active{transform:scale(.97)}
.btn:hover{filter:brightness(1.05)}
.btn.ghost{background:var(--sc);color:var(--on-sc)}
.btn.tonal{background:var(--pc);color:var(--on-pc)}
.btn.text{background:none;color:var(--primary);padding:8px 12px}
.btn.sm{min-height:36px;padding:6px 16px;font-size:14px}
.btn:disabled{opacity:.4;cursor:default}
.btn .bi{margin:0}
:focus-visible{outline:3px solid var(--primary);outline-offset:2px}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.between{justify-content:space-between}
.card{background:var(--s1);border-radius:var(--r);padding:16px}
.card.pink,.card.alert{background:var(--pc);color:var(--on-pc)}
.stack>*+*{margin-top:12px}
.muted{color:var(--soft);font-size:14px}
label{font-size:14px;font-weight:500;display:block;margin:10px 0 4px}
input,select,textarea{width:100%;border:0;background:var(--s3);border-radius:16px;padding:12px 16px;font-size:16px}
input:focus,textarea:focus{outline:2px solid var(--primary);outline-offset:0}
textarea{resize:vertical;min-height:52px}
.g2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:12px}
.g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}

/* gesegmenteerde knop */
.seg{display:flex;border:1px solid var(--outline);border-radius:99px;overflow:hidden;width:100%}
.seg button{flex:1;border:0;background:none;padding:8px 6px;min-height:42px;font-weight:500;font-size:14px;cursor:pointer;color:var(--ink);display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
.seg button+button{border-left:1px solid var(--outline)}
.seg button[aria-pressed=true]{background:var(--sc);color:var(--on-sc)}
.seg.stores{border:0;gap:8px;overflow-x:auto;scrollbar-width:none;border-radius:0}
.seg.stores button{flex:0 0 auto;border:1px solid var(--hair);border-radius:99px;padding:4px 14px 4px 4px;background:var(--bg)}
.seg.stores button+button{border-left:1px solid var(--hair)}
.seg.stores button[aria-pressed=true]{background:var(--sc);border-color:var(--sc)}

/* lijsten */
.list{list-style:none;margin:0;padding:0 4px 0 12px;background:var(--s1);border-radius:20px}
.cat{font-size:15px;font-weight:800;color:var(--ink);margin:18px 4px 8px;display:flex;align-items:center;letter-spacing:.02em}
.it{display:flex;align-items:center;gap:10px;min-height:52px}
.it+.it{border-top:1px solid var(--hair)}
.it input[type=checkbox]{width:22px;height:22px;accent-color:var(--primary);flex:none}
.it label{flex:1;margin:0;font-weight:400;font-size:16px;cursor:pointer;padding:12px 0}
.it.done label{text-decoration:line-through;color:var(--soft)}
.x{border:0;background:none;color:var(--soft);font-size:20px;cursor:pointer;width:40px;height:40px;flex:none;border-radius:50%;display:grid;place-items:center;padding:0}
.x:hover{background:var(--s3)}
.tag{font-size:12px;font-weight:500;border-radius:8px;padding:2px 8px;background:var(--tc);color:var(--on-tc);white-space:nowrap}
.tag.src{background:var(--s3);color:var(--soft)}
.tag.ai{font-style:italic}
.bar{height:8px;border-radius:99px;background:var(--pc);overflow:hidden}
.bar i{display:block;height:100%;background:var(--primary);border-radius:99px}
.bar i.over{background:var(--err)}
.big{font-size:clamp(34px,8vw,44px);font-weight:400;line-height:1;white-space:nowrap}

/* chat */
.msgs{display:flex;flex-direction:column;gap:8px}
.m{max-width:85%;padding:10px 14px;border-radius:20px;overflow-wrap:anywhere}
.m.u{align-self:flex-end;background:var(--primary);color:var(--on-primary);border-bottom-right-radius:6px}
.m.a{align-self:flex-start;background:var(--s2);border-bottom-left-radius:6px}
.m p{margin:0 0 6px}.m p:last-child{margin:0}.m ul{margin:4px 0;padding-left:20px}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{border:1px solid var(--hair);background:var(--bg);color:var(--ink);border-radius:8px;padding:6px 12px;font-size:14px;font-weight:500;cursor:pointer;min-height:32px}
.chip.on{background:var(--sc);border-color:var(--sc);color:var(--on-sc)}
.chips.scrollx{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.chips.scrollx .chip{white-space:nowrap;flex:none}
.compose{position:sticky;bottom:0;display:flex}
.compose textarea{min-height:48px;height:48px;border-radius:24px;resize:none}
.kv2{display:grid;grid-template-columns:max-content 1fr;gap:6px 16px;margin:0}
.kv2 dt{color:var(--soft);font-size:14px}
.kv2 dd{margin:0;overflow-wrap:anywhere}
.dot{width:12px;height:12px;border-radius:50%;flex:none}
.fig{position:relative;height:170px}.fig>svg{position:absolute;inset:0;width:100%;height:100%}
.note{font-size:12px;color:var(--soft);margin-top:16px;text-align:center}
.banner{background:var(--tc);color:var(--on-tc);border-radius:16px;padding:10px 14px;font-size:14px;margin-bottom:12px}
section>h2{margin:4px 4px 12px}

/* vandaag */
.hero{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center;background:var(--pc);color:var(--on-pc)}
.ring{width:124px;height:124px;position:relative}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring .c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1.1}
.ring .c b{font-size:30px;font-weight:500}
.ring .c span{font-size:12px;opacity:.8}
.day{display:flex;align-items:center;gap:2px;margin-bottom:6px;font-weight:700}
.day button{border:0;background:none;width:32px;height:32px;border-radius:50%;cursor:pointer;color:inherit;font-size:20px;line-height:1}
.day button:disabled{opacity:.3}
.pills{display:flex;flex-wrap:wrap;gap:6px}
.pill{border-radius:8px;padding:3px 10px;font-size:13px;font-weight:500;white-space:nowrap;background:var(--s3);color:inherit}
.pill.mint{background:var(--ok);color:var(--on-ok)}.pill.peach{background:var(--tc);color:var(--on-tc)}
.hero .pill{background:rgba(255,255,255,.6)}
@media(prefers-color-scheme:dark){.hero .pill{background:rgba(0,0,0,.25)}}
.kcal{font-size:15px;margin:0 0 8px}
/* zoekbalk-achtige invoer */
.ask{display:flex;gap:4px;align-items:center;background:var(--s1);border-radius:28px;padding:4px 4px 4px 6px}
.ask textarea,.ask input{flex:1;background:none;border:0;min-height:48px;resize:none;padding:12px 10px;border-radius:24px}
.ask textarea:focus,.ask input:focus{outline:0}
.ask:focus-within{outline:2px solid var(--primary)}
.icon{width:44px;height:44px;flex:none;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border:0;background:none;color:var(--soft);font-size:20px;margin:0}
.icon:hover{background:var(--s2)}
.icon.send{background:var(--primary);color:var(--on-primary);width:48px;height:48px}
.icon svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon:disabled{opacity:.4}
.icon.sm{width:36px;height:36px;font-size:18px;background:var(--s3)}
.toast{background:var(--ok);color:var(--on-ok);border-radius:12px;padding:10px 14px;font-size:14px;margin-top:10px}
.toast.err{background:var(--tc);color:var(--on-tc)}
.toast:empty{display:none}
.good{background:var(--ok)}
.meals{padding:4px 8px 4px 16px}
.meal{display:grid;grid-template-columns:1fr auto auto auto;gap:4px;align-items:center;min-height:56px;padding:6px 0}
.meal+.meal{border-top:1px solid var(--hair)}
.meal .t{font-size:16px;line-height:1.3}
.meal time{display:block;color:var(--soft);font-size:12px;font-variant-numeric:tabular-nums}
.meal .k{font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:14px;color:var(--soft)}
.part{border:0;background:var(--sc);color:var(--on-sc);border-radius:8px;min-width:40px;height:30px;font-size:13px;font-weight:700;cursor:pointer;margin-left:6px}
.part.one{background:none;color:var(--outline);font-weight:500}
.tip{display:flex;gap:12px;align-items:center;background:var(--tc);color:var(--on-tc);border-radius:16px;padding:12px 16px;font-size:14px}
.tip svg{width:22px;height:22px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:400px){.ring{width:108px;height:108px}.ring .c b{font-size:26px}.hero{gap:12px}}

/* klantenkaart */
.card-code{background:#fff;color:#000;border-radius:14px;padding:12px 14px 8px;text-align:center;cursor:pointer;border:8px solid var(--primary);box-shadow:var(--shadow)}
.card-code svg{width:100%;height:84px;display:block}
.card-code .num{font:500 15px/1.4 ui-monospace,monospace;letter-spacing:.08em}
.full{position:fixed;inset:0;background:#fff;z-index:9;display:flex;flex-direction:column;justify-content:center;padding:24px;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
.full svg{width:100%;height:40vh}
.full p{color:#000;text-align:center}
.recs{margin:0;padding-left:20px}.recs li+li{margin-top:6px}
.kv{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.kv>div{background:var(--bg);border-radius:16px;padding:10px 12px}
.kv b{display:block;font-size:20px;font-weight:500;white-space:nowrap}
.kv span{font-size:12px;color:var(--soft)}
@media(max-width:520px){.g3{grid-template-columns:1fr}}
.scroll{overflow-x:auto}
.hist{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.hist th{text-align:left;color:var(--soft);font-weight:500;padding:6px 6px 6px 0;border-bottom:1px solid var(--hair)}
.hist td{padding:4px 6px 4px 0;border-bottom:1px solid var(--hair);white-space:nowrap}
.hist .x{width:32px;height:32px;font-size:18px}

/* producten (Open Food Facts) */
.prod{display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;padding:8px 0}
.prod+.prod{border-top:1px solid var(--hair)}
.prod img,.prod .ph{width:52px;height:52px;object-fit:contain;background:#fff;border-radius:12px}
.prod .ph{background:var(--pc)}
.prod b{display:block;font-weight:500}
.ns{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:12px;font-weight:800;color:#fff;vertical-align:middle}
.ns-a{background:#038141}.ns-b{background:#85bb2f}.ns-c{background:#e5a100;color:#000}.ns-d{background:#ee8100}.ns-e{background:#e63e11}
.sheet{position:fixed;inset:0;z-index:8;background:rgba(30,10,16,.4);display:flex;align-items:flex-end;justify-content:center}
.sheet>div{background:var(--s1);width:100%;max-width:720px;max-height:88vh;overflow:auto;border-radius:28px 28px 0 0;padding:12px 20px calc(20px + env(safe-area-inset-bottom,0px))}
.sheet>div::before{content:"";display:block;width:32px;height:4px;border-radius:2px;background:var(--outline);opacity:.5;margin:0 auto 12px}
.sheet .list{background:var(--bg)}
.sheet video{width:100%;max-height:40vh;object-fit:cover;border-radius:20px;background:#000}
.hero-ill{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;background:var(--pc);color:var(--on-pc);border-radius:var(--r);padding:16px 8px 16px 20px}
.hero-ill svg{width:104px;height:104px}
.empty{text-align:center;color:var(--soft);padding:24px 16px}
.empty svg{width:120px;height:120px;display:block;margin:0 auto 8px}
.sources li{margin-bottom:10px}
.ci{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px;margin-right:8px;flex:none}
.si,.bi{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
/* winkellogo's */
.sb{display:inline-block;width:32px;height:32px;flex:none;vertical-align:middle}
.sb.lg{width:40px;height:40px}
details.fold{background:var(--s1);border-radius:20px;padding:0 16px;margin-top:10px}
details.fold summary{cursor:pointer;list-style:none;display:flex;align-items:center;min-height:56px;font-weight:500}
details.fold summary::-webkit-details-marker{display:none}
details.fold summary::after{content:"";width:8px;height:8px;border-right:2px solid var(--soft);border-bottom:2px solid var(--soft);transform:rotate(45deg);margin:-4px 4px 0 auto;transition:transform .2s}
details.fold[open]{padding-bottom:14px}
details.fold[open] summary::after{transform:rotate(-135deg);margin-top:4px}
details.kitd summary .dot{margin:0 12px 0 0}
.linkish{border:0;background:none;padding:0;text-align:left;cursor:pointer}
.linkish span{display:block}
.qty{display:flex;align-items:center;gap:2px;background:var(--s3);border-radius:99px;padding:2px}
.qty b{min-width:22px;text-align:center;font-weight:500;font-size:15px}
.qty button{width:32px;height:32px;border-radius:50%;border:0;background:none;cursor:pointer;font-size:18px;color:var(--ink);display:grid;place-items:center;padding:0}
.qty button:hover{background:var(--s2)}
.qty button svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.age{font-size:11px;font-weight:700;border-radius:6px;padding:1px 6px;background:var(--tc);color:var(--on-tc);margin-left:6px;vertical-align:1px}
input[type=range]{padding:0;background:none;accent-color:var(--primary)}

/* tegels en rijen met gekleurd icoon */
.ic{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;flex:none;color:#fff;background:linear-gradient(145deg,#ff8db3,#e0457b)}
.ic svg{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ic.peach{background:linear-gradient(145deg,#ffb48a,#f0767a)}.ic.mint{background:linear-gradient(145deg,#7fd8b0,#3bab83)}.ic.lilac{background:linear-gradient(145deg,#c9a7ff,#9a6be8)}
.rowcard{display:flex;align-items:center;gap:16px;width:100%;text-align:left;background:var(--bg);border:1px solid var(--hair);border-radius:20px;padding:14px 16px;cursor:pointer;color:inherit;font:inherit;margin:0}
.rowcard b{display:block;font-size:17px;font-weight:800}
.rowcard span.sub{display:block;color:var(--soft);font-size:14px}
.rowcard::after{content:"";width:9px;height:9px;border-right:2.5px solid var(--ink);border-top:2.5px solid var(--ink);transform:rotate(45deg);margin-left:auto;flex:none}
.band{background:var(--s1);margin:16px -16px;padding:16px;display:grid;gap:10px}
.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tiles button,.tiles label{background:var(--s1);border:0;border-radius:18px;padding:14px 4px 12px;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px;font-weight:600;cursor:pointer;color:var(--ink);margin:0;text-align:center;line-height:1.2}
.tiles .ic{width:46px;height:46px}
.secth{display:flex;justify-content:space-between;align-items:baseline;margin:22px 0 10px}
.secth a,.secth button{color:var(--accent);font-weight:700;background:none;border:0;cursor:pointer;font-size:15px}
.empty b{display:block;color:var(--ink);font-size:20px;font-weight:800;margin-bottom:4px}
.empty .circ{width:150px;height:150px;border-radius:50%;background:var(--s1);display:grid;place-items:center;margin:0 auto 14px}
.empty .circ svg{width:104px;height:104px;margin:0}

/* simpele versie: chat, eten, lijst */
.chat{display:flex;flex-direction:column;min-height:100%}
.chat .msgs{flex:1}
.compose{margin-top:12px;align-items:center;background:var(--s1);border-radius:28px;padding:4px;gap:2px;bottom:8px;box-shadow:0 14px 0 6px var(--bg)}
.compose textarea{flex:1;background:none;min-height:44px;height:44px;padding:11px 8px;border-radius:0}
.compose textarea:focus{outline:0}
.compose textarea{overflow-y:auto;scrollbar-width:none}
.compose textarea::-webkit-scrollbar{display:none}
.compose:focus-within{outline:2px solid var(--primary)}
.typing{display:flex;gap:4px;padding:14px 16px}
.typing i{width:7px;height:7px;border-radius:50%;background:var(--soft);opacity:.4;animation:blink 1.2s infinite}
.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}
@keyframes blink{50%{opacity:1}}
.hint{margin:0 4px;font-size:14px;color:var(--soft)}
.list.meals{padding:0 0 0 16px}
.meal{display:block;padding:0;min-height:0}
.meal+.meal{border-top:1px solid var(--hair)}
.mrow{display:flex;align-items:center;gap:12px;width:100%;border:0;background:none;text-align:left;padding:12px 16px 12px 0;cursor:pointer;color:inherit;font:inherit}
.mrow .t{flex:1}
.mrow .k{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.macts{display:flex;gap:6px;flex-wrap:wrap;padding:0 16px 12px 0}
.chip.del{color:var(--err);margin-left:auto}
.sheet[data-k=menu]>div{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
.mi{display:flex;align-items:center;gap:14px;width:100%;border:0;background:none;padding:10px 4px;font:inherit;font-size:16px;font-weight:600;color:var(--ink);cursor:pointer;text-decoration:none;text-align:left;border-radius:14px}
.mi:hover{background:var(--s2)}
.ic.sm{width:38px;height:38px;border-radius:12px}
.ic.sm svg{width:20px;height:20px}
.av{display:flex;flex-direction:column;align-items:center;gap:4px;border:0;background:none;cursor:pointer;font:inherit;font-size:13px;color:var(--soft)}
.av b{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--s3);font-size:20px;color:var(--soft)}
.av.on{color:var(--ink);font-weight:700}.av.on b{background:var(--primary);color:var(--on-primary)}
.empty{padding:32px 16px}
.seg.stores button{padding:3px 12px 3px 3px;min-height:38px}
.seg.stores .sb{width:30px;height:30px}
/* rustige lijsten: geen blokken, enkel dunne scheidingslijnen */
.list{background:none;border-radius:0;padding:0}
.list .it{padding-left:2px}
.it+.it,.meal+.meal{border-top:1px solid var(--hair)}
.list.meals{padding:0}
.stack>.list,.stack>.hint,.stack>.empty{margin-top:16px}
.cat{font-size:13px;font-weight:700;color:var(--soft);margin:20px 2px 2px;text-transform:uppercase;letter-spacing:.04em}
.x .si{margin:0}

/* weekmenu */
.week li+li{border-top:1px solid var(--hair)}
.wrow{display:flex;align-items:center;gap:12px;width:100%;border:0;background:none;text-align:left;padding:14px 2px;cursor:pointer;color:inherit;font:inherit}
.wd{width:88px;flex:none;font-weight:700;font-size:15px}
.wd.now{color:var(--accent)}
.wt{flex:1;font-size:16px}
.away{display:block;font-size:13px;color:var(--accent);margin-top:2px}
.mrow .k.plus{color:#2e8b57}
.sheet .ask{background:var(--bg)}
.wli{display:flex;align-items:center;gap:4px}
.wli .wrow{flex:1;min-width:0}
.bulb{width:16px;height:16px;fill:none;stroke:#e6a700;stroke-width:2;stroke-linecap:round;vertical-align:-3px;margin-right:4px}
.mhead{margin:14px 4px 2px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--soft)}
/* phones: full dynamic height (no jump when the URL bar hides), no rubber-band on the page, a bit more compact */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{height:100dvh;overscroll-behavior:none}
main{overscroll-behavior:contain}
button,a,label{touch-action:manipulation}
@media (max-width:420px){
  nav button{padding:8px 2px 8px;font-size:12px;gap:2px}
  nav button svg{width:26px;height:26px}
  .m{max-width:88%}
  .sheet>div{padding-left:16px;padding-right:16px}
}
/* keep the bottom bar on screen: only main scrolls, never the page itself */
body{overflow:hidden}
main{min-height:0}
header,nav{flex:none}
.it .pr{flex:none;font-size:14px;font-weight:600;color:var(--soft);text-align:right;margin-left:6px;line-height:1.2}
.it .pr small{display:block;font-size:11px;font-weight:600;color:var(--primary)}
.it button.pr{background:none;border:0;padding:4px 0;cursor:pointer;max-width:42%}
.it .pr .pn{display:block;font-size:11px;font-weight:500;color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.thumb{width:36px;height:36px;object-fit:contain;border-radius:8px;background:#fff;flex:none;margin-right:8px}
.thumb.big{width:56px;height:56px}
.it .qn{color:var(--primary)}
.it .qs{display:flex;gap:2px;flex:none}
.it .qs button{width:30px;height:30px;border-radius:50%;border:1px solid var(--hair);background:var(--bg);color:var(--ink);font-size:16px;line-height:1;cursor:pointer}
/* shopping list rows: name on top, matched product underneath, price on the right */
.it.li{align-items:center;gap:10px;padding:6px 0}
.it.li .thumb{margin-right:0;width:40px;height:40px}
.thumb.ph{display:inline-block;background:var(--s3)}
.it.li .lm{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;padding:4px 0}
.it.li .lm label{padding:0;font-size:16px;line-height:1.25;overflow-wrap:anywhere}
.it.li .sub{display:block;max-width:100%;text-align:left;font-size:12px;color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:none;border:0;padding:0;cursor:pointer}
.it.li .sub .chg{color:var(--primary);font-weight:600}
.it.li .tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.tag.promo{background:var(--primary);color:#fff}
.it.li .pr{font-size:15px;color:var(--ink);font-weight:700;min-width:56px}
.it.li .pr .was{color:var(--soft);text-decoration:line-through;font-weight:500}
.it.li.done .thumb{opacity:.5}
/* price per shop: three small cards, the cheapest marked */
.pcs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.pc{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:8px 10px;border-radius:14px;border:1px solid var(--hair);background:none;color:var(--ink);cursor:pointer;text-align:left;min-width:0}
.pc span{font-size:12px;color:var(--soft)}
.pc b{font-size:16px}
.pc small{font-size:11px;color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.pc.on{border-color:var(--ink)}
.pc.best{border-color:var(--primary)}
.pc.best small{color:var(--primary);font-weight:600}
/* autocomplete under the add bar */
.acw{position:relative}
.ac{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;background:var(--bg);border:1px solid var(--hair);border-radius:16px;box-shadow:0 12px 32px rgba(0,0,0,.25);max-height:min(60vh,420px);overflow-y:auto;overscroll-behavior:contain;padding:4px}
.ac[hidden]{display:none}
.acr{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:6px 10px;border:0;background:none;color:var(--ink);text-align:left;cursor:pointer;border-radius:12px;font:inherit}
.acr+.acr{border-top:1px solid var(--hair)}
.acr:active,.acr:hover{background:var(--s3)}
.acr .thumb{margin:0;width:40px;height:40px}
.acn{flex:1;min-width:0;font-size:15px;line-height:1.25;overflow-wrap:anywhere}
.acn small{display:block;font-size:12px;color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.acr b{flex:none;font-size:15px}
#addn::-webkit-search-cancel-button{display:none}
.it.li .sub.linkish{display:flex;gap:6px;align-items:baseline;white-space:nowrap}
.it.li .sub .pn2{display:block;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.it.li .sub .chg{display:block;flex:none}
.it.li .x.edit svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.it.li .x.edit{color:var(--soft)}
/* typing in the add bar on a phone: the bottom bar steps aside so the suggestions fit above the keyboard */
@media (max-width:899px){body.typing nav{display:none}}
main{scroll-padding-top:8px}
@media (max-width:899px){body.typing main{padding-bottom:70vh}}
/* feedback on every tap: hover on devices with a mouse, a visible press everywhere */
button,.btn,.chip,label.btn,.linkish,.pc,.acr,.wrow,nav button,.seg button,.x,.icon{transition:transform .08s ease,background-color .15s ease,filter .15s ease,opacity .15s ease}
@media (hover:hover){
  .btn:hover,label.btn:hover{filter:brightness(1.08)}
  .btn.ghost:hover,.chip:hover,.pc:hover,.seg button:hover,.wrow:hover,.x:hover,.icon:hover{background-color:var(--s2)}
  nav button:hover{background-color:var(--s1)}
}
.btn:active,label.btn:active,.chip:active,.pc:active,.acr:active,.seg button:active,.x:active,.icon:active,.linkish:active,.wrow:active,nav button:active,.it.li:active{transform:scale(.96)}
.btn:active,label.btn:active{filter:brightness(.92)}
.chip:active,.pc:active,.x:active,.icon:active,.wrow:active,nav button:active,.seg button:active{background-color:var(--s3)}
.it.li:active{transform:none;background-color:var(--s1)}
button:focus-visible,.btn:focus-visible,.chip:focus-visible,input:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
button[disabled],.btn[disabled]{opacity:.55;cursor:default;transform:none}
/* menu sheet: compact on phones (also with big system font) */
.avs{display:flex;gap:20px;justify-content:center;margin-bottom:10px}
.avs .av b{width:44px;height:44px;font-size:18px}
.mgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 10px}
.mt{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 4px 10px;border:0;border-radius:18px;background:var(--bg);font:inherit;font-size:13px;font-weight:600;color:var(--ink);line-height:1.2;text-align:center;cursor:pointer;overflow-wrap:anywhere;transition:transform .08s ease,background-color .15s ease}
.mt:active{transform:scale(.96);background:var(--s3)}
@media (hover:hover){.mt:hover{background:var(--s2)}}
.sheet[data-k=menu] .mi{padding:7px 4px;font-size:15px;min-height:44px}
.ic.xs{width:30px;height:30px;border-radius:10px}
.ic.xs svg{width:17px;height:17px}
.ic.grey{background:var(--s3);color:var(--soft)}
.tg{width:40px;height:24px;border-radius:12px;background:var(--s3);position:relative;flex:none;transition:background .2s}
.tg::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:left .2s}
.tg.on{background:var(--primary)}.tg.on::after{left:19px}
.sheet>div{max-height:88dvh;overscroll-behavior:contain;touch-action:pan-y}
.it.li .lm label{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.qs.big{display:inline-flex;align-items:center;gap:4px;background:var(--bg);border-radius:24px;padding:4px}
.qs.big button{width:40px;height:40px;border-radius:50%;border:0;background:var(--s2);color:var(--ink);font-size:22px;line-height:1;display:grid;place-items:center;padding:0;cursor:pointer}
.qs.big b{min-width:32px;text-align:center;font-size:18px}
/* chat: day lines, times, done-lists, photos */
.dsep{display:flex;justify-content:center;margin:8px 0 2px}
.dsep span{font-size:12px;font-weight:600;color:var(--soft);background:var(--s1);padding:3px 10px;border-radius:10px}
.m{position:relative;line-height:1.4;box-shadow:0 1px 1px rgba(0,0,0,.04)}
.m time{display:block;font-size:11px;opacity:.6;text-align:right;margin-top:2px;line-height:1}
.m .dn{list-style:none;margin:8px 0 2px;padding:8px 10px;background:var(--bg);border-radius:12px;display:flex;flex-direction:column;gap:4px;font-size:14px}
.m .dn li{display:flex;gap:6px;align-items:flex-start}
.m .dn li::before{content:"✓";color:var(--ok);font-weight:700;flex:none}
.m .dn li.w::before{content:"!";color:var(--tom,#d9534f)}
.m p+.dn{margin-top:8px}
.m.hp{padding:4px 4px 8px}
.m.hp>p,.m.hp>time,.m.hp>.dn{margin-left:10px;margin-right:10px}
.m.hp>p:first-of-type{margin-top:6px}
.pic{display:block;border:0;padding:0;background:none;cursor:zoom-in;border-radius:16px;overflow:hidden;line-height:0}
.pic img{display:block;width:100%;max-width:260px;max-height:300px;object-fit:cover}
.m.u.hp{border-bottom-right-radius:6px}
.zoom{position:fixed;inset:0;z-index:10;background:rgba(0,0,0,.9);display:grid;place-items:center;padding:16px;cursor:zoom-out}
.zoom img{max-width:100%;max-height:100%;border-radius:12px}
.compose{flex-direction:column;align-items:stretch}
.compose .cr{display:flex;align-items:center;gap:2px}
.compose.withpic{border-radius:24px}
.stage{display:flex;gap:10px;padding:8px 8px 4px;align-items:flex-start}
.stage .sp{position:relative;flex:none}
.stage .sp img{width:72px;height:72px;object-fit:cover;border-radius:14px;display:block}
.stage .sp .x{position:absolute;top:-8px;right:-8px;width:28px;height:28px;font-size:16px;background:var(--ink);color:var(--bg)}
.stage .sk{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;font-size:13px}
.stage .chips{display:flex;flex-wrap:wrap;gap:6px;margin:0}
.stage .chip{padding:6px 12px;font-size:13px}
/* tap answers under Clauda's question */
.opts{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 4px;align-self:flex-start;max-width:92%;animation:pop .25s ease}
.opts .chip{border-radius:18px;border-color:var(--primary);color:var(--primary);background:var(--bg);font-weight:600;padding:8px 14px;min-height:38px}
.opts .chip:active{background:var(--pc)}
@keyframes pop{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.msgs>.m:last-of-type{animation:pop .25s ease}
.pm{display:flex;gap:6px;padding:6px 6px 0}
.pm .mi{flex:1;background:var(--bg);font-size:14px;padding:8px 10px;gap:8px;justify-content:center;border-radius:16px}
.pm .ic.xs svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8}
