:root{--ink:#18362f;--forest:#244f43;--sage:#789a83;--mint:#dfeadc;--cream:#f5f1e8;--paper:#fffdf8;--orange:#e98555;--line:#ddd9ce;--muted:#718078;--shadow:0 18px 50px rgba(34,64,54,.09)}
*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:"DM Sans",sans-serif}.app-shell{min-height:100vh}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,28px);border-bottom:1px solid rgba(36,79,67,.12)}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;font:800 21px Manrope}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px 10px 16px 10px;background:var(--forest);color:#fff;font-size:18px}.household{display:flex;align-items:center;gap:10px;font-weight:600;font-size:14px}.avatars{display:flex}.avatars b{display:grid;place-items:center;width:30px;height:30px;border:2px solid var(--cream);border-radius:50%;background:#d7ad83;color:#fff;font-size:11px}.avatars b+ b{margin-left:-8px;background:#748e81}.chevron{color:var(--muted)}main{width:min(1180px,90vw);margin:auto}.hero{min-height:340px;display:flex;align-items:center;justify-content:space-between;padding:55px 6% 45px}.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:11px;font-weight:700;color:var(--orange);margin:0 0 12px}.hero h1{font:800 clamp(42px,5vw,68px)/.98 Manrope;margin:0;letter-spacing:-.045em}.hero h1 em{font-family:Georgia,serif;font-weight:400;color:var(--sage)}.subtitle{color:var(--muted);max-width:480px;font-size:17px;line-height:1.6}.hero-orbit{position:relative;width:290px;height:230px;display:grid;place-items:center}.hero-orbit:before,.hero-orbit:after{content:"";position:absolute;border:1px solid rgba(120,154,131,.35);border-radius:50%;width:220px;height:150px;transform:rotate(-18deg)}.hero-orbit:after{width:280px;height:210px;transform:rotate(30deg)}.hero-orbit i{position:absolute;width:8px;height:8px;background:var(--orange);border-radius:50%;top:26px;right:42px}.hero-orbit i:last-child{top:auto;right:auto;bottom:24px;left:38px;background:var(--sage)}.orbit-card{z-index:2;display:grid;grid-template-columns:40px 1fr;gap:0 10px;align-items:center;background:var(--paper);padding:17px 20px;border-radius:20px;box-shadow:var(--shadow);font-weight:700;transform:rotate(-3deg)}.orbit-card:first-letter{font-size:27px}.orbit-card small{grid-column:2;color:var(--orange);font-weight:500}.add-panel{background:var(--forest);border-radius:25px;padding:25px 30px;color:#fff;box-shadow:0 15px 35px rgba(36,79,67,.17)}.add-panel label{display:block;font:700 18px Manrope;margin-bottom:12px}.add-row{display:flex;gap:10px}.add-row input{flex:1;border:0;border-radius:12px;background:#fff;padding:15px 18px;font:15px "DM Sans";outline:0}.add-row input:focus{box-shadow:0 0 0 4px rgba(223,234,220,.3)}button{font:600 14px "DM Sans";cursor:pointer}.primary{border:0;border-radius:12px;background:var(--orange);color:#fff;padding:0 22px}.primary span{font-size:21px;vertical-align:-1px}.quick-row{display:flex;gap:8px;align-items:center;margin-top:15px;flex-wrap:wrap}.quick-row:before{content:"Quick add";font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#bcd0c7;margin-right:6px}.quick-row button{border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.08);color:#fff;padding:7px 12px;border-radius:20px}.quick-row button:hover{background:rgba(255,255,255,.18)}.content-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.8fr);gap:24px;padding:32px 0 70px}.list-column,.insight-card,.stat-card{background:var(--paper);border:1px solid rgba(36,79,67,.1);border-radius:22px;padding:27px;box-shadow:var(--shadow)}.section-heading{display:flex;justify-content:space-between;align-items:end}.section-heading h2,.insight-card h2{font:700 24px Manrope;margin:0}.section-heading h2 span{display:inline-grid;place-items:center;background:var(--mint);font:600 12px "DM Sans";width:26px;height:26px;border-radius:50%;vertical-align:3px}.progress-wrap{text-align:right;font-size:11px;color:var(--muted)}.progress{width:110px;height:4px;background:#e7e5df;border-radius:4px;margin-top:7px}.progress i{display:block;height:100%;background:var(--orange);border-radius:4px;transition:width .3s}.filters{display:flex;gap:4px;margin:23px 0 12px;border-bottom:1px solid var(--line)}.filters button{border:0;background:none;padding:9px 12px;color:var(--muted);border-bottom:2px solid transparent}.filters button.active{color:var(--forest);border-color:var(--forest)}.item{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:11px;padding:14px 5px;border-bottom:1px solid #ece9e2}.check{appearance:none;width:23px;height:23px;border:1.5px solid #c7cbc3;border-radius:50%;display:grid;place-items:center}.check:checked{background:var(--forest);border-color:var(--forest)}.check:checked:after{content:"✓";color:#fff;font-size:13px}.item-name{font-weight:600}.item-meta{font-size:11px;color:var(--muted);margin-top:3px}.item.done .item-name{text-decoration:line-through;color:#99a09c}.qty{font-size:12px;background:#f0eee8;padding:6px 10px;border-radius:10px}.delete{border:0;background:none;color:#a4aaa6;padding:6px;opacity:0}.item:hover .delete{opacity:1}.empty{text-align:center;color:var(--muted);padding:55px 0}.list-footer{display:flex;justify-content:space-between;align-items:center;padding-top:22px}.text-button{border:0;background:none;color:var(--muted)}.shop-button{border:0;border-radius:12px;background:var(--forest);color:#fff;padding:12px 17px}.shop-button span{margin-left:10px}aside{display:flex;flex-direction:column;gap:18px}.insight-card{background:#e7efe2}.insight-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.spark{display:grid;place-items:center;width:36px;height:36px;background:var(--forest);color:#fff;border-radius:11px}.learning{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--sage)}.learning i{display:inline-block;width:6px;height:6px;background:#6e9e73;border-radius:50%;margin-right:5px}.insight-card .muted{color:var(--muted);font-size:13px;line-height:1.5}.recommendation{display:grid;grid-template-columns:39px 1fr auto;align-items:center;gap:10px;background:rgba(255,255,255,.6);padding:11px;border-radius:13px;margin-top:9px}.rec-icon{display:grid;place-items:center;height:39px;background:#fff;border-radius:10px;font-size:20px}.recommendation strong{font-size:13px}.recommendation small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.rec-add{border:0;background:#fff;color:var(--forest);width:29px;height:29px;border-radius:9px;font-size:18px}.add-all{width:100%;margin-top:13px;padding:11px;border:1px solid rgba(36,79,67,.22);background:transparent;color:var(--forest);border-radius:11px}.stat-card{padding:22px;display:grid;grid-template-columns:1fr 1fr}.stat-card div{display:flex;flex-direction:column;color:var(--muted);font-size:11px}.stat-card strong{font:700 25px Manrope;color:var(--ink)}.stat-card p{grid-column:1/-1;color:var(--muted);font-size:11px;line-height:1.5;border-top:1px solid var(--line);padding-top:13px;margin-bottom:0}.mobile-nav{display:none}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:var(--ink);color:#fff;padding:11px 17px;border-radius:10px;opacity:0;pointer-events:none;transition:.25s;font-size:13px}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:800px){main{width:92vw}.topbar{padding:0 4vw}.household>span:not(.avatars){display:none}.hero{min-height:auto;padding:42px 3% 32px}.hero-orbit{display:none}.add-panel{padding:20px}.add-row{flex-direction:column}.primary{padding:13px}.content-grid{grid-template-columns:1fr;padding-bottom:90px}.section-heading{align-items:start}.progress-wrap{margin-top:8px}.list-column,.insight-card,.stat-card{padding:21px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:rgba(255,253,248,.95);backdrop-filter:blur(10px);justify-content:space-around;padding:11px;border-top:1px solid var(--line);z-index:10}.mobile-nav button{border:0;background:none;color:var(--muted);padding:7px 18px}.mobile-nav button.active{color:var(--forest)}.list-footer{gap:10px}.shop-button{flex:1}.text-button{font-size:11px}}

