:root {
  color-scheme:light;
  --paper:#fffcf6;--card:#fffefa;--ink:#29251f;--muted:#71675d;--line:#e6ddd1;
  --soft:#f4ebdf;--accent:#b3482c;--accent-hover:#963b24;--accent-soft:#fae8de;
  --green:var(--accent);--green-hover:var(--accent-hover);--sage:var(--soft);
  --peach:#f8e7d5;--orange:#c7643f;--orange-dark:#a34229;
  --shadow:0 12px 32px #4b2f1607;
  font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px;color:var(--ink);background:var(--paper);font-synthesis:none;
}

*{box-sizing:border-box}
body{margin:0;min-width:0}
button,input,textarea,select{font:inherit}
button,a,input,textarea{touch-action:manipulation}
button{cursor:pointer;transition:background .16s,color .16s,box-shadow .16s,transform .16s}
button:disabled{cursor:default;opacity:.45}
a{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
button svg{width:19px;height:19px;flex-shrink:0}
p{line-height:1.65}
h1,h2,h3,p{overflow-wrap:anywhere}
[hidden]{display:none!important}
.skip-link{position:fixed;top:-100px;left:20px;background:var(--ink);color:var(--paper);padding:14px;z-index:20;border-radius:8px}
.skip-link:focus{top:12px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* A quiet masthead gives the meals and their useful controls the attention. */
.topbar{max-width:1240px;margin:auto;padding:22px 36px;display:flex;align-items:center;gap:25px;border-bottom:1px solid var(--line)}
.brand{display:flex;gap:10px;align-items:center;text-decoration:none;font-family:Georgia,"Times New Roman",serif;font-size:28px;font-weight:400;letter-spacing:-1.1px;white-space:nowrap}
.brand img{width:38px;height:38px;border-radius:11px;flex-shrink:0}
.brand-to{font-style:italic;color:var(--accent)}
.brand-period{color:var(--accent)}
.top-note{font-size:12px;color:var(--muted);padding-left:23px;border-left:1px solid var(--line);line-height:25px}
nav{margin-left:auto;display:flex;gap:5px}
.nav-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 13px;border:0;border-radius:10px;background:none;color:var(--ink);font-size:12px;font-weight:550}
.nav-button svg{width:17px;height:17px}
.nav-button:hover{background:var(--soft)}
#help{color:var(--muted)}
main{max-width:1240px;margin:auto;padding:0 36px}
.hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr);align-items:end;gap:48px;padding:35px 0 31px}
.hero-content,.hero-aside{min-width:0}
.eyebrow{font-size:11px;font-weight:650;letter-spacing:1.3px;color:var(--muted);display:block;line-height:1.6}
.hero .eyebrow{color:var(--accent);display:flex;gap:8px;align-items:center;letter-spacing:1.5px}
.little-star{font-size:19px;color:var(--accent);line-height:1}
h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(42px,4.8vw,62px);font-weight:400;letter-spacing:-2.3px;line-height:1.02;margin:16px 0 15px}
h1 em{font-weight:400;color:var(--accent)}
.hero-content>p{font-size:14px;color:var(--muted);margin:0;line-height:1.65}
.hero-content>p .desktop{display:none}
.hero-aside{justify-self:end;width:100%;max-width:390px;border-left:1px solid var(--line);padding:7px 0 7px 28px}
.hero-aside .plan-caption{font-size:11px;font-weight:600;line-height:1.6;color:var(--muted);margin:0 0 18px;letter-spacing:1.1px}
.plan-stats{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;max-width:100%}
.plan-stats div{display:flex;flex-direction:column;gap:7px;min-width:0}
.plan-stats strong{font-family:Georgia,serif;font-size:36px;font-weight:400;line-height:1;letter-spacing:-1px;font-variant-numeric:tabular-nums;color:var(--ink)}
.plan-stats span:not(.stat-arrow){font-size:11px;color:var(--muted);line-height:1.5}
.plan-stats .stat-arrow{color:var(--accent);margin-top:9px;font-size:15px}
.hero-review,.hero-content>.hero-review{font-size:12px;color:#9c4427;margin:14px 0 0;line-height:1.6}

.banner{display:flex;gap:13px;align-items:center;padding:15px 18px;margin:2px 0 30px;border-radius:13px;color:var(--muted);font-size:12px;line-height:1.6;background:var(--soft);border:1px solid var(--line)}
.banner strong{color:var(--ink);font-weight:600}
.demo-banner>span:nth-child(2){flex:1;min-width:0}
.demo-symbol{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#fffaf2;color:var(--accent);flex-shrink:0}
.demo-symbol svg{width:23px;height:23px}
.demo-detail{display:block;font-size:12px}
.text-button{background:none;border:0;padding:9px 2px;color:var(--accent);font-size:12px;font-weight:600;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:10px}
.text-button:hover{text-decoration:underline;text-underline-offset:4px}
.banner.error{display:block;background:#fff0e6;border-color:#ddb098;color:#843c23}
.sync-banner{align-items:center;justify-content:space-between;flex-wrap:wrap;background:var(--peach);border-color:#dfbca3}
.sync-banner>div{flex:1 1 230px}
.sync-banner p{margin:3px 0 0}
.sync-banner button{flex-shrink:0;min-height:44px}
.sync-inline{padding:14px;margin:0 0 18px;border:1px solid #dfbca3;border-radius:12px;background:var(--peach)}
.sync-inline p{margin:0 0 10px;font-size:13px}
.sync-inline button{min-height:44px}
.sync-summary{padding:15px;border-radius:12px;background:var(--soft);font-size:14px}
.sync-backup{margin-top:18px;padding:14px;border:1px solid var(--line);border-radius:12px}
.sync-backup summary{cursor:pointer;min-height:30px;font-weight:600;line-height:1.5}
.sync-backup textarea{font-size:12px}
.draft-rescue{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}
.draft-rescue summary{cursor:pointer;min-height:32px;line-height:1.6;color:var(--muted);font-size:13px}
.draft-rescue button{min-height:44px}
.sync-actions button{min-height:44px;flex:1 1 190px}
#backup-source-field select{width:100%;max-width:100%;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--paper);color:var(--ink);margin-bottom:15px}

.workspace{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:34px;align-items:start;scroll-margin-top:24px}
.recipes-panel{min-width:0}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}
.section-heading>div{min-width:0}
.section-heading h2{margin:6px 0 0}
h2{font-family:Georgia,"Times New Roman",serif;font-size:31px;line-height:1.15;letter-spacing:-.85px;font-weight:400;margin:0}
.count{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 7px;background:var(--soft);border-radius:8px;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:12px;letter-spacing:0;vertical-align:middle;color:var(--accent);margin-left:6px;font-weight:600}
.primary,.secondary{border-radius:12px;padding:13px 17px;font-size:13px;font-weight:600;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:9px;line-height:1.4}
.primary{background:var(--accent);color:#fffdf8;border:1px solid var(--accent);box-shadow:0 3px 8px #71361c09}
.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover);box-shadow:0 4px 12px #71361c14}
.primary:active{transform:translateY(1px)}
.primary.accent{background:var(--soft);color:var(--accent);border-color:var(--line);box-shadow:none}
.primary.accent:hover{background:#efdfcc;border-color:#d9c4ad}
.secondary{border:1px solid var(--line);background:var(--card);color:var(--ink)}
.secondary:hover{background:var(--soft)}
.section-copy{font-size:12px;color:var(--muted);margin:13px 0 20px;line-height:1.65}
.recipe-discovery{margin:0 0 16px}
.recipe-search-row{display:flex;align-items:center;gap:8px}
.recipe-search{position:relative;flex:1;min-width:0}
.recipe-search>svg{position:absolute;width:16px;height:16px;left:12px;top:15px;color:var(--muted);pointer-events:none}
.recipe-search input{min-height:46px;padding:10px 42px 10px 35px;border-color:var(--line);background:var(--card);font-size:16px;line-height:1.5;border-radius:11px}
.recipe-search input::-webkit-search-cancel-button{display:none}
.recipe-search>button{position:absolute;right:1px;top:1px;width:42px;min-height:44px;border:0;background:transparent;border-radius:10px;color:var(--muted);font-size:24px;line-height:1}
.recipe-search>button:hover{background:var(--soft);color:var(--ink)}
.recipe-filters{display:flex;gap:2px;flex-shrink:0;padding:3px;background:var(--soft);border-radius:12px}
.recipe-filters button{border:0;background:transparent;color:var(--muted);min-height:44px;min-width:44px;padding:9px 10px;border-radius:9px;font-size:12px;font-weight:600;white-space:nowrap}
.recipe-filters button[aria-pressed="true"]{background:var(--card);color:var(--accent);box-shadow:0 2px 5px #5734170a}
.filter-summary{font-size:11px;line-height:1.6;color:var(--muted);margin:6px 1px 0}
.recipe-no-results .text-button{margin-top:7px}

/* A small, complete catalog makes the first meal easy to find and save. */
.recipe-library-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:5px;margin:0 0 22px;background:var(--soft);border:1px solid var(--line);border-radius:14px}
.recipe-library-switch button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;min-width:0;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:13px;font-weight:600;line-height:1.4}
.recipe-library-switch button[aria-pressed="true"]{background:var(--card);color:var(--accent);box-shadow:0 2px 8px #5734170a}
.recipe-library-switch button>svg{width:18px;height:18px}
.recipe-library-switch .count{margin:0;min-width:23px;height:23px;font-size:11px;background:#eadcc9;color:var(--muted)}
.recipe-library-switch button[aria-pressed="true"] .count{background:var(--soft);color:var(--accent)}
.catalog-intro{display:flex;align-items:center;gap:16px;margin:0 0 21px}
.catalog-intro>div{flex:1;min-width:0}
.catalog-intro .eyebrow{font-size:10px;letter-spacing:1.2px;color:var(--accent)}
.catalog-intro h3{font-family:Georgia,"Times New Roman",serif;font-size:28px;font-weight:400;line-height:1.15;letter-spacing:-.55px;margin:7px 0}
.catalog-intro p{font-size:12px;line-height:1.6;color:var(--muted);margin:0}
.catalog-intro-mark{display:grid;place-items:center;flex-shrink:0;width:50px;height:58px;border-radius:25px 25px 14px 14px;color:#566b4d;background:#eaf0e3;border:1px solid #dce3d3}
.catalog-intro-mark svg{width:27px;height:27px}
.catalog-discovery{margin-bottom:18px}
.catalog-categories{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}
.catalog-categories button{min-height:44px;padding:9px 14px;border:1px solid var(--line);border-radius:22px;background:transparent;font-size:12px;color:var(--muted);line-height:1.4}
.catalog-categories button:hover{background:var(--soft);color:var(--ink)}
.catalog-categories button[aria-pressed="true"]{color:var(--paper);background:var(--ink);border-color:var(--ink)}
.catalog-quick{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-height:44px;margin:5px 0 0;font-size:12px;line-height:1.5;cursor:pointer}
.catalog-quick input{width:18px;height:18px;min-width:18px;padding:0;margin:0;accent-color:var(--accent);cursor:pointer}
.catalog-quick span{font-size:11px;color:var(--muted);font-weight:400;margin-left:auto}
.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.catalog-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:17px;overflow:hidden;background:var(--card);box-shadow:var(--shadow);--meal-color:#b3482c;--meal-soft:#fae8de}
.catalog-breakfast{--meal-color:#8b5a1b;--meal-soft:#f7eacd}
.catalog-lunch{--meal-color:#46624f;--meal-soft:#e8eee1}
.catalog-card-top{display:flex;align-items:center;gap:7px;padding:16px 16px 13px;background:#faf6ef}
.catalog-meal-icon{display:grid;place-items:center;width:31px;height:35px;flex-shrink:0;border-radius:10px;background:var(--meal-soft);color:var(--meal-color)}
.catalog-meal-icon svg{width:23px;height:23px;stroke-width:1.6}
.catalog-category{font-size:11px;font-weight:600;color:var(--meal-color)}
.catalog-number{margin-left:auto;font-family:Georgia,serif;font-size:17px;color:#a49079}
.catalog-saved{margin-left:auto;font-size:10px;font-weight:600;color:#46624f;white-space:nowrap}
.catalog-card-body{padding:6px 16px 17px;flex:1;min-width:0}
.catalog-card h3{font-family:Georgia,"Times New Roman",serif;font-size:25px;font-weight:400;line-height:1.15;letter-spacing:-.5px;margin:0 0 10px}
.catalog-card-body>p{font-size:12px;line-height:1.65;color:var(--muted);margin:0 0 15px}
.catalog-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;font-size:11px;line-height:1.6;color:var(--muted)}
.catalog-meta span{white-space:nowrap}
.catalog-meta span+span:before{content:'·';margin-right:10px;color:#bca58c}
.catalog-card-body>.catalog-saved-as{font-size:11px;color:#46624f;margin:10px 0 0}
.catalog-card-actions{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:9px 12px;border-top:1px solid var(--line);min-height:64px}
.catalog-view-button{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:44px;min-width:0;border:0;background:transparent;color:var(--accent);padding:8px 4px;border-radius:8px;font-size:12px;font-weight:600;text-align:left;line-height:1.5}
.catalog-view-button:hover{background:var(--soft)}
.catalog-original-button{flex-basis:100%;justify-content:flex-start;color:var(--muted);font-weight:500;overflow-wrap:anywhere}
.catalog-save-button{min-height:44px;min-width:49px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--ink);font-size:12px;font-weight:600;flex-shrink:0}
.catalog-save-button:hover{background:#efdfcc}
.catalog-save-button:disabled:hover{background:var(--soft)}
.catalog-saved-note{font-size:11px;color:var(--muted);text-align:right;line-height:1.5;max-width:72px}
.catalog-capacity{font-size:12px;line-height:1.7;border:1px solid #dfc5a2;border-radius:12px;color:#744b16;background:#fff5e4;padding:12px 14px;margin:0 0 16px}
.catalog-feedback{font-size:12px;line-height:1.65;color:#46624f;margin:0 0 14px;overflow-wrap:anywhere}
.catalog-feedback:empty{display:none}
.catalog-feedback.is-error{color:#943e24}
.catalog-footnote{font-size:11px;line-height:1.7;color:var(--muted);margin:16px 1px 20px}
.catalog-no-results{grid-column:1/-1;padding:28px 22px}
.catalog-no-results .text-button{margin-top:8px}
.catalog-preview-description{white-space:pre-line;font-size:14px;line-height:1.75;color:var(--muted);margin:0 0 17px}
#catalog-preview-title:focus{outline:none}
#saved-recipes-panel .demo-load{margin-bottom:14px}
#saved-recipes-panel .add-recipe-card{margin-top:17px}

@media(min-width:801px) and (max-width:1100px){
  .catalog-grid{gap:11px}
  .catalog-card-top{padding:13px 12px 11px;gap:6px}
  .catalog-card-body{padding:5px 13px 16px}
  .catalog-card h3{font-size:23px}
  .catalog-card-actions{padding:8px 10px;gap:5px}
  .catalog-meal-icon{width:27px;height:31px}
  .catalog-category,.catalog-saved{font-size:10px}
}
@media(max-width:560px){
  .recipe-library-switch{margin-bottom:19px;gap:4px;padding:4px}
  .recipe-library-switch button{gap:6px;padding:10px 8px;min-height:47px;font-size:12px}
  .recipe-library-switch button>svg{width:16px;height:16px}
  .catalog-intro{margin-bottom:16px}
  .catalog-intro .eyebrow,.catalog-intro-mark{display:none}
  .catalog-intro h3{font-size:25px;margin:0 0 7px}
  .catalog-categories{gap:5px}
  .catalog-categories button{font-size:12px;padding:9px 13px}
  .catalog-quick{font-size:12px;gap:7px}
  .catalog-quick span{font-size:10px}
  .catalog-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  .catalog-card{border-radius:18px}
  .catalog-card-top{padding:15px 18px 13px}
  .catalog-meal-icon{width:34px;height:36px}
  .catalog-category{font-size:12px}
  .catalog-saved{font-size:11px}
  .catalog-card-body{padding:5px 18px 19px}
  .catalog-card h3{font-size:28px;line-height:1.14;margin-bottom:10px}
  .catalog-card-body>p{font-size:13px;margin-bottom:15px}
  .catalog-meta{font-size:12px}
  .catalog-card-actions{padding:10px 15px}
  .catalog-view-button,.catalog-save-button{font-size:13px}
  .catalog-saved-note{max-width:none;font-size:12px}
  .catalog-save-button{padding:10px 15px}
  .catalog-preview-description{font-size:13px}
}

/* The first meal is the visual anchor; later meals keep a compact image. */
.recipe-card{position:relative;border:1px solid var(--line);background:var(--card);border-radius:21px;margin-bottom:19px;overflow:hidden;box-shadow:var(--shadow);transition:box-shadow .2s,border-color .2s}
.recipe-card:hover{box-shadow:0 12px 30px #4b2f160c;border-color:#d8c7b3}
.recipe-visual{position:relative;aspect-ratio:1.9;overflow:hidden;margin:0;background:var(--soft)}
.recipe-visual>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.photo-note{position:absolute;left:12px;bottom:12px;max-width:calc(100% - 24px);padding:5px 8px;border-radius:6px;color:var(--ink);background:#fffaf3ed;font-size:11px;line-height:1.45;letter-spacing:0}
.recipe-top{display:flex;align-items:flex-start;gap:13px;padding:22px 22px 18px}
.recipe-number{width:38px;min-height:44px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:var(--soft);color:var(--accent);font-family:Georgia,serif;font-size:25px;flex-shrink:0}
.has-photo .recipe-number{display:none}
.recipe-title{flex:1;min-width:0}
.recipe-title h3{font-family:Georgia,"Times New Roman",serif;font-size:28px;font-weight:400;line-height:1.13;letter-spacing:-.65px;margin:0 0 9px;overflow-wrap:anywhere}
.recipe-card.featured .recipe-title h3{font-size:32px;letter-spacing:-.8px}
.recipe-meta{color:var(--muted);font-size:12px;line-height:1.6}
.include-label{display:flex;align-items:center;gap:7px;min-height:44px;color:var(--accent);font-size:11px;font-weight:600;margin:0;padding:7px 0;flex-shrink:0;cursor:pointer}
.include-label input{accent-color:var(--accent);width:18px;height:18px;padding:0;margin:0;cursor:pointer;flex-shrink:0}
.recipe-card.has-photo.featured .include-label{position:absolute;right:14px;top:14px;padding:9px 12px;background:var(--card);color:var(--ink);border-radius:24px;box-shadow:0 3px 12px #3f27141a}
.recipe-card.has-photo:not(.featured){display:grid;grid-template-columns:135px minmax(0,1fr)}
.recipe-card.has-photo:not(.featured) .recipe-visual{grid-column:1;grid-row:1;aspect-ratio:auto;min-height:147px;margin:18px 0 17px 18px;border-radius:13px;align-self:stretch}
.recipe-card.has-photo:not(.featured) .recipe-visual>img{position:absolute;inset:0;object-position:center}
.recipe-card.has-photo:not(.featured) .photo-note{left:7px;bottom:7px;max-width:calc(100% - 14px);font-size:11px;padding:4px 6px}
.recipe-card.has-photo:not(.featured) .recipe-top{grid-column:2;grid-row:1;display:block;padding:22px 20px 16px}
.recipe-card.has-photo:not(.featured) .recipe-title h3{font-size:25px;letter-spacing:-.4px}
.recipe-card.has-photo:not(.featured) .include-label{margin-top:8px}
.recipe-card.has-photo:not(.featured) .recipe-bottom,.recipe-card.has-photo:not(.featured) .recipe-details{grid-column:1/-1}
.recipe-card.excluded{border-style:dashed;box-shadow:none}
.recipe-card.excluded .recipe-top{background:#f9f5ed}
.recipe-card.excluded .include-label{color:var(--muted)}
.recipe-card.excluded .recipe-visual>img{opacity:.7}
.recipe-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding:13px 19px;background:#fffbf4}
.servings-control{display:flex;align-items:center;gap:11px;min-width:0}
.serving-label{font-size:11px;color:var(--muted);line-height:1.5}
.serving-label strong{display:block;color:var(--ink);font-size:12px;font-weight:500}
.stepper{display:flex;align-items:center;flex-shrink:0;border:1px solid #e8dccd;border-radius:11px;background:var(--soft)}
.stepper button{border:0;background:none;width:44px;height:44px;border-radius:10px;color:var(--ink);font-size:21px}
.stepper button:hover{background:#eaddca}
.stepper button:disabled:hover{background:transparent}
.stepper input{width:38px;min-width:0;min-height:44px;text-align:center;padding:6px 0;background:transparent;border:0;color:var(--ink);font-size:16px;font-weight:600;border-radius:0;font-variant-numeric:tabular-nums}
.recipe-tools{display:flex;align-items:center;gap:2px;flex-shrink:0}
.mini-button{border:0;border-radius:9px;background:transparent;color:var(--muted);padding:10px 11px;font-size:12px;font-weight:600;min-width:44px;min-height:44px}
.mini-button:hover{background:var(--soft);color:var(--ink)}
.mini-button.remove{width:44px;padding:10px;display:grid;place-items:center}
.mini-button.remove:hover{background:#fae9df;color:#944528}
.mini-button svg{width:17px;height:17px}
.recipe-details{border-top:1px solid var(--line)}
.recipe-detail-actions{display:flex;align-items:stretch}
.recipe-read-button{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:47px;flex-shrink:0;padding:12px 22px;border:0;background:transparent;color:var(--accent);font-size:12px;font-weight:600;text-align:left}
.recipe-read-button:hover{background:var(--soft)}
.recipe-read-button:focus-visible{outline-offset:-4px}
.recipe-ingredients-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:47px;padding:12px 22px;border:0;background:transparent;color:var(--muted);font-size:12px;font-weight:500;text-align:left}
.recipe-detail-actions .recipe-ingredients-toggle{flex:1;min-width:0;width:auto;justify-content:flex-end;padding-left:10px}
.recipe-ingredients-toggle:hover{background:var(--soft);color:var(--ink)}
.recipe-ingredients-toggle:focus-visible{outline-offset:-4px}
.recipe-ingredients-toggle svg{width:15px;height:15px;transition:transform .16s}
.recipe-ingredients-toggle[aria-expanded="true"]{color:var(--accent);background:#faf3e9}
.recipe-ingredients-toggle[aria-expanded="true"] svg{transform:rotate(90deg)}
.recipe-amount-note{margin:0;padding:15px 22px 0;background:#faf3e9;color:var(--muted);font-size:11px;line-height:1.65}
.recipe-lines{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px;margin:0;padding:16px 22px 21px;color:var(--muted);font-size:12px;list-style:none;background:#faf3e9}
.recipe-lines li{display:flex;gap:8px;line-height:1.65;overflow-wrap:anywhere;min-width:0}
.recipe-lines li:before{content:'';width:4px;height:4px;border-radius:50%;background:#bf9676;flex-shrink:0;margin-top:8px}
.open-grocery{width:100%;justify-content:space-between;min-height:54px;padding:15px 19px;margin:2px 0 3px;font-size:14px}
.open-grocery>span{display:flex;align-items:center;gap:8px}
#open-grocery-count{font-variant-numeric:tabular-nums}
.add-recipe-card{display:flex;align-items:center;gap:13px;width:100%;padding:18px 20px;border-radius:16px;border:1px dashed #cfb99f;color:var(--ink);background:#faf3e9;text-align:left;margin-top:20px}
.add-recipe-card:hover{background:var(--soft);border-color:#b59372}
.add-circle{display:grid;place-items:center;width:40px;height:40px;background:#edddc8;color:var(--accent);border-radius:12px;font-size:27px;flex-shrink:0}
.add-recipe-card>span:nth-child(2){flex:1;min-width:0}
.add-recipe-card strong{display:block;font-size:13px;font-weight:500;line-height:1.5}
.add-recipe-card small{display:block;font-size:12px;color:var(--muted);line-height:1.5;margin-top:4px}
.demo-load{margin-top:7px}

/* Grocery totals stay visible beside their ingredient and its source. */
.list-panel{border:1px solid var(--line);background:var(--card);border-radius:23px;overflow:hidden;box-shadow:var(--shadow);min-width:0;scroll-margin-top:24px}
.list-header{background:#faf2e7;padding:27px 27px 22px;color:var(--ink);border-bottom:1px solid var(--line)}
.list-top{display:flex;justify-content:space-between;align-items:center;gap:15px}
.list-top>div{min-width:0}
.list-top h2{font-size:40px;letter-spacing:-1.2px;margin:11px 0 0;line-height:1.06}
.list-top h2 em{color:var(--accent);font-weight:400}
.list-top .eyebrow{color:var(--muted);font-size:11px;letter-spacing:1.1px}
.list-icon{display:grid;place-items:center;width:43px;height:46px;border:1px solid #e4d5c2;background:#fffaf2;border-radius:13px;color:var(--accent);flex-shrink:0}
.list-icon svg{width:24px;height:24px}
.list-stats{padding-top:24px}
.progress-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}
.stats-strong{font-size:13px;color:var(--muted);display:flex;align-items:baseline;gap:7px}
.stats-strong strong{font-family:Georgia,serif;font-size:31px;line-height:1;font-weight:400;font-variant-numeric:tabular-nums;letter-spacing:-.7px;color:var(--accent)}
.progress-track{height:5px;border-radius:10px;background:#e8dacc;margin-top:14px;overflow:hidden}
.progress-fill{height:100%;background:var(--accent);border-radius:10px;transition:width .22s ease}
.progress-detail{font-size:11px;color:var(--muted);margin:12px 0 0;line-height:1.6}
.list-body{padding:4px 24px 25px}
.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0 9px;border-bottom:1px solid var(--line)}
.list-toolbar>span{font-size:12px;line-height:1.5;color:var(--muted)}
.list-toolbar .text-button{flex-shrink:0;gap:7px}
.list-toolbar .text-button>span{font-size:22px;line-height:1;font-weight:400}
.grocery-group{margin-bottom:23px}
.grocery-group h3{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:600;letter-spacing:1.15px;color:var(--muted);text-transform:uppercase;margin:25px 0 9px;padding:0 3px}
.category-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:var(--soft);color:#96704e;flex-shrink:0}
.category-icon svg{width:16px;height:16px}
.category-count{margin-left:auto;color:var(--muted);font-size:11px;font-weight:500;background:var(--soft);border-radius:6px;min-width:22px;text-align:center;line-height:22px;letter-spacing:0}
.grocery-item{display:flex;align-items:flex-start;gap:4px;border-bottom:1px solid var(--line);padding:10px 0;min-width:0;border-radius:7px;transition:background .16s}
.grocery-item:last-child{border-bottom-color:transparent}
.check-target{display:grid;place-items:center;width:44px;min-height:44px;flex-shrink:0;margin:0;padding:0;cursor:pointer}
.item-check{accent-color:var(--accent);width:20px;height:20px;padding:0;margin:0;cursor:pointer;flex-shrink:0}
.item-main{flex:1;min-width:0;padding-top:2px}
.item-label{border:0;background:none;text-align:left;padding:3px 5px 4px;color:var(--ink);display:block;min-height:44px;width:100%;border-radius:7px;overflow-wrap:anywhere}
.item-label:hover{background:#f7f0e5}
.item-name-row{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;line-height:1.45}
.item-name{font-size:15px;font-weight:500;text-transform:none;min-width:0}
.item-amount{font-size:12px;font-weight:600;color:#765337;background:var(--soft);padding:3px 7px;border-radius:5px;white-space:normal;font-variant-numeric:tabular-nums}
.item-source-label{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px;margin-top:6px;line-height:1.5}
.item-source-label svg{width:10px;height:10px;flex-shrink:0}
.item-have{font-size:11px;font-weight:500;border:1px solid var(--line);border-radius:9px;color:var(--muted);padding:8px 9px;background:#fcf7ee;white-space:nowrap;min-height:44px;min-width:56px;margin-top:2px;flex-shrink:0}
.item-have:hover{background:var(--soft);border-color:#cfb99f;color:var(--ink)}
.grocery-item.bought{background:#f5f0e6}
.grocery-item.bought .item-name{text-decoration:line-through;color:var(--muted)}
.grocery-item.bought .item-amount{background:#eee4d5;color:var(--muted)}
.extras-section{border-top:1px solid var(--line);padding-top:1px;margin-top:18px}
.extras-note{font-size:11px;line-height:1.6;color:var(--muted);margin:0 3px 8px}
.extra-item .item-label{padding-top:8px;padding-bottom:8px}
.extra-item .extra-edit-hint{font-size:11px;color:var(--muted);font-weight:400;white-space:nowrap}
.extra-item>.remove{margin-top:2px;flex-shrink:0}
.extra-item .item-amount{overflow-wrap:anywhere}
.optional-label{font-weight:400;color:var(--muted)}
.reset-checks{font-size:11px;margin:8px auto -3px;display:flex}
.source-details{display:none;font-size:12px;line-height:1.7;color:var(--muted);background:#f7efe3;border-radius:10px;padding:12px 13px;margin:7px 0 4px 5px;overflow-wrap:anywhere}
.source-details.visible{display:block}
.source-details p{margin:0 0 11px;padding-left:10px;border-left:2px solid #d2b291}
.source-details p:last-child{margin:0}
.source-details strong{font-weight:600;display:block;color:var(--ink);font-size:12px}
.source-details span{display:block}
.review-box{background:#fff1df;border:1px solid #e5c393;border-radius:13px;padding:17px;margin:20px 0;color:#795327}
.review-box h3{font-size:14px;line-height:1.5;margin:0 0 10px;color:#795027}
.review-item{font-size:12px;padding:11px 0;border-top:1px solid #ead5b6;line-height:1.6;overflow-wrap:anywhere}
.review-item strong{display:block;color:#73461e;font-size:13px}
.review-item small{display:block;color:#7d5c36;font-size:11px;margin:4px 0}
.review-item button{color:#78461e;font-size:12px;font-weight:600;background:#f9e4c8;border:0;border-radius:8px;padding:10px 11px;min-height:44px;margin-top:8px}
.review-box>p{font-size:12px;margin:5px 0 0}
.list-actions{display:flex;gap:10px;border-top:1px solid var(--line);padding-top:21px;margin-top:19px}
.list-actions .primary{flex:1}
.list-footnote{font-size:12px;line-height:1.7;color:var(--muted);margin:14px 1px 0}
#have-section{border-radius:12px;background:#f7efe3;padding:0 14px;font-size:12px;color:var(--muted);margin-top:18px}
#have-section summary{cursor:pointer;padding:15px 2px;min-height:48px;font-weight:600;color:var(--ink)}
.have-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;padding:7px 0;border-top:1px solid #e0d1be;line-height:1.6}
.have-row span{overflow-wrap:anywhere;min-width:0}
.have-row button{border:0;background:none;color:var(--accent);font-size:12px;font-weight:600;min-height:44px;padding:8px 4px;white-space:nowrap}
.empty{padding:32px 25px;border:1px dashed #d0b99d;border-radius:17px;text-align:center;color:var(--muted);font-size:13px;line-height:1.7;background:#fbf4e9}
.empty strong{font-family:Georgia,serif;font-weight:400;font-size:29px;line-height:1.18;display:block;color:var(--ink);margin-bottom:12px}
.empty svg{width:43px;height:43px;color:var(--accent);display:block;margin:0 auto 17px}
.list-body>.empty,#groceries>.empty{margin:22px 0}
.shopping-done{display:flex;gap:12px;align-items:center;background:#f3eadc;border-radius:13px;margin-top:18px;padding:18px}
.shopping-done>span{display:grid;place-items:center;border-radius:50%;width:34px;height:34px;background:var(--accent);color:#fffdf8;font-size:20px;flex-shrink:0}
.shopping-done strong{font-size:13px;font-weight:600}
.shopping-done p{font-size:12px;color:var(--muted);margin:4px 0 0}

.method{display:flex;gap:18px;border-top:1px solid var(--line);margin-top:38px;padding:27px 0 15px;align-items:center}
.method-mark{width:44px;height:44px;border:1px solid var(--line);border-radius:13px;display:grid;place-items:center;color:var(--accent);flex-shrink:0}
.method-mark svg{width:24px;height:24px}
.method>div:nth-child(2){flex:1;min-width:0}
.method h2{font-size:25px;line-height:1.3;letter-spacing:-.45px;margin:0 0 7px}
.method p{font-size:12px;color:var(--muted);margin:0;max-width:650px}
.method .text-button{font-size:12px;white-space:nowrap}
.saved-note{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;line-height:1.6;margin:15px 0 27px;flex-wrap:wrap}
.saved-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}
footer{max-width:1240px;margin:auto;border-top:1px solid var(--line);padding:23px 36px 30px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;color:var(--muted);font-size:12px;line-height:1.6}
footer strong{font-weight:600;color:var(--ink)}
footer nav{gap:18px;flex-wrap:wrap}
footer a{text-underline-offset:4px}
.muted{font-weight:400;margin-left:6px}
.mobile-dock{display:none}
.toast{display:none;position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:10;width:max-content;max-width:calc(100% - 32px);background:var(--ink);color:var(--paper);padding:14px 18px;border:1px solid #534437;border-radius:13px;box-shadow:0 8px 30px #40291525;font-size:13px;line-height:1.5}
.toast.visible{display:flex;align-items:center;gap:15px}
.toast>span{min-width:0;overflow-wrap:anywhere}
.toast button{border:0;background:var(--soft);color:var(--ink);border-radius:8px;min-height:44px;padding:10px 14px;white-space:nowrap;font-size:12px;font-weight:600}

dialog{border:1px solid var(--line);border-radius:23px;padding:30px;background:var(--card);color:var(--ink);width:min(580px,calc(100% - 28px));max-height:90dvh;box-shadow:0 25px 90px #38231540}
dialog::backdrop{background:#29201880;backdrop-filter:blur(4px)}
body:has(dialog[open]){overflow:hidden}
.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:22px}
.dialog-heading>div{min-width:0}
.dialog-heading h2{font-size:34px;line-height:1.12;margin-top:9px;letter-spacing:-.8px}
.close{border:0;background:var(--soft);color:var(--muted);border-radius:50%;font-size:26px;width:44px;height:44px;line-height:1;flex-shrink:0}
.close:hover{background:#eaddca;color:var(--ink)}
label{display:block;color:var(--ink);font-size:13px;font-weight:500;margin:18px 0 9px}
input,textarea{width:100%;min-width:0;border:1px solid #d9c8b3;background:#fffcf6;border-radius:10px;padding:12px 13px;color:var(--ink);font-size:16px;line-height:1.5}
textarea{resize:vertical;min-height:150px}
input::placeholder,textarea::placeholder{color:#827363}
input:focus,textarea:focus{background:#fffefa}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field-note{font-size:12px;line-height:1.65;color:var(--muted);margin:13px 0}
.inline-error{font-size:13px;line-height:1.6;color:#943e24;margin:8px 0}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;flex-wrap:wrap}
.discard-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.discard-actions button{min-width:0;padding-left:12px;padding-right:12px}
.dialog-copy{font-size:13px;color:var(--muted);line-height:1.7}
/* The recipe scrolls independently, keeping Save and the reading actions in reach. */
dialog.recipe-modal{padding:0;overflow:hidden}
.recipe-modal-layout{display:flex;flex-direction:column;max-height:calc(90dvh - 2px);min-height:0}
.recipe-modal .dialog-heading{flex-shrink:0;margin:0;padding:25px 30px 22px;border-bottom:1px solid var(--line)}
.recipe-modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 30px 20px;scroll-padding:16px}
.recipe-modal-footer{flex-shrink:0;border-top:1px solid var(--line);background:var(--card);padding:16px 30px}
.recipe-modal-actions{margin:0}
.recipe-modal-footer .inline-error{margin:0 0 12px}
.recipe-modal-footer .inline-error:empty{display:none}
.recipe-view-servings{font-size:12px;color:var(--muted);margin:12px 0 0;line-height:1.6}
.recipe-view-body{padding-top:20px;padding-bottom:27px}
.recipe-reading-note{font-size:12px;line-height:1.7;color:var(--muted);background:var(--soft);border-radius:11px;padding:12px 15px;margin:0 0 22px}
#recipe-copy-note{margin:18px 0 0}
.recipe-view-section+.recipe-view-section{margin-top:27px;padding-top:24px;border-top:1px solid var(--line)}
.recipe-view-section h3{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:25px;line-height:1.2;letter-spacing:-.35px;margin:0 0 15px}
.recipe-view-ingredients{list-style:none;margin:0;padding:0}
.recipe-view-ingredients li{display:flex;gap:11px;padding:8px 0;font-size:15px;line-height:1.65;overflow-wrap:anywhere}
.recipe-view-ingredients li:before{content:'';width:5px;height:5px;border-radius:50%;background:var(--accent);flex-shrink:0;margin-top:10px}
.ingredient-amount{font-weight:600;color:var(--ink)}
.ingredient-review-label{display:block;color:#744b16;font-size:12px;font-weight:600;line-height:1.6;margin-top:5px}
.ingredient-review-reason{font-size:12px;color:var(--muted);line-height:1.6;margin:4px 0 0}
.recipe-view-ingredients li.ingredient-needs-review:before{background:#744b16}
.directions-need-review{background:#fff1d7;color:#744b16;border-radius:10px;padding:12px 15px}
.recipe-original{margin-top:28px;border-top:1px solid var(--line);padding-top:12px}
.recipe-original summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--accent);padding:13px 0;min-height:44px;line-height:1.6;overflow-wrap:anywhere}
.recipe-original h4{font-size:13px;line-height:1.6;margin:18px 0 9px}
.recipe-original .recipe-view-instructions{font-size:13px;color:var(--muted)}
.recipe-view-instructions{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.85}
.recipe-view-empty{font-size:13px;line-height:1.75;color:var(--muted);margin:0}
#recipe-view-title:focus{outline:none}
.help-steps{padding-left:23px;font-size:14px;line-height:1.7;color:var(--muted)}
.help-steps li{padding-left:6px;margin:17px 0}
.help-steps li::marker{color:var(--accent);font-weight:600}
.help-steps strong{display:block;color:var(--ink);font-weight:600}
#recipes-title:focus,#list-title:focus,#workspace:focus{outline:none}

.info-page{max-width:820px;margin:36px auto 58px;padding:0 36px;color:var(--ink)}
.info-page h1{font-size:46px;line-height:1.08;margin:15px 0 22px}
.info-page h2{font-size:27px;margin:32px 0 12px}
.info-page h3{font-size:16px;margin:24px 0 10px}
.info-page p,.info-page li{font-size:15px;line-height:1.75;color:var(--muted);overflow-wrap:anywhere}
.info-page ul,.info-page ol{padding-left:22px}
.info-page li{margin:8px 0}
.info-page a{color:var(--accent);text-underline-offset:4px;overflow-wrap:anywhere}
.info-page .eyebrow{font-size:11px;color:var(--accent)}
.info-page .primary{color:#fffdf8;text-decoration:none}

@media(max-width:1100px){
  .topbar{padding:20px 28px;gap:18px}
  main{padding:0 28px}
  .top-note{display:none}
  .hero{gap:30px;padding:31px 0 28px;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
  h1{font-size:51px}
  .hero-aside{padding-left:22px}
  .plan-stats{gap:9px}
  .plan-stats strong{font-size:32px}
  .workspace{gap:24px}
  .section-heading h2{font-size:28px}
  .section-heading .primary{font-size:12px;padding:12px 13px}
  .recipe-top{padding:21px 19px 17px}
  .recipe-title h3{font-size:25px}
  .recipe-card.featured .recipe-title h3{font-size:29px}
  .recipe-card.has-photo:not(.featured){grid-template-columns:112px minmax(0,1fr)}
  .recipe-card.has-photo:not(.featured) .recipe-top{padding:20px 17px 15px}
  .recipe-card.has-photo:not(.featured) .recipe-title h3{font-size:23px}
  .recipe-bottom{padding:12px 14px;flex-wrap:wrap}
  .servings-control{gap:8px}
  .recipe-tools{margin-left:auto}
  .recipe-lines{padding:16px 19px 20px;gap:8px 14px}
  .recipe-ingredients-toggle{padding-left:19px;padding-right:19px}
  .recipe-read-button{padding-left:19px;padding-right:13px}
  .list-header{padding:24px 21px 22px}
  .list-top h2{font-size:36px}
  .list-icon{width:38px;height:42px}
  .list-body{padding:3px 17px 22px}
  .item-have{padding:8px;min-width:52px}
  .check-target{width:44px}
  .item-name{font-size:14px}
  footer{padding-left:28px;padding-right:28px}
}

@media(max-width:800px){
  .topbar{padding:18px 24px}
  .brand{font-size:27px}
  main{padding:0 24px}
  .hero{grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:25px;padding:29px 0 27px}
  h1{font-size:44px;letter-spacing:-1.7px}
  .hero-aside{padding-left:21px}
  .hero-content>p{font-size:13px}
  .plan-stats strong{font-size:29px}
  .banner{margin-bottom:27px}
  .workspace{display:block;scroll-margin-top:18px}
  .workspace[data-mobile-view="recipes"] .list-panel{display:none}
  .workspace[data-mobile-view="list"] .recipes-panel{display:none}
  .recipe-card.featured .recipe-visual{aspect-ratio:2.05}
  .recipe-top{padding:23px 24px 19px}
  .recipe-card.featured .recipe-title h3{font-size:33px}
  .recipe-card.has-photo:not(.featured){grid-template-columns:150px minmax(0,1fr)}
  .recipe-card.has-photo:not(.featured) .recipe-visual{margin:20px 0 19px 20px}
  .recipe-card.has-photo:not(.featured) .recipe-top{padding:23px 24px 17px}
  .recipe-card.has-photo:not(.featured) .recipe-title h3{font-size:28px}
  .recipe-bottom{padding:14px 21px;flex-wrap:nowrap}
  .servings-control{gap:14px}
  .stepper input{width:42px}
  .recipe-ingredients-toggle{padding:13px 24px}
  .recipe-lines{padding:17px 24px 23px;font-size:13px;gap:8px 20px}
  .section-heading h2{font-size:31px}
  .section-heading .primary{font-size:13px;padding:13px 16px}
  .list-panel{scroll-margin-top:18px}
  .list-header{padding:27px}
  .list-top h2{font-size:42px}
  .list-icon{width:44px;height:48px}
  .list-body{padding:5px 24px 25px}
  .item-name{font-size:16px}
  .item-amount{font-size:13px}
  .check-target{width:44px}
  .item-have{font-size:12px;padding:8px 11px;min-width:61px}
  .list-actions .primary,.list-actions .secondary{font-size:14px;min-height:49px}
  .mobile-dock{display:flex;position:fixed;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:calc(100% - 36px);max-width:460px;gap:5px;z-index:5;background:#fffaf2f5;border:1px solid #ddcbb5;padding:6px;border-radius:18px;box-shadow:0 6px 30px #57341726;backdrop-filter:blur(12px);margin:0}
  .dock-button{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:48px;gap:8px;border:0;background:transparent;color:var(--muted);font-size:13px;font-weight:600;border-radius:12px}
  .dock-button svg{width:18px;height:18px}
  .dock-button>span{display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;background:#efe1cf;color:var(--ink);font-size:11px;border-radius:6px;font-variant-numeric:tabular-nums}
  .dock-button.active{background:var(--accent);color:#fffdf8}
  .dock-button.active>span{background:#ffffff24;color:#fffdf8}
  .method{gap:14px;flex-wrap:wrap;margin-top:29px}
  .method>.text-button{margin-left:58px;min-height:44px;padding-top:0}
  footer{padding:23px 24px calc(108px + env(safe-area-inset-bottom))}
  .toast{bottom:calc(92px + env(safe-area-inset-bottom))}
}

@media(max-width:560px){
  .topbar{padding:14px 18px;gap:8px;flex-wrap:nowrap;justify-content:space-between}
  .brand{font-size:24px;gap:8px;min-width:0}
  .brand img{width:32px;height:32px;border-radius:9px}
  .topbar nav{gap:2px;width:auto;margin:0;padding:0;justify-content:flex-end;flex-shrink:0}
  .topbar .nav-button{width:44px;min-width:44px;min-height:44px;padding:10px;flex-shrink:0}
  .topbar .nav-button svg{width:19px;height:19px}
  .topbar nav #help,.topbar #backup>span,.topbar #restore>span{display:none}
  main{padding:0 18px}
  .hero{display:block;padding:20px 1px 19px}
  .hero .eyebrow{font-size:11px;letter-spacing:1.15px}
  h1{font-size:44px;letter-spacing:-1.75px;margin:12px 0 12px;line-height:1.04}
  .hero-content>p{font-size:13px;max-width:310px}
  .hero-aside{display:none}
  .hero-aside .plan-caption{font-size:11px;margin-bottom:14px;letter-spacing:.9px}
  .plan-stats{justify-content:space-between;width:100%;gap:10px}
  .plan-stats strong{font-size:30px}
  .plan-stats span:not(.stat-arrow){font-size:11px}
  .plan-stats .stat-arrow{font-size:13px;margin-top:7px}
  .banner{padding:13px 14px;margin:0 0 25px;gap:10px}
  .demo-banner{display:flex;align-items:center;gap:10px;padding:8px 13px;margin-bottom:20px}
  .demo-banner .demo-symbol,.demo-banner .demo-detail{display:none}
  .demo-banner>span:nth-child(2){font-size:12px;line-height:1.5;flex:1;min-width:0}
  .demo-banner>.text-button{justify-content:flex-end;font-size:12px;padding:4px 0;min-height:44px;margin:0;max-width:56%;flex-shrink:0;gap:6px;line-height:1.5}
  .section-heading{gap:12px}
  .section-heading .eyebrow{font-size:11px;letter-spacing:.9px}
  .section-heading h2{font-size:28px}
  .section-heading .primary{font-size:12px;padding:11px 13px;border-radius:11px;white-space:nowrap}
  .section-heading .primary svg{width:16px;height:16px}
  .count{height:24px;min-width:24px;font-size:11px;margin-left:4px}
  .section-copy{font-size:12px;margin:12px 0 15px}
  .recipe-discovery{margin-bottom:15px}
  .recipe-search-row{gap:7px}
  .recipe-filters button{font-size:11px;padding-left:8px;padding-right:8px}
  .recipe-card{border-radius:18px;margin-bottom:18px}
  .recipe-card.featured .recipe-visual{aspect-ratio:1.68}
  .recipe-visual .photo-note{left:10px;bottom:10px;max-width:calc(100% - 20px);font-size:11px;padding:4px 7px}
  .recipe-top{padding:20px 18px 16px;gap:11px;flex-wrap:wrap}
  .recipe-title h3,.recipe-card.featured .recipe-title h3{font-size:28px;line-height:1.13;margin-bottom:8px;letter-spacing:-.6px}
  .recipe-meta{font-size:12px}
  .recipe-number{width:33px;min-height:41px;font-size:23px;border-radius:10px}
  .text-recipe .recipe-title{flex-basis:calc(100% - 44px)}
  .text-recipe .include-label{margin-left:44px;margin-top:-3px}
  .recipe-card.has-photo.featured .include-label{top:11px;right:11px;font-size:11px;padding:8px 10px}
  .recipe-card.has-photo:not(.featured){grid-template-columns:103px minmax(0,1fr)}
  .recipe-card.has-photo:not(.featured) .recipe-visual{margin:17px 0 16px 16px;min-height:159px;border-radius:12px}
  .recipe-card.has-photo:not(.featured) .recipe-top{padding:20px 16px 14px}
  .recipe-card.has-photo:not(.featured) .recipe-title h3{font-size:23px;letter-spacing:-.4px;line-height:1.15}
  .recipe-card.has-photo:not(.featured) .recipe-meta{font-size:11px}
  .recipe-card.has-photo:not(.featured) .photo-note{left:5px;bottom:5px;max-width:calc(100% - 10px);padding:4px 5px}
  .recipe-card.has-photo:not(.featured) .include-label{margin-top:6px}
  .recipe-bottom{padding:12px 14px;gap:6px}
  .servings-control{gap:8px;flex:1}
  .serving-label{font-size:11px;line-height:1.4;max-width:70px}
  .serving-label strong{font-size:12px;margin-bottom:2px}
  .stepper input{width:34px}
  .mini-button{font-size:12px;padding:10px 8px}
  .recipe-tools{gap:0}
  .recipe-ingredients-toggle{padding:12px 18px;font-size:12px}
  .recipe-lines{padding:15px 18px 20px;font-size:12px;gap:8px 13px}
  .recipe-lines li{gap:7px;line-height:1.65}
  .open-grocery{font-size:14px;min-height:54px;padding:14px 17px}
  .add-recipe-card{padding:16px;gap:11px;border-radius:15px}
  .add-recipe-card strong{font-size:13px}
  .add-recipe-card small{font-size:11px}
  .add-circle{width:36px;height:39px;font-size:25px}
  .list-header{padding:25px 21px 23px}
  .list-top .eyebrow{font-size:11px;letter-spacing:.8px}
  .list-top h2{font-size:36px;margin-top:11px;letter-spacing:-1px}
  .list-icon{width:35px;height:41px;border-radius:12px}
  .list-icon svg{width:21px;height:21px}
  .list-stats{padding-top:23px}
  .list-body{padding:3px 14px 22px}
  .list-toolbar>span{font-size:11px}
  .item-name{font-size:14px}
  .item-amount{font-size:12px;padding:2px 6px}
  .item-source-label{font-size:11px;gap:3px}
  .check-target{width:44px;min-height:44px}
  .item-check{width:20px;height:20px}
  .item-label{padding-left:3px;padding-right:3px}
  .item-have{font-size:11px;padding:8px;min-width:52px}
  .grocery-item{gap:3px;padding:10px 0}
  .grocery-group h3{font-size:11px;gap:7px;margin-top:23px;letter-spacing:.75px}
  .category-count{font-size:11px}
  .list-actions{gap:8px;padding-top:19px}
  .list-actions .primary,.list-actions .secondary{font-size:13px;padding:12px 14px;gap:7px}
  .list-actions button svg{width:18px;height:18px}
  .list-footnote{font-size:11px;margin:14px 3px 0}
  .progress-summary{font-size:11px;gap:9px}
  .stats-strong{font-size:12px;gap:6px}
  .stats-strong strong{font-size:29px}
  .progress-detail{font-size:11px}
  .method{align-items:flex-start;gap:12px}
  .method-mark{width:37px;height:41px;border-radius:12px;margin-top:3px}
  .method h2{font-size:23px;letter-spacing:-.4px}
  .method p{font-size:12px;line-height:1.7}
  .method>.text-button{margin-left:49px;font-size:12px}
  .saved-note{gap:6px;font-size:11px;margin-top:12px}
  .save-divider{display:none}
  .saved-note>span:last-child{flex-basis:100%;margin-left:12px}
  footer{font-size:11px;align-items:flex-start;flex-direction:column;gap:12px;padding-left:19px;padding-right:19px}
  footer nav{margin-left:0;gap:20px}
  .dock-button{font-size:12px;gap:6px}
  .mobile-dock{width:calc(100% - 26px);max-width:420px;border-radius:17px;padding:5px}
  .dock-button>span{min-width:20px;height:20px}
  dialog{padding:25px 20px;border-radius:20px;width:calc(100% - 22px);max-height:92dvh}
  .dialog-heading h2{font-size:29px}
  .dialog-heading .eyebrow{font-size:11px}
  .dialog-heading{margin-bottom:17px;gap:12px}
  .dialog-copy,.help-steps{font-size:13px}
  .form-grid{gap:13px}
  label{font-size:12px}
  .field-note{font-size:12px}
  .dialog-actions .primary,.dialog-actions .secondary{font-size:12px}
  .recipe-modal-layout{max-height:calc(92dvh - 2px)}
  .recipe-modal .dialog-heading{padding:22px 20px 18px}
  .recipe-modal-body{padding-left:20px;padding-right:20px}
  .recipe-modal-footer{padding:13px 20px max(13px,env(safe-area-inset-bottom))}
  .recipe-modal-actions>button{flex:1;min-width:0}
  .recipe-view-section h3{font-size:24px}
  .recipe-view-ingredients li,.recipe-view-instructions{font-size:14px}
  .toast{max-width:calc(100% - 24px);padding:12px 14px;gap:12px;font-size:12px}
  .info-page{padding:0 21px;margin:29px auto 40px}
  .info-page h1{font-size:37px;letter-spacing:-1.1px}
  .info-page h2{font-size:26px}
  .info-page p,.info-page li{font-size:14px}
}

@media(max-width:380px){
  .topbar{padding-left:17px;padding-right:17px}
  main{padding:0 15px}
  h1{font-size:39px;letter-spacing:-1.5px}
  .hero .eyebrow{letter-spacing:.85px}
  .plan-stats{gap:8px}
  .plan-stats strong{font-size:28px}
  .plan-stats span:not(.stat-arrow){font-size:11px;max-width:74px}
  .section-heading{gap:8px;flex-wrap:wrap}
  .section-heading h2{font-size:26px}
  .section-heading .primary{padding:11px;font-size:12px}
  .section-heading .eyebrow{font-size:11px;letter-spacing:.4px}
  .recipe-bottom{flex-wrap:wrap}
  .servings-control{flex-basis:100%;justify-content:space-between}
  .recipe-tools{margin-left:auto}
  .recipe-lines{grid-template-columns:1fr}
  .recipe-card.has-photo:not(.featured){grid-template-columns:94px minmax(0,1fr)}
  .recipe-card.has-photo:not(.featured) .recipe-title h3{font-size:21px}
  .recipe-card.has-photo:not(.featured) .recipe-top{padding-left:13px;padding-right:13px}
  .list-top h2{font-size:32px}
  .list-top .eyebrow{font-size:11px;letter-spacing:.5px}
  .list-header{padding:23px 17px 21px}
  .list-body{padding-left:11px;padding-right:11px}
  .item-name-row{gap:5px}
  .grocery-group h3{letter-spacing:.35px}
  .check-target{width:44px}
  .category-icon{width:22px;height:23px}
  .list-icon{width:31px;height:38px}
  .form-grid{grid-template-columns:1fr;gap:0}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;scroll-behavior:auto!important;animation:none!important}
}

@media print{
  body{background:white;color:#111}
  .topbar,.hero,.banner,.recipes-panel,.method,.saved-note,footer,.list-actions,.list-toolbar,.list-footnote,.reset-checks,#have-section,.item-have,.item-source-label,.extra-edit-hint,.extra-item>.remove,.toast,dialog,.mobile-dock,.skip-link,.shopping-done{display:none!important}
  main{max-width:none;padding:0}
  .workspace{display:block}
  .workspace .list-panel{display:block!important;border:0;border-radius:0;background:white;box-shadow:none;padding:0}
  .list-header{background:white;color:#111;padding:0 0 15px;border-bottom:1px solid #ddd}
  .list-header .eyebrow{color:#444}
  .list-top h2,.list-top h2 em{color:#111}
  .list-body{padding:0}
  .item-label,.item-name,.item-amount{color:#111;background:none}
  .grocery-item.bought{display:none}
  .item-check{appearance:none;border:1px solid #888;width:14px;height:14px}
  .review-box{background:white;color:#111;border-color:#888}
  .review-box h3,.review-item strong,.review-item small{color:#111}
  .review-item button{display:none}
  .grocery-group,.review-item{break-inside:avoid}
  .source-details{display:none!important}
  .list-icon,.progress-track,.category-icon{display:none}
  .progress-summary,.stats-strong,.stats-strong strong,.progress-detail{color:#333}
  .category-count{background:none;color:#333}
  .grocery-group h3{color:#333}
  .extras-note{color:#333}
  .grocery-item{border-bottom:1px solid #ddd;border-radius:0}
  .check-target{width:30px}
}
