/* A personal cookbook, inside the same familiar workspace. */
#module-nav{padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid var(--line)}
#module-nav button{width:100%;display:flex;align-items:center;gap:10px;min-height:46px;font-size:13px;border-radius:var(--nav-radius);padding:7px 10px;text-align:left;color:inherit}
#module-nav button.active{background:var(--active);color:var(--ink);font-weight:650}
#module-nav .line-icon{width:21px;height:21px}
#task-quick-nav{display:flex;gap:4px;padding:10px 36px 0;width:min(100%,860px)}
#task-quick-nav button{min-height:44px;padding:8px 12px;font-size:12px;border:1px solid transparent;border-radius:8px;color:var(--muted)}
#task-quick-nav button.active{border-color:var(--line);background:var(--soft);color:var(--ink)}
#bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
#bottom-nav button{min-width:0}
.food-page{width:min(100%,1100px);padding:28px 36px 100px;min-width:0}
.food-page,.food-page *,.food-editor-body *,.cook-shell *{box-sizing:border-box;min-width:0}
.food-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.food-heading h1{font-size:31px;letter-spacing:-.9px;margin:0 0 7px}
.food-heading p{margin:0;font-size:13px;color:var(--muted)}
.food-eyebrow{color:var(--accent);font-size:11px;font-weight:650;letter-spacing:1px;text-transform:uppercase;margin:0 0 8px}
.food-page button,.food-page a,.food-page input,.food-page select,.food-page summary,#food-dialog button,#food-dialog input,#food-dialog select,#cook-screen button{min-height:44px}
.food-page button,#food-dialog button,#cook-screen button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:9px;font-size:13px;padding:10px 14px}
.food-page .line-icon,#food-dialog .line-icon,#cook-screen .line-icon{width:20px;height:20px;flex:none}
.food-page .primary,#food-dialog .primary,#cook-screen .primary{background:var(--primary);color:var(--on-primary);border:1px solid var(--primary)}
.food-page .primary:hover,#food-dialog .primary:hover,#cook-screen .primary:hover{background:var(--primary-hover)}
.food-button{border:1px solid var(--control-border);background:var(--surface);color:var(--ink)}
.food-button:hover{background:var(--soft)}
.food-tabs{display:flex;border-bottom:1px solid var(--line);gap:22px;margin-bottom:20px}
.food-tabs button{border-radius:0;padding:0 0 12px;color:var(--muted);border-bottom:2px solid transparent;background:transparent;font-weight:550}
.food-tabs button.active{color:var(--accent);border-color:var(--accent)}
.food-search{display:flex;align-items:center;gap:9px;margin-bottom:20px;border:1px solid var(--control-border);background:var(--bg);border-radius:10px;padding:0 12px;width:min(100%,380px)}
.food-search input{width:100%;border:0;background:transparent;padding:11px 0;font-weight:400;font-size:16px;box-shadow:none}
.food-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr));gap:16px}
.recipe-card{display:flex;flex-direction:column;border:1px solid var(--line);background:var(--surface);border-radius:10px;overflow:hidden;transition:box-shadow .16s,transform .16s;text-align:left}
.recipe-card:hover{box-shadow:0 7px 22px var(--shadow-soft);transform:translateY(-2px)}
.recipe-card>button{display:block;border-radius:0;text-align:left;padding:0;width:100%;height:100%;background:transparent;color:var(--ink)}
.recipe-card-photo{width:100%;height:154px;object-fit:cover;display:block}
.recipe-card-quiet{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:var(--soft);border-bottom:1px solid var(--line)}
.recipe-card-quiet .line-icon{width:29px;height:29px;stroke-width:1.3;color:var(--accent)}
.recipe-initial{font-family:inherit;font-weight:550;font-size:29px;color:var(--accent);opacity:.8}
.recipe-card-body{display:block;padding:17px 18px 18px}
.recipe-card h2{color:var(--ink);font-size:17px;font-weight:650;line-height:1.35;letter-spacing:-.35px;text-transform:none;margin:0;padding:0;border:0}
.recipe-card-meta{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:10px;font-size:12px;color:var(--muted)}
.food-tag{display:inline-flex;align-items:center;background:var(--active);color:var(--accent);border-radius:6px;padding:4px 7px;font-size:11px;font-weight:600}
.food-tag.warning{background:var(--warning-bg);color:var(--warning)}
.food-empty{border:1px dashed var(--control-border);border-radius:16px;padding:34px 22px;text-align:center;color:var(--muted);max-width:560px;margin:18px auto}
.food-empty .line-icon{width:38px;height:38px;color:var(--accent)}
.food-empty h2{font-size:20px;color:var(--ink);border:0;letter-spacing:-.4px;margin:10px 0;padding:0}
.food-empty p{font-size:14px;line-height:1.65;margin:0 0 18px}
.food-alert{border:1px solid var(--warning-border);background:var(--warning-bg);color:var(--warning);padding:13px 15px;border-radius:10px;margin:14px 0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.food-error{border-color:var(--danger-border);background:var(--danger-bg);color:var(--danger)}
.food-notice{border:1px solid var(--line);background:var(--soft);border-radius:10px;padding:12px 14px;font-size:13px;line-height:1.6;color:var(--muted);margin:14px 0}
.recipe-topline{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:8px}
.recipe-back{color:var(--muted);padding-left:0!important}
.recipe-title{font-size:clamp(27px,3.5vw,40px)!important;max-width:750px;line-height:1.15!important;margin:0 0 13px!important}
.recipe-description{font-size:14px;line-height:1.6;color:var(--muted);max-width:620px;white-space:pre-line}
.recipe-photo{max-height:320px;width:100%;object-fit:cover;border-radius:14px;margin-bottom:20px}
.recipe-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 0;margin:12px 0 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.serving-control{display:flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.serving-control button{width:44px;padding:8px;font-size:21px}
.serving-control strong{font-size:13px;text-align:center;min-width:84px;white-space:nowrap}
.recipe-source-yield{font-size:12px;color:var(--muted)}
.recipe-columns{display:grid;grid-template-columns:minmax(250px,.85fr) minmax(0,1.3fr);gap:34px}
.food-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 11px;padding:0;font-size:17px!important;font-weight:650;color:var(--ink)!important;border:0!important;letter-spacing:-.3px!important;text-transform:none!important}
.food-section-heading small{font-weight:400;font-size:11px;color:var(--muted)}
.ingredient-list{list-style:none;padding:0;margin:0}
.ingredient-row{padding:11px 0;border-bottom:1px solid var(--line);font-size:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;line-height:1.5}
.ingredient-row .quantity{font-weight:650;color:var(--accent);margin-right:5px}
.ingredient-row label{font-size:11px;display:flex;align-items:center;gap:5px;color:var(--muted);font-weight:400;min-height:44px;cursor:pointer;white-space:nowrap}
.ingredient-row input[type=checkbox]{width:20px;height:20px;min-height:20px!important;margin:0;flex:none;accent-color:var(--accent)}
.ingredient-row.have>.ingredient-name{text-decoration:line-through;color:var(--muted)}
.ingredient-row.optional .food-tag{margin:3px 0}
.recipe-steps{list-style:none;padding:0;margin:0;counter-reset:steps}
.recipe-steps li{position:relative;padding:0 0 23px 38px;counter-increment:steps;font-size:15px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}
.recipe-steps li:before{content:counter(steps);position:absolute;left:0;top:0;width:26px;height:26px;display:grid;place-items:center;background:var(--active);border-radius:50%;color:var(--accent);font-size:12px;font-weight:650}
.recipe-notes{padding:14px 16px;background:var(--soft);border-radius:10px;white-space:pre-line;font-size:13px;line-height:1.7;margin-top:16px}
.recipe-sticky-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.week-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 18px}
.week-toolbar strong{font-size:14px;font-weight:600;text-align:center}
.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;margin-bottom:22px}
.meal-day{border:1px solid var(--line);border-radius:12px;min-height:206px;background:var(--bg);padding:13px;display:flex;flex-direction:column}
.meal-day.today{border-color:var(--accent);background:var(--active)}
.meal-date{font-size:12px;color:var(--muted);text-transform:capitalize;margin-bottom:14px;display:flex;justify-content:space-between}
.meal-name{font-size:14px;font-weight:650;line-height:1.45;overflow-wrap:anywhere;flex:1}
.meal-day .food-button{padding:6px 8px;width:100%;font-size:12px;margin-top:8px}
.meal-yield{font-size:12px;color:var(--muted);margin-top:12px}
.meal-empty{font-size:13px;color:var(--muted);font-weight:400}
.week-actions{display:flex;justify-content:flex-end}
.shopping-summary{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-bottom:16px}
.shopping-summary button{padding:5px 12px;border:1px solid var(--line)}
.shopping-summary button.active{background:var(--active);border-color:var(--accent);color:var(--accent)}
.shopping-list{border-top:1px solid var(--line)}
.shopping-row{border-bottom:1px solid var(--line);padding:16px 0;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:11px;align-items:start}
.shopping-check{width:44px;min-width:44px;padding:10px!important;position:relative;border:0;border-radius:0!important;background:transparent}
.shopping-check:before{content:'';display:block;width:22px;height:22px;border:1px solid var(--control-border);border-radius:6px}
.shopping-row.bought .shopping-check:before{content:'✓';background:var(--accent);color:var(--bg);border-color:var(--accent);display:grid;place-items:center}
.shopping-row.bought .shopping-name{text-decoration:line-through;color:var(--muted)}
.shopping-name{font-weight:650;font-size:15px;line-height:1.4}
.shopping-required{font-size:13px;color:var(--accent);margin-top:3px;font-weight:550}
.shopping-sources{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.55}
.shopping-product{font-size:12px;color:var(--muted);margin-top:8px;border-left:2px solid var(--line);padding-left:9px}
.shopping-channel{font-size:12px;width:118px;max-width:100%;background:var(--bg);padding:8px!important;min-height:44px}
.shopping-row-controls{display:flex;align-items:center;flex-direction:column;gap:5px}
.shopping-row-controls button{font-size:11px;padding:6px 9px}
.shopping-status{margin-top:8px;display:flex;align-items:center;gap:7px;font-size:12px;color:var(--accent)}
.shopping-status.warning{color:var(--warning)}
.shopping-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 0;margin-top:14px;border-top:1px solid var(--line)}
.shopping-toolbar p{font-size:12px;color:var(--muted);margin:0;line-height:1.6}
.picnic-connection{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:var(--bg);margin-bottom:20px;font-size:13px}
.picnic-connection p{margin:3px 0 0;font-size:12px;color:var(--muted)}
#food-dialog{width:min(720px,calc(100vw - 24px));max-width:720px;padding:0;border-radius:16px;max-height:calc(100dvh - 24px);overflow:hidden;color:var(--ink);background:var(--bg)}
#food-editor{display:flex;flex-direction:column;max-height:calc(100dvh - 24px);margin:0;min-height:0;overflow:hidden}
.food-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line);flex:none}
.food-dialog-head h1{font-size:22px;letter-spacing:-.65px;margin:0}
.food-dialog-head>button{padding:8px;width:44px;height:44px;flex:none}
#food-form-error{margin:12px 20px 0;flex:none}
.food-editor-body{padding:20px;overflow:auto;overscroll-behavior:contain;flex:1;min-height:0}
.food-editor-body label{display:block;margin-bottom:15px;font-size:12px;color:var(--muted);font-weight:600}
.food-editor-body label input,.food-editor-body label textarea,.food-editor-body label select{display:block;width:100%;margin-top:6px;background:var(--bg);font-size:16px;color:var(--ink);border-color:var(--control-border)}
.food-editor-body textarea{resize:vertical;min-height:130px;line-height:1.6}
.food-editor-body h2{font-size:15px;color:var(--ink);border:0;padding:0;margin:20px 0 12px;text-transform:none;letter-spacing:-.2px}
.food-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.food-form-grid label{margin-bottom:0}
.food-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:13px 20px;border-top:1px solid var(--line);flex:none;background:var(--bg)}
.food-field-help{font-size:12px;color:var(--muted);line-height:1.6;margin-top:6px;font-weight:400}
.food-edit-ingredient{display:grid;grid-template-columns:minmax(0,1fr) 65px 65px 65px 80px 44px;gap:6px;margin-bottom:7px}
.food-edit-ingredient input{width:100%;font-size:14px;padding:8px}
.food-edit-ingredient label{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:400;margin:0;gap:4px}
.food-edit-ingredient input[type=checkbox]{width:20px!important;min-height:20px!important;height:20px!important;margin:0;accent-color:var(--accent)}
.food-edit-step{display:grid;grid-template-columns:28px minmax(0,1fr) 44px;gap:7px;margin-bottom:10px;align-items:start}
.food-edit-step>span{font-size:12px;margin-top:12px;color:var(--accent);font-weight:650;text-align:center}
.food-edit-step textarea{min-height:85px;font-size:15px;margin:0;width:100%}
.food-preview-source{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);background:var(--soft);padding:12px;border-radius:8px;max-height:180px;overflow:auto;margin-top:10px}
.picnic-search{display:flex;gap:8px;margin:0 0 14px}
.picnic-search input{flex:1;width:0;font-size:16px}
.picnic-product{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:10px;padding:10px;margin-bottom:8px;cursor:pointer;width:100%;text-align:left!important;justify-content:flex-start!important;color:var(--ink)}
.picnic-product img{width:48px;height:58px;object-fit:contain;flex:none}
.picnic-product>span{flex:1;font-size:14px;line-height:1.45}
.picnic-product small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.picnic-review-row{padding:13px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.6}
.picnic-review-row strong{display:block;font-size:14px}
.picnic-review-row .food-form-grid{align-items:end;margin-top:10px}
.picnic-review-row .food-form-grid label input{font-size:16px}
#cook-screen{position:fixed;inset:0;z-index:30;background:var(--bg);overflow:auto;overscroll-behavior:contain;min-width:0}
.cook-shell{max-width:920px;margin:auto;padding:calc(14px + env(safe-area-inset-top,0px)) max(22px,env(safe-area-inset-right,0px)) calc(106px + env(safe-area-inset-bottom,0px)) max(22px,env(safe-area-inset-left,0px));min-height:100dvh}
.cook-topbar{display:flex;justify-content:space-between;align-items:center;gap:10px}
.cook-title{font-size:13px;color:var(--muted);overflow-wrap:anywhere;font-weight:550;max-width:70%}
.cook-topbar button{width:44px;padding:8px}
.cook-status{font-size:12px;padding:12px 0;color:var(--warning);line-height:1.5;min-height:44px}
.cook-status.held{color:var(--accent)}
.cook-progress{height:4px;background:var(--line);border-radius:3px;margin:8px 0 32px;overflow:hidden}
.cook-progress>span{display:block;height:100%;background:var(--accent);transition:width .18s}
.cook-step-count{font-size:12px;color:var(--accent);font-weight:600;letter-spacing:.5px;margin-bottom:15px;text-transform:uppercase}
.cook-step{font-size:clamp(25px,3.8vw,36px);line-height:1.5;font-weight:550;letter-spacing:-.65px;margin:0 0 32px;white-space:pre-line;overflow-wrap:anywhere;min-height:140px}
.cook-extras{display:flex;gap:9px;flex-wrap:wrap;margin:22px 0}
.cook-ingredients,.cook-whole{border:1px solid var(--line);border-radius:12px;padding:18px;background:var(--soft);margin:14px 0}
.cook-ingredients h2,.cook-whole h2{color:var(--ink);font-size:16px;border:0;padding:0;margin:0 0 12px;text-transform:none}
.cook-bottom{position:fixed;bottom:0;left:0;right:0;padding:12px max(22px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(22px,env(safe-area-inset-left,0px));display:flex;justify-content:space-between;gap:12px;background:var(--bg);border-top:1px solid var(--line);z-index:31}
.cook-bottom button{min-height:50px;flex:1;max-width:340px;font-size:15px}
body.cooking{overflow:hidden}
@media(max-width:1100px){.week-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.meal-day{min-height:175px}}
@media(max-width:900px){
 #task-quick-nav{padding:8px 12px 0;width:100%;gap:4px;overflow:auto;scrollbar-width:none}
 #task-quick-nav button{flex:none;font-size:12px;padding:7px 12px}
 #bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
 .food-page{padding:23px max(16px,env(safe-area-inset-right,0px)) calc(100px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));width:100%}
 .food-heading{gap:10px;margin-bottom:20px;align-items:flex-start}
 .food-heading h1{font-size:27px}.food-heading p{font-size:12px}
 .food-heading>.primary{padding:9px 11px;font-size:12px;flex:none}
 .food-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .recipe-card-quiet{height:64px;padding:0 13px}.recipe-card-body{padding:13px}.recipe-card h2{font-size:15px}
 .recipe-card-meta{gap:5px;font-size:11px}.recipe-card-photo{height:126px}
 .recipe-columns{grid-template-columns:1fr;gap:26px}
 .recipe-sticky-actions{position:sticky;bottom:calc(68px + env(safe-area-inset-bottom,0px));z-index:5;background:var(--bg);margin:18px -16px -1px;padding:12px 16px;box-shadow:0 -8px 18px var(--shadow-soft);border-top:1px solid var(--line)}
 .recipe-sticky-actions button{flex:1;font-size:12px;padding:10px 8px}
 .recipe-topline{margin-bottom:12px}
 .recipe-toolbar{gap:8px;margin-bottom:20px}.recipe-source-yield{font-size:11px}
 .recipe-title{font-size:30px!important;letter-spacing:-1px!important}
 .food-section-heading{font-size:17px!important}.recipe-steps li{font-size:15px}
 .week-grid{grid-template-columns:1fr;gap:10px}.meal-day{min-height:100px;padding:14px;display:grid;grid-template-columns:58px minmax(0,1fr) 78px;gap:8px;align-items:center}.meal-date{display:block;margin:0;font-size:12px}.meal-date span{display:block;font-size:18px;color:var(--ink);font-weight:650;margin-top:2px}.meal-name{font-size:14px}.meal-yield{grid-column:2;grid-row:2;margin-top:-9px}.meal-day .food-button{grid-column:3;grid-row:1/span 2;margin:0;font-size:11px;min-height:44px}.meal-name button{padding:0!important;text-align:left;justify-content:flex-start;min-height:44px;width:100%;font-size:14px;color:var(--ink)}
 .shopping-row{grid-template-columns:36px minmax(0,1fr) 93px;gap:7px}.shopping-check{margin-left:-4px}.shopping-channel{width:93px;font-size:11px}.shopping-name{font-size:14px}.shopping-row-controls button{font-size:11px;padding:5px 3px;max-width:100%}.shopping-required{font-size:12px}
 .shopping-toolbar{position:sticky;bottom:calc(68px + env(safe-area-inset-bottom,0px));z-index:5;background:var(--bg);margin-left:-16px;margin-right:-16px;padding:12px 16px;box-shadow:0 -8px 18px var(--shadow-soft)}.shopping-toolbar p{font-size:11px;max-width:45%}.shopping-toolbar button{font-size:12px;padding:10px 11px}
 .food-search{width:100%}
 #food-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:14px}
 #food-editor{max-height:calc(100dvh - 16px)}
 .food-dialog-head{padding:13px 14px}.food-dialog-head h1{font-size:20px}.food-editor-body{padding:16px}.food-dialog-actions{padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px))}.food-dialog-actions button{font-size:12px}
 .food-edit-ingredient{grid-template-columns:minmax(0,1fr) 60px 60px 44px;gap:5px;align-items:center}.food-edit-ingredient label{grid-column:1/span 3;grid-row:2;justify-content:flex-start}.food-edit-ingredient [data-fi-remove]{grid-column:4;grid-row:1/span 2}.food-edit-ingredient input{font-size:16px;padding:8px 6px}
 .cook-shell{padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}.cook-progress{margin-bottom:29px}.cook-step{font-size:28px;line-height:1.55;letter-spacing:-.7px}.cook-step-count{font-size:11px}
}
@media(max-width:360px){.food-page{padding-left:12px;padding-right:12px}.food-heading h1{font-size:27px}.food-heading>.primary{font-size:11px;padding:8px}.recipe-card h2{font-size:14px}.recipe-card-body{padding:11px}.recipe-card-meta{font-size:10px}.food-form-grid{grid-template-columns:1fr}.shopping-row{grid-template-columns:32px minmax(0,1fr) 82px;gap:5px}.shopping-channel{width:82px}.recipe-title{font-size:27px!important}.cook-step{font-size:25px}.picnic-connection{padding:10px;gap:7px}.picnic-connection button{font-size:12px;padding:8px}.serving-control strong{min-width:76px}.shopping-toolbar p{display:none}.shopping-toolbar button{width:100%}}
@media(prefers-reduced-motion:reduce){.recipe-card,.cook-progress>span{transition:none}.recipe-card:hover{transform:none}}
[hidden]{display:none!important}

