:root{--ink:#283b32;--muted:#748078;--green:#365e48;--paper:#f6f7f2;--line:#e1e6dc;--white:#fff;--accent:#e7edde;font-family:Inter,Segoe UI,sans-serif;color:var(--ink);background:var(--paper);font-size:15px}*{box-sizing:border-box}body{margin:0}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button,.button{display:inline-flex;align-items:center;justify-content:center;background:var(--green);color:white;border:1px solid transparent;border-radius:8px;padding:12px 18px;font:inherit;font-weight:600;cursor:pointer;gap:8px;text-decoration:none}button:hover,.button:hover{filter:brightness(.94);text-decoration:none}button:disabled{opacity:.5;cursor:wait}.secondary{background:white;color:var(--ink);border:1px solid var(--line)}.text-button{padding:5px;background:transparent;color:var(--muted);font-weight:400}.small-button{font-size:.78rem;padding:8px 10px;background:var(--accent);color:var(--green)}.topbar{min-height:88px;border-bottom:1px solid var(--line);background:white;display:flex;align-items:center;justify-content:space-between;padding:16px 5%;gap:24px}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-weight:700;font-size:1.1rem}.brand-icon{display:grid;place-items:center;background:var(--green);color:#fff;border-radius:12px;width:42px;height:42px;font-family:Georgia,serif;font-size:28px}nav{display:flex;gap:26px;align-items:center}nav a{color:var(--muted);padding:10px 0}nav a.active{color:var(--green);border-bottom:2px solid var(--green)}nav form{margin:0}.container{max-width:1440px;margin:0 auto;padding:48px 5%;min-height:78vh}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:38px}.eyebrow{font-size:.72rem;letter-spacing:.18em;font-weight:700;color:var(--green);margin:0 0 16px}h1{font:400 clamp(2rem,3.5vw,3.2rem)/1.15 Georgia,serif;letter-spacing:-.04em;margin:0 0 16px}h2{font-size:1.2rem;font-weight:600;margin:0 0 20px}h3{font-size:1rem;font-weight:600;line-height:1.5}.muted{color:var(--muted);line-height:1.6}.small{font-size:.8rem}.week-toolbar{display:flex;align-items:center;gap:18px;margin-bottom:24px}.week-toolbar h2{margin:0}.pill{background:var(--accent);border-radius:20px;font-size:.75rem;padding:7px 12px;white-space:nowrap}.week-toolbar .pill{margin-left:auto}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px}.day-card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.day-card.today{border-color:var(--green)}.day-heading{padding:16px;background:#eef1e9;display:flex;align-items:center;justify-content:space-between;text-transform:capitalize}.day-heading strong{font-size:1.3rem}.today .day-heading{background:var(--green);color:white}.meal-slot{padding:16px 12px;min-height:180px;border-top:1px solid var(--line)}.slot-label{display:block;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-size:.65rem;margin-bottom:18px}.meal-slot h3{overflow-wrap:anywhere}.meal-slot .text-button{display:block;margin-top:8px}.add-meal{border:1px dashed #ccd5c7;background:transparent;color:#7b887b;font-size:.8rem;font-weight:400;min-height:86px;width:100%;padding:10px}.tip{background:#eaf0e3;padding:22px;border-radius:10px;color:#52664e;margin-top:26px;line-height:1.7}.tip strong{margin-right:8px}.panel{background:white;border:1px solid var(--line);border-radius:14px;padding:28px;margin-bottom:24px}.editor{max-width:860px;margin-top:28px}.editor>label{margin:18px 0}.ingredient-row{display:grid;grid-template-columns:3fr 1fr 1.5fr auto;gap:12px;align-items:end;margin-bottom:18px}label{display:block;font-size:.85rem;color:var(--ink)}input:not([type=checkbox]),select,textarea{display:block;width:100%;border:1px solid #cdd5ca;background:#fff;border-radius:7px;padding:12px;color:var(--ink);font:inherit;margin-top:8px}input:focus,select:focus,textarea:focus{outline:2px solid #8aa17a;outline-offset:2px}input[type=checkbox]{width:20px;height:20px;accent-color:var(--green)}.actions{display:flex;align-items:center;gap:14px;margin-top:24px}.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.recipe-card{margin:0;position:relative}.recipe-mark{background:#e8ecdd;border-radius:14px;font-family:Georgia,serif;font-size:2.6rem;width:68px;height:68px;display:grid;place-items:center;margin-bottom:26px}.recipe-card>.pill{position:absolute;right:24px;top:30px}.recipe-card li{font-size:.9rem;color:#647164;margin:9px 0}.recipe-card ul{padding-left:18px}.search{max-width:400px;margin-bottom:26px}.instructions{white-space:pre-wrap;line-height:1.7}.empty-state{text-align:center;padding:64px 24px;border:1px dashed #ccd5c7;border-radius:16px;margin-top:28px}.empty-state p{color:var(--muted);margin-bottom:28px}.empty-icon{display:block;font-size:48px;color:#78936c;margin-bottom:20px}.notice{padding:16px 20px;background:#e8efdf;border-left:3px solid #6f8d59;border-radius:6px;margin-bottom:24px;line-height:1.6}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.section-heading h2{margin:0}.shopping-row{display:flex;align-items:center;gap:18px;border-top:1px solid var(--line);padding:20px 0;cursor:pointer;font-size:1rem}.shopping-row strong{margin-left:auto;font-size:.9rem}.shopping-row.checked{color:var(--muted);text-decoration:line-through}.shopping-list{max-width:900px}footer{text-align:center;color:var(--muted);font-size:.8rem;padding:30px}#blazor-error-ui{background:#fff1ce;bottom:0;display:none;left:0;padding:1rem;position:fixed;width:100%;z-index:1000}#blazor-error-ui .dismiss{cursor:pointer;position:absolute;right:1rem}.validation-message,.text-danger{color:#a23434}.validation-errors{padding:15px 30px;background:#fff0ed}.auth-card{max-width:460px;margin:24px auto}.auth-card h1{font-size:2.3rem}.auth-card label{margin:20px 0}.auth-card button[type=submit]{width:100%;margin:12px 0}.auth-card .checkbox{display:flex;align-items:center;gap:10px}.auth-card p{line-height:1.6}.form-floating{margin-bottom:16px}.row{display:flex;flex-wrap:wrap;gap:28px}.col-md-6,.col-lg-6{flex:1;max-width:600px}.btn{margin:8px 0}.nav{list-style:none;padding:0}.nav li{margin:12px 0}.alert{padding:16px;background:var(--accent)}summary{cursor:pointer;color:var(--green);margin-top:18px}@media(max-width:1150px){.week-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.topbar{flex-direction:column;padding:18px 20px;gap:12px}nav{gap:16px;font-size:.85rem;flex-wrap:wrap;justify-content:center}.container{padding:30px 20px}.page-heading{align-items:flex-start;flex-direction:column;gap:12px}.week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.week-toolbar{gap:10px;flex-wrap:wrap}.week-toolbar h2{font-size:.95rem}.week-toolbar .pill{display:none}.recipe-grid{grid-template-columns:1fr}.ingredient-row{grid-template-columns:1fr 1fr}.ingredient-row label:first-child{grid-column:1/-1}.panel{padding:20px}.section-heading{align-items:flex-start;flex-direction:column}.meal-slot{min-height:170px}.brand{font-size:1rem}.auth-card{margin:0}h1{font-size:2.4rem}}
.catalog-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.catalog-row:last-child{border-bottom:0}.catalog-row .actions{margin:0}.catalog-row strong{overflow-wrap:anywhere}.catalog-create{padding:16px 0}.catalog-create label{margin:16px 0}@media(max-width:700px){.catalog-row{align-items:flex-start;flex-direction:column}.catalog-row .actions{flex-wrap:wrap}}
.unit-picker{border:0;padding:16px 0;margin:12px 0;display:flex;flex-wrap:wrap;gap:12px}.unit-picker legend{font-weight:600;margin-bottom:8px}.unit-picker label{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--line);border-radius:8px}.unit-picker p{flex-basis:100%;margin:4px 0}.ingredient-dialog{width:min(560px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:28px;color:var(--ink);box-shadow:0 24px 80px #18352144}.ingredient-dialog::backdrop{background:#182e2466}.ingredient-dialog .actions{flex-wrap:wrap}.ingredient-dialog .section-heading{flex-direction:row}.catalog-row p{margin:8px 0 0}
.ingredient-autocomplete{position:relative;min-width:0}.ingredient-suggestions{position:absolute;top:100%;left:0;right:0;z-index:20;max-height:280px;overflow-y:auto;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 28px #18352122}.ingredient-suggestion{display:flex;width:100%;justify-content:space-between;gap:12px;padding:11px 12px;background:#fff;color:var(--ink);border:0;border-radius:0;text-align:left;font-weight:400}.ingredient-suggestion:hover,.ingredient-suggestion[aria-selected=true]{background:var(--accent);filter:none}.ingredient-suggestion small{color:var(--muted)}.ingredient-suggestions p{padding:10px 12px;margin:0}@media(max-width:700px){.ingredient-row .ingredient-autocomplete{grid-column:1/-1}}
.ingredient-list-panel .section-heading{margin-bottom:12px}.ingredient-list-panel .section-heading h2{margin:0}.ingredient-scroll-list{height:420px;overflow-y:auto;overscroll-behavior:contain;padding-right:12px;scrollbar-gutter:stable}.ingredient-scroll-list:focus-visible{outline:2px solid #8aa17a;outline-offset:2px}.ingredient-scroll-list .catalog-row .actions{margin:0}.ingredient-scroll-list .notice{margin-top:12px}.catalog-edit{border-top:1px solid var(--line);margin-top:16px;padding:20px 0}.catalog-edit>label{margin:18px 0}.catalog-edit .actions{flex-wrap:wrap}
@media(max-width:700px){.topbar{align-items:stretch}.topbar nav{width:100%;min-width:0;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.topbar nav>a,.topbar nav>form{flex:none;white-space:nowrap}.topbar nav form button{white-space:nowrap}}
.week-grid{gap:0 12px}.day-card{display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:0;margin-bottom:12px}.in-shopping{display:inline-flex;align-items:center;font-size:.78rem;padding:8px 0;color:var(--green);font-weight:600}.plan-dialog>label{margin:18px 0}.plan-dialog h2{margin:0}.plan-dialog h2::first-letter{text-transform:uppercase}
