@font-face { font-family: Poppins; src: url('/fonts/Poppins-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Nunito; src: url('/fonts/Nunito-Variable.ttf') format('truetype'); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: 'Dancing Script'; src: url('/fonts/DancingScript-Variable.ttf') format('truetype'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --ink: #333333;
  --green: #2f4b40;
  --green-2: #3f6254;
  --sage: #dfe8da;
  --sage-2: #f1f5ef;
  --paper: #fffdf9;
  --card: #fffefa;
  --oat: #f7e6d2;
  --clay: #e8895e;
  --clay-soft: #f7e6d2;
  --muted: #6d756f;
  --line: #e1e5e2;
  --shadow: 0 18px 50px rgba(40, 60, 50, .1);
  --heading: Poppins, Arial, sans-serif;
  --serif: Poppins, Arial, sans-serif;
  --sans: Nunito, Arial, sans-serif;
  --script: "Dancing Script", "Segoe Script", cursive;
}

* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-header { height: 76px; padding: 0 4.5vw; display: grid; grid-template-columns: minmax(250px, 1fr) auto minmax(440px, 1fr); align-items: center; border-bottom: 1px solid var(--line); background: rgba(250,248,242,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; justify-self: start; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.app-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.brand strong { font-family: var(--serif); display: block; font-size: 19px; letter-spacing: -.3px; }
.brand small { color: #8ba37f; font-family: var(--script); font-size: 13px; letter-spacing: 0; display: block; margin-top: -1px; text-transform: none; }
.top-nav { display: flex; height: 100%; align-items: stretch; gap: 25px; }
.nav-item { position: relative; display: flex; gap: 8px; align-items: center; border: 0; background: transparent; color: #66716b; font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap; padding: 0 3px; }
.nav-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px 2px 0 0; background: transparent; }
.nav-item:hover, .nav-item.active { color: var(--green); }
.nav-item.active::after { background: var(--clay); }
.nav-item svg { width: 17px; }
.count-badge { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--clay-soft); color: #944b32; font-size: 10px; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.settings-wrap { position: relative; }
.profile-button { width: 39px; height: 39px; padding: 0; display: grid; place-items: center; overflow: hidden; border-radius: 50%; border: 2px solid white; outline: 1px solid var(--line); background: var(--green); color: white; cursor: pointer; font-family: var(--serif); font-size: 13px; font-weight: 700; }
.profile-button img { width: 100%; height: 100%; object-fit: cover; }
.scale-control { height: 34px; display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f1efe8; }
.scale-control button { border: 0; border-radius: 6px; padding: 0 8px; background: transparent; color: var(--muted); font-size: 8px; font-weight: 750; cursor: pointer; }
.scale-control button[aria-pressed="true"] { background: white; color: var(--green); box-shadow: 0 1px 5px rgba(32,52,44,.12); }
.settings-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 225px; padding: 7px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.settings-menu button { width: 100%; border: 0; background: transparent; display: grid; grid-template-columns: 28px 1fr; gap: 8px; text-align: left; padding: 10px; border-radius: 8px; cursor: pointer; }
.settings-menu button:hover { background: var(--sage-2); }
.settings-menu button > span { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; background: var(--oat); }
.settings-menu strong, .settings-menu small { display: block; }
.settings-menu strong { font-size: 10px; }.settings-menu small { font-size: 8px; color: var(--muted); margin-top: 2px; }
.save-state { color: #718078; font-size: 11px; display: flex; align-items: center; gap: 7px; }
.save-state i, .worksheet-note i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #74a27e; }

main { min-height: calc(100vh - 76px); transform-origin: top center; transition: zoom .2s ease; }
body.content-large main { zoom: 1.5; }
.view { display: none; max-width: 1450px; margin: 0 auto; padding: 48px 5vw 72px; }
.view.active { display: block; animation: view-in .28s ease; }
.capture .view.active { animation: none; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 32px; }
.page-heading.compact { align-items: center; }
.eyebrow { color: var(--clay); text-transform: uppercase; letter-spacing: 2.2px; font-size: 10px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: var(--serif); font-size: clamp(40px, 4.2vw, 64px); line-height: .99; letter-spacing: -2.2px; margin: 10px 0 15px; font-weight: 500; }
.compact h1 { font-size: 48px; }
.page-heading p, .worksheet-heading > div > p { color: var(--muted); max-width: 590px; font-size: 14px; line-height: 1.65; margin: 0; }

.button { border-radius: 10px; min-height: 43px; padding: 0 17px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 720; font-size: 12px; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--green); box-shadow: 0 8px 20px rgba(41,75,61,.15); }
.button.primary:hover { background: #203e32; box-shadow: 0 10px 24px rgba(41,75,61,.22); }
.button.secondary { background: transparent; border-color: #cfd4ce; }
.button.secondary:hover { background: white; }
.button svg { width: 16px; }
.button.full { width: 100%; min-height: 48px; }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.text-button { border: 0; background: transparent; color: var(--green-2); font-size: 11px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.icon-button:hover { background: white; }
.icon-button svg { width: 16px; }
.flip { transform: rotate(180deg); }

.week-controls { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; }
.week-label { border: 0; background: transparent; width: 155px; font-family: var(--serif); font-size: 16px; cursor: default; }
.summary-strip { min-height: 84px; padding: 15px 14px; border: 1px solid var(--line); background: rgba(255,255,255,.42); border-radius: 15px; display: grid; grid-template-columns: repeat(3, minmax(135px, .8fr)) minmax(240px, auto) auto; align-items: center; margin-bottom: 12px; }
.summary-strip > div { display: flex; align-items: center; gap: 9px; border-right: 1px solid var(--line); padding: 0 10px; }
.summary-strip > div:first-child { padding-left: 0; }
.summary-strip p { margin: 0; }
.summary-strip strong { display: block; font-family: var(--serif); font-size: 24px; line-height: 1; font-weight: 500; }
.summary-strip small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.summary-actions { display: flex; gap: 8px; margin-left: 12px; }
.summary-strip .summary-actions { border: 0; padding: 0; }
.summary-week-selector, .worksheet-week-selector { flex-direction: column; justify-content: center; gap: 0; margin: 0; }
.summary-week-selector > div, .worksheet-week-selector > div { display: flex; align-items: center; }
.summary-week-selector .week-label { width: 180px; white-space: nowrap; font-size: 14px; }
.summary-week-selector .text-button, .worksheet-week-selector .text-button { padding: 2px 6px 0; font-size: 8px; }
.macro-strip { min-height: 65px; margin-bottom: 25px; padding: 11px 20px; border-radius: 13px; background: var(--green); color: white; display: grid; grid-template-columns: 1.25fr repeat(4, .7fr) 1.3fr; align-items: center; gap: 15px; }
.macro-heading strong { display: block; font-family: var(--serif); font-size: 17px; font-weight: 500; margin-top: 3px; }.macro-heading .eyebrow { color: #efb69d; font-size: 8px; }
.macro-strip > div:not(.macro-heading) { border-left: 1px solid rgba(255,255,255,.17); padding-left: 17px; }
.macro-strip b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; }.macro-strip span { display: block; color: #b9cbc3; font-size: 8px; text-transform: uppercase; letter-spacing: .8px; }
.macro-strip > small { color: #afc2b9; font-size: 8px; line-height: 1.4; }
.summary-icon { width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center; }
.summary-icon svg { width: 18px; }
.summary-icon.sage { background: var(--sage); color: var(--green); }
.summary-icon.oat { background: var(--oat); color: #7a603a; }
.summary-icon.clay { background: var(--clay-soft); color: var(--clay); }

.week-grid { display: grid; grid-template-columns: repeat(7, minmax(145px, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: 0 5px 20px rgba(40,60,50,.04); }
.day-card { min-height: 275px; padding: 18px 16px 15px; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: relative; }
.day-card:last-child { border: 0; }
.day-card.today { background: #f2f5ee; }
.day-card.today::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--clay); }
.day-card.past { background: #f4f2ec; }.day-card.past .meal-content { opacity: .82; }.past-pill { display: inline-flex; align-items: center; gap: 3px; color: #777f7a; font-size: 7px; text-transform: uppercase; letter-spacing: .6px; }.past-pill svg { width: 9px; height: 9px; }
.day-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e8e8e1; padding-bottom: 13px; }
.day-head div span { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; display: block; }
.day-head div strong { font-family: var(--serif); font-size: 23px; font-weight: 500; display: block; margin-top: 1px; }
.today-pill { font-size: 8px; color: #8f472e; background: var(--clay-soft); border-radius: 10px; padding: 4px 7px; font-weight: 800; letter-spacing: .5px; }
.meal-content { flex: 1; display: flex; flex-direction: column; padding-top: 15px; }
.meal-content h3 { font-family: var(--serif); font-size: 18px; line-height: 1.15; margin: 0 0 8px; font-weight: 550; }
.meal-meta { color: var(--muted); display: flex; align-items: center; gap: 4px; font-size: 10px; }
.meal-meta svg { width: 13px; }
.recipe-link { display: inline-flex; align-items: center; gap: 4px; color: var(--clay); font-size: 9px; font-weight: 700; margin-top: 7px; text-decoration: none; }.recipe-link:hover { text-decoration: underline; }.recipe-link svg { width: 11px; height: 11px; }
.nutrition-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 12px; padding: 7px 5px; background: #f1f4ef; border-radius: 8px; }
.nutrition-mini span { text-align: center; border-right: 1px solid #dce2dd; }.nutrition-mini span:last-child { border: 0; }.nutrition-mini b { display: block; font-family: var(--serif); font-size: 11px; font-weight: 500; }.nutrition-mini small { font-size: 6px; color: var(--muted); text-transform: uppercase; }
.side-suggestions { margin-top: 10px; border-top: 1px solid #e4e6df; padding-top: 8px; }.side-suggestions > span { font-size: 7px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; font-weight: 800; }.side-suggestions label { display: flex; gap: 5px; align-items: start; font-size: 8px; margin-top: 5px; line-height: 1.25; cursor: pointer; }.side-suggestions input { width: 11px; height: 11px; margin: 0; accent-color: var(--green); }
.tag-chips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 7px; }.tag-chips span { font-size: 6.5px; text-transform: uppercase; letter-spacing: .5px; padding: 3px 5px; border-radius: 8px; background: var(--oat); color: #6d5b3e; }
.ingredient-peek { list-style: none; margin: 15px 0 0; padding: 0; }
.ingredient-peek li { font-size: 10px; color: #66716b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 5px 0; }
.ingredient-peek li::before { content: "·"; color: var(--clay); font-weight: 900; margin-right: 5px; }
.meal-actions { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.meal-actions button { border: 0; background: transparent; cursor: pointer; color: #7b837e; padding: 5px; }
.meal-actions button:hover { color: var(--clay); }
.meal-actions svg { width: 15px; }
.empty-meal { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #99a29d; text-align: center; gap: 9px; }
.empty-meal span { width: 38px; height: 38px; border: 1px dashed #cdd2cc; border-radius: 50%; display: grid; place-items: center; font-size: 20px; }
.empty-meal p { font-size: 10px; margin: 0; }
.empty-meal button { border: 0; color: var(--green); background: transparent; font-weight: 750; font-size: 10px; cursor: pointer; }

.planner-bottom { margin-top: 25px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; }
.tip-card, .worksheet-preview { border-radius: 15px; min-height: 143px; padding: 26px; }
.tip-card { display: flex; gap: 20px; background: var(--sage); }
.tip-card > svg { width: 24px; color: var(--green); flex: none; }
.tip-card span { color: var(--green-2); font-size: 9px; letter-spacing: 1.8px; font-weight: 800; }
.tip-card h3, .worksheet-preview h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 7px 0; }
.tip-card p, .worksheet-preview p { color: #607069; font-size: 11px; line-height: 1.5; margin: 0; }
.worksheet-preview { background: var(--green); color: white; display: grid; grid-template-columns: 1fr 130px 42px; align-items: center; gap: 20px; cursor: pointer; }
.worksheet-preview .eyebrow { color: #e5b59f; }
.worksheet-preview p { color: #cbd7d1; }
.preview-lines { display: grid; gap: 9px; }
.preview-lines i { height: 1px; background: rgba(255,255,255,.25); position: relative; }
.preview-lines i::after { content: ""; position: absolute; right: 0; top: -4px; width: 9px; height: 9px; border: 1px solid rgba(255,255,255,.35); }
.circle-arrow { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--clay); color: white; display: grid; place-items: center; cursor: pointer; }
.circle-arrow svg { width: 17px; }

/* Worksheet */
.worksheet-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 30px; }
.worksheet-heading h1 { font-size: 54px; }
.print-actions { display: flex; gap: 9px; }
.print-meta { background: var(--green); color: white; border-radius: 14px 14px 0 0; padding: 18px 22px; display: grid; grid-template-columns: 1fr auto auto; gap: 45px; align-items: center; }
.print-meta > div:not(.print-brand) { display: flex; flex-direction: column; gap: 3px; }
.print-meta b { font-size: 8px; letter-spacing: 1.5px; color: #b8c9c1; }
.print-meta span { font-family: var(--serif); font-size: 15px; }
.worksheet-range { margin: 0 0 14px; padding: 12px 15px; display: flex; align-items: end; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--sage-2); }.worksheet-range label { display: grid; gap: 4px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }.worksheet-range input { height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }.worksheet-range small { margin-left: auto; max-width: 230px; color: var(--muted); font-size: 8px; line-height: 1.4; }.worksheet-week-selector { display: flex; align-items: center; min-width: 210px; }.worksheet-week-selector .week-label { text-align: center; font-size: 13px; }
.print-brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); }
.print-brand img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.print-recipe-links { display: none; }
.worksheet-toolbar { min-height: 62px; border: 1px solid var(--line); border-top: 0; padding: 10px 15px; display: flex; align-items: center; gap: 24px; background: white; }
.search-box { width: 260px; height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; display: flex; align-items: center; gap: 8px; background: var(--paper); }
.search-box span { color: #8a928e; font-size: 20px; transform: rotate(-15deg); }
.search-box input { border: 0; background: transparent; outline: 0; width: 100%; color: var(--ink); font-size: 12px; }
.check-label { font-size: 11px; display: flex; gap: 8px; color: var(--muted); align-items: center; }
.check-label input { accent-color: var(--green); }
.worksheet-note { margin-left: auto; font-size: 9px; color: #818b85; display: flex; align-items: center; gap: 7px; }
.worksheet-note i { background: var(--clay); }
.worksheet-table { background: var(--card); border: 1px solid var(--line); border-top: 0; }
.worksheet-category { break-inside: avoid; }
.category-title { min-height: 36px; background: #edf2ec; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #d9e1da; }
.worksheet-category:first-child .category-title { border-top: 0; }
.category-title strong { font-family: var(--serif); font-size: 15px; font-weight: 550; }
.category-title small { color: var(--muted); font-size: 9px; }
.worksheet-table { overflow-x: auto; }
.worksheet-row { display: grid; grid-template-columns: 34px minmax(126px, 1.26fr) .52fr .8fr .64fr .8fr .72fr 1fr; min-height: 43px; border-top: 1px solid #e7e7df; align-items: stretch; }
.worksheet-row > * { border-right: 1px solid #e7e7df; display: flex; align-items: center; padding: 0 15px; }
.worksheet-row > *:last-child { border-right: 0; }
.worksheet-row.head { min-height: 34px; background: #f6f4ed; color: #7a837e; font-size: 8px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 800; }
.item-cell { gap: 9px; }
.item-cell strong { font-size: 11px; font-weight: 650; }
.item-cell small { color: #9aa09c; font-size: 9px; margin-left: auto; }
.unit-cell { font-size: 11px; }
.brand-cell { padding: 0 !important; }
.brand-cell input { width: 100%; min-height: 42px; border: 0; outline: none; padding: 0 15px; background: transparent; font-size: 11px; color: var(--ink); }
.brand-cell input::placeholder { color: #b3b9b5; }
.brand-cell input:focus { background: #fff8e9; box-shadow: inset 0 0 0 2px #dfcba3; }
.write-cell { padding: 0 !important; }
.write-cell input { width: 100%; height: 100%; min-height: 42px; border: 0; background: transparent; outline: none; padding: 0 15px; }
.write-cell input:focus { background: #fff8e9; box-shadow: inset 0 0 0 2px #dfcba3; }
.needed-cell { font-family: var(--serif); font-size: 13px; color: var(--green); }
.needed-cell.empty { color: #b5bbb7; }
.hide-row { border: 0; background: transparent; color: #a1a8a3; margin-left: auto; padding: 4px; cursor: pointer; display: grid; place-items: center; }.hide-row:hover { color: var(--clay); }.hide-row svg { width: 13px; }
.worksheet-row.is-hidden { opacity: .5; background: #f1efe9; }
.notes-cell input::placeholder { color: #a1a7a3; }
.wine-pairing { margin-top: 9px; padding: 7px 8px; border-left: 3px solid var(--clay); border-radius: 0 7px 7px 0; background: var(--oat); }.wine-pairing span, .wine-pairing strong { display: block; }.wine-pairing span { color: var(--muted); font-size: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }.wine-pairing strong { margin-top: 2px; color: var(--green); font-size: 9px; }
.restaurant-fields { display: grid; gap: 12px; }.restaurant-fields[hidden] { display: none; }.place-search-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; }.place-search-field input { min-width: 0; }.place-search-field .button { min-height: 42px; }.place-results { max-height: 210px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--sage-2); }.place-results button { width: 100%; padding: 9px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }.place-results button:hover { background: white; }.place-results strong, .place-results small { display: block; }.place-results small, .place-results p, .place-results a { color: var(--muted); font-size: 9px; }.place-results p { margin: 6px; }.place-results a { display: inline-block; margin: 4px 6px 8px; color: var(--green); font-weight: 750; }
.app-legal-footer { min-height: 56px; padding: 15px 5vw; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }.app-legal-footer nav { display: flex; gap: 18px; }.app-legal-footer a { color: var(--green); font-weight: 750; text-decoration: none; }.app-legal-footer a:hover { text-decoration: underline; }
.family-preference { margin: 10px 0 18px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--sage-2); }.password-security-card { max-width: 520px; padding: 24px; border: 1px solid var(--line); border-radius: 13px; background: var(--sage-2); }.password-security-card h3 { margin: 6px 0 8px; font: 600 21px var(--heading); }.password-security-card p:not(.eyebrow) { color: var(--muted); font-size: 10px; line-height: 1.6; }.password-security-card .button { margin-top: 8px; text-decoration: none; }
.check-cell { justify-content: center; padding: 0 !important; }.check-cell input { position: absolute; opacity: 0; pointer-events: none; }.check-cell span { width: 18px; height: 18px; border: 1.5px solid #91a198; border-radius: 4px; display: grid; place-items: center; background: white; }.check-cell input:checked + span { background: var(--green); border-color: var(--green); }.check-cell input:checked + span::after { content: "✓"; color: white; font-size: 12px; font-weight: 900; }.check-cell input:not(:disabled) + span { cursor: pointer; }.checked-row .item-cell strong { color: var(--muted); text-decoration: line-through; }.randomizer-exclusion { margin-top: 16px; }.outcome-form { display: grid; gap: 16px; }.outcome-form select { height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.print-footer { display: none; }
.weekly-print-view { display: none; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state strong { font-family: var(--serif); color: var(--ink); display: block; font-size: 22px; margin-bottom: 7px; }

/* Items */
.item-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.item-toolbar > span { color: var(--muted); font-size: 11px; }
.item-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; align-items: start; }
.item-category-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.item-category-head { padding: 16px 18px; background: var(--sage-2); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.item-category-head h3 { font-family: var(--serif); font-weight: 550; font-size: 18px; margin: 0; }
.item-category-head span { font-size: 9px; color: var(--muted); }
.household-item { min-height: 49px; padding: 8px 11px 8px 18px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; border-bottom: 1px solid #ebeae4; gap: 8px; }
.household-item:last-child { border-bottom: 0; }
.household-item strong { font-size: 11px; font-weight: 650; }
.household-item strong em { display: block; color: var(--muted); font-size: 8px; font-style: normal; font-weight: 500; margin-top: 3px; }.household-item > span { display: flex; }.household-item.muted-item { opacity: .55; background: #f2f0ea; }
.household-item small { color: var(--muted); font-size: 9px; background: #f2f0e9; border-radius: 10px; padding: 3px 7px; }
.mini-button { border: 0; background: transparent; color: #9aa09c; display: grid; place-items: center; padding: 5px; cursor: pointer; }
.mini-button:hover { color: var(--clay); }
.mini-button svg { width: 14px; }

/* Modal */
.modal { padding: 0; border: 0; border-radius: 18px; background: var(--card); color: var(--ink); width: min(610px, calc(100vw - 28px)); max-height: calc(100vh - 30px); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(25,41,34,.62); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .22s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal-shell { display: flex; flex-direction: column; max-height: calc(100vh - 30px); }
.modal-header { display: flex; justify-content: space-between; align-items: start; padding: 24px 27px 18px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-family: var(--serif); font-size: 29px; font-weight: 500; margin: 5px 0 0; }
.modal-body { padding: 23px 27px 26px; overflow-y: auto; }
.modal-footer { border-top: 1px solid var(--line); padding: 15px 27px; display: flex; justify-content: flex-end; gap: 8px; background: #f8f6ef; }
.import-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.wand-mark { width: 48px; height: 48px; flex: none; border-radius: 13px; background: var(--clay-soft); color: var(--clay); display: grid; place-items: center; }
.wand-mark svg { width: 23px; }
.import-hero h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 4px; font-weight: 500; }
.import-hero p { margin: 0; color: var(--muted); font-size: 11px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span, .serving-row > div > span, .review-label span { font-size: 10px; font-weight: 800; letter-spacing: .3px; }
.field > input, .field select { height: 43px; border: 1px solid var(--line); border-radius: 9px; background: white; padding: 0 12px; outline: none; }
.field > input:focus, .field select:focus, .url-field:focus-within { border-color: #789487; box-shadow: 0 0 0 3px rgba(62,102,85,.1); }
.url-field { height: 46px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; background: white; }
.url-field svg { width: 16px; color: #829089; }
.url-field input { border: 0; outline: 0; width: 100%; font-size: 12px; }
.serving-row { display: flex; justify-content: space-between; align-items: center; margin: 18px 0; }
.serving-row small { display: block; color: var(--muted); font-size: 9px; margin-top: 4px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.stepper button { border: 0; background: #f3f2ec; width: 34px; height: 34px; cursor: pointer; font-size: 18px; }
.stepper output { width: 40px; text-align: center; font-family: var(--serif); font-size: 16px; }
.import-status { min-height: 16px; margin: 8px 0 0; text-align: center; font-size: 10px; color: var(--muted); }
.import-status.error { color: #a34a35; }
.divider { margin: 13px 0; display: flex; align-items: center; gap: 10px; color: #999f9b; font-size: 8px; text-transform: uppercase; letter-spacing: 1.2px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.alternate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.choice-card { border: 1px solid var(--line); border-radius: 10px; background: transparent; text-align: left; padding: 11px; display: grid; grid-template-columns: 30px 1fr 15px; align-items: center; gap: 8px; cursor: pointer; }
.choice-card:hover { background: var(--sage-2); border-color: #bdcbc1; }
.choice-card > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--oat); }
.choice-card strong { display: block; font-size: 10px; }
.choice-card small { display: block; font-size: 8px; color: var(--muted); margin-top: 3px; }
.choice-card svg { width: 13px; }
.review-topline { display: flex; gap: 10px; }
.grow { flex: 1; }
.servings-field { width: 95px; }
.review-label { display: flex; align-items: end; justify-content: space-between; margin: 22px 0 11px; }
.review-label small { display: block; color: var(--muted); margin-top: 4px; font-size: 9px; }
.ingredient-head, .ingredient-edit-row { display: grid; grid-template-columns: 75px 85px 1fr 29px; gap: 7px; }
.ingredient-head { padding: 0 7px 5px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: 1px; }
.ingredient-editor { display: grid; gap: 7px; }
.ingredient-edit-row input, .ingredient-edit-row select { width: 100%; min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 0 9px; font-size: 10px; outline: 0; }
.ingredient-edit-row button { border: 0; background: transparent; color: #a29c96; cursor: pointer; }
.ingredient-edit-row button:hover { color: var(--clay); }
.ingredient-edit-row svg { width: 14px; }
.nutrition-editor { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }.nutrition-editor .review-label { grid-column: 1 / -1; margin: 0 0 2px; }.nutrition-editor label > span { display: block; font-size: 8px; color: var(--muted); margin: 0 0 5px; }.nutrition-editor input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; }
.meal-tags { margin-top: 18px; }.meal-tags > span { font-size: 10px; font-weight: 800; }.meal-tags > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }.meal-tags label { padding: 6px 9px; border: 1px solid var(--line); border-radius: 15px; font-size: 9px; background: white; }.meal-tags input { accent-color: var(--green); }
#review-stage.tag-only .review-topline, #review-stage.tag-only .review-label, #review-stage.tag-only .ingredient-head, #review-stage.tag-only .ingredient-editor, #review-stage.tag-only .nutrition-editor, #review-stage.tag-only .back-link { display: none; } #review-stage.tag-only .meal-tags { margin: 4px 0 15px; } #review-stage.tag-only .meal-tags::before { content: "Past recipes stay locked. Tags and randomizer eligibility remain editable for future menu suggestions."; display: block; color: var(--muted); font-size: 10px; line-height: 1.5; margin-bottom: 18px; }
.back-link { margin-top: 15px; padding-left: 0; }
.small-modal { width: min(490px, calc(100vw - 28px)); }
.field-stack { display: grid; gap: 16px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toast-region { position: fixed; bottom: 22px; right: 22px; z-index: 50; display: grid; gap: 8px; }
.toast { color: white; background: var(--ink); border-radius: 10px; padding: 12px 16px; font-size: 11px; box-shadow: var(--shadow); animation: toast-in .25s ease; }
.dialog-intro { color: var(--muted); font-size: 11px; line-height: 1.55; }
.randomize-days { display: grid; gap: 7px; }.randomize-day { display: grid; grid-template-columns: 24px 1fr 160px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }.randomize-day > input { accent-color: var(--green); }.randomize-day strong { font-family: var(--serif); font-size: 15px; font-weight: 500; }.randomize-day select { height: 34px; border: 1px solid var(--line); background: white; border-radius: 8px; font-size: 10px; padding: 0 8px; }
.randomize-day.locked { opacity: .5; background: #f0eee8; }
.settings-dialog { width: min(800px, calc(100vw - 28px)); }.settings-layout { display: grid; grid-template-columns: 165px 1fr; min-height: 445px; overflow: hidden; }.settings-tabs { padding: 16px 10px; background: #f1f1e9; border-right: 1px solid var(--line); }.settings-tabs button { display: block; width: 100%; border: 0; background: transparent; border-radius: 8px; text-align: left; padding: 10px; font-size: 10px; font-weight: 700; color: var(--muted); cursor: pointer; }.settings-tabs button.active { background: white; color: var(--green); box-shadow: 0 2px 8px rgba(30,50,40,.06); }.settings-content { padding: 24px; overflow-y: auto; max-height: 560px; }.account-summary { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }.account-summary > :last-child { margin-left: auto; }.account-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-family: var(--serif); font-size: 18px; overflow: hidden; }.account-avatar img { width: 100%; height: 100%; object-fit: cover; }.account-summary strong, .account-summary small { display: block; }.account-summary small { color: var(--muted); font-size: 9px; margin-top: 3px; }.profile-editor, .family-name-editor { display: flex; align-items: end; gap: 10px; margin: 20px 0; }.profile-upload { width: 72px; flex: none; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 8px; }.profile-upload > span { width: 54px; height: 54px; margin: 0 auto 5px; border-radius: 50%; background: var(--green); color: white; display: grid; place-items: center; overflow: hidden; font-family: var(--serif); font-size: 17px; }.profile-upload img { width: 100%; height: 100%; object-fit: cover; }.session-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 13px; margin-bottom: 12px; background: var(--sage-2); border-radius: 10px; }.session-card span { font-size: 8px; color: var(--muted); }.session-card strong { display: block; color: var(--ink); font-size: 9px; margin-top: 3px; }.danger-button { color: #9b4938; border-color: #dfb7aa; }.family-title { display: flex; justify-content: space-between; margin: 20px 0 9px; }.family-title h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; margin: 0; }.family-member, .history-row { min-height: 48px; display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; border-bottom: 1px solid #e8e8e1; }.family-member strong, .family-member small, .history-row strong, .history-row small { display: block; }.family-member strong, .history-row strong { font-size: 10px; }.family-member small, .history-row small { color: var(--muted); font-size: 8px; margin-top: 3px; }.role-pill { border-radius: 12px; padding: 4px 8px; font-size: 8px; background: var(--sage); color: var(--green); }.role-select { height: 30px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 8px; padding: 0 7px; }.invite-form { display: grid; grid-template-columns: 1fr 115px auto; gap: 8px; align-items: end; margin-top: 22px; padding: 14px; background: var(--sage-2); border-radius: 10px; }.invite-form .button { height: 43px; }.role-guide { display: grid; gap: 6px; margin-top: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }.role-guide > strong { font-family: var(--serif); font-size: 14px; }.role-guide span { color: var(--muted); font-size: 8px; }.role-guide b { color: var(--ink); }.print-history, .security-status { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }.security-row { display: flex; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }.security-row:last-child { border: 0; }.security-check { width: 24px; height: 24px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; color: var(--green); flex: none; }.security-check svg { width: 13px; }.security-row strong, .security-row small { display: block; }.security-row strong { font-size: 10px; }.security-row small { color: var(--muted); font-size: 8px; line-height: 1.4; margin-top: 3px; }

/* Login */
.login-body { min-height: 100vh; background: linear-gradient(135deg, #f9f6ed 0%, #eef3ed 100%); }
.login-page { min-height: 100vh; padding: 42px 6vw; }
.login-brand { display: grid; grid-template-columns: 48px auto; grid-template-rows: auto auto; width: max-content; color: var(--ink); text-decoration: none; column-gap: 11px; }
.login-brand > img { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.login-brand strong { align-self: end; font-family: var(--serif); font-size: 27px; line-height: 1; }.login-brand small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .8px; }
.login-card { width: min(980px, 100%); min-height: 560px; margin: 55px auto 0; display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.login-copy { padding: 70px 65px; color: white; background: var(--green); display: flex; flex-direction: column; justify-content: center; }.login-copy .eyebrow { color: #efb69d; }.login-copy h1 { font-size: clamp(52px, 6vw, 76px); }.login-copy p { color: #c9d6d0; line-height: 1.7; max-width: 380px; }
.login-actions { padding: 58px 48px; display: flex; flex-direction: column; justify-content: center; }.login-actions h2 { font-family: var(--serif); font-size: 32px; font-weight: 500; margin-bottom: 8px; }.login-actions > p { color: var(--muted); font-size: 11px; line-height: 1.5; }
.login-divider { display: flex; align-items: center; gap: 10px; margin: 25px 0 18px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: 1px; }.login-divider::before, .login-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }.signup-form { display: grid; gap: 12px; }.login-note { display: block; color: var(--muted); font-size: 8px; line-height: 1.5; margin-top: 14px; }.login-message { margin-bottom: 15px; padding: 10px; border-radius: 8px; background: var(--clay-soft); color: #88432e; font-size: 10px; line-height: 1.45; }.login-message a { color: inherit; font-weight: 750; }
.consent-row { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 8px; color: var(--muted); font-size: 9px; line-height: 1.45; font-weight: 550; }.consent-row input { width: 16px; height: 16px; margin: 1px 0; accent-color: var(--green); }.consent-row a, .existing-account-link { color: var(--green); font-weight: 750; }.existing-account-link { display: block; margin-top: 16px; text-align: center; font-size: 10px; }
.welcome-page { width: min(1180px, calc(100% - 30px)); margin: auto; padding: 35px 0 70px; }.welcome-card { margin-top: 34px; display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }.welcome-copy { padding: 60px 50px; background: var(--green); color: white; }.welcome-copy h1 { font-size: clamp(38px,4vw,55px); letter-spacing: -1.7px; }.welcome-copy > p:not(.eyebrow) { color: #d6e1db; font-size: 13px; line-height: 1.7; }.welcome-privacy { margin-top: 30px; padding: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; color: #eef4f0; font-size: 10px; line-height: 2; }.personalization-form { padding: 45px; display: grid; gap: 22px; }.personalization-form fieldset { margin: 0; padding: 0; border: 0; }.personalization-form legend { font: 600 17px var(--heading); margin-bottom: 13px; }.question-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.auth-field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; resize: vertical; outline: none; }.auth-field textarea:focus { border-color: #789487; box-shadow: 0 0 0 3px rgba(62,102,85,.1); }.field-help { margin: -8px 0 10px; color: var(--muted); font-size: 9px; }.priority-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.priority-grid label { cursor: pointer; }.priority-grid input { position: absolute; opacity: 0; }.priority-grid span { min-height: 42px; padding: 8px; display: grid; place-items: center; text-align: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 9px; font-weight: 700; }.priority-grid input:checked + span { border-color: var(--green); background: var(--sage); color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.auth-field { display: grid; gap: 5px; color: var(--ink); font-size: 9px; font-weight: 750; }.auth-field input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 9px; background: white; padding: 0 12px; outline: none; }.auth-field input:focus { border-color: #789487; box-shadow: 0 0 0 3px rgba(62,102,85,.1); }.auth-field small { color: var(--muted); font-size: 8px; font-weight: 500; }.forgot-link { margin-top: 10px; color: var(--green); font-size: 9px; text-align: center; }.full { width: 100%; }.auth-simple { width: min(560px, calc(100% - 30px)); margin: 0 auto; padding: 42px 0; }.auth-simple-card { margin-top: 48px; padding: 42px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }.auth-simple-card h1 { font-family: var(--serif); font-size: 34px; font-weight: 500; }.auth-simple-card > p:not(.eyebrow) { color: var(--muted); font-size: 11px; line-height: 1.6; }.auth-simple-card .forgot-link { display: block; margin-top: 18px; }
.subscribe-page { width: min(820px, calc(100% - 30px)); }.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 18px; }.plan-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: white; }.plan-grid article.featured { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }.plan-grid article>span { color: var(--clay); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }.plan-grid article>strong { display: block; margin: 10px 0 6px; font: 500 38px var(--serif); }.plan-grid article>strong small { font: 600 11px var(--sans); color: var(--muted); }.plan-grid article>p,.billing-note { color: var(--muted); font-size: 9px; line-height: 1.5; }.billing-note { text-align: center; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1100px) {
  .app-header { grid-template-columns: auto 1fr auto; }
  .top-nav { justify-content: center; gap: 13px; }
  .nav-item { font-size: 0; gap: 3px; }
  .nav-item svg { width: 20px; }
  .week-grid { grid-template-columns: repeat(4, 1fr); }
  .day-card { border-bottom: 1px solid var(--line); }
  .day-card:nth-child(4) { border-right: 0; }
  .item-categories { grid-template-columns: repeat(2, 1fr); }
  body.content-large main { zoom: 1.25; }
}

@media (max-width: 760px) {
  body { width: 100%; max-width: 100vw; overflow-x: hidden; }
  .app-header { width: 100%; max-width: 100vw; height: auto; min-height: 158px; padding: 7px 15px 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: 48px 43px 57px; grid-template-areas: "brand" "actions" "nav"; align-items: center; overflow: hidden; }
  .brand { grid-area: brand; min-width: 0; justify-self: center; }.brand span { min-width: 0; }.brand-mark { width: 39px; height: 39px; }.brand strong { font-size: 16px; }.brand small { display: block; font-size: 10px; white-space: nowrap; }
  .header-actions { grid-area: actions; justify-self: center; gap: 7px; }.save-state, .header-actions .button { display: none; }.scale-control { display: flex; height: 31px; }.scale-control button { padding: 0 6px; font-size: 7px; }.profile-button { width: 35px; height: 35px; }
  .top-nav { grid-area: nav; position: static; width: 100%; min-width: 0; height: 57px; gap: 0; overflow: hidden; background: transparent; border-top: 1px solid var(--line); justify-content: space-around; box-shadow: none; }
  .nav-item { width: 33.333%; min-width: 0; padding: 0 2px; flex-direction: column; justify-content: center; font-size: 8px; gap: 3px; flex: 1 1 0; white-space: normal; text-align: center; }
  .nav-item::after { bottom: auto; top: 0; left: 25%; right: 25%; }
  .count-badge { position: absolute; top: 5px; right: calc(50% - 22px); }
  body.content-large main { zoom: 1; }
  .login-page { padding: 24px 15px; }.login-card { grid-template-columns: 1fr; margin-top: 30px; }.login-copy { padding: 42px 28px; min-height: 300px; }.login-actions { padding: 38px 25px; }.welcome-card { grid-template-columns: 1fr; }.welcome-copy, .personalization-form { padding: 38px 25px; }.question-grid { grid-template-columns: 1fr 1fr; }.priority-grid { grid-template-columns: 1fr 1fr; }.plan-grid { grid-template-columns: 1fr; }
  .view { padding: 33px 17px 55px; }
  .page-heading, .worksheet-heading { display: block; }
  h1 { font-size: 38px; letter-spacing: -1.3px; }
  .page-heading p { font-size: 12px; }
  .week-controls { margin-top: 24px; justify-content: space-between; }
  .summary-strip { grid-template-columns: repeat(3, 1fr); padding: 12px 8px; }
  .summary-strip > div { display: block; text-align: center; padding: 0; }
  .summary-icon { margin: 0 auto 7px; }
  .summary-strip small { font-size: 8px; }
  .summary-strip .summary-actions { min-width: 0; grid-column: 1 / -1; margin: 12px 0 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }.summary-actions .button { min-width: 0; padding: 0 8px; font-size: 10px; }
  .summary-strip .summary-week-selector { grid-column: 1 / -1; display: flex; flex-direction: column; border-right: 0; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 9px; }.summary-week-selector .week-label { width: min(62vw, 230px); }
  .macro-strip { grid-template-columns: repeat(4, 1fr); }.macro-heading, .macro-strip > small { grid-column: 1 / -1; }.macro-strip > small { display: none; }.macro-strip > div:not(.macro-heading) { padding-left: 8px; }
  .week-grid { display: grid; grid-template-columns: 1fr; border: 0; gap: 9px; background: transparent; box-shadow: none; }
  .day-card { min-height: 110px; border: 1px solid var(--line) !important; border-radius: 12px; display: grid; grid-template-columns: 66px 1fr; padding: 13px; }
  .day-head { border-bottom: 0; border-right: 1px solid var(--line); padding: 3px 12px 3px 0; display: block; }
  .today-pill { display: inline-block; margin-top: 6px; }
  .meal-content { padding: 3px 0 3px 15px; }
  .ingredient-peek { display: none; }
  .empty-meal { flex-direction: row; }
  .empty-meal span { width: 29px; height: 29px; }
  .meal-actions { position: absolute; right: 9px; bottom: 8px; gap: 2px; }
  .planner-bottom { grid-template-columns: 1fr; }
  .worksheet-preview { grid-template-columns: 1fr 40px; }
  .preview-lines { display: none; }
  .print-actions { margin-top: 20px; }
  .print-meta { grid-template-columns: 1fr auto; gap: 12px; }
  .print-meta > div:last-child { display: none; }
  .worksheet-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .search-box { width: 100%; }
  .worksheet-note { margin-left: 0; }
  .worksheet-range { align-items: stretch; flex-direction: column; }.worksheet-range small { margin-left: 0; max-width: none; }.worksheet-week-selector { align-self: center; }.worksheet-row { min-width: 860px; grid-template-columns: 30px minmax(100px, 1.05fr) .44fr .68fr .54fr .68fr .61fr .82fr; }
  .worksheet-row > * { padding: 0 8px; }
  .item-cell small { display: none; }
  .item-categories { grid-template-columns: 1fr; }
  .compact .button { margin-top: 20px; }
  .modal-body, .modal-header, .modal-footer { padding-left: 18px; padding-right: 18px; }
  .alternate-actions { grid-template-columns: 1fr; }
  .ingredient-head, .ingredient-edit-row { grid-template-columns: 60px 70px 1fr 25px; gap: 5px; }
  .settings-layout { grid-template-columns: 1fr; }.settings-tabs { display: flex; border-right: 0; border-bottom: 1px solid var(--line); }.settings-tabs button { text-align: center; }.invite-form { grid-template-columns: 1fr; }.randomize-day { grid-template-columns: 22px 1fr 125px; }
  .app-legal-footer { flex-direction: column; justify-content: center; text-align: center; }
  .place-search-field { grid-template-columns: 1fr; }
}

@media print {
  body.content-large main { zoom: 1; }
  @page grocery-sheet { size: letter portrait; margin: .38in; }
  @page weekly-calendar { size: letter landscape; margin: .35in; }
  body { background: white; color: #111; }
  .no-print, .app-header, #planner-view, #items-view, .toast-region { display: none !important; }
  main { min-height: 0; transform: none !important; }
  .view, .view.active, .print-ready .view.active { animation: none !important; transform: none !important; transition: none !important; }
  #worksheet-view { display: block !important; max-width: none; margin: 0; padding: 0; page: grocery-sheet; }
  .worksheet-heading { display: block; margin: 0 0 12px; }
  .worksheet-heading .eyebrow { color: #555; font-size: 7px; }
  .worksheet-heading h1 { font-size: 31px; letter-spacing: -1px; margin: 4px 0 0; }
  .print-meta { print-color-adjust: exact; -webkit-print-color-adjust: exact; background: #294b3d !important; padding: 10px 14px; border-radius: 7px 7px 0 0; }
  .print-meta b { font-size: 6px; }
  .print-meta span { font-size: 11px; }
  .worksheet-table { border-color: #8d8d8d; }
  .category-title { min-height: 19px; padding: 0 7px; background: #e8eee9 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .category-title strong { font-size: 11px; }
  .category-title small { font-size: 7px; }
  .worksheet-row { min-width: 0; min-height: 21px; grid-template-columns: 21px 1.26fr .48fr .8fr .6fr .8fr .72fr 1fr; border-color: #bcbcbc; }
  .worksheet-row > * { border-color: #bcbcbc; padding: 0 6px; }
  .worksheet-row.head { min-height: 18px; font-size: 5.5px; background: #f2f2ef !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .item-cell strong { font-size: 8px; }
  .unit-cell, .brand-cell input { font-size: 8px; }
  .item-cell small { font-size: 6.5px; }
  .needed-cell { font-size: 9px; }
  .write-cell input { min-height: 20px; padding: 0 5px; font-size: 7.5px; }.check-cell span { width: 12px; height: 12px; border-radius: 2px; }.check-cell input:checked + span::after { font-size: 8px; }
  .hide-row { display: none; }.print-recipe-links { display: block; border: 1px solid #aaa; border-top: 0; padding: 7px 10px; font-size: 6.5px; line-height: 1.4; }.print-recipe-links strong { font-size: 7px; margin-right: 5px; }
  .print-footer { margin-top: 9px; display: flex; justify-content: space-between; color: #777; font-size: 6px; letter-spacing: 1px; }
  .worksheet-category { break-inside: avoid; }
  body[data-print-mode="calendar"] main { display: none !important; }
  body[data-print-mode="calendar"] #worksheet-view { display: none !important; }
  body[data-print-mode="calendar"] #weekly-print-view { display: block !important; page: weekly-calendar; }
  .weekly-print-view { color: #333; font-family: var(--sans); }
  .weekly-print-header { height: .65in; padding: 0 .18in; display: flex; align-items: center; justify-content: space-between; border-radius: 10px 10px 0 0; background: #2f4b40 !important; color: white; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .weekly-print-header>div { display: flex; align-items: center; gap: .12in; }
  .weekly-print-header>div:last-child { align-items: end; flex-direction: column; gap: 2px; }
  .weekly-print-mark { width: .38in; height: .38in; border-radius: 50%; object-fit: cover; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .weekly-print-header strong,.weekly-print-header small { display: block; }.weekly-print-header strong { font: 600 15px var(--heading); }.weekly-print-header small { color: #f7e6d2; font: 13px var(--script); }.weekly-print-header b { color: #c9d8c3; font-size: 6px; letter-spacing: 1.4px; }.weekly-print-header>div:last-child span { font: 600 11px var(--heading); }
  .weekly-print-grid { height: 6.55in; display: grid; grid-template-columns: repeat(4,1fr); grid-template-rows: repeat(2,1fr); border-left: 1px solid #b9c1bb; }
  .weekly-print-day { min-width: 0; border-right: 1px solid #b9c1bb; border-bottom: 1px solid #b9c1bb; background: #fff; break-inside: avoid; }
  .weekly-print-day:nth-child(n+5) { grid-column: span 1; }
  .weekly-print-day:last-child { grid-column: 3 / 5; }
  .weekly-print-day>header { height: .45in; padding: 0 .12in; display: flex; align-items: center; justify-content: space-between; background: #e9ecef !important; color: #2f4b40; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .weekly-print-day>header span { font: 600 9px var(--heading); text-transform: uppercase; letter-spacing: .7px; }.weekly-print-day>header strong { font-size: 8px; }
  .weekly-print-meal { padding: .13in; }.weekly-print-meal h3 { margin: 0 0 .05in; font: 600 14px/1.15 var(--heading); color: #2f4b40; }.weekly-print-meal>p { margin: 0 0 .1in; color: #727a75; font-size: 7px; text-transform: capitalize; }
  .weekly-print-macros { display: grid; grid-template-columns: repeat(2,1fr); gap: .04in; padding: .08in; border-radius: 6px; background: #f7e6d2 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }.weekly-print-macros span { font-size: 6.5px; color: #626864; }.weekly-print-macros b { color: #333; font-size: 8px; }
  .weekly-print-sides,.weekly-print-notes { display: grid; gap: .045in; margin-top: .12in; }.weekly-print-sides b,.weekly-print-notes b { color: #8ba37f; font-size: 6px; letter-spacing: 1px; }.weekly-print-sides span { font-size: 7px; }.weekly-print-notes span,.weekly-print-open i { display: block; height: .22in; border-bottom: 1px solid #d2d6d3; }
  .weekly-print-open { height: calc(100% - .45in); padding: .18in; color: #929994; font: 13px var(--script); }.weekly-print-open i { margin-top: .12in; }
  .weekly-print-view>footer { height: .33in; padding: 0 .15in; display: flex; align-items: center; justify-content: space-between; color: #6d756f; font-size: 6px; letter-spacing: .9px; }
}
