/* Weekly summary (Misa Plus, free in beta). */
.weekBadge{margin:0 0 4px}.plusChip{display:inline-block;border:1px solid var(--orange);color:var(--orange);border-radius:99px;padding:1px 9px;font-size:.75rem;font-weight:700}
.weekStats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.weekStats div{border:1px solid var(--line);border-radius:12px;padding:10px;min-width:0}
.weekStats div:last-child:nth-child(odd){grid-column:1/-1}.weekStats strong{display:block;font-size:1.25rem}.weekStats span{color:var(--muted);font-size:.85rem}
.weekBars{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;align-items:end;height:92px;margin:12px 0 4px}
.weekBars div{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;font-size:.72rem;color:var(--muted);min-width:0}
.weekBars i{display:block;width:100%;min-height:3px;border-radius:6px 6px 2px 2px;background:var(--orange)}.weekBars i.noLog{background:var(--line)}
.weekCard small b{font-weight:700}.weekTry{border-top:1px solid var(--line);margin-top:14px;padding-top:12px}.weekTry p{margin:0 0 8px}
.pantryButton{margin:12px 0}.pantryNote{margin-top:14px}.pantryList .item small{color:var(--muted);margin-left:6px}
.myRecipesBar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}.myRecipeList .choice{margin:8px 0}
.myTags{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}.myTags span{border:1px solid var(--line);border-radius:99px;padding:2px 9px;font-size:.78rem;color:var(--muted)}.myTagWarn{border-color:var(--orange)!important;color:var(--orange)!important}.myNutrition{font-weight:600;margin:0 0 4px;color:var(--ink)}.myNutrition+.notice{margin-top:0}.allergenNote{border:1px solid var(--orange);border-radius:14px;padding:10px 12px;margin:10px 0}.allergenNote .myTags{margin:6px 0}.allergenNote small{color:var(--muted);display:block}
.recipeToList{border-top:1px solid var(--line);margin-top:14px;padding-top:12px}
.importLinks{min-height:5.5em;resize:vertical;font:inherit;line-height:1.45;width:100%;box-sizing:border-box}
.importHint{margin:.4rem 0 0;font-size:.86rem;opacity:.78}
.photoCredit{position:absolute;right:8px;bottom:8px;max-width:58%;font-size:.68rem;line-height:1.3;padding:2px 7px;border-radius:8px;background:rgba(0,0,0,.62);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.photoCreditNotice a{color:inherit}
.planStart{background:#24272f;border:1px solid #eabd9655;border-radius:26px;padding:22px;margin:0 0 18px}.planStart h2{margin:6px 0;font-size:24px;line-height:1.2}.planStart p{margin:0 0 16px;color:#b9bbc4}.planStartActions{display:flex;flex-wrap:wrap;gap:10px}.planStartActions button{min-height:48px;margin:0}
.recipeoption .swapThumb{width:56px;height:56px;border-radius:16px;object-fit:cover;flex:none;background:#2c2f37}
.homeExtras{margin:18px 0 8px;border-top:1px solid #ffffff14;padding-top:10px}.homeExtras>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#b9bbc4;font-weight:700}.homeExtras[open]>summary{margin-bottom:12px}
.pagepath .undolast{margin:0 auto 0 12px;padding:0 6px;min-height:44px}
@media(max-width:740px){.shopPage>.pagehead .subtitle,.shopPage>.pagehead .eyebrow{display:none}.shopPage>.pagehead h1{margin:4px 0 8px}.shopPage>.pagepath{margin-bottom:4px}}
@media(max-width:740px){.browsePage>.pagehead{margin:4px 0 10px}.browsePage>.pagehead .eyebrow,.browsePage>.pagehead .subtitle{display:none}.browsePage>.pagehead h1{font-size:24px;margin:0}.browsePage>.resultbar{display:none}.browsePage>.filters,.browsePage>.myRecipesBar{margin-bottom:8px}.browsePage>.pagepath{margin-bottom:4px}.browsePage>.catalogToolbar{margin-bottom:6px}.browsePage>.catalogToolbar label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
.backupBox{background:#24272f;border:1px solid #adcbd555;border-radius:22px;padding:18px;margin:0 0 16px}.backupBox strong{font-size:18px}.backupBox p{margin:6px 0}.backupActions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:10px}.backupActions button{min-height:46px;margin:0}
@media(max-width:740px){.browsePage .recipecards .recipecard{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:stretch;border-radius:18px}.browsePage .recipecards .recipepicture{height:auto;min-height:112px;border-radius:0}.browsePage .recipecards .recipepicture img{height:100%;object-fit:cover}.browsePage .recipecards .photoCredit{display:none}.browsePage .recipecards .photoLabel{font-size:8px;left:4px;bottom:4px;padding:2px 4px}.browsePage .recipecards .recipecontent{padding:12px 14px;gap:6px;min-height:0;display:flex;flex-direction:column}.browsePage .recipecards .recipecontent strong{order:-1;font-size:16px;line-height:1.25}.browsePage .recipecards .recipecontent>span:last-child{display:none}.browsePage .recipecards .nutritionchips{display:none}.browsePage .recipecards .communityMark{min-height:112px}}
body.toastOpen #content{padding-bottom:195px}
/* v118 Find a Mealime recipe by name (my-recipes.js mealimeFinderHtml) */
.mealimeFind{margin:1.2rem 0 .4rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.12)}
.mealimeFind h3{margin:0 0 .5rem}
.mealimeFind label[for=mealimeQuery]{display:block;margin-bottom:.3rem}
.mealimeFind input[type=search]{width:100%;box-sizing:border-box}
.mealimeResults{list-style:none;margin:.4rem 0 .6rem;padding:0;max-height:min(52vh,26rem);overflow-y:auto;overscroll-behavior:contain}
.mealimeResults li{display:flex;align-items:center;gap:.6rem;padding:.45rem 0;border-bottom:1px solid rgba(255,255,255,.08);min-height:44px}
.mealimeResults input[type=checkbox]{width:22px;height:22px;flex:none;margin:0;accent-color:#ffb183}
.mealimeResults .mealimeTitle{flex:1;min-width:0;line-height:1.3;overflow-wrap:anywhere;cursor:pointer}
.mealimeResults span.mealimeTitle{cursor:default;opacity:.8}
.mealimeResults .mealimeHave{width:22px;flex:none;text-align:center;color:#9fd3a8}
.mealimeResults .secondary,.mealimeResults .textbtn{width:auto;margin:0;padding:8px 14px;flex:none;min-height:40px}
.mealimeFind [hidden]{display:none!important}
.mealimeJump{display:block;margin:-.2rem 0 .6rem;padding:8px 0;min-height:44px;font-size:14px}
.importOr{margin:1.2rem 0 .3rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.12);font-size:1rem}
.mealimeFind:first-child{margin-top:0;padding-top:0;border-top:0}
.mealimeResults .mealimeMoreRow{justify-content:center;border-bottom:0}
/* v119 Background import: chip on every screen, progress, failures, servings choice (my-recipes.js) */
.importChip{position:sticky;top:8px;z-index:9;display:flex;width:max-content;margin:10px 0 0 auto;align-items:center;gap:6px;min-height:44px;padding:8px 16px;border-radius:99px;border:1px solid #75624f;background:#2b2621;color:#f3ead9;font-size:14px;font-weight:650;box-shadow:0 8px 28px #0007;cursor:pointer;max-width:calc(100vw - 32px)}
.importChip[hidden]{display:none}
.importChipDot{width:9px;height:9px;border-radius:50%;background:#ffb183;flex:none;animation:importPulse 1.2s ease-in-out infinite}
.importChipDone{border-color:#6f9a78;background:#1f2a22}.importChipFail{border-color:#b98a52;background:#2d2519}
@keyframes importPulse{50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.importChipDot{animation:none}}
/* v120: in the page flow under the header (sticky), so it never covers a button at the bottom of the screen */
@media(max-width:740px){.importChip{font-size:13px;padding:8px 14px;margin-top:8px}}
.importQueueBox{margin:0 0 1rem;padding:14px 16px;border:1px solid #ffffff1f;border-radius:18px;background:#22252b}
.importQueueBox[hidden]{display:none}
.importQueueBox h3{margin:0 0 .5rem;font-size:1.02rem}
.importQueueBox h3:focus{outline:2px solid #ffb183;outline-offset:3px;border-radius:6px}
.importQueueBox progress{width:100%;height:10px;accent-color:#ffb183}
.importQueueBox .backupBox{margin:.8rem 0 0;padding:14px;border-color:#ffb18399}
.importQueueBox .importFailHead{margin-top:1rem}
.importFails{list-style:none;margin:.3rem 0 .6rem;padding:0;max-height:min(40vh,20rem);overflow-y:auto}
.importFails li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:center;padding:.5rem 0;border-bottom:1px solid #ffffff14}
.importFailName{font-weight:650;overflow-wrap:anywhere}
.importFailWhy{grid-column:1;font-size:.86rem;color:#e7b98c}
.importFails button{grid-column:2;grid-row:1/span 2;width:auto;margin:0;min-height:44px;padding:8px 14px}
.importQueueActions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:.8rem}.importQueueActions button{width:auto;margin:0;min-height:44px}
.mealimeRoom{opacity:.9}
.mealimeResults li{flex-wrap:wrap}
.mealimeServ{flex-basis:100%;display:flex;align-items:center;gap:6px;margin:0 0 0 calc(22px + .6rem);padding:0;border:0;min-width:0}
.mealimeServ legend{float:left;margin-right:4px;padding:0;font-size:.86rem;opacity:.85}
.mealimeServ input{position:absolute;opacity:0;width:1px;height:1px}
.mealimeServ label{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:36px;border:1px solid #4a4c52;border-radius:10px;font-size:.9rem;cursor:pointer}
.mealimeServ input:checked+label{background:#f0ebe0;color:#252322;border-color:#f0ebe0;font-weight:700}
.mealimeServ input:focus-visible+label{outline:2px solid #ffb183;outline-offset:2px}
.mealimeQueuedText{font-size:.86rem;opacity:.8;flex:none}
.srOnly{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.importQueueBox[hidden]+.mealimeFind{margin-top:0;padding-top:0;border-top:0}
.mealimeResults .mealimeQueued{color:#c9c5bd}
.importQueueBox{scroll-margin-top:110px}
.mealimeServ{flex-wrap:wrap}.mealimeServNote{font-size:.8rem;opacity:.75;margin-left:4px}
.backupActions .backupCloudHint{flex-basis:100%;margin:0}.persistLine{margin-top:.5rem}
/* v121 A week from my recipes */
.mineWeekCount{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0;padding:0;border:0;min-width:0}
.mineWeekCount legend{float:left;width:100%;margin:0 0 4px;padding:0;font-weight:700}
.mineWeekCount label{position:relative;display:inline-flex}
.mineWeekCount input{position:absolute;opacity:0;width:1px;height:1px}
.mineWeekCount span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid #4a4c52;border-radius:12px;cursor:pointer;font-weight:700}
.mineWeekCount input:checked+span{background:#f0ebe0;color:#252322;border-color:#f0ebe0}
.mineWeekCount input:focus-visible+span{outline:2px solid #ffb183;outline-offset:2px}
.mineWeekList{margin:8px 0 12px;padding-left:1.4rem;display:grid;gap:10px}
.mineWeekList li strong{display:block}
.mineWeekList li small{display:block;opacity:.8;line-height:1.4}
.mineWeekStats{font-size:1.02rem;line-height:1.6}
.mineWeekStats b{font-size:1.2rem}
.extraFor{display:block;font-size:.78rem;opacity:.75;line-height:1.35;margin-top:2px}
.planStartActions .mineWeekOpen{flex-basis:100%}
.importChipDone{position:static}
.extrarow .item input[type=checkbox]{min-width:24px;min-height:24px}
.extraFor{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.extrarow .itemname{min-width:0}
.editRecipe{display:grid;gap:6px}.editRecipe label{font-weight:700;margin-top:8px}.editRecipe textarea{width:100%;box-sizing:border-box;min-height:120px;padding:12px;border-radius:14px;border:1px solid #4a4c52;background:#1b1d22;color:inherit;font:inherit;line-height:1.45}
.restoreSummary{margin:6px 0 12px;padding-left:1.2rem;line-height:1.7}
/* v122: "Selected (n)" list in the Mealime finder */
.mealimePickedList details{border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:.2rem .8rem;margin:.2rem 0 .6rem}
.mealimePickedList summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700}
.mealimePickedList ul{list-style:none;margin:0;padding:0;max-height:min(40vh,18rem);overflow-y:auto}
.mealimePickedList li{display:flex;align-items:center;gap:.6rem;padding:.3rem 0;border-top:1px solid rgba(255,255,255,.08);min-height:44px}
.mealimePickedList .mealimeTitle{flex:1;min-width:0;line-height:1.3;overflow-wrap:anywhere}
.mealimePickedList .textbtn{width:auto;margin:0;padding:8px 12px;min-height:40px;flex:none}
/* v122: automatic backup reminder strip (screens other than Home) */
.backupStrip{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;background:#24272f;border:1px solid #adcbd555;border-radius:16px;padding:10px 14px;margin:0 0 14px}
.backupStrip p{margin:0;flex:1 1 220px;line-height:1.35}
.backupStrip div{display:flex;gap:8px;align-items:center}
.backupStrip button{margin:0;min-height:44px;width:auto}
/* v122: denser shopping list on phones (more rows above the tab bar at 390 px) */
@media (max-width:600px){
#content[data-page=shop] .item{min-height:48px;padding:7px 6px;gap:10px}
#content[data-page=shop] .extrarow{gap:4px}
#content[data-page=shop] .removeitem{padding:6px 4px 6px 8px;min-height:44px}
#content[data-page=shop] .listgroup{margin:16px 0 4px}
#content[data-page=shop] .extraFor{margin-top:0}
}
.mealimePickedList summary{gap:.35em;list-style:none}.mealimePickedList summary::-webkit-details-marker{display:none}
.mealimePickedList summary::after{content:'▾';margin-left:auto;font-size:1.1em;transition:transform .2s}.mealimePickedList details[open] summary::after{transform:rotate(180deg)}
.mineScale{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 10px}.mineScale .chip{min-height:44px;margin:0}
/* v122: plan settings fold (plan screen with dinners) */
.planSettings{border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:.2rem 1rem;margin:14px 0}
.planSettings summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700}
.planSettings[open]{padding-bottom:1rem}.planSettings>*:not(summary){margin-top:10px}
/* v122 review round 2: imported recipes have no photo, so their placeholder is a small band, not a full hero */
.mealhero:has(.noPhoto),.recipepicture:has(.noPhoto){height:auto!important;min-height:0!important;aspect-ratio:auto!important}
.recipeIllustration.noPhoto{display:flex!important;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;height:auto!important;min-height:0!important;padding:8px 14px}
.recipeIllustration.noPhoto .friendlyArt{width:40px!important;height:40px!important}
.homeRestore{margin:18px 0 0;text-align:center}.homeRestore .textbtn{display:inline;width:auto}
