:root{--bg:#f6f1e7;--card:#fffdf8;--ink:#1f2a27;--muted:#6b726e;--line:#e4dccb;--green:#2f5d50;--green-soft:#e3ece7;--clay:#e07a4f;--clay-soft:#fbe7dd;--danger:#b3412b;--radius:14px;--tabbar:64px;--serif:"Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;color:var(--ink);background:var(--bg);-webkit-text-size-adjust:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,sans-serif}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:var(--bg);-webkit-tap-highlight-color:transparent;line-height:1.4}body.no-scroll{overflow:hidden}a{color:var(--green)}h1,h2,h3{margin:0;font-weight:650}h1{font-family:var(--serif);letter-spacing:-.01em;font-size:1.6rem}h3{margin:1rem 0 .4rem;font-size:1rem}p{margin:.4rem 0}input,select,textarea,button{font:inherit;color:inherit}input,select,textarea{border:1px solid var(--line);background:#fff;border-radius:10px;width:100%;padding:.7rem .8rem;font-size:16px}input:focus,select:focus,textarea:focus{outline:2px solid var(--green);outline-offset:1px;border-color:#0000}select.placeholder{color:var(--muted)}textarea{resize:vertical}input[type=checkbox]{width:auto}input[type=file]{border:1px dashed var(--line);background:var(--card)}.muted{color:var(--muted)}.small{font-size:.86rem}.center{text-align:center}.pre{white-space:pre-wrap}.shell{min-height:100vh}.content{padding-bottom:calc(var(--tabbar) + env(safe-area-inset-bottom) + 24px)}.page{max-width:640px;padding:calc(12px + env(safe-area-inset-top)) 16px 0;margin:0 auto}.page-head{justify-content:space-between;align-items:center;gap:12px;margin:8px 0 14px;display:flex}.week-title{text-align:center;flex:1}.section{margin:22px 0}.section-title{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:10px;font-size:.8rem;font-weight:700}.stack{flex-direction:column;gap:14px;display:flex}.row{align-items:flex-end;gap:10px;display:flex}.row>*{flex:1;min-width:0}.row-between{justify-content:space-between;align-items:center;gap:10px;display:flex}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);flex-direction:column;gap:10px;margin-bottom:12px;padding:14px;display:flex}.center-screen{place-items:center;min-height:100vh;display:grid}.tabbar{z-index:20;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);height:calc(var(--tabbar) + env(safe-area-inset-bottom));background:#fffdf8f5;justify-content:space-around;display:flex;position:fixed;bottom:0;left:0;right:0}.tabbar a{color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.72rem;font-weight:600;text-decoration:none;display:flex}.tabbar a.on{color:var(--green)}.tab-icon{font-size:1.25rem;line-height:1}.btn{cursor:pointer;border:none;border-radius:12px;min-height:46px;padding:.75rem 1.1rem;font-weight:650;transition:transform 50ms,opacity .15s}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.55;cursor:default}.btn-primary{background:var(--green);color:#fff}.btn-secondary{background:var(--green-soft);color:var(--green)}.btn-ghost{color:var(--muted);border:1px solid var(--line);background:0 0}.btn-danger-ghost{color:var(--danger);background:0 0}.btn-small{min-height:36px;padding:.4rem .9rem;font-size:.9rem}.btn-block{width:100%}.icon-btn{cursor:pointer;width:44px;height:44px;color:var(--ink);background:0 0;border:none;border-radius:50%;flex-shrink:0;font-size:1.5rem;line-height:1}.icon-btn:active{background:var(--green-soft)}.link-btn{color:var(--green);cursor:pointer;background:0 0;border:none;padding:6px 0;font-weight:600}.chips{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:inline-flex}.chip{border:1px solid var(--line);cursor:pointer;white-space:nowrap;background:#fff;border-radius:999px;padding:5px 11px;font-size:.82rem;font-weight:600}.chip.on{background:var(--clay);border-color:var(--clay);color:#fff}.chip-danger{color:var(--danger)}.chip:disabled{opacity:.5}.tag{color:var(--clay);background:var(--clay-soft);border-radius:999px;padding:1px 7px;font-size:.72rem;font-weight:700}.seg{background:#ece5d6;border-radius:10px;gap:2px;max-width:100%;padding:3px;display:inline-flex;overflow-x:auto}.seg button{color:var(--muted);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:8px;padding:.45rem .8rem;font-weight:600}.seg button.on{color:var(--ink);background:#fff;box-shadow:0 1px 2px #00000014}.seg-sm button{padding:.3rem .6rem;font-size:.82rem}.toggle{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:10px;font-size:.92rem;display:inline-flex}.toggle input{opacity:0;width:1px;height:1px;position:absolute}.toggle-track{background:#d9d1c0;border-radius:999px;flex-shrink:0;width:40px;height:24px;transition:background .15s;position:relative}.toggle-track:after{content:"";background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 2px #0003}.toggle input:checked+.toggle-track{background:var(--green)}.toggle input:checked+.toggle-track:after{transform:translate(16px)}.toggle input:focus-visible+.toggle-track{outline:2px solid var(--green);outline-offset:2px}.field{flex-direction:column;gap:6px;display:flex}.field-label{font-size:.85rem;font-weight:650}.field-hint{color:var(--muted);font-size:.8rem}.inline-field{align-items:center;gap:8px;display:flex}.inline-field select{flex:1;width:auto;padding:.45rem .6rem}.search{margin-bottom:10px}.filter-row{margin-bottom:14px}.add-row{gap:8px;margin-bottom:8px;display:flex}.add-row input{flex:1}.auth-wrap{place-items:center;min-height:100vh;padding:20px;display:grid}.auth-card{background:var(--card);border:1px solid var(--line);border-radius:20px;flex-direction:column;gap:14px;width:100%;max-width:380px;padding:28px 22px;display:flex}.brand{font-family:var(--serif);color:var(--green);font-size:1.8rem}.days{flex-direction:column;gap:10px;display:flex}.day{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);flex-direction:column;gap:10px;padding:12px 14px;display:flex}.day.today{border-color:var(--green);box-shadow:inset 4px 0 0 var(--green)}.day.away{opacity:.65}.day-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.day-name{font-weight:700}.kids-row{border-top:1px dashed var(--line);flex-direction:column;gap:8px;padding-top:8px;display:flex}.portions{flex:0 0 92px;width:92px}.lunch-grid{flex-direction:column;gap:6px;display:flex}.lunch-row{align-items:center;gap:10px;display:flex}.lunch-day{width:34px;font-size:.9rem;font-weight:650}.sticky-action{bottom:calc(var(--tabbar) + env(safe-area-inset-bottom) + 10px);margin:20px 0;position:sticky}.sticky-action .btn{box-shadow:0 6px 20px #2f5d5040}.items{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);margin:0;padding:0;list-style:none;overflow:hidden}.item,.pantry-row,.person-row{border-bottom:1px solid var(--line);align-items:center;gap:12px;min-height:52px;padding:10px 14px;display:flex}.items>li:last-child{border-bottom:none}.item-text{text-align:left;cursor:pointer;background:0 0;border:none;flex-wrap:wrap;flex:1;align-items:baseline;gap:4px 8px;min-width:0;padding:4px 0;display:flex}.item-text:disabled{cursor:default}.item-name{font-weight:600}.item-qty{color:var(--muted);font-size:.86rem}.item-details{color:var(--green);flex-basis:100%;font-size:.84rem;font-style:italic}.item-done .item-name{color:var(--muted);text-decoration:line-through}.item-muted{background:#faf7f0}.items input.check{width:26px;height:26px;accent-color:var(--green);cursor:pointer;flex-shrink:0;margin:0;padding:0}.store-head{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.store-head h2{font-family:var(--serif);font-size:1.2rem}.count{background:var(--green-soft);color:var(--green);vertical-align:middle;border-radius:999px;padding:2px 8px;font-family:-apple-system,sans-serif;font-size:.75rem}.pantry-row .seg{flex-shrink:0}.person-row{flex-wrap:wrap;justify-content:space-between}.person-actions{flex-direction:column;align-items:flex-end;gap:8px;display:flex}.recipe-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.recipe-row{text-align:left;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);cursor:pointer;flex-direction:column;gap:2px;width:100%;padding:12px 14px;display:flex}.recipe-title{font-size:1.02rem;font-weight:650}.recipe-meta{color:var(--muted);font-size:.84rem}.plain-list{margin:0;padding-left:1.2rem}.plain-list li{margin:4px 0}.steps-list{flex-direction:column;gap:6px;margin:0;padding-left:1.2rem;display:flex}.ing-rows{flex-direction:column;gap:6px;display:flex}.ing-row{align-items:center;gap:6px;display:flex}.ing-row input{padding:.55rem .6rem}.ing-qty{flex:0 0 56px}.ing-unit{flex:0 0 64px}.ing-name{flex:1;min-width:0}.ing-row .icon-btn{width:36px;height:36px;color:var(--muted);font-size:1rem}.sheet-backdrop{z-index:50;background:#1f2a2766;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--bg);border-radius:20px 20px 0 0;flex-direction:column;width:100%;max-width:640px;max-height:92vh;animation:.18s ease-out up;display:flex}.sheet-head{justify-content:space-between;align-items:center;gap:8px;padding:14px 10px 6px 18px;display:flex}.sheet-head h2{font-family:var(--serif);font-size:1.3rem}.sheet-body{padding:6px 18px calc(24px + env(safe-area-inset-bottom));overflow-y:auto}@keyframes up{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}@media (width>=700px){.sheet-backdrop{align-items:center}.sheet{border-radius:20px}}.empty{text-align:center;color:var(--muted);background:var(--card);border:1px dashed var(--line);border-radius:var(--radius);margin:12px 0;padding:26px 16px}.empty-title{color:var(--ink);font-weight:700}.toasts{top:calc(12px + env(safe-area-inset-top));z-index:100;pointer-events:none;flex-direction:column;align-items:center;gap:8px;padding:0 16px;display:flex;position:fixed;left:0;right:0}.toast{background:var(--ink);color:#fff;border-radius:12px;max-width:520px;padding:10px 16px;font-size:.92rem;box-shadow:0 6px 20px #0003}.toast-error{background:var(--danger)}.spinner{border:3px solid var(--line);border-top-color:var(--green);border-radius:50%;width:28px;height:28px;margin:40px auto;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.sheet,.spinner{animation:none}}.notice{background:var(--green-soft);color:var(--green);border-radius:10px;margin:0;padding:10px 12px}.dup-row{align-items:center;gap:10px;display:flex}.dup-row input[type=checkbox],.dup-row input[type=radio]{width:20px;height:20px;accent-color:var(--green);margin:0;padding:0}.dup-name{flex:1;min-width:0;font-weight:600}.dup-keep{color:var(--muted);white-space:nowrap;align-items:center;gap:6px;font-size:.82rem;display:inline-flex}.strike{color:var(--muted)}label.dup-row{cursor:pointer}code{background:#ece5d6;border-radius:5px;padding:1px 5px;font-size:.9em}.select-box{height:22px;accent-color:var(--green);flex-shrink:0;margin:0;width:22px!important;padding:0!important}.row-selected{background:var(--green-soft)}.select-bar{left:0;right:0;bottom:calc(var(--tabbar) + env(safe-area-inset-bottom));z-index:25;background:var(--card);border-top:1px solid var(--line);align-items:center;gap:12px;padding:10px 16px;display:flex;position:fixed;box-shadow:0 -4px 16px #0000000f}.select-count{flex:1;font-weight:700}.with-select-bar{padding-bottom:70px}.picker{border:1px solid var(--line);text-align:left;cursor:pointer;background:#fff;border-radius:10px;justify-content:space-between;align-items:center;gap:8px;width:100%;min-height:46px;padding:.7rem .8rem;font-size:16px;display:flex}.picker.placeholder{color:var(--muted)}.picker span:first-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sides{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.side-chip{background:var(--clay-soft);color:#8a3d1d;border-radius:999px;align-items:center;gap:4px;padding:4px 4px 4px 10px;font-size:.86rem;font-weight:600;display:inline-flex}.side-chip button{color:inherit;cursor:pointer;background:0 0;border:none;border-radius:999px;padding:2px 6px;font-size:.8rem}.side-chip button:active{background:#00000014}.chip-suggest{color:#8a3d1d;background:0 0;border-style:dashed}.usual-side{padding:4px 0}.picker-row{align-items:stretch;gap:8px;display:flex}.picker-row .picker{flex:1;min-width:0}.view-btn{border:1px solid var(--line);background:var(--green-soft);color:var(--green);cursor:pointer;border-radius:10px;flex-shrink:0;padding:0 12px;font-size:.86rem;font-weight:650}.kind-select{flex-wrap:wrap;gap:6px;display:inline-flex}.kind-select select,.kind-select input{width:auto;padding:.35rem .5rem;font-size:.9rem}.kind-select input{width:120px}.side-group{flex-wrap:wrap;align-items:center;gap:6px;display:inline-flex}.side-group-label{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:.75rem;font-weight:700}.usual-side.wrap{flex-wrap:wrap}.served-actions{flex-wrap:wrap;margin-top:6px}.any-kind{align-items:center;gap:6px;display:inline-flex}.tag-filters{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:6px;margin:8px 0 4px;display:flex}