.store-bar{display:flex;align-items:end;justify-content:space-between;margin:22px 0 0;padding:14px 16px;background:#f3f0e8;border-radius:14px}.store-bar label{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.12em;font-weight:700;margin-bottom:5px}.store-bar select{border:0;background:transparent;color:var(--ink);font:700 14px "DM Sans";outline:0}.store-bar>span{color:var(--muted);font-size:10px}.store-bar>span i{display:inline-block;width:6px;height:6px;background:var(--orange);border-radius:50%;margin-right:5px}.item-actions{display:flex;align-items:center;gap:6px}.item-price{min-width:58px;border:0;background:transparent;color:var(--forest);font-weight:700;text-align:right;padding:6px;border-radius:8px}.item-price:hover{background:var(--mint)}.item-price.unpriced{color:var(--orange);font-weight:600;font-size:11px}.basket-summary{display:flex;align-items:center;justify-content:space-between;margin-top:17px;padding:18px 20px;background:var(--ink);color:#fff;border-radius:15px}.basket-summary div{display:flex;flex-direction:column}.basket-summary span{font-weight:700}.basket-summary small{color:#abc0b8;margin-top:3px}.basket-summary strong{font:800 27px Manrope}.basket-summary+.list-footer{padding-top:16px}.learning-note{font-size:11px;color:var(--forest);border-top:1px solid rgba(36,79,67,.12);border-bottom:1px solid rgba(36,79,67,.12);padding:10px 0;margin:14px 0}.learning-note summary{font-weight:700;cursor:pointer}.learning-note p{color:var(--muted);line-height:1.5;margin:8px 0 2px}
.store-bar>button{border:0;background:var(--paper);color:var(--forest);border-radius:9px;padding:8px 10px;font-size:11px}.store-bar>button:disabled{opacity:.55;cursor:wait}.item-meta .live-match{display:block;color:var(--sage);margin-top:3px;max-width:400px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-picker{margin-top:10px;background:var(--paper);color:var(--ink);border-radius:14px;padding:8px;box-shadow:0 16px 35px rgba(10,35,28,.18)}.picker-heading{display:flex;justify-content:space-between;align-items:center;padding:8px 10px 7px;font-size:12px;font-weight:700}.picker-heading small{color:var(--muted);font-weight:500}#product-options{max-height:430px;overflow:auto;overscroll-behavior:contain}.product-option{width:100%;display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:4px 12px;text-align:left;border:0;border-top:1px solid #ece9e2;background:transparent;color:var(--ink);padding:9px 10px;border-radius:8px}.product-option:hover,.product-option.active{background:var(--mint)}.product-thumb-wrap{width:44px;height:44px;grid-row:1;grid-column:1;display:grid;place-items:center;background:#f4f2ec;border-radius:8px;font-size:22px;overflow:hidden}.product-thumb{width:44px;height:44px;grid-area:1/1;object-fit:contain;background:#fff}.product-copy{grid-column:2;min-width:0;display:flex;flex-direction:column;gap:4px}.product-option strong{font-size:13px}.product-option b{grid-column:3;align-self:center;color:var(--forest)}.product-option small{color:var(--muted);font-weight:500}.product-option .own-brand{color:var(--orange);margin-left:6px;font-size:9px;text-transform:uppercase;letter-spacing:.08em}.picker-loading,.picker-empty{padding:14px 10px;color:var(--muted);font-size:12px}
@media(max-width:800px){.store-bar{align-items:start;gap:8px;flex-direction:column}.item{grid-template-columns:28px 1fr auto}.item-actions{display:grid;grid-template-columns:auto auto}.item-price{grid-column:1/-1;grid-row:1;text-align:right}.qty{grid-row:2}.delete{grid-row:2}.basket-summary{padding:15px}}

/* Larger pack shots make visually similar products much easier to distinguish. */
#product-options{max-height:620px}.product-option{grid-template-columns:112px 1fr auto;min-height:124px;padding:10px 12px}.product-thumb-wrap,.product-thumb{width:108px;height:108px}.product-thumb-wrap{font-size:34px}.product-option strong{font-size:14px;line-height:1.35}.product-option small{font-size:12px}
@media(max-width:800px){#product-options{max-height:500px}.product-option{grid-template-columns:84px 1fr auto;min-height:94px;gap:8px;padding:8px}.product-thumb-wrap,.product-thumb{width:80px;height:80px}.product-thumb-wrap{font-size:28px}.product-option b{font-size:13px}}
.mobile-sheet{display:none}
@media(max-width:800px){.mobile-sheet{display:block;position:fixed;z-index:9;left:0;right:0;bottom:63px;max-height:68vh;overflow:auto;background:var(--paper);border-radius:22px 22px 0 0;box-shadow:0 -18px 50px rgba(24,54,47,.2);padding:20px}.mobile-sheet[hidden]{display:none}.mobile-sheet-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:-20px;background:var(--paper);padding:12px 0 14px;z-index:1}.mobile-sheet-head h2{font:700 22px Manrope;margin:0}.mobile-sheet-head button{border:0;background:#f0eee8;color:var(--ink);width:34px;height:34px;border-radius:50%;font-size:20px}.history-entry{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:13px 0;border-bottom:1px solid var(--line)}.history-entry strong{font-size:14px}.history-entry span,.history-entry small{color:var(--muted);font-size:11px}.history-entry b{grid-column:2;grid-row:1/3;align-self:center}.settings-block{background:#f3f0e8;border-radius:14px;padding:16px;margin-bottom:12px}.settings-block strong{display:block;margin-bottom:5px}.settings-block p{color:var(--muted);font-size:12px;line-height:1.5;margin:0}.settings-action{width:100%;border:0;border-radius:11px;background:var(--forest);color:#fff;padding:12px;margin-top:8px}}

.product-picker[hidden]{display:none}.picker-heading>div{display:flex;flex-direction:column;gap:2px}.picker-heading>button{display:none;border:0;background:#f0eee8;color:var(--ink);width:38px;height:38px;border-radius:50%;font-size:21px}
@media(max-width:800px){
  body.picker-open{overflow:hidden}.hero{padding:26px 3% 22px}.hero h1{font-size:38px}.subtitle{font-size:14px;line-height:1.45;margin-bottom:0}
  .add-panel{position:sticky;top:8px;z-index:8;padding:15px;border-radius:18px}.add-panel label{font-size:15px;margin-bottom:9px}.add-row{flex-direction:row;align-items:stretch}.add-row input{min-width:0;padding:13px}.primary{padding:0 14px;white-space:nowrap}.quick-row{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.quick-row::-webkit-scrollbar{display:none}.quick-row button{flex:0 0 auto}
  .product-picker{position:fixed;z-index:20;left:2.5vw;right:2.5vw;bottom:calc(62px + env(safe-area-inset-bottom));margin:0;max-height:72vh;max-height:min(72dvh,calc(var(--app-height,100vh)*.72));display:flex;flex-direction:column;padding:10px;border-radius:22px;box-shadow:0 -10px 60px rgba(18,44,36,.3)}.picker-heading{flex:0 0 auto;padding:8px 8px 12px;font-size:13px}.picker-heading>button{display:block}#product-options{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y}
  .mobile-nav{z-index:30;padding-bottom:calc(11px + env(safe-area-inset-bottom))}.mobile-sheet{z-index:25;bottom:calc(63px + env(safe-area-inset-bottom))}
}
@media(max-width:420px){.primary{font-size:12px;padding:0 11px}.primary span{font-size:18px}.product-option{grid-template-columns:76px 1fr auto}.product-thumb-wrap,.product-thumb{width:72px;height:72px}}

/* Mobile is a separate, single-column product rather than a squeezed desktop page. */
@media(max-width:800px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}body{background:var(--cream)}.app-shell,main,.content-grid,.list-column,.shopping-list,.item,.add-panel{width:100%;max-width:100%;min-width:0}.app-shell{overflow-x:clip}
  .topbar{position:sticky;top:0;z-index:40;height:58px;padding:0 14px;background:rgba(245,241,232,.97);backdrop-filter:blur(12px)}.brand{font-size:17px}.brand-mark{width:31px;height:31px}.hero{display:none}
  main{width:100%;margin:0}.add-panel{position:sticky;top:58px;z-index:35;margin:0;padding:13px 12px 11px;border-radius:0;box-shadow:0 8px 22px rgba(36,79,67,.16)}.add-panel label{display:none}.add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.add-row input{width:100%;min-width:0;height:46px;padding:11px 13px}.primary{height:46px;padding:0 12px}.quick-row{margin-top:10px;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden}
  .content-grid{display:block;padding:12px 10px calc(92px + env(safe-area-inset-bottom))}.list-column{margin:0;padding:15px 12px;border-radius:16px;box-shadow:none}.content-grid>aside{display:none}.section-heading{align-items:flex-start}.section-heading h2{font-size:21px}.progress-wrap{display:none}.store-bar{width:100%;margin-top:16px;padding:11px 12px}.store-bar>span{max-width:100%;white-space:normal}.filters{width:100%;overflow-x:auto;white-space:nowrap}.filters button{flex:0 0 auto}.item{width:100%;grid-template-columns:28px minmax(0,1fr) auto;gap:9px;padding:13px 2px}.item-name,.item-meta{max-width:100%;overflow:hidden;text-overflow:ellipsis}.item-actions{min-width:62px}.basket-summary{width:100%;margin-top:14px}.list-footer{width:100%;align-items:stretch}.list-footer .text-button{padding:10px 4px}.shop-button{min-height:46px}
  .product-picker{position:fixed;inset:0;z-index:100;width:100%;height:100vh;height:var(--app-height,100dvh);max-width:none;max-height:none;margin:0;padding:calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom));border-radius:0;box-shadow:none;background:var(--paper);display:flex;flex-direction:column}.product-picker[hidden]{display:none}.picker-heading{position:sticky;top:0;z-index:2;flex:0 0 auto;min-height:58px;padding:7px 5px 12px;background:var(--paper);border-bottom:1px solid var(--line)}.picker-heading>button{display:flex;align-items:center;gap:6px;width:auto;height:42px;padding:0 14px;border-radius:22px;font-size:14px;font-weight:700}#product-options{flex:1 1 0;min-height:0;width:100%;max-height:none;overflow-y:auto;overflow-x:hidden;padding-bottom:20px}.product-option{width:100%;max-width:100%;grid-template-columns:86px minmax(0,1fr) auto;min-height:104px;gap:10px;padding:9px 5px}.product-thumb-wrap,.product-thumb{width:82px;height:82px}.product-copy{min-width:0}.product-option strong{overflow-wrap:anywhere}.product-option b{white-space:nowrap;padding-right:3px}
  .mobile-nav{left:0;right:0;width:100%;max-width:100%;overflow:hidden}.mobile-nav button{min-width:0;flex:1;padding:8px 4px}.mobile-sheet{left:0;right:0;width:100%;max-width:100%}
}
@media(max-width:380px){.primary{width:88px;padding:0 8px}.primary span{display:none}.product-option{grid-template-columns:76px minmax(0,1fr) auto}.product-thumb-wrap,.product-thumb{width:72px;height:72px}.product-option b{font-size:12px}}

/* Keep the mobile search label readable while sizing only its icon. */
.primary #add-submit-label{font-size:inherit;vertical-align:baseline}
@media(max-width:420px){.primary #add-submit-icon{font-size:18px}}
@media(max-width:380px){.primary #add-submit-label{display:inline}}

/* Quantity and removal controls stay visible and finger-friendly on every device. */
.item-actions{display:grid;grid-template-columns:auto 36px;align-items:center;justify-items:end;gap:5px}.item-price{grid-column:1/-1}.qty-control{grid-column:1;display:grid;grid-template-columns:30px minmax(26px,auto) 30px;align-items:center;background:#f0eee8;border-radius:11px;overflow:hidden}.qty-control button{width:30px;height:32px;border:0;background:transparent;color:var(--forest);font-size:18px}.qty-control button:active{background:var(--mint)}.qty-control span{min-width:26px;text-align:center;font-size:12px;font-weight:700}.delete{grid-column:2;width:34px;height:34px;padding:0;border-radius:10px;background:#f7e8e2;color:#a84f35;opacity:1;font-size:19px}.delete:hover{background:#f2d8cf}.item.done .qty-control{opacity:.55}
@media(max-width:800px){.item-actions{min-width:126px}.qty-control{grid-row:auto}.delete{grid-row:auto}}
