:root {
  color-scheme: light;
  --paper: #fbf8f1;
  --white: #fffdfa;
  --ink: #292319;
  --muted: #6c6255;
  --line: #e8dfd2;
  --rust: #a93922;
  --rust-dark: #8c2b17;
  --rust-light: #fae9e1;
  --sage: #e9eddf;
  --sage-ink: #46533b;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
a, button, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--rust); }
svg { flex-shrink: 0; vertical-align: middle; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.07; }
[hidden] { display: none !important; }
.shell { width: min(1272px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 10px; background: white; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

.site-header { background: var(--white); border-top: 4px solid var(--rust); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; min-height: 72px; gap: 15px; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.wordmark { font: bold 2.2rem/.9 var(--serif); letter-spacing: -.078em; white-space: nowrap; }
.wordmark > span { color: var(--rust); }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: var(--rust); color: var(--white); }
.main-nav, .header-actions { display: flex; align-items: center; }
.main-nav { gap: 6px; }
.header-actions { gap: 10px; justify-self: end; }
.main-nav > a { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 8px; font-size: .91rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.main-nav > a:hover, .main-nav > .selected { color: var(--rust); background: var(--rust-light); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; font-weight: 650; font-size: .91rem; line-height: 1.3; text-align: center; }
.btn:hover { background: #f9f2e8; }
.btn.primary { background: var(--rust); color: #fff; border-color: var(--rust); }
.btn.primary:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn.outline { background: var(--white); border-color: #e4d8ca; }
.btn.outline:hover { border-color: var(--rust); color: var(--rust); }
.btn-small { min-height: 37px; padding: 7px 11px; }
.btn.full { width: 100%; }
.account-button { min-height: 40px; padding-inline: 12px; max-width: 175px; overflow: hidden; white-space: nowrap; }
.icon-button { width: 34px; height: 34px; flex: 0 0 34px; display: inline-grid; place-items: center; border-radius: 9px; color: var(--muted); border: 1px solid transparent; background: transparent; padding: 0; }
.icon-button:hover { background: var(--rust-light); color: var(--rust); }
.header-heart { width: 40px; height: 40px; flex-basis: 40px; color: var(--rust); }
.household-button { width: 40px; height: 40px; flex-basis: 40px; color: var(--rust); }
.household-button.selected { background: var(--rust-light); }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--rust-dark); font-weight: 650; font-size: .875rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
main { padding-block: 32px 50px; min-height: calc(100svh - 78px); }
.dashboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 330px); gap: 26px; align-items: start; }
.hero { min-height: 238px; display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); background: #f1e5cf; border-radius: 18px; overflow: hidden; position: relative; }
.hero-content { padding: 20px 26px; display: flex; flex-direction: column; align-items: start; justify-content: center; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: var(--rust-dark); font-weight: 750; font-size: .79rem; text-transform: uppercase; letter-spacing: .095em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.35rem, 3.8vw, 3.65rem); line-height: .99; letter-spacing: -.065em; }
.hero h1 em { color: var(--rust-dark); font-weight: 400; }
.hero-content > p:not(.eyebrow) { max-width: 330px; margin: 10px 0 14px; color: #5e5040; line-height: 1.49; }
.hero-cta { min-height: 45px; }
.hero-image { position: relative; min-height: 100%; background: #b94f31; }
.hero-image > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 54% center; }
.photo-caption { position: absolute; bottom: 15px; right: 15px; border: 1px solid rgb(255 255 255 / .45); border-radius: 9px; padding: 7px 10px; color: #fff; background: #3e251bdc; display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 600; }
.photo-caption:hover { background: var(--ink); }
.recipe-section { padding-top: 29px; }
.recipe-section > h2 { font-size: 2.25rem; letter-spacing: -.045em; }
.search-row { display: flex; gap: 10px; margin-top: 17px; }
.search-field { display: flex; align-items: center; gap: 10px; min-height: 48px; background: var(--white); border: 1px solid #ad9987; border-radius: 9px; padding-inline: 13px; color: var(--muted); flex: 1; min-width: 0; }
.search-field:focus-within { outline: 2px solid var(--rust); outline-offset: 1px; }
.search-field input { width: 100%; flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 9px 0; font-size: .94rem; }
.search-field input::placeholder { color: #746b60; opacity: 1; }
.filter-button { min-width: 99px; }
.filter-count { color: var(--white); background: var(--rust); border-radius: 50%; min-width: 19px; min-height: 19px; display: grid; place-items: center; font-size: .75rem; }
.chips, .collection-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; color: var(--muted); font-size: .85rem; font-weight: 650; border-radius: 30px; border: 1px solid var(--line); background: var(--white); min-height: 34px; }
.chip:hover { border-color: var(--rust); color: var(--rust); }
.chip.active { background: var(--rust-light); color: var(--rust-dark); border-color: #ebc5b6; }
.avoid-panel { margin-top: 9px; color: var(--muted); border-block-end: 1px solid var(--line); }
.avoid-panel summary { display: flex; align-items: center; gap: 7px; cursor: pointer; list-style: none; padding-block: 6px; font-size: .875rem; font-weight: 650; }
.avoid-panel summary::-webkit-details-marker { display: none; }
.avoid-panel summary > svg:last-child { margin-left: auto; }
.avoid-panel[open] summary > svg:last-child { transform: rotate(180deg); }
.avoid-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.avoid-panel .avoid-chips { padding-block: 5px 8px; }
.avoid-chip { display: inline-flex; flex-wrap: nowrap; justify-content: start; align-items: center; gap: 5px; min-height: 33px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--white); padding: 4px 7px; font-size: .81rem; font-weight: 650; white-space: nowrap; }
.avoid-chip > svg { color: var(--sage-ink); }
.avoid-chip:hover { border-color: #cb8b77; }
.avoid-chip[aria-pressed="true"], .avoid-option input:checked + .avoid-chip { border-color: #cb8b77; background: var(--rust-light); color: var(--rust-dark); }
.avoid-chip[aria-pressed="true"] > svg, .avoid-option input:checked + .avoid-chip > svg { color: var(--rust-dark); }
.dialog-form .avoid-option { position: relative; display: inline-flex; cursor: pointer; }
.avoid-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.avoid-option input:focus-visible + .avoid-chip { outline: 2px solid var(--rust); outline-offset: 2px; }
.picker-avoid .section-label { display: inline-block; margin-bottom: 4px; }
.results-heading { display: flex; justify-content: space-between; align-items: center; min-height: 38px; margin-block: 10px 5px; gap: 10px; color: var(--muted); font-size: .875rem; }
.sort-label { display: flex; align-items: center; gap: 5px; }
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap select { appearance: none; padding-right: 32px; width: 100%; }
.select-wrap > svg { position: absolute; pointer-events: none; right: 9px; }
.sort-label select { border: 0; background: transparent; cursor: pointer; padding-inline: 4px 24px; color: var(--ink); font-size: .875rem; font-weight: 650; }
.sort-label .select-wrap > svg { right: 4px; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.recipe-card { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--white); overflow: hidden; }
.recipe-photo { display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: #efdcc7; aspect-ratio: 1.61; }
.recipe-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: center 47%; transition: transform .2s ease; }
.recipe-photo:hover > img { transform: scale(1.04); }
.food-placeholder { display: grid; align-items: center; justify-items: center; width: 100%; height: 100%; min-height: 42px; background: #f4e9d9; color: #9b6945; }
.food-placeholder.green { background: #e8eddf; color: #627254; }
.food-placeholder.rose { background: #f5e6dc; color: #9e5136; }
.food-placeholder.yellow { background: #f5edce; color: #825e2e; }
.recipe-photo .food-placeholder > svg { width: clamp(32px, 10vw, 53px); height: auto; }
.menu-item .food-placeholder, .menu-choice .food-placeholder { width: 43px; height: 43px; flex: 0 0 43px; border-radius: 7px; }
.menu-item .food-placeholder svg, .menu-choice .food-placeholder svg { width: 23px; height: 23px; }
.detail-hero .food-placeholder { aspect-ratio: 1.3; border-radius: 10px; }
.recipe-variant { color: var(--muted); font-size: .82rem; line-height: 1.2; }
.more-recipes { text-align: center; padding-top: 21px; display: grid; justify-items: center; gap: 6px; }
.recipe-photo:focus-visible { outline-offset: -4px; position: relative; }
.favorite { display: grid; place-items: center; position: absolute; top: 10px; right: 10px; width: 35px; height: 35px; border: 1px solid #eee1d7; border-radius: 50%; padding: 0; color: var(--rust-dark); background: var(--white); }
.favorite:hover, .favorite.is-saved { background: var(--rust-light); }
.favorite.is-saved > svg { fill: var(--rust); }
.recipe-body { padding: 12px; display: grid; gap: 6px; }
.recipe-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; }
.recipe-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: #a69a8d; margin-inline: 1px; }
.card-protein { white-space: nowrap; }
.recipe-time { margin-top: 2px; }
.recipe-body h3 { font-family: var(--serif); font-size: clamp(1.06rem, 1.55vw, 1.38rem); letter-spacing: -.035em; font-weight: 600; line-height: 1.18; }
.recipe-body h3 button { font: inherit; letter-spacing: inherit; text-align: left; padding: 0; border: 0; background: transparent; }
.recipe-body h3 button:hover { color: var(--rust); }
.recipe-bottom { display: flex; justify-content: space-between; gap: 4px; align-items: center; margin-top: 3px; min-height: 31px; }
.tag, .count-tag { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 6px; line-height: 1.25; font-size: .75rem; font-weight: 700; background: #f1ebe2; color: #5d5142; }
.tag.rose { background: var(--rust-light); color: var(--rust-dark); }
.tag.green { background: #e8eedf; color: #435337; }
.tag.yellow { background: #f6edcd; color: #684c19; }
.add-recipe { height: 31px; width: 31px; flex-basis: 31px; background: var(--rust-light); color: var(--rust); }
.add-recipe:hover { background: var(--rust); color: white; }

.sidebar { display: grid; gap: 15px; min-width: 0; }
.panel { border-radius: 15px; border: 1px solid var(--line); background: var(--white); padding: 19px; min-width: 0; }
.panel-heading, .panel-title { display: flex; align-items: center; gap: 9px; }
.panel-heading { justify-content: space-between; }
.panel h2, .preference-panel h3 { font-family: var(--serif); font-size: 1.57rem; letter-spacing: -.045em; font-weight: 600; line-height: 1.1; }
.colored-icon, .preference-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; background: var(--rust-light); color: var(--rust); border-radius: 9px; }
.menu-panel .count-tag { color: var(--rust-dark); background: var(--rust-light); white-space: nowrap; }
.week-controls { display: flex; justify-content: space-between; align-items: center; background: #f7f2e9; border-radius: 8px; margin-top: 14px; min-height: 39px; gap: 4px; }
.week-controls span { display: inline-flex; justify-content: center; align-items: center; gap: 7px; font-size: .875rem; font-weight: 650; }
.week-controls span > svg { color: var(--rust); }
.week-controls > .icon-button { border-radius: 8px; }
.household { display: flex; justify-content: space-between; align-items: center; gap: 3px; border-block-end: 1px solid var(--line); padding-block: 13px; }
.household > span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; font-weight: 700; font-size: .875rem; min-width: 83px; }
.stepper button { width: 25px; height: 25px; border: 0; border-radius: 5px; padding: 0; background: #f9f2e9; color: var(--rust-dark); }
.stepper button:hover:not(:disabled) { background: var(--rust-light); }
.mini-menu { display: grid; gap: 9px; padding-block: 13px 15px; }
.section-label { color: var(--muted); text-transform: uppercase; font-size: .73rem; font-weight: 700; letter-spacing: .055em; }
.menu-item { display: flex; align-items: center; gap: 9px; min-width: 0; }
.menu-item > img { width: 43px; height: 43px; flex-shrink: 0; object-fit: cover; border-radius: 7px; }
.menu-item > div:first-of-type { display: grid; gap: 1px; min-width: 0; flex: 1; }
.menu-item strong { font-size: .875rem; line-height: 1.25; }
.menu-item span { color: var(--muted); font-size: .76rem; }
.menu-item > .icon-button { width: 29px; height: 29px; flex-basis: 29px; color: var(--rust); background: #faf1e7; }
.menu-item > .icon-button:hover { background: var(--rust-light); }
.preference-panel { display: flex; gap: 12px; padding: 16px; border: 1px solid #dce3d0; border-radius: 13px; background: var(--sage); color: var(--sage-ink); }
.preference-icon { background: #dbe5ce; color: var(--sage-ink); }
.preference-panel h3 { font-size: 1.24rem; }
.preference-panel p { font-size: .855rem; margin-block: 5px 8px; }
.preference-panel .text-link { color: #3b4e30; text-decoration: underline; text-underline-offset: 4px; }
.household-view { max-width: 690px; display: grid; gap: 14px; }
.household-view .panel > p { margin-block: 10px 15px; color: var(--muted); }
.household-view .dialog-form .btn { justify-self: start; }
.household-members { display: grid; gap: 6px; margin-block: 17px; }
.member { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.member > .count-tag { margin-left: auto; }
.household-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; gap: 16px; }
.page-head .eyebrow { margin-bottom: 9px; }
.page-head h1 { font-size: clamp(2.45rem, 4.5vw, 4.25rem); letter-spacing: -.055em; }
.page-head p:not(.eyebrow) { margin-top: 8px; color: var(--muted); }
.planner-head { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.planner-head .week-controls { margin-top: 0; width: min(100%, 255px); }
.planner-days { display: grid; gap: 10px; }
.planner-day { background: #f9f5ed; border: 1px solid var(--line); padding: 13px; border-radius: 10px; }
.planner-day > h2 { font-size: 1.3rem; text-transform: capitalize; }
.planner-day > h2 > span { color: var(--muted); font: .85rem var(--sans); }
.meal-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.meal-slot { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 9px; min-width: 0; display: grid; align-content: start; gap: 8px; }
.meal-slot > .text-link { justify-self: start; }
.row-actions { display: flex; align-items: center; gap: 5px; }
.groceries-panel > .panel-heading { margin-bottom: 12px; }
.groceries-panel h2 .count-tag { vertical-align: middle; margin-left: 5px; font-family: var(--sans); letter-spacing: normal; }
.aisle + .aisle { margin-top: 17px; }
.aisle h3, .shopping-aisle > summary { padding: 7px 10px; font-size: .875rem; background: #f7f2e9; border-radius: 7px; }
.shopping-aisle > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; min-height: 40px; }
.shopping-aisle[open] > summary svg { transform: rotate(180deg); }
.shopping-progress { color: var(--sage-ink); font-size: .875rem; margin-top: 8px; }
.store-handoff { display: grid; gap: 8px; margin-block: 12px; }
.grocery-check[aria-pressed="true"] + div strong { text-decoration: line-through; }
.grocery-line { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.grocery-line > div:first-of-type { flex: 1; display: grid; }
.grocery-line strong, .catalog-item strong { font-size: .95rem; }
.grocery-line > div > span, .catalog-item > div > span { font-size: .835rem; color: var(--muted); }
.grocery-check { width: 23px; height: 23px; flex: 0 0 23px; padding: 0; border-radius: 6px; border: 1px solid #c3b6a7; background: var(--white); }
.grocery-check.checked { background: var(--sage); border-color: #758869; color: #344b2b; }
.grocery-check:hover { border-color: var(--rust); }
.excluded .grocery-line strong { text-decoration: line-through; color: var(--muted); }
.store-panel { display: grid; gap: 12px; }
.retailer-list { display: grid; gap: 6px; }
.retailer { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: .9375rem; font-weight: 650; text-align: left; }
.retailer:hover, .retailer.chosen { border-color: #cb8b77; background: #fdf5f0; }
.store-monogram { display: grid; place-items: center; width: 28px; height: 28px; background: #f3eee8; color: var(--store-ink); border-radius: 6px; font-weight: 800; }
.radio { width: 15px; height: 15px; margin-left: auto; border: 1px solid #9f8e7c; border-radius: 50%; }
.chosen .radio { border: 4px solid var(--rust); }
.postcode-form { display: flex; align-items: end; gap: 8px; }
.postcode-form label { flex: 1; min-width: 0; }
.collection-tabs { margin-block: 0 20px; }
.search-criteria { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.criterion { display: inline-flex; gap: 6px; align-items: center; min-height: 35px; padding: 4px 9px; border: 1px solid transparent; border-radius: 7px; font-size: .83rem; color: var(--sage-ink); background: var(--sage); }
.criterion:hover { border-color: currentColor; }
.recipe-variants { min-width: 0; }
.recipe-variants details { padding: 8px 10px; font-size: .83rem; }
.recipe-variants summary { cursor: pointer; font-weight: 650; }
.recipe-variants ul { padding-left: 16px; }
.recipe-variants button.text-link { text-align: left; }
.planned-recipe { padding-block: 6px; border-bottom: 1px solid var(--line); }
.meal-actions { margin-top: 3px; justify-content: end; flex-wrap: wrap; }
.locked-meal { background: var(--sage); color: var(--sage-ink); }
.draft-meal, .quote-line { padding: 10px 0; border-bottom: 1px solid var(--line); }
.draft-meal, .quote-total, .timer-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.draft-meal .row-actions { flex-shrink: 0; }
.quote-lines { max-height: 50vh; overflow: auto; }
.quote-line label { margin-top: 6px; }
.quote-total { padding: 10px; background: var(--sage); border-radius: 8px; }
.history-panel { max-width: 730px; }
.history-panel .menu-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.kitchen-instruction { line-height: 1.5; font-size: clamp(1.1rem, 4vw, 1.4rem); margin: 4px 0 16px; }
#kitchen-step details { margin: 12px 0; }
#kitchen-step summary { cursor: pointer; color: var(--rust-dark); font-weight: 650; }
.timer-form { display: flex; align-items: end; gap: 8px; padding: 8px 0; }
.timer-form label { display: grid; gap: 4px; font-size: .875rem; }
.timer-form input { width: 100px; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.timer-row { border-bottom: 1px solid var(--line); }
.feedback-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.planner-head { flex-wrap: wrap; }
.collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.archived-section { margin-top: 22px; }
.archived-section h2 { font-size: 1.6rem; }
.archived-section .muted { margin-block: 6px 12px; }
.pending-panel { margin-bottom: 20px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 10px; }
.order-row + .order-row { border-top: 1px solid var(--line); }
.order-row p, .detail, .muted { color: var(--muted); font-size: .86rem; }
.extra-line > svg { color: var(--rust); }
.empty { display: grid; place-items: center; gap: 8px; text-align: center; border: 1px dashed #dfd2c2; border-radius: 12px; padding: 27px 18px; background: #fdfaf5; }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--rust-light); color: var(--rust); }
.empty h3 { font: 600 1.35rem/1.2 var(--serif); }
.empty p { color: var(--muted); }
.empty .btn { margin-top: 3px; }

dialog { width: min(100% - 32px, 465px); max-height: calc(100svh - 38px); border: 1px solid var(--line); border-radius: 16px; padding: 0; background: var(--white); color: var(--ink); box-shadow: 0 22px 65px #33241535; }
dialog.wide { width: min(100% - 32px, 680px); }
dialog::backdrop { background: #29201480; }
.dialog-inner { position: relative; padding: 25px; }
.dialog-inner > h2 { font-size: clamp(1.85rem, 5vw, 2.3rem); letter-spacing: -.055em; margin: 0 35px 12px 0; }
.dialog-close { position: absolute; right: 12px; top: 12px; z-index: 1; background: #f9f2e8; color: var(--ink); }
.dialog-intro { color: var(--muted); margin-bottom: 15px; }
.dialog-form { display: grid; gap: 13px; }
.dialog-form label, .postcode-form label { display: grid; gap: 5px; font-weight: 650; font-size: .9rem; }
.dialog-form .instagram-check { display: flex; align-items: center; }
.instagram-caption { white-space: pre-wrap; overflow-wrap: anywhere; }
.dialog-form :is(input:not([type="checkbox"]), select), .postcode-form input, .copy-area { border: 1px solid #e4d8ca; min-height: 40px; border-radius: 8px; padding: 7px 9px; background: #fffdf9; width: 100%; min-width: 0; font-weight: 400; }
.dialog-form label .select-wrap select { padding-right: 29px; }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dialog-form fieldset { min-width: 0; margin: 0; border: 1px solid var(--line); padding: 8px 10px 11px; border-radius: 8px; }
.dialog-form legend { padding-inline: 4px; font-size: .9rem; font-weight: 650; }
.checkboxes { display: flex; flex-wrap: wrap; gap: 7px 14px; }
.checkboxes label { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.equipment-options, .equipment-badges, .draft-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.equipment-option { position: relative; }
.equipment-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.equipment-option > span { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 9px; }
.equipment-option input:checked + span { background: var(--rust-light); color: var(--rust-dark); border-color: var(--rust); }
.equipment-option input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 2px; }
.equipment-option input:disabled { cursor: default; }
.equipment-option input:disabled + span { opacity: .35; }
.equipment-badges { display: inline-flex; gap: 5px; }
.equipment-badges > span { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 6px; }
.account-links, .order-recipe-list { display: grid; gap: 8px; margin-block: 8px; }
.order-history-item { padding-block: 10px; }
.order-history-item + .order-history-item { border-top: 1px solid var(--line); }
.order-history-item summary { cursor: pointer; margin-block: 8px; }
.retailer-setting { flex-wrap: wrap; }
input[type="checkbox"] { accent-color: var(--rust); width: 17px; height: 17px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: end; }
.form-error { margin-top: 12px; border-radius: 8px; background: var(--rust-light); color: var(--rust-dark); padding: 9px; }
.dialog-status { margin-top: 10px; color: var(--sage-ink); }
.menu-choices { display: grid; gap: 6px; }
#picker-choices { max-height: 41vh; overflow-y: auto; }
.dialog-form .picker-search { display: flex; }
.dialog-form .picker-search input { border: 0; padding: 7px 0; background: transparent; }
.dialog-form .menu-choice { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.menu-choice:hover { background: #f9f2e8; }
.menu-choice img { width: 44px; height: 44px; border-radius: 7px; object-fit: cover; }
.menu-choice small { display: block; font-weight: 450; color: var(--muted); font-size: .8rem; }
.detail-hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 17px; align-items: center; padding-right: 27px; }
.detail-hero img { width: 100%; aspect-ratio: 1.3; object-fit: cover; border-radius: 10px; }
.detail-hero h2 { font-size: clamp(1.65rem, 4vw, 2.55rem); letter-spacing: -.05em; margin-block: 8px; }
.detail-hero p { color: var(--muted); margin-bottom: 8px; }
.recipe-timing, .nutrition { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-block: 13px 5px; background: #f7f2e9; border-radius: 8px; }
.recipe-timing div, .nutrition div { display: grid; text-align: center; padding: 8px 2px; }
.recipe-timing div + div, .nutrition div + div { border-left: 1px solid var(--line); }
.recipe-timing dd, .nutrition dd { margin: 2px 0 0; color: var(--rust-dark); font-weight: 700; }
.recipe-timing dt, .nutrition dt { font-size: .8rem; color: var(--muted); }
.nutrition-section .nutrition { margin-top: 7px; }
.detail-section { margin-block: 15px; }
.detail-section h3 { font: 600 1.35rem/1.2 var(--serif); }
.detail-section h3 > span { vertical-align: middle; }
.ingredients-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 13px; }
.ingredients-list li { font-size: .875rem; display: flex; gap: 6px; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 6px 0; }
.ingredients-list strong { white-space: nowrap; }
.steps { padding-left: 22px; margin: 8px 0; }
.steps li { padding: 4px 0 4px 3px; }
.steps li::marker { color: var(--rust-dark); font-weight: 700; }
.account-summary { display: flex; gap: 12px; align-items: center; padding-bottom: 15px; }
.account-summary p { color: var(--muted); }
.account-household { margin-bottom: 8px; }
.catalog-search { margin-bottom: 10px; }
#catalog-results { max-height: 47vh; overflow: auto; }
.catalog-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.catalog-item > div { display: grid; flex: 1; }
.copy-area { min-height: 200px; }
.toast { display: none; }
.toast.visible { display: flex; align-items: center; gap: 8px; position: fixed; z-index: 3; right: 18px; bottom: 18px; max-width: calc(100vw - 36px); padding: 11px 15px; border-radius: 9px; background: #34482f; color: white; box-shadow: 0 5px 20px #29231923; font-weight: 600; font-size: .9rem; }
.toast.failed { background: var(--rust-dark); }
.toast-action { background: transparent; border: 0; color: inherit; text-decoration: underline; font-weight: 700; }
.mobile-menu { display: none; }

@media (max-width: 1110px) {
  .main-nav > a { padding-inline: 9px; }
  .shell { width: calc(100% - 52px); }
  .dashboard { grid-template-columns: minmax(0, 1fr) 285px; gap: 16px; }
  .hero-content { padding: 18px 23px; }
  .hero h1 { font-size: clamp(2.3rem, 4vw, 3.2rem); }
  .recipe-grid { gap: 10px; }
  .menu-panel, .store-panel { padding: 14px; }
  .menu-item .row-actions { gap: 0; }
  .menu-item .row-actions .icon-button { width: 25px; flex-basis: 25px; }
}
@media (max-width: 1000px) {
  .shell { width: calc(100% - 38px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 9px; }
  .header-actions { grid-row: 1; grid-column: 2; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: start; overflow-x: auto; padding-block: 8px; }
  .dashboard { grid-template-columns: minmax(0, 1fr) 255px; gap: 14px; }
  .hero { min-height: 225px; }
  .hero-content { padding: 20px 16px; }
  .hero h1 { font-size: clamp(2.35rem, 4.8vw, 3.4rem); }
  .hero-content > p:not(.eyebrow) { font-size: .93rem; margin-block: 12px 16px; }
  .recipe-grid:not(.collection-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meal-slots { grid-template-columns: 1fr; }
}
@media (max-width: 690px) {
  .shell { width: calc(100% - 30px); }
  main { padding-top: 19px; }
  .main-nav > a { padding: 7px 8px; gap: 4px; font-size: .83rem; }
  .main-nav > a svg { width: 15px; height: 15px; }
  .header-inner { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; }
  .header-actions, .main-nav > a[href="#recettes"] { display: none; }
  .mobile-menu { display: block; position: relative; z-index: 2; }
  .mobile-menu summary { display: flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 8px; cursor: pointer; font-weight: 700; }
  .mobile-menu-links { position: absolute; right: 0; display: grid; gap: 6px; width: min(240px, 80vw); padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: 0 5px 20px #29231923; }
  .mobile-menu-links a { display: flex; align-items: center; min-height: 44px; padding-inline: 8px; }
  .mobile-menu-links .btn { white-space: normal; overflow-wrap: anywhere; }
  .brand-mark { width: 35px; height: 35px; }
  .wordmark { font-size: 2rem; }
  .header-actions { gap: 3px; }
  .dashboard { grid-template-columns: 1fr; }
  .hero { min-height: 200px; }
  .hero-content { padding: 16px; }
  .hero h1 { font-size: clamp(2rem, 6.25vw, 3.75rem); }
  .hero .eyebrow { font-size: .66rem; letter-spacing: .05em; }
  .hero-cta { font-size: .82rem; padding: 8px; min-height: 37px; }
  .hero-cta svg { width: 15px; height: 15px; }
  .photo-caption { bottom: 8px; right: 8px; font-size: .68rem; padding: 4px 6px; }
  .photo-caption svg { width: 13px; height: 13px; }
  .recipe-section { padding-top: 19px; }
  .recipe-section > h2 { font-size: 1.92rem; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head { align-items: start; flex-direction: column; }
  .sidebar { gap: 12px; }
  .meal-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .header-actions .icon-button { width: 34px; flex-basis: 34px; }
  .main-nav { gap: 0; justify-content: space-between; min-width: 0; }
  .main-nav > a { padding-inline: 5px; min-height: 44px; }
  .main-nav > a svg { display: none; }
  .recipe-meta { font-size: .73rem; gap: 3px; }
  .recipe-meta .meta-dot { margin-inline: 1px; }
  .recipe-meta .hide-small { display: none; }
  .card-protein { flex-basis: 100%; }
  .recipe-time { font-size: .75rem; }
  .nutrition dd { font-size: .815rem; }
  .hero { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
  .hero-content { padding: 13px; }
  .hero-content > p:not(.eyebrow) { font-size: .85rem; }
  .hero h1 { font-size: clamp(1.85rem, 7.2vw, 2.4rem); }
  .hero .eyebrow > svg, .photo-caption > svg { display: none; }
  .meal-slots, .form-pair { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; padding-right: 0; }
  .detail-hero img { aspect-ratio: 1.7; }
  .grocery-line .text-link { font-size: .78rem; }
  .dialog-inner { padding: 17px; }
  .ingredients-list { grid-template-columns: 1fr; }
  .dashboard { grid-template-columns: minmax(0, 1fr); }
  .extra-line { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
