:root {
  --bg: #F4F6F3; --card: #FFFFFF; --ink: #15201A; --ink2: #3E4A42; --muted: #55625A; --line: #E3E8E4; --line2: #EEF1EE;
  --green: #0B5D3B; --green-d: #084A2F; --green-l: #DCEFE3; --blue: #1D3F78; --blue-l: #E3ECF8;
  --amber: #7A3B05; --amber-l: #FBEBD5; --orange: #8A3A06; --orange-l: #FCE8D9; --red: #9B1C1C; --red-l: #FBE3E3;
  --r: 16px; --font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --display: 'Space Grotesk', Inter, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.4 var(--font); -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--green); }
.wrap { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
header.top { padding: calc(16px + env(safe-area-inset-top)) 20px 8px; }
h1 { font: 700 26px/1.15 var(--display); margin: 0; }
h2 { font: 700 18px/1.2 var(--display); margin: 0 0 6px; }
.sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
main { flex: 1; padding: 4px 16px calc(88px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.card { background: var(--card); border-radius: var(--r); padding: 14px 16px; }
.card.flat { padding: 0; overflow: hidden; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 2px; }
.big { font: 700 24px var(--display); }
.small { font-size: 12px; color: var(--muted); }
.ink2 { color: var(--ink2); font-size: 13px; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.green { color: var(--green); }
.btn { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid #C9D1CB; background: var(--card); font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--ink); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--green-d); }
.btn.soft { background: var(--green-l); border-color: var(--green-l); color: var(--green); font-weight: 600; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, .chip:focus-visible, .tab:focus-visible, .linkbtn:focus-visible, .check:focus-visible { outline: 3px solid #7FB89A; outline-offset: 2px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btns .btn { flex: 1; }
.linkbtn { background: none; border: 0; padding: 8px 0; color: var(--green); font-weight: 500; cursor: pointer; min-height: 44px; }
.seg { display: flex; gap: 8px; }
.chip { flex: 1; min-height: 40px; border-radius: 20px; border: 1px solid #C9D1CB; background: var(--card); font-size: 13px; font-weight: 500; cursor: pointer; padding: 0 12px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill { font-size: 13px; font-weight: 600; color: var(--green); background: var(--green-l); padding: 3px 10px; border-radius: 12px; white-space: nowrap; align-self: flex-start; }
.pill.dearer { color: var(--amber); background: var(--amber-l); }
.lab { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.lab.l1 { background: var(--green-l); color: var(--green); }
.lab.l2 { background: var(--blue-l); color: var(--blue); }
.lab.l3, .lab.l4 { background: var(--amber-l); color: var(--amber); }
.lab.v { background: #EEF1EE; color: var(--ink2); }
.lab.warn { background: var(--red-l); color: var(--red); }
.store { display: flex; flex-direction: column; }
.store.taken { outline: 2px solid var(--green); }
.store > button.head { width: 100%; text-align: left; background: none; border: 0; border-radius: var(--r); cursor: pointer; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.store .name { font-weight: 600; font-size: 17px; }
.store .saving { font-weight: 600; font-size: 17px; color: var(--green); white-space: nowrap; }
.items { border-top: 1px solid var(--line); padding: 4px 16px; }
.it { padding: 10px 0; border-bottom: 1px solid var(--line2); display: flex; flex-direction: column; gap: 3px; }
.it:last-child { border-bottom: 0; }
.it .nm { font-size: 14px; font-weight: 500; }
.it .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.it.grey { opacity: .75; }
.it details summary { cursor: pointer; font-size: 12px; color: var(--green); list-style: none; min-height: 28px; display: flex; align-items: center; }
.it details[open] summary { margin-bottom: 4px; }
.why { font-size: 12px; color: var(--ink2); background: var(--bg); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.banner { border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.banner.orange { background: var(--orange-l); color: var(--orange); }
.banner.amber { background: var(--amber-l); color: var(--amber); }
.banner.green { background: var(--green-l); color: var(--green); }
.banner.red { background: var(--red-l); color: var(--red); }
.banner .x { background: none; border: 0; font-size: 20px; color: inherit; min-width: 44px; min-height: 44px; cursor: pointer; }
textarea, input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select { width: 100%; border: 1px solid #C9D1CB; border-radius: 12px; padding: 10px 12px; background: #fff; min-height: 44px; }
textarea { min-height: 120px; resize: vertical; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
nav.tabs { position: fixed; bottom: 0; left: 0; right: 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid #DDE3DE; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); z-index: 5; }
nav.tabs .inner { display: contents; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: var(--muted); text-decoration: none; position: relative; }
.tab[aria-current="page"] { color: var(--green); font-weight: 600; }
.tab svg { width: 22px; height: 22px; }
.dot { position: absolute; top: 8px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: #C2410C; border: 2px solid #fff; }
.check { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line2); min-height: 56px; cursor: pointer; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.check:last-child { border-bottom: 0; }
.box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #9AA59E; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.check[aria-checked="true"] .box { background: var(--green); border-color: var(--green); }
.check[aria-checked="true"] .t { text-decoration: line-through; color: var(--muted); }
.shop { position: fixed; inset: 0; background: var(--bg); z-index: 20; overflow-y: auto; display: flex; flex-direction: column; }
.shop .check { min-height: 64px; font-size: 18px; }
.shop .box { width: 32px; height: 32px; }
.modal { position: fixed; inset: 0; background: rgba(21, 32, 26, .45); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.empty { text-align: center; color: var(--muted); padding: 24px 8px; }
#toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; max-width: 90vw; }
#toast.on { opacity: 1; }
.laden { padding: 40px; text-align: center; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prod > button.head { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 12px 16px; display: flex; justify-content: space-between; gap: 8px; align-items: center; min-height: 56px; }
.badges { display: flex; gap: 4px; flex: none; }
.badge { font-size: 11px; font-weight: 600; border-radius: 8px; padding: 2px 6px; background: #EEF1EE; color: var(--ink2); }
.badge.ok { background: var(--green-l); color: var(--green); }
.badge.q { background: var(--amber-l); color: var(--amber); }
.lk { border-top: 1px solid var(--line2); padding: 10px 16px; display: flex; flex-direction: column; gap: 6px; }
.lk.off { opacity: .6; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
