:root {
  --ink: #18322c; --muted: #66736e; --cream: #f6f1e8; --paper: #fffcf7;
  --green: #1f5b47; --green-dark: #164536; --orange: #df653c; --yellow: #f4c85a;
  --line: #ded9ce; --shadow: 0 14px 40px rgba(38, 55, 47, .09);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
button { color: inherit; }
.site-header { height: 76px; padding: 0 max(24px, calc((100vw - 1220px)/2)); display: flex; align-items: center; gap: 45px; background: rgba(255,252,247,.93); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: "DM Serif Display", serif; font-size: 20px; white-space: nowrap; }
.brand-mark { display: block; width: 39px; height: 39px; border-radius: 10px; object-fit: cover; }
nav { height: 100%; display: flex; gap: 28px; }
.nav-link { border: 0; border-bottom: 3px solid transparent; background: transparent; cursor: pointer; font-weight: 600; color: var(--muted); padding: 3px 2px 0; }
.nav-link.active { border-bottom-color: var(--orange); color: var(--ink); }
.count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; margin-left: 4px; border-radius: 20px; color: white; background: var(--orange); font-size: 11px; }
.local-badge { margin-left: auto; font-size: 12px; color: var(--muted); background: #edf1eb; border-radius: 20px; padding: 7px 12px; }
.local-badge span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5b9b6b; margin-right: 6px; }
main { max-width: 1220px; margin: 0 auto; padding: 0 24px 70px; }
.view { display: none; }
.view.active { display: block; animation: reveal .25s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(4px); } }
.hero, .page-heading { padding: 64px 0 42px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.page-heading.compact { padding-bottom: 30px; }
.eyebrow { margin: 0 0 10px; color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .17em; }
h1 { margin: 0; font-family: "DM Serif Display", serif; font-size: clamp(40px, 5vw, 64px); line-height: 1.04; font-weight: 400; letter-spacing: -.02em; }
.hero-copy, .page-heading p:not(.eyebrow) { max-width: 570px; margin: 14px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.hero-actions { display: flex; gap: 10px; flex-shrink: 0; }
.button { border: 1px solid var(--green); border-radius: 8px; padding: 12px 17px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31,91,71,.15); }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { background: transparent; }
.button-dice { background: var(--yellow); border-color: #d6a932; color: #283a31; }
.button-dice:hover { background: #f8d36f; }
.mini-die { font-size: 17px; line-height: 0; margin-right: 3px; }
.week-toolbar { padding: 22px 0 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; }
.label { font-size: 10px; letter-spacing: .16em; color: var(--muted); font-weight: 700; }
.week-nav { display: flex; align-items: center; gap: 12px; margin-top: 5px; }
.week-nav h2 { margin: 0; min-width: 250px; font-size: 20px; }
.current-week-button { min-height: 31px; margin-left: 3px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--green); font-size: 10px; font-weight: 700; cursor: pointer; }
.current-week-button:hover:not(:disabled) { border-color: var(--green); background: #edf3ee; }
.current-week-button:disabled { border-color: transparent; background: #e8eee9; color: var(--muted); cursor: default; }
.icon-button { border: 1px solid var(--line); width: 31px; height: 31px; border-radius: 50%; background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.icon-button:hover { border-color: var(--green); }
.legend { color: var(--muted); font-size: 12px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 5px 0 16px; }
.dot.breakfast { background: var(--orange); }.dot.lunch { background: var(--yellow); }.dot.dinner { background: var(--green); }
.meal-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.meal-grid > .empty-state { grid-column: 1 / -1; width: 100%; border: 0; }
.day-column { min-width: 0; border-right: 1px solid var(--line); }
.day-column:last-child { border-right: 0; }
.day-head { padding: 16px 16px 13px; border-bottom: 1px solid var(--line); }
.day-head strong { display: block; font-family: "DM Serif Display", serif; font-size: 21px; font-weight: 400; }
.day-head span { color: var(--muted); font-size: 11px; }
.meal-card { min-height: 178px; padding: 16px; border-bottom: 1px solid var(--line); position: relative; }
.meal-card:last-child { border-bottom: 0; }
.meal-kind { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.meal-kind .dot { margin: 0; }
.meal-card h3 { margin: 13px 28px 6px 0; font-family: "DM Serif Display", serif; font-size: 20px; line-height: 1.12; font-weight: 400; }
.meal-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.meal-meta { display: flex; gap: 8px; margin-top: 13px; flex-wrap: wrap; }
.pill { border-radius: 20px; padding: 4px 7px; background: #eef2eb; color: var(--green); font-size: 10px; font-weight: 700; }
.recipe-button { margin-top: 13px; padding: 0; border: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 700; cursor: pointer; }.recipe-button:hover { color: var(--orange); }
.swap-button { position: absolute; top: 13px; right: 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 17px; }
.swap-button:hover { color: var(--orange); transform: rotate(20deg); }
.plan-summary { margin-top: 20px; padding: 18px 20px; display: flex; gap: 28px; align-items: center; background: #e7eee7; border-radius: 9px; font-size: 13px; }
.plan-summary strong { font-family: "DM Serif Display", serif; font-size: 19px; font-weight: 400; }
.summary-item { color: var(--muted); }.summary-item b { color: var(--ink); }
.empty-state { padding: 70px 20px; background: var(--paper); border: 1px solid var(--line); text-align: center; border-radius: 12px; }
.empty-state.hidden { display: none; }.empty-art { font-size: 55px; }.empty-state h2 { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 30px; margin: 15px 0 6px; }.empty-state p { color: var(--muted); margin: 0 0 20px; }
.shopping-progress { border-top: 1px solid var(--line); padding: 25px 0; color: var(--muted); font-size: 12px; }
.progress-track { height: 6px; width: 260px; background: #deddd5; border-radius: 5px; margin-top: 8px; overflow: hidden; }.progress-track span { display: block; height: 100%; background: var(--orange); width: 0; transition: width .2s; }
.shopping-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shopping-group { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px; align-self: start; }
.shopping-group h2 { margin: 0 0 13px; font-family: "DM Serif Display", serif; font-size: 22px; font-weight: 400; }
.shopping-group label { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #eee9df; cursor: pointer; font-size: 14px; }.shopping-group input { accent-color: var(--green); width: 17px; height: 17px; }.shopping-group label.checked span { color: #9a9f9b; text-decoration: line-through; }
.settings-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.settings-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 23px; min-height: 320px; }.step-number { color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .15em; }.settings-card h2 { font-family: "DM Serif Display", serif; font-weight: 400; margin: 9px 0 4px; }.settings-card > p { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.text-button { padding: 8px 0; color: var(--green); border: 0; background: none; font-weight: 700; cursor: pointer; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }.choice-grid label { cursor: pointer; }.choice-grid input { position: absolute; opacity: 0; }.choice-grid span { display: block; padding: 8px 11px; border: 1px solid var(--line); border-radius: 20px; font-size: 12px; }.choice-grid input:checked + span { background: var(--green); color: white; border-color: var(--green); }
.field-label { display: block; margin: 15px 0 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }.field-label:first-of-type { margin-top: 0; }.preference-group { gap: 6px; }.preference-group span { padding: 6px 9px; }
.field-help { margin: -3px 0 8px !important; font-size: 11px !important; }.cuisine-grid span { padding: 6px 9px; }
.radio-cards { display: grid; gap: 10px; }.radio-cards label { cursor: pointer; }.radio-cards input { position: absolute; opacity: 0; }.radio-cards span { display: block; border: 1px solid var(--line); border-radius: 7px; padding: 13px; }.radio-cards small { display: block; margin-top: 3px; color: var(--muted); }.radio-cards input:checked + span { border-color: var(--green); box-shadow: inset 3px 0 var(--green); background: #f2f6f1; }
.toggle-row { display: flex; align-items: center; gap: 11px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); cursor: pointer; }.toggle-row > input { position: absolute; opacity: 0; }.toggle { width: 39px; height: 23px; padding: 3px; border-radius: 20px; background: #c9cec9; flex: 0 0 auto; transition: .2s; }.toggle::after { content: ""; display: block; width: 17px; height: 17px; border-radius: 50%; background: white; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }.toggle-row input:checked + .toggle { background: var(--green); }.toggle-row input:checked + .toggle::after { transform: translateX(16px); }.toggle-row strong,.toggle-row small { display: block; }.toggle-row small { color: var(--muted); margin-top: 2px; }
.settings-save { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 20px; color: var(--muted); font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 20px); background: var(--ink); color: white; padding: 11px 16px; border-radius: 6px; opacity: 0; pointer-events: none; transition: .2s; z-index: 30; font-size: 13px; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.consent-banner { position: fixed; z-index: 25; left: 20px; right: 20px; bottom: 20px; max-width: 850px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 18px 20px; border: 1px solid var(--line); background: white; box-shadow: 0 12px 35px rgba(25,35,30,.16); }.consent-banner strong { font-size: 13px; }.consent-banner p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }.consent-banner > div:last-child { display: flex; gap: 8px; flex: 0 0 auto; }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 34px; max-width: 1280px; margin: 0 auto; padding: 28px 24px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-identity strong, .footer-identity span, .footer-social strong, .footer-social span { display: block; }
.footer-identity strong { color: var(--ink); font-family: "Newsreader", Georgia, serif; font-size: 18px; }
.footer-identity span { margin-top: 3px; font-size: 10px; }
.footer-social { display: flex; align-items: center; gap: 16px; padding: 0 30px; border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
.footer-social > div:first-child { text-align: right; }
.footer-social strong { color: var(--ink); font-size: 12px; }
.footer-social span { margin-top: 3px; font-size: 10px; }
.social-actions { display: flex; gap: 7px; }
.social-actions button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--green); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.social-actions button:hover { border-color: var(--green); background: var(--green); color: white; }
.social-actions svg { width: 18px; height: 18px; fill: currentColor; }
.social-actions svg rect, .social-actions svg circle:not(.social-dot) { fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-actions svg .social-dot { fill: currentColor; stroke: none; }
.footer-links { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.site-footer a { color: var(--green); font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-action { padding: 0; border: 0; background: none; color: var(--green); font: inherit; font-weight: 600; cursor: pointer; }
.footer-action:hover { text-decoration: underline; }
dialog { border: 0; border-radius: 12px; padding: 24px; width: min(600px, calc(100% - 30px)); color: var(--ink); background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.25); }dialog::backdrop { background: rgba(17,36,31,.55); }.dialog-head { display: flex; justify-content: space-between; align-items: start; }.dialog-head h2 { font-family: "DM Serif Display", serif; font-size: 30px; font-weight: 400; margin: 0 0 18px; }.swap-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.swap-option { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 13px; text-align: left; cursor: pointer; }.swap-option:hover { border-color: var(--green); background: #f3f7f2; }.swap-option strong { display: block; }.swap-option span { color: var(--muted); font-size: 11px; }
.share-dialog { width: min(650px, calc(100% - 28px)); padding: 30px; }
.share-dialog .dialog-head h2 { margin: 3px 0 5px; font-family: "Newsreader", Georgia, serif; font-size: 34px; }
.share-dialog .dialog-head p:last-child { max-width: 470px; margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.share-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.share-options > button { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.share-options > button:hover { border-color: var(--green); background: #f5f7f3; }
.share-monogram { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border-radius: 50%; background: #e8eee9; color: var(--green); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.share-options strong, .share-options small { display: block; }
.share-options strong { font-size: 13px; }
.share-options small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.share-note { margin: 17px 0 0; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.5; }
.share-preview { overflow: hidden; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 6px; background: #f7f3ea; }
.share-preview-head { display: flex; justify-content: space-between; gap: 15px; padding: 13px 15px; background: var(--green); color: white; }
.share-preview-head span { font-family: "Newsreader", Georgia, serif; font-size: 17px; }
.share-preview-head strong { align-self: center; color: #f2d782; font-size: 10px; }
.share-preview-day { display: grid; grid-template-columns: 42px repeat(3, minmax(0,1fr)); gap: 9px; padding: 9px 13px; border-bottom: 1px solid #e2dfd5; background: rgba(255,253,250,.88); font-size: 10px; line-height: 1.25; }
.share-preview-day > strong { color: var(--green); font-size: 11px; text-transform: uppercase; }
.share-preview-day > span:empty { display: none; }
.share-preview-day small { display: block; margin-bottom: 2px; color: #8a918c; font-size: 7px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.share-preview-brand { padding: 8px 13px; color: var(--muted); font-size: 8px; text-align: right; }
.install-dialog { width: min(500px, calc(100% - 28px)); padding: 30px; }
.install-dialog h2 { margin: 3px 0 22px; font-family: "Newsreader", Georgia, serif; font-size: 34px; }
.install-dialog ol { margin: 0; padding: 0; list-style: none; counter-reset: install; }
.install-dialog li { counter-increment: install; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }
.install-dialog li::before { content: counter(install); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e8eee9; color: var(--green); font-weight: 700; }
.install-dialog li > span { min-width: 0; padding-top: 4px; overflow-wrap: anywhere; }
.roll-dialog { width: min(650px, calc(100% - 28px)); min-height: 500px; padding: 40px; text-align: center; overflow: hidden; background: radial-gradient(circle at 50% 5%, #fffdf5, var(--paper) 62%); }
.roll-close { position: absolute; top: 18px; right: 18px; }
.roll-dialog h2 { margin: 0; font-family: "DM Serif Display", serif; font-size: 38px; font-weight: 400; }
.roll-dialog p:not(.eyebrow) { color: var(--muted); max-width: 440px; margin: 10px auto 22px; line-height: 1.5; }
.big-die { position: relative; width: 120px; height: 120px; margin: 30px auto; border-radius: 25px; background: var(--orange); box-shadow: inset -8px -8px 0 rgba(105,42,25,.12), 0 15px 30px rgba(123,64,39,.2); transform: rotate(-7deg); }
.big-die span { position: absolute; color: #fff8e9; font-size: 24px; line-height: 1; }.big-die span:nth-child(1) { top: 17px; left: 20px; }.big-die span:nth-child(2) { top: 17px; right: 20px; }.big-die span:nth-child(3) { top: 49px; left: 49px; }.big-die span:nth-child(4) { bottom: 17px; left: 20px; }.big-die span:nth-child(5) { bottom: 17px; right: 20px; }
.big-die.rolling { animation: dice-roll .55s ease-in-out infinite; }
@keyframes dice-roll { 0% { transform: rotate(-7deg) scale(1); } 30% { transform: rotate(14deg) translateY(-15px) scale(1.06); } 65% { transform: rotate(-18deg) translateY(3px); } 100% { transform: rotate(-7deg); } }
.hidden { display: none !important; }
.rolling-stage { padding-top: 70px; }
.roulette-window { margin: 42px auto 30px; padding: 24px; width: min(450px, 100%); border: 1px solid var(--line); border-left: 5px solid var(--orange); border-right: 5px solid var(--orange); background: white; overflow: hidden; box-shadow: var(--shadow); }
#roulette-name { font-family: "DM Serif Display", serif; font-size: 25px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#roulette-name.flip { animation: roulette-flip .12s ease; }
@keyframes roulette-flip { 50% { transform: translateY(-9px); opacity: .15; } }
.roll-pips { display: flex; justify-content: center; gap: 9px; }.roll-pips span { width: 12px; height: 12px; border-radius: 50%; background: #d7d7cf; transition: .2s; }.roll-pips span.done { background: var(--orange); transform: scale(1.15); }
.roll-result { padding-top: 15px; }.rolled-meals { margin: 22px 0; display: grid; text-align: left; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }.rolled-meal { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: white; }.rolled-meal:last-child { border-bottom: 0; }.rolled-meal span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }.rolled-meal strong { font-size: 14px; }.roll-result .text-button { display: block; margin: 6px auto 0; }
.recipe-dialog { width: min(900px, calc(100% - 28px)); max-height: min(90vh, 850px); padding: 0; overflow-x: hidden; }
.recipe-hero { position: relative; min-height: 330px; display: flex; align-items: flex-end; overflow: hidden; background: #657c64; }
.recipe-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }.recipe-hero.has-image > img { opacity: 1; }.recipe-art { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; background: radial-gradient(circle at 72% 25%, rgba(255,255,255,.2), transparent 24%), linear-gradient(135deg, #e88b58, #bc573a); color: white; }.recipe-art.breakfast { background: radial-gradient(circle at 72% 25%, rgba(255,255,255,.28), transparent 24%), linear-gradient(135deg, #edb952, #db7246); }.recipe-art.lunch { background: radial-gradient(circle at 72% 25%, rgba(255,255,255,.25), transparent 24%), linear-gradient(135deg, #7c9f68, #3e7154); }.recipe-art span { font-size: 90px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.15)); }.recipe-art small { font-family: "DM Serif Display", serif; font-size: 16px; letter-spacing: .05em; opacity: .85; }.recipe-hero.has-image .recipe-art { display: none; }
.recipe-hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(12,25,20,.05) 25%, rgba(12,25,20,.86) 100%); pointer-events: none; }.recipe-close { position: absolute; top: 18px; right: 18px; z-index: 2; border-color: rgba(255,255,255,.65); background: rgba(19,38,32,.5); color: white; backdrop-filter: blur(6px); }.recipe-hero-copy { position: relative; z-index: 1; width: 100%; padding: 34px; color: white; }.recipe-hero-copy h2 { margin: 0; max-width: 700px; font-family: "DM Serif Display", serif; font-size: clamp(34px, 5vw, 52px); line-height: 1.02; font-weight: 400; }.recipe-hero-copy .eyebrow { color: #ffd87a; }.recipe-description { max-width: 650px; margin: 9px 0 0; color: rgba(255,255,255,.84); font-size: 14px; }
.recipe-body { padding: 25px 32px 34px; }.recipe-facts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 25px; }.recipe-facts span,.recipe-facts a { padding: 7px 11px; border-radius: 20px; background: #eef2eb; color: var(--green); font-size: 11px; font-weight: 700; }.recipe-facts a { margin-left: auto; background: #f7e9d8; color: #8c482e; text-decoration: none; }
.button:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.recipe-columns { display: grid; grid-template-columns: .78fr 1.22fr; gap: 32px; border-top: 1px solid var(--line); padding-top: 25px; }.section-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }.section-heading > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: white; background: var(--orange); font-weight: 700; }.section-heading h3 { margin: 0; font-family: "DM Serif Display", serif; font-size: 23px; font-weight: 400; }.recipe-columns ul,.recipe-columns ol { margin: 0; padding: 0; list-style: none; }.ingredient-panel { padding: 20px; border-radius: 10px; background: #f3f4ed; align-self: start; }.ingredient-panel li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #dfe2d9; color: var(--ink); font-size: 13px; }.ingredient-panel li:last-child { border-bottom: 0; }.ingredient-panel li strong { color: var(--muted); font-weight: 500; text-align: right; }.method-panel ol { counter-reset: method; }.method-panel li { counter-increment: method; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }.method-panel li::before { content: counter(method); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: white; font-weight: 700; font-size: 12px; }
@media (max-width: 900px) { .meal-grid { grid-template-columns: 1fr; }.day-column { display: grid; grid-template-columns: 120px 1fr 1fr; border-right: 0; border-bottom: 1px solid var(--line); }.day-head,.meal-card { border-bottom: 0; border-right: 1px solid var(--line); min-height: 150px; }.settings-layout { grid-template-columns: 1fr; }.shopping-columns { grid-template-columns: 1fr 1fr; }.local-badge { display: none; } }
@media (max-width: 640px) { .site-header { height: auto; padding: 13px 16px 0; flex-wrap: wrap; gap: 5px 15px; }.brand { width: 100%; }.site-header nav { height: 45px; gap: 20px; }.nav-link { font-size: 12px; }main { padding: 0 14px 50px; }.hero,.page-heading { padding: 40px 0 28px; display: block; }.hero-actions { margin-top: 20px; flex-wrap: wrap; }.week-toolbar { align-items: start; }.legend { display: none; }.meal-grid { box-shadow: none; }.day-column { display: block; }.day-head,.meal-card { border-right: 0; border-bottom: 1px solid var(--line); min-height: auto; }.meal-card { padding-bottom: 20px; }.plan-summary { align-items: start; flex-wrap: wrap; gap: 10px 20px; }.shopping-columns { grid-template-columns: 1fr; }.settings-save { align-items: stretch; flex-direction: column; }.swap-options { grid-template-columns: 1fr; }.roll-dialog { padding: 35px 18px 22px; }.rolled-meal { grid-template-columns: 66px 1fr; }.recipe-dialog { max-height: 92vh; }.recipe-hero { min-height: 280px; }.recipe-hero-copy { padding: 25px 20px; }.recipe-body { padding: 20px; }.recipe-columns { grid-template-columns: 1fr; gap: 24px; }.recipe-facts a { margin-left: 0; } }
@media print { .site-header,.hero-actions,.week-nav button,.swap-button,.plan-summary { display: none !important; } body { background: white; }.hero { padding: 20px 0; }.meal-grid { box-shadow: none; } }

/* Product polish: a quieter, editorial interface */
:root {
  --ink: #22312b;
  --muted: #68736d;
  --cream: #f7f3ea;
  --paper: #fffdfa;
  --green: #205a47;
  --green-dark: #173f32;
  --orange: #c76745;
  --yellow: #e8ba50;
  --line: #dddcd2;
  --shadow: 0 8px 28px rgba(29, 62, 49, .07);
}
body { font-family: "Inter", system-ui, sans-serif; background: var(--cream); }
h1, .day-head strong, .meal-card h3, .plan-summary strong, .shopping-group h2,
.settings-card h2, .dialog-head h2, .roll-dialog h2, #roulette-name,
.recipe-hero-copy h2, .section-heading h3, .empty-state h2, .brand {
  font-family: "Newsreader", Georgia, serif;
}
.site-header { height: 68px; background: rgba(255,255,255,.96); gap: 52px; }
.brand { gap: 12px; font-size: 19px; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; }
nav { gap: 32px; }
.nav-link { border-bottom-width: 2px; font-size: 13px; font-weight: 500; }
.count { background: #eaece7; color: var(--ink); font-weight: 600; }
.local-badge { padding: 0; background: transparent; font-size: 11px; }
main { max-width: 1280px; }
.hero, .page-heading { padding: 54px 0 36px; align-items: center; }
.eyebrow, .label, .step-number { text-transform: none; letter-spacing: .02em; font-size: 12px; font-weight: 600; }
.eyebrow { color: var(--green); margin-bottom: 8px; }
h1 { font-size: clamp(42px, 5vw, 60px); letter-spacing: -.025em; }
.hero-copy, .page-heading p:not(.eyebrow) { max-width: 610px; margin-top: 10px; font-size: 15px; line-height: 1.55; }
.plan-counter { display: flex; align-items: center; gap: 8px; width: fit-content; margin-top: 22px; padding: 11px 0 11px 14px; border-left: 2px solid var(--yellow); color: var(--muted); font-size: 12px; }
.plan-counter strong { color: var(--green); font-family: "Newsreader", Georgia, serif; font-size: 23px; font-weight: 600; line-height: 1; }
.counter-mark { position: relative; width: 18px; height: 18px; margin-right: 2px; border: 1px solid #b88e35; border-radius: 50%; background: #f3d98f; }
.counter-mark::after { content: ""; position: absolute; top: 5px; left: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.plan-counter.compact { margin-top: 18px; padding-top: 7px; padding-bottom: 7px; }
.button { min-height: 42px; padding: 10px 16px; border-radius: 5px; font-size: 13px; font-weight: 600; box-shadow: none; }
.button:hover { transform: none; box-shadow: none; }
.button-secondary { border-color: #b9bdb7; background: white; }
.button-dice { background: #f3dea4; border-color: #d5b45b; }
.button-dice:hover { background: #efd58b; }
.week-toolbar { padding: 18px 0 14px; }
.label { color: var(--muted); }
.week-nav h2 { font-size: 17px; font-weight: 600; }
.icon-button { width: 30px; height: 30px; border-radius: 5px; }
.legend { font-size: 11px; }
.meal-grid { border-radius: 6px; box-shadow: var(--shadow); }
.day-head { padding: 14px 15px 12px; background: #fafaf8; }
.day-head strong { font-size: 18px; }
.meal-card { padding: 15px; min-height: 170px; }
.meal-kind { letter-spacing: .04em; font-size: 9px; }
.meal-card h3 { margin-top: 11px; font-size: 19px; line-height: 1.18; }
.meal-card p { line-height: 1.5; }
.pill { padding: 3px 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 500; }
.pill + .pill::before { content: "·"; margin-right: 8px; color: #a8aba7; }
.recipe-button { font-weight: 600; }
.swap-button { font-size: 15px; }
.plan-summary { padding: 15px 18px; border-radius: 4px; background: #e5eee8; }
.empty-state { border-radius: 6px; }.empty-art { display: none; }
.shopping-columns { gap: 14px; }
.shopping-group { border-radius: 5px; box-shadow: none; }
.shopping-group h2 { font-size: 20px; }
.settings-layout { max-width: 900px; grid-template-columns: 1fr; gap: 0; padding-top: 0; border-top: 1px solid var(--line); }
.settings-card { display: grid; grid-template-columns: 170px 1fr; column-gap: 28px; min-height: 0; padding: 28px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.settings-card .step-number { grid-column: 1; grid-row: 1 / span 4; color: var(--muted); }
.settings-card h2, .settings-card > p, .settings-card > div:not(.step-number), .settings-card > span, .settings-card > label, .settings-card > button { grid-column: 2; }
.settings-card h2 { margin: 0 0 4px; font-size: 25px; }
.settings-card > p { margin-bottom: 18px; }
.choice-grid { gap: 7px; }
.choice-grid span { padding: 7px 10px; border-radius: 4px; background: white; }
.choice-grid input:focus-visible + span, .radio-cards input:focus-visible + span, .toggle-row input:focus-visible + .toggle { outline: 2px solid var(--orange); outline-offset: 2px; }
.radio-cards span { border-radius: 4px; background: white; }
.child-row input { border-radius: 4px; }
.settings-save { max-width: 900px; padding-top: 22px; }
dialog { border-radius: 7px; }
.swap-option { border-radius: 4px; }
.roll-dialog { background: var(--paper); }
.big-die { border-radius: 18px; background: var(--orange); box-shadow: 0 10px 24px rgba(88,47,32,.14); }
.big-die span { width: 13px; height: 13px; border-radius: 50%; background: white; font-size: 0; }
.roulette-window { border-left-width: 2px; border-right-width: 2px; box-shadow: none; }
.recipe-art { background: #b75e40; }
.recipe-art.breakfast { background: #c78b3c; }
.recipe-art.lunch { background: #58795f; }
.recipe-art .art-line { width: 76px; height: 76px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; position: relative; }
.recipe-art .art-line::before, .recipe-art .art-line::after { content: ""; position: absolute; background: rgba(255,255,255,.75); }
.recipe-art .art-line::before { width: 1px; height: 100px; left: 50%; top: -12px; transform: rotate(45deg); }
.recipe-art .art-line::after { height: 1px; width: 100px; top: 50%; left: -12px; transform: rotate(45deg); }
.ingredient-panel { border-radius: 4px; background: #f2f3ef; }
.section-heading > span { display: none; }
.recipe-facts span, .recipe-facts a { border-radius: 4px; }
@media (max-width: 640px) {
  .site-header { padding-top: 10px; }
  .hero, .page-heading { padding-top: 36px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .button:last-child { grid-column: 1 / -1; }
  .settings-card { display: block; padding: 24px 0; }
  .settings-card .step-number { margin-bottom: 8px; }
  .recipe-hero { min-height: 250px; }
  .consent-banner { align-items: stretch; flex-direction: column; gap: 14px; }.consent-banner > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
}

/* Guided preferences */
[hidden] { display: none !important; }
#settings-view { padding-bottom: 70px; }
.preference-intro { max-width: 760px; padding: 52px 0 30px; }
.preference-intro h1 { margin: 0; font-size: clamp(40px, 5vw, 58px); line-height: 1.02; }
.preference-intro > p:last-child { max-width: 610px; margin: 13px 0 0; color: var(--muted); line-height: 1.6; }
.wizard-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 590px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 18px 50px rgba(31, 42, 36, .08); }
.wizard-sidebar { display: flex; flex-direction: column; padding: 32px 28px 26px; background: var(--green-dark); color: white; }
.wizard-brand span, .wizard-brand strong { display: block; }
.wizard-brand span { color: rgba(255,255,255,.64); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.wizard-brand strong { margin-top: 5px; font-family: "Newsreader", Georgia, serif; font-size: 23px; font-weight: 500; }
.wizard-steps { margin: 42px 0 0; padding: 0; list-style: none; }
.wizard-steps li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 13px; min-height: 78px; opacity: .48; cursor: pointer; }
.wizard-steps li::after { content: ""; position: absolute; top: 33px; bottom: 0; left: 16px; width: 1px; background: rgba(255,255,255,.26); }
.wizard-steps li:last-child::after { display: none; }
.wizard-steps li > span { display: grid; place-items: center; align-self: start; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-size: 12px; font-weight: 700; }
.wizard-steps li strong, .wizard-steps li small { display: block; }
.wizard-steps li strong { margin-top: 2px; font-size: 13px; }
.wizard-steps li small { margin-top: 3px; color: rgba(255,255,255,.65); font-size: 11px; }
.wizard-steps li.active, .wizard-steps li.complete { opacity: 1; }
.wizard-steps li.active > span { border-color: #f0c967; background: #f0c967; color: #183b2f; }
.wizard-steps li.complete > span { border-color: rgba(255,255,255,.85); color: transparent; }
.wizard-steps li.complete > span::after { content: "✓"; color: white; font-size: 14px; }
.wizard-assurance { margin: auto 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.65); font-size: 11px; line-height: 1.5; }
.wizard-form { position: relative; display: grid; grid-template-rows: 4px 1fr auto; min-width: 0; }
.wizard-progress { background: #eceee9; }
.wizard-progress span { display: block; width: 25%; height: 100%; background: var(--yellow); transition: width .25s ease; }
.wizard-panel { display: none; padding: 48px clamp(34px, 6vw, 76px) 42px; }
.wizard-panel.active { display: block; animation: wizard-in .22s ease-out; }
@keyframes wizard-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.wizard-kicker { margin: 0 0 12px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wizard-panel h2 { max-width: 650px; margin: 0; font-family: "Newsreader", Georgia, serif; font-size: clamp(32px, 4vw, 43px); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; }
.panel-copy { max-width: 620px; margin: 12px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.wizard-panel .choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wizard-panel .choice-grid label { min-width: 0; }
.wizard-panel .choice-grid span { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 11px 12px; border-radius: 5px; background: white; font-size: 12px; text-align: center; }
.wizard-panel .choice-grid input:checked + span { box-shadow: inset 0 0 0 1px var(--green); }
.wizard-panel .diet-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wizard-panel .diet-choice-grid span { position: relative; display: grid; grid-template-columns: 34px 1fr; align-content: center; justify-content: stretch; min-height: 106px; padding: 19px; text-align: left; }
.diet-choice-grid i { grid-row: 1 / span 2; align-self: start; color: #9a9f9a; font-style: normal; font-size: 11px; }
.diet-choice-grid strong { font-family: "Newsreader", Georgia, serif; font-size: 21px; font-weight: 600; }
.diet-choice-grid small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.diet-choice-grid input:checked + span i, .diet-choice-grid input:checked + span small { color: rgba(255,255,255,.72); }
.wizard-fieldset { margin: 0 0 24px; padding: 0; border: 0; }
.wizard-fieldset legend { margin-bottom: 10px; color: var(--ink); font-size: 12px; font-weight: 700; }
.wizard-fieldset .radio-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
.wizard-fieldset .radio-cards span { min-height: 70px; padding: 16px; }
.routine-options { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 12px; }
.routine-options .toggle-row { min-height: 82px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 5px; background: #fafaf8; }
.routine-days { margin-top: 22px; }
.routine-days > p { margin: -4px 0 11px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.weekday-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.weekday-picker label { cursor: pointer; }
.weekday-picker input { position: absolute; opacity: 0; }
.weekday-picker span { display: grid; place-items: center; min-height: 39px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--muted); font-size: 11px; font-weight: 700; transition: .15s ease; }
.weekday-picker input:checked + span { border-color: var(--green); background: var(--green); color: white; box-shadow: 0 2px 7px rgba(32,90,71,.16); }
.weekday-picker input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.wizard-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; padding: 15px clamp(34px, 6vw, 76px); border-top: 1px solid var(--line); background: #fcfcfa; }
.wizard-footer > div:first-child { display: flex; flex-direction: column; color: var(--muted); font-size: 10px; }
.wizard-footer .text-button { padding: 3px 0; text-align: left; font-size: 10px; }
.wizard-actions { display: flex; gap: 9px; }
.wizard-actions .button { min-width: 100px; }

/* Weekly plan as separated day rows */
.plan-tools { display: flex; gap: 7px; }
.plan-tools .button { min-height: 36px; padding: 7px 12px; font-size: 11px; }
.meal-grid { display: grid; grid-template-columns: 1fr; gap: 12px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.day-column, .day-column.two-meals, .day-column.has-breakfast { display: grid; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: white; box-shadow: 0 4px 16px rgba(31,42,36,.035); }
.day-column.two-meals { grid-template-columns: 128px repeat(2, minmax(0, 1fr)); }
.day-column.has-breakfast { grid-template-columns: 128px repeat(3, minmax(0, 1fr)); }
.day-head { display: flex; flex-direction: column; justify-content: center; min-height: 188px; padding: 18px; border: 0; border-right: 1px solid var(--line); background: #edf2ec; }
.day-head strong { font-size: 20px; }
.day-head span { margin-top: 4px; }
.day-column .meal-card { min-height: 188px; padding: 17px 18px; border: 0; border-right: 1px solid var(--line); }
.day-column .meal-card:last-child { border-right: 0; }
.day-column.today { border-color: #c7a03d; box-shadow: 0 0 0 1px #e8ba50, 0 8px 24px rgba(54,72,62,.09); }
.day-column.today:focus { outline: 3px solid rgba(232,186,80,.5); outline-offset: 4px; }
.day-column.today .day-head { position: relative; background: #f5e7b9; }
.today-label { width: fit-content; margin: 0 0 8px !important; padding: 3px 6px; border-radius: 3px; background: var(--green); color: white !important; font-size: 7px !important; font-weight: 700; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.day-column .meal-breakfast { box-shadow: inset 0 3px #ce814a; }
.day-column .meal-lunch { box-shadow: inset 0 3px var(--yellow); }
.day-column .meal-dinner { box-shadow: inset 0 3px var(--green); }
.day-column .meal-card h3 { min-height: 44px; margin-top: 13px; }
.day-column .meal-card p { min-height: 36px; }
.day-column .recipe-button { position: absolute; bottom: 16px; left: 18px; }
.day-column .meal-card { min-height: 224px; padding-bottom: 58px; }
.meal-card-footer { position: absolute; right: 16px; bottom: 14px; left: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid #e8e7df; }
.day-column .meal-card-footer .recipe-button { position: static; flex: 0 0 auto; margin: 0; }
.meal-feedback { display: flex; align-items: center; gap: 3px; }
.meal-feedback button { min-height: 27px; padding: 4px 7px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 600; cursor: pointer; }
.meal-feedback button:hover { border-color: var(--line); background: #f4f5f1; color: var(--green); }
.meal-feedback button.active { border-color: #b9cabe; background: #e7efe9; color: var(--green); }
.love-meal.active::before { content: "♥ "; color: var(--orange); }
.pin-meal.active::before { content: "• "; color: var(--yellow); }
.reject-meal:hover { color: #994a35 !important; }
.plan-summary { border: 1px solid var(--line); background: white; }

@media (max-width: 900px) {
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: 1 / -1; grid-row: 1; justify-content: center; border: 0; }
  .wizard-shell { grid-template-columns: 220px minmax(0,1fr); }
  .wizard-sidebar { padding: 26px 20px; }
  .wizard-panel .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-column.two-meals, .day-column.has-breakfast { grid-template-columns: 112px 1fr; }
  .day-head { grid-row: 1 / span 3; min-height: 100%; }
  .day-column .meal-card { min-height: 205px; border-right: 0; border-bottom: 1px solid var(--line); }
  .day-column .meal-card:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .site-header { height: auto; padding: 10px 16px 0; }
  .site-header .brand { width: 100%; }
  .site-header nav { width: 100%; height: 44px; gap: 22px; overflow-x: auto; }
  .preference-intro { padding: 36px 0 22px; }
  .preference-intro h1 { font-size: 38px; }
  .wizard-shell { display: block; width: 100%; min-width: 0; min-height: 0; }
  .wizard-sidebar { padding: 19px 18px 14px; }
  .wizard-brand, .wizard-assurance, .wizard-steps li div { display: none; }
  .wizard-steps { display: flex; justify-content: space-between; margin: 0; }
  .wizard-steps li { display: block; min-height: 34px; flex: 1; opacity: .55; }
  .wizard-steps li::after { top: 16px; right: 0; bottom: auto; left: 32px; width: calc(100% - 32px); height: 1px; }
  .wizard-steps li > span { position: relative; z-index: 1; background: var(--green-dark); }
  .wizard-form { display: block; }
  .wizard-progress { height: 3px; }
  .wizard-panel { min-height: 450px; padding: 30px 20px; }
  .wizard-panel h2 { max-width: 100%; overflow-wrap: anywhere; font-size: 32px; }
  .panel-copy { margin-bottom: 23px; }
  .wizard-panel .diet-choice-grid, .wizard-fieldset .radio-cards, .routine-options { grid-template-columns: 1fr; }
  .wizard-panel .diet-choice-grid span { min-height: 88px; }
  .wizard-panel .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wizard-panel .diet-choice-grid { grid-template-columns: 1fr; }
  .wizard-footer { position: sticky; bottom: 0; padding: 12px 16px; }
  .wizard-footer > div:first-child { display: none; }
  .wizard-actions { width: 100%; justify-content: flex-end; }
  .wizard-actions .button { flex: 1; }
  .week-toolbar { align-items: flex-end; gap: 15px; }
  .week-nav h2 { min-width: 0; font-size: 14px; }
  .current-week-button { padding: 5px 7px; white-space: nowrap; }
  .plan-tools { gap: 4px; }
  .plan-tools .button { min-height: 32px; padding: 6px 8px; font-size: 10px; }
  .day-column.two-meals, .day-column.has-breakfast { display: block; }
  .day-head { display: flex; min-height: 0; padding: 13px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .day-column .meal-card { min-height: 205px; padding: 17px 16px 58px; }
  .day-column .meal-card h3, .day-column .meal-card p { min-height: 0; }
  .day-column .recipe-button { left: 16px; }
  .meal-card-footer { right: 14px; left: 16px; }
  .plan-summary { display: grid; }
  .site-footer { grid-template-columns: 1fr; gap: 22px; padding: 25px 16px 30px; text-align: center; }
  .footer-social { grid-column: auto; grid-row: auto; display: grid; justify-items: center; padding: 21px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .footer-social > div:first-child { text-align: center; }
  .footer-links { justify-content: center; }
  .share-dialog { padding: 22px 18px; }
  .install-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 22px 18px; overflow-y: auto; }
  .install-dialog .dialog-head > div { min-width: 0; }
  .install-dialog .dialog-head .icon-button { flex: 0 0 auto; }
  .install-dialog h2 { margin-bottom: 16px; font-size: 28px; line-height: 1.08; }
  .install-dialog .install-lead { font-size: 12px; }
  .share-preview-day { grid-template-columns: 38px 1fr; }
  .share-preview-day > span { grid-column: 2; }
  .share-options { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .view.active, .wizard-panel.active { animation: none; }
  .meal-photo img { transition: none; }
}

/* Stronger site frame */
.site-header {
  height: 82px;
  gap: 56px;
  background: var(--green-dark);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 7px 22px rgba(20, 53, 42, .16);
  backdrop-filter: none;
}
.site-header .brand { color: #fffdf7; font-size: 21px; }
.site-header .brand-mark { width: 40px; height: 40px; box-shadow: 0 0 0 1px rgba(255,255,255,.16); }
.site-header nav { gap: 36px; }
.site-header .nav-link { color: rgba(255,255,255,.68); font-size: 13px; font-weight: 600; }
.site-header .nav-link:hover { color: white; }
.site-header .nav-link.active { color: white; border-bottom-color: var(--yellow); }
.site-header .count { background: var(--yellow); color: var(--green-dark); }
.site-header .local-badge { color: rgba(255,255,255,.74); }
.site-header .local-badge span { background: var(--yellow); }
.preferences-dock { position: fixed; z-index: 9; top: 48%; right: 0; display: flex; align-items: center; gap: 8px; padding: 15px 9px; border: 1px solid #cba53e; border-right: 0; border-radius: 7px 0 0 7px; background: var(--yellow); color: var(--green-dark); box-shadow: 0 8px 22px rgba(24,55,43,.18); font-size: 11px; font-weight: 700; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); cursor: pointer; }
.preferences-dock:hover { background: #f1cf72; }
.preferences-dock svg { width: 16px; height: 16px; fill: #fff8de; stroke: currentColor; stroke-width: 1.5; }

.site-footer { display: block; max-width: none; margin: 0; padding: 0; border: 0; background: var(--green-dark); color: rgba(255,255,255,.66); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 36px; width: 100%; max-width: 1280px; min-height: 150px; margin: 0 auto; padding: 32px 24px; }
.footer-identity strong { color: white; font-size: 23px; }
.footer-identity span { margin-top: 7px; color: rgba(255,255,255,.58); font-size: 11px; }
.footer-social { padding: 7px 34px; border-color: rgba(255,255,255,.18); }
.footer-social strong { color: #fff9e9; font-size: 13px; }
.footer-social span { color: rgba(255,255,255,.57); font-size: 11px; }
.social-actions button { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.07); color: #f3d275; }
.social-actions button:hover { border-color: var(--yellow); background: var(--yellow); color: var(--green-dark); }
.site-footer a, .site-footer .footer-action { color: #f3d275; }

@media (max-width: 900px) {
  .site-header { gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: 1 / -1; grid-row: 1; justify-content: center; border: 0; }
}

@media (max-width: 640px) {
  .site-header { height: auto; min-height: 104px; padding: 12px 16px 0; gap: 7px; }
  .site-header .brand { width: 100%; font-size: 19px; }
  .site-header .brand-mark { width: 35px; height: 35px; }
  .site-header nav { width: 100%; height: 47px; gap: 24px; }
  .site-header .nav-link { flex: 0 0 auto; font-size: 12px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; min-height: 0; padding: 30px 18px 34px; text-align: center; }
  .footer-social { grid-column: auto; grid-row: auto; display: grid; justify-items: center; padding: 23px 0; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
  .footer-links { justify-content: center; }
  .preferences-dock { top: auto; right: 14px; bottom: 14px; flex-direction: row; padding: 10px 13px; border: 1px solid #cba53e; border-radius: 5px; font-size: 10px; writing-mode: horizontal-tb; transform: none; }
}

/* Photo-led weekly meal cards */
.day-column .meal-card { min-height: 302px; padding: 0 0 57px; overflow: hidden; background: var(--paper); }
.meal-photo { position: relative; height: 112px; overflow: hidden; background: #dfe9e2; }
.meal-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,38,29,.02) 30%, rgba(15,38,29,.5)); pointer-events: none; }
.meal-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.meal-card:hover .meal-photo img { transform: scale(1.035); }
.meal-photo > span:not(.meal-kind) { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(32,90,71,.58); font-family: "Newsreader", Georgia, serif; font-size: 13px; }
.meal-photo .meal-kind { position: absolute; z-index: 1; bottom: 10px; left: 12px; padding: 6px 8px; border-radius: 4px; background: rgba(255,253,250,.94); color: var(--green-dark); box-shadow: 0 2px 8px rgba(14,31,24,.12); backdrop-filter: blur(5px); }
.meal-photo .swap-button { z-index: 2; top: 9px; right: 9px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(255,253,250,.9); color: var(--green-dark); box-shadow: 0 2px 8px rgba(14,31,24,.15); }
.meal-card-content { padding: 15px 17px 11px; }
.day-column .meal-card-content h3 { min-height: 43px; margin: 0 0 7px; font-size: 20px; }
.day-column .meal-card-content p { display: -webkit-box; min-height: 36px; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.meal-card-content .meal-meta { margin-top: 11px; }
.meal-card-footer { right: 15px; bottom: 13px; left: 17px; }
.day-column .special-meal-card { padding-bottom: 0; background: #f7f2e6; }
.special-meal-card .special-photo { background: linear-gradient(135deg, #e8eadf, #f4e4bd); }
.special-meal-card .special-photo::after { background: linear-gradient(to bottom, rgba(24,55,43,.02), rgba(24,55,43,.24)); }
.special-meal-card .special-icon { color: var(--green-dark) !important; }
.special-meal-card .special-icon svg { width: 45px; height: 45px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.special-meal-card .special-kicker { min-height: 0 !important; margin: 0 0 6px !important; color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

@media (max-width: 900px) {
  .day-column .meal-card { min-height: 280px; }
  .meal-photo { height: 104px; }
}

@media (max-width: 640px) {
  .day-column .meal-card { min-height: 295px; padding-bottom: 58px; }
  .meal-photo { height: 126px; }
  .day-column .meal-card-content h3 { min-height: 0; font-size: 21px; }
  .day-column .meal-card-content p { min-height: 0; }
}

/* Product story */
.about-planner { margin-top: 92px; padding-top: 72px; border-top: 1px solid var(--line); }
#about-view .about-planner { margin-top: 0; padding-top: 72px; border-top: 0; }
.about-intro { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(360px, 1.22fr); column-gap: clamp(45px, 8vw, 110px); align-items: start; }
.about-intro .eyebrow { grid-column: 1 / -1; }
.about-intro h2 { max-width: 560px; margin: 7px 0 0; font-family: "Newsreader", Georgia, serif; font-size: clamp(37px, 4.5vw, 54px); font-weight: 500; line-height: 1.04; letter-spacing: -.02em; }
.about-intro > p:last-child { max-width: 590px; margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 52px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,253,249,.62); }
.trust-grid > div { min-height: 126px; padding: 24px; }
.trust-grid > div + div { border-left: 1px solid var(--line); }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { color: var(--green); font-family: "Newsreader", Georgia, serif; font-size: 19px; }
.trust-grid span { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.home-screen-panel { display: grid; grid-template-columns: 74px minmax(0,1fr) auto; align-items: center; gap: 24px; margin-top: 18px; padding: 25px 28px; border-radius: 7px; background: #e8efe9; }
.home-screen-panel img { width: 74px; height: 74px; border-radius: 17px; box-shadow: 0 7px 18px rgba(24,55,43,.14); }
.home-screen-panel .eyebrow { margin-bottom: 5px; }
.home-screen-panel h3 { margin: 0; font-family: "Newsreader", Georgia, serif; font-size: 25px; }
.home-screen-panel p:last-child { max-width: 680px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.home-screen-steps { display: grid; gap: 5px; margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.install-lead { margin: -6px 0 20px; color: var(--muted); line-height: 1.55; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 58px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefit-grid article { min-height: 245px; padding: 30px 30px 34px 0; }
.benefit-grid article + article { padding-left: 30px; border-left: 1px solid var(--line); }
.benefit-grid article > span { color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.benefit-grid h3 { margin: 35px 0 9px; font-family: "Newsreader", Georgia, serif; font-size: 25px; font-weight: 600; line-height: 1.12; }
.benefit-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.difference-panel { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; margin-top: 64px; padding: 48px 52px; border-radius: 7px; background: var(--green-dark); color: white; }
.difference-panel .eyebrow { color: #f0ca69; }
.difference-panel h2 { margin: 8px 0 0; font-family: "Newsreader", Georgia, serif; font-size: 36px; font-weight: 500; }
.difference-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; }
.difference-list > div { min-height: 112px; padding: 8px 24px 20px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.difference-list > div:nth-child(even) { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.16); }
.difference-list > div:nth-last-child(-n+2) { padding-top: 22px; border-bottom: 0; }
.difference-list strong, .difference-list span { display: block; }
.difference-list strong { color: #fffaf0; font-size: 13px; }
.difference-list span { margin-top: 7px; color: rgba(255,255,255,.63); font-size: 11px; line-height: 1.55; }
.difference-list .difference-highlight strong { color: #f0ca69; }
.seo-faq { margin-top: 70px; padding-top: 58px; border-top: 1px solid var(--line); }
.seo-faq > h2 { max-width: 650px; margin: 0; font-family: "Newsreader", Georgia, serif; font-size: clamp(32px, 4vw, 44px); font-weight: 500; line-height: 1.08; }
.seo-faq > div { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.seo-faq article { min-height: 155px; padding: 25px 30px 25px 0; border-bottom: 1px solid var(--line); }
.seo-faq article:nth-child(even) { padding-left: 30px; border-left: 1px solid var(--line); }
.seo-faq h3 { margin: 0; font-family: "Newsreader", Georgia, serif; font-size: 20px; }
.seo-faq article p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

@media (max-width: 800px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-intro > p:last-child { margin-top: 20px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid > div + div { border-left: 0; }
  .trust-grid > div:nth-child(even) { border-left: 1px solid var(--line); }
  .trust-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .home-screen-panel { grid-template-columns: 64px 1fr; }
  .home-screen-panel img { width: 64px; height: 64px; }
  .home-screen-panel .button { grid-column: 1 / -1; width: 100%; }
  .difference-panel { grid-template-columns: 1fr; gap: 35px; padding: 38px; }
  .seo-faq > div { grid-template-columns: 1fr; }
  .seo-faq article:nth-child(even) { padding-left: 0; border-left: 0; }
}

@media (max-width: 640px) {
  .about-planner { margin-top: 62px; padding-top: 50px; }
  .about-intro h2 { font-size: 38px; }
  .about-intro > p:last-child { font-size: 14px; }
  .benefit-grid { grid-template-columns: 1fr; margin-top: 38px; }
  .trust-grid { grid-template-columns: 1fr; margin-top: 34px; }
  .trust-grid > div { min-height: 0; padding: 19px 20px; }
  .trust-grid > div:nth-child(even) { border-left: 0; }
  .trust-grid > div + div { border-top: 1px solid var(--line); }
  .home-screen-panel { grid-template-columns: 52px 1fr; padding: 22px 19px; }
  .home-screen-panel img { width: 52px; height: 52px; border-radius: 12px; }
  .home-screen-panel h3 { font-size: 22px; }
  .benefit-grid article { min-height: 0; padding: 25px 0 28px; }
  .benefit-grid article + article { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .benefit-grid h3 { margin-top: 17px; }
  .difference-panel { margin-top: 44px; padding: 30px 22px; }
  .seo-faq { margin-top: 48px; padding-top: 42px; }
  .seo-faq article { min-height: 0; padding: 22px 0; }
  .difference-list { grid-template-columns: 1fr; }
  .difference-list > div, .difference-list > div:nth-child(even), .difference-list > div:nth-last-child(-n+2) { min-height: 0; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.16); border-left: 0; }
  .difference-list > div:last-child { border-bottom: 0; }
}

@media print {
  @page { size: A4 landscape; margin: 9mm; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { background: white; color: #18251f; }
  .site-header, .hero-actions, .plan-tools, .site-footer, .toast, .consent-banner, dialog, .plan-summary, .recipe-button, .swap-button, .plan-counter, .meal-card-footer, .meal-photo, .about-planner, .preferences-dock { display: none !important; }
  main { max-width: none; padding: 0; }
  .view { display: none !important; }
  .view.active { display: block !important; }
  #planner-view .hero { display: block; padding: 0 0 4mm; border-bottom: 2px solid var(--green); }
  #planner-view .hero .eyebrow { margin: 0 0 1mm; font-size: 8pt; }
  #planner-view .hero h1 { margin: 0; font-size: 23pt; }
  #planner-view .hero-copy { display: none; }
  .week-toolbar { padding: 3mm 0; border: 0; }
  .week-toolbar .label { font-size: 7pt; }
  .week-nav { margin-top: 1mm; }
  .week-nav h2 { min-width: 0; font-size: 11pt; }
  .week-nav .icon-button, .current-week-button { display: none; }
  .meal-grid { gap: 2mm; }
  .day-column, .day-column.two-meals, .day-column.has-breakfast { display: grid !important; overflow: hidden; break-inside: avoid; page-break-inside: avoid; border-color: #cfd4ce; box-shadow: none; }
  .day-column.two-meals { grid-template-columns: 27mm repeat(2, minmax(0,1fr)); }
  .day-column.has-breakfast { grid-template-columns: 27mm repeat(3, minmax(0,1fr)); }
  .day-head { grid-row: auto; min-height: 27mm; padding: 3mm; border-right: 1px solid #cfd4ce; border-bottom: 0; background: #edf2ec !important; }
  .day-head strong { font-size: 12pt; }
  .day-head span { font-size: 7pt; }
  .day-column .meal-card { min-height: 27mm; padding: 3mm 3.5mm; border-right: 1px solid #d9ddd8; border-bottom: 0; box-shadow: inset 0 2px var(--green); }
  .meal-card-content { padding: 0; }
  .day-column .meal-breakfast { box-shadow: inset 0 2px #ce814a; }
  .day-column .meal-lunch { box-shadow: inset 0 2px #d7a936; }
  .meal-kind { font-size: 6pt; }
  .meal-card h3, .day-column .meal-card h3 { min-height: 0; margin: 2mm 0 1mm; font-size: 11pt; line-height: 1.08; }
  .meal-card p, .day-column .meal-card p { min-height: 0; font-size: 7pt; line-height: 1.3; }
  .meal-meta { margin-top: 1.5mm; gap: 3mm; }
  .pill { font-size: 6.5pt; }
  .shopping-columns { grid-template-columns: repeat(3, 1fr); gap: 3mm; }
  .shopping-group { break-inside: avoid; padding: 4mm; }
}
