.day-selector-bar{display:flex;gap:16px;align-items:center;margin:-8px 0 20px}.day-selector{font-size:11px;min-width:250px}.day-selector select{font-size:13px;padding:9px 12px}.day-selector-bar>span:last-child{font-size:11px;color:var(--muted)}.day-navigation{display:flex;gap:12px;margin:0 0 23px}.day-step{display:flex;align-items:center;gap:11px;border:1px solid var(--line);background:white;padding:12px 18px;border-radius:12px;min-width:260px;text-align:left;color:var(--muted)}.day-step>span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#f1f2f5;font-weight:700}.day-step strong{font-size:12px;display:block}.day-step small{font-size:10px}.day-step.active{border-color:#c7bce6;background:#f6f3fc;color:var(--purple)}.day-step.active>span{background:var(--purple);color:white}.daily-dashboard{position:sticky;top:0;z-index:12;background:#f7f8faf5;backdrop-filter:blur(8px);padding:8px 0 11px}.dashboard-caption{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:9px}.dashboard-caption strong{font-weight:600;color:var(--ink)}.daily-dashboard .summary-grid{margin-bottom:0}.daily-dashboard .summary-card{padding:13px 16px 12px;border-top:3px solid #d8dce6}.daily-dashboard .summary-value{font-size:26px;margin:5px 0}.daily-dashboard .summary-reference{font-size:10px;color:#737b8a}.range-status{display:block;font-size:10px;font-weight:600;margin-top:7px}.summary-card.status-ok{border-color:#d7e8dc;border-top-color:#699c7b;background:#f5faf6}.summary-card.status-error{border-color:#ecd2d7;border-top-color:#c66a78;background:#fff6f7}.summary-card.status-incomplete{border-color:#ecdfc6;border-top-color:#c19a53;background:#fffbf2}.status-ok .range-status{color:#4d795d}.status-error .range-status{color:#a74455}.status-incomplete .range-status{color:#9b742e}.range-meter{position:relative}.range-meter .meter-band{display:none}.summary-card progress{margin-top:9px}.status-ok progress::-webkit-progress-value{background:#699c7b}.status-error progress::-webkit-progress-value{background:#c66a78}.status-incomplete progress::-webkit-progress-value{background:#c19a53}.status-ok progress::-moz-progress-bar{background:#699c7b}.status-error progress::-moz-progress-bar{background:#c66a78}.status-incomplete progress::-moz-progress-bar{background:#c19a53}.day-alerts:empty{display:none}.day-alerts{margin:8px 0 12px}.validation-message{display:flex;align-items:flex-start;gap:10px;border-radius:10px;padding:12px 15px;font-size:12px;line-height:1.7;background:#f1f2f6;color:var(--muted)}.validation-message.error{background:#fbecef;color:#a14050;border:1px solid #efd0d7}.validation-message.incomplete{background:#fff5e4;color:#956e2c;border:1px solid #efdfc2}.validation-message.ok{background:#edf5ee;color:#4f785b;border:1px solid #d7e6d9}.validation-message svg{width:17px;height:17px;margin-top:2px}.planner-panel{overflow:hidden}.planner-heading{display:flex;justify-content:space-between;align-items:center;padding:24px 23px 18px;gap:20px}.planner-heading p{font-size:12px;margin-top:7px}.balance-switch{font-size:11px;white-space:nowrap}.planner-tools{display:flex;align-items:center;justify-content:space-between;padding:0 23px 20px;gap:10px;flex-wrap:wrap}.planner-tools .button-row{flex-wrap:wrap;gap:5px}.planner-table{min-width:1070px}.planner-table th{font-size:10px;padding:13px 11px;background:#f9fafc}.planner-table th small{display:block;font-size:9px;font-weight:400}.planner-table td{padding:12px 10px}.planner-table th:first-child,.planner-table td:first-child{width:225px;min-width:210px;position:sticky;left:0;background:white;z-index:1;border-right:1px solid #f0f1f5}.planner-table thead th:first-child{background:#f9fafc}.grid-meal-name{display:flex;align-items:center;gap:8px}.grid-meal-name input[type=text],.grid-meal-name input:not([type]){width:165px;font-size:12px;font-weight:600;padding:7px 6px;border-color:transparent}.grid-meal-name input:focus{border-color:var(--purple)}.grid-order{display:flex;align-items:center;margin:5px 0 0 24px;gap:2px}.grid-order .icon-btn{width:25px;height:22px;font-size:15px}.grid-order .small-btn{font-size:10px;padding:4px 6px}.allocation-cell{display:flex;align-items:center;border:1px solid #e0e3ec;border-radius:9px;background:#fff;overflow:hidden;width:113px;margin-left:auto}.allocation-cell input{width:82px;padding:9px 5px 9px 8px;border:0;border-radius:0;box-shadow:none;font-size:12px;text-align:right;-moz-appearance:textfield}.allocation-cell input::-webkit-inner-spin-button{appearance:none}.cell-lock{width:29px;height:33px;background:#f6f7fa;border:0;border-left:1px solid #eff0f5;color:#939aad;font-size:10px;font-weight:600}.cell-lock svg{width:12px;height:12px}.allocation-cell.fixed{border-color:#b7a7dc;background:#f6f2fd}.allocation-cell.fixed input{background:#faf8fe;color:#6b51a7;font-weight:650}.allocation-cell.fixed .cell-lock{background:#eee7fa;color:#7755b7}.allocation-cell:focus-within{box-shadow:0 0 0 3px #7460bc13;border-color:var(--purple)}.cell-changed{animation:cell-flash 1.2s ease-out}@keyframes cell-flash{0%,35%{box-shadow:0 0 0 3px #9dbfae70;background:#e2f2e8}100%{box-shadow:none}}.grid-kcal{font-weight:650;font-size:12px;white-space:nowrap}.planner-table select{font-size:11px;padding:7px 5px;min-width:120px;max-width:150px}.planner-table tfoot th,.planner-table tfoot td{font-size:11px;background:#f9fafc;border-top:1px solid var(--line);font-weight:650;padding:13px 10px}.planner-table .grid-remaining td,.planner-table .grid-remaining th{background:#fff;font-size:10px;font-weight:500}.text-error{color:#af4256!important}.text-ok{color:#4c7a5d!important}.text-incomplete{color:#a47a32!important}.planner-bottom{padding:15px 22px;display:flex;justify-content:space-between;border-top:1px solid var(--line)}.planner-note{font-size:11px;color:var(--muted);line-height:1.8;padding:0 23px 19px}.grid-feedback{margin-top:14px}.stage-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0}.stage-actions>span{font-size:11px;color:var(--muted);max-width:600px}.stage-actions button[aria-disabled=true]{background:#9588b8;box-shadow:none}.meal-reference{display:flex;gap:13px;flex-wrap:wrap;padding:13px 0 7px;color:#8a91a2;font-size:10px;border-bottom:1px solid #f1f2f6}.meal-reference b{font-weight:550;color:#717b90}.reference-label{font-weight:650;color:var(--purple)}.meal-header .locked{color:var(--purple);background:var(--purple-soft)}.food-combobox{position:relative;width:100%;min-width:190px}.food-combobox input{font-size:11px;width:100%;padding:8px 28px 8px 10px;border-color:#e3e5ed}.food-combobox .combo-toggle{position:absolute;right:2px;top:3px;width:23px;height:26px;padding:5px}.food-combobox .combo-toggle svg{width:12px;height:12px}.food-results{position:fixed;z-index:90;background:white;border:1px solid #c9bce6;border-radius:11px;padding:5px;box-shadow:0 12px 35px #2e234a26;overflow:auto}.food-results>button{width:100%;border:0;background:white;text-align:left;padding:9px 10px;border-radius:6px;color:var(--ink);display:block}.food-results>button strong{font-size:12px;font-weight:550;display:block}.food-results>button small{display:block;font-size:10px;margin-top:2px}.food-results>button[aria-selected=true],.food-results>button:hover{background:var(--purple-soft)}.wide-modal{width:min(900px,calc(100vw - 35px));max-width:900px}.goal-top{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin-bottom:14px}.goal-top label{font-size:12px}.goal-rule{border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:11px}.goal-rule-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:13px}.goal-rule-heading strong{font-size:13px}.goal-rule-heading select{font-size:12px;min-width:190px;padding:8px 10px}.goal-rule-fields{display:flex;gap:13px;align-items:flex-end}.goal-rule-fields label{font-size:11px;flex:1;max-width:220px}.goal-rule-fields input{font-size:12px;width:100%;padding:9px 11px}.goal-rule-result{font-size:11px;color:var(--purple);margin-top:11px}.goal-rule:has(select option[value=remainder]:checked){background:#f8f5fe;border-color:#d9cfee}#goals-preview{position:sticky;bottom:-25px;background:white;padding-top:8px}#goals-form .modal-actions{position:sticky;bottom:-25px;background:#fffffff5;padding:15px 0 0;margin-top:12px}.meal-header .meal-header-title{min-width:115px}.day-selector-bar .day-selector select{max-width:350px}
@media(min-width:1400px){.main-content:has(#planner-body){max-width:1800px}.daily-dashboard .summary-grid{grid-template-columns:repeat(5,1fr)}}
@media(max-width:1050px){.planner-heading{align-items:flex-start;flex-direction:column;gap:13px}.planner-tools{padding:0 17px 16px}.planner-heading{padding:19px 17px 16px}.day-step{min-width:0;flex:1}.meal-macros{display:none}.daily-dashboard .summary-value{font-size:23px}.daily-dashboard .summary-card{padding:12px}.summary-grid{gap:8px}}
@media(max-width:700px){.daily-dashboard .summary-grid{display:grid;grid-template-columns:repeat(5,145px);overflow-x:auto;gap:8px;padding:2px 0 6px}.daily-dashboard .summary-card.energy{grid-column:auto}.daily-dashboard .summary-card{min-height:137px}.day-selector-bar{gap:10px;flex-wrap:wrap}.day-selector{min-width:190px;flex:1}.day-selector-bar>span:last-child{display:none}.day-navigation{gap:8px;margin-bottom:15px}.day-step{padding:11px 10px;gap:8px}.day-step strong{font-size:10px}.day-step small{font-size:9px}.day-step>span{width:23px;height:25px;font-size:11px}.stage-actions{align-items:flex-start;flex-direction:column;gap:13px}.stage-actions .btn{width:100%}.dashboard-caption{font-size:10px}.daily-dashboard{padding-top:7px}.editor-toolbar{flex-wrap:wrap}.toolbar-actions .save-state{display:none}.planner-note{padding:0 16px 16px;font-size:10px}.planner-bottom{padding:13px 10px}.planner-bottom .btn{font-size:10px;padding:9px 8px}.planner-tools .btn{font-size:10px}.grid-feedback .validation-message{font-size:11px}.meal-reference{gap:9px;font-size:9px}.meal-header-title{min-width:84px!important}.meal-header{gap:6px}.meal-header .meal-kcal{font-size:11px}.meal-header .meal-kcal span{font-size:8px}.meal-header>.icon-btn{width:22px;padding:4px}.section-heading:has(#compose-day-ai){align-items:flex-start;gap:10px}.section-heading #compose-day-ai{font-size:10px;padding:8px}.section-heading .button-row{gap:2px}.section-heading #expand-all{display:none}.section-heading h2{font-size:14px}.goal-top{gap:10px;grid-template-columns:1.6fr 1fr}.goal-rule{padding:12px}.goal-rule-heading{gap:8px}.goal-rule-heading select{min-width:0;width:175px;font-size:11px}.goal-rule-fields{gap:8px}.goal-rule-fields input{padding:8px 6px}.goal-rule-fields label{font-size:10px}.goal-rule-result{font-size:10px}.wide-modal{width:calc(100vw - 22px);padding:22px 16px}.wide-modal .modal-top h2{font-size:20px}.planner-table td:first-child,.planner-table th:first-child{min-width:175px;width:175px}.grid-meal-name input:not([type]){width:127px}.grid-order{margin-left:22px}.day-selector-bar .badge{font-size:9px}.day-selector-bar .day-selector select{max-width:100%}.day-selector-bar .day-selector{max-width:260px}}

.meal-table input{scroll-margin-top:210px}.planner-table input{scroll-margin-top:215px}

.allocation-cell.cell-error{border-color:#c56377;background:#fff0f3}.allocation-cell.cell-error input{color:#aa3b51;background:#fff0f3}.allocation-cell.cell-error .cell-lock{background:#f7dfe5;color:#ad3e55}

.goals-footer{position:sticky;bottom:-25px;background:white;padding-top:8px;z-index:3;border-top:1px solid var(--line)}.goals-footer #goals-preview{position:static;padding-top:0}.goals-footer .modal-actions{position:static!important;padding-top:10px!important;margin-top:0!important}.goals-footer .validation-message{font-size:11px;padding:9px 12px}
