:root{--blue:#0072ce;--ink:#17212b;--muted:#596a78;--line:#d9e3eb;--wash:#f3f8fb;--green:#246442;--softgreen:#eef7f1;--red:#a33b2b}
*{box-sizing:border-box}body{margin:0;background:var(--wash);color:var(--ink);font:16px/1.55 system-ui,-apple-system,Segoe UI,sans-serif}
.site-head{max-width:1040px;margin:auto;padding:14px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px}.brand{display:flex;align-items:center;gap:9px;color:var(--ink);text-decoration:none}.brand img{width:44px;height:44px;object-fit:contain}.brand b,.brand small{display:block}.brand b{letter-spacing:.1em;font-size:.88rem}.brand small{color:var(--muted)}.back-link{color:#175a8a;font-size:.9rem}
.shell{max-width:760px;margin:24px auto 64px;padding:0 18px}.intro{padding:22px 4px 14px}.eyebrow{margin:0;color:var(--blue);font-size:.76rem;font-weight:800;letter-spacing:.12em}.intro h1{font-size:clamp(2rem,6vw,3.1rem);line-height:1.12;margin:.25em 0}.intro p{margin:.5em 0;color:#344554}.quiet{font-size:.9rem;color:var(--muted)!important}
form,.result{background:#fff;border:1px solid var(--line);border-radius:18px;padding:clamp(18px,4vw,32px);box-shadow:0 8px 28px #183c5410}.progress-wrap{margin-bottom:26px}.progress-label{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:.88rem;margin-bottom:8px}.progress{height:8px;background:#e5edf3;border-radius:99px;overflow:hidden}.progress span{display:block;height:100%;width:33.33%;background:var(--blue);border-radius:99px;transition:width .2s}
.step{display:none}.step.active{display:block}.step h2{margin:0 0 18px;font-size:1.45rem;line-height:1.25}.step label{display:block;margin:16px 0;font-weight:650}.step select,.step input:not([type=checkbox]):not([type=radio]){display:block;width:100%;margin-top:7px;padding:11px 12px;border:1px solid #bac9d5;border-radius:9px;background:#fff;color:var(--ink);font:inherit}.step select:focus,.step input:focus{outline:3px solid #b8dcf7;outline-offset:1px}.step small,.small-copy{display:block;margin-top:5px;color:var(--muted);font-size:.84rem;font-weight:400}.step fieldset{margin:18px 0;padding:13px 15px;border:1px solid var(--line);border-radius:12px}.step legend{padding:0 5px;font-weight:700}.step label.radio,.step label.checkline,.step label.consent{display:flex;align-items:flex-start;gap:10px;font-weight:500}.step input[type=radio],.step input[type=checkbox]{flex:0 0 auto;width:18px;height:18px;margin:3px 0 0;accent-color:var(--blue)}.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px;margin-top:10px}.checks label{display:flex;align-items:flex-start;gap:8px;margin:5px 0;font-weight:500}.conditional[hidden]{display:none}.optional{font-weight:400;color:var(--muted);font-size:.82rem;margin-left:4px}.consent{padding:12px;border-radius:10px;background:#f6f9fb}.consent a{white-space:nowrap}.actions{display:flex;justify-content:space-between;gap:10px;margin-top:24px}.actions button,.result button{font:inherit;font-weight:750;border:0;border-radius:10px;padding:12px 18px;cursor:pointer}.primary{background:var(--blue);color:white}.secondary{background:#edf2f6;color:var(--ink)}.actions button:disabled{opacity:.6;cursor:wait}.error{color:var(--red);font-weight:650;margin:12px 0 0}.result{margin-top:22px}.result h2{margin:.15em 0 .7em}.result h3{font-size:1.12rem;margin:1.5em 0 .5em}.result .lead{color:var(--muted)}.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;background:#fff;border-radius:10px}.week{width:100%;border-collapse:collapse;margin-top:14px}.week th,.week td{border-bottom:1px solid var(--line);padding:10px 8px;text-align:left;vertical-align:top}.week th{font-size:.86rem;color:#415363}.week td{font-size:.92rem}.week .day{font-weight:750;white-space:nowrap}.shopping-category{margin:13px 0}.shopping-category h4{margin:.5em 0;font-size:.95rem}.shopping-category ul{margin:0;padding-left:1.25rem}.result-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.result .secondary-link{color:#175a8a;background:transparent;border:1px solid var(--line);text-decoration:none;display:inline-block;padding:11px 15px;border-radius:10px;font-weight:700}.status-box{padding:14px;border-radius:10px;background:var(--softgreen)}.status-box.warn{background:#fff6e8;border-left:4px solid #c78523}.empty{color:var(--muted)}
.planning-principle{margin:8px 0 20px;padding:14px 16px;border-left:4px solid var(--blue);border-radius:10px;background:#eef7ff;color:var(--ink)}.planning-principle strong{display:block;margin-bottom:5px}.planning-principle p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.55}.planning-principle .special-diets{margin-top:8px}
.goal-picker{margin:18px 0;padding:14px 15px;border:1px solid var(--line);border-radius:12px;background:#f8fbfd}.goal-picker legend{font-weight:750}.goal-picker>label{margin:8px 0 14px!important}.goal-extras{margin-top:8px;padding-top:9px;border-top:1px solid var(--line)}.goal-extras summary{cursor:pointer;color:#175a8a;font-weight:700}.goal-checks{margin-top:8px}.goal-checks label{display:flex;align-items:flex-start;gap:8px;margin:6px 0;font-weight:500}.goal-checks input:disabled+*{opacity:.6}
.fixed-meals-panel{margin:1.25rem 0;border:1px solid #b6d6ed;border-radius:12px;background:#f3f9fd;padding:1rem}.fixed-meals-panel>summary{cursor:pointer;font-weight:700;color:#16324a}.fixed-meals-panel>summary span{font-weight:400}.fixed-meal{margin:1rem 0;padding:1rem;background:#fff;border:1px solid #bdd5e5;border-radius:10px;min-width:0}.fixed-meal legend{font-weight:700}.fixed-days,.fixed-actions{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;margin:.8rem 0}.fixed-days label{display:flex;align-items:center;gap:.25rem;margin:0}.fixed-days input{width:auto}.fixed-ingredient{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:.75rem;align-items:end;margin:.5rem 0}.fixed-ingredient label{min-width:0}.fixed-ingredient button{margin-bottom:.6rem}.fixed-totals{background:#eaf4fb;padding:.75rem;border-radius:8px;font-size:.9rem}.fixed-sources{font-size:.85rem}.fixed-badge{display:inline-block;background:#0072ce;color:#fff;font-size:.75rem;font-style:normal;border-radius:5px;padding:.15rem .4rem;margin-right:.3rem}.fixed-nutrition-scroll{overflow:auto}.fixed-nutrition{width:100%;border-collapse:collapse;font-size:.85rem}.fixed-nutrition td,.fixed-nutrition th{padding:.6rem;text-align:left;border-bottom:1px solid #d5e3ec}.fixed-nutrition tbody tr:last-child{font-weight:bold;background:#eaf4fb}.custom-food{grid-column:1/-1;background:#f5f9fc;border:1px solid #ccdfec;border-radius:8px;padding:1rem;min-width:0}.custom-nutrients{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;align-items:start}.custom-food .field-help{font-weight:400;line-height:1.45}.custom-nutrients>label,.fixed-ingredient>label{display:flex;flex-direction:column;gap:.4rem;min-width:0}.fixed-ingredient input[type=number],.custom-nutrients input[type=number]{box-sizing:border-box;display:block;width:100%;max-width:100%;min-width:0;min-height:44px;border:1px solid #bdd0dd;border-radius:9px;padding:.65rem .75rem;font:inherit;background:#fff;color:#16324a}.custom-allergens{margin:.8rem 0}.custom-allergens summary{cursor:pointer;font-weight:600}.custom-allergen-table{width:100%;border-collapse:collapse;font-size:.9rem}.custom-allergen-table th,.custom-allergen-table td{padding:.3rem;text-align:left;border-bottom:1px solid #d5e3ec}.custom-allergen-table td{text-align:center}.custom-allergen-table input,.custom-confirm input,.custom-allergens input{width:auto;min-height:auto;flex-shrink:0}.custom-confirm{display:flex;align-items:flex-start;gap:.5rem;font-size:.9rem}.fixed-adopt{margin:.8rem 0;padding:.9rem;border:1px solid #bdd5e5;border-radius:8px;background:#f2f8fd}.fixed-adopt>summary{cursor:pointer;color:#005eaa;font-weight:700}.fixed-recipe-reference{background:#eaf4fb;padding:.8rem;border-radius:8px}.meal-templates{margin:1rem 0;padding:1rem;background:#fff;border:1px solid #bdd5e5;border-radius:10px}.meal-templates>summary{font-weight:700;cursor:pointer;color:#005eaa}.meal-template-item{margin:.8rem 0;padding:.8rem;border:1px solid #d3e3ed;border-radius:8px}.meal-template-item>summary{cursor:pointer;font-weight:600}.meal-template-item>summary small{display:block;font-weight:400;color:#586773;margin-top:.3rem}.meal-template-item .fixed-actions button{font-size:.9rem}.meal-templates [role=status]:not(:empty),[data-template-feedback]:not(:empty){padding:.65rem;background:#eaf4fb;border-radius:6px}.meal-templates .fixed-days input{width:auto;min-height:auto}
.fixed-candidate-picker{margin:1rem 0;padding:1rem;background:#fff;border:1px solid #bdd5e5;border-radius:10px}.fixed-candidate-picker h4{margin:.1rem 0 .7rem}.fixed-candidate-picker .fixed-days{padding:.7rem 0}.fixed-candidate-picker [role=status]:not(:empty){padding:.65rem;border-radius:6px;background:#eaf4fb}
.plan-edit-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0 4px}.result .plan-edit-actions button{padding:9px 14px}.result .text-button{background:transparent;color:#175a8a;padding-inline:4px}.edit-hint{margin:0 0 12px;color:var(--muted);font-size:.9rem}.meal-name{font-weight:600}.meal-editor{margin-top:8px}.meal-editor summary{color:#175a8a;font-size:.82rem;font-weight:700;cursor:pointer}.meal-editor-body{min-width:210px;padding:9px;border:1px solid var(--line);border-radius:9px;background:#f8fbfd}.meal-editor-body label{display:block;margin:7px 0;color:var(--muted);font-size:.8rem}.meal-editor-body select{display:block;width:100%;margin-top:4px;padding:7px;border:1px solid #bac9d5;border-radius:7px;background:#fff;color:var(--ink);font:inherit;font-size:.82rem}.result .meal-editor-body button{margin:0 0 8px;padding:7px 10px;font-size:.82rem}.meal-editor-body .empty{font-size:.82rem}
.simple-recipe{margin-top:7px}.simple-recipe summary{color:#175a8a;font-size:.82rem;font-weight:700;cursor:pointer}.recipe-card{min-width:190px;max-width:340px;margin-top:7px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#f8fbfd;font-size:.82rem;line-height:1.45;white-space:normal}.recipe-card .recipe-time{margin:0 0 8px;color:var(--muted)}.recipe-card h4{margin:9px 0 4px;font-size:.86rem}.recipe-card h4 span{font-size:.75rem;font-weight:500;color:var(--muted)}.recipe-card ul,.recipe-card ol{margin:3px 0 8px;padding-left:1.2rem}.recipe-card li{margin:3px 0}
.shopping-list{margin:18px 0 4px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#f8fbfd}.shopping-list summary{color:#175a8a;font-weight:750;cursor:pointer}.shopping-list[open]{padding-bottom:14px}.pdf-options{margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#f8fbfd}.pdf-options h3{margin:0 0 6px}.pdf-options p{margin:6px 0 12px;color:var(--muted)}.pdf-options label{display:flex;align-items:flex-start;gap:9px;margin:10px 0;font-weight:600}.pdf-options input[type=checkbox]{flex:0 0 auto;width:18px;height:18px;margin:2px 0 0;accent-color:var(--blue)}.pdf-option-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.result .pdf-option-actions button{padding:9px 14px}
@media(max-width:600px){.site-head{padding-inline:14px}.shell{padding-inline:12px;margin-top:8px}.week th,.week td{padding:8px 5px;font-size:.82rem}.week th:not(.day),.week td:not(.day){min-width:95px}.week{min-width:620px}.checks{grid-template-columns:1fr}.actions button{flex:1}.back-link{font-size:.82rem}.fixed-ingredient{grid-template-columns:minmax(0,1fr) minmax(90px,.55fr)}.fixed-ingredient button{grid-column:1/-1;justify-self:start;margin:0}.fixed-meal,.meal-templates{padding:.65rem}.fixed-actions button,.meal-template-item .fixed-actions button{width:100%}.custom-nutrients{grid-template-columns:repeat(2,minmax(0,1fr))}.custom-food{padding:.65rem}}
@media print{body{background:#fff}.site-head,.intro,form,.result-actions{display:none!important}.shell{max-width:none;margin:0;padding:0}.result{border:0;box-shadow:none;padding:0}.week{page-break-inside:avoid}}
.daily-nutrition{margin:10px 0 18px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#f8fbfd}.daily-nutrition>summary{color:#175a8a;font-weight:750;cursor:pointer}.daily-nutrition[open]{padding-bottom:14px}.daily-nutrition .field-help{margin:9px 0;color:var(--muted);font-size:.86rem;line-height:1.5}.nutrition-table-scroll{overflow-x:auto}.daily-nutrition-table{width:100%;border-collapse:collapse;font-size:.9rem}.daily-nutrition-table th,.daily-nutrition-table td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.daily-nutrition-table thead th{color:var(--muted);font-size:.8rem}.daily-nutrition-table tbody th{font-weight:650}.daily-nutrition-table td:last-child{white-space:nowrap}
