:root {
  color-scheme: light;
  --paper: #f5f2e9;
  --paper-deep: #ebe6d8;
  --ink: #242a22;
  --muted: #73766c;
  --line: #d8d5ca;
  --green: #355641;
  --green-dark: #253e2e;
  --sage: #dfe6d8;
  --clay: #b35e43;
  --white: #fffdf7;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #9a5c3c; outline-offset: 3px; }
.app-shell { min-height: 100vh; padding-bottom: 90px; }
.topbar { height: 74px; display:flex; align-items:center; justify-content:space-between; padding: 0 clamp(20px, 5vw, 76px); border-bottom: 1px solid var(--line); }
.wordmark { color:var(--green-dark); text-decoration:none; font: 700 29px/1 var(--serif); letter-spacing:-1.6px; }
.wordmark span { color:var(--clay); }
.topbar-note { margin:0; color:var(--muted); font: italic 15px var(--serif); }
.quiet-button { background:transparent; border:0; color:var(--green); cursor:pointer; padding:10px 0; font-size:14px; font-weight:650; }
.quiet-button span { font-size:20px; vertical-align:-1px; margin-left:5px; }
main { max-width: 1230px; margin:0 auto; padding: 52px clamp(20px, 5vw, 76px) 48px; }
.view { display:none; animation: appear .18s ease-out; }
.view.active { display:block; }
@keyframes appear { from { opacity:.65; transform:translateY(3px) } to {opacity:1;transform:none} }
.page-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; padding-bottom:31px; border-bottom:1px solid var(--line); }
.eyebrow { color:var(--green); font-size:10px; font-weight:750; letter-spacing:.13em; margin:0 0 12px; }
h1,h2,h3,p { margin-top:0; }
h1 { margin:0; font: 400 clamp(38px, 5vw, 58px)/1.04 var(--serif); letter-spacing:-1.4px; }
.lede { color:var(--muted); margin:13px 0 0; font-size:15px; line-height:1.55; }
.button { border:0; border-radius:3px; padding:13px 17px; font-size:13px; font-weight:650; cursor:pointer; transition:background-color .15s ease; }
.button-dark { color:#fffdf8; background:var(--green-dark); }
.button-dark:hover { background:#1b3325; }
.button-quiet { color:var(--green-dark); background:var(--paper-deep); }
.button-quiet:hover { background:#dfdacb; }
.week-tools { display:flex; align-items:center; justify-content:space-between; margin:21px 0 23px; }
.week-switch { display:flex; align-items:center; gap:17px; font-size:13px; font-weight:650; }
.icon-button { height:34px; min-width:34px; border:1px solid var(--line); background:transparent; border-radius:50%; cursor:pointer; display:inline-grid; place-items:center; font-size:17px; }
.icon-button:hover { background:var(--paper-deep); }
.people-control { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:12px; }
select { color:var(--ink); background:transparent; border:1px solid var(--line); border-radius:3px; padding:8px 26px 8px 10px; }
.week-layout { display:grid; grid-template-columns:minmax(0, 1fr) 315px; gap:46px; align-items:start; }
.days-list { border-top:1px solid var(--line); }
.day-row { min-height:82px; display:grid; grid-template-columns:104px minmax(0, 1fr) 158px; grid-template-areas:"day meal action"; align-items:center; gap:16px; border-bottom:1px solid var(--line); }
.day-name { grid-area:day; font: 20px var(--serif); }
.day-date { display:block; color:var(--muted); font:12px var(--sans); margin-top:4px; }
.meal-slot { grid-area:meal; min-width:0; }
.recipe-open { border:0; background:transparent; color:inherit; text-align:left; padding:0; cursor:pointer; }
.recipe-open:hover .meal-name { color:var(--clay); }
.meal-name { font-size:14px; font-weight:620; line-height:1.35; }
.meal-meta { display:block; color:var(--muted); font-size:11px; margin-top:5px; }
.day-controls,.add-day { grid-area:action; }
.day-controls { display:flex; align-items:center; justify-content:flex-end; gap:8px; min-width:0; }
.serving-select { width:72px; padding:8px 7px; border-color:transparent; color:var(--muted); font-size:12px; }
.serving-select:hover,.serving-select:focus { border-color:var(--line); }
.row-actions { display:flex; gap:6px; justify-content:flex-end; }
.row-action { display:grid; place-items:center; flex:none; width:38px; height:38px; padding:0; border:1px solid var(--line); border-radius:50%; background:var(--white); color:var(--green); cursor:pointer; transition:background-color .15s ease,border-color .15s ease,color .15s ease; }
.row-action svg { display:block; width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.row-action:hover { border-color:var(--green); background:var(--sage); }
.remove-day { color:var(--clay); }
.remove-day:hover { border-color:var(--clay); background:#f3e5dd; }
.day-empty { color:#898a80; font-size:13px; }
.add-day { display:flex; align-items:center; justify-content:space-between; gap:8px; border:0; border-bottom:1px solid var(--line); background:transparent; width:100%; min-height:48px; padding:0 2px; text-align:left; color:var(--green); font-size:12px; font-weight:650; cursor:pointer; }
.add-day svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.add-day:hover { color:var(--clay); }
.shopping-panel { background:var(--paper-deep); padding:22px 21px 17px; position:sticky; top:20px; }
.shopping-head { display:flex; justify-content:space-between; align-items:end; gap:10px; padding-bottom:16px; border-bottom:1px solid #d5d0c0; }
.shopping-head .eyebrow { font-size:9px; margin-bottom:7px; color:#66715e; }
.shopping-head h2 { font:27px var(--serif); margin:0; letter-spacing:-.4px; }
.list-count { color:var(--muted); font-size:10px; white-space:nowrap; padding-bottom:4px; }
.shopping-empty { padding:18px 0 13px; color:var(--muted); font-size:12px; line-height:1.5; }
.shopping-empty p { margin:0 0 8px; }
.text-button { color:var(--green); border:0; background:none; padding:0; font-size:12px; font-weight:700; cursor:pointer; }
.shopping-groups { padding:8px 0; }
.shopping-group { margin:9px 0 15px; }
.shopping-group h3 { margin:0 0 7px; color:#77766b; font-size:9px; letter-spacing:.1em; text-transform:uppercase; }
.shopping-item { display:flex; align-items:flex-start; gap:9px; padding:6px 0; font-size:12px; line-height:1.35; }
.shopping-item input { accent-color:var(--green); width:15px; height:15px; margin:0; flex:none; }
.shopping-item.checked span { color:#929187; text-decoration:line-through; }
.add-item-form { display:flex; border-bottom:1px solid #bdb9ac; margin-top:7px; }
.add-item-form input { width:100%; min-width:0; border:0; background:transparent; padding:11px 1px; font-size:12px; outline:none; }
.add-item-form button { border:0; background:transparent; color:var(--green); font-size:21px; cursor:pointer; }
.clear-list { margin-top:14px; padding:3px 0; border:0; background:transparent; color:var(--muted); font-size:10px; cursor:pointer; }
.clear-list:hover { color:var(--clay); }
.bottom-nav { position:fixed; z-index:5; bottom:0; left:0; right:0; min-height:66px; padding:8px max(16px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background:rgba(245,242,233,.97); border-top:1px solid var(--line); display:flex; justify-content:center; gap:min(14vw, 125px); backdrop-filter:blur(8px); }
.nav-link { border:0; background:transparent; color:#77796f; min-width:76px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font-size:10px; cursor:pointer; }
.nav-link.active { color:var(--green-dark); font-weight:700; }
.nav-glyph { font: 19px/1 var(--serif); }
.recipe-filters { display:flex; gap:9px; padding:19px 0 25px; }
.filter-chip { border:1px solid var(--line); background:transparent; border-radius:100px; padding:8px 14px; color:var(--muted); font-size:11px; cursor:pointer; }
.filter-chip.selected { background:var(--green-dark); border-color:var(--green-dark); color:#fffdf8; }
.recipe-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 42px; border-top:1px solid var(--line); }
.recipe-entry { display:flex; align-items:center; justify-content:space-between; gap:15px; width:100%; min-width:0; min-height:96px; padding:16px 2px; border:0; border-bottom:1px solid var(--line); background:transparent; color:inherit; text-align:left; cursor:pointer; }
.recipe-entry:hover .recipe-name { color:var(--clay); }
.recipe-copy { display:block; min-width:0; }
.recipe-type { display:block; color:var(--green); font-size:9px; line-height:1.3; font-weight:700; letter-spacing:.1em; text-transform:uppercase; margin-bottom:5px; }
.recipe-name { display:block; font:22px/1.18 var(--serif); margin:0; overflow-wrap:anywhere; transition:color .12s; }
.recipe-detail-line { display:block; color:var(--muted); font-size:11px; line-height:1.4; margin-top:5px; }
.recipe-arrow { display:grid; place-items:center; flex:none; width:36px; height:36px; border:1px solid var(--line); border-radius:50%; background:var(--white); color:var(--green); }
.recipe-arrow svg,.bake-choice-arrow svg { display:block; width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.baking-start { margin-top:27px; padding:28px 30px 26px; background:#e9e9dc; border-left:3px solid var(--green); }
.baking-intro { display:flex; align-items:center; gap:17px; padding-bottom:22px; border-bottom:1px solid #d4d7c8; }
.baking-mark { width:43px; height:43px; display:grid; place-items:center; border-radius:50%; background:var(--green); color:#fff; font:24px var(--serif); }
.baking-intro h2 { margin:0 0 5px; font:25px var(--serif); }
.baking-intro p { margin:0; color:var(--muted); font-size:12px; line-height:1.5; }
.bake-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 36px; }
.bake-choice { display:flex; justify-content:space-between; align-items:center; gap:15px; width:100%; min-width:0; min-height:78px; padding:16px 2px; text-align:left; color:inherit; background:transparent; border:0; border-bottom:1px solid #d4d7c8; cursor:pointer; }
.bake-choice-copy { display:block; min-width:0; }
.bake-choice strong { display:block; font:20px/1.2 var(--serif); overflow-wrap:anywhere; }
.bake-choice small { display:block; color:var(--muted); margin-top:5px; font-size:11px; }
.bake-choice-arrow { display:grid; place-items:center; flex:none; width:38px; height:38px; border:1px solid #d4d7c8; border-radius:50%; background:var(--white); color:var(--green); }
.bake-choice:hover .bake-choice-arrow { border-color:var(--green); background:var(--sage); }
.bake-session { margin-top:26px; }
.session-head { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; padding-bottom:22px; border-bottom:1px solid var(--line); }
.session-head h2 { margin:0; font:34px var(--serif); }
.session-head p { color:var(--muted); margin:8px 0 0; font-size:12px; }
.session-actions { display:flex; gap:9px; flex-wrap:wrap; }
.starter-note { margin:18px 0; padding:15px 18px; background:#e9e9dc; color:#4f604c; font-size:12px; line-height:1.55; }
.starter-note strong { color:var(--green-dark); }
.starter-fields { display:flex; flex-wrap:wrap; gap:10px 18px; margin-top:13px; }
.starter-fields label { display:flex; align-items:center; gap:6px; color:#58634f; font-size:10px; }
.starter-fields input { width:58px; padding:6px; border:1px solid #c8caba; border-radius:2px; background:#fffdf7; color:var(--ink); font-size:11px; }
.starter-state { margin:11px 0 0 !important; color:#576450 !important; }
.timer-status { color:var(--clay); font-variant-numeric:tabular-nums; font-size:11px; font-weight:700; margin-top:7px; }
.process-day { margin-top:28px; }
.process-day h3 { font:22px var(--serif); margin:0 0 14px; }
.process-list { border-top:1px solid var(--line); }
.process-step { display:grid; grid-template-columns:32px minmax(0,1fr) 122px; gap:14px; align-items:start; padding:16px 0; border-bottom:1px solid var(--line); }
.step-number { width:25px; height:25px; display:grid; place-items:center; border:1px solid #b7b9aa; border-radius:50%; color:var(--green); font-size:10px; }
.process-step.done .step-number { background:var(--green); border-color:var(--green); color:white; }
.step-copy strong { font-size:13px; font-weight:700; }
.step-copy p { margin:5px 0 0; color:var(--muted); font-size:11px; line-height:1.5; }
.step-time { color:var(--muted); font-size:10px; text-align:right; line-height:1.45; }
.step-complete { min-height:42px; border:1px solid var(--line); background:transparent; color:var(--green-dark); border-radius:3px; padding:9px 11px; font-size:11px; cursor:pointer; margin:10px 8px 0 0; }
.step-complete:hover { background:var(--sage); }
.process-step.done .step-copy strong { color:#77796f; text-decoration:line-through; }
.session-back { margin-top:20px; }
.empty-recipes { grid-column:1/-1; padding:34px 0; color:var(--muted); font-size:13px; }
.empty-recipes p { margin:0 0 12px; }
.dialog { padding:0; border:0; background:transparent; max-width:calc(100% - 28px); width:520px; max-height:min(90vh,850px); overflow:visible; }
.dialog::backdrop { background:rgba(26,31,25,.5); backdrop-filter:blur(2px); }
.dialog-card { background:var(--paper); padding:27px clamp(20px,5vw,34px) 24px; border:1px solid #c9c6ba; max-height:90vh; overflow:auto; box-shadow:0 18px 60px rgba(34,39,31,.18); }
.dialog-top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:20px; }
.dialog-top h2 { font:32px var(--serif); margin:0; }
.field-label { display:block; color:var(--green-dark); font-size:11px; font-weight:700; margin:15px 0; }
.field-label input,.field-label textarea,.field-label select { display:block; margin-top:7px; width:100%; border:1px solid var(--line); background:#fffdf8; border-radius:2px; padding:11px 12px; color:var(--ink); font-size:13px; font-weight:400; resize:vertical; }
.field-label select { width:auto; min-width:130px; }
.field-hint { display:block; color:var(--muted); font-weight:400; margin-top:5px; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.dialog-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:19px; }
.form-error { color:#9c452f; font-size:12px; min-height:16px; margin:4px 0; }
.import-panel { margin:0 0 23px; padding:17px 18px; background:#e9e9dc; border-left:3px solid var(--green); }
.import-panel h3,.ai-menu-builder h3 { margin:0; font:22px var(--serif); }
.import-panel > div > p:last-child { color:#5f6259; font-size:12px; line-height:1.45; margin:8px 0 12px; }
.import-panel .field-label { margin:12px 0; }
.import-panel input[type="file"] { padding:9px; font-size:11px; }
.import-status,.ai-status { color:var(--green-dark); font-size:11px; line-height:1.45; min-height:15px; margin:10px 0 0; }
.ai-menu-builder { margin-top:22px; padding-top:20px; border-top:1px solid var(--line); }
.ai-menu-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; }
.ai-menu-heading .eyebrow { margin-bottom:7px; }
.ai-cost-note { color:#5f6259; font-size:10px; white-space:nowrap; }
.ai-menu-builder .field-label { margin:13px 0; }
.privacy-note { color:#5f6259; font-size:10px; line-height:1.45; margin:9px 0 12px; }
.ai-preview { margin-top:15px; border-top:1px solid var(--line); }
.ai-preview-item { padding:13px 0; border-bottom:1px solid var(--line); }
.ai-preview-item h4 { margin:0; font:19px var(--serif); }
.ai-preview-item p { color:#5f6259; font-size:11px; line-height:1.5; margin:5px 0 0; }
.ai-preview-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:14px; }
.access-copy { color:#5f6259; font-size:13px; line-height:1.5; }
.picker-card { padding-bottom:17px; }
.picker-options { max-height:55vh; overflow:auto; border-top:1px solid var(--line); }
.composer-options { margin-top:17px; }
.picker-option { display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:14px 0; border:0; border-bottom:1px solid var(--line); background:transparent; cursor:pointer; }
.picker-option:hover { color:var(--clay); }
.picker-option input { accent-color:var(--green); width:17px; height:17px; }
.picker-option strong { display:block; font:19px var(--serif); }
.picker-option small { display:block; margin-top:4px; color:var(--muted); font-size:10px; }
.full-button { width:100%; margin-top:16px; }
.detail-card h2 { font:34px var(--serif); margin:0 0 7px; }
.detail-card .detail-meta { color:var(--muted); font-size:12px; margin:0 0 20px; }
.detail-card h3 { font:20px var(--serif); margin:23px 0 9px; }
.detail-card li { padding:5px 0; color:#4a4e45; font-size:13px; line-height:1.45; }
.detail-close { float:right; }
.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; }

@media (max-width: 760px) {
  .topbar { height:64px; padding:0 19px; }
  .topbar-note { display:none; }
  main { padding:34px 19px 35px; }
  .page-heading { align-items:flex-start; flex-direction:column; gap:20px; padding-bottom:23px; }
  h1 { font-size:42px; }
  .page-heading > .button { align-self:stretch; }
  .week-tools { margin:16px 0 18px; }
  .week-layout { display:flex; flex-direction:column; gap:28px; }
  .days-list,.shopping-panel { width:100%; }
  .shopping-panel { position:static; }
  .day-row { grid-template-columns:minmax(0,1fr) 116px; grid-template-areas:"day action" "meal action"; gap:5px 12px; min-height:98px; padding:13px 0; align-items:center; }
  .day-name { font-size:17px; }
  .day-date { font-size:10px; }
  .meal-name { font-size:13px; line-height:1.35; }
  .meal-meta { font-size:10px; }
  .day-controls { height:100%; flex-direction:column; align-items:flex-end; justify-content:space-between; gap:8px; }
  .serving-select { width:76px; min-height:36px; padding:7px 5px; font-size:11px; }
  .row-actions { gap:8px; }
  .row-action { width:42px; height:42px; }
  .row-action svg { width:17px; height:17px; }
  .add-day { width:auto; min-width:108px; min-height:42px; justify-self:end; align-self:center; justify-content:center; padding:0 10px; border:1px solid var(--line); border-radius:3px; background:var(--white); }
  .add-day svg { width:14px; height:14px; }
  .recipe-list { grid-template-columns:1fr; }
  .recipe-entry { min-height:104px; padding:16px 2px; gap:12px; }
  .recipe-name { font-size:20px; line-height:1.18; }
  .recipe-detail-line { font-size:11px; }
  .recipe-arrow { width:38px; height:38px; }
  .baking-start { margin-top:19px; padding:21px 18px; }
  .baking-intro { align-items:flex-start; gap:13px; }
  .baking-mark { flex:none; width:38px; height:38px; font-size:21px; }
  .baking-intro h2 { font-size:22px; line-height:1.2; }
  .baking-intro p { font-size:12px; }
  .bake-choices { grid-template-columns:1fr; }
  .bake-choice { min-height:78px; padding:15px 2px; gap:12px; }
  .bake-choice strong { font-size:19px; }
  .bake-choice-arrow { width:42px; height:42px; }
  .session-head { align-items:flex-start; flex-direction:column; }
  .session-head h2 { font-size:29px; line-height:1.15; overflow-wrap:anywhere; }
  .session-actions { width:100%; }
  .session-actions .button { flex:1; }
  .starter-note { padding:14px; font-size:12px; }
  .starter-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:8px 12px; }
  .starter-fields label { justify-content:space-between; min-height:42px; gap:8px; font-size:11px; }
  .starter-fields input { width:64px; min-height:38px; font-size:13px; }
  .process-step { grid-template-columns:28px minmax(0,1fr); gap:10px; }
  .step-time { grid-column:2; text-align:left; }
  .step-copy { min-width:0; }
  .step-copy strong { font-size:13px; line-height:1.4; }
  .step-complete { min-height:44px; max-width:100%; margin-top:8px; padding:10px 12px; font-size:12px; white-space:normal; }
  .bottom-nav { justify-content:space-around; gap:0; }
  .nav-link { min-width:72px; }
  .app-shell { padding-bottom:calc(76px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; } }