/* R2: names wrap in their own grid cell; sticky bars never exceed their parent. */
.food-page h1,.food-page h2,.food-page p,.food-page span,.food-page strong,.food-page label,.food-page a,.ingredient-row,.ingredient-name,.shopping-name,.shopping-required,.shopping-product,.shopping-sources,.picnic-product,.cook-shell h2,.cook-shell p,.cook-shell span,#food-editor label,#food-editor p,#food-editor strong{overflow-wrap:anywhere;word-break:normal}
.food-page button,#food-dialog button,#cook-screen button{min-width:44px}
.ingredient-row{grid-template-columns:minmax(0,1fr) auto;max-width:100%}
.ingredient-name{min-width:0;max-width:100%}
.food-page .ingredient-row input[type=checkbox],#food-dialog input[type=checkbox]{appearance:none;position:relative;inset:auto;padding:0;width:20px;height:20px;min-width:20px;min-height:20px!important;margin:0;border:1.5px solid var(--control-border);border-radius:5px;background:var(--bg)!important;flex:none;display:grid;place-items:center}
.food-page .ingredient-row input[type=checkbox]:before,#food-dialog input[type=checkbox]:before{content:none!important}
.food-page .ingredient-row input[type=checkbox]:after,#food-dialog input[type=checkbox]:after{content:none;inset:auto}
.food-page .ingredient-row input[type=checkbox]:checked,#food-dialog input[type=checkbox]:checked{background:var(--primary)!important;border-color:var(--primary)}
.food-page .ingredient-row input[type=checkbox]:checked:after,#food-dialog input[type=checkbox]:checked:after{content:'✓';position:static;display:block;color:var(--on-primary);font-size:15px;font-weight:700;line-height:16px}
.food-page .ingredient-row input[type=checkbox]:disabled,#food-dialog input[type=checkbox]:disabled{opacity:.5;cursor:default}
#food-confirm{width:min(440px,calc(100vw - 24px));padding:22px;max-height:calc(100dvh - 24px);border:1px solid var(--line);border-radius:14px;background:var(--bg);color:var(--ink);overflow:auto}
#food-confirm h1{font-size:22px;margin:0 0 14px;letter-spacing:-.6px}
#food-confirm p{font-size:14px;line-height:1.65;overflow-wrap:anywhere;margin:0 0 22px}
.food-confirm-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.food-confirm-actions button{min-width:44px;min-height:44px;padding:10px 12px;border-radius:8px;font-size:13px}
#food-confirm .primary{background:var(--primary);color:var(--on-primary)}
@media(max-width:900px){.recipe-sticky-actions,.shopping-toolbar{margin-left:0;margin-right:0;width:100%;max-width:100%;padding-left:0;padding-right:0}.cook-ingredients,.cook-whole{max-width:100%;overflow-wrap:anywhere}.ingredient-row>span:last-child:not(.ingredient-name){max-width:112px}.food-edit-ingredient label{max-width:none!important}}

