:root{color-scheme:light;--paper:#f7f8f3;--surface:#fff;--ink:#172c25;--text:#283e36;--dim:#52665e;--stroke:#dce4d9;--pine:#173d31;--pine-dark:#12392c;--lime:#def58f;--mint:#cbeaa8;--focus:#166745;--radius:23px;--sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-padding-top:var(--shopping-controls-clearance,0px)}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1rem/1.48 var(--sans);min-width:280px}
button,input{font:inherit}
button{cursor:pointer;color:inherit;font-weight:680;-webkit-tap-highlight-color:transparent}
button:disabled{cursor:not-allowed}
button:focus-visible,input:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
h1,h2,h3,p{margin:0}
svg.icon{width:24px;height:24px;display:block;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
svg.symbols{position:absolute;width:0;height:0;overflow:hidden}
.wrap{width:min(700px,calc(100% - 64px));margin-inline:auto}
main.wrap{padding:24px 0 calc(26px + env(safe-area-inset-bottom))}
.top[hidden]+main.wrap{padding-top:0}
.shopping-controls{position:sticky;top:env(safe-area-inset-top,0px);z-index:2;padding-bottom:18px;background:var(--paper)}
.top[hidden]+main .shopping-controls{top:0;padding-top:calc(12px + env(safe-area-inset-top,0px))}
.top{border-bottom:1px solid var(--stroke);background:var(--surface)}
@media(display-mode:standalone){.top{padding-top:env(safe-area-inset-top)}}
.top-inner{min-height:82px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0}
.brand-logo{display:block;width:clamp(3.6rem,18vw,5rem);max-width:23%;min-width:0;height:auto}
.top-actions{display:flex;align-items:center;min-width:0;gap:8px}
.top-actions{max-width:calc(100% - 4.35rem)}
.store-switch{min-height:54px;display:flex;gap:11px;align-items:center;min-width:0;border:1px solid var(--stroke);background:#fff;border-radius:13px;text-align:left;padding:6px 12px}
.store-switch strong{min-width:0;font-size:1rem;line-height:1.12;overflow-wrap:anywhere}
.store-switch .icon:first-child{color:#315e4c}
.store-switch .chevron{height:18px;width:18px;margin-left:4px}
.store-switch:disabled{background:#eff4ed;color:var(--ink);cursor:default;opacity:1}
.store-switch:disabled .chevron{color:#315e4c}
.balance{position:relative;background:var(--pine);color:#fff;border-radius:var(--radius);padding:26px 27px 11px}
.balance-grid{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;min-width:0}
.balance-grid::after{content:"";position:absolute;inset-block:0;inset-inline-start:50%;width:1px;background:#577567;pointer-events:none}
.balance-cell{min-width:0}
.balance-cell h2{color:#e2eee4;font-size:1.01rem;font-weight:640;line-height:1.25}
.amount{font-variant-numeric:tabular-nums;font-weight:820;font-size:clamp(2rem,10vw,4.4rem);letter-spacing:-.045em;line-height:1.1;white-space:nowrap;margin-top:5px}
.amount.tight{font-size:clamp(1.45rem,7.1vw,3.55rem)}
.amount.tiny{font-size:clamp(.95rem,4.7vw,2.2rem)}
.amount-unit{font-size:.68em;font-weight:780;letter-spacing:0}
@supports (font-size:1cqi){
  .balance-cell{container-type:inline-size}
  .amount,.amount.tight,.amount.tiny{font-size:min(clamp(2.125rem,11.4vw,4.4rem),var(--amount-fit,27.4cqi))}
}
.remains .amount{color:var(--lime)}
.remains.over .amount{color:#ffcaab}
.remains.over h2{color:#ffe5d7}
.balance-foot{margin-top:21px}
progress{display:block;width:100%;height:7px;appearance:none;border:0;border-radius:10px;background:#537567;color:var(--lime);overflow:hidden}
progress::-webkit-progress-bar{background:#537567;border-radius:10px}
progress::-webkit-progress-value{background:var(--lime);border-radius:10px}
progress::-moz-progress-bar{background:var(--lime);border-radius:10px}
progress.over::-webkit-progress-value{background:#ffcaab}
progress.over::-moz-progress-bar{background:#ffcaab}
.budget-control{display:inline-flex;align-items:center;min-height:48px;max-width:100%;border:0;border-radius:5px;padding:2px 10px 2px 0;background:transparent;line-height:1.2;color:#e5f0e5;text-align:left;font-size:.92rem;font-weight:530}
.budget-control strong{font-size:1rem;color:#fff;text-decoration:underline;text-decoration-color:#afcabc;text-underline-offset:4px}
.budget-control:focus-visible{outline-color:var(--lime);outline-offset:2px}
.monthly-balance{border-top:1px solid #577567;padding-block:8px 4px;color:#e5f0e5;font-size:.92rem;line-height:1.35}
.monthly-balance strong{white-space:nowrap;color:#fff;font-variant-numeric:tabular-nums}
.monthly-balance.over,.monthly-balance.over strong{color:#ffcaab}
.scan-primary{margin:14px 0 0;width:100%;min-height:65px;border:1px solid #bfd47d;border-radius:17px;background:var(--lime);display:flex;justify-content:center;align-items:center;gap:11px;font-size:1.25rem;font-weight:780;letter-spacing:-.025em}
.scan-primary .icon{width:28px;height:28px}
.panel{border:1px solid var(--stroke);border-radius:var(--radius);background:var(--surface)}
.cart{padding:0 21px 5px}
.cart-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:2px 11px;border-bottom:1px solid var(--stroke);padding:8px 0 5px}
.cart-header h2{display:flex;gap:9px;align-items:center;font-size:1.23rem;letter-spacing:-.036em;min-height:48px;line-height:1.2}
.counter{display:grid;place-items:center;min-width:27px;height:27px;padding-inline:6px;border-radius:7px;color:#274b3c;background:#e8eee5;font-size:.93rem;font-weight:740;letter-spacing:0}
.text-button{min-height:48px;padding:4px 5px;border:0;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:transparent;color:#22523f;text-align:left}
.text-button .icon{width:19px;height:19px}
.empty{display:flex;align-items:center;gap:13px;min-height:100px;padding:14px 0}
.empty .tile{width:48px;height:48px}
.empty strong{display:block;font-size:1rem}
.empty p{font-size:.94rem;color:var(--dim);margin-top:2px}
.history-entry{border-top:1px solid var(--stroke);padding-block:4px}
.history-entry .text-button,.history-entry p{display:flex;align-items:center;gap:10px}
.history-entry .text-button{width:100%;justify-content:flex-start;padding-inline:8px}
.history-entry p{min-height:46px;padding:5px 8px;font-size:.94rem;color:var(--dim)}
.history-entry .icon{width:21px;height:21px}
.line-items{list-style:none;margin:0;padding:0}
.line-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:12px 0;border-bottom:1px solid var(--stroke)}
.line-item:last-child{border-bottom:0}
.line-name{font-size:1rem;font-weight:750;overflow-wrap:anywhere}
.line-detail{font-size:.9rem;color:var(--dim);margin-top:2px}
.line-control{display:flex;gap:8px;align-items:center}
.line-money{min-width:64px;text-align:right;font-weight:750;font-variant-numeric:tabular-nums}
.stepper{display:flex;align-items:center;gap:3px}
.stepper button,.icon-button{width:48px;height:48px;background:#f4f7f1;border:1px solid var(--stroke);border-radius:11px;display:grid;place-items:center}
.stepper button .icon,.icon-button .icon{width:20px;height:20px}
.stepper button:disabled{opacity:.5}
.qty{min-width:21px;text-align:center;font-weight:710;font-variant-numeric:tabular-nums}
.clear{color:#694638;margin:0 0 2px}
.tile{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;color:#2d5b49;background:#e7efe4;flex:none}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}
dialog{border:0;padding:0;border-radius:22px;width:min(100% - 30px,510px);max-width:none;max-height:calc(100dvh - 32px);background:#fff;color:var(--ink);overflow:auto;box-shadow:0 24px 70px #102f2240;overscroll-behavior:contain}
dialog::backdrop{background:#142d25a3}
.modal{padding:20px 22px 22px}
.modal-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px}
.modal-top h2{font-size:1.65rem;font-weight:790;letter-spacing:-.045em;line-height:1.16;align-self:center;overflow-wrap:anywhere}
.modal-top .icon-button{flex:none}
.hint{color:var(--dim);margin-bottom:13px}
.field{display:grid;gap:6px;margin-bottom:13px;font-size:1rem;font-weight:670}
.field input{width:100%;min-height:52px;border:1px solid #a2b5a8;border-radius:10px;padding:9px 12px;background:#fbfdf9;color:var(--ink);font-size:1.08rem;font-weight:500}
.field input:focus-visible{outline-offset:1px}
.field input[aria-invalid="true"]{border-color:#a44726}
.error{color:#8b341d;font-size:.95rem;margin-block:3px 12px}
.primary,.secondary{width:100%;min-height:53px;border:1px solid #a8c46e;border-radius:12px;background:var(--lime);display:flex;align-items:center;justify-content:center;gap:8px;font-size:1.07rem;padding:7px 11px}
.secondary{border-color:#cedbd0;background:#f6f9f4}
.primary[disabled]{background:#e7ede4;border-color:var(--stroke);color:#52665e}
.modal .separator{margin-top:10px}
.modal .small{font-size:.89rem;color:var(--dim)}
.settings-button{flex:none}
.settings-button .icon{color:#315e4c}
.language-label{font-weight:660;margin-bottom:8px}
.language-options{display:grid;gap:9px}
.language-choice{width:100%;justify-content:space-between;font-size:1.08rem;padding-inline:14px}
.monthly-setting{width:100%;justify-content:space-between;flex-wrap:wrap;margin-top:14px;padding-inline:14px}
.monthly-setting small{color:var(--dim);font-size:.9rem;font-weight:600}
.price-settings{margin-top:14px}
.price-setting{width:100%;justify-content:space-between;gap:8px;padding-inline:14px}
.price-setting strong{border-radius:6px;padding:3px 7px;background:#e8eee5;color:#294839;font-size:.89rem;white-space:nowrap}
.price-setting[aria-checked="true"] strong{background:var(--lime)}
.price-settings .small{margin:5px 3px 0;line-height:1.38}
.price-quote{margin-bottom:8px}
.store-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.shop-choice{display:flex;align-items:center;gap:8px;min-height:54px;border:1px solid #cbd9cf;border-radius:11px;background:#fff;text-align:left;padding:7px 10px;line-height:1.2}
.shop-choice-logo{width:30px;height:30px;flex:none;display:grid;place-items:center;overflow:hidden;border:1px solid var(--stroke);border-radius:50%;background:#fff}
.shop-choice-logo img{display:block;width:100%;height:100%;object-fit:contain}
.shop-choice-name{flex:1;min-width:0;overflow-wrap:anywhere}
.shop-choice[aria-pressed="true"]{background:#e9f2e5;border-color:#779484}
.shop-choice .icon{width:21px;height:21px}
@media(max-width:360px){.store-options{grid-template-columns:minmax(0,1fr)}}
.camera-preview{position:relative;height:180px;border-radius:15px;overflow:hidden;background:#1b362e;color:white;display:grid;place-items:center;margin-bottom:10px}
.camera-preview video{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.scan-frame{width:69%;height:52%;z-index:1;border:2px solid #e8f8ca;border-radius:11px;box-shadow:0 0 0 300px #07171033;pointer-events:none}
.scanner-note{color:var(--dim);font-size:.94rem;min-height:2em;margin:2px 0 10px}
.ean-form{margin-top:16px}
.ean-form .field{margin-bottom:8px}
.inline-fields{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
.inline-fields .secondary{min-height:52px;width:auto}
.offer{background:#e9f3e5;border:1px solid #d9e7d5;border-radius:14px;padding:13px 14px;margin:0 0 15px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 8px}
.offer-tag{color:#3a5245;font-size:.88rem;line-height:1.2}
.offer strong{grid-column:2;grid-row:1/span 2;font-size:1.97rem;line-height:1.1;letter-spacing:-.065em;white-space:nowrap;font-variant-numeric:tabular-nums}
.offer-label{font-weight:740;line-height:1.3}
.offer-head{font-size:1.03rem}
.offers{list-style:none;margin:3px 0 16px;padding:0}
.offers li{display:grid;grid-template-columns:1fr auto;gap:8px;border-bottom:1px solid var(--stroke);min-height:42px;align-items:center;color:var(--text)}
.offers li:last-child{border-bottom:0}
.result-meta{color:var(--dim);font-size:.95rem;margin:-3px 0 11px}
.more-prices{margin-bottom:12px}
.more-prices summary{color:#22523f;min-height:46px;padding:10px 0;cursor:pointer;font-weight:650}
.more-prices summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.more-prices .offers{margin-bottom:3px}
@media(hover:hover){.store-switch:not(:disabled):hover,.text-button:hover,.icon-button:hover,.stepper button:not(:disabled):hover,.shop-choice:hover,.secondary:hover{background:#eef4eb}.scan-primary:hover,.primary:hover{background:#e8f8b3}.budget-control:hover strong{color:var(--lime)}}
@media(max-width:779px){.wrap{width:min(560px,calc(100% - 38px))}.top-inner{min-height:71px}main.wrap{padding-top:16px}.shopping-controls{padding-bottom:14px}.balance{padding:19px 19px 7px}.balance-grid{gap:13px}.balance-foot{margin-top:15px}.scan-primary{margin-top:11px;min-height:62px}.cart{padding-inline:14px}}
@media(max-width:420px){.wrap{width:calc(100% - 28px)}.store-switch{gap:7px;padding:5px 8px}.store-switch .icon:first-child{width:20px;height:20px}.store-switch .chevron{margin-left:0}.balance{padding-inline:14px}.balance-cell h2{font-size:.92rem}.cart-header h2{font-size:1.12rem}.manual{font-size:.91rem;padding-inline:2px}.line-item{grid-template-columns:1fr;font-size:.95rem;padding-block:8px}.line-control{justify-content:space-between}.modal{padding:14px 16px 18px}.modal-top h2{font-size:1.48rem}}
@media(max-width:350px){.top-actions{gap:5px}.top-inner{gap:8px}.balance-cell h2{font-size:.88rem}.balance-grid{gap:9px}.cart-header{gap:0}.cart-header h2{gap:6px}.budget-control{font-size:.86rem}}
@media(max-height:480px){
  .shopping-controls{padding-bottom:9px}
  .top[hidden]+main .shopping-controls{padding-top:calc(8px + env(safe-area-inset-top,0px))}
  .balance{padding-block:12px 5px}
  .balance-foot{margin-top:8px}
  .amount{margin-top:3px;font-size:clamp(2rem,8vw,2.5rem)}
  @supports (font-size:1cqi){.amount,.amount.tight,.amount.tiny{font-size:min(2.5rem,var(--amount-fit,27.4cqi))}}
  .scan-primary{margin-top:8px;min-height:50px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important}}
.cart-sample-note{font-size:.89rem;color:var(--dim);margin:2px 0 7px}
.ean-input{width:100%;min-width:0;min-height:52px;border:1px solid #a2b5a8;border-radius:10px;padding:8px 11px;background:#fbfdf9;color:var(--ink);font-size:1rem}
.ean-input[aria-invalid="true"]{border-color:#a44726}

.storage-warning{margin-top:12px;color:#8b341d;font-size:.95rem}

.cart-actions{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap;border-top:1px solid var(--stroke);padding:10px 0 4px}
.pay-button{min-width:146px;width:auto;padding-inline:18px}
@media(max-width:450px){.cart-actions{display:grid;gap:2px}.pay-button{width:100%}.cart-actions .clear{justify-self:start}}

.stepper button[data-step="-1"]{touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.stepper button[data-step="-1"].holding{background:#dceade;border-color:#aac1b1}

.product-discovery{margin:0 0 13px;padding:9px 11px;border-radius:9px;background:#f0f5ed;color:var(--dim);font-size:.94rem;overflow-wrap:anywhere}
.product-discovery a{display:inline-block;margin-top:3px;color:#22523f;text-underline-offset:2px}
.product-discovery a:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.nutrition{margin-top:10px;padding-top:10px;border-top:1px solid var(--stroke)}
.nutrition h3{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font-size:1rem;color:var(--ink)}
.nutrition h3 span{font-size:.85rem;font-weight:500;color:var(--dim)}
.nutrition-scale{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-block:8px}
.nutrition-grade{display:grid;place-items:center;min-height:32px;border:2px solid transparent;border-radius:6px;background:var(--grade);color:#172c25;font-size:1rem;font-weight:650;line-height:1}
.nutrition-grade[data-grade="A"]{--grade:#91cea9}
.nutrition-grade[data-grade="B"]{--grade:#bedb88}
.nutrition-grade[data-grade="C"]{--grade:#f0e394}
.nutrition-grade[data-grade="D"]{--grade:#f2c490}
.nutrition-grade[data-grade="E"]{--grade:#efa5a2}
.nutrition-grade[data-selected]{border-color:#172c25;box-shadow:inset 0 0 0 1px #fff;font-weight:850}
#nutrition-description{color:var(--ink)}
#nutrition-basis{font-size:.84rem}
.energy-panel{margin-bottom:13px;border:1px solid var(--stroke);border-radius:11px;background:#f4f8f2}
.energy-panel summary{cursor:pointer;padding:11px;color:var(--ink);font-weight:700}
.energy-panel summary strong,.energy-panel summary small{display:block;margin-left:16px}
.energy-panel summary strong{font-size:1.08rem;line-height:1.3}
.energy-panel summary small{font-size:.85rem;font-weight:500;color:var(--dim)}
.energy-fields{padding:0 11px 10px}
.energy-fields a{display:inline-block;margin-bottom:8px;color:#22523f;text-underline-offset:2px}
.energy-fields .field{margin-bottom:10px}
.energy-fields select{width:100%;min-height:47px;border:1px solid #a2b5a8;border-radius:10px;padding:8px;background:#fbfdf9;color:var(--ink);font:inherit}

.history-dialog .modal-top{position:sticky;top:0;z-index:2;background:var(--surface);padding-bottom:4px}
.history-nav{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;margin-block:2px 8px}
.history-nav h3{text-align:center;font-size:1.12rem;line-height:1.25}
.history-nav .icon-button{width:44px;height:44px}
.history-nav .icon-button:disabled{opacity:.35}
#history-prev .icon{transform:rotate(90deg)}
#history-next .icon{transform:rotate(-90deg)}
.calendar{width:100%;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums;text-align:center}
.calendar th{padding:4px 0;color:var(--dim);font-size:.88rem}
.calendar td{padding:2px 0}
.calendar td>span,.calendar td>button{display:grid;place-items:center;width:100%;min-height:44px}
.calendar td>span{color:var(--dim)}
.calendar td>button{position:relative;background:#e8f2e1;border:1px solid #b9cdb3;border-radius:10px;font-size:1rem}
.calendar td>button::after{content:"";position:absolute;bottom:3px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:currentColor}
.calendar button[aria-pressed="true"]{background:var(--pine);border-color:var(--pine);color:#fff}
.calendar button:focus-visible{z-index:1;outline-offset:0}
#history-day-title{border-top:1px solid var(--stroke);margin:13px 0 9px;padding-top:13px;font-size:1.08rem}
.receipt{border:1px solid var(--stroke);border-radius:13px;overflow:hidden}
.receipt+.receipt{margin-top:12px}
.receipt header,.receipt-lines li,.receipt-subtotal{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.receipt header{padding:10px 12px 6px;background:#f1f6ed}
.receipt h4{margin:0;font-size:1.1rem;overflow-wrap:anywhere}
.receipt time,.receipt-lines small,.receipt-subtotal{color:var(--dim);font-size:.91rem}
.receipt dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0 12px 10px;background:#f1f6ed}
.receipt dt{font-size:.9rem;color:var(--dim)}
.receipt dd{margin:0;font-size:1.13rem;font-weight:740;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.receipt-lines{list-style:none;margin:0;padding:0 12px}
.receipt-lines li{padding:8px 0}
.receipt-lines li+li,.receipt-subtotal{border-top:1px solid var(--stroke)}
.receipt-lines strong,.receipt-lines small{display:block;overflow-wrap:anywhere}
.receipt-lines b,.receipt-subtotal strong{font-variant-numeric:tabular-nums;text-align:right}
.receipt-subtotal{margin:0 12px;padding:7px 0}
@media(max-width:420px){
  dialog.history-dialog{width:calc(100% - 8px)}
  .history-dialog .modal{padding-inline:clamp(2px,calc((100vw - 308px) / 2),14px)}
}
