:root {
  color-scheme: light;
  --ink: #202f25;
  --muted: #5c6a5e;
  --forest: #244a36;
  --forest-deep: #183626;
  --leaf: #dceaab;
  --linen: #faf9f5;
  --paper: #fffefa;
  --line: #e4e7db;
  --pale: #edf2e5;
  --orange: #8a4d27;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--linen);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid #648949; outline-offset: 3px; }
#screen:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.04em; }
h1 { font-size: clamp(2.65rem, 6vw, 4.4rem); line-height: .98; }
h2 { font-size: clamp(1.7rem, 3vw, 2.42rem); line-height: 1.08; }
h3 { font-size: 1.03rem; }
p { line-height: 1.55; }
svg { display: inline-block; flex: none; vertical-align: middle; }
.shell { width: min(1180px, calc(100% - 104px)); margin-inline: auto; }
.sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: .5rem; left: .5rem; padding: .75rem; background: white; z-index: 20; translate: 0 -150%; }
.skip:focus { translate: 0; }
.topbar { background: var(--linen); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.15rem; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: .63rem; font-weight: 720; letter-spacing: -.055em; font-size: 1.24rem; }
.brand-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; background: var(--forest); color: var(--leaf); }
.nav { display: flex; align-items: center; gap: 2rem; height: 100%; font-size: .9rem; font-weight: 630; color: var(--muted); }
.nav a { height: 100%; position: relative; display: flex; align-items: center; }
.nav a[aria-current] { color: var(--forest-deep); }
.nav a[aria-current]::after { content: ''; height: 2px; background: var(--forest); position: absolute; inset: auto 0 0; }
.my-meal { justify-self: end; display: inline-flex; align-items: center; gap: .55rem; border: 1px solid #dbe2d2; border-radius: 9px; padding: .51rem .73rem; color: var(--forest); font-weight: 680; font-size: .89rem; white-space: nowrap; }
.my-meal[aria-current], .my-meal:hover { background: var(--pale); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: .65rem; }
.account-link { color: var(--forest); font-size: .89rem; font-weight: 680; padding: .45rem .15rem; white-space: nowrap; }
.account-link:hover { text-decoration: underline; }
.count { display: grid; place-items: center; min-width: 1.36rem; height: 1.36rem; padding-inline: .2rem; background: #e9eedf; color: var(--forest); border-radius: 999px; font-size: .75rem; }
#screen { padding-block: 32px 72px; }
#screen.has-meal-tray { padding-bottom: 118px; }
.hero { position: relative; background: var(--forest-deep); color: #f5f5eb; border-radius: 20px; display: grid; grid-template-columns: 1.22fr 1fr; overflow: hidden; min-height: 398px; }
.hero-content { padding: 38px 38px 32px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3.25rem, 5.4vw, 5rem); line-height: .95; }
.hero-content > p { margin-top: 18px; color: #dbe7d8; max-width: 42ch; font-size: 1.04rem; }
.hero-picture { position: relative; min-height: 100%; background: #23452e; }
.hero-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 57% center; }
.hero-picture::after { content: ''; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(90deg, #18362655, transparent 23%); }
.recommend-form { margin-top: 24px; }
.hero-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
label { font-size: .88rem; font-weight: 650; display: block; }
input:not([type=checkbox]), select, textarea { width: 100%; min-width: 0; color: var(--ink); border: 1px solid #d9ded0; border-radius: 8px; min-height: 42px; background: var(--paper); padding: .625rem .68rem; margin-top: .32rem; }
select { appearance: none; padding-right: 1.85rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%235c6a5e' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .58rem center; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #6c776e; opacity: 1; }
input[type=checkbox] { width: 1.1rem; height: 1.1rem; flex: none; margin: 0; accent-color: var(--forest); }
.hero-fields label { color: #e2e9d9; }
.hero-fields input { color: #fcfcf4; background: #284a35; border-color: #527057; margin-top: 5px; font-size: .89rem; }
.hero-fields input::placeholder { color: #c9d9c8; }
.optional { color: #c3d1c2; font-size: .82rem; margin-top: .47rem; }
.hero-actions { margin-top: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; border: 1px solid transparent; border-radius: 8px; padding: .67rem .86rem; font-size: .88rem; font-weight: 680; min-height: 42px; white-space: nowrap; }
.button.primary { background: var(--forest); color: #fff; }
.button.primary:hover { background: #326146; }
.button.on-dark { color: #223824; background: var(--leaf); }
.button.on-dark:hover { background: #e9f5bf; }
.button.secondary { color: var(--forest); border-color: #dce2d4; background: var(--paper); }
.button.secondary:hover, .button.ghost:hover { background: var(--pale); }
.button.hero-link { color: #e9f0e2; border-color: #638068; background: transparent; }
.button.hero-link:hover { background: #3c5c42; }
.button.ghost { color: var(--forest); background: transparent; }
.button.full { width: 100%; }
.form-message { font-size: .875rem; min-height: 0; color: #f6d4ad; }
.form-message:not(:empty) { margin-top: .7rem; }
.catalog { padding-top: 36px; scroll-margin-top: 1rem; }
.section-heading p, .page-top p, .panel-title p, .saved-row p { margin-top: .45rem; color: var(--muted); }
.gallery-tools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block: 19px 17px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { border: 1px solid var(--line); color: var(--muted); background: var(--paper); border-radius: 999px; padding: .52rem .9rem; font-size: .86rem; font-weight: 630; white-space: nowrap; }
.filter.active, .filter:hover { color: var(--forest); border-color: #d9e4ce; background: var(--pale); }
.search-box { color: var(--muted); display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding-left: .65rem; width: min(280px, 100%); }
.search-box input { margin: 0; border: 0; background: transparent; font-size: .86rem; }
.search-box:focus-within { outline: 2px solid #648949; outline-offset: 2px; }
.search-box input:focus-visible { outline: none; }
.catalog-tools { gap: .85rem 1.25rem; margin-block: 0 .9rem; flex-wrap: wrap; }
.catalog-tools .search-box { flex: 1 1 18rem; width: auto; }
.catalog-filters { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.1rem; }
.catalog-time { display: flex; align-items: center; gap: .48rem; color: var(--muted); white-space: nowrap; }
.catalog-time select { width: auto; min-height: 39px; margin: 0; font-size: .85rem; }
.catalog-count { margin-bottom: .85rem; font-size: .87rem; color: var(--muted); }
.card-facts { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .78rem; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; display: flex; flex-direction: column; }
.card-picture { position: relative; }
.text-card-head { min-height: 48px; display: flex; align-items: center; padding: 0 48px 0 13px; }
.text-card-head .favorite { top: 6px; }
.text-card-head + .card-body { padding-top: .25rem; }
.photo-button { border: 0; margin: 0; padding: 0; background: transparent; width: 100%; display: block; }
.recipe-photo { aspect-ratio: 1.57; background: #dce7d3; overflow: hidden; position: relative; }
.recipe-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.recipe-photo.custom-art { display: grid; place-items: center; color: #547953; }
.tag { font-size: .77rem; font-weight: 730; border-radius: 999px; background: #e8eddf; color: #32533c; padding: .29rem .55rem; width: max-content; }
.photo-tag { position: absolute; top: 11px; left: 11px; background: #fffff5ed; }
.icon-button { display: inline-grid; place-items: center; color: var(--forest); border: 1px solid transparent; background: transparent; border-radius: 10px; width: 40px; height: 40px; flex: none; }
.icon-button:hover { background: var(--pale); }
.favorite { position: absolute; top: 9px; right: 9px; width: 36px; height: 36px; border-radius: 50%; background: #fffff6f2; }
.favorite.is-saved { color: #995231; }
.favorite.is-saved svg { fill: #b9684b; }
.icon-button.add { border: 1px solid #dde4d4; background: #eef2e7; border-radius: 9px; width: 37px; height: 37px; }
.icon-button.add:hover, .icon-button.is-added { background: #dfeacb; }
.card-body { padding: 13px 13px 12px; display: flex; flex-direction: column; flex: 1; }
.text-button { color: var(--ink); background: transparent; border: 0; text-align: left; padding: 0; }
.text-button:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.card-title { font-weight: 730; font-size: .99rem; line-height: 1.25; }
.card-body p { margin-top: .4rem; color: var(--muted); font-size: .875rem; line-height: 1.42; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: auto; padding-top: .72rem; }
.meta { color: var(--muted); font-size: .86rem; }
.page-top { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding-block: 18px 23px; }
.page-top h1 { font-size: clamp(2.8rem, 6vw, 4.2rem); }
.inner-catalog { padding-top: 2px; }
.empty { text-align: center; background: var(--paper); border: 1px dashed #d4ddcb; border-radius: 15px; padding: 52px 20px; }
.empty-icon { background: var(--pale); width: 60px; height: 60px; margin: 0 auto .8rem; display: grid; place-items: center; border-radius: 17px; color: var(--forest); }
.empty p { color: var(--muted); margin-block: .45rem 1rem; }
.small-empty { padding: 35px 20px; }
.small-empty .empty-icon { width: 48px; height: 48px; }
.saved-section { padding-top: 36px; }
.saved-list, .empty-note { margin-top: 1rem; }
.empty-note { color: var(--muted); }
.saved-row { border: 1px solid var(--line); background: var(--paper); border-radius: 11px; padding: .85rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; margin-bottom: .55rem; }
.saved-row p { font-size: .87rem; }
.row-actions { display: flex; align-items: center; gap: .3rem; }
.recent-meal { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem; margin-top: 22px; padding: .7rem .85rem; border: 1px solid #dbe4d0; background: var(--pale); border-radius: 12px; }
.recent-meal h2 { font-size: 1.3rem; }
.recent-meal p { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.meal-tray { position: fixed; z-index: 6; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; display: flex; align-items: center; width: min(690px, calc(100% - 32px)); gap: .7rem; padding: .68rem .72rem; border: 1px solid #cddccb; border-radius: 13px; background: var(--paper); box-shadow: 0 7px 28px #19362535; }
.meal-tray-copy { min-width: 0; flex: 1; }
.meal-tray-copy strong, .meal-tray-copy > span { display: block; line-height: 1.3; }
.meal-tray-copy strong { font-size: .91rem; }
.meal-tray-copy > span { color: var(--muted); font-size: .82rem; margin-top: .19rem; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.subnav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; border-bottom: 1px solid var(--line); margin: 0 0 21px; }
.subnav button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 12px 16px; min-height: 46px; font-weight: 650; font-size: .91rem; }
.subnav button:hover, .subnav button[aria-current] { color: var(--forest); border-color: var(--forest); }
.meal-columns { display: grid; grid-template-columns: 1fr 323px; gap: 20px; align-items: start; }
.panel, .summary { border: 1px solid var(--line); background: var(--paper); border-radius: 14px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 19px 22px 13px; }
.panel-title h2, .summary h2 { font-size: 1.77rem; }
.panel-title p { font-size: .9rem; }
.dish-list { padding: 0 22px; }
.dish-row { display: flex; align-items: center; gap: .85rem; border-bottom: 1px solid var(--line); padding: .8rem 0; }
.dish-name { flex: 1; min-width: 0; }
.dish-name h3 { margin-block: .17rem; }
.dish-name .meta { font-size: .8rem; }
.swap-button { font-size: .81rem; min-height: 36px; padding-inline: .55rem; }
.swap-list { margin-top: .8rem; }
.tiny-photo { border-radius: 8px; flex: 0 0 74px; width: 74px; aspect-ratio: 1.15; }
.tiny-photo.custom-art svg { width: 1.55rem; }
.panel-actions { padding: 1.05rem 1.35rem; display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.panel-actions .primary { flex: none; }
.summary { padding: 1.1rem; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.05rem; }
.summary-grid div { padding: .7rem; border-radius: 9px; background: var(--pale); }
.summary span, .summary small { display: block; color: var(--muted); font-size: .86rem; }
.summary strong { display: block; color: var(--forest); font-size: 1.17rem; margin-top: .18rem; }
.summary-cost { display: grid; gap: .2rem; padding-block: .89rem; border-bottom: 1px solid var(--line); }
.summary small { line-height: 1.5; }
.kitchen-form h3 { margin: .86rem 0 .5rem; }
.settings-grid, .checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: .63rem; }
.checkboxes { margin: .8rem 0; }
.checkboxes label, .inline-check { display: flex; align-items: center; gap: .47rem; }
.alert { margin-bottom: 13px; padding: .8rem .95rem; background: #faf1e3; border: 1px solid #e7d4b7; color: #6e4821; border-radius: 10px; font-size: .89rem; line-height: 1.45; }
.alert ul { padding-left: 1.3rem; margin: .25rem 0 0; }
.preview-timeline { border: 1px solid var(--line); background: var(--paper); border-radius: 10px; margin-top: 13px; padding: .85rem 1rem; }
.preview-timeline summary { cursor: pointer; font-weight: 650; }
.preview-timeline ol { list-style: none; margin: .6rem 0 0; padding: 0; }
.preview-timeline li { border-bottom: 1px solid var(--line); padding: .5rem 0; font-size: .9rem; }
.preview-timeline li span, .preview-timeline small { color: var(--muted); margin-right: .25rem; }
.shopping-panel { max-width: 820px; }
.shopping-filters { padding: .25rem 22px .7rem; border-bottom: 1px solid var(--line); }
.list-clear { margin: 1rem 22px; color: var(--muted); }
.aisle { padding: 0 22px; }
.aisle h3 { color: var(--forest); padding: .61rem 0 .25rem; }
.grocery-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .6rem; min-height: 61px; border-bottom: 1px solid var(--line); }
.grocery-row label { display: flex; align-items: center; gap: .63rem; cursor: pointer; line-height: 1.25; }
.grocery-row label small, .cook-step small, .timer-row small { display: block; color: var(--muted); font-size: .81rem; margin-top: .25rem; font-weight: 450; }
.grocery-row strong { white-space: nowrap; font-size: .87rem; }
.grocery-done label span { text-decoration: line-through; opacity: .7; }
.on-hand { min-height: 35px; padding: .4rem; font-size: .8rem; }
.on-hand.active { background: var(--pale); }
.cooking-panel > .alert { margin: .65rem 1.35rem; }
.next-step { margin: 8px 20px 12px; border-radius: 12px; background: #edf2e5; padding: 17px; }
.next-step h3 { font-size: 1.35rem; margin-top: .45rem; }
.next-step p { margin-block: .25rem .7rem; }
.next-tag { display: flex; align-items: center; gap: .3rem; color: var(--forest); font-size: .82rem; font-weight: 750; }
.step-ingredients { margin-block: .6rem .83rem; color: var(--forest); }
.step-ingredients summary { cursor: pointer; font-weight: 650; font-size: .88rem; }
.cook-steps { list-style: none; padding: 0 1.25rem 1rem; margin: 0; }
.cook-step { display: flex; align-items: center; gap: .6rem; padding-block: .6rem; border-bottom: 1px solid var(--line); }
.cook-step > div { flex: 1; }
.cook-step strong { display: block; font-size: .91rem; }
.step-check { border: 1px solid #dde1d4; color: #707e70; }
.step-done .step-check { background: var(--forest); color: white; }
.step-done strong { color: var(--muted); text-decoration: line-through; }
.timer-panel > p { color: var(--muted); margin-top: .55rem; font-size: .9rem; }
.timer-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-block: .62rem; border-bottom: 1px solid var(--line); }
.timer-row strong { font-variant-numeric: tabular-nums; font-size: 1.4rem; }
dialog { border: 1px solid #dde2d5; padding: 0; width: min(610px, calc(100% - 26px)); max-height: min(90vh, 820px); max-height: min(90dvh, 820px); background: var(--paper); color: var(--ink); border-radius: 16px; }
dialog::backdrop { background: #13261c99; }
.dialog-wrap { position: relative; }
.close-dialog { position: absolute; inset: 12px 12px auto auto; z-index: 2; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.detail-photo { aspect-ratio: 2.58; }
.dialog-body { padding: 22px; }
.dialog-body h2 { margin-block: .45rem .5rem; padding-right: 29px; }
.dialog-body > p { color: var(--muted); }
.detail-meta { display: flex; gap: .8rem; margin-top: .65rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .48rem; margin-block: .95rem; }
.view-original { font-size: .9rem; color: var(--forest); text-decoration: underline; margin-bottom: .9rem; }
.source-link { display: block; width: fit-content; }
.detail-ingredients { padding: 0; list-style: none; margin: .4rem 0 .95rem; }
.detail-ingredients li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: .4rem 0; gap: .5rem; font-size: .9rem; }
.detail-steps { padding-left: 1.25rem; margin: .5rem 0 0; }
.detail-steps li { padding-bottom: .6rem; }
.detail-steps p { font-size: .91rem; color: var(--muted); }
.public-recipe [hidden] { display: none; }
.recipe-breadcrumb { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; color: var(--muted); font-size: .84rem; }
.recipe-breadcrumb a, .recipe-jump { color: var(--forest); text-decoration: underline; text-underline-offset: .18em; }
.recipe-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(1.3rem, 4vw, 3.4rem); padding: clamp(1.05rem, 3vw, 2.65rem); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.recipe-lead-text { grid-template-columns: minmax(0, 1fr); }
.recipe-intro h1 { font-size: clamp(2.45rem, 5vw, 4.3rem); line-height: 1.02; margin: .72rem 0 .65rem; }
.recipe-intro > p { color: var(--muted); max-width: 40ch; }
.recipe-intro .recipe-attribution { margin-top: .5rem; font-size: .84rem; }
.recipe-attribution a { color: var(--forest); text-decoration: underline; text-underline-offset: .14em; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 1.4rem; border-top: 1px solid var(--line); margin: 1.25rem 0 0; padding-top: .85rem; }
.recipe-facts dt { color: var(--muted); font-size: .79rem; }
.recipe-facts dd { margin: .18rem 0 0; font-weight: 730; }
.recipe-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.recipe-meal-note:not(:empty) { margin-top: .55rem; font-size: .85rem; }
.recipe-jump { display: inline-block; margin-top: .9rem; font-size: .88rem; font-weight: 650; }
.recipe-figure { min-width: 0; margin: 0; }
.recipe-figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--pale); }
.recipe-figure figcaption { text-align: right; font-size: .72rem; color: var(--muted); margin-top: .35rem; }
.recipe-figure figcaption a { text-decoration: underline; text-underline-offset: .14em; }
.recipe-method-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 1rem; margin-top: 1rem; }
.recipe-ingredient-panel, .recipe-directions { padding: clamp(1rem, 2.4vw, 1.6rem); }
.recipe-ingredient-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem; }
.servings-control { display: flex; align-items: center; gap: .5rem; }
.servings-control label { color: var(--muted); font-size: .82rem; }
.serving-stepper { display: inline-flex; align-items: stretch; border: 1px solid #d9ded0; border-radius: 8px; background: var(--paper); }
.serving-stepper button { width: 2.5rem; min-height: 2.625rem; border: 0; border-radius: 7px; background: var(--pale); color: var(--forest); font-size: 1.15rem; }
.serving-stepper button:not(:disabled):hover { background: #dfeacb; }
.serving-stepper button:disabled { opacity: .45; cursor: default; }
.serving-stepper input[type=number] { appearance: textfield; width: 2.5rem; border: 0; border-radius: 0; padding: 0; margin: 0; text-align: center; font-weight: 680; font-variant-numeric: tabular-nums; }
.serving-stepper input::-webkit-inner-spin-button, .serving-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.serving-stepper :focus-visible { position: relative; z-index: 1; outline-offset: 0; }
.recipe-ingredient-list { margin: .65rem 0 0; }
.recipe-ingredient-list li { padding-block: .65rem; }
.recipe-ingredient-list strong { white-space: nowrap; }
.ingredient-note { display: block; color: var(--muted); font-size: .8rem; }
.recipe-timing-note { margin-top: .4rem; color: var(--muted); font-size: .87rem; }
.recipe-credit { margin-top: 1.5rem; max-width: 76ch; color: var(--muted); font-size: .9rem; }
.recipe-credit h2 { color: var(--ink); font-size: 1.35rem; margin-bottom: .35rem; }
.recipe-credit a { color: var(--forest); text-decoration: underline; text-underline-offset: .14em; }
.recipe-equipment-title { margin: 1.1rem 0 .2rem; }
.recipe-ingredient-panel > p { color: var(--muted); font-size: .9rem; }
.recipe-instructions { display: grid; gap: .8rem; padding: 0; margin: .8rem 0 0; list-style: none; }
.recipe-instructions li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .7rem; scroll-margin-top: 1rem; }
.recipe-step-number { display: grid; place-items: center; width: 29px; height: 29px; background: var(--pale); border-radius: 50%; color: var(--forest); font-size: .83rem; font-weight: 720; }
.recipe-instructions p { margin-top: .2rem; font-size: .96rem; }
.recipe-pairings { margin-top: 1.6rem; }
.recipe-companions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: .75rem; }
.recipe-companion { display: flex; align-items: center; gap: .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: .55rem; }
.recipe-companion:hover { background: var(--pale); }
.recipe-companion img { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; }
.recipe-companion .meta { display: block; margin-top: .12rem; }
.pairing-guide-link { margin-top: .85rem; }
#screen.salmon-pairing { padding-top: 24px; }
.salmon-pairing [hidden] { display: none; }
.salmon-pairing .recipe-breadcrumb { margin-bottom: .65rem; }
.pairing-intro { padding-block: .2rem .95rem; }
.pairing-intro h1 { font-size: clamp(2.6rem, 5.2vw, 4.05rem); line-height: 1.03; }
.pairing-intro p { max-width: 69ch; margin-top: .7rem; color: var(--muted); }
.pairing-menu-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--line); padding: .7rem 0 .65rem; }
.pairing-menu-heading h2 { font-size: clamp(1.52rem, 3.1vw, 2.05rem); }
.pairing-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.pairing-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.pairing-photo { aspect-ratio: 2.46; background: var(--pale); overflow: hidden; }
.pairing-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pairing-card-copy { padding: .72rem .9rem .52rem; }
.pairing-card-copy h3 { margin-block: .2rem .25rem; }
.pairing-card-copy h3 a:hover { text-decoration: underline; text-underline-offset: .16em; }
.pairing-card-copy p { color: var(--muted); font-size: .88rem; }
.pairing-swap { margin: auto .9rem .75rem; }
.pairing-swap summary { width: fit-content; max-width: 100%; padding: .39rem .56rem; border: 1px solid #dce2d4; border-radius: 8px; color: var(--forest); font-size: .85rem; font-weight: 680; cursor: pointer; }
.pairing-swap summary:hover { background: var(--pale); }
.pairing-options { display: grid; gap: .32rem; margin-top: .45rem; }
.pairing-options button { text-align: left; color: var(--ink); background: var(--linen); border: 1px solid var(--line); padding: .54rem .62rem; border-radius: 7px; }
.pairing-options button:hover { background: var(--pale); }
.pairing-generate { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; margin-top: .8rem; padding: .7rem .9rem; border: 1px solid #dce6d4; border-radius: 12px; background: var(--pale); }
.pairing-generate p { margin-top: .18rem; color: var(--muted); font-size: .88rem; }
.pairing-results { padding-top: 1.8rem; scroll-margin-top: 1rem; }
.pairing-results h2:focus { outline: none; }
.pairing-plan { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: .9rem; align-items: start; margin-top: 1rem; }
.pairing-plan > section { padding: clamp(.95rem, 2.3vw, 1.45rem); }
.pairing-plan h3 { font: 500 1.65rem var(--serif); letter-spacing: -.03em; margin-bottom: .3rem; }
.pairing-plan h4 { margin: .85rem 0 .1rem; font-size: .94rem; }
.pairing-groceries .detail-ingredients { margin-block: .2rem .7rem; }
.pairing-groceries .detail-ingredients strong { white-space: nowrap; }
.pairing-timeline ol { display: grid; gap: .86rem; list-style: none; padding: 0; margin: .85rem 0 0; }
.pairing-timeline li { display: grid; grid-template-columns: 3.55rem minmax(0, 1fr); align-items: start; gap: .6rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.pairing-timeline h4 { margin-top: .05rem; }
.pairing-timeline li p:not(.meta) { margin-top: .3rem; font-size: .91rem; }
.pairing-start { display: inline-block; padding: .34rem .36rem; border-radius: 6px; background: var(--pale); color: var(--forest); font-size: .79rem; font-weight: 700; text-align: center; white-space: nowrap; }
@media (max-width: 650px) {
  #screen.salmon-pairing { padding-top: 18px; }
  .pairing-intro h1 { font-size: clamp(2.15rem, 8.4vw, 2.6rem); }
  .pairing-menu, .pairing-plan { grid-template-columns: minmax(0, 1fr); }
  .pairing-dish { display: grid; grid-template-columns: 6.1rem minmax(0, 1fr); align-items: stretch; }
  .pairing-dish:not(:has(.pairing-photo)) { grid-template-columns: minmax(0, 1fr); }
  .pairing-photo { aspect-ratio: auto; }
  .pairing-card-copy { padding: .6rem .68rem; }
  .pairing-swap { margin: .15rem .68rem .55rem; }
  .pairing-menu-heading { align-items: flex-start; }
  .pairing-generate > div { display: none; }
  .pairing-generate .button { width: 100%; }
  .salmon-pairing:has(.pairing-results[hidden]) .pairing-generate {
    position: fixed;
    z-index: 6;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    translate: -50% 0;
    width: calc(100% - 32px);
    margin: 0;
    box-shadow: 0 7px 24px #19362526;
  }
}
@media (max-width: 760px) {
  .recipe-lead, .recipe-method-grid { grid-template-columns: minmax(0, 1fr); }
  .recipe-figure img { aspect-ratio: 2 / 1; }
}
@media (max-width: 430px) {
  .recipe-companions { grid-template-columns: minmax(0, 1fr); }
}
.editor { padding-top: 33px; }
.editor form { margin-top: .9rem; }
.import-form > label, .edit-source { margin-top: .65rem; }
.import-form textarea { line-height: 1.45; }
.edit-row { display: grid; grid-template-columns: minmax(96px, 1fr) minmax(70px, .58fr) minmax(86px, .65fr) auto; align-items: end; gap: .45rem; }
.edit-row .icon-button { width: 32px; height: 42px; }
.edit-title { grid-template-columns: minmax(110px, 1fr) 75px 110px; }
.edit-section { margin-block: 1.1rem; }
.edit-section h3 { margin-bottom: .35rem; }
.ingredient-edit { margin-bottom: .35rem; }
.step-edit { border: 1px solid var(--line); border-radius: 9px; padding: .65rem; margin: 0 0 .55rem; }
.step-edit > label { margin-top: .48rem; }
.edit-message { color: #8e381f; }
.toast { position: fixed; z-index: 12; bottom: 1rem; right: 1rem; max-width: min(380px, calc(100% - 2rem)); transform: translateY(15px); pointer-events: none; opacity: 0; padding: .72rem .95rem; border-radius: 10px; background: var(--forest-deep); color: #fff; font-size: .9rem; transition: transform .15s, opacity .15s; }
.toast.visible { transform: translateY(0); opacity: 1; }
body:has(.meal-tray) .toast { bottom: 87px; }
#screen a:hover { color: var(--forest); }
@media (max-width: 1020px) {
  .shell { width: min(100% - 56px, 1180px); }
  .hero-content { padding-inline: 26px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .meal-columns { grid-template-columns: 1fr 260px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  #screen { padding-top: 18px; }
  .header-inner { min-height: 62px; gap: .45rem; }
  .nav { gap: .7rem; font-size: .8rem; }
  .brand { font-size: 1.08rem; gap: .4rem; }
  .brand-icon { width: 30px; height: 30px; }
  .brand-icon svg { width: 17px; }
  .my-meal { padding: .42rem .46rem; font-size: .75rem; gap: .25rem; }
  .my-meal svg { width: 16px; }
  .header-actions { gap: .45rem; }
  .account-link { font-size: .8rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-picture { min-height: min(35vw, 250px); grid-row: 1; }
  .hero-picture img { object-position: center 52%; }
  .hero-picture::after { background: linear-gradient(0deg, #18362642, transparent 32%); }
  .hero-content { padding: 25px 18px; }
  .hero h1 { font-size: clamp(2.8rem, 9.8vw, 4.2rem); }
  .hero h1 br { display: none; }
  .hero-content > p { margin-top: 12px; max-width: 36ch; }
  .hero-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recommend-form { margin-top: 18px; }
  .catalog { padding-top: 26px; }
  .gallery-tools { align-items: stretch; flex-direction: column; gap: .6rem; }
  .catalog-tools .search-box { flex-basis: auto; }
  .catalog-tools .catalog-filters { justify-content: space-between; }
  .search-box { width: 100%; }
  .cards { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-body { padding: .6rem; }
  .card-body p { font-size: .8rem; }
  .page-top { align-items: flex-start; flex-wrap: wrap; padding-top: 5px; }
  .meal-columns { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .summary { grid-row: auto; }
  .cook-columns .timer-panel { grid-row: 1; }
  .cook-columns .timer-panel:has(> p) { grid-row: auto; }
  .panel-title { padding-inline: 14px; }
  .dish-list, .aisle { padding-inline: 14px; }
  .panel-actions { padding-inline: 14px; }
  .shopping-filters { padding-inline: 14px; }
  .next-step { margin-inline: 12px; }
  .cook-steps { padding-inline: 12px; }
  .tiny-photo { width: 55px; flex-basis: 55px; }
}
@media (max-width: 430px) {
  .brand > span:last-child { max-width: 100px; white-space: nowrap; }
  .my-meal > span:not(.count) { display: none; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: .7rem; }
  .hero-picture { min-height: 108px; }
  .hero-actions > .hero-link { padding-inline: .66rem; }
  .hero-actions { gap: .35rem; }
  .filter { padding-inline: .65rem; }
  .saved-row { flex-wrap: wrap; }
  .recent-meal { grid-template-columns: auto minmax(0, 1fr); }
  .recent-meal .button { grid-column: 2; justify-self: start; }
  .meal-tray { gap: .5rem; }
  .meal-tray > .brand-icon { display: none; }
  .grocery-row { grid-template-columns: 1fr auto auto; gap: .35rem; }
  .grocery-row label { gap: .35rem; }
  .subnav button { padding-inline: .45rem; font-size: .85rem; }
  .dialog-body { padding-inline: 13px; }
  .dialog-body .dialog-actions { gap: .3rem; }
  .dialog-body .button { padding-inline: .62rem; }
  .edit-row { gap: .25rem; grid-template-columns: minmax(62px, 1fr) minmax(55px, .6fr) minmax(66px, .7fr) auto; }
  .edit-title { grid-template-columns: minmax(70px, 1fr) 65px 72px; }
}
@media (max-width: 350px) {
  .dish-row { gap: .35rem; }
  .dish-row > .icon-button { width: 32px; }
}
@media (max-width: 520px) {
  .header-inner:has(.nav) { grid-template-columns: minmax(0, 1fr) auto; min-height: auto; gap: 0 .65rem; padding-top: .55rem; }
  .header-inner .nav { grid-column: 1 / -1; grid-row: 2; min-height: 39px; gap: 1.25rem; }
  .header-inner .header-actions { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
