/* Home Groceries: teal theme, mobile first */
:root{
  --bg:#EEF7F7; --surf:#FFFFFF; --ink:#0E2A2D; --mute:#5B7679; --acc:#0E7C86; --acc-ink:#FFFFFF;
  --tint:#CDEBED; --line:#D5E6E7; --warn:#B3541E; --warn-t:#F8E3D5; --ok:#1B7F4B;
  --display:"Bricolage Grotesque","Segoe UI",system-ui,sans-serif; --body:"Figtree","Segoe UI",system-ui,sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%;margin:0}
body{background:var(--bg);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.4;overscroll-behavior:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
:focus-visible{outline:3px solid var(--acc);outline-offset:2px}
h1,h2,h3{font-family:var(--display);margin:0;letter-spacing:-.01em}
[hidden]{display:none!important}

#shell{height:100%;max-width:520px;margin-inline:auto;display:flex;flex-direction:column;position:relative;background:var(--bg)}
@media (min-width:600px){#shell{box-shadow:0 0 0 1px var(--line)}}

/* splash */
#splash{position:fixed;inset:0;z-index:100;background:var(--acc);color:var(--acc-ink);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;transition:opacity .35s}
#splash.out{opacity:0;pointer-events:none}
#splash .mark{width:96px;height:96px;border-radius:28px;background:var(--acc-ink);color:var(--acc);display:grid;place-items:center;margin-bottom:22px}
#splash .mark svg{width:56px;height:56px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#splash h1{font-size:34px;line-height:1.05}
#splash p{opacity:.88;margin:10px 0 0;font-size:15px}
#splash .bar{width:130px;height:4px;border-radius:4px;background:rgba(255,255,255,.3);margin-top:44px;overflow:hidden}
#splash .bar i{display:block;height:100%;width:40%;background:var(--acc-ink);border-radius:4px;animation:ld 1.1s ease-in-out infinite}
@keyframes ld{0%{margin-left:-40%}100%{margin-left:100%}}

/* header and lists */
.top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:max(14px,env(safe-area-inset-top)) 16px 6px}
.top h2{font-size:26px}
.sync{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--mute);background:var(--surf);border:1px solid var(--line);border-radius:999px;padding:4px 10px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sync b{flex:none;width:7px;height:7px;border-radius:50%;background:var(--ok)}
.sync.off b{background:var(--warn)}
.iconbtn{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:var(--mute)}
.iconbtn svg,.search svg,.nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.scroll{flex:1;min-height:0;overflow-y:auto;padding:6px 16px 18px;display:flex;flex-direction:column;gap:12px;-webkit-overflow-scrolling:touch}
.search{display:flex;align-items:center;gap:8px;background:var(--surf);border:1px solid var(--line);border-radius:14px;padding:0 12px;color:var(--mute)}
.search input{flex:1;min-width:0;border:0;background:none;padding:11px 0;outline:none}
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none;flex:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;padding:7px 14px;border-radius:999px;background:var(--surf);border:1px solid var(--line);font-size:13px;font-weight:600;color:var(--mute)}
.chip.on{background:var(--acc);border-color:var(--acc);color:var(--acc-ink)}
.cat{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);font-weight:700;margin:6px 0 -4px}
.list{display:flex;flex-direction:column;gap:8px}
.row{display:flex;align-items:center;gap:12px;background:var(--surf);border:1px solid var(--line);border-radius:16px;padding:9px 10px;width:100%;text-align:left}
.tile{position:relative;flex:none;width:48px;height:48px;border-radius:13px;background:var(--surf);border:1px solid var(--line);display:grid;place-items:center;overflow:hidden;color:var(--acc);font-family:var(--display);font-weight:800;font-size:20px}
.tile.big{width:92px;height:92px;border-radius:24px;font-size:38px}
.tile.sm{width:34px;height:34px;border-radius:10px;font-size:15px}
.tile.dim{filter:grayscale(.75);opacity:.8}
.tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:var(--surf)}
.tile svg{width:78%;height:78%}
.tile.letter{background:var(--tint)}
.grow{flex:1;min-width:0}
.nm{font-weight:700;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sub{color:var(--mute);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qty{font-variant-numeric:tabular-nums;font-weight:700;background:var(--tint);color:var(--acc);border-radius:11px;padding:5px 10px;white-space:nowrap}
.empty{margin:40px 8px;text-align:center;color:var(--mute)}
.empty h3{font-size:20px;color:var(--ink);margin-bottom:6px}
.pill{font-size:12px;font-weight:700;border-radius:9px;padding:3px 9px;background:var(--warn-t);color:var(--warn);white-space:nowrap}

/* bottom bar */
.nav{flex:none;display:grid;grid-template-columns:1fr 1fr 72px 1fr 1fr;align-items:end;padding:8px 6px max(12px,env(safe-area-inset-bottom));background:var(--surf);border-top:1px solid var(--line)}
.nav .t{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;line-height:1.1;font-weight:600;color:var(--mute);padding:4px 0;text-align:center}
.nav .t.on{color:var(--acc)}
.nav .add{justify-self:center;width:60px;height:60px;border-radius:50%;background:var(--acc);color:var(--acc-ink);display:grid;place-items:center;margin-top:-30px;box-shadow:0 6px 14px rgba(14,124,134,.35);border:4px solid var(--bg)}
.nav .add svg{width:28px;height:28px;stroke-width:2.4}
.badge{background:var(--warn);color:#fff;border-radius:9px;font-size:11px;padding:0 6px;line-height:17px;margin-left:4px}

/* layers */
#layers{position:absolute;inset:0;pointer-events:none;z-index:50}
.layer{position:absolute;inset:0;pointer-events:auto}
.layer.page{background:var(--bg);display:flex;flex-direction:column;animation:up .22s ease-out}
.layer.sheet{background:rgba(14,42,45,.45);display:flex;align-items:flex-end;animation:fade .2s}
.sheet .panel{width:100%;background:var(--bg);border-radius:24px 24px 0 0;padding:18px 16px max(18px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;max-height:92%;overflow-y:auto;animation:up .22s ease-out}
@keyframes up{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
@keyframes fade{from{opacity:0}to{opacity:1}}
.panel h3{font-size:21px}

/* forms */
.fld{display:flex;flex-direction:column;gap:5px}
.fld>label,.lab{font-size:12px;letter-spacing:.06em;text-transform:uppercase;font-weight:700;color:var(--mute)}
.inp,select.inp{width:100%;background:var(--surf);border:1px solid var(--line);border-radius:13px;padding:11px 13px;min-height:46px;outline:none}
.inp:focus,select.inp:focus{border:2px solid var(--acc);padding:10px 12px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.units{display:flex;gap:6px}
.units button{flex:1;padding:10px 0;border-radius:11px;border:1px solid var(--line);background:var(--surf);font-weight:700;color:var(--mute)}
.units button.on{background:var(--acc);border-color:var(--acc);color:var(--acc-ink)}
.sugg{background:var(--surf);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.sugg button{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border-bottom:1px solid var(--line);text-align:left}
.sugg button:last-child{border:0}
.ok{font-size:12px;color:var(--ok);font-weight:700}
.note{font-size:13px;color:var(--mute);background:var(--tint);border-radius:12px;padding:9px 12px}
.err{font-size:13px;color:var(--warn);background:var(--warn-t);border-radius:12px;padding:9px 12px}
.btn{display:block;width:100%;text-align:center;font-weight:700;padding:14px;border-radius:15px;background:var(--acc);color:var(--acc-ink)}
.btn.alt{background:var(--surf);color:var(--ink);border:1px solid var(--line)}
.btn.sm{width:auto;padding:8px 14px;border-radius:12px;font-size:13px}
.btn.danger{background:var(--warn-t);color:var(--warn)}
.btn:disabled{opacity:.55}
.link{color:var(--mute);font-size:13px;text-decoration:underline;text-underline-offset:3px;padding:8px}
.btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* detail */
.hero{display:flex;gap:14px;align-items:center}
.hero h3{font-size:26px;line-height:1.1}
.stepper{display:flex;align-items:center;justify-content:space-between;background:var(--surf);border:1px solid var(--line);border-radius:18px;padding:9px;gap:6px}
.stepper .b{width:46px;height:46px;border-radius:14px;background:var(--tint);color:var(--acc);display:grid;place-items:center;font-size:26px;font-weight:600;flex:none}
.stepper input{width:90px;border:0;background:none;text-align:center;font-family:var(--display);font-weight:800;font-size:30px;outline:none;font-variant-numeric:tabular-nums}
.stepper select{border:0;background:none;font-weight:700;color:var(--mute);font-size:16px;outline:none}
.card{background:var(--surf);border:1px solid var(--line);border-radius:18px;padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.card .l{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.big{font-family:var(--display);font-weight:800;font-size:26px;font-variant-numeric:tabular-nums}
.rl{display:flex;justify-content:space-between;font-size:12px;color:var(--mute);font-variant-numeric:tabular-nums;margin-top:8px}
.hist{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;font-variant-numeric:tabular-nums;padding:6px 0;border-bottom:1px solid var(--line)}
.hist:last-child{border:0}
.hist button{color:var(--mute);padding:2px 8px;font-size:16px}
.code{font-family:var(--display);font-weight:800;font-size:34px;letter-spacing:.12em;text-align:center;background:var(--surf);border:1px dashed var(--acc);border-radius:16px;padding:12px;color:var(--acc);user-select:all}

/* onboarding */
.onb{flex:1;overflow-y:auto;padding:max(28px,env(safe-area-inset-top)) 20px 24px;display:flex;flex-direction:column;gap:16px}
.onb h1{font-size:32px;line-height:1.05}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:var(--tint);padding:4px;border-radius:14px}
.seg button{padding:10px;border-radius:11px;font-weight:700;color:var(--mute)}
.seg button.on{background:var(--surf);color:var(--acc);box-shadow:0 1px 3px rgba(0,0,0,.1)}

#toast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translateX(-50%) translateY(20px);background:var(--ink);color:#fff;padding:10px 16px;border-radius:14px;font-size:14px;opacity:0;pointer-events:none;transition:.25s;z-index:200;max-width:86%;text-align:center}
#toast.show{opacity:1;transform:translateX(-50%)}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* tasks */
.row.task{align-items:flex-start}
.check{flex:none;width:30px;height:30px;border-radius:50%;border:2px solid var(--acc);background:var(--surf);color:var(--acc-ink);font-size:17px;font-weight:700;display:grid;place-items:center;margin-top:2px}
.task.done .check{background:var(--acc)}
.task.done .nm{text-decoration:line-through;color:var(--mute)}
.sub.late{color:var(--warn);font-weight:600}

/* stock/dairy switch, dairy add, spending */
.seg button .badge{margin-left:6px;background:var(--warn)}
.row.dq.on{border-color:var(--acc);background:var(--tint)}
.mini{display:flex;align-items:center;gap:4px;flex:none}
.mini .b{width:34px;height:34px;border-radius:10px;background:var(--tint);color:var(--acc);font-size:20px;font-weight:600;display:grid;place-items:center}
.row.dq.on .mini .b{background:var(--surf)}
.mini input{width:58px;min-height:34px;text-align:center;border:1px solid var(--line);border-radius:10px;background:var(--surf);font-weight:700;padding:4px 2px;font-variant-numeric:tabular-nums}
.foot{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px max(14px,env(safe-area-inset-bottom));background:var(--surf);border-top:1px solid var(--line)}
.chev{display:inline-grid;color:var(--mute);transition:transform .15s}
.chev svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chev.open{transform:rotate(90deg)}
.bl{display:grid;grid-template-columns:minmax(0,1fr) 56px 76px 34px;gap:6px;align-items:center}
.bl .inp{padding:9px 8px;min-height:42px}
.bl.head{margin-bottom:-6px}
.bl .iconbtn{width:34px;height:34px}
.hist span{min-width:0;overflow-wrap:anywhere}
.big.sm{font-size:21px;white-space:nowrap}
.ico{display:grid}
.ico svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* Out of stock view: warning colours so it is obvious which list you are on */
.seg.warn{background:var(--warn-t)}
.seg.warn button.on{color:var(--warn)}
.seg.warn button:not(.on){color:var(--warn);opacity:.75}
#main.out .top h2{color:var(--warn)}
#main.out .top{border-bottom:3px solid var(--warn-t)}
#main.out .row .btn:not(.alt):not(.danger){background:var(--warn)}
#main.out .tile{border-color:var(--warn-t)}

/* market prices on the item page */
.pr-bar{position:relative;height:18px;margin:8px 0 2px}
.pr-trk{position:absolute;top:6px;height:6px;border-radius:3px}
.pr-out{left:0;right:0;background:#E6ECEC}
.pr-d4d{background:linear-gradient(90deg,#2E9E5B 0%,#F2C230 50%,#D9433B 100%)}
.pr-mine{position:absolute;top:3px;height:12px;border-radius:6px;background:rgba(14,124,134,.22);border:2px solid var(--ink)}
.pr-pin{position:absolute;top:1px;transform:translateX(-50%)}
.pr-dot.last{width:16px;height:16px;border-radius:50%;border:3px solid var(--ink);background:var(--acc)}
.pr-ends{display:flex;justify-content:space-between;font-size:11px;color:var(--mute)}
.mk-side{display:flex;flex-direction:column;align-items:flex-end;gap:2px;line-height:1.25}
.mk-side .mk-chip{align-self:flex-end}
.mk-amt{font-size:13px;font-weight:700;color:var(--mute);font-variant-numeric:tabular-nums}
.mk-amt small{font-size:11px;font-weight:400}.mk-amt.up{color:#D9433B}.mk-amt.dn{color:#1E7A43}
.mk-list.open{max-height:420px;overflow:auto}
.mk-chip{display:inline-block;border-radius:6px;padding:1px 8px;font-size:11.5px;font-weight:700;white-space:nowrap;align-self:flex-start}
.mk-good{background:#D9F0DC;color:#1E5B2B}.mk-mid{background:#FBF0C9;color:#7A5B00}.mk-high{background:#F8D9D6;color:#8E2A24}.mk-few{background:#E6EDEE;color:var(--mute)}
.mk-u{font-family:var(--body);font-size:13px;font-weight:400;color:var(--mute)}
.mk-h{margin:2px 2px -4px;font-weight:700}
.of{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-top:1px solid var(--bg)}
.of:first-child{border-top:0}
.of .st{font-weight:700;margin-top:3px;overflow-wrap:anywhere}.of .sub{overflow-wrap:anywhere;white-space:normal}
.of .p{font-family:var(--display);font-size:20px;font-weight:700;text-align:right;line-height:1.1;flex:none;font-variant-numeric:tabular-nums}
.of .p small{display:block;font-family:var(--body);font-size:11px;font-weight:400;color:var(--mute)}
.of.top{border:1.5px solid var(--acc);border-radius:12px;padding:8px 10px;margin:8px -4px 4px}
.of s{color:var(--mute)}
.mk-more{margin:6px 0 10px;text-align:center;border:1px solid var(--acc);color:var(--acc);border-radius:10px;padding:8px;font-weight:700;width:100%}
.mk-note{margin:-4px 2px 4px}

/* Add grocery page: bigger rows with + and −, one mild colour block per category */
.row.add{padding:12px 12px;gap:10px;border-radius:18px;min-height:72px}
.row.add .pick{flex:1;min-width:0;display:flex;align-items:center;gap:12px;text-align:left;min-height:48px}
.row.add .pick .grow{display:flex;flex-direction:column}
.row.add .tile{width:52px;height:52px;border-radius:15px}
.row.add .nm{font-size:16.5px}
.row.add .mini{gap:8px}
.row.add .mini .b{width:42px;height:42px;border-radius:13px;font-size:24px}
.row.add .mini .b:disabled{opacity:.35}
.cblock{border-radius:20px;padding:10px 10px 12px;background:var(--cg-bg,#E6F3F4);border:1px solid var(--cg-line,#D5E6E7);display:flex;flex-direction:column;gap:8px}
.cblock .chead{font-family:var(--display);font-weight:700;font-size:15px;letter-spacing:.02em;color:var(--cg-ink,#0E7C86);padding:2px 6px 0}
.cg0{--cg-bg:#E3F2F3;--cg-line:#CBE4E6;--cg-ink:#0E6B74}
.cg1{--cg-bg:#FBF1DC;--cg-line:#F1E0BA;--cg-ink:#8A5E0E}
.cg2{--cg-bg:#E8F3E1;--cg-line:#D2E6C7;--cg-ink:#37701F}
.cg3{--cg-bg:#F6E7EE;--cg-line:#EBD0DD;--cg-ink:#8C3560}
.cg4{--cg-bg:#E7EBF8;--cg-line:#D1D9F0;--cg-ink:#3A4E9A}
.cg5{--cg-bg:#FBE9E1;--cg-line:#F2D3C5;--cg-ink:#9A4A22}
.cg6{--cg-bg:#EDE8F6;--cg-line:#DBD2EC;--cg-ink:#5B3F96}
.cg7{--cg-bg:#EFF1DD;--cg-line:#DDE1BE;--cg-ink:#68701B}

/* floating + button (Spending, Calendar) */
.fab{position:absolute;right:14px;bottom:calc(14px + env(safe-area-inset-bottom));width:46px;height:46px;border-radius:50%;background:var(--acc);color:var(--acc-ink);display:grid;place-items:center;box-shadow:0 6px 14px rgba(14,124,134,.35)}
.fab svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.tog{display:flex;align-items:center;gap:10px;font-weight:600}
.tog input{width:20px;height:20px;accent-color:var(--acc)}

/* calendar */
.calhd{display:flex;align-items:center;justify-content:space-between;gap:6px}
.calhd .ct{font-family:var(--display);font-weight:700;font-size:20px}
.calhd .hs{font-size:11.5px;color:var(--mute);text-decoration:underline;text-underline-offset:3px;min-height:16px}
.chips.wrap{flex-wrap:wrap;overflow:visible}
.cgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.dow{font-size:10px;color:var(--mute);text-align:center}
.cc{height:52px;border-radius:6px;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;border:.5px solid var(--line);background:var(--surf);padding:0}
.cc.tag{height:64px}
.cc.gr{background:rgba(99,153,34,.2)}
.cc .bl{position:absolute;inset:0;display:flex;flex-direction:column}
.cc .bl i{flex:1}
.cc .n{position:relative;font-size:13.5px;line-height:1}
.cc .h{position:relative;font-size:9px;line-height:1;margin-top:5px;color:var(--mute)}
.cc .tg{position:relative;font-size:7.5px;line-height:1;margin-top:7px;font-weight:500;white-space:nowrap}
.fz{position:absolute;top:2px;right:2px;z-index:2}
.cc.t{box-shadow:0 0 0 1.5px var(--acc) inset}
.cc.t .n{color:var(--acc);font-weight:600}
.cc.pr{border:1.5px dotted #D4537E}
.lg{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:11px;color:var(--mute);align-items:center}
.lg u{width:10px;height:10px;border-radius:2px;display:inline-block;margin-right:4px;vertical-align:-1px;text-decoration:none}
.lg u.dot{background:none;border:1.5px dotted #D4537E}
.lg u.gr{background:rgba(99,153,34,.35)}
.lg .fz{position:static;vertical-align:-2px;margin-right:3px}
.ti{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.row.ent{position:relative;padding-left:16px;overflow:hidden}
.row.ent .stripe{position:absolute;left:0;top:0;bottom:0;width:6px}
.row.ent .pp{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}
.row.ent .pp b{font-size:10.5px;color:#fff;border-radius:9px;padding:1px 8px;font-weight:600}
.tico{color:var(--mute);display:grid}
.tchip{display:inline-flex;align-items:center;gap:6px}
.chip.dashed{border-style:dashed}
.sws{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.sw{width:30px;height:30px;border-radius:50%;border:3px solid var(--surf)}
.sw.on{box-shadow:0 0 0 2px var(--ink)}
.icn{width:36px;height:36px;border-radius:10px;border:1px solid var(--line);background:var(--surf);display:grid;place-items:center}
.icn.on{border-color:var(--acc);color:var(--acc)}
.pick{background:var(--surf);border:1px solid var(--line);border-radius:14px;padding:8px}
.pick .ph{display:flex;align-items:center;justify-content:space-between}
.pgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.pd{height:38px;border-radius:8px;font-variant-numeric:tabular-nums}
.pd.in{background:var(--tint);color:var(--acc);border-radius:0}
.pd.end{background:var(--acc);color:var(--acc-ink);border-radius:8px}
.sum{font-size:13px;color:var(--mute)}

/* eating out and food waste */
.mnav{display:flex;align-items:center;justify-content:space-between}
.mnav .ct{font-family:var(--display);font-weight:700;font-size:20px}
.split{display:flex;height:8px;border-radius:4px;overflow:hidden;background:#E6ECEC;gap:2px}
.split i{display:block;min-width:4px}
.split .a,.splitlg u.a{background:var(--acc)}
.split .b,.splitlg u.b{background:#8CCBD0}
.splitlg{display:flex;justify-content:space-between;font-size:13px;color:var(--mute)}
.splitlg u{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;text-decoration:none}
.splitlg b{color:var(--ink);font-variant-numeric:tabular-nums}
.chips.fit{gap:6px;overflow:visible}
.chips.fit .chip{flex:1;padding:7px 2px;text-align:center;font-size:12.5px}
.cat.dayh{display:flex;justify-content:space-between;margin-bottom:-4px}
.mealgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.mealt{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 2px;border-radius:14px;background:var(--surf);border:1px solid var(--line);font-size:12.5px;font-weight:700;color:var(--mute)}
.mealt .ico svg{stroke-width:1.7}
.mealt.on{background:var(--tint);border-color:var(--acc);color:var(--acc)}
.seg button[aria-pressed=true]{background:var(--surf);color:var(--acc);box-shadow:0 1px 3px rgba(0,0,0,.1)}
.inp.pricein{font-family:var(--display);font-weight:800;font-size:28px;min-height:62px;font-variant-numeric:tabular-nums}
.fab.warn{background:var(--warn);box-shadow:0 6px 14px rgba(179,84,30,.35)}
.pill.wq{max-width:46%;white-space:normal;text-align:right;font-size:12.5px;padding:4px 10px;overflow-wrap:anywhere}
.big.wn{color:var(--warn)}
.tile.wt.letter{background:var(--warn-t);color:var(--warn)}
.wprev{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:150px;border-radius:16px;border:1.5px dashed var(--line);background:var(--surf);overflow:hidden}
.wprev img{width:100%;max-height:260px;object-fit:cover;display:block}
.wphoto{width:100%;max-height:60vh;object-fit:cover;border-radius:18px;border:1px solid var(--line);background:var(--surf)}
