:root{--ink:#233126;--muted:#6d776f;--paper:#f7f3ea;--card:#fffdf8;--green:#2f684b;--green-dark:#1f4934;--sage:#dfe9dd;--line:#dddcd3;--orange:#d77b48;--shadow:0 8px 24px rgba(35,49,38,.08)}
*{box-sizing:border-box}html{background:var(--paper)}body{margin:0;color:var(--ink);background:var(--paper);font-family:ui-rounded,"SF Pro Rounded","Segoe UI",system-ui,sans-serif;-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1{font-family:Georgia,serif;font-size:clamp(1.65rem,7vw,2.2rem);line-height:1;margin-bottom:0}h2{font-family:Georgia,serif;font-size:1.55rem;margin-bottom:.25rem}h3{font-size:1rem;margin:1.4rem 0 .6rem}.eyebrow{font-size:.68rem;letter-spacing:.16em;font-weight:800;color:var(--orange);margin:0 0 .35rem}.muted,.intro-row p{color:var(--muted);margin:0;font-size:.88rem}.topbar{display:flex;align-items:center;justify-content:space-between;padding:calc(1.25rem + env(safe-area-inset-top)) 1rem 1rem;max-width:720px;margin:auto}.icon-button{border:0;background:var(--sage);color:var(--green-dark);width:44px;height:44px;border-radius:50%;font-size:1.55rem;line-height:1}.view{display:none;padding:1rem 1rem calc(6.5rem + env(safe-area-inset-bottom));max-width:720px;margin:auto}.view.active{display:block}.intro-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.intro-row.compact{margin-top:1.2rem}.count-pill{background:var(--sage);color:var(--green-dark);padding:.45rem .7rem;border-radius:999px;font-size:.78rem;font-weight:800;white-space:nowrap}.week-list{display:grid;gap:.62rem}.day-row{border:1px solid var(--line);background:var(--card);border-radius:16px;min-height:68px;display:grid;grid-template-columns:78px 1fr 42px;align-items:center;width:100%;text-align:left;padding:0;overflow:hidden;box-shadow:0 2px 8px rgba(35,49,38,.04)}.day-row.selected{border:2px solid var(--green)}.day-name{font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;padding-left:.85rem;color:var(--green)}.day-meal{font-weight:750;padding:.85rem .4rem}.day-meal.empty{font-weight:500;color:#929a94}.remove-meal{border:0;background:transparent;color:var(--muted);font-size:1.25rem;height:100%}.action-stack{display:grid;gap:.7rem;margin-top:1rem}.primary-button,.soft-button{border:0;border-radius:14px;min-height:52px;font-weight:800}.primary-button{background:var(--green);color:white;width:100%;box-shadow:0 6px 15px rgba(47,104,75,.2)}.soft-button{background:var(--sage);color:var(--green-dark)}.split-actions{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.sticky-tools{position:sticky;top:0;z-index:3;background:linear-gradient(var(--paper) 88%,transparent);padding:.25rem 0 1rem}.search-wrap{background:var(--card);border:1px solid var(--line);border-radius:14px;height:50px;display:flex;align-items:center;padding:0 .9rem;gap:.6rem;box-shadow:0 3px 10px rgba(35,49,38,.04)}.search-wrap span{font-size:1.5rem;color:var(--green)}.search-wrap input{border:0;outline:0;background:transparent;width:100%;font-size:16px;color:var(--ink)}.chips{display:flex;gap:.45rem;overflow-x:auto;padding:.7rem 0 .1rem;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}.chip{white-space:nowrap;border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:999px;padding:.48rem .78rem;font-size:.8rem;font-weight:700}.chip.active{background:var(--green);color:white;border-color:var(--green)}.recipe-list{display:grid;gap:.75rem}.recipe-card{display:grid;grid-template-columns:82px 1fr auto;align-items:center;gap:.8rem;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:.55rem;box-shadow:0 3px 12px rgba(35,49,38,.05)}.recipe-card img{width:82px;height:74px;object-fit:cover;border-radius:11px;background:var(--sage)}.recipe-name{font-weight:800;line-height:1.2;margin-bottom:.3rem}.recipe-meta{font-size:.75rem;color:var(--muted)}.recipe-info{border:0;background:transparent;text-align:left;padding:0;color:inherit}.add-meal{width:44px;height:44px;border-radius:50%;border:0;background:var(--green);color:white;font-size:1.5rem}.shopping-list{display:grid;gap:1rem;margin:1rem 0 1.2rem}.shop-group{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:.9rem}.shop-group h3{margin:0 0 .5rem;color:var(--green)}.shop-item{display:flex;gap:.65rem;align-items:flex-start;padding:.48rem 0;border-top:1px solid #eeece5;font-size:.9rem}.shop-item:first-of-type{border-top:0}.shop-item input{width:20px;height:20px;accent-color:var(--green);flex:0 0 auto}.shop-item.checked span{text-decoration:line-through;color:#939991}.add-item-row{display:grid;grid-template-columns:1fr 50px;gap:.5rem}.add-item-row input{min-width:0;border:1px solid var(--line);border-radius:14px;padding:0 .9rem;background:var(--card);font-size:16px}.add-item-row button{height:50px;border:0;border-radius:14px;background:var(--sage);color:var(--green-dark);font-size:1.35rem}.text-button{border:0;background:transparent;color:var(--green);font-size:.8rem;font-weight:800}.empty-state{text-align:center;padding:2.6rem 1rem;color:var(--muted);background:var(--card);border:1px dashed var(--line);border-radius:16px}.bottom-nav{position:fixed;z-index:10;bottom:0;left:0;right:0;background:rgba(255,253,248,.96);backdrop-filter:blur(12px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr);padding:.45rem max(.6rem,env(safe-area-inset-right)) calc(.45rem + env(safe-area-inset-bottom)) max(.6rem,env(safe-area-inset-left))}.bottom-nav button{border:0;background:transparent;color:var(--muted);display:grid;gap:.1rem;justify-items:center;font-size:.72rem;font-weight:750;padding:.2rem}.bottom-nav button span{font-size:1.25rem}.bottom-nav button.active{color:var(--green)}dialog{width:min(94vw,620px);max-height:88vh;border:0;border-radius:22px;padding:1rem;background:var(--card);color:var(--ink);box-shadow:0 20px 70px rgba(20,30,22,.35)}dialog::backdrop{background:rgba(20,30,22,.55)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start}.dialog-head h2{margin-bottom:0}dialog>img{width:100%;height:190px;object-fit:cover;border-radius:15px;margin-top:.8rem}dialog ul,dialog ol{padding-left:1.3rem;font-size:.9rem;line-height:1.5}.toast{position:fixed;z-index:20;left:50%;bottom:90px;transform:translate(-50%,16px);background:var(--ink);color:white;padding:.7rem 1rem;border-radius:999px;font-size:.82rem;opacity:0;pointer-events:none;transition:.2s;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:680px){.recipe-list{grid-template-columns:1fr 1fr}.topbar,.view{padding-left:1.5rem;padding-right:1.5rem}.bottom-nav{left:50%;right:auto;width:520px;transform:translateX(-50%);border:1px solid var(--line);border-bottom:0;border-radius:18px 18px 0 0}.week-list{grid-template-columns:1fr 1fr}.day-row:last-child{grid-column:1/-1}}
.day-row{grid-template-columns:68px 1fr auto}.day-meal{border:0;background:transparent;text-align:left;color:inherit}.day-actions{display:flex;align-items:center;height:100%;padding-right:.2rem}.move-meal,.remove-meal{border:0;background:transparent;color:var(--muted);width:38px;height:46px;font-size:1.12rem}.move-meal{color:var(--green);font-weight:800}.move-dialog{max-width:420px}.move-dialog .muted{margin:.5rem 0 1rem}.move-day-choices{display:grid;gap:.5rem}.move-day-choice{border:1px solid var(--line);background:var(--card);border-radius:13px;min-height:52px;padding:.6rem .8rem;text-align:left;display:flex;justify-content:space-between;align-items:center;color:var(--ink)}.move-day-choice strong{font-size:.9rem}.move-day-choice span{font-size:.78rem;color:var(--muted);max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.move-day-choice.current{background:var(--sage);border-color:var(--green)}
.recipe-list-contents{display:contents}.custom-meal-card{margin:0}.custom-meal-icon{width:82px;height:74px;border-radius:11px;background:var(--sage);color:var(--green);display:grid;place-items:center;font-family:Georgia,serif;font-size:2rem;font-weight:700}.custom-meal-info{min-width:0;display:grid;gap:.18rem}.custom-meal-info label{font-weight:800;line-height:1.2}.custom-meal-info input{width:100%;min-width:0;border:0;border-bottom:1px solid var(--line);outline:0;background:transparent;padding:.18rem 0;font-size:16px;color:var(--ink)}.custom-meal-info input:focus{border-bottom-color:var(--green)}.custom-meal-info span{font-size:.75rem;color:var(--muted)}
.day-meal span,.day-meal small{display:block}.day-meal small{color:var(--orange);font-size:.74rem;font-weight:700;margin-top:.28rem}.day-row.has-dessert{min-height:76px}.small-dialog{max-width:420px}.dialog-actions{display:grid;gap:.65rem;margin-top:1rem}.dialog-actions .soft-button{width:100%}.dialog-actions .danger{color:#a04435;min-height:42px}.dessert-choices{display:grid;gap:.6rem;margin-top:1rem}.dessert-choices article{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;min-height:58px;border:1px solid var(--line);border-radius:14px;background:var(--card);padding:.4rem}.dessert-choices article>span{font-size:1.5rem;text-align:center}.dessert-choices article>button{border:0;background:transparent;color:var(--ink)}.dessert-choices article>button:nth-child(2){text-align:left;display:grid;gap:.16rem}.dessert-choices article strong{font-size:.92rem}.dessert-choices article small{color:var(--muted)}.dessert-choices article>[data-dessert-add],.custom-dessert-form button{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--green);color:white;font-size:1.35rem}.custom-dessert-form{display:grid;grid-template-columns:1fr 42px;gap:.6rem;margin-top:.75rem}.custom-dessert-form input{min-width:0;height:46px;border:1px solid var(--line);border-radius:13px;padding:0 .8rem;background:var(--card);font-size:16px}.custom-dessert-form button{border:0;width:42px;height:42px;align-self:center}.dessert-shop-group h3{color:var(--orange)}
.week-recipe-actions{border-top:1px solid var(--line);padding-top:1rem;margin-top:1.25rem}.day-food{min-width:0;display:grid;align-content:center}.day-food .day-meal{padding:.35rem .4rem .15rem;width:100%}.day-dessert{border:0;background:transparent;color:var(--orange);font-size:.74rem;font-weight:700;text-align:left;padding:.12rem .4rem .4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-actions{display:flex;align-items:center;gap:.55rem}.header-link,.primary-link,.soft-link{color:var(--green);font-weight:800;text-decoration:none;font-size:.82rem}.login-page{min-height:100vh;display:grid;place-items:center}.login-shell{width:min(92vw,460px);padding:2rem 1rem}.login-intro{color:var(--muted);margin:.7rem 0 1.3rem}.login-card,.admin-card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:1.2rem;box-shadow:var(--shadow)}.login-card{display:grid;gap:1rem}.login-card label,.admin-form label{display:grid;gap:.38rem;font-weight:750}.login-card input,.admin-form input,.admin-form select,.admin-form textarea{width:100%;border:1px solid var(--line);background:white;color:var(--ink);border-radius:11px;padding:.75rem;font-size:16px}.form-error,.form-success{padding:.8rem 1rem;border-radius:11px}.form-error{background:#f8dfdf;color:#812e25}.form-success{background:#dff1df;color:var(--green-dark)}.admin-shell{max-width:780px;margin:auto;padding:1rem 1rem 4rem;display:grid;gap:1rem}.admin-card h2{margin-bottom:1rem}.admin-form{display:grid;gap:1rem}.admin-form small{color:var(--muted);font-weight:500}.admin-form textarea{resize:vertical;line-height:1.45}.admin-form .check-label{display:flex;align-items:center;gap:.55rem}.admin-form .check-label input{width:20px;height:20px}.admin-actions{display:flex;align-items:center;gap:1rem}.admin-actions .primary-button{max-width:260px}.admin-meal-list{display:grid}.admin-meal-list a{display:flex;justify-content:space-between;gap:1rem;padding:.75rem 0;border-top:1px solid var(--line);text-decoration:none;color:var(--ink)}.admin-meal-list a:first-child{border-top:0}.admin-meal-list small{color:var(--muted)}
@media(max-width:520px){.header-actions{gap:.35rem}.header-link{font-size:.72rem}.topbar .icon-button{width:38px;height:38px}.admin-meal-list a{display:grid;gap:.2rem}}
.public-recipes-shell{max-width:920px;margin:auto;padding:0 1rem 3rem}.public-intro{color:var(--muted);max-width:640px;line-height:1.5}.public-tools{padding-top:.8rem}.public-recipe-grid{display:grid;gap:.75rem}.public-recipe-card{width:100%;display:grid;grid-template-columns:88px 1fr 30px;align-items:center;gap:.85rem;border:1px solid var(--line);border-radius:17px;background:var(--card);padding:.55rem;text-align:left;color:var(--ink);box-shadow:0 3px 12px rgba(35,49,38,.05)}.public-recipe-card img,.public-image-placeholder{width:88px;height:78px;border-radius:12px;object-fit:cover;background:var(--sage)}.public-image-placeholder{display:grid;place-items:center;font-size:1.7rem}.public-card-copy{display:grid;gap:.32rem;min-width:0}.public-card-copy strong{line-height:1.22}.public-card-copy small{color:var(--muted);line-height:1.3}.public-card-arrow{color:var(--green);font-size:1.2rem;font-weight:900}.public-topbar{max-width:920px}#publicRecipeDialog{max-width:680px}@media(min-width:720px){.public-recipe-grid{grid-template-columns:1fr 1fr}.public-tools{top:0}.public-recipe-card{min-height:96px}}
.guest-note{margin:0 0 1rem;padding:.75rem .9rem;border-radius:13px;background:#e8f0e6;color:var(--green-dark);font-size:.82rem;line-height:1.4}
.week-browser{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;margin-top:.8rem;padding:.3rem;border:1px solid var(--line);border-radius:15px;background:var(--card)}.week-browser button{height:42px;border:0;border-radius:11px;background:transparent;color:var(--green);font-size:1.4rem;font-weight:800}.week-browser button:active{background:var(--sage)}.week-browser button:disabled{opacity:.25}.week-browser-copy{display:grid;gap:.12rem;text-align:center}.week-browser-copy strong{font-size:.84rem}.week-browser-copy small{color:var(--muted);font-size:.72rem}.history-week-actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-top:.5rem}.history-week-actions.future-only{grid-template-columns:1fr}.history-week-actions[hidden]{display:none}.history-week-actions button{min-height:46px;border:0;border-radius:13px;font-weight:800}.history-week-actions button:first-child{background:var(--green);color:white}.history-week-actions button:last-child{background:var(--sage);color:var(--green-dark)}.history-week-note{text-align:center;color:var(--muted);font-size:.72rem;margin:.45rem 0 0}
