/* A quieter workspace with larger, practical cooking controls. */
:root{
  --bg:#f6f7f5;--surface:#fff;--surface2:#f0f3ef;
  --text:#202a25;--muted:#58645d;--line:#dbe2db;
  --green:#285b46;--green2:#1e4937;--greenBright:#628e70;
  --greenSoft:#e8f1e9;--accent-dark:#285b46;--accent-soft:#e8f1e9;
  --radius:16px;--shadow:0 12px 36px #152d1e0a;
}
body{background:var(--bg);letter-spacing:-.012em}
body.dark{
  --bg:#151c18;--surface:#1d2721;--surface2:#253229;
  --text:#edf3ed;--muted:#b4c2b6;--line:#3b4b3f;
  --green:#87bd98;--green2:#a2d2af;--greenSoft:#293d30;
  --accent-dark:#b0d5bb;--accent-soft:#2b3d31;
}
body.dark .primary{color:#14231a}
.heading h1,.hero-copy h1,.card-body h2,.brand strong,
.section-heading h2,.freezer-builder h2,.home-outcome-card h2,
.ingredient-scale-card strong,.cook h3{font-family:inherit;letter-spacing:-.035em}
.heading h1{font-weight:750;font-size:clamp(1.9rem,3.2vw,2.6rem)}
.topbar{background:var(--surface);box-shadow:none}
.brand strong{font-weight:800}.brand small{letter-spacing:0;font-size:.72rem}
.logo{border-radius:12px;font-family:inherit;font-size:1.15rem}
.sidebar{background:var(--surface);padding:24px 12px}
.nav{font-weight:600}.nav.active,.nav:hover{box-shadow:none;background:var(--surface2)}
.nav.active{color:var(--green2);box-shadow:inset 3px 0 var(--green)}
.side-note{background:transparent;border:0;padding:12px 8px;line-height:1.6}
.eyebrow{font-size:.75rem;letter-spacing:.07em}
.primary,.secondary,.danger,.icon,.back{border-radius:10px;min-height:44px}
.primary{box-shadow:none;font-weight:700}.primary:hover{background:var(--green2)}
.recipe-card,.hero{box-shadow:none;border-radius:18px}
.recipe-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.card-body h2{font-size:1.15rem;font-weight:750}.card-body{padding:20px}
.hero-main{grid-template-columns:minmax(0,1.08fr) minmax(300px,.92fr);min-height:270px}
.hero-copy{padding:30px}.hero-copy h1{font-weight:760;font-size:clamp(2rem,3.5vw,3.1rem);line-height:1.08}
.hero-copy>p:not(.eyebrow){font-size:1rem;line-height:1.6}
.hero-illustration{min-height:270px}.tags{margin-top:16px;gap:7px}
.tag{background:var(--surface2);border:0;border-radius:6px;font-size:.8rem}
.hero-actions{gap:8px;padding:16px 20px;background:var(--surface)}
.hero-actions>button{font-size:.95rem}
.variant-box{gap:16px;padding:22px;background:var(--surface)}
.variant-row,.variable-row{gap:8px}.variant-label,.variable-label{font-size:.875rem}
.variant-btn,.variable-btn,.scale-btn{border-radius:8px;min-height:44px;font-size:.875rem}
.variant-note{border:0;border-radius:0;background:transparent;padding:0;color:var(--muted);font-size:.9rem;line-height:1.6}
.variant-warning{font-size:.9rem;line-height:1.6;border-radius:10px}
.meta-cell strong{font-size:1.05rem}.meta-cell span{font-size:.75rem}
.tabs{margin-top:24px;border-radius:12px 12px 0 0}.tab{font-size:.95rem}
.ingredient-scale-card{background:var(--surface2);border-color:var(--line);box-shadow:none;border-radius:12px}
.ingredient-scale-card small{font-size:.85rem}.ingredient-scale-card .eyebrow{font-size:.72rem}
.ingredient-scale-card strong{font-size:1.1rem}
.instruction p,.prep-card p{line-height:1.65}
.instruction-key{background:none;color:var(--text);padding:0;border-radius:0;font-weight:750}
.wake-control{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:8px 20px;border-bottom:1px solid var(--line);background:var(--surface)}
.wake-control [data-wake-toggle]{display:inline-flex;align-items:center;gap:8px;min-height:36px;font-size:.8rem;padding:6px 10px;box-shadow:none}
[data-wake-toggle]::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--muted);flex-shrink:0}
[data-wake-toggle][aria-pressed="true"]::before{background:var(--green)}
[data-wake-status]{color:var(--muted);font-size:.8rem;line-height:1.4}
[data-wake-state="active"]{color:var(--accent-dark)}
.wake-menu{position:relative;align-self:center}
.wake-menu>summary{display:flex;align-items:center;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;cursor:pointer;font-size:.8rem;font-weight:650;list-style:none;white-space:nowrap}
.wake-menu>summary::-webkit-details-marker{display:none}
.wake-menu-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:50;width:min(310px,calc(100vw - 24px));padding:16px;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.wake-menu-panel [data-wake-status]{display:block;flex-basis:100%;font-size:.875rem}
.cook{border-radius:18px;grid-template-rows:auto auto 5px minmax(0,1fr) auto}.cook>header{padding:15px 22px}.cook>header h2{font-size:1.15rem}
.cook>main{background:var(--bg);padding:20px}
.cook-plan{background:var(--surface);border:0;padding:8px 0;margin-bottom:16px}
.cook-plan-primary strong{font-size:.875rem}.cook-plan-primary span{font-size:.78rem}
.cook-plan summary{font-size:.8rem}.cook-plan details p{font-size:.875rem;line-height:1.6}
.cook-workspace{grid-template-columns:150px minmax(0,1fr) 240px;gap:20px}
.cook-step-nav{gap:4px}.cook-step-nav button{min-height:48px;padding:8px 4px;border-radius:8px}
.cook-step-nav button b{font-size:.8rem;line-height:1.4}.cook-step-nav button span{font-size:.75rem}
.cook-focus-card{padding:24px;min-height:0;border-radius:12px;box-shadow:none}
.cook-focus-card .cook-count{font-size:.8rem;letter-spacing:.035em}
.cook-focus-card h3{font-size:clamp(1.5rem,2.2vw,2rem);line-height:1.18;margin:10px 0 20px}
.cook-instruction-lead{font-size:1.08rem!important;line-height:1.7!important}
.cook-instruction-points{gap:0;margin-top:16px}
.cook-instruction-points li{padding:12px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;font-size:1rem;line-height:1.65}
.cook-instruction-points li strong,.cook-instruction-points li span{font-size:inherit;line-height:inherit}
.cook-sequence{display:grid;gap:18px;margin:20px 0 0;padding-left:25px;font-size:1rem;line-height:1.65}
.cook-sequence li{padding-left:7px}.cook-sequence li::marker{font-weight:800;color:var(--accent-dark)}
.cook-next-preview{font-size:.875rem;line-height:1.5}
.cook-amounts-panel{padding:16px;border-radius:12px;background:var(--surface);box-shadow:none}
.cook-amounts-panel>.eyebrow{font-size:.75rem}.cook-amt{font-size:.95rem;line-height:1.5;padding:11px 0;grid-template-columns:minmax(78px,.8fr) minmax(0,1fr)}
.cook-amounts-empty{font-size:.875rem}.cook>footer{box-shadow:none;border-top:1px solid var(--line)}
.cook>footer button{font-size:1rem;min-height:48px}
.guided-step h3{font-size:1.65rem;line-height:1.2}.guided-step>p{font-size:1.05rem;line-height:1.7}
.prep-measures{padding:16px 18px;margin:18px 0;border:1px solid var(--line);border-radius:12px;background:var(--surface2)}
.prep-measures h4{margin:0 0 8px;font-size:.875rem}.prep-measures .cook-amounts{margin:0;padding:0;border:0}.prep-directions br{display:block;content:"";margin-top:12px}
.prep-measures>summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:700;font-size:.9rem}.prep-measures>summary::before{content:"+";font-size:1.2rem}.prep-measures[open]>summary::before{content:"−"}.prep-directions .cook-sequence{margin-top:16px;gap:20px}.prep-directions .cook-instruction-lead{margin-top:12px}
.cook-amounts-panel.empty{display:none}
.component-recipe-header{display:flex;align-items:flex-start;gap:16px;justify-content:space-between;margin-bottom:20px}.component-recipe-header h2{margin:0;font-family:inherit;font-size:1.7rem;line-height:1.2}
.component-recipe-header button{flex:0 0 44px}.component-recipe-controls{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:12px;margin-bottom:24px}.component-recipe-controls label{display:grid;gap:6px;font-size:.875rem;font-weight:650}.component-recipe-controls select{max-width:100%;width:100%}
#componentRecipeDialog{width:min(800px,calc(100vw - 24px));padding:0;overflow:hidden}#componentRecipeDialog .dialog-scroll{padding:24px;max-height:calc(100dvh - 36px);overflow:auto}
.component-recipe-note{color:var(--muted);line-height:1.6}.component-recipe-ingredients{margin:12px 0 30px}.component-recipe-ingredients>div{display:flex;gap:20px;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line)}.component-recipe-ingredients dd{margin:0;font-weight:750;flex-shrink:0}.component-recipe-ingredients dt{overflow-wrap:anywhere}
.component-recipe-step{margin:16px 0 24px;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.component-recipe-step h4{font-size:1.1rem;margin:8px 0 16px}.component-recipe-storage{padding:18px;background:var(--surface2);border-radius:12px;line-height:1.6}
.paused-workflows{padding:20px 22px;border-top:1px solid var(--line);background:var(--surface2)}.paused-workflows h3{margin:0 0 12px;font-family:inherit;font-size:1rem}.paused-workflow-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-top:1px solid var(--line)}.paused-workflow-row>div{display:grid;gap:4px}.paused-workflow-row small{color:var(--muted);line-height:1.5}.paused-workflow-row button{flex-shrink:0}
.shopping-summary{box-shadow:none;border-radius:14px;background:var(--surface)}
.shopping-summary strong{font-family:inherit}
.shopping-recipes{color:var(--muted);font-size:.9rem;line-height:1.5;overflow-wrap:anywhere}
.shopping-section{margin-top:26px}.shopping-section>header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:0 0 10px;border-bottom:1px solid var(--line)}
.shopping-section h2{font-family:inherit;font-size:1.05rem;font-weight:750;letter-spacing:0}
.shopping-row{background:var(--surface);box-shadow:none;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:16px 12px}
.shopping-item-title{display:block;font-size:1rem;font-weight:650;line-height:1.45}
.shopping-item-note{display:block;color:var(--muted);font-size:.85rem;line-height:1.5;margin-top:4px}
.shopping-breakdown{margin-top:5px;font-weight:400;white-space:normal}
.shopping-breakdown>summary{font-size:.8rem;color:var(--muted);cursor:pointer;min-height:32px;padding:5px 0;list-style:none}
.shopping-breakdown>summary::after{content:" +";font-weight:700}.shopping-breakdown[open]>summary::after{content:" −"}
.shopping-breakdown>summary::-webkit-details-marker{display:none}
.shopping-breakdown-body{margin:5px 0 8px;padding:12px;border-radius:8px;background:var(--surface2);color:var(--text)}
.shopping-recipe-contribution+section{margin-top:14px}.shopping-recipe-contribution h3{font-family:inherit;font-size:.85rem;font-weight:700;line-height:1.5;margin:0 0 6px}
.shopping-recipe-contribution ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.shopping-recipe-contribution li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;font-size:.8rem;line-height:1.5}
.shopping-recipe-contribution li strong{font-weight:650;white-space:normal;text-align:right}
.shopping-list-menu{position:relative}.shopping-list-menu>summary{cursor:pointer;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:.875rem}
.shopping-list-menu[open]>div{position:absolute;z-index:5;right:0;min-width:200px;display:grid;gap:6px;padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}
@media(max-width:1100px){.cook-workspace{grid-template-columns:130px minmax(0,1fr) 210px;gap:12px}.cook-focus-card{padding:20px}}
@media(max-width:760px){
  .topbar-inner{gap:8px;padding-inline:12px}.top-actions{gap:4px}.brand strong{font-size:.95rem}.brand small{font-size:.65rem}
  .wake-menu>summary{font-size:.72rem;padding-inline:8px}.wake-menu-panel{right:-90px}
  #main{padding-top:22px}.hero-main{grid-template-columns:1fr;min-height:0}.hero-copy{padding:24px 20px}.hero-copy h1{font-size:2.15rem}
  .hero-illustration{min-height:0}.hero-actions{padding:12px}.variant-box{padding:20px 16px;gap:14px}
  .variant-label,.variable-label{width:100%}.variant-btn,.variable-btn,.scale-btn{font-size:.9rem}
  .tabs{margin-top:18px}.tabs .tab{font-size:.8rem;min-height:48px}
  .component-recipe-controls{grid-template-columns:minmax(0,1fr)}
  #componentRecipeDialog{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}#componentRecipeDialog .dialog-scroll{height:100dvh;max-height:100dvh;padding:20px 16px}.component-recipe-header{position:sticky;top:-20px;background:var(--surface);padding-block:12px;z-index:2}.component-recipe-header h2{font-size:1.4rem}.component-recipe-step{padding:18px 16px}.paused-workflows{padding:16px}.paused-workflow-row{gap:12px}
  .ingredient-scale-card{gap:12px;padding:14px}.ingredient-scale-card small{font-size:.8rem}
  .modal .cook,.modal .prep-guide{width:100%;height:100dvh;max-height:100dvh;border-radius:0;inset:0;transform:none}
  .cook>header{padding:12px 16px}.cook>header h2{font-size:1.05rem}.wake-control{padding:6px 16px;gap:5px 10px}
  .wake-control [data-wake-toggle]{min-height:36px}.wake-control [data-wake-status]{font-size:.75rem;flex:1;min-width:120px}
  .cook>main{padding:12px 14px 22px;scrollbar-gutter:auto}.cook-plan{gap:8px;margin-bottom:12px;padding:8px}
  .cook-workspace{grid-template-columns:minmax(0,1fr);grid-template-areas:"steps" "focus" "amounts";gap:12px}
  .cook-workspace.complete{grid-template-columns:minmax(0,1fr);grid-template-areas:"steps" "focus" "amounts";gap:12px}
  .cook-step-nav{display:flex;gap:7px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:thin}.cook-step-nav button{flex:0 0 40px;display:grid;place-items:center;min-height:40px;padding:0}.cook-step-nav button span{width:32px;height:32px;font-size:.8rem}.cook-step-nav button b{display:none}
  .cook-focus-card{padding:20px 18px}.cook-focus-card h3{font-size:1.6rem}.cook-instruction-lead{font-size:1.05rem!important}
  .cook-instruction-points li,.cook-sequence{font-size:1rem;line-height:1.7}
  .cook-amounts-panel{padding:16px 18px}.cook-amt{font-size:1rem;grid-template-columns:minmax(100px,.7fr) minmax(0,1fr)}
  .cook>footer{padding:10px 14px calc(10px + env(safe-area-inset-bottom))!important;gap:8px}.cook>footer button{min-width:0;padding-inline:12px}.cook>footer #backToPrep{margin-left:auto}
  .shopping-row{padding:14px 6px}.shopping-section{margin-top:22px}.shopping-item-title{font-size:1rem}.shopping-breakdown-body{padding:10px}
  .shopping-row{grid-template:"check name delete" auto "check amount coverage" auto / 44px minmax(0,1fr) 92px;gap:0 7px;padding:10px 6px}
  .shopping-row .shopping-amount{margin-top:4px;padding:0;font-size:.95rem}.shopping-row .shopping-coverage{margin-top:4px;padding:5px 8px;font-size:.8rem}
}
@media(prefers-reduced-motion:reduce){.recipe-card,.meal-preview-layer{transition:none;animation:none}}
@media(max-width:430px){.topbar .brand .logo{display:none}.topbar .brand{min-width:0}.topbar .brand strong{font-size:.875rem}.topbar-inner{gap:6px}.top-actions{flex-shrink:0}}
@media(max-width:760px){#componentRecipeDialog{max-width:100%;margin:0;border:0}#componentRecipeDialog .dialog-scroll{max-height:100%;scrollbar-gutter:auto}}
@media print{.wake-control{display:none!important}.cook-sequence li{break-inside:avoid}.shopping-breakdown-body{background:none}.shopping-list-menu{display:none}}

/* Directions and their ingredients read as one small recipe step. */
.cook-workspace{grid-template-columns:155px minmax(0,1fr);grid-template-areas:"steps focus";gap:24px}
.cook-workspace.complete{grid-template-columns:minmax(0,1fr);grid-template-areas:"focus"}
.cook-focus-card{display:grid;grid-template-columns:25px minmax(0,1fr);column-gap:12px;row-gap:0;align-content:start;padding:20px 8px;border:0;border-radius:0;box-shadow:none;min-height:0}
.cook-focus-card #cookCount{grid-column:1;grid-row:1/4;font-size:1.45rem;font-weight:400;color:var(--muted);line-height:1.35;letter-spacing:0}
.cook-focus-card h3{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cook-focus-card #cookText,.cook-focus-card .cook-amounts-panel,.cook-focus-card .cook-next-preview{grid-column:2}
#cookText .cook-action,.prep-directions .cook-action{font-size:.95rem;line-height:1.55;margin:0;color:var(--text)}
.cook-focus-card .cook-amounts-panel{display:block;padding:0;margin:14px 0 0;border:0;border-radius:0;background:transparent;box-shadow:none}
.cook-focus-card .cook-amounts-panel.empty{display:none}
.cook-focus-card .cook-amounts-panel>.eyebrow{display:none}
.cook-amounts{display:grid;gap:5px;margin:0;padding:0;border:0}
.cook-amt{display:block;padding:0;border:0;font-size:.8rem;font-weight:400;line-height:1.5;color:var(--muted)}
.cook-amt span:first-child{font-weight:400;color:inherit}.cook-amt span+span::before{content:" "}
.cook-next-preview{display:none}
.cook-workspace.complete .cook-focus-card{display:block;padding:20px}.cook-workspace.complete #cookCount{font-size:1rem}.cook-workspace.complete h3{position:static;width:auto;height:auto;clip-path:none;white-space:normal}
.prep-measures{padding:0;margin:14px 0 20px;border:0;border-radius:0;background:transparent}.guided-step h3{font-size:1.1rem;margin:10px 0 12px}.guide-counter{font-size:.8rem}
@media(max-width:760px){
  .cook-workspace{grid-template-columns:minmax(0,1fr);grid-template-areas:"steps" "focus";gap:12px}
  .cook-workspace.complete{grid-template-areas:"focus"}
  .cook-focus-card{padding:12px 2px;column-gap:10px}.cook-focus-card #cookCount{font-size:1.35rem}
  #cookText .cook-action,.prep-directions .cook-action{font-size:.95rem;line-height:1.55}
  .cook-amt{font-size:.82rem;line-height:1.5}.cook>header h2{font-size:.95rem}.cook>header .eyebrow{display:none}
}
/* A recipe page, with one clear action and its measurements underneath. */
html:has(dialog[open]){overflow:hidden}
dialog.modal{overflow:hidden;width:100vw}
.modal .cook{max-width:1080px;margin-inline:auto;box-shadow:0 24px 80px #10271d38}
.cook>header{align-items:flex-start;gap:20px;padding:24px 28px 12px}
.cook>header>div{min-width:0}.cook>header h2{font-size:1.15rem;font-weight:750;line-height:1.35;letter-spacing:-.025em}
.cook>header>.icon{flex:0 0 44px;background:var(--surface2);border:0;border-radius:50%;color:var(--muted)}
.cook-meta{font-size:.8rem;line-height:1.5;color:var(--muted);margin:5px 0 0}.cook-meta:empty{display:none}
.cook>header .eyebrow{display:none}
.cook>.wake-control{padding:0 28px 14px;gap:8px 12px;border:0}
.cook .wake-control [data-wake-toggle]{min-height:36px;padding:7px 11px;border:1px solid var(--line);border-radius:8px;font-weight:600;font-size:.75rem}
.cook .wake-control [data-wake-toggle][aria-pressed="true"]{background:var(--greenSoft);color:var(--accent-dark);border-color:transparent}
.cook .wake-control [data-wake-status][data-wake-state="active"]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.cook .progress{height:3px;background:var(--surface2)}.cook .progress::-webkit-progress-bar{background:var(--surface2)}
.cook{grid-template-rows:auto auto 3px minmax(0,1fr) auto}
.cook>main{background:var(--surface);padding:24px 28px 32px;min-height:0}
.cook-workspace{grid-template-columns:220px minmax(0,1fr);gap:32px}.cook-step-nav{padding-right:20px;border-right:1px solid var(--line);max-height:calc(100dvh - 350px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.cook-step-nav button{border:0;border-radius:8px;min-height:46px;gap:10px}
.cook-step-nav button span{width:28px;height:28px;border:0;background:transparent;font-weight:600;color:var(--muted)}
.cook-step-nav button.done span{background:var(--greenSoft);border:0;color:var(--accent-dark)}
.cook-step-nav button.current{border:0;background:var(--greenSoft)}
.cook-step-nav button.current span{background:var(--green2);color:var(--surface)}
.cook-focus-card{grid-template-columns:28px minmax(0,1fr);column-gap:16px;padding:10px 0 24px;border-bottom:1px solid var(--line);background:transparent}
.cook-focus-card #cookCount{grid-row:1/4;font-size:1.55rem;line-height:1.2;font-weight:400;color:var(--muted)}
.cook-focus-card h3{position:static;grid-column:2;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;font-size:1.1rem;font-weight:700;line-height:1.4;letter-spacing:-.02em;margin:0 0 10px}
.cook-focus-card #cookText{max-width:620px}
#cookText .cook-action,.prep-directions .cook-action{font-size:1rem;line-height:1.6}
.cook-focus-card .cook-amounts-panel{grid-area:auto;grid-column:2;margin:18px 0 0;max-width:620px}
.cook-amounts{gap:3px}.cook-amt{font-size:.875rem;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.cook-amt span:first-child{font-weight:600;color:var(--text)}
.cook>footer{padding:16px 28px;background:var(--surface);gap:10px}.cook>footer #backToPrep{margin-left:auto}
.cook-workspace.complete .cook-focus-card{border:0}.cook-workspace.complete h3{font-size:1.5rem}
@media(max-width:760px){
  .modal .cook,.modal .prep-guide{width:100vw;height:100dvh;margin:0}
  .cook>header{padding:20px 20px 10px;gap:12px}.cook>header h2{font-size:1.1rem}
  .cook-meta{font-size:.8rem}.cook>.wake-control{padding:0 20px 14px}
  .cook>main{padding:16px 20px 20px}
  .cook-workspace{grid-template-columns:minmax(0,1fr);gap:20px}
  .cook-step-nav{max-height:none;overflow-y:hidden;gap:4px;padding:0 0 14px;border-right:0;border-bottom:1px solid var(--line);scrollbar-width:none}
  .cook-step-nav::-webkit-scrollbar{display:none}
  .cook-step-nav button{flex:0 0 44px;width:44px;min-height:44px;padding:0;background:transparent}
  .cook-step-nav button span{width:32px;height:32px;font-size:.8rem}.cook-step-nav button.current{background:transparent}
  .cook-focus-card{column-gap:12px;padding:0 0 26px;grid-template-columns:24px minmax(0,1fr)}
  .cook-focus-card #cookCount{font-size:1.4rem;line-height:1.4}.cook-focus-card h3{font-size:1.05rem;margin-bottom:10px}
  #cookText .cook-action,.prep-directions .cook-action{font-size:.97rem;line-height:1.6}
  .cook-amt{font-size:.875rem;line-height:1.5}
  .cook>footer{padding:12px 20px calc(12px + env(safe-area-inset-bottom))!important}
  .cook>footer button{font-size:.9rem;min-height:48px;padding-inline:14px}
  #cookModal footer button{white-space:nowrap}
}
.instruction{grid-template-columns:28px minmax(0,1fr);column-gap:16px;padding:24px}.instruction .num{font-size:1.4rem;line-height:1.4;color:var(--muted)}
.instruction h3{font-size:1.05rem;line-height:1.4;margin:0 0 10px}.instruction .cook-action,.prep-card .cook-action{font-size:1rem;line-height:1.6;margin:0}
.instruction .amounts,.prep-card .amounts{gap:3px;margin-top:16px}.step-amt{display:block;font-size:.875rem;font-weight:400;line-height:1.5;color:var(--muted)}
.step-amt span:first-child{font-weight:600;color:var(--text)}.step-amt span+span::before{content:" "}
@media(max-width:760px){.instruction{grid-template-columns:24px minmax(0,1fr);column-gap:12px;padding:24px 16px}.instruction .cook-action,.prep-card .cook-action{font-size:.97rem}}
.guided-step>.advance{margin:18px 0 0;padding:0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
.advance>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:.85rem;font-weight:600;color:var(--muted);list-style:none}
.advance>summary::after{content:"+";margin-left:auto;font-size:1rem}.advance[open]>summary::after{content:"−"}.advance>summary::-webkit-details-marker{display:none}
.advance .advance-title{margin-bottom:8px}.advance[open]{padding-bottom:14px}
.shopping-recipe-contribution li small{display:block;margin-top:4px;font-size:.78rem;line-height:1.5;color:var(--muted)}
.cook-action+.cook-action{margin-top:12px!important}
.cook-action strong{font-weight:700;color:var(--text)}
.component-recipe-formula{margin:20px 0;border-block:1px solid var(--line)}
.component-recipe-formula>summary{padding-block:16px;cursor:pointer;font-size:.9rem;font-weight:600}
.component-recipe-step .cook-action{font-size:1rem;line-height:1.6;margin:0}
.component-recipe-step .amounts{margin-top:16px}
.component-recipe-step{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;margin:0;padding:22px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.component-recipe-num{font-size:1.3rem;line-height:1.4;color:var(--muted)}
.component-recipe-step h4{font-size:1rem;line-height:1.4;margin:0 0 12px}
.component-recipe-note{font-size:.875rem;margin:12px 0}
.component-recipe-formula{margin:12px 0 20px}
.component-recipe-formula>summary{padding-block:12px;min-height:44px}
.component-recipe-controls{margin-bottom:16px}
@media(max-width:760px){.component-recipe-controls label:last-child{grid-template-columns:80px minmax(0,1fr);align-items:center}.component-recipe-header{margin-bottom:12px}.component-recipe-header h2{font-size:1.25rem;line-height:1.3}.component-recipe-step{padding-block:20px}}
.cook-plan{display:block;margin:0 0 12px;padding:0}
.cook-meal-details>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:.85rem;font-weight:600;list-style:none}
.cook-meal-details>summary::-webkit-details-marker{display:none}
.cook-meal-details>summary::after{content:"+";margin-left:auto}
.cook-meal-details[open]>summary::after{content:"−"}
.cook-plan .cook-meal-details p{position:static;width:auto;margin:8px 0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--text);font-size:.875rem;line-height:1.6}
.cook-meal-details:not([open]){margin-block:0}
.instruction-notes{margin-top:16px;font-size:.85rem;line-height:1.6;color:var(--muted)}
.instruction-notes summary{cursor:pointer;min-height:40px;display:flex;align-items:center}
.instruction-notes p{margin-top:8px}

/* Cooking and shopping are alternative next actions after a serving choice. */
.fresh-cook-choices{padding-bottom:14px;grid-template-columns:repeat(3,minmax(0,1fr))}
.fresh-cook-dialog{max-width:calc(100vw - 12px);overflow-x:hidden}
.fresh-cook-dialog h2{font-size:1.55rem;line-height:1.25}
.fresh-cook-choices button{min-width:0;min-height:88px;padding:10px 6px;gap:6px;border-radius:12px;background:var(--surface)}
.fresh-cook-choices span{font-size:.75rem}
.fresh-cook-choices strong{font-family:inherit;font-size:1.5rem}
.fresh-cook-choices button[aria-pressed="true"]{border-color:var(--accent-dark);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent-dark)}
.fresh-cook-actions{display:flex;flex-wrap:wrap;gap:10px;padding:0 24px 22px}
.fresh-cook-actions button{min-height:46px;flex:1 1 180px}
.production-tracking{display:flex;align-items:center;gap:10px;line-height:1.5;padding-block:8px}
.production-tracking input{width:20px;height:20px;flex:0 0 auto}
.shopping-recipe-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.shopping-recipe-link{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-height:44px;max-width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:.85rem;text-align:left}
.shopping-recipe-link strong{font-size:inherit}
.shopping-recipe-link span{margin-left:auto;color:var(--accent-dark)}
.freezer-pending{margin-bottom:24px}
.freezer-pending>p{color:var(--muted);line-height:1.5}
@media(max-width:760px){.fresh-cook-choices{padding:8px 14px 14px}.fresh-cook-actions{padding:0 14px 18px}.fresh-cook-actions button{flex-basis:100%}.shopping-recipe-link{width:100%}}

.production-yield-notes{margin-top:4px;font-size:.85rem;color:var(--muted)}
.production-yield-notes>summary{cursor:pointer;display:flex;align-items:center;min-height:40px}
.production-yield-notes p{line-height:1.5;margin:4px 0 10px}

/* Each sauce owns its recipe link; reading it does not change the bowl. */
.serving-choice-with-recipe{display:flex;align-items:stretch;max-width:100%;min-width:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
.serving-choice-with-recipe>.serving-chip{flex:1;min-width:0;border:0;border-radius:0}
.component-recipe-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 12px;border:0;background:transparent;color:var(--accent-dark);font:inherit;font-size:.82rem;font-weight:650;white-space:nowrap}
.component-recipe-link:hover{background:var(--accent-soft)}
.serving-choice-with-recipe>.component-recipe-link{border-left:1px solid var(--line)}
.ingredient-component-body>.component-recipe-link{margin-top:12px;border:1px solid var(--line);border-radius:8px}
.cook-amt>.component-recipe-link{margin-left:8px;padding:4px 8px;vertical-align:middle}
.component-recipe-controls{display:block}
.component-recipe-controls label{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;max-width:440px}
.component-recipe-batch-note{font-size:.875rem;line-height:1.6;color:var(--muted);margin:8px 0 16px}
.component-recipe-back{margin-top:20px;min-height:44px}
@media(max-width:420px){.cook-amt>.component-recipe-link{padding-inline:6px}.serving-choice-with-recipe>.component-recipe-link{padding-inline:9px}.component-recipe-controls label:last-child{grid-template-columns:minmax(0,1fr);gap:8px}}

#componentRecipeDialog .component-recipe-storage{padding:16px 0;background:transparent;border-radius:0;border-top:1px solid var(--line);margin-top:18px}
#componentRecipeDialog .component-recipe-storage h3{font-size:1rem;margin:0 0 8px}
#componentRecipeDialog .component-recipe-storage p{font-size:.875rem;margin:0}

.serving-choice-with-recipe .serving-chip-copy{display:block!important}
.serving-choice-with-recipe .serving-chip-copy strong{font-size:.875rem;line-height:1.4}
.serving-choice-with-recipe .serving-chip-copy small{display:none}
.serving-choice-with-recipe>.serving-chip.off{opacity:1;color:var(--text)}
.serving-choice-with-recipe>.component-recipe-link{flex:0 0 auto}
.composition-plan .choice-group:has(.serving-choice-with-recipe){padding:0;border:0;background:transparent}
.composition-plan .choice-group:has(.serving-choice-with-recipe) legend{padding:0;margin-bottom:10px}