/* Kookstand is a real modal, with document isolation and keyboard focus. */
dialog#cook-screen{position:fixed;inset:0;margin:0;padding:0;width:100%;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;box-shadow:none;overflow:auto;background:var(--bg);color:var(--ink)}
dialog#cook-screen::backdrop{background:var(--bg);backdrop-filter:none}

/* The whole optional-ingredient label is the 44px touch target. */
#food-dialog .food-edit-ingredient label{min-height:44px;padding-top:2px;padding-bottom:2px;cursor:pointer}

/* Authenticated Picnic photographs belong to the exact selected article. */
.product-photo{display:inline-grid;place-items:center;flex:none;width:72px;height:84px;padding:6px;background:#f5f4f2;border:1px solid var(--line);border-radius:12px;overflow:hidden;vertical-align:middle}
.product-photo img{width:100%;height:100%;object-fit:contain;display:block}
.product-photo .photo-fallback{display:none;color:var(--muted)}
.product-photo.photo-unavailable{background:var(--soft)}
.product-photo.photo-unavailable .photo-fallback{display:grid;place-items:center}
.product-photo.photo-unavailable img{display:none}
.product-detail-photo{display:grid;place-items:center;background:var(--soft);border:1px solid var(--line);border-radius:14px;margin:0 0 20px;padding:16px}
.product-detail-photo .product-photo{width:180px;height:180px;border:0}
.product-detail-price{font-size:24px;font-weight:700;margin:8px 0 14px;color:var(--ink)}
.preference-check{display:flex!important;align-items:center;gap:10px;min-height:52px;margin-top:16px!important;cursor:pointer}
.preference-check input{flex:none}
.shopping-product{display:flex;align-items:center;gap:10px;margin-top:10px;line-height:1.55}
.shopping-product .product-photo{width:52px;height:62px;padding:4px;border-radius:8px}
.picnic-product .product-photo{width:60px;height:70px}
.picnic-review-row>.product-photo{float:left;margin:0 12px 8px 0}
.picnic-review-row:after{content:'';display:block;clear:both}
.shop-tabs{gap:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:24px}
.shop-tabs button{padding:10px 6px 13px;font-size:14px;min-width:0}
.supermarket-search{display:flex;align-items:stretch;gap:10px;margin-bottom:16px}
.supermarket-search .food-search{width:100%;max-width:none;margin:0;flex:1}
.supermarket-search>.primary{flex:none}
.shop-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 28px}
.shop-shortcuts button{border-radius:24px;padding:9px 16px;background:var(--soft);font-size:13px}
.shop-result-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}
.shop-result-heading h2{font-size:19px;color:var(--ink);text-transform:none;letter-spacing:-.3px;margin:0;border:0;padding:0}
.shop-result-heading>span{font-size:12px;color:var(--muted);flex:none}
.shop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.shop-card{border:1px solid var(--line);border-radius:10px;background:var(--surface);overflow:hidden;box-shadow:0 3px 10px var(--shadow-soft)}
.food-page .shop-card>button{display:flex;width:100%;height:100%;align-items:stretch;justify-content:flex-start;flex-direction:column;gap:0;text-align:left;padding:0;color:var(--ink);border-radius:13px}
.shop-card>button:hover{background:var(--soft)}
.shop-card .product-photo{width:100%;height:160px;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:18px}
.shop-card .product-photo img{max-width:150px;justify-self:center}
.shop-card-body{display:flex;flex-direction:column;gap:8px;padding:16px;flex:1}
.shop-card-body>strong{font-size:15px;line-height:1.45;font-weight:650;min-height:44px}
.shop-card-body>span:not(.shop-card-action){font-size:12px;color:var(--muted);line-height:1.5}
.shop-card-body>b{font-size:20px;letter-spacing:-.4px;margin-top:auto;padding-top:4px}
.shop-card-action{display:flex;align-items:center;justify-content:space-between;color:var(--accent);font-size:12px;min-height:44px;border-top:1px solid var(--line);margin-top:3px;padding-top:9px}
.shop-card-action .line-icon{width:19px;height:19px}
.shop-loading{border:1px solid var(--line);border-radius:14px;padding:32px 20px;text-align:center;color:var(--muted);background:var(--soft);line-height:1.6}
.shop-cart-list{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--bg)}
.shop-cart-row{display:grid;grid-template-columns:84px minmax(0,1fr) 130px;gap:20px;align-items:start;padding:20px;border-bottom:1px solid var(--line)}
.shop-cart-row:last-child{border-bottom:0}
.shop-cart-row>.product-photo{width:84px;height:104px}
.shop-cart-body h2{font-size:16px;text-transform:none;letter-spacing:0;margin:0 0 6px;color:var(--ink);padding:0;border:0;line-height:1.45}
.shop-cart-body p{font-size:13px;color:var(--muted);margin:0 0 12px;line-height:1.5}
.shop-cart-body>strong{font-size:14px}
.shop-cart-body>span{display:inline-block;font-size:11px;color:var(--muted);margin-left:6px}
.cart-quantity{display:flex;align-items:center;border:1px solid var(--control-border);border-radius:9px;width:max-content;max-width:100%;margin-top:14px;background:var(--bg)}
.food-page .cart-quantity button{width:44px;height:44px;min-width:44px;padding:0;font-size:22px;border-radius:8px;color:var(--accent)}
.cart-quantity output{min-width:36px;padding:0 5px;text-align:center;font-size:15px;font-weight:650}
.shop-cart-end{display:flex;flex-direction:column;align-items:flex-end;gap:14px}
.shop-cart-end>strong{font-size:18px;line-height:1.5}
.food-page .cart-remove{font-size:12px;text-decoration:underline;color:var(--muted);padding:8px 0;max-width:100%}
.cart-total{display:flex;justify-content:space-between;gap:14px;padding:20px 0;align-items:center;border-top:1px solid var(--line);margin-top:20px;font-size:15px}
.cart-total>strong{font-size:25px;letter-spacing:-.7px}
.cart-change{display:flex;flex-direction:column;gap:12px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--soft);margin:20px 0;font-size:14px}
.cart-change>span{color:var(--muted)}
.cart-change>strong{font-size:19px;line-height:1.45}
.shop-checkout-note{border-top:1px solid var(--line);padding-top:20px;margin-top:28px;font-size:13px;line-height:1.65;color:var(--muted)}
.shop-checkout-note>strong{color:var(--ink);font-size:15px}
.shop-checkout-note p{margin:8px 0 0}
.cart-pending{border:1px solid var(--warning-border);background:var(--soft);border-radius:14px;padding:20px;margin:24px 0}
.cart-pending h2{font-size:18px;color:var(--ink);text-transform:none;border:0;margin:0 0 10px;padding:0}
.cart-pending p{font-size:13px;line-height:1.6}
.cart-pending article{display:flex;gap:14px;border-top:1px solid var(--line);margin-top:16px;padding-top:16px}
.cart-pending article button{margin:4px 6px 4px 0;text-align:left}
.food-page :focus-visible,#food-dialog :focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:1100px){.shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.shop-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.shop-card-body{padding:12px}.shop-card .product-photo{height:145px}.shop-cart-row{grid-template-columns:68px minmax(0,1fr) 110px;gap:14px;padding:16px}.shop-cart-row>.product-photo{width:68px;height:86px}.food-page>.cart-total{position:sticky;bottom:calc(68px + env(safe-area-inset-bottom,0px));z-index:5;background:var(--bg);padding:16px 0;box-shadow:0 -6px 14px var(--shadow-soft)}.shop-tabs{margin-bottom:20px}}
@media(max-width:600px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shop-card .product-photo{height:132px;padding:14px}.shop-card-body>strong{font-size:14px}.shop-result-heading{align-items:start}.shop-result-heading h2{font-size:17px}.shop-result-heading>span{font-size:11px;padding-top:4px}.shop-shortcuts{gap:7px;margin-bottom:24px}.shop-shortcuts button{font-size:12px;padding:9px 13px}.shop-cart-row{grid-template-columns:60px minmax(0,1fr);gap:12px;padding:16px 12px}.shop-cart-row>.product-photo{width:60px;height:76px}.shop-cart-body h2{font-size:15px}.shop-cart-end{grid-column:2;flex-direction:row;justify-content:space-between;align-items:center;gap:12px;margin-top:-4px}.shop-cart-end>strong{font-size:17px}.food-page .cart-remove{padding:8px 0}.shop-cart-body>span{display:block;margin:3px 0 0}.cart-pending{padding:16px}.cart-pending article{gap:10px}.cart-pending article>.product-photo{width:52px;height:64px}.cart-pending article button{width:100%;margin-right:0;justify-content:flex-start}.shop-tabs button{font-size:13px}}
@media(max-width:360px){.supermarket-search{gap:7px}.supermarket-search>.primary{padding:8px 10px;font-size:12px}.shop-card-body{padding:10px;gap:7px}.shop-card-body>strong{font-size:13px}.shop-card-body>b{font-size:19px}.shop-card-action{font-size:11px;gap:4px}.shop-card .product-photo{height:118px}.shop-tabs button{font-size:12px}.shop-cart-row{padding:14px 10px;gap:10px}.cart-total{font-size:13px}.cart-total>strong{font-size:22px}}

