/* The approved kitchen illustration direction, shared by every live page. */
:root{--paper:#fcfaf5;--surface:#fffefa;--green:#48643f;--green-dark:#344d2d;--brown:#705842;--sage:#e4e9da;--font:"Kingnam Maiyuan","Microsoft YaHei","PingFang SC",sans-serif}
html{background:#f1eee7;scroll-behavior:auto}
body{max-width:480px;min-height:100dvh;margin:auto;background-color:var(--paper);background-image:linear-gradient(rgba(112,88,66,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(112,88,66,.055) 1px,transparent 1px);background-size:26px 26px;padding-bottom:calc(100px + env(safe-area-inset-bottom));font-size:16px;font-synthesis:none}
main{max-width:none;padding:0 22px;min-height:calc(100dvh - 100px)}
.page{padding-top:25px;animation:arrive .3s ease-out}
h1,.photo-heading h1{font-size:28px;line-height:1.35;font-weight:700;letter-spacing:-.5px}
h2{font-size:20px}h3{font-size:18px}.small{font-size:14px}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:70px;margin-bottom:10px}
.chef{width:80px;height:80px;object-fit:contain;flex-shrink:0}.date-note{padding:0;border:0;margin-top:8px;font-size:14px;color:var(--muted)}
.recipe-page-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.recipe-page-heading .recipe-back{flex-direction:column;align-items:flex-start;gap:4px;margin:0}.recipe-page-heading .recipe-back>span{margin-left:0}
.eyebrow,.local-badge{display:none}.site-footer{margin:34px 0 0;padding:16px 0 4px;border-top:1px solid var(--line);font-size:14px}
.site-footer details{max-width:100%}.site-footer summary{font-size:14px}
.button{border-radius:7px;padding:7px 15px;font-size:16px;min-height:44px;box-shadow:none}
.button.compact{min-height:40px;font-size:15px}.button.primary{background:var(--green);border-color:var(--green)}
.button.secondary{background:none}.text-button{font-size:15px;min-height:40px;padding:6px 3px}.inline-feedback:empty{margin:0;min-height:0}
input,select,textarea{font-size:16px;border-radius:5px}.field-label{font-size:15px}
.main-nav{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:5px 12px calc(5px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);box-shadow:none}
.main-nav a{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:54px;gap:2px;padding:2px 0;border-bottom:0;border-radius:10px;color:var(--brown);font-size:14px;text-decoration:none;transition:background .2s,transform .15s}
.main-nav a.active{background:none;color:#fff9e8;font-weight:700}
.main-nav a::before,.meal-tabs button::before{content:"";position:absolute;inset:0 22%;z-index:-1;border-radius:inherit;transition:background .18s}
.main-nav a.active::before,.meal-tabs button[aria-selected=true]::before{background:var(--green)}
.main-nav a:active{transform:scale(.97)}
.nav-icon{display:block;width:32px;height:32px;background-image:url('/static/assets/mobile-v1/refresh/navigation.webp');background-size:400% 400%;background-repeat:no-repeat;flex-shrink:0}
.main-nav .nav-icon{width:26px;height:26px}
.nav-0{background-position:0 6.5%}.nav-2{background-position:66.666667% 6.5%}.nav-3{background-position:100% 6.5%}.nav-4{background-position:0 46.7%}
.active .nav-icon{filter:brightness(0) invert(1)}
.today-layout,.receipt-layout,.recipe-layout{display:block}.plan-controls{width:100%;margin-bottom:12px;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;padding:0;box-shadow:none;background:none}
.plan-controls>.controls-summary{min-height:44px;padding:6px 0;justify-content:space-between;flex-wrap:nowrap;font-size:17px;color:var(--green)}
.plan-controls>.controls-summary::after,.plan-controls[open]>.controls-summary::after{content:none}.controls-title{min-width:0}
.controls-summary>.disclosure-action{display:flex;align-items:center;gap:10px;flex-shrink:0;font-size:14px;color:var(--green)}.disclosure-chevron{display:block;width:10px;height:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.plan-controls[open] .disclosure-chevron{transform:translateY(3px) rotate(225deg)}.plan-controls[open]>.controls-summary{margin-bottom:6px;border-bottom:1px solid var(--line)}
.controls-content{padding:0 0 8px}.plan-controls form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 12px}
.plan-controls form>.field-label{grid-row:1;font-size:14px}.people-control{grid-row:2;grid-column:1}.plan-controls #meal{grid-row:2;grid-column:2}
.meal-people-setting,.settings,.plan-controls form>p,.plan-controls form>button{grid-column:1/-1}
.plan-heading{font-size:14px;margin-bottom:14px}.plan-heading>a{display:none}.meal-stack{display:grid;grid-template-columns:1fr;gap:32px}
.meal-card{border:0;background:none;box-shadow:none;border-radius:0;padding:0}.meal-top{margin-bottom:13px}.meal-top h3{font-size:20px}.meal-top h3 small{font-size:15px;font-weight:400}.meal-top>span{font-size:14px}
.dish-gallery{grid-template-rows:auto auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;height:auto;overflow:visible;border-radius:0}
.dish-picture{display:block;min-width:0;position:static;overflow:hidden;border-radius:7px;background:var(--surface);box-shadow:0 3px 12px rgba(95,74,47,.07);text-decoration:none}
.main-dish-picture{grid-column:1/-1;grid-row:auto}.dish-picture>img{display:block;width:100%;height:110px;object-fit:cover}
.main-dish-picture>img{height:222px}.dish-picture>span,.main-dish-picture>span{position:static;display:block;background:none;color:var(--ink);padding:8px 10px 6px;font-size:16px;text-shadow:none;line-height:1.5}
.main-dish-picture>span{font-size:21px;font-weight:600}.dish-picture>span{display:flex;align-items:center;justify-content:space-between;gap:8px}.dish-picture>span>strong{min-width:0;font-weight:inherit}.dish-picture>span>small{flex-shrink:0;font-size:14px;font-weight:400;color:var(--green)}.dish-gallery.dishes-1 .main-dish-picture{grid-column:1/-1}
.plan-actions{margin:0 0 16px}
#meal-people-inputs{border:0;padding:0;margin:0 0 12px;min-width:0}#meal-people-inputs label{font-size:15px}#meal-people-inputs input{font-size:18px}#meal-people-hint{grid-column:1/-1;margin:0;line-height:1.4}
.meal-actions{display:flex;justify-content:space-between;gap:16px;margin-top:17px;border:0;padding:0}.recipe-link{font-size:15px;color:var(--green)}
.recipe-link img,.recipe-back img{display:none}.complete-meal{border:0;border-radius:6px;background:var(--green);color:var(--surface);padding:9px 16px;font-size:15px;min-height:44px}
.complete-meal:disabled{opacity:1;background:var(--sage);color:var(--green);cursor:default}.shopping-link{display:flex;justify-content:space-between;margin:27px 0 20px;padding:15px 12px;background:var(--yellow);font-size:16px;text-decoration:none;color:var(--green)}
#today .complete-meal{width:100%;min-height:48px}#today .shopping-link{margin:16px 0 0;min-height:48px;font-size:15px;padding:12px}
#today .settings>summary,#today .family-settings>summary,#today .plan-notes>summary{min-height:40px;padding:6px 0;gap:12px;flex-wrap:nowrap;font-size:16px;color:var(--green)}#today .settings>summary>span{margin-left:auto;font-size:14px}
#today .settings>summary::after,#today .family-settings>summary::after,#today .plan-notes>summary::after{content:"";display:block;flex-shrink:0;width:9px;height:9px;margin-left:auto;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
#today .settings[open]>summary::after,#today .family-settings[open]>summary::after,#today .plan-notes[open]>summary::after{transform:translateY(3px) rotate(225deg)}#today .plan-notes{border-top:1px solid var(--line);margin-top:4px}#today .plan-notes ul{padding-left:20px;line-height:1.7;color:var(--muted)}
.check-staples{background:none;padding:10px 0}.plan-notes{font-size:14px;margin-top:20px}.plan-notes li{font-size:14px}
#pantry>.section-heading{margin-bottom:10px}.pantry-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pantry-tools>.button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:40px;padding:6px;font-size:15px;white-space:nowrap}
.page details:not(.plan-controls)>summary,dialog details:not([hidden])>summary{min-height:40px;padding:6px 0;gap:12px;flex-wrap:nowrap;font-size:16px;color:var(--green)}
.page details:not(.plan-controls)>summary::after,dialog details:not([hidden])>summary::after{content:"";display:block;flex-shrink:0;width:9px;height:9px;margin-left:auto;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.page details:not(.plan-controls)[open]>summary::after,dialog details:not([hidden])[open]>summary::after{transform:translateY(3px) rotate(225deg)}
.page-help{margin-top:8px;border-top:1px solid var(--line)}.page-help>p{font-size:14px;line-height:1.7;color:var(--muted)}.page-help>.button{margin-bottom:12px}
.product-photo{position:relative}.product-edit-entry{position:absolute;right:8px;bottom:8px;padding:5px 9px;border-radius:5px;background:var(--surface);font-size:14px;color:var(--green)}.product-actions .text-button{min-height:44px;width:100%;font-size:16px}
.product-toolbar:has(#add-product[hidden]){display:none}.product-toolbar>.text-button{min-height:40px;padding:6px 16px;font-size:16px;border:1px solid var(--line);border-radius:6px}
.pantry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
.pantry-item{display:block;width:100%;padding:0;border:0;border-radius:0;background:none;text-align:left;min-width:0;box-shadow:none}
.pantry-photo{display:block;position:relative}
.stock-empty-badge{position:absolute;right:7px;bottom:7px;padding:4px 9px;border-radius:5px;background:#fff9ed;color:#65482e;border:1px solid #d2bea1;font-size:13px;font-weight:600}
.ingredient-photo{display:block;width:100%;aspect-ratio:1;background-repeat:no-repeat;object-fit:cover;border-radius:0;background-color:var(--surface)}
.ingredient-egg,.ingredient-hairtail,.ingredient-rice,.ingredient-oil{background-image:url('/static/assets/mobile-v1/refresh/ingredients.webp');background-size:200% 200%}
.ingredient-egg{background-position:0 0}.ingredient-hairtail{background-position:100% 0}.ingredient-rice{background-position:0 100%}.ingredient-oil{background-position:100% 100%}
.food-photo-missing{display:grid;place-items:center;background-image:none;background-color:var(--sage)}.food-photo-missing .nav-icon{width:62px;height:62px}
.stock-title{display:flex;align-items:center;justify-content:space-between;gap:5px;margin:12px 0 10px}.stock-title strong{font-size:18px;font-weight:600}.stock-title>span{font-size:16px;color:var(--green);white-space:nowrap}
.stock-progress{display:block;appearance:none;width:100%;height:8px;border:0;border-radius:4px;overflow:hidden;background:#e2dac8;accent-color:var(--green)}
.stock-progress::-webkit-progress-bar{background:#e2dac8;border-radius:4px}.stock-progress::-webkit-progress-value{background:var(--green);border-radius:4px;transition:width .3s ease-out}.stock-progress::-moz-progress-bar{background:var(--green)}
.stock-caption{display:block;margin-top:7px;font-size:14px;color:var(--muted)}
.pantry-staples{margin:28px 0 0;border-top:1px solid var(--line);padding:22px 0 0;background:none;font-size:14px}
.staples-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 9px}.staples-grid>div{display:flex;align-items:center;gap:8px}.staples-grid .ingredient-photo{width:45px;height:45px;flex-shrink:0}
.category-filters{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:18px;margin:0 0 10px;padding:0;scrollbar-width:none}.category-filters button{border-radius:0;white-space:nowrap;background:none;min-height:36px;padding:4px 0;font-size:15px;border:0;border-bottom:2px solid transparent}.category-filters button.active,.category-filters button[aria-pressed=true]{border-color:var(--green);color:var(--green);background:none}
.avatar{display:block;background-image:url('/static/assets/mobile-v1/refresh/avatars.webp');background-size:300% 300%;background-repeat:no-repeat;background-color:var(--surface);border-radius:50%}
.avatar-0{background-position:0 0}.avatar-1{background-position:50% 0}.avatar-2{background-position:100% 0}.avatar-3{background-position:0 50%}.avatar-4{background-position:50% 50%}.avatar-5{background-position:100% 50%}.avatar-6{background-position:0 100%}.avatar-7{background-position:50% 100%}.avatar-8{background-position:100% 100%}
#members-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 18px;margin:5px 0 12px}.member-row{display:flex;flex-direction:column;align-items:center;gap:0;border:0;padding:0 0 8px;text-align:center;border-radius:0;background:none}
.member-avatar{display:block;width:116px;height:116px;margin:0 0 10px}.member-row:nth-child(even) .member-avatar{background-color:var(--surface)}.member-row>strong{font-size:22px;font-weight:600}.member-meals{font-size:14px;color:var(--muted);margin-top:4px}.member-edit{font-size:14px;color:var(--green);margin-top:10px}
.add-member{font-size:17px;text-align:center;border-top:1px solid var(--line);padding-top:14px}.health-sources{margin-top:25px;font-size:14px}.empty-members{grid-column:1/-1}
.avatar-field{border:0;border-bottom:1px solid var(--line);padding:0 0 18px;margin:0 0 16px}.avatar-field legend{font-size:16px;margin-bottom:12px}
.avatar-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 6px}.avatar-option{position:relative;display:flex;align-items:center;flex-direction:column;padding:5px;border:2px solid transparent;border-radius:9px;font-size:14px;cursor:pointer}
.avatar-option:has(input:checked){border-color:var(--green);background:var(--sage)}.avatar-option input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.avatar-option:focus-within{outline:2px solid var(--orange)}.avatar-option .avatar{width:77px;height:77px;margin-bottom:6px}
.procurement-tabs{display:flex;justify-content:space-between;gap:12px;margin:0 0 16px;border-bottom:1px solid var(--line)}.procurement-tabs a{font-size:16px;white-space:nowrap;min-height:48px;padding:11px 0 9px}.procurement-tabs a[aria-current]{border-bottom:3px solid var(--green);font-weight:600;color:var(--green)}
.shopping-context{font-size:14px;color:var(--muted);margin:0 0 15px}.shopping-items{margin-bottom:16px}.shopping-item{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);min-height:72px;padding:8px 0;cursor:pointer}.shopping-item input{width:21px;height:21px;min-height:21px;flex-shrink:0;accent-color:var(--green)}.shopping-item .ingredient-photo{width:58px;height:58px;flex-shrink:0}.shopping-item>span:not(.ingredient-photo){flex:1;min-width:0}.shopping-item strong{font-size:17px}.shopping-item small{display:block;font-size:14px;color:var(--muted)}.shopping-item b{font-size:16px;font-weight:500;white-space:nowrap}.shopping-item.purchased strong{text-decoration:line-through;color:var(--muted)}
.empty-shopping,.empty-products{padding:28px 0;text-align:center}.empty-shopping>.nav-icon{width:110px;height:110px;margin:0 auto 28px}.empty-shopping h2{margin-bottom:24px}.empty-chef{width:110px;height:110px;display:block;margin:0 auto 22px}
.products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 16px}.product-photo{height:190px;border-radius:6px}.product-photo.no-product-photo{padding:40px}.product-card h2{font-size:17px;line-height:1.55}.product-total{font-size:22px}.product-unit-price{font-size:15px}.product-spec,.product-review-summary,.product-review-summary small{font-size:14px}.product-actions{flex-wrap:wrap;gap:0}.product-actions .text-button{font-size:16px}.buy-recommendation h2{font-size:23px}.empty-products img{width:90px;height:90px;object-fit:contain}.empty-products h2{font-size:21px}
.upload-panel{width:100%;border:0;padding:8px 0;background:none;box-shadow:none;border-radius:0}.upload-panel>h2{font-size:23px;margin:0 0 22px}.upload-illustration{width:96px;height:96px;margin:0 auto 12px}.upload-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 8px}#receipt-draft{margin-top:25px;width:100%}.draft-row{border-radius:5px}.receipt-layout{gap:0}
.recipe-page{padding-top:22px}.recipe-back{font-size:15px}.dish-tabs{gap:12px;margin:0 0 16px}.dish-tabs a,.dish-tabs img{width:86px}.dish-tabs img{height:64px;border-radius:5px}.dish-tabs span{font-size:14px}.recipe-photo img{width:100%;aspect-ratio:1.4;object-fit:cover;border-radius:6px}.recipe-heading{margin:16px 0}.recipe-heading h1{font-size:26px}.recipe-tags{font-size:14px}.recipe-method{margin-top:20px}.recipe-ingredients li{font-size:16px}.recipe-ingredients li>small{font-size:13px}.cooking-steps li p{font-size:16px}.cooking-steps{gap:18px}.step-number{font-size:24px}.recipe-return{padding-bottom:15px}
dialog,#member-dialog,#product-dialog{width:min(460px,calc(100% - 16px));max-height:88dvh;border:1px solid var(--line);border-radius:17px 17px 0 0;margin:auto auto 0;padding:18px 20px 25px;background:var(--paper);animation:tray-in .24s ease-out}
dialog::backdrop{background:#342b2259}dialog .section-heading{position:sticky;top:-18px!important;z-index:2;padding:8px 0;background:var(--paper)}dialog h2{font-size:22px}dialog .form-two{gap:10px}.body-fields{gap:8px}.metric-row{gap:8px}.metric-row label small{font-size:13px}.profile-section summary span{font-size:14px}.metric-row input,.metric-row select{font-size:16px}.toast{font-size:15px;bottom:110px}
@keyframes tray-in{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:374px){main{padding:0 17px}.stock-title{align-items:flex-start;flex-direction:column;gap:2px}.stock-caption{font-size:13px}.pantry-grid{gap:22px 14px}.staples-grid{gap:8px}.staples-grid .ingredient-photo{width:37px;height:37px}.avatar-option .avatar{width:70px;height:70px}.shopping-item{gap:8px}.shopping-item .ingredient-photo{width:48px;height:48px}.procurement-tabs{gap:9px}.procurement-tabs a{font-size:15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.raw-photo{background-image:url('/static/assets/mobile-v1/refresh/raw-foods.webp');background-size:400% 400%}
.raw-0{background-position:0.000000% 0.000000%}
.raw-1{background-position:33.333333% 0.000000%}
.raw-2{background-position:66.666667% 0.000000%}
.raw-3{background-position:100.000000% 0.000000%}
.raw-4{background-position:0.000000% 33.333333%}
.raw-5{background-position:33.333333% 33.333333%}
.raw-6{background-position:66.666667% 33.333333%}
.raw-7{background-position:100.000000% 33.333333%}
.raw-8{background-position:0.000000% 66.666667%}
.raw-9{background-position:33.333333% 66.666667%}
.raw-10{background-position:66.666667% 66.666667%}
.raw-11{background-position:100.000000% 66.666667%}
.raw-12{background-position:0.000000% 100.000000%}
.raw-13{background-position:33.333333% 100.000000%}
.raw-14{background-position:66.666667% 100.000000%}
.raw-15{background-position:100.000000% 100.000000%}
.avatar-field>summary{font-size:16px;margin-bottom:12px}

.product-photo.no-product-photo{display:grid;place-items:center}.product-photo.no-product-photo .nav-icon{width:68px;height:68px}

.product-toolbar{justify-content:flex-end;margin-top:-12px;margin-bottom:8px}
.candidate-identity{display:flex;align-items:center;gap:12px;margin-top:10px}.candidate-photo{width:72px;flex-shrink:0}.candidate-identity .field-label{flex:1;min-width:0;margin:0}.candidate-warning{margin-top:12px;font-size:14px;color:var(--orange)}.candidate-quantity-note{margin-top:10px}.candidate details.source p{white-space:pre-wrap;overflow-wrap:anywhere}

.meal-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px;border-bottom:1px solid var(--line);padding-bottom:6px}
.meal-tabs button{position:relative;isolation:isolate;border:0;border-radius:6px;background:none;color:var(--brown);font-size:17px;min-height:44px;padding:7px 6px;transition:background .18s,color .18s,transform .12s}
.meal-tabs button[aria-selected=true]{color:var(--surface);font-weight:600}.meal-tabs button:active{transform:scale(.98)}
.meal-panel{animation:arrive .2s ease-out}.no-meal{min-height:290px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:18px}.no-meal .nav-icon{width:85px;height:85px}.no-meal h2{font-size:22px}.no-meal .text-button{font-size:16px}
.plan-controls form{display:block}.plan-controls form>.field-label{display:block;grid-row:auto;font-size:15px;margin:14px 0 7px}.plan-controls #meal{width:100%;grid-column:auto;grid-row:auto}.plan-controls .people-control{width:100%;grid-row:auto;grid-column:auto}.meal-people-setting{margin-top:16px}.meal-people-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.meal-people-inputs input{width:100%;min-width:0}.plan-controls .settings{margin:4px 0 0}.plan-controls .controls-content{padding-bottom:8px}
@media(prefers-reduced-motion:reduce){.meal-panel,.meal-tabs button,.meal-tabs button::before,.main-nav a::before{animation:none!important;transition:none!important}}

/* Meal mode and the retained family dining settings. */
.main-nav a::before{inset:0;left:50%;width:60px;transform:translateX(-50%)}
.fat-loss-toggle{display:flex;align-items:center;gap:9px;min-height:44px;margin:0 0 4px;color:var(--brown);cursor:pointer}
.fat-loss-toggle input{width:20px;height:20px;margin:0;accent-color:var(--green)}
.fat-loss-toggle:has(input:checked){color:var(--green);font-weight:600}

.family-settings{margin-top:4px;border-top:1px solid var(--line)}
.family-settings>summary{min-height:40px;padding:6px 0;cursor:pointer;color:var(--green)}
.family-settings .member-avatar{width:84px;height:84px;margin-bottom:6px}
.family-settings .member-row>strong{font-size:18px}.family-settings .member-edit{margin-top:4px}
.product-image-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 8px}.product-image-actions #product-file-label{margin:0}.product-image-actions .button{padding-left:8px;padding-right:8px}
.archived-products>div{gap:10px}.archived-products>div>span{flex:1}.archived-products .text-button{flex-shrink:0}
.pantry-cover-editor{display:flex;align-items:center;gap:16px;margin:8px 0 12px}.pantry-cover-preview{width:96px;height:96px;flex-shrink:0;overflow:hidden;border-radius:0;background:var(--surface)}.pantry-cover-preview .ingredient-photo{width:100%;height:100%;object-fit:cover}.pantry-cover-tools{flex:1;min-width:0}.pantry-cover-actions{display:flex;gap:8px;margin-top:8px}.pantry-cover-actions .button{min-height:44px;padding:8px 12px;font-size:15px}.pantry-cover-tools .text-button{font-size:14px;padding:6px 0}.pantry-cover-gallery{border-bottom:1px solid var(--line);margin-bottom:14px;padding-bottom:10px}.pantry-cover-gallery>summary{min-height:40px;padding:6px 0;color:var(--green);cursor:pointer}.pantry-cover-library{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 8px;max-height:238px;overflow-y:auto;margin-top:12px;padding:2px}.pantry-cover-library>button{min-width:0;border:2px solid transparent;background:none;border-radius:0;padding:3px;font-size:14px;color:var(--brown)}.pantry-cover-library>button[aria-pressed=true]{border-color:var(--green);background:var(--sage)}.pantry-cover-library .ingredient-photo{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;margin-bottom:4px;border-radius:0}.pantry-cover-library>p{grid-column:1/-1}.pantry-cover-library>button:focus-visible{outline:2px solid var(--orange);outline-offset:0}.candidate-stockless{color:var(--green);margin-top:8px}

/* Wide screens use navigation in document flow, with settings beside the menu. */
.seasoning-panel{margin-top:20px;border-top:1px solid var(--line);scroll-margin-top:16px}.seasoning-section{padding-bottom:0}.seasoning-section>h2{font-size:22px;margin-bottom:8px}.seasoning-group{margin-top:0;border-bottom:1px solid var(--line)}.seasoning-group>summary{min-height:40px;padding:6px 0;cursor:pointer;color:var(--green)}.seasoning-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:4px 20px;padding-bottom:12px}.seasoning-item{display:flex;align-items:center;gap:10px;min-width:0;padding:8px 0}.seasoning-item>.ingredient-photo{width:48px;height:48px;flex-shrink:0;object-fit:cover;border-radius:0}.seasoning-item>span:not(.ingredient-photo){flex:1}.seasoning-item>select{width:100px;min-height:44px;flex-shrink:0}.seasoning-item.status-empty>select{color:#a1482f;border-color:#bf8067}.seasoning-item.status-low>select{color:#826020}.seasoning-item.status-enough>select{color:var(--green)}
.dish-picture:has(.generated-photo-label),.recipe-photo:has(.generated-photo-label),.dish-tabs a:has(.generated-photo-label){position:relative}.generated-photo-label{position:absolute;top:8px;right:8px;padding:2px 6px;border-radius:4px;color:#fff;background:rgba(48,52,36,.7);font-size:11px;line-height:1.6;font-weight:400}.dish-tabs .generated-photo-label{display:none}
#seasoning-panel summary{min-height:40px;padding:6px 0;line-height:1.4;margin-bottom:0}
#pantry:not([hidden])~.account-bottom{margin-top:8px;padding-top:4px}
@media(min-width:901px){
  body{max-width:1040px;padding-bottom:32px}
  main{padding:0 32px;min-height:0}
  .main-nav{position:static;bottom:auto;left:auto;transform:none;width:auto;margin:0 32px;padding:12px 0;border-top:0;border-bottom:1px solid var(--line)}
  .main-nav a{flex-direction:row;gap:8px;min-height:44px}
  .main-nav a::before{inset:0;left:0;width:auto;transform:none}
  .today-layout{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:0 32px;align-items:start}
  .today-layout>.plan-controls{grid-column:1}
  #plan-output{grid-column:2;grid-row:1/span 3;min-width:0}
  .toast{bottom:24px}
}
