:root{--green:#087f5b;--dark:#183c31;--muted:#748079;--line:#e7ece8;--bg:#f6f8f5;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#243b31;background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #80c6ad;outline-offset:3px}button{border:0;background:none;color:inherit}button:disabled{opacity:.5;cursor:wait}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:white;border-right:1px solid var(--line);padding:35px 22px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:10px;font-size:23px;letter-spacing:-.9px;font-weight:750}.brand img{width:43px;height:43px;border-radius:13px}.brand span span{color:var(--green)}.brand-caption{color:var(--muted);font-size:12px;letter-spacing:1.6px;margin:12px 0 46px 54px}.nav{display:flex;flex-direction:column;gap:9px}.nav button{display:flex;align-items:center;gap:13px;padding:15px;border-radius:12px;text-align:left;font-weight:550;color:#64726b;font-size:15px}.nav button.active{background:#e9f5ee;color:var(--green)}.badge{margin-left:auto;background:var(--green);color:white;border-radius:50%;font-size:12px;min-width:23px;height:23px;display:grid;place-items:center}.sidebar-foot{margin-top:auto;padding:18px 12px;color:var(--muted);font-size:13px;line-height:1.6}.sidebar-foot strong{display:block;color:#52675b;font-size:14px}.main{margin-left:250px;padding:40px 46px;max-width:1550px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.eyebrow{font-size:12px;letter-spacing:1.8px;color:var(--green);font-weight:700;margin-bottom:9px}h1{margin:0;font-size:32px;letter-spacing:-1.1px;font-weight:700}h2{font-size:20px;letter-spacing:-.5px;margin:0}p{line-height:1.6}.subtitle{color:var(--muted);font-size:14px;margin:9px 0 0}.primary{background:var(--green);color:white;padding:13px 18px;border-radius:11px;font-size:14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary:hover{background:#066b4b}.secondary{border:1px solid var(--line);padding:12px 16px;border-radius:10px;background:white;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px}.toolbar{display:flex;gap:12px;margin-bottom:22px}.search{display:flex;align-items:center;gap:12px;background:white;border:1px solid var(--line);border-radius:12px;padding:0 16px;flex:1;color:#839188}.search input{border:0;outline:none;background:none;width:100%;height:49px;font-size:15px;color:var(--dark)}.chips{display:flex;gap:8px;overflow:auto;padding:0 0 22px;scrollbar-width:none}.chip{white-space:nowrap;border:1px solid var(--line);background:white;padding:10px 17px;border-radius:30px;font-size:14px}.chip.active{background:var(--dark);color:white;border-color:var(--dark)}.sectionline{display:flex;justify-content:space-between;align-items:center;margin:4px 0 18px}.count{font-size:13px;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.card{background:white;border:1px solid var(--line);border-radius:17px;padding:12px;position:relative;transition:transform .15s,box-shadow .15s}.card:hover{transform:translateY(-3px);box-shadow:0 8px 25px #183c310a}.product-image{width:100%;aspect-ratio:1.0;border-radius:10px;background-color:#fafbf9;background-repeat:no-repeat;display:grid;place-items:center;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:cover}.placeholder svg{width:48px;height:48px;color:#a4baae}.card .image-button{width:100%;padding:0}.card-body{padding:14px 4px 5px}.product-name{font-weight:650;font-size:15px;display:block;text-align:left;padding:0;line-height:1.4}.unit{color:var(--muted);font-size:13px;margin-top:5px}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:18px}.price{font-size:18px;font-weight:750;letter-spacing:-.5px}.add{border-radius:50%;width:34px;height:34px;display:grid;place-items:center;background:#edf7ef;color:var(--green)}.add:hover{background:#d9efdf}.stepper{display:flex;align-items:center;gap:12px;background:#edf7ef;border-radius:22px;color:var(--green);font-size:14px;font-weight:650}.stepper button{height:34px;width:30px;display:grid;place-items:center}.stepper svg{width:17px}.note-link{font-size:12px;color:var(--green);padding:10px 0 0;display:flex;gap:5px;align-items:center}.note-link svg{width:14px;height:14px}.edit-btn{position:absolute;top:20px;right:20px;background:#ffffffed;border:1px solid var(--line);border-radius:50%;height:30px;width:30px;display:grid;place-items:center}.edit-btn svg{width:15px}.cart-float{position:sticky;bottom:24px;background:var(--dark);color:white;max-width:500px;margin:30px auto 0;padding:15px 20px;display:flex;align-items:center;justify-content:space-between;border-radius:14px;box-shadow:0 10px 25px #183c3120;width:100%;font-size:14px}.cart-float strong{font-size:16px}.empty{text-align:center;padding:70px 20px;background:white;border:1px dashed #cfded4;border-radius:18px}.empty>svg{width:48px;height:48px;color:var(--green);margin-bottom:15px}.empty p{color:var(--muted);font-size:15px}.cart-layout{display:grid;grid-template-columns:1fr 290px;gap:24px;align-items:start}.cart-list{display:flex;flex-direction:column;gap:12px}.cart-row{display:flex;align-items:center;gap:16px;background:white;border:1px solid var(--line);border-radius:15px;padding:16px}.cart-row .product-image{width:90px;flex-shrink:0}.cart-info{flex:1;min-width:0}.cart-info h3{font-size:16px;margin:0 0 6px}.cart-info .note-link{text-align:left;line-height:1.4}.cart-right{display:flex;flex-direction:column;align-items:end;gap:12px}.summary{border:1px solid var(--line);border-radius:17px;padding:23px;background:white;position:sticky;top:25px}.summary-line{display:flex;justify-content:space-between;font-size:14px;margin-top:24px;color:#64776a}.total{border-top:1px solid var(--line);padding-top:20px;font-size:19px;font-weight:700;color:var(--dark)}.summary p{font-size:12px;color:var(--muted);margin-bottom:0}.text-danger{color:#b54736;font-size:14px}.manage-list{background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden}.manage-row{display:flex;align-items:center;gap:18px;padding:16px 20px;border-bottom:1px solid var(--line)}.manage-row:last-child{border:0}.manage-row .product-image{width:66px;aspect-ratio:1}.manage-row .desc{flex:1}.manage-row strong{font-size:15px}.manage-row .secondary{padding:9px}.hint{color:var(--muted);font-size:12px;margin-top:22px}.mobile-brand{display:none}dialog{border:0;border-radius:22px;padding:28px;max-width:510px;width:calc(100% - 28px);max-height:90dvh;box-shadow:0 24px 100px #10291c40;color:var(--dark)}dialog::backdrop{background:#16392c70;backdrop-filter:blur(4px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.dialog-head h2{font-size:23px}.icon-button{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:var(--bg)}label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}.field{margin-bottom:18px}.field input,.field select,.field textarea{width:100%;padding:12px;border:1px solid #d8e3dc;border-radius:10px;background:white;color:var(--dark);font-size:16px}.field textarea{min-height:85px;resize:vertical}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.photo-editor{display:flex;align-items:center;gap:18px;margin-bottom:22px}.photo-editor .product-image{width:110px;aspect-ratio:1}.photo-actions{display:flex;flex-direction:column;gap:8px}.photo-actions button{font-size:13px}.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.actions .primary{flex:1}.form-error{color:#b54736;font-size:14px}.note-product{display:flex;align-items:center;gap:16px;margin-bottom:22px}.note-product .product-image{width:85px;aspect-ratio:1}.install{margin-top:20px}.hidden{display:none!important}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);z-index:100;background:var(--dark);color:white;padding:13px 22px;border-radius:12px;font-size:14px;box-shadow:0 8px 30px #0002;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}
@media(min-width:1450px){.grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:1100px){.sidebar{width:210px;padding:30px 16px}.brand{font-size:20px}.brand img{width:36px;height:36px}.main{margin-left:210px;padding:30px}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cart-layout{grid-template-columns:1fr}.summary{position:static}}@media(max-width:760px){.sidebar{inset:auto 0 0;width:100%;height:75px;padding:6px 10px max(6px,env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--line)}.sidebar>.brand,.brand-caption,.sidebar-foot{display:none}.nav{flex-direction:row;justify-content:space-around;gap:0}.nav button{flex:1;flex-direction:column;gap:4px;justify-content:center;padding:7px 3px;font-size:11px;border-radius:10px;position:relative}.nav .badge{position:absolute;top:1px;left:calc(50% + 7px);min-width:18px;height:18px;font-size:10px}.main{margin:0;padding:22px 18px 110px}.mobile-brand{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.mobile-brand .brand{font-size:22px}.mobile-brand small{font-size:12px;color:var(--muted)}.topbar{margin-bottom:22px;gap:10px;align-items:center}h1{font-size:28px}.eyebrow{font-size:11px}.topbar>.primary{padding:11px;font-size:0;gap:0}.topbar>.primary svg{width:22px}.subtitle{font-size:13px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card{padding:9px;border-radius:14px}.card-body{padding:12px 3px 4px}.product-name{font-size:14px}.price{font-size:17px}.card-bottom{margin-top:15px}.chip{padding:9px 14px;font-size:13px}.chips{margin-right:-18px;padding-right:18px}.cart-float{bottom:88px;margin-top:24px}.cart-row{gap:10px;padding:12px}.cart-row .product-image{width:65px}.cart-info h3{font-size:14px}.manage-row{gap:11px;padding:12px}.manage-row .product-image{width:49px}.manage-row .price{font-size:14px}.manage-row .secondary{font-size:0;gap:0}.manage-row .secondary svg{width:18px}.manage-row strong{font-size:14px}#toast{bottom:90px;max-width:90%;width:max-content}.sectionline h2{font-size:18px}}
.add-product-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:220px;border:2px dashed #a5c9b5;background:#f0f7f2;text-align:center;color:var(--green);width:100%;overflow-wrap:anywhere}
.add-product-card>svg{width:42px;height:42px;padding:9px;border-radius:50%;background:#dfeee4}.add-product-card strong{font-size:16px}.add-product-card span{font-size:13px;line-height:1.5;color:#64776a;max-width:240px}
.manage-list>.add-product-card,.picker-results>.add-product-card{min-height:150px;border-radius:12px;box-shadow:none;transform:none}.picker-results>.add-product-card{margin-top:12px}
.sort-handle{touch-action:none;cursor:grab;flex-shrink:0;width:30px;min-height:44px;padding:0;display:grid;place-items:center;color:var(--muted);border-radius:8px}.sort-handle:hover{background:#edf7ef;color:var(--green)}.sort-handle svg{stroke-width:3}
.sorting-cart,.sorting-cart *{cursor:grabbing!important;user-select:none}.cart-row.is-dragging{opacity:.5;border-color:var(--green)}.cart-row.drop-before{box-shadow:0 -4px 0 var(--green)}.cart-row.drop-after{box-shadow:0 4px 0 var(--green)}
@media(max-width:760px){[data-cart-id]{gap:8px}[data-cart-id] .sort-handle{width:24px}[data-cart-id] .cart-right{flex-direction:row;align-items:center}[data-cart-id] .cart-info{flex-basis:calc(100% - 130px)}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.list-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}.shopping-check{width:25px;height:25px;flex-shrink:0;accent-color:var(--green);cursor:pointer;margin:0}.is-checked{background:#eef5ef}.is-checked .cart-info h3{text-decoration:line-through;color:var(--muted)}.is-checked .product-image{opacity:.55}.list-progress{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:14px;margin-bottom:20px;color:var(--green)}.list-progress progress{width:40%;height:9px;accent-color:var(--green);border:0;border-radius:10px;overflow:hidden}.list-progress progress::-webkit-progress-bar{background:#e0eae3}.list-progress progress::-webkit-progress-value{background:var(--green)}.saved-note{font-size:14px;margin:8px 0 0;overflow-wrap:anywhere}.picker-results{margin-top:16px;max-height:52dvh;overflow:auto}.picker-row{display:flex;align-items:center;gap:13px;width:100%;text-align:left;padding:12px 0;border-bottom:1px solid var(--line)}.picker-row .product-image{width:58px;flex-shrink:0}.picker-row>span{flex:1}.picker-row .unit{display:block}.picker-row strong{font-size:15px}.cart-info .note-link{overflow-wrap:anywhere}.cart-row .cart-info{overflow-wrap:anywhere}@media(max-width:760px){.cart-row{flex-wrap:wrap}.cart-row .cart-info{min-width:90px}.cart-row .cart-right{margin-left:auto}.list-actions .primary,.list-actions .secondary{font-size:13px;padding:11px 12px}.list-progress{font-size:13px}.nav button{font-size:11px}.cart-row .product-image{width:50px}}
.auth-shell{min-height:100dvh;display:grid;place-items:center;padding:25px}.auth-card{max-width:460px;width:100%;background:white;border:1px solid var(--line);border-radius:24px;padding:36px}.auth-logo{width:66px;height:66px;border-radius:18px;margin-bottom:25px}.auth-card h1{font-size:28px}.auth-card p{font-size:15px;color:#63766a}.auth-card .primary{width:100%}.auth-card>.secondary{margin-top:18px;width:100%}.account-shell{max-width:820px;margin:auto;padding:40px 22px}.account-card{padding:25px;background:white;border:1px solid var(--line);border-radius:18px;margin-bottom:22px}.account-card h2{margin-bottom:17px}.account-card form{margin-top:25px}.account-card .picker-row{overflow-wrap:anywhere;gap:15px}.account-card .picker-row>span{min-width:0}.sync-bar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px;font-size:13px;color:#64776a}.sync-bar .secondary{font-size:13px}.auth-card input[autocomplete="one-time-code"]{letter-spacing:.2em;font-size:24px}.auth-card .form-error{color:#b54736}@media(max-width:760px){.auth-card{padding:26px}.account-shell{padding:25px 18px}.account-shell .topbar{align-items:flex-start}.account-shell h1{font-size:24px}.sync-bar{margin-top:-10px}.account-card{padding:20px}}
.presence-status{font-size:13px;color:#64776a;margin:-10px 0 22px;overflow-wrap:anywhere}

/* List context and CSV import */
.sync-bar{display:grid;grid-template-columns:minmax(180px,320px) 1fr auto;gap:18px;margin-bottom:12px}
.household-switch{grid-column:1;grid-row:1;display:flex;align-items:center;gap:12px;min-width:0;margin:0;padding:11px 14px;background:white;border:1px solid #d8e5dc;border-radius:14px;position:relative;transition:border-color .15s,box-shadow .15s}
.household-switch:hover{border-color:#92b9a5}.household-switch:focus-within{border-color:var(--green);box-shadow:0 0 0 3px #087f5b14}
.household-icon{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:11px;background:#edf7ef;color:var(--green)}
.household-control{flex:1;min-width:0}.household-label{display:block;color:var(--muted);font-size:11px;font-weight:500;margin-bottom:3px}
.household-switch select{display:block;appearance:none;-webkit-appearance:none;width:100%;border:0;background:transparent;color:var(--dark);font-size:14px;font-weight:650;padding:0 20px 0 0;line-height:22px;cursor:pointer;text-overflow:ellipsis}
.household-chevron{position:absolute;right:15px;bottom:16px;pointer-events:none;color:var(--green);font-size:20px}
.sync-bar>#cloud-status{text-align:right;font-size:12px;overflow-wrap:anywhere}.sync-bar>.secondary{white-space:nowrap}
.presence-status{margin:0 0 28px;font-size:12px}.header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.header-actions button{white-space:nowrap}
.import-intro{margin:0 0 20px;color:#64776a;font-size:14px}.import-file{padding:20px;background:#f0f7f2;border:1px dashed #9dbfab;border-radius:14px}.import-file label{display:flex;align-items:center;gap:9px;color:var(--green);margin-bottom:14px}.import-file input{padding:0;border:0;background:transparent;font-size:13px}.import-file input::file-selector-button{font:inherit;border:1px solid #d8e3dc;border-radius:8px;padding:10px 12px;margin-right:10px;background:white;color:var(--dark);cursor:pointer}.import-help{font-size:12px;color:#64776a}.import-help strong{font-size:13px;color:var(--dark)}.import-help p{margin:7px 0}.import-submit{width:100%;margin-top:20px}#import-error:not(:empty){margin-top:16px;padding:12px;background:#fff2ed;border-radius:10px;overflow-wrap:anywhere}
@media(max-width:1100px){.topbar{align-items:flex-start}.header-actions{flex-direction:column}.sync-bar{grid-template-columns:minmax(160px,1fr) auto}.sync-bar>#cloud-status{grid-column:1/-1;grid-row:2;text-align:left}}
@media(max-width:760px){.mobile-brand{margin-bottom:24px}.sync-bar{margin-top:0;gap:10px}.sync-bar>.secondary{font-size:12px;padding:12px 10px}.household-switch{gap:8px;padding:10px; border-radius:12px}.household-icon{width:30px;height:34px}.household-icon svg{width:19px}.household-switch select{font-size:13px}.household-chevron{right:10px}.presence-status{margin-bottom:24px}.topbar{flex-direction:column;gap:18px}.header-actions{flex-direction:row;justify-content:flex-start;width:100%}.header-actions button{flex:1;padding:11px 10px;font-size:12px;gap:6px}.header-actions svg{width:18px}.import-file{padding:16px}}
@media(max-width:360px){.sync-bar{grid-template-columns:1fr}.sync-bar>.secondary{grid-row:2}.sync-bar>#cloud-status{grid-row:3}.header-actions{flex-direction:column}}

/* Completed shopping, history and the weekly meal plan. */
.nav button>.nav-mobile{display:none}
[hidden]{display:none!important}
.web-image-search{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--bg);margin-bottom:22px}.image-search-controls{display:flex;align-items:end;gap:10px}.image-search-controls .field{min-width:0;flex:1;margin:0}.image-search-controls select{font-size:13px}.image-search-controls .primary{min-height:45px}.web-image-search .hint{margin:14px 0}.image-search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:360px;overflow:auto}.image-search-result{min-width:0;border:1px solid var(--line);border-radius:10px;background:white;overflow:hidden}.image-search-result button{width:100%;padding:10px;text-align:left;display:flex;flex-direction:column;gap:7px}.image-search-result button:hover{background:#edf7ef}.image-search-result img{width:100%;height:120px;object-fit:contain;background:white;border-radius:6px}.image-search-result strong{font-size:13px;overflow-wrap:anywhere}.image-search-result span,.image-search-result>a{font-size:11px;overflow-wrap:anywhere}.image-search-result>a{display:block;padding:0 10px 10px;color:var(--green)}.image-search-result .image-use-label{color:var(--green);font-weight:650}.photo-credit{font-size:11px;line-height:1.6;overflow-wrap:anywhere;color:#64726b;margin:0 0 20px}.photo-credit a{color:var(--green)}.image-credit-link{font-size:10px;color:var(--green);padding:0;margin-bottom:8px;text-decoration:underline}.photo-actions{min-width:0}.photo-actions .secondary{padding:10px 12px}.photo-editor{gap:12px}@media(max-width:380px){.photo-editor .product-image{width:80px}.photo-actions .secondary{font-size:12px;padding:9px}.image-search-controls{flex-wrap:wrap}.image-search-controls .field{flex-basis:100%}.image-search-controls .primary{width:100%}.web-image-search{padding:12px}.image-search-results{gap:8px}}
.sidebar{overflow-y:auto}.nav button>span:not(.badge){min-width:0;overflow-wrap:anywhere}
.cart-groups{min-width:0}.checked-section{margin-top:24px;border:1px solid var(--line);border-radius:15px;background:#eef5ef;overflow:hidden}
.checked-toggle{display:flex;align-items:center;gap:10px;width:100%;padding:18px;text-align:left;font-size:16px;color:var(--green)}.checked-toggle .disclosure{margin-left:auto;font-size:23px}.checked-section .cart-list{padding:0 12px 12px}.checked-section .hint{margin:0;padding:8px}
.all-checked{display:flex;align-items:center;gap:12px;padding:22px;margin:0;background:white;border-radius:15px;border:1px solid var(--line);color:var(--green)}
.summary-actions{display:flex;flex-direction:column;gap:10px;margin-top:24px}.summary-actions button{width:100%}
.jump-top{position:fixed;right:24px;bottom:24px;z-index:6;display:flex;align-items:center;gap:8px;padding:13px 16px;border:1px solid #c4d8cb;border-radius:24px;background:white;color:var(--green);box-shadow:0 5px 18px #183c311f;font-size:13px;font-weight:600}
.history-list{display:grid;gap:16px}.history-card{display:flex;align-items:center;gap:20px;padding:24px;background:white;border:1px solid var(--line);border-radius:17px}.history-card>div{flex:1;min-width:0}.history-card h2{margin:8px 0;font-size:18px}.history-status{display:inline-block;padding:5px 9px;background:#edf7ef;border-radius:7px;color:var(--green);font-size:12px}.history-card .price{white-space:nowrap}.history-item{display:flex;gap:16px;align-items:start;padding:18px 0;border-bottom:1px solid var(--line)}.history-item>div{flex:1;min-width:0;overflow-wrap:anywhere}.history-item h3{margin:0;font-size:16px}.history-item p{margin-bottom:0}.history-item>strong{white-space:nowrap}
.week-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:24px}.week-toolbar h2{font-size:18px}.week-toolbar button:last-child{margin-left:auto}
.meal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.meal-day{display:flex;flex-direction:column;min-width:0;padding:22px;background:white;border:1px solid var(--line);border-radius:17px}.meal-day.is-today{border-color:var(--green);box-shadow:inset 0 3px var(--green)}.meal-day-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.meal-day h2{font-size:18px}.meal-day time{font-size:12px;color:var(--muted);white-space:nowrap}.meal-text{flex:1;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.6;min-height:48px;margin:18px 0}.meal-day button{align-self:start}
@media(max-width:1100px){.meal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.nav{align-items:stretch}.nav button{min-width:0;flex:1 1 0;font-size:10px;line-height:1.15;gap:3px;justify-content:flex-start}.nav button>span.nav-label{display:none}.nav button>span.nav-mobile{display:block;min-height:24px;align-content:center;white-space:nowrap}.sidebar{height:calc(75px + env(safe-area-inset-bottom));overflow:visible;padding-left:4px;padding-right:4px}.main{padding-bottom:calc(145px + env(safe-area-inset-bottom))}.jump-top{bottom:calc(88px + env(safe-area-inset-bottom));right:16px;padding:12px}.jump-top span{display:none}.cart-float{margin-bottom:58px}.history-card{flex-wrap:wrap;padding:18px;gap:16px}.history-card>div{flex-basis:65%}.history-card>button{width:100%}.meal-grid{grid-template-columns:1fr}.meal-day{padding:20px}.week-toolbar{gap:8px}.week-toolbar h2{font-size:16px}.week-toolbar .secondary{padding:10px 12px}.week-toolbar button:last-child{margin-left:0}.checked-toggle{padding:16px}.checked-section .cart-list{padding:0 8px 8px}}
@media(max-width:360px){.nav button{font-size:9px}}
.history-card{flex-wrap:wrap}.history-card>.history-actions{flex:1 0 100%}.history-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:12px}.history-card .history-actions{margin-top:0}.history-copy-hint{margin:0 0 22px}.history-actions button{white-space:nowrap}
@media(max-width:760px){.history-actions{gap:8px}.history-actions button{flex:1;padding:11px 12px;font-size:13px}.history-actions .primary{flex-basis:100%;order:-1}}
.meal-presets{padding:22px;margin-bottom:24px;background:white;border:1px solid var(--line);border-radius:17px}.preset-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.preset-select-row{display:flex;align-items:end;gap:12px}.preset-select-row .field{flex:1;min-width:0;margin:0}.preset-select-row .primary{min-height:46px}.meal-presets .hint{margin:16px 0}.preset-preview{margin-top:18px;font-size:14px}.preset-preview summary{cursor:pointer;color:var(--green);overflow-wrap:anywhere}.preset-preview summary:focus-visible{outline:3px solid #80c6ad;outline-offset:3px}.preset-preview dl>div{display:grid;grid-template-columns:110px 1fr;gap:12px;border-bottom:1px solid var(--line);padding:9px 0}.preset-preview dt{font-weight:600}.preset-preview dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.preset-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.preset-card{padding:16px 0;border-bottom:1px solid var(--line)}.preset-card h3{margin:0;font-size:17px;overflow-wrap:anywhere}.preset-card .history-status{margin-left:8px;vertical-align:middle}.preset-card .preset-actions{margin-top:12px}.preset-default{display:flex;align-items:center;gap:10px;font-weight:500;line-height:1.4;margin:20px 0}.preset-default input{width:20px;height:20px;accent-color:var(--green);flex-shrink:0}#meal-preset-form textarea{min-height:66px}
@media(max-width:760px){.meal-presets{padding:18px}.preset-heading{flex-wrap:wrap;gap:12px}.preset-select-row{flex-direction:column;align-items:stretch}.preset-select-row .primary{width:100%}.preset-preview dl>div{grid-template-columns:90px 1fr;gap:8px}.preset-actions button{font-size:13px;padding:10px 12px}}

@media(max-width:480px){.image-search-controls{flex-wrap:wrap}.image-search-controls .field{flex-basis:100%}.image-search-controls .primary{width:100%}}
.image-search-controls>[hidden],#google-image-help[hidden]{display:none}.image-search-controls a.primary{text-decoration:none;text-align:center;flex-shrink:0}.image-search-controls a.primary:focus-visible{outline:3px solid #80c6ad;outline-offset:3px}.image-search-controls a[aria-disabled="true"]{opacity:.5;cursor:wait}#google-image-help .secondary{width:100%;text-align:center}
#image-improvement-details{font-size:12px;margin:12px 0}#image-improvement-details summary{cursor:pointer}#image-improvement-error{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.5 ui-monospace,monospace;max-height:180px;overflow:auto}
.product-image.improved-image img{object-fit:contain;background:white}
.product-image{position:relative}
.store-badge{position:absolute;right:5px;bottom:5px;display:flex;align-items:center;justify-content:center;min-width:28px;max-width:calc(100% - 10px);height:28px;padding:2px 5px;border:1px solid #d8e3dc;border-radius:9px;background:#fff;box-shadow:0 2px 6px #12321d18;font-size:17px;line-height:1;overflow:hidden;white-space:nowrap;color:var(--dark)}
.cart-row .store-badge,.manage-row .store-badge,.picker-row .store-badge{right:2px;bottom:2px;min-width:22px;height:22px;padding:2px;font-size:14px;border-radius:6px}
.toolbar{align-items:center;flex-wrap:wrap}.toolbar .search{min-width:160px}
.store-filter{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted);min-width:0}
.store-filter select{min-width:0;max-width:240px;padding:13px 30px 13px 12px;border:1px solid #d8e3dc;border-radius:10px;background:white;color:var(--dark);font:inherit;font-size:14px}
#editor>.store-filter{margin-top:14px}
.store-list{margin-top:18px}.store-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}
.store-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.store-row .unit{display:block;margin-top:4px}
.store-symbol{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:34px;max-width:80px;min-height:34px;padding:4px;border-radius:10px;background:#edf5ee;font-size:21px;overflow-wrap:anywhere}
.store-badge{width:32px;height:32px;padding:3px}
.store-symbol{width:38px;height:38px;min-width:38px;background:white;border:1px solid var(--line)}
.store-badge .store-logo,.store-symbol .store-logo{width:100%;height:100%;object-fit:contain;background:transparent;border-radius:0}
.store-badge>svg{width:20px;height:20px}.store-symbol>svg{width:24px;height:24px}
.cart-row .store-badge,.manage-row .store-badge,.picker-row .store-badge{width:24px;height:24px}
.store-logo-editor{display:flex;align-items:center;gap:16px}.store-logo-editor .store-symbol{width:80px;height:80px;padding:6px;border-radius:12px}
.product-image>.image-button{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;padding:0}
.product-image>.image-button:focus-visible{outline-offset:-3px}
button.store-badge{z-index:1;cursor:pointer}button.store-badge:hover{border-color:var(--green);box-shadow:0 2px 8px #12321d30}
.store-badge.is-unassigned{color:var(--green);border-style:dashed}
.manage-row>.product-image{width:60px;flex-shrink:0}
.store-badge>svg{color:inherit}
.store-picker{display:flex;flex-direction:column;gap:8px;max-height:52dvh;overflow:auto;padding:3px}
.store-choice{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;text-align:left;width:100%;min-height:60px}
.store-choice>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.store-choice:hover,.store-choice.is-selected{background:#edf7ef;border-color:#87bba5}
.store-choice>svg{color:var(--green)}.new-store-choice{width:100%;margin-top:16px}
.card-bottom{flex-wrap:wrap}.card-bottom .stepper{margin-left:auto}
.store-logo-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.store-website-controls{display:flex;gap:8px}.store-website-controls input{min-width:0;flex:1}.store-website-controls button{flex-shrink:0;font-size:13px}
.store-website-examples{display:flex;gap:10px;align-items:center;margin-top:10px;font-size:12px;color:var(--muted)}.store-website-examples button{color:var(--green);text-decoration:underline;padding:5px}
@media(max-width:380px){.store-website-controls{flex-wrap:wrap}.store-website-controls input{flex-basis:100%}}
.pending-stores,.checked-stores{display:flex;flex-direction:column;gap:24px}.checked-stores[hidden]{display:none}
.checked-stores{padding:0 12px 12px}.checked-stores .cart-list{padding:0}
.store-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.store-heading h3{display:flex;align-items:center;gap:10px;min-width:0;margin:0;font-size:17px;overflow-wrap:anywhere}
.store-heading>span{font-size:12px;color:var(--muted)}
@media(max-width:760px){.toolbar .search{flex-basis:100%}.toolbar>.store-filter{width:100%}.store-filter select{flex:1;max-width:none}.store-heading{gap:6px}.store-heading h3{font-size:16px}.checked-stores{padding:0 8px 8px}}

.image-improve-hint{margin:-8px 0 18px;line-height:1.6}.image-improvement{padding:16px;border:1px solid #c6dfd2;border-radius:14px;background:#f1f8f3;margin-bottom:22px}.image-improvement h3{font-size:17px;margin:0 0 10px}.image-improvement>p{font-size:13px;overflow-wrap:anywhere}.image-improvement progress{width:100%;accent-color:var(--green)}.image-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.image-comparison figure{margin:0;min-width:0}.image-comparison img{width:100%;aspect-ratio:1;object-fit:contain;background:white;border:1px solid var(--line);border-radius:10px}.image-comparison figcaption{font-size:12px;text-align:center;margin-top:6px}.image-comparison .hint{grid-column:1/-1;margin:0}.image-improvement-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.image-improvement-actions button{flex:1;font-size:13px}.photo-actions button:disabled{cursor:default}
.receipt-entry{width:100%;margin-bottom:18px}.receipt-dialog{width:min(740px,calc(100% - 24px));max-width:740px}.receipt-items{display:grid;gap:12px;margin:18px 0}.receipt-item{padding:16px;border:1px solid var(--line);border-radius:12px;min-width:0;background:var(--bg)}.receipt-item h3{font-size:16px;margin:0;overflow-wrap:anywhere}.receipt-item p{font-size:13px;margin:8px 0}.receipt-item label{display:block;font-size:12px;margin:12px 0 6px}.receipt-item select{width:100%;min-width:0;max-width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:white;font:inherit;font-size:13px}.receipt-change{color:var(--green)}#receipt-form input[type=file]{max-width:100%;min-width:0}#receipt-submit{width:100%}
.image-credit-slot{height:22px}.image-credit-slot .image-credit-link{display:block;line-height:14px}
.sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:4px}
.sidebar-head .brand{font-size:20px;gap:8px}.sidebar-head .brand img{width:32px;height:32px;border-radius:10px}
#sidebar-toggle{width:32px;height:36px;padding:6px;flex-shrink:0;color:var(--muted)}#sidebar-toggle:hover{background:#edf5ee;color:var(--green)}
.sidebar>.brand-caption{margin:14px 0 34px;font-size:10px;letter-spacing:1px}
.sidebar-foot{padding:24px 0 0;display:flex;flex-direction:column;gap:10px}.sidebar-foot .secondary{width:100%;justify-content:flex-start;gap:10px;margin:0;padding:12px}
[data-act="install"][hidden]{display:none!important}
@media(min-width:761px){
 #app.sidebar-collapsed .sidebar{width:76px;padding:30px 12px}
 #app.sidebar-collapsed .main{margin-left:76px}
 .sidebar-collapsed .sidebar-head{justify-content:center;margin-bottom:34px}
 .sidebar-collapsed .sidebar-head .brand,.sidebar-collapsed .brand-caption,.sidebar-collapsed .nav-label,.sidebar-collapsed .sidebar-foot button>span{display:none}
 .sidebar-collapsed .nav button{position:relative;justify-content:center;padding:15px 0}
 .sidebar-collapsed .nav .badge{position:absolute;right:0;top:2px;min-width:18px;height:18px;font-size:10px;padding:0 4px}
 .sidebar-collapsed .sidebar-foot .secondary{justify-content:center;padding:12px 0}
}
@media(min-width:761px) and (max-width:1100px){.sidebar-head .brand{font-size:17px;gap:6px}.sidebar-head .brand img{width:28px;height:28px}.nav button{font-size:13px;gap:8px;padding:14px 10px}}
@media(max-width:760px){.sidebar-head,.sidebar-foot{display:none}}
@media(display-mode:standalone),(display-mode:window-controls-overlay){[data-act="install"]{display:none!important}}
.assistant-launch{white-space:nowrap}.sync-bar{flex-wrap:wrap}
.assistant-fab{position:fixed;right:20px;bottom:24px;z-index:20;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:white;box-shadow:0 10px 28px rgba(8,127,91,.28);border:1px solid rgba(8,127,91,.18)}.assistant-fab:hover{background:#0e9a72}.assistant-fab svg{width:22px;height:22px}.assistant-dialog{position:fixed;right:20px;bottom:24px;left:auto;top:auto;width:min(420px,calc(100vw - 24px));max-width:420px;padding:24px;border:1px solid var(--line);border-radius:24px;background:white;box-shadow:0 22px 42px rgba(24,60,49,.14);margin:0;z-index:30}
.assistant-dialog::backdrop{background:transparent}.assistant-dialog .dialog-head{margin-bottom:10px}.assistant-dialog .dialog-head h2{font-size:23px}
.assistant-conversation{max-height:min(52vh,460px);min-height:160px;overflow:auto;overscroll-behavior:contain;padding:4px 4px 12px}
.assistant-message{background:#f0f6f1;border:1px solid var(--line);border-radius:16px;padding:16px;margin:12px 0;overflow-wrap:anywhere;white-space:pre-wrap}
.assistant-message p{margin:8px 0}.assistant-message.from-user{background:var(--green);color:white;margin-left:12%;border:none;white-space:pre-wrap}
.assistant-message ul{padding-left:20px;white-space:normal}.assistant-message li+li{margin-top:8px}
.assistant-state{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--green)}
.assistant-actions,.assistant-examples{display:flex;gap:8px;flex-wrap:wrap}.assistant-welcome{text-align:center;padding:20px 10px}.assistant-welcome>svg{width:40px;height:40px;color:var(--green)}
.assistant-welcome h3{font-size:22px}.assistant-examples{justify-content:center;margin-top:20px}.assistant-examples button{font-size:12px}
#assistant-form>label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}.assistant-compose{display:flex;align-items:stretch;gap:10px}
.assistant-compose textarea{flex:1;min-width:0;resize:vertical;max-height:180px;border:1px solid var(--line);border-radius:12px;padding:12px;font:inherit;font-size:14px}
.assistant-privacy{font-size:11px;line-height:1.5;margin-bottom:0}#assistant-error:empty{display:none}
#telegram-account{overflow-wrap:anywhere}#telegram-account select{width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:8px;font:inherit;background:white}
#telegram-account a.secondary{display:inline-flex;text-decoration:none}#telegram-authorize-form{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
@media(max-width:760px){.assistant-fab{right:16px;bottom:calc(88px + env(safe-area-inset-bottom));width:48px;height:48px}.assistant-dialog{right:12px;bottom:calc(76px + env(safe-area-inset-bottom));width:min(420px,calc(100vw - 20px));padding:18px}}
@media(max-width:480px){.assistant-dialog{padding:16px}.assistant-dialog .dialog-head h2{font-size:20px}.assistant-compose{flex-direction:column}.assistant-compose button{justify-content:center}.assistant-conversation{max-height:40dvh}.sync-bar .assistant-launch{font-size:12px;padding:8px}}
.third-party-kicker{font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--green);margin:0 0 6px}.third-party-auth h1{font-size:30px;line-height:1.2}.third-party-user{background:#edf7ef;border:1px solid #d4e8db;border-radius:12px;padding:10px 12px;font-size:14px;color:#2a473d}.third-party-status{margin-top:16px}.third-party-status h2{font-size:20px;margin:0 0 8px}.third-party-actions{display:flex;gap:10px;flex-wrap:nowrap;margin-top:16px}.third-party-actions .primary,.third-party-actions .secondary{flex:1 1 50%;min-width:0;padding:10px 14px;font-size:13px}
.account-status{margin:0 0 18px;padding:12px 14px;border:1px solid #d4e8db;background:#edf7ef;border-radius:12px}.account-overview .hint{margin-top:14px}.account-stats{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin-top:14px}.account-stats article{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fafcfb}.account-stats span{display:block;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:#688174}.account-stats strong{display:block;margin-top:7px;font-size:18px;overflow-wrap:anywhere}.account-subheading{margin:20px 0 12px;font-size:16px}
.account-section-nav{display:flex;gap:8px;overflow:auto;padding:0 0 16px;scrollbar-width:none}.account-section-nav .chip{border:1px solid var(--line)}.account-section-nav .chip.active{background:var(--dark);color:white;border-color:var(--dark)}
@media(max-width:760px){.third-party-auth h1{font-size:25px}.third-party-auth #telegram-login-authorize .third-party-actions{flex-direction:column-reverse}.third-party-actions .primary,.third-party-actions .secondary{width:100%;min-width:0}}
