:root{--paper:#FFFEFA;--surface:#FFFFFF;--ink:#293632;--muted:#606E65;--green:#34834A;--green-text:#2E7542;--coral:#E98373;--line:#E0E8E1;--soft:#EAF5E9;--amber:#faf2dd;font-family:Nunito,Arial,sans-serif;color:var(--ink);background:var(--paper);font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}a{color:inherit}button{border:1px solid var(--green);background:var(--green);color:#fff;border-radius:10px;min-height:46px;padding:11px 20px;cursor:pointer;font-weight:600}button:disabled{opacity:.5;cursor:wait}.secondary{background:transparent;color:var(--green);border-color:var(--line)}.small{font-size:14px;min-height:38px;padding:8px 12px}.icon{font-size:24px;padding:4px 12px;min-width:42px}.danger{color:#9a3e36}.brand{font-family:Georgia,serif;font-size:34px;font-weight:bold;text-decoration:none;letter-spacing:-1.5px}.brand span{color:var(--coral);font-size:38px}header{max-width:1220px;margin:auto;display:flex;align-items:center;gap:50px;padding:23px 32px;border-bottom:1px solid var(--line)}nav{display:flex;gap:25px}nav a{text-decoration:none;font-size:14px;padding:12px 0}nav a.active{color:var(--green);border-bottom:2px solid var(--green)}.header-note{margin-left:auto;font-size:12px;color:var(--muted)}main{max-width:1050px;margin:auto;padding:55px 28px 70px;min-height:75vh}h1,h2,h3{font-family:Georgia,serif;font-weight:400}h1{font-size:48px;margin:12px 0 16px;letter-spacing:-1.4px}h2{font-size:32px;margin:6px 0 20px}h3{font-size:23px;margin:12px 0}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:bold;color:var(--muted)}p{line-height:1.6}.muted{color:var(--muted);font-size:13px}.intro{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:30px}.intro p{color:var(--muted);margin:0}.intro button{white-space:nowrap}.toolbar{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-bottom:25px}#search{max-width:340px;background:var(--surface)}.chips{display:flex;gap:8px}.chip{border-radius:30px;min-height:36px;padding:8px 16px;font-size:13px}.chip.active{background:var(--soft);color:var(--green)}.recipe-list{border-top:1px solid var(--line)}.recipe-row{display:flex;gap:18px;align-items:center;min-height:105px;border-bottom:1px solid var(--line);padding:17px 6px}.recipe-title{flex:1;text-align:left;background:none;color:var(--ink);border:0;padding:0;min-height:50px}.recipe-title strong{display:block;font:25px Georgia,serif;margin-bottom:9px}.recipe-title small{font-weight:400;font-size:13px;color:var(--muted)}.star{border:0;background:none;color:var(--muted);font-size:25px;padding:6px}.star.on{color:var(--coral)}.recipe-tag{font-size:11px;color:var(--green);background:var(--soft);border-radius:20px;padding:5px 10px;margin-right:12px}input[type=checkbox]{width:21px;height:21px;accent-color:var(--green);cursor:pointer;flex-shrink:0}label{display:block;font-size:13px;font-weight:600;margin-bottom:18px}input:not([type=checkbox]),textarea,select{display:block;width:100%;margin-top:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);padding:12px;min-height:44px}textarea{resize:vertical;line-height:1.5}input:focus,textarea:focus,select:focus,button:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:3px}.inline{display:flex;align-items:center;gap:10px}.selection-bar{position:sticky;bottom:20px;background:var(--green);color:white;border-radius:12px;padding:15px 20px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:25px;box-shadow:0 5px 25px #28302725}.selection-bar button{background:var(--surface);color:var(--green);border:0}.empty{text-align:center;padding:65px 20px;background:var(--surface);border:1px dashed var(--line);border-radius:12px}.empty h2{font-size:29px}.empty p{color:var(--muted)}.empty-symbol{font-size:35px;color:var(--green)}.notice{background:var(--amber);color:#695329;padding:12px 16px;border-radius:8px;font-size:13px;line-height:1.6;margin:18px 0}.panel{background:var(--surface);padding:24px;border:1px solid var(--line);border-radius:12px;margin:20px 0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.serving-row{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding:15px 0}.serving-row input{width:95px;margin:0}.group-title{font:18px Georgia,serif;background:var(--soft);padding:12px 16px;border-radius:8px;margin:27px 0 6px}.shopping-row{display:flex;align-items:center;gap:14px;padding:13px 5px;border-bottom:1px solid var(--line)}.shopping-name{flex:1;line-height:1.5}.shopping-name small{display:block;color:var(--muted);font-size:12px}.shopping-row.checked .shopping-name{text-decoration:line-through;opacity:.55}.shopping-row.excluded{opacity:.55}.shopping-row button{font-size:12px;padding:7px 10px;min-height:36px}footer{max-width:1180px;margin:auto;padding:25px 30px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;display:flex;justify-content:space-between;gap:15px}dialog{border:0;border-radius:15px;background:var(--surface);color:var(--ink);width:min(760px,94vw);max-height:92vh;padding:30px;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#22282088;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:start}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}.draft{background:var(--paper);padding:18px;border-radius:10px;margin-bottom:25px}.draft label{margin-bottom:12px}.draft p{margin-bottom:0}.ingredient-row{border-bottom:1px solid var(--line);padding:15px 0;display:grid;grid-template-columns:2fr .8fr 1fr 40px;gap:9px}.ingredient-row input,.ingredient-row select{margin:0;min-width:0;font-size:14px}.ingredient-row .note{grid-column:1/3}.ingredient-row .category{grid-column:3/5}.ingredient-row button{padding:5px;min-width:35px}.error{color:#a33b30}.login{max-width:430px;margin:8vh auto;padding:25px}.login h1{font-size:62px}.login form{margin-top:35px}.login button{width:100%}#toast{position:fixed;z-index:1000;top:18px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:8px;padding:13px 20px;width:max-content;max-width:90vw;font-size:14px;box-shadow:0 4px 20px #0002}.method-step{display:flex;gap:15px;border-bottom:1px solid var(--line);padding:15px 0;line-height:1.6;white-space:pre-wrap}.step-number{border-radius:50%;background:var(--soft);color:var(--green);min-width:29px;height:29px;text-align:center;padding-top:2px}.detail-ingredient{padding:11px 0;border-bottom:1px solid var(--line)}.view-notes{white-space:pre-wrap}.button-row{display:flex;gap:10px;flex-wrap:wrap}.text-link{display:inline-block;margin:15px 0;color:var(--green)}[hidden]{display:none!important}@media(max-width:650px){header{padding:16px 20px;gap:16px;flex-wrap:wrap}.brand{font-size:29px}nav{gap:18px;margin-left:auto}nav a{font-size:12px}.header-note{display:none}main{padding:30px 20px 70px}h1{font-size:36px}.intro{align-items:start;gap:12px}.intro button{font-size:13px;padding:10px 13px}.intro p{font-size:13px}.toolbar{gap:15px}#search{max-width:none}.recipe-row{gap:12px;min-height:100px}.recipe-title strong{font-size:22px}.recipe-tag{display:none}.selection-bar{bottom:15px;padding:12px;font-size:13px}.selection-bar button{padding:10px;font-size:12px}.columns{gap:12px}dialog{padding:20px}.ingredient-row{grid-template-columns:1.5fr .8fr .9fr 35px;gap:6px}.ingredient-row input,.ingredient-row select{padding:10px 7px;font-size:13px}footer{font-size:11px;flex-direction:column}.panel{padding:18px}.shopping-row button{font-size:11px}.login{margin:3vh auto}}

@font-face{font-family:Nunito;src:url('/static/fonts/Nunito.ttf') format('truetype');font-style:normal;font-weight:200 1000;font-display:swap}

.brand,h1,h2,h3,.recipe-title strong,.group-title{font-family:Nunito,Arial,sans-serif}
.brand{font-size:30px;font-weight:800;letter-spacing:-1px}.brand span{color:var(--coral);font-size:31px}
h1{font-size:34px;font-weight:800;letter-spacing:-.6px}h2{font-size:27px;font-weight:800;letter-spacing:-.4px}h3{font-size:21px;font-weight:700}
.recipe-title strong{font-size:20px;font-weight:700}.group-title{font-size:17px;font-weight:800}
button{font-weight:750;background:var(--green);border-color:var(--green);color:#fff}.secondary{background:transparent;color:var(--green);border-color:var(--line)}
.recipe-title{background:none;border:0;color:var(--ink)}.star{background:none;border:0;color:var(--muted)}.star.on{color:var(--coral)}
.chip.active{background:var(--soft);border-color:var(--soft);color:var(--green)}.recipe-tag{background:var(--soft);color:var(--green)}
.notice{color:#574c32}.shopping-row.checked{background:var(--soft)}.shopping-row.checked input,input[type=checkbox]{accent-color:var(--green)}
.error,.danger{color:#a33c30}.empty-symbol{color:var(--green)}.draft{background:var(--soft)}.step-number{background:var(--soft);color:var(--green)}
.group-title{background:var(--soft)}.selection-bar{background:var(--green);color:#fff}.selection-bar button{background:#FFFEFA;color:var(--ink)}
.login h1{font-size:44px;color:var(--ink)}.empty{background:#fff;border-color:var(--line)}
input:focus,textarea:focus,select:focus,button:focus-visible,a:focus-visible{outline-color:var(--green)}.header-note{color:var(--muted)}
@media(max-width:650px){h1{font-size:29px}.brand{font-size:27px}.recipe-title strong{font-size:18px}h2{font-size:25px}.login h1{font-size:40px}}

.method-preview{background:var(--soft);border-radius:10px;padding:4px 15px 10px;margin:0 0 22px}.method-preview .method-step:last-child{border-bottom:0}
/* Accounts, Households and complete light/dark surfaces. */
fieldset{border:0;padding:0;margin:24px 0 0;min-width:0}.scope-label{margin:0 0 0 auto;font-size:11px;color:var(--muted);max-width:240px}.scope-label select{margin-top:3px;min-height:39px;padding:7px 10px;font-size:13px}.table-actions{margin:22px 0}.rename-form{margin-top:20px}.notice ul{padding-left:20px}.login #toggleAuth{margin-top:10px}.draft button{margin-top:12px}.dialog-actions{flex-wrap:wrap}.view-notes,.shopping-name,.recipe-title strong,h1,h2{overflow-wrap:anywhere}#shareLink{font-size:14px}#confirmDialog,#linkDialog{width:min(540px,94vw)}
:root[data-theme=dark]{color-scheme:dark;--paper:#18221D;--surface:#202E25;--ink:#F2F7F3;--muted:#BDCDC0;--green:#85CE97;--green-text:#85CE97;--coral:#EF9B8B;--line:#405546;--soft:#2B4132;--amber:#423b28}
[data-theme=dark] .secondary{color:var(--green);border-color:var(--line)}[data-theme=dark] button:not(.secondary):not(.recipe-title):not(.star){background:var(--green);border-color:var(--green);color:#152B1C}[data-theme=dark] .recipe-title{color:var(--ink)}[data-theme=dark] .draft,[data-theme=dark] .recipe-tag,[data-theme=dark] .group-title,[data-theme=dark] .step-number,[data-theme=dark] .shopping-row.checked{background:var(--soft);color:var(--ink)}[data-theme=dark] .empty{background:var(--surface);border-color:var(--line)}[data-theme=dark] .login h1{color:var(--ink)}[data-theme=dark] .notice{color:#f2dfaa}[data-theme=dark] .error,[data-theme=dark] .danger{color:#ffad97}[data-theme=dark] .selection-bar{background:#294B33;color:var(--ink)}[data-theme=dark] #toast{background:#DFF0E2;color:#18221D}
@media(max-width:750px){header{gap:14px;flex-wrap:wrap;padding:16px 20px}nav{gap:16px;margin-left:auto}.scope-label{max-width:none;width:100%;margin:0}.scope-label select{width:100%}.dialog-actions{justify-content:flex-start}.dialog-actions button{flex-grow:1}.section-heading{flex-wrap:wrap}.serving-row .button-row{gap:5px}.serving-row .button-row button{padding:7px;font-size:12px}}
/* Settings: one destination at a time, with clear back navigation. */
.settings-page{max-width:680px;margin:0 auto}.settings-list{border-top:1px solid var(--line);margin:28px 0}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:88px;padding:19px 4px;text-decoration:none;border-bottom:1px solid var(--line);border-radius:4px}.settings-row strong{font-size:18px;font-weight:750}.settings-row small{display:block;color:var(--muted);font-size:13px;margin-top:5px}.settings-row:hover{background:var(--soft)}.settings-chevron{font-size:28px;color:var(--green);padding:0 10px}.settings-back{display:inline-block;color:var(--green);font-weight:700;text-decoration:none;margin-bottom:24px;min-height:30px}.theme-options{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:30px 0}.theme-option{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:15px;display:grid;grid-template-columns:1fr auto;gap:13px;align-items:center;cursor:pointer;font-size:16px}.theme-option:has(input:checked){border:2px solid var(--green);padding:14px}.theme-option input[type=radio]{width:21px;min-height:21px;margin:0;padding:0;accent-color:var(--green)}.theme-swatch{grid-column:1/-1;background:#FFFEFA;border:1px solid #E0E8E1;border-radius:8px;padding:20px 13px;display:grid;gap:10px}.theme-swatch i{height:9px;background:#DDEEE0;border-radius:8px;width:72%}.theme-swatch i:last-child{width:48%;background:var(--green)}.theme-swatch.dark{background:#18221D;border-color:var(--line)}.theme-swatch.dark i{background:var(--line)}.theme-swatch.dark i:last-child{background:var(--green)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.issue-report summary{cursor:pointer;line-height:1.5}.issue-status{display:inline-block;margin-left:12px;font-size:12px;background:var(--soft);padding:3px 9px;border-radius:20px;color:var(--green)}.issue-report p{overflow-wrap:anywhere}@media(max-width:650px){.settings-list{margin-top:20px}.settings-row{min-height:84px}.settings-row strong{font-size:17px}.settings-back{margin-bottom:16px}.theme-options{gap:12px}.settings-page .serving-row{flex-wrap:wrap}}
.household-delete{border-top:1px solid var(--line);padding-top:22px;margin-top:26px}.invitation-badge{display:inline-flex;min-width:19px;height:19px;align-items:center;justify-content:center;border-radius:50%;background:var(--green);color:var(--surface);font-size:11px;padding:0 5px}.settings-row small,.serving-row small{overflow-wrap:anywhere}
/* Collection pills replace the browser dropdown. */
header nav{margin-left:auto}.collection-heading{display:flex;align-items:center;gap:28px;flex-wrap:wrap;margin:12px 0 14px}.collection-heading h1{margin:0}.collection-pills{display:inline-flex;align-items:center;gap:5px;background:var(--soft);border-radius:999px;padding:4px}.scope-pill{border:1px solid transparent;border-radius:999px;background:transparent;color:var(--muted);min-height:39px;padding:8px 19px;font-size:14px;font-weight:750}.scope-pill.is-active{background:var(--green);color:#fff;border-color:var(--green)}.collection-caption{min-height:26px}.change-household{background:transparent!important;border:0!important;color:var(--green)!important;min-height:32px;padding:3px 10px;font-size:12px;text-decoration:underline;text-underline-offset:3px;margin-left:6px}.household-choice-list{display:grid;gap:10px;margin-top:20px}.household-choice{display:flex;align-items:center;justify-content:space-between;gap:20px;text-align:left;overflow-wrap:anywhere;width:100%}.manage-household-choice{margin:0 0 15px}#householdChoiceDialog{width:min(520px,94vw)}[data-theme=dark] .scope-pill:not(.is-active){background:transparent!important;border-color:transparent!important;color:var(--muted)!important}[data-theme=dark] .scope-pill.is-active{background:var(--green)!important;color:#152B1C!important;border-color:var(--green)!important}@media(max-width:650px){.collection-heading{gap:15px;margin:10px 0 12px;align-items:flex-start;flex-direction:column}.scope-pill{padding:8px 19px}.intro>div{min-width:0;flex:1}.intro .collection-caption{font-size:13px;overflow-wrap:anywhere}.collection-pills{white-space:nowrap}.collection-caption .change-household{display:block;margin-left:0;padding-left:0;text-align:left}}
@media(max-width:380px){.intro{flex-direction:column;align-items:stretch}.intro>div{width:100%}.intro>button{align-self:flex-end}}
.shopping-clear{border-top:1px solid var(--line);padding-top:22px;margin-top:30px}
/* Shopping distinguishes items bought now from items already stocked. */
.shopping-guide{background:var(--soft);border-radius:10px;padding:14px 17px;color:var(--ink);font-size:14px;line-height:1.65;margin:0 0 22px}.shopping-guide strong{font-weight:800}.shopping-row{align-items:flex-start;padding:17px 5px}.shopping-row input[type=checkbox]{margin-top:4px}.shopping-primary{font-size:16px;line-height:1.5}.shopping-primary strong{font-weight:750}.shopping-amount{font-weight:650}.shopping-name .shopping-needed{font-size:13px;color:var(--muted);margin-top:3px}.shopping-name .shopping-note{font-size:12px;margin-top:3px}.shopping-name .shopping-source{font-size:11px;margin-top:5px}.shopping-row.checked .shopping-name{text-decoration:none;opacity:1}.shopping-row.checked .shopping-primary{text-decoration:line-through;opacity:.6}.shopping-name .bought-status{color:var(--green);font-weight:800;font-size:12px;margin-top:5px}.shopping-row.excluded{opacity:1}.home-items summary{cursor:pointer;font-weight:750}.shopping-row button{min-height:42px;flex-shrink:0;margin-top:0}.home-items .shopping-row:last-child{border-bottom:0}@media(max-width:650px){.shopping-guide{font-size:13px;padding:13px}.shopping-row{gap:10px}.shopping-row button{font-size:12px;max-width:106px;white-space:normal;line-height:1.35;padding:9px}.shopping-primary{font-size:15px}}
/* Recipe filters: one quiet toolbar, a compact panel, and a phone bottom sheet. */
.recipe-toolbar{display:block;margin-bottom:16px}.recipe-toolbar #search{max-width:none;width:100%;margin:0 0 16px}.recipe-toolbar .chips{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.recipe-filter-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px}.filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:99px;background:var(--green);color:var(--surface);font-size:12px;padding:0 6px}.active-recipe-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.applied-filter{display:inline-flex;align-items:center;gap:10px;border-color:transparent;background:var(--soft);border-radius:99px;min-height:38px;padding:7px 13px;font-size:13px}.applied-filter span{font-size:18px;line-height:1}.recipe-results{font-size:13px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#recipeFiltersDialog{position:fixed;margin:0;padding:0;width:380px;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 42px #0002;overflow:hidden}#recipeFiltersDialog[open]{display:flex;flex-direction:column}#recipeFiltersDialog::backdrop{background:transparent;backdrop-filter:none}.recipe-filter-header{display:flex;align-items:center;justify-content:space-between;padding:20px 22px 16px;flex-shrink:0}.recipe-filter-header h2{font-size:24px;margin:0}.recipe-filter-header .icon{border:0;min-width:40px;min-height:40px;padding:0}.filter-sheet-handle{display:none}#recipeFilterBody{padding:0 22px;overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin}.recipe-filter-section{padding:18px 0;border-top:1px solid var(--line)}.recipe-filter-section h3{font-size:15px;margin:0 0 12px}.recipe-filter-options{display:flex;flex-wrap:wrap;gap:8px}.filter-option{border-radius:99px;min-height:40px;padding:8px 14px;font-size:13px;font-weight:650}.filter-option.is-active{background:var(--green);border-color:var(--green);color:var(--surface)}.filter-empty{font-size:13px;margin:0}.recipe-filter-time{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--line);padding:18px 0;margin:0;font-size:15px}.recipe-filter-time small{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:5px}.recipe-filter-time input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;margin:0;border:0;border-radius:99px;width:44px;height:26px;min-width:44px;background:var(--line);transition:background .15s;cursor:pointer}.recipe-filter-time input:before{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .15s}.recipe-filter-time input:checked{background:var(--green)}.recipe-filter-time input:checked:before{transform:translateX(18px)}.recipe-filter-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px;border-top:1px solid var(--line);flex-shrink:0;background:var(--surface)}.recipe-filter-footer button{font-size:13px;min-height:44px;padding:10px 14px}.recipe-filter-footer .secondary{padding-left:0;border-color:transparent}.recipe-details{border-top:1px solid var(--line);margin-top:24px;padding-top:16px}.recipe-details summary{cursor:pointer;font-weight:700;padding:8px 0}.recipe-details>p{font-size:13px}.recipe-category-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.recipe-category-fields select{font-size:13px}.recipe-details .inline{font-size:13px;align-items:center;gap:10px}
[data-theme=dark] .filter-option.is-active{background:var(--green);border-color:var(--green);color:#152B1C}[data-theme=dark] .filter-count{color:#152B1C}[data-theme=dark] .applied-filter{background:var(--soft)}
@media(max-width:750px){#recipeFiltersDialog{top:auto!important;left:0!important;right:0;bottom:0;width:100%;max-width:100%;max-height:90vh;max-height:90dvh;border-radius:24px 24px 0 0;border-bottom:0;box-shadow:0 -12px 45px #0002}#recipeFiltersDialog::backdrop{background:#18221D66}.filter-sheet-handle{display:block;flex-shrink:0;width:38px;height:4px;border-radius:99px;background:var(--line);margin:10px auto 0}.recipe-filter-header{padding:12px 22px 16px}.recipe-filter-footer{padding-bottom:max(18px,env(safe-area-inset-bottom))}.recipe-category-fields{grid-template-columns:1fr;gap:0}.recipe-filter-options{gap:8px}.filter-option{min-height:42px}.recipe-filter-trigger{min-height:42px}.recipe-toolbar .chip{padding:9px 16px}.applied-filter{min-height:40px}}
@media(prefers-reduced-motion:reduce){.recipe-filter-time input,.recipe-filter-time input:before{transition:none}}

html.recipe-filters-open{overflow:hidden}
/* Shopping checklist and ingredient details. */
.shopping-toolbar{display:flex;align-items:center;gap:18px;margin:0 0 24px}.shopping-toolbar span,.shopping-sync{font-size:13px}.shopping-section-title{font-size:18px;margin:24px 0 8px}.shopping-section-title span{color:var(--muted)}.shopping-row{align-items:center;gap:14px}.shopping-item-main{border:0;background:transparent;color:var(--ink);text-align:left;flex:1;min-width:0;padding:14px 0;font-weight:400;border-radius:4px}.shopping-item-main strong{display:block;font-size:17px;font-weight:750;overflow-wrap:anywhere}.shopping-item-main .shopping-amount,.shopping-item-main .shopping-needed{display:block;color:var(--muted);font-size:13px;margin:4px 0 0}.shopping-item-main .shopping-change{display:block;color:#a85b20;font-size:12px;margin-top:6px}.shopping-item-actions{display:flex;align-items:center;gap:6px}.shopping-item-actions .stock-action{border:0;padding:8px 4px;font-size:12px;min-height:44px;white-space:nowrap}.shopping-item-actions .shopping-more{border:0;padding:8px 7px;font-size:24px;min-width:32px;min-height:44px}.shopping-fold{background:var(--soft);border:1px solid var(--line);border-radius:14px;margin:14px 0;padding:0 16px}.shopping-fold summary{cursor:pointer;padding:18px 0;font-weight:750;font-size:15px}.shopping-fold .shopping-row:last-child{border-bottom:0}.shopping-row.checked .shopping-item-main strong{text-decoration:line-through}.shopping-row.checked{background:transparent}.shopping-clear{text-align:center}.shopping-clear button{border:0;text-decoration:none;font-size:13px}.shopping-empty{margin:20px 0;padding:25px}.shopping-update,.shopping-review{border-radius:10px;padding:12px 16px;font-size:13px}.shopping-update{background:var(--soft);color:var(--green)}.shopping-review{background:var(--amber);color:var(--ink)}#shoppingItemDialog{width:min(520px,94vw);max-height:90vh;max-height:90dvh;overflow-y:auto}#shoppingItemDialog h2{overflow-wrap:anywhere;margin-top:0}#shoppingItemDialog .dialog-head .icon{border:0}#shoppingItemDialog h3{font-size:16px;margin-top:24px}#shoppingItemDialog .muted{font-size:13px}.shopping-breakdown-row,.shopping-breakdown-total{display:flex;justify-content:space-between;align-items:start;gap:20px;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}.shopping-breakdown-row span{min-width:0;overflow-wrap:anywhere}.shopping-breakdown-row small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.shopping-breakdown-row strong,.shopping-breakdown-total strong:last-child{flex-shrink:0}.shopping-item-edit-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.shopping-item-edit-actions #shoppingItemSave{margin-left:auto}.shopping-item-edit-actions button{font-size:13px}.shopping-item-main:focus-visible{outline:2px solid var(--green);outline-offset:3px}
[data-theme=dark] button.shopping-item-main:not(.secondary){background:transparent;border:0;color:var(--ink)}[data-theme=dark] .shopping-item-main .shopping-change{color:#ffbd85}
@media(max-width:750px){.shopping-toolbar{align-items:center;gap:12px}.shopping-toolbar span{font-size:11px}.shopping-row{gap:10px;padding:6px 0}.shopping-item-main strong{font-size:16px}.shopping-item-main .shopping-amount,.shopping-item-main .shopping-needed{font-size:12px}.shopping-item-actions{gap:0}.shopping-item-actions .stock-action{font-size:11px}.shopping-item-actions .shopping-more{min-width:25px;padding:8px 4px}.shopping-fold{padding:0 12px}.shopping-fold .shopping-item-actions .stock-action{font-size:11px}#shoppingItemDialog{position:fixed;top:auto;bottom:0;left:0;right:0;margin:0;width:100%;max-width:100%;max-height:90dvh;border-radius:24px 24px 0 0;padding:0 22px max(22px,env(safe-area-inset-bottom))}#shoppingItemDialog .filter-sheet-handle{display:block}#shoppingItemDialog .dialog-head{margin-top:22px}#shoppingItemDialog .columns{grid-template-columns:1fr 1fr}#shoppingItemDialog .shopping-item-edit-actions{position:sticky;bottom:-1px;background:var(--surface);padding:14px 0 0}.shopping-item-edit-actions #shoppingItemSave{flex:1}}

[data-theme=dark] .shopping-row button.shopping-item-main{background:transparent!important;border:0!important;color:var(--ink)!important}
.shopping-row button.shopping-item-main{max-width:none;flex:1 1 0;min-width:0;padding:14px 0;white-space:normal}.shopping-item-actions{flex-shrink:0}
.shopping-category{margin-top:18px}.shopping-category-heading{font-size:12px;letter-spacing:.02em;font-weight:750;color:var(--muted);margin:20px 0 0}.shopping-category:first-of-type{margin-top:0}#bulkShoppingDialog{width:min(760px,94vw);max-height:92vh;max-height:92dvh;overflow-y:auto}#bulkShoppingDialog h2{margin-top:0}#bulkShoppingDialog .dialog-head .icon{border:1px solid var(--line)}#bulkShoppingDialog .muted{font-size:13px}#bulkShoppingInput label{margin-bottom:8px}#bulkShoppingInput textarea{margin:0}#bulkShoppingReview h3{font-size:17px}.bulk-shopping-footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:20px}.bulk-shopping-footer button{font-size:13px}.bulk-shopping-footer #bulkShoppingAdd{margin-left:auto}.bulk-shopping-row{padding:20px 0;border-bottom:1px solid var(--line)}.bulk-shopping-row label{margin-bottom:12px}.bulk-shopping-row .columns{grid-template-columns:1fr 1fr}.bulk-shopping-row:last-child{border-bottom:0}#bulkShoppingWarnings{padding:12px 16px 12px 30px;border-radius:10px;background:var(--amber);font-size:13px}
@media(max-width:750px){#bulkShoppingDialog .filter-sheet-handle{display:none}#bulkShoppingDialog .dialog-head{margin-top:0}.bulk-shopping-footer{position:sticky;bottom:0;background:var(--surface);padding:14px 0 0}.bulk-shopping-footer button{min-height:44px}.shopping-category-heading{margin-top:20px}}

/* Favourites: consistent outlined and filled heart in both themes. */
.star{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}.favourite-heart{display:block;width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.star.on .favourite-heart{fill:currentColor}

/* Shopping progress uses bought + outstanding items; stocked items are excluded. */
.shopping-progress{padding:18px 20px;margin:0 0 24px;background:var(--soft);border-radius:14px}.shopping-progress-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.shopping-progress-heading strong{font-size:17px}.shopping-progress-heading span{color:var(--green);font-weight:700;font-variant-numeric:tabular-nums}.shopping-progress p{font-size:14px;color:var(--muted);margin:3px 0 12px}.shopping-progress progress{display:block;width:100%;height:8px;border:0;border-radius:20px;overflow:hidden;background:var(--surface);color:var(--green);accent-color:var(--green);appearance:none;-webkit-appearance:none}.shopping-progress progress::-webkit-progress-bar{background:var(--surface);border-radius:20px}.shopping-progress progress::-webkit-progress-value{background:var(--green);border-radius:20px}.shopping-progress progress::-moz-progress-bar{background:var(--green);border-radius:20px}

.recipe-photo{margin:16px 0 24px;min-width:0}.recipe-photo img{display:block;width:100%;max-height:360px;object-fit:cover;border-radius:12px}.recipe-photo figcaption{font-size:11px;line-height:1.4;color:var(--muted);margin-top:5px;font-weight:400;overflow-wrap:anywhere}.recipe-photo a{color:inherit;text-underline-offset:2px}.recipe-photo-thumb{flex:0 0 86px;width:86px;margin:0}.recipe-photo-thumb img{width:86px;height:72px;border-radius:10px}.recipe-photo-thumb figcaption{font-size:9px}.recipe-photo-editor{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0 18px;margin:18px 0}.recipe-photo-editor h3 small{font-weight:400}.recipe-photo-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.recipe-photo-option .recipe-photo-thumb{width:100%;margin-bottom:8px}.recipe-photo-option img{width:100%;height:100px}.recipe-photo-option button{width:100%;padding:8px}.photo-unavailable:before{content:'Photo unavailable';display:block;font-size:11px;color:var(--muted);padding:12px 0}#photoQuery{min-width:0}.recipe-photo-editor .button-row{margin-top:12px}@media(max-width:480px){.recipe-photo-thumb{flex-basis:62px;width:62px}.recipe-photo-thumb img{width:62px;height:62px}.recipe-photo-results{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-photo-option .recipe-photo-thumb,.recipe-photo-option img{width:100%}.recipe-row{gap:10px}.recipe-title{min-width:0;overflow-wrap:anywhere}}

/* Six beta refinements: photo selection, expanded labels and list export. */
.recipe-row button.recipe-select{position:relative;display:grid;place-items:center;flex:0 0 76px;width:76px;height:76px;min-width:0;min-height:0;padding:0;border:2px solid transparent;border-radius:12px;background:var(--soft)!important;color:var(--green)!important;overflow:visible}.recipe-select img{display:block;width:100%;height:100%;object-fit:cover;border-radius:9px}.recipe-placeholder{width:44px;height:44px;fill:none;stroke:currentColor;stroke-width:1.4;opacity:.6}.recipe-selection-tick{display:none;position:absolute;right:-5px;bottom:-5px;width:24px;height:24px;align-items:center;justify-content:center;border-radius:50%;background:var(--green);color:var(--surface);border:2px solid var(--surface);font-size:14px;line-height:1}.recipe-row button.recipe-select.is-selected{border-color:var(--green);box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--green)}.recipe-select.is-selected .recipe-selection-tick{display:flex}.pill-heart{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.chip[data-filter=favourites]{display:inline-flex;gap:6px;align-items:center}.chip[data-filter=favourites].active .pill-heart{fill:currentColor}.shopping-clear{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.shopping-clear button:disabled{cursor:default}.diet-labels{grid-column:1/-1;padding:12px 0;border:0;min-width:0}.diet-labels legend{font-size:14px;font-weight:700;margin-bottom:10px}.diet-labels .inline{margin:10px 0}.diet-labels p{margin-bottom:0}@media(max-width:480px){.recipe-row button.recipe-select{flex-basis:62px;width:62px;height:62px}.shopping-clear{gap:8px}.shopping-clear button{font-size:13px;padding:10px 12px}}

#fromRecipesDialog{width:min(600px,94vw);max-height:90dvh}#fromRecipesSearch{margin-bottom:18px}.from-recipe-row{display:flex;gap:16px;align-items:center;padding:16px 3px;border-bottom:1px solid var(--line)}.from-recipe-row button.recipe-select{position:relative;flex:0 0 62px;width:62px;height:62px;min-height:0;padding:0;border:2px solid transparent;border-radius:12px;background:var(--soft)!important;color:var(--green)!important;display:grid;place-items:center;overflow:visible}.from-recipe-row .recipe-select.is-selected{border-color:var(--green);box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--green)}.from-recipe-info{min-width:0;flex:1}.from-recipe-info strong{overflow-wrap:anywhere}.from-recipe-info small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.from-recipe-info label{margin:10px 0 0}.from-recipe-info input{width:100px;margin-top:4px}.from-recipes-footer{display:flex;justify-content:space-between;gap:12px;padding-top:18px;position:sticky;bottom:0;background:var(--surface)}@media(max-width:480px){.bulk-shopping-footer #bulkShoppingAdd{margin-left:0;flex:1 1 100%}.bulk-shopping-footer #bulkShoppingManual,.bulk-shopping-footer #bulkShoppingRecipes{flex:1 1 auto}.from-recipe-row{gap:12px}}

.recipe-selection-tick svg{display:block;width:16px;height:16px}

.recipe-main{flex:1;min-width:0}.recipe-name-row{display:flex;align-items:center;gap:3px}.recipe-name-row .recipe-title{flex:0 1 auto;min-width:0;min-height:0;padding:5px 0}.recipe-name-row .recipe-title strong{margin:0;overflow-wrap:anywhere}.recipe-metadata{display:block;color:var(--muted);font-size:13px;margin-top:6px}.recipe-row button.recipe-menu-trigger{flex:0 0 36px;width:36px;min-width:0;min-height:40px;padding:8px 5px;background:transparent!important;border:0;color:var(--muted)!important}.recipe-menu-trigger svg{display:block;width:22px;height:22px;fill:currentColor}.recipe-action-menu{position:fixed;z-index:500;padding:5px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #0002;min-width:150px}.recipe-action-menu button{width:100%;text-align:left;background:transparent!important;color:var(--ink)!important;border:0;font-size:14px}#quickLabelsDialog{width:min(440px,94vw)}#quickLabelsDialog h2{margin-top:0}#quickLabelsDialog .dialog-head p{margin:0 0 18px}#quickLabelsFields .diet-labels{margin:0;padding:8px 0}#quickLabelsFields .diet-labels label{margin:10px 0}@media(max-width:480px){.recipe-name-row{gap:0}.recipe-row button.recipe-menu-trigger{flex-basis:30px;width:30px;padding:6px 3px}.recipe-metadata{font-size:12px}}

/* Keep intrinsic portrait dimensions out of the selection-button grid. */
.recipe-select img{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;aspect-ratio:1;object-fit:cover;object-position:center}.recipe-selection-tick{z-index:1}

/* Navigation icons retain text labels and inherit the active link colour. */
header nav a{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.nav-icon{display:block;flex:0 0 19px;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}@media(max-width:750px){header nav{width:100%;margin-left:0;justify-content:space-between;gap:12px}header nav a{gap:6px;padding:10px 0;font-size:13px}.nav-icon{width:18px;height:18px;flex-basis:18px}}@media(max-width:350px){header nav{gap:8px}header nav a{font-size:12px;gap:5px}}

.chip.active,.step-number,.shopping-update,.shopping-progress-heading span{color:var(--green-text)}

/* Spinning plate for the two AI actions. Preserve the idle button footprint. */
#polish[aria-busy=true],#bulkShoppingAdd[aria-busy=true]{display:inline-grid;align-items:center;justify-items:center;opacity:.85;cursor:wait}.ai-button-size,.ai-button-loading{grid-area:1/1}.ai-button-size{visibility:hidden;white-space:nowrap}.ai-button-loading{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}.spinning-plate{display:block;width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.5;transform-origin:center;animation:plate-turn 1.6s linear infinite}.plate-rim{opacity:.4}.plate-centre{opacity:.65}.plate-accent{stroke-width:2.4;stroke-linecap:round}.spinning-plate .plate-dot{fill:currentColor;stroke:none}@keyframes plate-turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinning-plate{animation:none}}

.screenshot-controls{margin:12px 0}.screenshot-controls>button{margin-bottom:6px}.screenshot-limit{font-size:.8rem;margin:0 0 12px}#screenshotPreview:not([hidden]){display:grid;gap:10px;margin-bottom:12px}.screenshot-row{display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:6px 10px}.screenshot-row img{grid-row:1 / span 2;width:54px;height:74px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.screenshot-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.85rem}.screenshot-actions{display:flex;flex-wrap:wrap;gap:5px;grid-column:2}.screenshot-actions button{padding:6px 9px;min-height:32px}

/* Compact recipe entry: one input tab and one preparation action. */
#recipeDialog .dialog-head .eyebrow{display:none}#recipeDialog .dialog-head{margin-bottom:18px}.recipe-option-icon{display:block;flex:0 0 20px;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.recipe-input-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:5px;background:var(--soft);border-radius:18px;margin-bottom:12px}.recipe-input-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:44px;padding:9px 8px;border:0;border-radius:14px;background:transparent;color:var(--muted);font-size:15px}.recipe-input-tabs button[aria-selected=true]{background:var(--surface);color:var(--green-text)}#recipeDialog .recipe-input-card{padding:18px;margin-bottom:12px;border-radius:18px}.recipe-input-card label{margin:0 0 7px}#rough{margin:0;min-height:126px;height:140px;max-height:300px;resize:vertical}.recipe-input-card .recipe-review-hint{font-size:14px;margin:14px 0 12px}#polish,#manualRecipe{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:46px}#manualRecipe{border-radius:999px;background:var(--surface);color:var(--ink);margin-bottom:16px}#polish .recipe-option-icon{fill:currentColor;stroke:none}#aiHint{font-size:14px;margin:12px 0 0}.recipe-input-card .screenshot-controls{margin:0}#chooseScreenshot{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:100%;min-height:105px;padding:12px;border-style:dashed;border-color:var(--green);color:var(--ink);border-radius:12px}#chooseScreenshot .recipe-option-icon{width:25px;height:25px;flex-basis:25px;color:var(--green-text)}#chooseScreenshot small{font-size:13px;font-weight:400;color:var(--muted)}.screenshot-limit{font-size:12px;margin:5px 0 10px}#screenshotPreview:not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 0}.screenshot-row{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0}.screenshot-row img{width:100%;height:90px;object-fit:contain;background:var(--surface)}.screenshot-name{font-size:12px}.screenshot-actions{display:flex;justify-content:flex-start;gap:4px}.screenshot-actions button{display:inline-flex;align-items:center;justify-content:center;min-width:32px;width:32px;min-height:32px;padding:0;font-size:18px;background:var(--surface);color:var(--green-text)}@media(max-width:400px){.recipe-input-tabs button{font-size:13px;gap:6px}.recipe-input-tabs .recipe-option-icon{width:17px;height:17px;flex-basis:17px}#recipeDialog .recipe-input-card{padding:12px}.screenshot-actions{gap:3px}.screenshot-actions button{min-width:28px;width:28px;min-height:32px}#manualRecipe{font-size:14px}}

.recipe-text-hint{font-size:14px;line-height:1.5;margin:10px 0 0}

#recipeDialog #saveError:empty{display:none}#manualRecipe:not([hidden]){margin-bottom:0}@media(max-width:400px){.recipe-input-tabs button{font-size:12px;gap:4px;white-space:nowrap}.recipe-input-tabs .recipe-option-icon{width:16px;height:16px;flex-basis:16px}}

/* Both source panels share a grid track, keeping the editor stable on tab changes. */
.recipe-input-panels{display:grid;grid-template-columns:minmax(0,1fr)}.recipe-input-panels>[role=tabpanel]{grid-area:1/1;min-width:0}.recipe-input-panels>.is-inactive{visibility:hidden;pointer-events:none}#recipeScreenshotsPanel .screenshot-controls{display:flex;flex-direction:column;height:100%}#recipeScreenshotsPanel #chooseScreenshot{flex:1 0 105px}#recipeScreenshotsPanel .screenshot-limit,#recipeScreenshotsPanel #screenshotPreview{flex-shrink:0}

/* Keep editable text readable on touch screens, including fields inheriting small labels. */
@media(max-width:900px),(any-pointer:coarse){input:not([type=checkbox]):not([type=radio]),textarea,select{font-size:max(16px,1rem)!important}}

/* Compact serving amount with direct minus/plus controls. */
.servings-stepper{display:inline-flex;align-items:center;gap:5px;flex-shrink:0}.servings-stepper button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;width:44px;min-height:44px;height:44px;padding:0;border-radius:10px;font-size:22px;font-weight:600;background:var(--surface);color:var(--green-text);touch-action:manipulation}.servings-stepper input{appearance:textfield;-moz-appearance:textfield;box-sizing:border-box;flex:0 0 56px;width:56px!important;min-width:0;min-height:44px;height:44px;margin:0!important;padding:6px 4px;text-align:center;font-variant-numeric:tabular-nums}.servings-stepper input::-webkit-inner-spin-button,.servings-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.servings-stepper button:disabled{cursor:default}.plan-serving-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}.plan-serving-row>span{min-width:0;overflow-wrap:anywhere}.from-recipe-servings{margin-top:10px}.servings-label{display:block;font-size:13px;font-weight:600;margin-bottom:5px}@media(max-width:380px){.servings-stepper{gap:4px}.servings-stepper button{min-width:40px;width:40px}.servings-stepper input{flex-basis:48px;width:48px!important}}

#bulkShoppingText{min-height:126px;height:140px;max-height:300px}#bulkShoppingDialog .filter-sheet-handle{display:none}

/* Three equal recipe source tabs; icons above labels keep narrow screens legible. */
.recipe-input-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.recipe-input-tabs button{flex-direction:column;gap:5px;min-height:64px;font-size:14px;padding:8px 4px;white-space:normal;line-height:1.25}.recipe-input-tabs .recipe-option-icon{width:21px;height:21px;flex-basis:21px}.recipe-link-content{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;gap:12px}.recipe-link-content>.recipe-option-icon{width:38px;height:38px;flex-basis:38px;color:var(--green-text)}.recipe-link-content label{font-size:16px;margin:0;font-weight:750}.recipe-link-content input{margin:0;min-width:0}.recipe-link-content p{font-size:14px;margin:0;align-self:stretch}.recipe-source{font-size:13px;overflow-wrap:anywhere}.recipe-source a{color:var(--green-text)}@media(max-width:400px){.recipe-input-tabs button{font-size:11px;gap:5px;padding:7px 2px}.recipe-input-tabs .recipe-option-icon{width:19px;height:19px;flex-basis:19px}.recipe-link-content input{font-size:16px}.recipe-link-content{gap:10px}}

/* Local searchable cuisine picker; the backing select retains existing saved values. */
.cuisine-picker{min-width:0;margin-bottom:18px}.cuisine-picker>label{margin-bottom:0}.cuisine-search-box{position:relative}.cuisine-search-box input{padding-right:38px}.cuisine-search-box svg{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.cuisine-search-options{max-height:220px;overflow-y:auto;overscroll-behavior:contain;margin-top:6px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.cuisine-search-options button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;text-align:left;border:0;border-radius:0;background:var(--surface)!important;color:var(--ink)!important;padding:10px 12px;font-size:14px;font-weight:600}.cuisine-search-options button:hover,.cuisine-search-options button.is-highlighted{background:var(--soft)!important;color:var(--green-text)!important}.cuisine-search-options button[aria-selected=true]{font-weight:800}.cuisine-search-options p{padding:0 12px}.cuisine-search-count{display:block;margin-top:5px;color:var(--muted);font-size:12px}.recipe-category-fields>.cuisine-picker{margin-bottom:0}

/* Photo cards: layout 02. */
.recipe-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;border-top:0}
.recipe-list .recipe-row{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;padding:0;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.recipe-list .recipe-row button.recipe-select{flex:auto;width:100%;height:auto;aspect-ratio:4/3;border-radius:15px 15px 0 0;overflow:hidden}
.recipe-list .recipe-select img{aspect-ratio:auto;border-radius:13px 13px 0 0}
.recipe-list .recipe-selection-tick{right:9px;bottom:9px;width:30px;height:30px}
.recipe-list .recipe-main{padding:12px;min-width:0}
.recipe-list .recipe-name-row{align-items:start}
.recipe-list .recipe-name-row .recipe-title{flex:1;min-height:44px;padding:0;text-align:left}
.recipe-list .recipe-title strong{font-size:16px;line-height:22px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.recipe-list .recipe-metadata{font-size:12px;margin-top:7px}
.recipe-list .recipe-row>.star{position:absolute;right:8px;top:8px;border-radius:50%;width:40px;min-width:40px;height:40px;min-height:40px;padding:9px;background:var(--surface)!important;color:var(--green-text)!important;box-shadow:0 2px 8px #0001}
.recipe-list .recipe-menu-trigger{margin-top:-8px}
@media(max-width:1000px){.recipe-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
@media(max-width:650px){.recipe-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.recipe-list .recipe-main{padding:10px}.recipe-list .recipe-title strong{font-size:15px}.recipe-list .recipe-row{gap:0}}
/* Main destinations and a separate account control. */
header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:28px}header nav{justify-self:end;width:auto;margin:0;display:flex;gap:26px}
.account-link{display:inline-flex;align-items:center;gap:8px;text-decoration:none;min-height:44px;color:var(--muted);font-size:14px}.account-link.active{color:var(--green-text)}
#accountAvatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--soft);overflow:hidden;flex-shrink:0}#accountAvatar img{width:100%;height:100%;object-fit:cover}#accountAvatar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
#pantryBadge:not([hidden]){display:inline-flex;justify-content:center;align-items:center;min-width:18px;height:18px;border-radius:9px;background:var(--amber);color:var(--ink);font-size:11px;padding:0 4px}
.pantry-search{margin-bottom:24px}.pantry-section{margin-bottom:30px}.pantry-section h2{font-size:19px}.pantry-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.pantry-row>div:first-child{flex:1;min-width:0}.pantry-row strong{overflow-wrap:anywhere}.pantry-row small{display:block;color:var(--muted);margin-top:4px}.pantry-row.due{border-left:3px solid var(--coral);padding-left:14px}.pantry-actions{display:flex;gap:8px;flex-wrap:wrap}.pantry-actions button{font-size:13px;min-height:44px;padding:8px 12px}.pantry-hint{display:block;color:var(--green-text);font-size:12px;margin-top:5px;font-weight:600}.pantry-empty{padding:36px 20px;background:var(--soft);border-radius:16px;text-align:center}.pantry-empty p{color:var(--muted)}#pantryDialog{width:min(460px,94vw)}.pantry-summary{margin:0 0 18px;color:var(--muted)}.account-photo-preview{width:104px;height:104px;border-radius:50%;object-fit:cover;background:var(--soft);display:block;margin:20px 0}.account-photo-placeholder{display:grid;place-items:center;color:var(--green-text)}.account-photo-placeholder svg{width:60px;height:60px;fill:none;stroke:currentColor;stroke-width:1.5}
@media(max-width:750px){header{grid-template-columns:1fr auto;gap:10px;padding:18px 20px 8px}.account-link{grid-row:1;grid-column:2}.account-label{display:none}header nav{grid-row:2;grid-column:1/-1;width:100%;justify-content:space-between;gap:10px}header nav a{min-height:44px}.pantry-row{flex-wrap:wrap}.pantry-actions{gap:6px}.pantry-actions button{padding:8px 10px}}

#socialDialog{width:min(600px,94vw)}.friend-choice{padding:10px 0}#friendPicker{max-height:260px;overflow:auto}.chips>a{text-decoration:none}.pantry-row>strong{flex:1}.pantry-row>span small{display:block;color:var(--muted)}
/* Optional compact list, on phones and desktop. */
html[data-recipe-view=list] .recipe-list{display:flex;flex-direction:column;gap:0;border-top:1px solid var(--line)}
html[data-recipe-view=list] .recipe-list .recipe-row{flex-direction:row;align-items:center;gap:14px;padding:14px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
html[data-recipe-view=list] .recipe-list .recipe-row button.recipe-select{flex:0 0 76px;width:76px;height:76px;aspect-ratio:1;border-radius:12px;overflow:visible}
html[data-recipe-view=list] .recipe-list .recipe-select img{border-radius:10px}
html[data-recipe-view=list] .recipe-list .recipe-main{padding:0;flex:1}
html[data-recipe-view=list] .recipe-list .recipe-title{min-height:0}
html[data-recipe-view=list] .recipe-list .recipe-title strong{font-size:17px}
html[data-recipe-view=list] .recipe-list .recipe-row>.star{position:static;flex:0 0 40px;background:transparent!important;box-shadow:none}
html[data-recipe-view=list] .recipe-list .recipe-selection-tick{right:-4px;bottom:-4px;width:26px;height:26px}
html[data-recipe-view=list] .recipe-list .recipe-menu-trigger{margin-top:-5px}
.layout-options{display:flex;gap:12px}.layout-options button{flex:1}.layout-options [aria-pressed=true]{background:var(--soft);border-color:var(--green);color:var(--green-text)}
#accountAvatar{border:2px solid var(--green);box-shadow:0 0 0 3px var(--surface)}.account-link:hover #accountAvatar,.account-link.active #accountAvatar{box-shadow:0 0 0 3px var(--soft)}.account-link:focus-visible{outline:2px solid var(--green);outline-offset:5px;border-radius:24px}
#accountAvatar{border:1px solid var(--line);padding:2px;background:var(--surface);box-shadow:none}#accountAvatar img{border-radius:50%}.account-link:hover #accountAvatar,.account-link.active #accountAvatar{border-color:var(--green);box-shadow:none}

.whatsapp-share{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 18px;border:1px solid var(--green);border-radius:10px;background:var(--green);color:#fff;text-decoration:none;font-weight:750}.whatsapp-share svg{width:21px;height:21px;fill:currentColor;flex-shrink:0}

#receiptDialog{width:min(600px,94vw)}#receiptPreview{display:block;max-width:100%;max-height:220px;object-fit:contain;margin:16px auto}#receiptPreview[hidden]{display:none}.receipt-row{padding:14px 0;border-bottom:1px solid var(--line)}.receipt-row .inline{display:flex;gap:10px;align-items:center}.receipt-row input:not([type=checkbox]){margin:0;min-width:0;flex:1}#main .intro:has(#openReceipt){flex-wrap:wrap}#main .intro:has(#openReceipt)>div{flex:1 1 250px}

.pantry-entry-actions{display:flex;gap:10px;flex-wrap:wrap}.pantry-entry-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-color:var(--green);background:transparent;color:var(--green-text)}.pantry-entry-actions svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.cooking-review-card{width:100%;display:flex;align-items:center;gap:16px;padding:20px;background:var(--soft);border:0;color:var(--ink);text-align:left;border-radius:14px;margin:0 0 20px}.cooking-review-card>svg{width:38px;height:38px;flex:0 0 38px;fill:none;stroke:var(--green-text);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.cooking-review-card>span:nth-child(2){flex:1}.cooking-review-card strong,.cooking-review-card small{display:block}.cooking-review-card small{font-weight:400;color:var(--muted);font-size:13px;margin-top:3px}.cooking-review-card>span:last-child{font-size:28px;font-weight:400}#cookingDialog{width:min(600px,94vw)}.cooking-recipe-row{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}.cooking-recipe-row img{width:70px;height:70px;border-radius:10px;object-fit:cover}.cooking-recipe-row>div{flex:1;min-width:0}.cooking-recipe-row label{margin:0 0 8px}.cooking-amount-row{padding:18px 0;border-bottom:1px solid var(--line)}.cooking-amount-row .inline{margin:12px 0}.cooking-remaining{display:flex;align-items:center;gap:10px}.cooking-remaining label{margin-bottom:8px;max-width:160px}.cooking-footer{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px;position:sticky;bottom:0;padding:12px 0;background:var(--surface)}@media(max-width:480px){.pantry-entry-actions{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr)}.pantry-entry-actions button{font-size:12px;padding:10px;white-space:normal}.cooking-review-card{padding:16px;gap:12px}}

/* 0.3.0: shared page and dialog geometry */
main:has(#pantrySearch),main:has(#search),main:has(#addShoppingItem){max-width:1050px}
.pantry-entry-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:470px;max-width:100%;flex:0 1 470px!important}
.pantry-entry-actions button{background:var(--green);color:#fff;min-height:48px;white-space:normal;line-height:1.3;padding:10px 14px;font-size:14px}
.pantry-summary{font-size:13px;margin:0 0 24px;line-height:1.6}.pantry-search{margin-bottom:16px}
.pantry-row>.pantry-item-main{flex:1;min-width:0}
#pantryDialog,#receiptDialog,#cookingDialog,#copyShoppingDialog{width:min(760px,94vw);max-height:92vh;max-height:92dvh;padding:30px;overflow-y:auto}
#pantryDialog .dialog-head,#receiptDialog .dialog-head,#cookingDialog .dialog-head,#copyShoppingDialog .dialog-head{margin-bottom:18px}
#pantryDialog .dialog-head h2,#receiptDialog .dialog-head h2,#cookingDialog .dialog-head h2,#copyShoppingDialog .dialog-head h2{margin-top:6px}
#receiptFile::file-selector-button{font:inherit;font-weight:700;background:var(--green);color:#fff;border:0;border-radius:8px;padding:10px 16px;margin-right:12px;cursor:pointer}
#receiptFile{padding:8px}
.appearance-content>p{font-size:15px;color:var(--muted)}.appearance-content>h2{margin-top:40px}
.layout-preview{grid-column:1/-1;border:1px solid var(--line);border-radius:8px;padding:12px;height:92px;display:grid;gap:8px;background:var(--paper)}
.layout-preview.grid{grid-template-columns:1fr 1fr}.layout-preview i{display:flex;gap:6px;min-width:0}.layout-preview.grid i{flex-direction:column;gap:3px}.layout-preview b{display:block;background:#b9d9bc;border-radius:3px;flex:1}.layout-preview em{display:block;background:var(--green);border-radius:3px;height:4px;width:65%}.layout-preview.list i{align-items:center}.layout-preview.list b{flex:0 0 24px;height:16px}
.ingredient-icon{width:36px;height:36px;flex:0 0 36px;object-fit:contain;display:block}.shopping-row{gap:12px}
@media(max-width:750px){.pantry-entry-actions{width:100%;flex-basis:100%!important}.pantry-entry-actions button{font-size:13px;padding:10px 8px}.pantry-summary{font-size:11px}.ingredient-icon{width:30px;height:30px;flex-basis:30px}.shopping-row{gap:8px}#pantryDialog,#receiptDialog,#cookingDialog,#copyShoppingDialog{padding:20px}.appearance-content>p{font-size:14px}}

/* 0.3.1: reserve the same scrollbar space on short and long pages. */
html{overflow-y:scroll}
@supports(scrollbar-gutter:stable){html{overflow-y:auto;scrollbar-gutter:stable}}
.appearance-content .theme-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.appearance-content .theme-option{height:160px;min-width:0;grid-template-rows:92px 24px;gap:12px;padding:15px;border-width:1px}
.appearance-content .theme-option:has(input:checked){padding:15px;border-width:1px;box-shadow:inset 0 0 0 1px var(--green)}
.appearance-content .theme-swatch,.appearance-content .layout-preview{height:92px;min-height:0;width:100%;margin:0}

/* 0.3.3 collection and action polish */
.collection-heading{margin-top:12px}.shopping-entry-actions{display:flex;gap:10px;flex-wrap:wrap}.shopping-entry-actions button{min-height:46px}:root[data-theme=dark] .cooking-review-card{background:var(--soft);color:var(--ink)}:root[data-theme=dark] .cooking-review-card small{color:var(--ink)}
@media(max-width:650px){.shopping-entry-actions{width:100%}.shopping-entry-actions button{flex:1}.intro:has(.shopping-entry-actions){flex-wrap:wrap}}
/* Keep every cooking-card detail legible on the dark-mode green surface. */
:root[data-theme=dark] .cooking-review-card{background:#85CE97;color:#000}
:root[data-theme=dark] .cooking-review-card strong,
:root[data-theme=dark] .cooking-review-card small,
:root[data-theme=dark] .cooking-review-card>span{color:#000}
:root[data-theme=dark] .cooking-review-card>svg{stroke:#000;color:#000}
/* Pantry actions follow the shopping page's primary/secondary hierarchy. */
.pantry-entry-actions #openReceipt{background:transparent;color:var(--green-text);border-color:var(--line)}
@media(max-width:750px){
 #main .intro:has(#openReceipt){display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;gap:16px}
 #main .intro:has(#openReceipt)>div:first-child{flex:1 1 0;min-width:0;width:auto}
 #main .intro .pantry-entry-actions{display:grid;grid-template-columns:minmax(0,1fr);width:44%;flex:0 0 44%!important;gap:10px}
 .pantry-entry-actions button{width:100%;min-height:46px;font-size:13px;padding:10px 8px}
 .pantry-entry-actions svg{width:18px;height:18px;flex:0 0 18px}
 #main .intro:has(#openReceipt) .scope-pill{padding:8px 10px;font-size:12px}
}
@media(max-width:380px){
 #main .intro:has(#openReceipt){gap:10px}
 #main .intro:has(#openReceipt) .scope-pill{padding:8px 7px;font-size:11px}
 #main .intro:has(#openReceipt) .collection-pills{gap:2px;padding:3px}
 .pantry-entry-actions button{font-size:12px}
}

/* Shared collection-page action sizing. */
#main .intro:has(.page-actions){display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;gap:24px}
#main .intro:has(.page-actions)>div:first-child{flex:1 1 0;min-width:0;width:auto}
#main .intro .page-actions{display:grid;grid-template-columns:repeat(2,170px);gap:10px;width:auto;max-width:none;flex:0 0 auto!important}
#main .intro .page-actions:not(:has(button+button)){grid-template-columns:170px}
#main .intro .page-actions button{display:flex;align-items:center;justify-content:center;gap:7px;width:170px;height:44px;min-height:44px;margin:0;padding:10px 14px;font-size:14px;font-weight:750;line-height:1.25;border-radius:10px;white-space:normal;flex:none}
#main .intro .page-actions svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:750px){
 #main .intro:has(.page-actions){gap:16px}
 #main .intro .page-actions,#main .intro .page-actions:not(:has(button+button)){grid-template-columns:minmax(0,1fr);width:44%;flex:0 0 44%!important}
 #main .intro .page-actions button{width:100%;height:44px;min-height:44px;padding:8px;font-size:13px}
 #main .intro:has(.page-actions) .scope-pill{padding:8px 10px;font-size:12px}
}
@media(max-width:380px){
 #main .intro:has(.page-actions){gap:10px}
 #main .intro:has(.page-actions) .scope-pill{padding:8px 7px;font-size:11px}
 #main .intro:has(.page-actions) .collection-pills{gap:2px;padding:3px}
 #main .intro .page-actions button{font-size:12px}
}
/* Photo height follows the shared ratio, never the remaining card space. */
html:not([data-recipe-view=list]) .recipe-list .recipe-row button.recipe-select{flex:0 0 auto;aspect-ratio:4/3;width:100%;height:auto}

/* Yumple bowl and lightning brand mark. */
.brand{display:inline-flex;align-items:center;gap:7px}.brand .brand-mark{display:block;width:27px;height:33px;flex:0 0 27px;fill:var(--coral)}.login>.eyebrow{letter-spacing:.5px;font-size:12px}
@media(max-width:650px){.brand .brand-mark{width:24px;height:29px;flex-basis:24px}}

/* Compact, optically centred header branding with its tagline. */
header .brand-lockup{display:flex;flex-direction:column;align-items:flex-start;gap:3px;letter-spacing:-1px;line-height:1.15}
header .brand-lockup .brand-name{display:inline-flex;align-items:center;gap:5px;color:var(--ink);font:inherit;line-height:1.15}
.brand .brand-mark{width:19px;height:23px;flex:0 0 19px;align-self:center}
header .brand-lockup .brand-tagline{font-family:Nunito,Arial,sans-serif;font-size:10px;font-weight:500;line-height:1.4;letter-spacing:0;color:var(--muted);white-space:nowrap}
@media(max-width:650px){.brand .brand-mark{width:17px;height:21px;flex-basis:17px}header .brand-lockup .brand-tagline{font-size:9px}}

.bought-pantry-action{padding:12px 0}.bought-pantry-row{display:flex;align-items:center;gap:12px;padding:14px 0;margin:0;border-bottom:1px solid var(--line);font-size:14px}.bought-pantry-row span{flex:1;min-width:0;overflow-wrap:anywhere}.bought-pantry-row small{display:block}#boughtPantryDialog{width:min(760px,94vw);max-height:92dvh;padding:30px}@media(max-width:750px){#boughtPantryDialog{padding:20px}}

.receipt-entry-actions{display:flex;gap:12px;margin:16px 0}.receipt-entry-actions button{width:150px;min-height:46px}.receipt-entry-actions #uploadReceipt{background:transparent;color:var(--green-text);border-color:var(--line)}@media(max-width:480px){.receipt-entry-actions button{width:auto;flex:1;padding:10px}}

/* Password recovery follows the shared dialog dimensions. */
.password-reset-dialog{width:760px;max-width:94vw;padding:30px}
.password-reset-dialog .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.password-reset-dialog .dialog-heading h2{margin:0}
.password-reset-dialog form{display:grid;gap:16px}
.password-reset-dialog label{display:grid;gap:8px}
.password-reset-dialog [hidden]{display:none!important}
#forgotPassword{justify-self:start;margin:0;text-align:left;border:0;background:transparent;color:var(--green-text);padding:0;min-height:44px;font-size:14px;font-weight:400;text-decoration:none}
@media(max-width:750px){.password-reset-dialog{padding:20px}}

#forgotPassword:hover,#forgotPassword:focus-visible{text-decoration:underline}

#googleAuthOption{width:100%;margin:14px 0 0}
.auth-divider{text-align:center;color:var(--muted);font-size:13px;margin:8px 0}
.google-auth-button{width:100%;display:flex;align-items:center;justify-content:center;gap:12px}
#disconnectGoogleForm{display:grid;gap:14px;max-width:420px}

/* A moving food backdrop around the existing Yumple welcome. */
#login.login{position:relative;isolation:isolate;display:grid;place-items:center;min-height:100svh;width:100%;max-width:none;margin:0;padding:48px 24px;overflow:hidden}
#login[hidden]{display:none!important}
.login-card{position:relative;z-index:1;width:min(100%,460px);padding:38px 36px;background:var(--surface);border:1px solid var(--line);border-radius:26px;box-shadow:0 22px 80px #20372b18}
.login-card>.eyebrow{letter-spacing:.5px;font-size:12px}

.login-card #toggleAuth{width:100%}
.login-card #googleAuthOption[hidden]{display:none!important}
.login-scene{position:absolute;z-index:0;inset:0;overflow:hidden;background:radial-gradient(ellipse at 15% 20%,#dcebdc 0,transparent 50%),radial-gradient(ellipse at 95% 85%,#f6ddd4 0,transparent 50%);pointer-events:none}
.login-food-tile{position:absolute;width:210px;height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;border-radius:26px;background:#e3eddc;box-shadow:0 12px 28px #2936320d;animation:yumple-drift 14s ease-in-out infinite alternate;transform:rotate(var(--tilt));color:#36563d;font-weight:700;font-size:17px;letter-spacing:-.2px}
.login-food-tile span{max-width:100%;padding:0 18px;text-align:center;line-height:1.3;text-wrap:balance}
.login-food-tile img{width:110px;height:110px;object-fit:contain}
.tile-0{left:5%;top:1%;--tilt:-12deg}
.tile-1{left:24%;top:6%;background:#f8edcc;--tilt:9deg;animation-delay:-5s}
.tile-2{right:5%;top:1%;background:#dbe7ca;--tilt:12deg;animation-delay:-8s}
.tile-3{right:22%;top:30%;background:#f5dece;--tilt:-8deg;animation-delay:-3s}
.tile-4{left:3%;top:48%;background:#f2d7ce;--tilt:8deg;animation-delay:-7s}
.tile-5{left:22%;top:76%;background:#dbe8d8;--tilt:-10deg;animation-delay:-10s}
.tile-6{right:1%;top:66%;background:#f1e9d7;--tilt:-10deg;animation-delay:-2s}
.tile-7{right:22%;bottom:48px;background:#efd8d4;--tilt:7deg;animation-delay:-6s}
@keyframes yumple-drift{from{transform:translateY(-12px) rotate(var(--tilt))}to{transform:translateY(16px) rotate(calc(var(--tilt) + 4deg))}}
[data-theme=dark] .login-scene{background:radial-gradient(ellipse at 15% 20%,#284331 0,transparent 50%),radial-gradient(ellipse at 95% 85%,#40332c 0,transparent 50%)}
[data-theme=dark] .login-food-tile{filter:brightness(.65);box-shadow:none}
[data-theme=dark] .login-card{box-shadow:0 22px 80px #0005}
@media(max-width:900px){.login-food-tile{width:170px;height:200px;opacity:.7}.tile-1,.tile-3,.tile-5,.tile-7{display:none}}
@media(max-width:500px){#login.login{padding:16px 18px}.login-card{padding:24px;border-radius:22px}.login-card form{margin-top:24px}.login-food-tile{width:125px;height:160px;opacity:.3}.login-food-tile img{width:80px;height:80px}.login-food-tile span{display:none}.tile-0{left:-45px;top:2%}.tile-2{right:-45px;top:8%}.tile-4{left:-50px;top:80%}.tile-6{right:-45px;top:78%}}
@media(prefers-reduced-motion:reduce){.login-food-tile{animation:none}}

#googleContinueView{margin-top:28px}
#googleContinueView[hidden]{display:none!important}
#googleContinueForm{display:grid;gap:14px}
.google-verified-email{font-size:14px;font-weight:700;overflow-wrap:anywhere}
#googleContinueView>button{margin-top:12px}

/* Happy bowl brand: broad, shallow silhouette with subtle closed eyes. */
.login-card>.brand,header .brand-lockup .brand-name{color:var(--green)}
.brand .brand-mark{width:38px;height:29px;flex:0 0 38px;fill:none}
@media(max-width:650px){.brand .brand-mark{width:31px;height:24px;flex-basis:31px}}

@media(min-width:901px) and (max-width:1500px){.tile-7{right:calc(50% - 404px);width:150px;height:190px}.tile-7 img{width:90px;height:90px}}

/* Compact in-app branding; login branding keeps its existing size. */
header .brand-lockup{font-size:30px}header .brand-lockup .brand-mark{width:31.5px;height:24.1px;flex-basis:31.5px}
@media(max-width:650px){header .brand-lockup{font-size:27px}header .brand-lockup .brand-mark{width:25.73px;height:19.92px;flex-basis:25.73px}}
.recipe-portions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0}.recipe-portions label{margin:0}

/* Mobile feature strip reuses the desktop cards and their original artwork. */
@media(max-width:650px){
 #login.login{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px 18px;background:radial-gradient(ellipse at 15% 20%,#dcebdc 0,transparent 60%),radial-gradient(ellipse at 95% 85%,#f6ddd4 0,transparent 60%)}
 #login .login-scene{position:relative;inset:auto;display:flex;gap:12px;flex:0 0 auto;width:calc(100% + 36px);max-width:calc(100% + 36px);margin:0 -18px;padding:6px 18px 12px;overflow-x:auto;overflow-y:hidden;background:none;pointer-events:auto;scroll-snap-type:x proximity;scroll-padding-inline:18px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 #login .login-food-tile{position:relative;inset:auto;display:flex;flex:0 0 144px;width:144px;height:140px;padding:10px 8px;gap:7px;border-radius:18px;animation:none;transform:none;opacity:1;scroll-snap-align:start;box-shadow:0 4px 10px #2936320a;font-size:13px}
 #login .login-food-tile img{width:74px;height:74px}
 #login .login-food-tile span{display:block;padding:0 3px;line-height:1.25}
 #login .login-card{flex:0 0 auto}
 [data-theme=dark] #login.login{background:radial-gradient(ellipse at 15% 20%,#284331 0,transparent 60%),radial-gradient(ellipse at 95% 85%,#40332c 0,transparent 60%)}
 [data-theme=dark] #login .login-scene{background:none}
 [data-theme=dark] #login .login-food-tile{filter:brightness(.8)}
}


/* 0.3.34 — mobile-only illustrated feature carousel below the unchanged login form. */
.yumple-mobile-showcase{display:none}
@media(max-width:650px){
  #login.login{justify-content:flex-start;gap:12px;min-height:100svh;overflow-x:clip;overflow-y:visible;padding:16px 18px 28px}
  #login .login-scene{display:none}
  #login .login-card{flex:0 0 auto;order:0}
  #login .yumple-mobile-showcase{display:block;order:1;flex:0 0 auto;width:100%;max-width:460px;margin:0;overflow:visible}
  #login .yfc-stage{height:177px;position:relative;isolation:isolate;width:100%;touch-action:pan-y;perspective:800px}
  #login .yfc-card{appearance:none;position:absolute;top:7px;left:50%;width:183px;height:158px;padding:8px 10px 12px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:0;min-height:0;border:1px solid rgba(80,105,91,.10);border-radius:23px;box-shadow:0 9px 23px #29363216;background:#e8f2e1;color:#2d5137;opacity:1;will-change:transform;transition:transform 650ms cubic-bezier(.22,.75,.26,1),box-shadow 650ms ease,background 650ms ease;backface-visibility:hidden;-webkit-backface-visibility:hidden;cursor:pointer;transform-origin:center center;line-height:1.15;overflow:hidden;-webkit-tap-highlight-color:transparent}
  #login .yfc-card.yfc-import{background:#fff2cf}
  #login .yfc-card.yfc-serve{background:#e9f3e2}
  #login .yfc-card.yfc-shop{background:#e6f1df}
  #login .yfc-card[data-position="left"]{z-index:1;transform:translate(calc(-50% - 111px),12px) rotate(-10deg) scale(.80);box-shadow:0 6px 15px #29363214}
  #login .yfc-card[data-position="right"]{z-index:1;transform:translate(calc(-50% + 111px),12px) rotate(10deg) scale(.80);box-shadow:0 6px 15px #29363214}
  #login .yfc-card[data-position="center"]{z-index:3;transform:translate(-50%,0) rotate(0deg) scale(1);box-shadow:0 13px 30px #29363223}
  #login .yfc-title{position:relative;z-index:2;display:block;font-family:Nunito,Arial,sans-serif;font-size:16px;line-height:1.08;font-weight:850;letter-spacing:-.45px;text-align:center;max-width:170px;text-wrap:balance}
  #login .yfc-subtitle{display:block;font-weight:700;font-size:11px;margin-top:3px;color:#58705b;letter-spacing:-.1px}
  #login .yfc-figure{display:block;position:relative;width:100%;height:94px;flex:1;animation:yfc-gentle 18s ease-in-out infinite alternate}
  #login .yfc-portions{position:absolute;z-index:2;left:50%;top:3px;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;width:100px;height:26px;border-radius:99px;background:#fffef8;box-shadow:0 3px 8px #2936321a;padding:0 12px;color:#287d43;font-size:17px;font-weight:900}
  #login .yfc-portions b{font-size:15px;color:#263c30}
  #login .yfc-veg{position:absolute;object-fit:contain;display:block}
  #login .yfc-veg-a{width:66px;height:66px;left:51px;top:24px;transform:rotate(-8deg)}
  #login .yfc-veg-b{width:42px;height:42px;left:25px;top:47px;transform:rotate(13deg)}
  #login .yfc-spark{position:absolute;font-size:17px;font-weight:800;color:#e7943e}
  #login .yfc-spark-left{left:118px;top:42px}
  #login .yfc-import-figure{margin-top:0}
  #login .yfc-recipe-sheet{position:absolute;width:63px;height:77px;left:calc(50% - 31px);top:5px;border:2.5px solid #52695b;border-radius:9px;background:#fffdfa;transform:rotate(3deg);box-shadow:0 3px 8px #29363216;display:flex;flex-direction:column;align-items:center}
  #login .yfc-recipe-sheet svg{width:39px;height:37px;flex:0 0 auto}
  #login .yfc-recipe-sheet i{width:42px;height:3px;margin-top:5px;background:#92b696;border-radius:2px}
  #login .yfc-recipe-sheet i:last-child{width:26px;align-self:flex-start;margin-left:10px}
  #login .yfc-import-link,#login .yfc-import-camera{position:absolute;z-index:2;top:38px;width:36px;height:36px;display:grid;place-items:center;border:2px solid #52695b;background:#fffef9;border-radius:10px;box-shadow:0 3px 6px #29363215;color:#2e7542}
  #login .yfc-import-link{left:25px;transform:rotate(-12deg)}
  #login .yfc-import-camera{right:23px;transform:rotate(13deg)}
  #login .yfc-import-link svg,#login .yfc-import-camera svg{width:23px;height:23px}
  #login .yfc-import-tomato{width:35px;height:35px;left:8px;top:65px}
  #login .yfc-shop-leaf{width:58px;height:58px;top:7px;left:29px;transform:rotate(-20deg)}
  #login .yfc-shop-carrot{width:56px;height:56px;top:10px;right:20px;transform:rotate(20deg)}
  #login .yfc-grocery-bag{position:absolute;z-index:1;top:10px;left:calc(50% - 53px);width:106px;height:90px}
  #login .yfc-dots{display:flex;justify-content:center;align-items:center;gap:7px;margin:0 auto;padding:0 0 4px}
  #login .yfc-dot{display:block;min-width:0;width:9px;height:9px;min-height:0;border:0;border-radius:99px;padding:0;background:#d3e5cb;box-shadow:none;transition:width .6s ease,background .6s ease}
  #login .yfc-dot.is-active{width:18px;background:#34834a}
  #login .yfc-card:focus-visible,#login .yfc-dot:focus-visible{outline:2px solid #34834a;outline-offset:3px}
  [data-theme=dark] #login .yfc-card{filter:brightness(.86);color:#263c30}
  [data-theme=dark] #login .yfc-dot:not(.is-active){background:#516855}
}
@media(max-width:370px){
  #login .yfc-stage{height:167px}
  #login .yfc-card{width:173px;height:148px}
  #login .yfc-card[data-position="left"]{transform:translate(calc(-50% - 100px),12px) rotate(-10deg) scale(.78)}
  #login .yfc-card[data-position="right"]{transform:translate(calc(-50% + 100px),12px) rotate(10deg) scale(.78)}
}
/* Keep the illustrations calm during a swipe and fade in the card that wraps behind. */
@media(max-width:650px){
 #login .yumple-mobile-showcase.yfc-is-moving .yfc-figure{animation-play-state:paused}
 #login .yfc-card.yfc-wrap{transition:none!important;animation:yfc-wrap-in 650ms ease both}
}
@keyframes yfc-wrap-in{from{opacity:0}to{opacity:1}}
@keyframes yfc-gentle{from{transform:translateY(-1px)}to{transform:translateY(2px)}}
@media(prefers-reduced-motion:reduce){#login .yfc-card{transition:none!important}#login .yfc-figure{animation:none!important}}


/* 0.3.35: Mobile login + illustrated carousel fit on one common phone viewport.
   Only affect the mobile sign-in experience; never reduce input tap areas below 44px. */
@media(max-width:650px){
  #login.login{gap:7px;padding:9px 14px 12px;justify-content:center}
  #login .login-card{width:min(100%,430px);padding:17px 20px 10px;border-radius:22px}
  #login .login-card>.brand{font-size:28px;line-height:1.12}
  #login .login-card>.eyebrow{font-size:11px;line-height:1.25;margin:6px 0 8px}
  #login .login-card h1{font-size:32px;line-height:1.12;margin:8px 0 10px}
  #login .login-card form{margin-top:10px}
  #login .login-card form label{font-size:12px;line-height:1.2;margin-bottom:9px}
  #login .login-card form label input{min-height:44px;height:44px;margin-top:5px;padding:8px 11px;font-size:16px}
  #login #forgotPassword{min-height:32px;padding:0;font-size:12px;margin-top:0}
  #login #authHelp:empty,#login #loginError:empty{display:none}
  #login #authHelp,#login #loginError{margin:2px 0 5px;line-height:1.2}
  #login #authSubmit{min-height:44px;margin-top:1px;padding:9px 12px;font-size:14px}
  #login #googleAuthOption{margin:6px 0 0}
  #login .auth-divider{font-size:12px;line-height:1;margin:6px 0}
  #login .google-auth-button{min-height:44px;padding:8px 12px;font-size:14px}
  #login #toggleAuth{min-height:40px;border:0;padding:8px 6px;background:transparent;box-shadow:none;font-size:13px}
  #login .yumple-mobile-showcase{margin:2px auto 0}
  #login .yfc-stage{height:149px}
  #login .yfc-card{width:171px;height:132px;top:5px;padding:7px 7px 9px;border-radius:20px}
  #login .yfc-card[data-position="left"]{transform:translate(calc(-50% - 98px),10px) rotate(-9deg) scale(.79)}
  #login .yfc-card[data-position="right"]{transform:translate(calc(-50% + 98px),10px) rotate(9deg) scale(.79)}
  #login .yfc-figure{height:75px;min-height:0}
  #login .yfc-title{font-size:14px;line-height:1.05;font-weight:850;letter-spacing:-.3px}
  #login .yfc-subtitle{font-size:10.5px;line-height:1.15;font-weight:650;margin-top:4px;color:#56715e}
  #login .yfc-recipe-sheet{width:55px;height:63px;left:calc(50% - 27px);top:2px}
  #login .yfc-recipe-sheet svg{width:33px;height:30px}
  #login .yfc-recipe-sheet i{width:35px;height:2px;margin-top:4px}
  #login .yfc-recipe-sheet i:last-child{width:22px}
  #login .yfc-import-link,#login .yfc-import-camera{top:30px;width:31px;height:31px;border-radius:9px}
  #login .yfc-import-link{left:22px}
  #login .yfc-import-camera{right:22px}
  #login .yfc-import-tomato{width:27px;height:27px;top:52px}
  #login .yfc-portions{top:1px;height:23px;width:87px;font-size:14px;padding:0 10px}
  #login .yfc-portions b{font-size:13px}
  #login .yfc-veg-a{width:53px;height:53px;top:20px;left:51px}
  #login .yfc-veg-b{width:34px;height:34px;top:41px;left:25px}
  #login .yfc-shop-leaf{width:44px;height:44px;top:4px}
  #login .yfc-shop-carrot{width:46px;height:46px;top:5px}
  #login .yfc-grocery-bag{top:4px;width:91px;height:77px;left:calc(50% - 45px)}
  #login .yfc-dots{padding:0;gap:6px}
}
@media(max-width:370px){
  #login.login{padding:7px 11px 9px;gap:4px}
  #login .login-card{padding:14px 16px 8px}
  #login .login-card>.brand{font-size:26px}
  #login .login-card h1{font-size:30px;margin:7px 0 8px}
  #login .yfc-stage{height:137px}
  #login .yfc-card{height:122px;width:159px;top:4px}
  #login .yfc-card[data-position="left"]{transform:translate(calc(-50% - 86px),10px) rotate(-9deg) scale(.78)}
  #login .yfc-card[data-position="right"]{transform:translate(calc(-50% + 86px),10px) rotate(9deg) scale(.78)}
  #login .yfc-title{font-size:13px}
  #login .yfc-subtitle{font-size:10px}
}
@media(max-width:650px) and (max-height:760px){
  #login.login{gap:4px;padding-top:6px;padding-bottom:7px}
  #login .login-card{padding-top:12px;padding-bottom:6px}
  #login .login-card>.eyebrow{margin:4px 0 5px}
  #login .login-card h1{margin:6px 0 7px;font-size:30px}
  #login .login-card form{margin-top:7px}
  #login .login-card form label{margin-bottom:7px}
  #login #forgotPassword{min-height:27px}
  #login .auth-divider{margin:3px 0}
  #login .yumple-mobile-showcase{margin:0}
  #login .yfc-stage{height:137px}
  #login .yfc-card{top:3px;height:122px}
  #login .yfc-figure{height:67px}
}
@media(prefers-reduced-motion:reduce){#login .yfc-wrap{animation:none!important}}

/* 0.3.37: separate carousel from form and use stable compositor transforms. */
@media(max-width:650px){
 #login.login{gap:24px}
 #login .yumple-mobile-showcase{margin:0 auto}
 #login .yfc-stage{perspective:none}
 #login .yfc-figure{animation:none!important;transform:none}
 #login .yfc-card{margin-left:-85.5px;transition:transform 420ms cubic-bezier(.22,.75,.26,1),opacity 220ms ease;will-change:transform,opacity}
 #login .yfc-card[data-position="left"]{transform:translate3d(-98px,10px,0) rotate(-9deg) scale(.79)}
 #login .yfc-card[data-position="right"]{transform:translate3d(98px,10px,0) rotate(9deg) scale(.79)}
 #login .yfc-card[data-position="center"]{transform:translate3d(0,0,0) rotate(0deg) scale(1)}
 #login .yfc-card.yfc-reposition{transition:none!important;animation:none!important;opacity:0!important}
 #login .yfc-dot{transition:background 220ms ease}
}
@media(max-width:370px){
 #login .yfc-card{margin-left:-79.5px}
 #login .yfc-card[data-position="left"]{transform:translate3d(-86px,10px,0) rotate(-9deg) scale(.78)}
 #login .yfc-card[data-position="right"]{transform:translate3d(86px,10px,0) rotate(9deg) scale(.78)}
}
/* Use the phone viewport with modest edge padding, including landscape safe areas. */
@media(max-width:650px){
 #login.login{min-height:100svh;min-height:100dvh;justify-content:flex-start;padding:12px 14px 14px;padding-top:max(12px,env(safe-area-inset-top));padding-right:max(14px,env(safe-area-inset-right));padding-bottom:max(14px,env(safe-area-inset-bottom));padding-left:max(14px,env(safe-area-inset-left));gap:24px}
 #login .yumple-mobile-showcase{margin: auto auto 0}
}
@media(max-width:650px){
 #login.login.keyboard-open{justify-content:flex-start;gap:0}
 #login.keyboard-open .yumple-mobile-showcase{display:none!important}
 #login.keyboard-open .login-card{scroll-margin-block:12px}
 #login.keyboard-open input{scroll-margin-block:18px}
}
/* Relax the mobile form without sacrificing usable controls on short screens. */
@media(max-width:650px){
 #login .login-card{padding:22px 20px 16px}
 #login .login-card>.eyebrow{margin:8px 0 12px}
 #login .login-card h1{margin:12px 0 16px}
 #login .login-card form{margin-top:16px}
 #login .login-card form label{font-size:13px;line-height:1.3;margin-bottom:14px}
 #login .login-card form label input{margin-top:7px}
 #login #forgotPassword{margin-top:3px;min-height:32px}
 #login #googleAuthOption{margin-top:9px}
 #login .auth-divider{margin:8px 0}
 #login #toggleAuth{min-height:44px;padding:10px 6px}
}
@media(max-width:370px){#login .login-card{padding:20px 16px 14px}}

@media(max-width:650px){
 #login .yfc-card.yfc-pantry{background:#f5ddd2}
 #login .yfc-pantry-shelf{position:absolute;width:96px;height:76px;left:calc(50% - 48px);top:0}
 #login .yfc-pantry-tomato{width:31px;height:31px;left:27px;top:43px}
 #login .yfc-pantry-leaf{width:33px;height:33px;right:31px;top:10px}
}

/* Recipe views share one visual hierarchy; filters remain a separate action. */
.recipe-view-controls{display:flex;align-items:center;gap:12px;justify-content:space-between;width:100%}
.recipe-views{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.recipe-view-controls .chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;min-height:36px;line-height:1.25;border:1px solid var(--line);background:var(--surface);color:var(--green-text);text-decoration:none;font-weight:700}
.recipe-view-controls .chip.active{background:var(--soft);border-color:var(--soft)}
.recipe-view-controls .pill-people{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.recipe-view-controls .recipe-filter-trigger{margin-left:auto;flex-shrink:0}
.shared-recipe-views{margin-bottom:24px}
@media(max-width:650px){
 .recipe-view-controls{flex-wrap:wrap;gap:10px}
 .recipe-views{width:100%;flex-wrap:nowrap;gap:6px}
 .recipe-view-controls .chip{padding:8px 10px;font-size:12px}
 .recipe-view-controls .shared-count{font-size:11px}
 .recipe-view-controls .shared-count:empty{display:none}
 .recipe-view-controls .recipe-filter-trigger{margin-left:auto}
}
@media(max-width:360px){.recipe-view-controls .chip{padding:8px;font-size:11px;gap:4px}.recipe-view-controls .pill-people,.recipe-view-controls .pill-heart{width:15px;height:15px}}

/* Compact, explicit destructive list actions, away from the add controls. */
.list-clear-actions{display:flex;justify-content:flex-end;border-top:1px solid var(--line);padding-top:18px;margin-top:28px}
.list-clear-actions .list-clear-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;min-height:44px;padding:10px 15px;border:1px solid #cda59f;border-radius:12px;background:transparent;color:#a33c30;font-size:13px;font-weight:700}
.list-clear-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.list-clear-actions .list-clear-button:hover{background:#a33c300c}
[data-theme=dark] .list-clear-actions .list-clear-button{color:#f1a99d;border-color:#93685f}
.list-clear-actions .list-clear-button:disabled{opacity:.5;cursor:wait}

.list-clear-actions .list-clear-button,.list-clear-actions .list-clear-button:hover,.list-clear-actions .list-clear-button:focus-visible{text-decoration:none}

.pantry-item-main .pantry-reminder-later{color:var(--green-text)}
.pantry-item-main .pantry-reminder-soon{color:#a33c30}
.pantry-item-main .pantry-reminder-neutral{color:var(--muted)}
[data-theme=dark] .pantry-item-main .pantry-reminder-soon{color:#f1a99d}
#householdChoices [data-recipe-destination]{display:block;width:100%;margin:10px 0;text-align:left}


/* Quiet icon actions at the top; a single shopping button at the bottom. */
#viewContent .recipe-top-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:8px 0 14px;margin:0 0 14px;border-bottom:1px solid var(--line)}
#viewContent .recipe-top-tools .recipe-icon-action{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:48px;min-height:52px;padding:5px 8px;border:0;border-radius:8px;background:transparent;color:var(--green-text);font-size:11px;font-weight:600;line-height:1.2;flex:0 0 auto;text-decoration:none}
#viewContent .recipe-top-tools .recipe-icon-action svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#viewContent .recipe-top-tools .recipe-icon-action span{pointer-events:none}
#viewContent .recipe-top-tools .recipe-icon-action:hover{background:var(--soft)}
#viewContent .recipe-top-tools .recipe-delete-action{color:#a33c30;margin-left:8px}
[data-theme=dark] #viewContent .recipe-top-tools .recipe-delete-action{color:#f1a99d}
#viewContent .dialog-actions.recipe-shopping-action{display:block;border-top:1px solid var(--line);padding-top:18px;margin-top:24px}
#viewContent .recipe-shopping-action #shopRecipe{width:100%;min-height:44px;padding:11px 14px;font-size:14px;flex:none}
#viewDialog:focus{outline:none}
@media(max-width:360px){#viewContent .recipe-top-tools{gap:4px;justify-content:space-between}#viewContent .recipe-top-tools .recipe-icon-action{padding:5px;min-width:44px}#viewContent .recipe-top-tools .recipe-delete-action{margin-left:0}}

/* One top-edge toolbar, including Close, before the recipe heading. */
#viewContent .recipe-top-tools{justify-content:flex-start;padding:0 0 12px;margin:0 0 18px;gap:6px}
#viewContent .recipe-top-tools .recipe-close-action{margin-left:auto;border-left:1px solid var(--line);border-radius:0;padding-left:16px;min-width:60px}
#viewContent .recipe-top-tools .recipe-delete-action{margin-left:0}
@media(max-width:360px){#viewContent .recipe-top-tools{gap:2px}#viewContent .recipe-top-tools .recipe-icon-action{min-width:44px;padding:5px 3px}}

@media(max-width:360px){#viewContent .recipe-top-tools .recipe-icon-action{font-size:10px;min-width:40px}#viewContent .recipe-top-tools .recipe-close-action{margin-left:10px;padding-left:12px;min-width:52px}}

#viewContent .recipe-back-top{display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;margin:12px 0 0 auto;padding:10px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--green-text)}
#viewContent .recipe-back-top svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#viewContent .recipe-back-top:hover{background:var(--soft)}
#viewContent .recipe-top-tools:focus{outline:none}
