:root{--ink:#17352c;--ink-soft:#476257;--ink-muted:#657b72;--paper:#fff;--counter:#f3f6f5;--inset:#edf2ef;--leaf:#12664f;--leaf-dark:#0a4c3a;--offer:#e0f3e9;--line:rgba(23,53,44,.13);--danger:#ab3030;--warn:#805619;--shadow:0 1px 2px #17352c0a,0 4px 16px #17352c06;--radius:16px;--space:8px;font-family:'Segoe UI',ui-sans-serif,system-ui,sans-serif;color:var(--ink);font-size:16px;background:var(--counter);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{min-height:44px;border:0;background:var(--leaf);color:white;border-radius:10px;padding:12px 18px;font-weight:650;cursor:pointer;transition:background .15s,transform .15s}button:hover{background:var(--leaf-dark)}button:active{transform:scale(.98)}button:disabled{opacity:.5;cursor:not-allowed}button.secondary{background:var(--inset);color:var(--ink)}button.quiet{background:transparent;color:var(--leaf)}button.danger{background:#fceaea;color:var(--danger)}button.small{padding:8px 12px;font-size:.875rem}button.icon{width:44px;padding:8px;font-size:1.25rem}a{color:var(--leaf)}:focus-visible{outline:3px solid #58ac85;outline-offset:3px}input,select,textarea{width:100%;padding:12px;border:1px solid var(--line);background:var(--inset);border-radius:10px;color:var(--ink);min-height:46px}input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:var(--leaf);flex:none}textarea{min-height:88px;resize:vertical}label{display:block;font-size:.875rem;font-weight:600;color:var(--ink-soft);margin-bottom:16px}label input,label select,label textarea{margin-top:8px}label.check{display:flex;align-items:center;gap:12px;min-height:44px;margin:0;font-size:1rem;font-weight:400}label.check input{margin:0}fieldset{border:1px solid var(--line);border-radius:12px;padding:12px;margin:16px 0}legend{font-weight:650;font-size:.875rem;padding:0 8px}h1,h2,h3,p{margin-top:0}h1{font-size:2rem;letter-spacing:-.04em;line-height:1.12;margin-bottom:12px}h2{font-size:1.25rem;letter-spacing:-.02em;margin-bottom:16px}h3{font-size:1.05rem;margin-bottom:8px}p{line-height:1.55;color:var(--ink-soft)}small,.meta{font-size:.875rem;color:var(--ink-muted);line-height:1.5}.money{font-variant-numeric:tabular-nums;white-space:nowrap}.muted{color:var(--ink-muted)}.topbar{height:76px;max-width:1000px;padding:16px 24px;margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-size:1.05rem;font-weight:750;letter-spacing:-.02em}.brand img{border-radius:10px}main{max-width:920px;margin:auto;padding:32px 24px 128px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}.eyebrow{font-size:.875rem;color:var(--leaf);font-weight:700;margin-bottom:8px}.panel{background:var(--paper);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);margin-bottom:20px}.row{display:flex;gap:12px;align-items:center}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.stack>*+*{margin-top:12px}.toolbar{display:flex;gap:8px;margin-bottom:16px}.toolbar select{flex:1;min-width:0}.quick-add{display:flex;gap:8px;padding:12px;background:var(--paper);border-radius:16px;box-shadow:var(--shadow);margin-bottom:16px}.quick-add input{border:0;background:transparent;min-width:0}.quick-add button{flex:none}.checklist{background:var(--paper);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}.item{display:flex;align-items:flex-start;gap:12px;padding:16px;border-bottom:1px solid var(--line)}.item:last-child{border-bottom:0}.item .tick{background:transparent;padding:8px;min-width:44px;color:var(--leaf);font-size:1.3rem;border:1px solid var(--line);border-radius:50%}.item.done .tick{background:var(--offer);border-color:transparent}.item.done .item-name{text-decoration:line-through;color:var(--ink-muted)}.item-name{font-weight:650;line-height:1.35;overflow-wrap:anywhere}.item .quantity{background:var(--inset);border-radius:6px;padding:2px 7px;font-size:.875rem;margin-right:6px}.item-meta{margin-top:6px;color:var(--ink-muted);font-size:.875rem}.item-link{font-size:.875rem;padding:0;min-height:32px;text-align:left;background:transparent;color:var(--leaf);text-decoration:underline;text-underline-offset:3px}.list-foot{padding:16px 4px;display:flex;justify-content:space-between;gap:12px;font-size:.875rem;color:var(--ink-muted)}.empty{padding:40px 24px;text-align:center;background:var(--paper);border-radius:16px}.empty p{max-width:360px;margin:0 auto 20px}.empty-mark{font-size:2.5rem;color:var(--leaf);margin-bottom:16px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,920px);background:var(--paper);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);padding:8px 8px max(8px,env(safe-area-inset-bottom));z-index:10}.bottom-nav button{background:transparent;color:var(--ink-muted);display:flex;flex-direction:column;align-items:center;gap:3px;font-size:.875rem;font-weight:600;padding:8px}.bottom-nav button span{font-size:1.4rem;line-height:1.2}.bottom-nav button[aria-current=page]{background:var(--offer);color:var(--leaf)}.summary{background:var(--leaf);color:white;padding:28px;border-radius:16px;margin:24px 0}.summary .total{font-size:2.6rem;letter-spacing:-.045em;font-weight:750;margin:8px 0 20px;line-height:1.15}.summary p,.summary small{color:#d7eae2}.summary .breakdown{border-top:1px solid #ffffff35;padding-top:16px;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.summary .breakdown strong{display:block;margin-top:6px;font-size:1.1rem}.receipt{background:var(--paper);border-radius:16px;margin:20px 0;padding:24px;box-shadow:var(--shadow)}.receipt-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:20px}.receipt-lines{border-top:1px dashed var(--line);border-bottom:1px dashed var(--line);padding:8px 0;margin:16px 0}.receipt-line{display:flex;justify-content:space-between;gap:16px;padding:10px 0;font-size:.95rem}.receipt-line span:first-child{min-width:0;overflow-wrap:anywhere}.tag{display:inline-block;background:var(--offer);color:var(--leaf);font-size:.875rem;border-radius:6px;padding:4px 8px;font-weight:600}.tag.pending{background:#fcf2dc;color:var(--warn)}.notice{background:#fcf6e8;color:var(--warn);padding:16px;border-radius:12px;line-height:1.5;font-size:.95rem;margin:16px 0}.notice.success{background:var(--offer);color:var(--leaf)}.notice.error{background:#fceaea;color:var(--danger)}.account{padding:16px 0;border-bottom:1px solid var(--line)}.account:last-child{border:0}.account label{margin:0}.account .amount{width:180px}.amount-wrap{display:flex;align-items:center;gap:8px}.switches{margin-top:8px}.switches label{font-size:.875rem}.details-link{margin-top:12px}.section-title{margin:32px 0 16px}.store-card{display:flex;gap:16px;align-items:flex-start;border-bottom:1px solid var(--line);padding:16px 0}.store-card:last-child{border:0}.promo-card{border-bottom:1px solid var(--line);padding:20px 0}.promo-card:first-child{padding-top:0}.promo-card:last-child{border:0;padding-bottom:0}.auth{max-width:440px;margin:32px auto}.auth .panel{padding:32px}.auth h1{font-size:1.8rem}.auth button[type=submit]{width:100%}.connection{background:#fff0bf;text-align:center;padding:12px;font-size:.875rem;color:var(--warn)}dialog{border:0;border-radius:20px;background:var(--paper);color:var(--ink);padding:24px;width:min(560px,calc(100% - 24px));max-height:90dvh;box-shadow:0 12px 64px #17352c30}dialog::backdrop{background:#0c251f80}dialog .dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}dialog h2{margin:0}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.search-result{display:block;width:100%;background:var(--paper);color:var(--ink);text-align:left;border-bottom:1px solid var(--line);border-radius:0;padding:16px 4px}.search-result:hover{background:var(--inset)}.search-result strong{display:block;font-size:.95rem}.search-result .prices{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;font-size:.875rem}.search-result .prices span{background:var(--inset);padding:4px 8px;border-radius:4px}.chosen{display:flex;gap:8px;justify-content:space-between;align-items:center;background:var(--offer);padding:8px 12px;border-radius:8px;margin:8px 0;font-size:.875rem;overflow-wrap:anywhere}.loading{padding:64px 24px;text-align:center;color:var(--ink-muted)}.inline-error{color:var(--danger);font-size:.875rem;margin:12px 0}.full{width:100%}#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:14px 20px;border-radius:12px;max-width:calc(100% - 32px);z-index:30;box-shadow:var(--shadow);font-size:.95rem}.login-error{min-height:24px}.offline-label{margin-top:20px}.readonly{padding:16px;background:var(--inset);border-radius:10px;margin-bottom:16px}[hidden]{display:none!important}.legal-link{word-break:break-word}.compact{margin:0}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--inset);padding:16px;border-radius:12px}.copy-code{font-family:ui-monospace,monospace;word-break:break-all}details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:.875rem;color:var(--ink-soft)}.auth-footer{text-align:center;margin-top:20px}
@media(max-width:600px){.topbar{height:68px;padding:12px 16px}main{padding:24px 16px 120px}h1{font-size:1.75rem}.panel,.receipt{padding:20px}.page-head{margin-bottom:20px}.grid{grid-template-columns:1fr}.summary{padding:24px 20px}.summary .total{font-size:2.35rem}.summary .breakdown{gap:8px}.summary .breakdown strong{font-size:1rem}.summary .breakdown small{font-size:.8rem}.account .amount{width:132px}.account .row{align-items:flex-start}.receipt-line{font-size:.9rem}.brand{font-size:1rem}.item{padding:14px 12px;gap:10px}.auth{margin:8px auto}.auth .panel{padding:24px}.quick-add{padding:8px}.quick-add button{padding:12px}.list-foot{flex-direction:column}.page-head .quiet{padding:8px}.toolbar{flex-wrap:wrap}.toolbar select{flex-basis:65%}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}button:active{transform:none}}
/* The catalog keeps product packaging readable on a two-column phone layout. */
.catalog-search{margin-bottom:16px}.category-strip{display:flex;gap:8px;overflow-x:auto;padding:2px 0 12px;scrollbar-width:thin}.category-chip{flex:0 0 auto;background:var(--surface,#fff);color:var(--ink,#193b30);border:1px solid #dbe5df;border-radius:24px;padding:10px 14px;min-height:42px}.category-chip.selected{background:#12664f;color:#fff;border-color:#12664f}.category-chip small{opacity:.7;margin-left:3px}.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.product-card{background:#fff;border:1px solid #dbe5df;border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:8px;min-width:0}.product-photo{position:relative;display:flex;align-items:center;justify-content:center;background:#f4f7f4;border-radius:10px;overflow:hidden;aspect-ratio:1;width:100%}.photo-fallback{font-size:48px;color:#6d8b7c}.product-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff}.product-card h2{font-size:14px;line-height:1.4;margin:0;overflow-wrap:anywhere}.product-card .meta{font-size:11px}.product-category{margin-top:3px}.product-price{display:flex;flex-direction:column;margin-top:auto;gap:2px;padding-top:6px}.product-price small{color:#64776e;font-size:11px}.product-price strong{font-size:20px}.product-offers summary{font-size:12px;cursor:pointer;min-height:30px}.product-card>button{width:100%}.catalog-grid>.empty{grid-column:1/-1}.search-result .product-photo{width:68px;float:left;margin-right:10px}.search-result .photo-fallback{font-size:28px}.bottom-nav{grid-template-columns:repeat(5,1fr)}
@media(min-width:700px){.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-card h2{font-size:16px}.product-price strong{font-size:24px}}
.product-photo{flex:none;isolation:isolate;background:var(--inset)}.product-photo img{object-fit:contain;padding:8px;opacity:0}.product-photo.has-photo img{opacity:1}.product-photo.has-photo>.photo-fallback,.product-photo.has-photo>.photo-label{visibility:hidden}.photo-label{position:absolute;bottom:8px;left:6px;right:6px;font-size:11px;line-height:1.3;color:var(--ink-muted);font-weight:400;text-align:center}.photo-fallback{margin-bottom:16px}.photo-open,.product-card>.photo-open{display:block;padding:0;min-height:0;background:transparent;width:100%;border-radius:10px;flex:none}.photo-open:hover{background:transparent}.photo-zoom{max-width:460px;margin:0 auto 16px}.photo-zoom .product-photo{background:white}.search-result{display:flow-root}.search-result .product-photo{width:80px;height:80px;aspect-ratio:1;float:left;margin:0 12px 8px 0}.search-result .photo-label{font-size:9px}.search-result .photo-fallback{font-size:26px}.product-offers summary{min-height:44px}.product-card h2{hyphens:auto}.product-card .product-photo{min-width:0}
@media(max-width:360px){.catalog-grid{gap:8px}.product-card{padding:10px}.product-price strong{font-size:18px}.bottom-nav button{font-size:12px;padding:8px 4px}.topbar{gap:8px}.topbar #profile{max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px}.brand{gap:6px}}
:root { --promo-accent: #eaf1e9; }
.promo-discover-entry { background: var(--promo-accent); }
.promo-results { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: 16px; align-items: start; }
.promo-finding { min-width: 0; margin-bottom: 0; overflow-wrap: anywhere; }
.promo-finding h2 { font-size: 1.1rem; margin: 12px 0; line-height: 1.4; }
.promo-excerpt { font-size: .9rem; line-height: 1.5; }
.promo-source { padding: 12px 0; border-bottom: 1px solid #d8ded8; }
.promo-terms { margin-top: 16px; }
.promo-terms div { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; font-size: .9rem; padding-top: 12px; }
.promo-frequency[open] { flex-basis: 100%; min-width: 0; }
.promo-frequency .check { overflow-wrap: anywhere; }