/* Review quantities and totals stay in normal flow inside the modal. */
#food-dialog .cart-total{position:static;bottom:auto;z-index:auto;box-shadow:none;background:transparent}

/* Shared confirmation feedback states. */
#food-confirm .primary:hover{background:var(--primary-hover)}
.food-page .primary:disabled,#food-dialog .primary:disabled{background:var(--soft);color:var(--muted);border-color:var(--control-border);opacity:1}

/* Kitchen components use the same paper/slate surfaces and compact blue actions. */
#module-nav{padding-bottom:12px;margin-bottom:12px}
#module-nav button{font-size:13px;min-height:46px;border-radius:9px}
#task-quick-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:min(100%,900px);padding:16px 40px 0;gap:6px;overflow:visible}
#task-quick-nav button{min-width:0;padding:8px 5px;min-height:44px;font-size:12px;white-space:nowrap;border-radius:var(--nav-radius)}
#task-quick-nav button.active{background:var(--active);color:var(--accent);border-color:transparent;font-weight:650}
.food-page{max-width:1120px;margin:0 auto;padding:30px 40px 100px}
.food-heading{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:24px;padding:20px 22px;background:var(--surface);border-radius:var(--card-radius)}
.food-heading>div:first-child{flex:1 1 190px;min-width:0}
.food-heading>.primary{flex:none;white-space:nowrap}
.food-heading h1{font-size:34px;font-weight:750;letter-spacing:-.04em}
.food-heading p{font-size:13px}
.food-eyebrow{font-size:10px!important;letter-spacing:1.2px;margin-bottom:8px!important;color:var(--muted)}
.food-page button,#food-dialog button,#cook-screen button{border-radius:var(--control-radius);font-weight:550}
.food-tabs{gap:22px;margin-bottom:22px}
.food-tabs button{border-radius:0;font-size:13px;padding-bottom:12px}
.food-search{flex-direction:row;min-height:48px;background:var(--surface);margin-bottom:18px;border-radius:var(--control-radius);gap:10px}
.food-search input{flex:1;min-width:0;min-height:46px;padding:10px 0;margin:0}
.food-search .line-icon{color:var(--muted);width:19px;height:19px}
.food-search:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.food-search input:focus-visible{outline:none}
.recipe-card{border:0;border-radius:var(--card-radius)}
.food-page .recipe-card>button{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0}
.recipe-card>button:focus-visible{outline-offset:-4px}
.recipe-card:hover{transform:none;box-shadow:0 6px 18px var(--shadow-soft)}
.recipe-card-quiet{background:var(--active);height:86px;border-bottom:0}
.recipe-card-quiet .line-icon{color:var(--accent)}
.recipe-initial{color:var(--accent)}
.recipe-card-body{padding:18px 20px 20px}
.recipe-card h2{font-size:17px;line-height:1.4;font-weight:650}
.recipe-card-meta{font-size:12px;line-height:1.5}
.food-tag{padding:4px 7px;border-radius:5px}
.food-empty{border-style:solid;background:var(--surface);border-color:var(--line);padding:32px 24px;border-radius:16px}
.food-empty p{font-size:14px;line-height:1.6}
.food-alert,.food-notice{line-height:1.6;border-radius:10px;font-size:13px;padding:12px 14px}
.recipe-title{font-weight:730;letter-spacing:-1.2px!important}
.recipe-toolbar{gap:10px;padding:14px 0;margin:14px 0 24px}
.serving-control{background:var(--surface);border-color:var(--control-border)}
.ingredient-row label{flex-direction:row;min-height:44px;white-space:normal;line-height:1.4;justify-content:flex-end;gap:8px}
.ingredient-row>span:last-child:not(.ingredient-name){display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:0 8px;max-width:125px}
.ingredient-row .quantity{color:var(--ink)}
.recipe-steps li{font-size:15px;line-height:1.7;padding-bottom:24px}
.meal-day{background:var(--surface);border-radius:12px}
.meal-day.today{background:var(--active);border-color:var(--accent)}
.shopping-row{padding:14px 0;gap:10px}
.shopping-name{font-size:15px;line-height:1.5}
.shopping-required{font-size:12px}
.shopping-sources{font-size:11px;line-height:1.6}
.shopping-row-controls{gap:6px}
.shopping-channel{font-size:13px;background:var(--surface)}
.picnic-connection{background:var(--surface);border-radius:12px;align-items:flex-start;padding:14px;gap:14px}
.picnic-connection>div{flex:1;min-width:0}
.picnic-connection button{flex:none;max-width:45%;white-space:normal}
.picnic-connection p{line-height:1.5}
.shopping-summary button{border-color:var(--control-border);background:var(--surface);font-size:12px}
.shopping-summary button.active{background:var(--active);border-color:var(--accent)}
#food-dialog{background:var(--surface);border-radius:18px;max-height:calc(var(--viewport-height,100dvh) - 32px);width:min(740px,calc(100vw - 32px));padding:0}
#food-editor{max-height:calc(var(--viewport-height,100dvh) - 34px)}
.food-dialog-head{padding:14px 20px}
.food-dialog-head h1{font-size:22px;line-height:1.25}
.food-editor-body{padding:20px;scroll-padding:14px}
.food-editor-body label input,.food-editor-body label textarea,.food-editor-body label select{background:var(--surface);border-radius:9px}
.food-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.food-dialog-actions{flex-wrap:wrap;background:var(--surface);padding:14px 20px;gap:8px}
.food-dialog-actions button{font-size:13px;max-width:100%;white-space:normal}
.food-dialog-actions .primary{min-width:120px}
.food-editor-body .preference-check{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:48px;margin:14px 0;font-size:12px;cursor:pointer}
.food-editor-body .preference-check input{margin:0}
.food-edit-ingredient{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr)) 44px;gap:8px;align-items:end;border:1px solid var(--line);background:var(--soft);border-radius:12px;padding:12px;margin:0 0 12px}
#food-dialog .food-edit-ingredient label{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:5px;font-size:11px;font-weight:550;line-height:1.4;margin:0;padding:0;min-height:0;grid-column:auto;grid-row:auto}
.food-edit-ingredient label input{margin:0;min-width:0;width:100%;font-size:15px;padding:9px 8px}
#food-dialog .food-edit-ingredient .ingredient-optional{flex-direction:row;align-items:center;gap:8px;grid-column:1/-1;min-height:44px;padding:0;cursor:pointer}
#food-dialog .food-edit-ingredient .ingredient-optional input{margin:0;width:20px;height:20px;min-height:20px;flex:none}
.food-edit-ingredient [data-fi-remove]{grid-column:5;grid-row:1;width:44px;height:44px;padding:10px;background:var(--surface)}
.food-edit-ingredient input[name^=ingredientMax]{display:block}
.food-edit-step{grid-template-columns:24px minmax(0,1fr) 44px;gap:8px;margin-bottom:14px}
.food-edit-step textarea{background:var(--surface);font-size:16px;min-height:100px}
.food-preview-source{border:1px solid var(--line);line-height:1.6}
#food-form-error{max-height:min(220px,32dvh);overflow:auto;overscroll-behavior:contain}
.product-photo{background:#f5f7fa;border-radius:10px}
.shop-card{border-radius:13px;box-shadow:0 2px 6px var(--shadow-soft)}
.shop-shortcuts button{background:var(--surface);border-radius:9px;border-color:var(--line)}
.shop-cart-list{background:var(--surface)}
.cart-quantity{background:var(--surface)}
.cart-pending{background:var(--warning-bg)}
.cart-pending article{min-width:0}
.cart-pending article>div{min-width:0}
.shop-tabs{gap:0}
.shop-tabs button{min-width:0}
.cook-shell{padding-top:calc(18px + env(safe-area-inset-top,0px))}
.cook-step{font-weight:550;line-height:1.6}
.cook-progress{height:5px;margin-bottom:28px}
.cook-bottom{background:var(--surface)}
@media(min-width:901px){#food-dialog{top:auto;left:auto}}
@media(max-width:900px){
 #task-quick-nav{padding:12px 18px 0;gap:4px;width:100%;max-width:760px;margin:0 auto;overflow:visible}
 #task-quick-nav button{font-size:12px;padding:8px 2px}
 .food-page{width:100%;padding:22px max(18px,env(safe-area-inset-right,0px)) calc(108px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px))}
 .food-heading{margin-bottom:20px;gap:12px;align-items:center}
 .food-heading>div:first-child{flex-basis:180px}
 .food-heading h1{font-size:29px;letter-spacing:-.95px}
 .food-heading p{font-size:12px}
 .food-heading>.primary{font-size:12px;padding:10px 12px}
 .food-eyebrow{margin-bottom:6px!important}
 .food-grid{gap:12px}
 .recipe-card-body{padding:13px}
 .recipe-card h2{font-size:15px}
 .recipe-card-meta{font-size:11px;gap:5px 8px}
 .recipe-card-quiet{height:66px}
 .recipe-card-photo{height:132px}
 .recipe-title{font-size:31px!important}
 .recipe-toolbar{gap:10px}
 .recipe-toolbar>.food-button{margin-left:auto}
 .recipe-sticky-actions,.shopping-toolbar{bottom:calc(72px + env(safe-area-inset-bottom,0px));background:var(--bg);padding:12px 0;margin-left:0;margin-right:0;gap:10px;max-width:100%}
 .recipe-sticky-actions button{font-size:12px;min-height:46px;flex:1;padding:10px 8px}
 .shopping-toolbar{align-items:center}
 .shopping-toolbar p{font-size:11px;line-height:1.5;max-width:44%}
 .shopping-toolbar button{font-size:12px;padding:10px 11px;flex:1}
 .meal-day{padding:13px;grid-template-columns:52px minmax(0,1fr) 76px;gap:8px;min-height:96px}
 .meal-yield{margin-top:-3px;font-size:11px}
 .shopping-row{grid-template-columns:36px minmax(0,1fr);gap:6px 8px;padding:12px 0}
 .shopping-row-controls{grid-column:2;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:4px 6px}
 .shopping-channel{width:auto;min-width:120px;font-size:16px}
 .shopping-row-controls button{font-size:12px;padding:8px 10px}
 .shopping-check{margin-left:-5px}
 .shopping-name{font-size:15px}
 .shopping-product .product-photo{width:46px;height:56px}
 .picnic-connection{padding:12px;gap:10px}
 .picnic-connection button{font-size:12px;padding:9px 10px;max-width:43%}
 .picnic-connection p{font-size:11px}
 #food-dialog{--modal-gap:10px;left:var(--modal-left-gap);top:calc(var(--viewport-top,0px) + var(--modal-top-gap));width:calc(100vw - var(--modal-left-gap) - var(--modal-right-gap));max-height:var(--modal-available-height);border-radius:17px}
 #food-editor{max-height:calc(var(--modal-available-height) - 2px)}
 .food-dialog-head{padding:12px 16px}
 .food-dialog-head h1{font-size:21px}
 .food-editor-body{padding:16px}
 .food-dialog-actions{padding:12px 14px;gap:6px}
 .food-dialog-actions button{font-size:12px;padding:9px 10px}
 .food-dialog-actions .primary{min-width:104px}
 .food-edit-ingredient{grid-template-columns:repeat(3,minmax(0,1fr)) 44px;padding:10px;gap:8px}
 #food-dialog .food-edit-ingredient .ingredient-name-field{grid-column:1/4;grid-row:1}
 #food-dialog .food-edit-ingredient .ingredient-qty-field{grid-column:1;grid-row:2}
 #food-dialog .food-edit-ingredient .ingredient-unit-field{grid-column:2;grid-row:2}
 #food-dialog .food-edit-ingredient .ingredient-max-field{grid-column:3;grid-row:2}
 #food-dialog .food-edit-ingredient .ingredient-optional{grid-column:1/4;grid-row:3}
 .food-edit-ingredient [data-fi-remove]{grid-column:4;grid-row:1;align-self:end}
 .food-edit-ingredient label input{font-size:16px;padding:9px 7px}
 .food-editor-body textarea{min-height:110px}
 .food-edit-step textarea{min-height:96px}
 .food-form-grid{gap:12px}
 .food-page>.cart-total{bottom:calc(72px + env(safe-area-inset-bottom,0px))}
 .cook-shell{padding-left:max(22px,env(safe-area-inset-left,0px));padding-right:max(22px,env(safe-area-inset-right,0px));padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
 .cook-step{font-size:28px;letter-spacing:-.7px;line-height:1.6;min-height:130px}
 .cook-topbar{align-items:flex-start}
 .cook-title{font-size:12px;line-height:1.5;max-width:calc(100% - 56px)}
 .cook-bottom{padding-left:18px;padding-right:18px}
}
@media(max-width:374px){
 #task-quick-nav{padding-left:12px;padding-right:12px;gap:2px}
 #task-quick-nav button{font-size:11px}
 .food-page{padding-left:12px;padding-right:12px}
 .food-heading h1{font-size:27px}
 .food-heading>.primary{font-size:12px;padding:9px 12px}
 .food-heading>div:first-child{flex-basis:100%}
 .food-heading>.primary{margin-top:0}
 .food-form-grid{grid-template-columns:minmax(0,1fr)}
 .food-dialog-actions{padding-left:12px;padding-right:12px}
 .food-dialog-actions .danger{flex-basis:100%;text-align:left;justify-content:flex-start}
 .food-dialog-actions .primary{flex:1}
 .food-edit-ingredient{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 #food-dialog .food-edit-ingredient .ingredient-name-field{grid-column:1/3}
 .food-edit-ingredient [data-fi-remove]{grid-column:3;justify-self:end}
 .food-edit-ingredient label input{font-size:16px;padding-left:6px;padding-right:6px}
 .shopping-toolbar p{display:block;font-size:11px;max-width:40%}
 .shopping-toolbar button{width:auto;font-size:11px}
 .picnic-connection{flex-wrap:wrap}
 .picnic-connection button{max-width:100%}
 .cook-step{font-size:25px}
}
@media(max-height:500px) and (max-width:900px){
 #food-dialog{--modal-gap:6px}
 .food-dialog-head{padding:6px 14px}
 .food-dialog-head h1{font-size:19px}
 .food-dialog-actions{padding-top:8px;padding-bottom:8px}
}

/* A quiet notebook: readable rows, a sheet of paper, and explicit save state. */
#bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
.notes-page{--note-accent:var(--accent);--note-selection:var(--active);--note-paper:var(--surface);min-width:0;width:100%;background:var(--bg)}
.notes-layout{display:grid;grid-template-columns:minmax(260px,330px) minmax(0,1fr);min-height:calc(100dvh - 68px)}
.notes-library{min-width:0;padding:30px 24px 28px;border-right:1px solid var(--line);background:var(--bg)}
.notes-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px;padding:16px;background:var(--surface);border-radius:var(--card-radius)}
.notes-heading h1{font-size:30px;letter-spacing:-.04em;margin:0;line-height:1.2}
.notes-eyebrow{font-size:11px;font-weight:600;color:var(--muted);margin:0 0 6px;letter-spacing:.25px}
.notes-compose{display:grid;place-items:center;flex:none;background:var(--note-selection);color:var(--note-accent);border:1px solid transparent;border-radius:var(--control-radius);width:48px;height:48px;padding:12px}
.notes-compose:hover{border-color:var(--note-accent);background:var(--note-selection)}
.notes-compose .line-icon{width:24px;height:24px}
.notes-search{display:flex;align-items:center;flex-direction:row;gap:8px;background:var(--surface);border:1px solid var(--line);padding:0 12px;border-radius:var(--control-radius);color:var(--muted)}
.notes-search input{border:0;background:transparent;padding:11px 0;width:100%;font-weight:400;box-shadow:none;font-size:16px}
.notes-search:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.notes-search input:focus-visible{outline:none}
.notes-list-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);margin:8px 0 2px}
.notes-list-tools button{font-size:12px;color:var(--note-accent);padding:8px 0;min-width:70px}
.notes-group{border:0;color:var(--muted);font-size:11px;font-weight:650;letter-spacing:.2px;margin:12px 0 0;padding:8px 12px}
.note-row{display:flex;flex-direction:column;align-items:stretch;width:100%;text-align:left;min-height:100px;padding:15px 14px;margin-bottom:8px;border-radius:var(--nav-radius);background:var(--surface);gap:3px}
.note-row:hover{background:var(--soft)}
.note-row.selected{background:var(--note-selection);box-shadow:inset 3px 0 var(--accent)}
.note-row strong{font-size:16px;font-weight:650;line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:-.25px}
.note-preview{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.55;color:var(--muted);font-size:13px}
.note-row-meta{display:flex;gap:10px;font-size:11px;color:var(--muted);line-height:1.7;flex-wrap:wrap}
.note-row-meta time{font-variant-numeric:tabular-nums}
.note-pin-label,.note-draft-label{color:var(--note-accent)}
.notes-memory{margin:30px 12px 0;color:var(--muted);font-size:11px;line-height:1.7;max-width:29em}
.notes-empty{padding:44px 8px 24px;text-align:center;color:var(--muted)}
.notes-empty>.line-icon{width:42px;height:42px;margin:0 auto 15px;color:var(--note-accent);stroke-width:1.3}
.notes-empty h2{border:0;font-size:20px;line-height:1.3;letter-spacing:-.5px;margin:0 0 10px;padding:0;color:var(--ink)}
.notes-empty p{font-size:13px;line-height:1.65;margin:0 auto 16px;max-width:27em}
.notes-empty button{font-size:13px}
#notes-message{background:var(--warning-bg);border:1px solid var(--warning-border);color:var(--warning);border-radius:10px;padding:12px;font-size:12px;line-height:1.65;overflow-wrap:anywhere;margin:12px 0}
.note-workspace{min-width:0;position:relative;display:flex;flex-direction:column;background:var(--note-paper)}
.note-no-selection{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;color:var(--muted);text-align:center;padding:50px 28px;flex:1;font-size:14px}
.note-no-selection .line-icon{width:48px;height:48px;stroke-width:1.1;color:var(--control-border)}
.note-topbar{display:flex;align-items:center;gap:5px;min-height:68px;padding:8px 20px;border-bottom:1px solid var(--line);flex:none}
.note-back{display:flex;align-items:center;gap:2px;color:var(--note-accent);font-weight:550;padding:8px 8px 8px 0;font-size:13px}
.note-back .line-icon{width:19px}
#note-save-status{margin-left:auto;font-size:11px;line-height:1.4;color:var(--muted);min-width:0;text-align:right;overflow-wrap:anywhere}
#note-save-status.unsaved{color:var(--note-accent)}
.note-save{color:var(--note-accent);font-size:12px;padding:8px;font-weight:650}
.note-more{color:var(--note-accent);padding:12px;flex:none}
.note-scroll{padding:28px clamp(22px,4vw,60px) 40px;min-width:0;flex:1;overflow:auto;overscroll-behavior:contain;scroll-padding:16px;-webkit-overflow-scrolling:touch}
.note-date{color:var(--muted);font-size:11px;text-align:center;line-height:1.6;margin:0 0 30px}
.note-title-label{display:block}
.note-title,.note-block textarea{display:block;min-height:44px;resize:none;overflow:hidden;border:0;background:transparent;border-radius:2px;box-shadow:none;padding:8px 0;color:var(--ink);width:100%;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;font-weight:400;line-height:1.65;letter-spacing:-.2px}
.note-title{font-size:30px!important;line-height:1.25;font-weight:720;letter-spacing:-1px;margin:0 0 17px;padding:4px 0 8px}
.note-title::placeholder{color:var(--muted);font-weight:650}
.note-title:focus-visible,.note-block textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.note-block{display:flex;align-items:flex-start;gap:2px;min-width:0;position:relative;margin:2px 0}
.note-block textarea{flex:1;min-width:0}
.note-block>input[type=checkbox]{margin:0 0 0 -12px;flex:none}
.note-block>input[type=checkbox]:before{border-radius:50%;border-color:var(--note-accent)}
.note-block>input[type=checkbox]:checked:before{background:var(--note-accent)}
.note-block>input[type=checkbox]:checked:after{color:var(--note-paper)}
.note-check-block:has(input:checked) textarea{color:var(--muted);text-decoration:line-through}
.note-block-actions{flex:none;position:relative;width:44px;margin-right:-14px;color:var(--muted)}
.note-block-actions summary{display:grid;place-items:center;cursor:pointer;list-style:none;width:44px;height:44px;border-radius:8px}
.note-block-actions summary::-webkit-details-marker{display:none}
.note-block-actions summary:hover{background:var(--soft)}
.note-block-actions .line-icon{width:16px}
.note-block-actions>div{position:absolute;top:44px;right:0;z-index:4;min-width:160px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}
.note-block-actions button{display:block;white-space:nowrap;width:100%;text-align:left;font-size:12px}
.note-add-block{display:flex;gap:6px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:28px;padding-top:12px}
.note-add-block button{display:flex;align-items:center;gap:7px;color:var(--note-accent);font-size:13px;padding:8px}
.note-add-block .line-icon{width:19px}
.note-task-link{display:flex;align-items:center;gap:7px;margin:10px 0;color:var(--accent);background:var(--active);font-size:12px;padding:10px 12px;max-width:100%;text-align:left}
.note-task-link span{overflow-wrap:anywhere;min-width:0}
.note-task-link .line-icon{width:16px;height:16px}
.note-block-link{padding-left:32px}
.note-alert{padding:12px 14px;border:1px solid var(--warning-border);color:var(--warning);background:var(--warning-bg);border-radius:10px;font-size:12px;line-height:1.65;margin:0 0 18px;white-space:pre-wrap;overflow-wrap:anywhere}
.note-alert button{display:block;font-weight:650}
.note-conflict{display:flex;gap:6px;flex-wrap:wrap;margin:-8px 0 22px}
.note-conflict button{font-size:12px;color:var(--accent);border:1px solid var(--control-border);padding:8px 10px}
.note-menu{position:absolute;right:20px;top:58px;z-index:5;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:7px;box-shadow:var(--shadow);min-width:190px;max-width:calc(100% - 32px)}
.note-menu button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;font-size:13px;white-space:nowrap}
.note-menu .line-icon{width:18px;height:18px}
.note-bottom-space{height:100px}
#notes-choice{max-width:560px;overflow:auto}
#notes-choice-body{min-width:0}
#notes-choice h2{font-size:22px;font-weight:700;letter-spacing:-.5px;color:var(--ink);border:0;margin:0 0 15px;padding:0}
#notes-choice h3{font-size:13px;margin:22px 0 8px}
#notes-choice p{color:var(--muted);font-size:13px;line-height:1.7}
#notes-choice label{margin:18px 0}
#notes-choice select,#notes-choice input{width:100%;font-size:16px}
#notes-choice pre{margin:0;max-height:26vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding:12px;border-radius:8px;border:1px solid var(--line);background:var(--bg)}
.notes-choice-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:16px;margin-top:22px}
.notes-choice-actions button{font-size:13px;border:1px solid var(--control-border);text-align:center}
.notes-choice-actions button.primary{border-color:var(--primary)}
.task-note-back{display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:var(--active);color:var(--accent);font-size:13px;margin-bottom:18px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(min-width:901px){.note-workspace{height:calc(100dvh - 68px);position:sticky;top:0}.note-back span{display:none}}
@media(max-width:1100px) and (min-width:901px){.notes-layout{grid-template-columns:280px minmax(0,1fr)}.notes-library{padding:26px 18px}.note-topbar{padding:8px 14px}.note-scroll{padding-left:24px;padding-right:24px}}
@media(max-width:900px){
 .notes-layout{display:block;min-height:0}
 .notes-library{border:0;padding:27px max(22px,env(safe-area-inset-right,0px)) calc(105px + env(safe-area-inset-bottom,0px)) max(22px,env(safe-area-inset-left,0px));max-width:700px;margin:0 auto}
 .notes-heading{margin-bottom:22px}.notes-heading h1{font-size:30px}.notes-eyebrow{font-size:11px;margin-bottom:6px}
 .note-row{padding:16px 13px;min-height:103px}.note-row strong{font-size:17px}.note-preview{font-size:14px}
 .notes-group{margin-top:16px;padding-left:13px;font-size:12px}.notes-list-tools{margin-top:7px;font-size:12px}
 .note-workspace{display:none}
 .notes-page.has-note .note-workspace{display:flex;position:fixed;left:0;right:0;top:var(--viewport-top,0px);height:var(--viewport-height,100dvh);z-index:12;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
 .note-topbar{min-height:58px;padding:7px max(10px,env(safe-area-inset-right,0px)) 7px max(10px,env(safe-area-inset-left,0px));gap:0}
 .note-back{font-size:14px;padding-right:3px}.note-back .line-icon{width:21px}#note-save-status{font-size:10px;max-width:132px}.note-save{font-size:12px;padding:7px}.note-more{padding:12px 8px}
 .note-scroll{padding:24px max(26px,env(safe-area-inset-right,0px)) 20px max(26px,env(safe-area-inset-left,0px))}
 .note-date{font-size:11px;margin-bottom:28px}.note-title{font-size:30px!important;margin-bottom:14px}.note-block textarea{font-size:17px;line-height:1.65}.note-block-actions{margin-right:-14px}.note-menu{top:calc(52px + env(safe-area-inset-top,0px));right:12px}
 body.note-editing #bottom-nav,body.note-editing main>header{visibility:hidden}
 body.note-editing #toast{z-index:55;bottom:calc(12px + env(safe-area-inset-bottom,0px))}
 #notes-choice{z-index:40}
 #notes-choice h2{font-size:21px}
}
@media(max-width:374px){.notes-library{padding-left:17px;padding-right:17px}.note-scroll{padding-left:20px;padding-right:20px}.note-back span{font-size:13px}#note-save-status{max-width:95px;font-size:10px}.note-title{font-size:28px!important}.notes-choice-actions{justify-content:stretch}.notes-choice-actions button{flex:1 1 100%}}
@media(max-width:900px){body.note-editing{overflow:hidden}.notes-page.has-note .notes-library{display:none}}
.note-orphan-link{margin:18px 0;color:var(--muted);font-size:11px}.note-orphan-link .note-task-link{margin-top:5px}
#notes-message>button{display:block;margin-top:8px;font-size:12px;color:var(--accent);padding:8px 0}

@media(max-width:374px){#bottom-nav{gap:0;padding-left:max(8px,env(safe-area-inset-left,0px));padding-right:max(8px,env(safe-area-inset-right,0px))}#bottom-nav button{padding-left:2px;padding-right:2px;letter-spacing:-.25px}}

/* Shopping list: purchase and list selection are separate actions. */
.shopping-summary{gap:8px;margin:18px 0 14px}
.shopping-summary button{min-height:44px;padding:9px 12px;font-size:13px;text-align:left}
.shopping-list-tools,.shopping-select-actions{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:12px 0}
.shopping-list-tools label{flex:1 1 180px;font-size:12px;color:var(--muted)}
.shopping-list-tools input{display:block;width:100%;min-height:44px;margin-top:5px;font-size:16px}
.shopping-list-tools button,.shopping-select-actions button{min-height:44px}
.shopping-row{display:flex;align-items:flex-start;gap:12px;min-width:0}
.shopping-row-main{flex:1 1 auto;min-width:0}
.shopping-row-controls{flex:0 1 180px;min-width:130px;display:flex;align-items:stretch;flex-direction:column;gap:7px}
.shopping-row-controls button,.shopping-row-controls select{min-height:44px;width:100%;font-size:13px;text-align:center}
.shopping-row-controls .shopping-channel{width:100%;max-width:none;font-size:14px}
.shopping-selection-cell{flex:0 0 44px;min-height:44px;display:grid;place-items:center}
.shopping-selection-cell input{width:24px;height:24px;accent-color:var(--accent);cursor:pointer}
.shopping-status{display:block;line-height:1.5;overflow-wrap:anywhere}
.shopping-source-detail{display:flex;flex-direction:column;gap:6px;border-top:1px solid var(--line);padding:12px 0}
.shopping-source-detail span{font-size:12px;color:var(--muted)}
.shopping-source-detail button{align-self:flex-start;min-height:44px;text-align:left}
.shopping-selection-bar{position:sticky;bottom:calc(72px + env(safe-area-inset-bottom,0px));z-index:8;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px;box-shadow:0 -8px 18px var(--shadow-soft)}
.shopping-selection-bar button{min-height:44px}
.shopping-selection-bar+.shopping-toolbar{display:none}
#food-confirm p{white-space:pre-line;max-height:50vh;overflow:auto}
@media(max-width:600px){
 .shopping-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .shopping-summary button{width:100%;min-width:0;line-height:1.3}
 .shopping-row{flex-wrap:wrap;gap:6px 10px;padding:14px 0}
 .shopping-row-main{flex:1 1 calc(100% - 54px)}
 .shopping-row-controls{flex:1 1 100%;min-width:0;grid-column:auto;flex-direction:row;flex-wrap:wrap;margin-left:0;gap:6px}
 .shopping-row-controls button,.shopping-row-controls select{width:auto;flex:1 1 130px;max-width:none;padding:8px 10px;font-size:13px}
 .shopping-list-tools button{flex:1 1 auto}
 .shopping-select-actions button{flex:1 1 160px}
 .shopping-selection-bar{margin:0 -10px;border-radius:10px}
 .shopping-selection-bar button{flex:1}
}

.shopping-exclusions{margin:18px 0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.shopping-exclusions h3{margin:0 0 8px;font-size:15px}
.shopping-exclusion{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 0;border-top:1px solid var(--line)}
.shopping-exclusion strong{flex:1 1 130px}
.shopping-exclusion span{font-size:12px;color:var(--muted)}
.shopping-exclusion button{min-height:44px;margin-left:auto}
@media(max-width:600px){.shopping-exclusion button{flex:1 1 100%;margin-left:0}}

/* Keep row actions visible without a tall button stack. */
.shopping-row-controls{flex:0 1 270px;min-width:220px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;align-items:stretch;gap:7px}
.shopping-row-controls button,.shopping-row-controls select{min-width:0;width:100%;min-height:44px;white-space:normal}
.shopping-row-controls .shopping-buy{font-weight:700;background:var(--active);border:1px solid var(--accent);color:var(--accent)}
.shopping-exclusion-warning{color:var(--warning)!important;font-weight:650;flex:1 1 100%}
.shopping-exclusion select{min-height:44px;font-size:16px}
@media(max-width:600px){.shopping-row-controls{flex:1 1 100%;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.shopping-row-controls button,.shopping-row-controls select{flex:none;width:100%;font-size:13px}.shopping-exclusion button{flex:1 1 100%}}

/* A shopping list first: one status rail, then one quiet list. */
.shopping-list-page{--shop-bought:#226244;--shop-on-bought:#ffffff;--shop-bought-bg:#e7f4ef;--shop-check:#8a651d;--shop-check-bg:#fff5dd}
body.dark .shopping-list-page{--shop-bought:#98ddba;--shop-on-bought:#153326;--shop-bought-bg:#1c3a33;--shop-check:#e8cb8a;--shop-check-bg:#392f1d}
.shopping-list-page .food-heading{margin-bottom:12px}
.shopping-list-page .food-heading .food-eyebrow{display:none}
.shopping-list-page .food-heading h1{letter-spacing:-1px}
.shopping-list-page .food-heading p{max-width:58ch}
.shopping-list-page .shopping-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:18px 0 16px;background:var(--surface);border:0;border-radius:var(--card-radius);overflow:hidden}
.shopping-list-page .shopping-summary button{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:4px;min-width:0;min-height:82px;margin:0;padding:12px 15px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;color:var(--muted);text-align:left;line-height:1.25}
.shopping-list-page .shopping-summary button:last-child{border-right:0}
.shopping-list-page .shopping-summary button:hover{background:var(--soft)}
.shopping-list-page .shopping-summary button.active{background:var(--active);color:var(--accent);box-shadow:inset 0 3px var(--accent)}
.shopping-list-page .shopping-summary button[data-shopping-filter="bought"].active{background:var(--shop-bought-bg);color:var(--shop-bought);box-shadow:inset 0 3px var(--shop-bought)}
.shopping-list-page .shopping-summary button[data-shopping-filter="check"].active{background:var(--shop-check-bg);color:var(--shop-check);box-shadow:inset 0 3px var(--shop-check)}
.shopping-list-page .shopping-bucket-label{font-size:12px;font-weight:600;overflow-wrap:anywhere}
.shopping-list-page .shopping-bucket-count{font-size:25px;line-height:1;font-weight:750;font-variant-numeric:tabular-nums;letter-spacing:-.8px;color:var(--ink)}
.shopping-list-page .shopping-summary button.active .shopping-bucket-count{color:inherit}
.shopping-list-page .shopping-list-tools{align-items:center;flex-wrap:nowrap;gap:9px;margin:0 0 12px}
.shopping-list-page .shopping-search-wrap{position:relative;display:block;flex:1 1 auto;min-width:0;margin:0;color:var(--muted)}
.shopping-list-page .shopping-search-wrap .line-icon{position:absolute;left:14px;top:50%;width:19px;height:19px;transform:translateY(-50%);pointer-events:none}
.shopping-list-page .shopping-search-wrap input{margin:0;padding:10px 13px 10px 42px;min-height:46px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--surface);color:var(--ink)}
.shopping-list-page .shopping-search-wrap input::placeholder{color:var(--muted);opacity:1}
.shopping-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.shopping-list-page .shopping-list-tools>button{flex:none;min-height:46px;padding:9px 14px;border:1px solid var(--control-border);background:var(--surface);font-size:13px;font-weight:650}
.shopping-list-page .shopping-select-actions{margin:0 0 12px}
.shopping-list-page .shopping-list{overflow:hidden;background:var(--surface);border-radius:var(--card-radius)}
.shopping-list-page .shopping-row{align-items:center;gap:16px;min-height:112px;padding:17px 18px;border-bottom:1px solid var(--line)}
.shopping-list-page .shopping-row:last-child{border-bottom:0}
.shopping-list-page .shopping-row-main{min-width:0}
.shopping-list-page .shopping-name{font-size:17px;line-height:1.34;font-weight:700;letter-spacing:-.25px;color:var(--ink);overflow-wrap:anywhere}
.shopping-list-page .shopping-required{margin-top:3px;font-size:13px;line-height:1.4;font-weight:650;color:var(--ink)}
.shopping-list-page .shopping-sources{margin-top:5px;font-size:12px;line-height:1.4;color:var(--muted)}
.shopping-list-page .shopping-status{margin-top:6px;font-size:12px;line-height:1.4;font-weight:600;color:var(--muted)}
.shopping-list-page .shopping-bucket-bought .shopping-status{color:var(--shop-bought)}
.shopping-list-page .shopping-bucket-check .shopping-status{color:var(--shop-check)}
.shopping-list-page .shopping-product{display:flex;align-items:center;gap:9px;margin-top:10px;padding-left:0;border:0;font-size:12px;line-height:1.4}
.shopping-list-page .shopping-product img{width:38px;height:38px;object-fit:contain;border:1px solid var(--line);border-radius:6px;background:var(--surface)}
.shopping-list-page .shopping-row-controls{flex:0 0 240px;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.shopping-list-page .shopping-row-controls button,.shopping-list-page .shopping-row-controls select{min-height:44px;padding:8px 10px;font-size:13px;font-weight:600;line-height:1.25;border-radius:var(--control-radius)}
.shopping-list-page .shopping-row-controls .shopping-buy{display:flex;align-items:center;justify-content:center;gap:6px;background:var(--shop-bought);border:1px solid var(--shop-bought);color:var(--shop-on-bought);font-weight:700}
.shopping-list-page .shopping-row-controls .shopping-buy:hover{filter:brightness(.9)}
.shopping-list-page .shopping-row-controls .shopping-buy .line-icon{width:17px;height:17px}
.shopping-list-page .shopping-row-controls .shopping-detail{background:var(--surface)}
.shopping-list-page .shopping-row-controls .shopping-channel{padding:8px 30px 8px 10px!important;font-size:13px;text-align:left}
.shopping-list-page .shopping-selection-cell{flex-basis:34px}
.shopping-list-page .shopping-selection-bar{margin-top:12px;border-color:var(--accent);box-shadow:0 4px 20px var(--shadow-soft)}
.shopping-list-page.shopping-selecting .shopping-toolbar{display:none}
.shopping-list-page .picnic-connection{margin:19px 0 0;padding:13px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
.shopping-list-page .picnic-connection strong{font-size:13px}
.shopping-list-page .picnic-connection p{font-size:12px}
.shopping-list-page .shopping-toolbar{margin-top:0;border-top:1px solid var(--line)}
.shopping-list-page :is(.shopping-summary button,.shopping-list-tools button,.shopping-row-controls button,.shopping-row-controls select,.shopping-selection-cell input,.shopping-search-wrap input):focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media(max-width:650px){
 .shopping-list-page .food-heading h1{font-size:27px}
 .shopping-list-page .shopping-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .shopping-list-page .shopping-summary button{min-height:68px;padding:10px 13px;border-bottom:1px solid var(--line)}
 .shopping-list-page .shopping-summary button:nth-child(2){border-right:0}
 .shopping-list-page .shopping-summary button:nth-child(n+3){border-bottom:0}
 .shopping-list-page .shopping-bucket-count{font-size:23px}
 .shopping-list-page .shopping-list-tools{gap:7px;flex-wrap:wrap}
 .shopping-list-page .shopping-search-wrap{flex:1 1 175px}
 .shopping-list-page .shopping-list-tools>button{padding:8px 10px;font-size:12px}
 .shopping-list-page .shopping-row{align-items:flex-start;gap:8px 10px;min-height:0;padding:15px 14px}
 .shopping-list-page .shopping-row-main{flex:1 1 calc(100% - 44px)}
 .shopping-list-page .shopping-row-controls{flex:1 1 100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:5px}
 .shopping-list-page .shopping-row-controls button,.shopping-list-page .shopping-row-controls select{font-size:13px}
 .shopping-list-page .shopping-name{font-size:16px}
 .shopping-list-page .picnic-connection{flex-wrap:wrap}
 .shopping-list-page .picnic-connection button{max-width:none}
 .shopping-list-page .shopping-toolbar{padding:10px 0}
}
@media(max-width:374px){.shopping-list-page .shopping-bucket-label{font-size:11px}.shopping-list-page .shopping-list-tools>button{font-size:11px;padding-left:8px;padding-right:8px}.shopping-list-page .shopping-row{padding-left:11px;padding-right:11px}.shopping-list-page .shopping-toolbar p{display:none}.shopping-list-page .shopping-toolbar button{width:100%;max-width:none}}
@media(prefers-reduced-motion:reduce){.shopping-list-page button{transition:none}}
/* Recipe feedback stays separate from ingredients and shopping snapshots. */
.recipe-sort{display:flex;align-items:center;gap:10px;margin:-5px 0 22px;color:var(--muted);font-size:12px}
.recipe-sort select{width:auto;max-width:100%;min-height:42px;background:var(--bg);color:var(--ink);border-color:var(--control-border);font-size:14px}
.recipe-card-rating{display:block;margin-top:9px;font-size:13px;line-height:1.5;color:var(--ink)}
.recipe-rating-stars{color:var(--warning)}
.recipe-rating-empty,.recipe-rating-count{color:var(--muted);font-size:12px}
.recipe-review-panel{max-width:760px;margin:22px 0 26px;padding:18px 20px;border:1px solid var(--line);border-radius:var(--card-radius);background:var(--surface)}
.recipe-review-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.recipe-review-heading h2{font-size:16px;margin:0 0 7px;color:var(--ink)}
.recipe-rating-summary{font-size:18px;font-weight:650;margin:0;line-height:1.6;color:var(--ink)}
.recipe-review-scores{display:flex;flex-wrap:wrap;gap:12px 30px;margin:18px 0 0}
.recipe-review-scores>div{min-width:85px}
.recipe-review-scores dt{font-size:12px;color:var(--muted);margin-bottom:4px}
.recipe-review-scores dd{font-size:13px;font-weight:600;margin:0;color:var(--ink)}
.recipe-review-comment{font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);margin:16px 0 0}
.recipe-review-comment strong,.recipe-review-comment span{display:block}
.recipe-review-comment strong{font-size:12px;color:var(--muted);margin-bottom:3px}
.recipe-review-person{border:0;border-bottom:1px solid var(--line);padding:0 0 16px;margin:0 0 18px;min-width:0}
.recipe-review-person legend{font-size:14px;font-weight:650;color:var(--ink);padding:0;margin-bottom:9px}
.recipe-star-options{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.food-editor-body .recipe-star-option{position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer;width:42px;min-height:44px;margin:0;color:var(--muted);border:1px solid var(--control-border);border-radius:8px;background:var(--bg);font-size:27px;line-height:1}
.food-editor-body .recipe-star-option.is-filled{color:var(--warning);background:var(--bg)}
.food-editor-body .recipe-star-option:has(input:checked){border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.food-editor-body .recipe-star-option:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.food-editor-body .recipe-star-option input{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:0;opacity:0;overflow:hidden}
.food-editor-body .recipe-review-unrated{display:flex;align-items:center;gap:6px;min-height:44px;margin:0 0 0 8px;cursor:pointer;font-size:12px;white-space:nowrap;color:var(--muted)}
.food-editor-body .recipe-review-unrated input{width:17px;height:17px;min-height:17px;margin:0;accent-color:var(--accent)}
#recipe-review-preview{margin-top:4px}
@media(max-width:520px){.recipe-review-panel{padding:16px}.recipe-review-heading>.food-button{width:100%}.recipe-review-scores{gap:12px 18px}.recipe-review-scores>div{min-width:70px}.food-editor-body .recipe-star-option{width:38px}.food-editor-body .recipe-review-unrated{flex-basis:100%;margin-left:0;min-height:36px}.recipe-sort{align-items:flex-start;flex-direction:column;gap:6px}.recipe-sort select{width:100%}}
@media(forced-colors:active){.food-editor-body .recipe-star-option.is-filled{color:Highlight}.food-editor-body .recipe-star-option:has(input:checked){outline:2px solid Highlight}}

/* Explain a pending cart check before the user attempts another kitchen action. */
.shopping-gate{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.shopping-gate-copy{flex:1 1 320px;min-width:0}
.shopping-gate-copy h2{font-size:1rem;margin:0 0 6px}
.shopping-gate-copy p{margin:5px 0;line-height:1.5}
.shopping-gate .food-button{flex:0 0 auto;align-self:center}
@media(max-width:540px){.shopping-gate{gap:10px}.shopping-gate .food-button{width:100%}}

@media(max-width:900px){
 .food-heading{padding:16px}
 .food-heading h1{font-size:30px}
}
