:root{--forest:#143f32;--ink:#15362c;--paper:#f7f5eb;--cream:#fffdf6;--line:#dedfd2;--gold:#f1c963;--muted:#53665b}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.5}a{color:inherit}button,input,select{font:inherit;color:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #976400;outline-offset:3px}button{cursor:pointer}button:disabled{opacity:.65;cursor:wait}
.shell{width:min(1150px,calc(100% - 40px));margin:auto}.top{background:var(--cream);border-bottom:1px solid var(--line)}.top-inner{display:flex;min-height:68px;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:9px;font:700 1.55rem Georgia,serif;text-decoration:none;white-space:nowrap}.brand-icon{display:grid;place-items:center;width:31px;height:31px;background:var(--forest);color:var(--gold);border-radius:50%;font:18px Arial}.top-links{display:flex;align-items:center;gap:18px;font-size:.88rem}.top-links a{text-decoration:none;font-weight:700}
.hero{position:relative;overflow:hidden;display:grid;grid-template-columns:1fr minmax(150px,310px);align-items:center;margin:24px 0;background:var(--forest);color:var(--cream);padding:clamp(24px,5vw,64px);border-radius:24px;gap:20px}.hero h1{margin:.12em 0 .24em;font:700 clamp(2.6rem,7vw,5.9rem)/.96 Georgia,serif;letter-spacing:-.055em}.hero em{color:var(--gold);font-weight:400}.hero p{max-width:430px;margin:0;color:#e6ebda}.hero .source{color:var(--gold);font-size:.875rem;font-weight:700;letter-spacing:.11em}.tile-art{display:grid;grid-template-columns:repeat(4,1fr);transform:rotate(-10deg);opacity:.72;aspect-ratio:1;gap:6px}.tile-art span{background:#d6ad50;border-radius:100% 100% 12% 100%;aspect-ratio:1}.tile-art span:nth-child(3n+1){background:#77a583;transform:rotate(180deg)}.tile-art span:nth-child(4n){background:#315e4c;transform:rotate(90deg)}
.workspace{display:grid;grid-template-columns:minmax(270px,340px) minmax(0,1fr);gap:24px;align-items:start}.panel{background:var(--cream);border:1px solid var(--line);border-radius:18px;padding:22px}.preferences{position:sticky;top:12px}.panel h2,.section-title h2,.dialog-head h2{font:700 1.75rem/1.12 Georgia,serif;margin:0 0 12px}.field{display:block;font-size:.9rem;font-weight:700;margin:0 0 13px}.field input,.field select{display:block;width:100%;min-height:43px;margin-top:4px;padding:8px 10px;border:1px solid #aeb9aa;background:#fffdf8;border-radius:8px;font-size:1rem;font-weight:400}.money-input{position:relative}.money-input input{padding-right:44px}.money-input span{position:absolute;right:12px;top:11px;color:var(--muted)}.input-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
fieldset{border:0;padding:0;margin:0 0 16px;min-width:0}legend{padding:0;font-size:.9rem;font-weight:700;margin-bottom:6px}.chips{display:flex;flex-wrap:wrap;gap:6px}.chips label{display:flex;align-items:center;gap:4px;background:#edf1e6;padding:5px 7px;border-radius:7px;font-size:.88rem}.chips input{accent-color:var(--forest)}.primary{border:0;background:var(--forest);color:white;font-weight:700;border-radius:9px;padding:12px 16px;width:100%}.small{display:inline-block;border:1px solid #aeb9aa;background:var(--cream);border-radius:8px;color:var(--ink);font-size:.875rem;font-weight:700;padding:7px 10px;text-decoration:none;white-space:nowrap}.small:hover{background:#eaf1e7}
.results,.shopping{scroll-margin-top:14px}.section-title,.meal-head,.dialog-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.section-title h2{margin:0}.section-title p,.shopping p{color:var(--muted);margin:.28em 0 1em}.summary{display:flex;justify-content:space-between;gap:14px;background:#e4ecdf;padding:16px 19px;border-radius:14px}.summary div{display:grid}.summary span{font-size:.9rem;color:var(--muted)}.summary strong{font:700 clamp(1.35rem,4vw,2.2rem) Georgia,serif}.budget{text-align:right}.within{font-weight:700;font-size:.9rem;margin:10px 0 15px}.notice{background:#ffebc5;border:1px solid #e0bc76;border-radius:10px;padding:12px;margin:12px 0}.day{margin:16px 0}.day h3{font:700 1.28rem Georgia,serif;margin:0 0 6px}.meal{background:var(--cream);border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:7px 0}.meal h4{margin:0;font-size:1.07rem}.meal-slot{color:var(--muted);font-size:.875rem;font-weight:700;margin:0}.meal details{margin-top:7px}.meal summary{cursor:pointer;font-size:.875rem;text-decoration:underline;text-underline-offset:3px}.meal ol{padding-left:1.3rem}.meal ol li{margin-bottom:7px}.ingredients,.shopping-lines,.swap-list{list-style:none;margin:10px 0;padding:0}.ingredients li,.shopping-lines li,.totals div,.swap-list li{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:7px 0}.ingredients strong,.shopping-lines strong,.totals dd{flex-shrink:0}.shopping-lines span,.swap-list span{display:block;color:var(--muted);font-size:.875rem}.shopping-lines a{text-underline-offset:2px;font-weight:700}.totals dd{margin:0}.totals div:last-child{border-bottom:0;font-weight:700}.footer{padding:30px 0;color:var(--muted);font-size:.875rem}
dialog{background:var(--cream);color:var(--ink);width:min(540px,calc(100% - 28px));max-height:78vh;border:1px solid var(--line);border-radius:16px;padding:20px}dialog::backdrop{background:#102b23a8}.dialog-head h2{margin:0}.swap-list li{align-items:center}
@media(max-width:820px){.workspace{grid-template-columns:1fr}.preferences{position:static}.hero{grid-template-columns:1fr minmax(80px,27%);margin-top:14px}.shell{width:calc(100% - 26px)}}@media(max-width:470px){.hero{padding:23px 16px;grid-template-columns:minmax(0,1fr) 50px;gap:6px}.tile-art{width:100px;margin-left:-7px}.top-links{gap:8px}.top-links a:first-child{display:none}.brand{font-size:1.28rem}.panel{padding:15px}.meal{padding:10px}.section-title h2{font-size:1.5rem}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* One task per screen. */
body{background:#f8f7f1}.top{background:#fffef9}.top-inner{min-height:60px}.workspace{display:block;width:min(100%,660px);margin:clamp(24px,7vw,80px) auto 56px}.preferences{position:static;padding:clamp(22px,6vw,48px);border-radius:22px}.preferences h1{font:700 clamp(2.5rem,7vw,4.2rem)/.98 Georgia,serif;letter-spacing:-.06em;margin:8px 0 12px}.source{font-weight:700;font-size:.875rem;letter-spacing:.08em;color:var(--muted);margin:0}.intro{margin:0 0 28px;color:var(--muted)}.preferences-more{margin:12px 0 20px}.preferences-more summary{padding:10px 0;cursor:pointer;font-weight:700}.preferences-more[open] summary{margin-bottom:10px}.plan-nav,.days{display:flex;gap:6px;overflow-x:auto;margin:0 0 20px}.plan-nav button,.days button{border:1px solid var(--line);border-radius:999px;background:var(--cream);padding:8px 14px;font-weight:700;white-space:nowrap}.plan-nav button[aria-current],.days button[aria-pressed="true"]{background:var(--forest);color:white;border-color:var(--forest)}.plan-nav .edit-plan{margin-left:auto}.days{margin:12px 0}.summary{background:#e8eee2}.meal{padding:16px;margin-top:10px}.meal summary{padding-top:4px}.section-title p{margin-bottom:14px}.shopping{overflow-wrap:anywhere}[hidden]{display:none!important}
