/* Meal building: persistent multi-selection, editable rows and a single save. */
.meal-card{display:flex;flex-direction:column;min-width:0}.meal-card .card-head{gap:12px;align-items:flex-start}.meal-card .card-head>.row{min-width:0}.meal-card h3{line-height:1.3}.meal-card .card-head .small{margin-top:4px}.meal-edit-link{flex-shrink:0;min-height:44px;white-space:nowrap;font-size:12px}.meal-recorded{display:flex;align-items:center;gap:7px;color:#bdff39;font-size:11px;font-weight:650;margin:0 0 12px 0}.meal-recorded svg{width:16px;height:16px}.food-review-row{width:100%;text-align:left;gap:12px;color:#f3f5ef;min-height:66px;border-radius:0}.food-review-row:hover{background:#151a12}.food-review-row .grow{min-width:0;overflow-wrap:anywhere}.food-review-row>svg{width:16px;height:16px;color:#90998a;flex-shrink:0}.food-saved-check{display:grid;place-items:center;background:#1b2b0f;border-radius:50%;color:#bdff39;width:23px;height:23px;flex-shrink:0}.food-saved-check svg{width:14px;height:14px}.add-food-row{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;width:100%;border:1px dashed #48573a;border-radius:12px;color:#bdff39;font-size:13px;font-weight:600;margin-top:18px;background:#11170c}.add-food-row svg{width:18px;height:18px}.add-food-row:hover{background:#1e2c14;border-color:#bdff39}.meal-draft-note{display:flex;align-items:center;gap:8px;border:1px solid #4d4930;background:#222116;color:#f5dfa1;padding:10px 12px;border-radius:10px;min-height:44px;font-size:12px;text-align:left;margin-top:12px}.meal-draft-note svg{width:15px;height:15px;flex-shrink:0}.meal-draft-note span{flex:1;text-align:right;font-size:10px;color:#c2b995}.meal-slot-picker .activity-row{width:100%;text-align:left;min-height:76px;gap:14px}.meal-slot-picker .activity-row strong{display:block}.meal-slot-picker .activity-row small{display:block;margin-top:5px}.meal-slot-picker .activity-row>svg{width:18px;height:18px}
#modal.meal-sheet{width:min(620px,calc(100vw - 32px));max-height:min(920px,92dvh,var(--meal-viewport,92dvh));padding:0;overflow:hidden;background:#10130e;border:1px solid #30392a;border-radius:24px}#modal.meal-sheet[open]{display:flex;flex-direction:column}#modal.meal-sheet .modal-head{flex-shrink:0;padding:20px 24px;border-bottom:1px solid #2a3225}#modal.meal-sheet .modal-head h2{font-size:22px;letter-spacing:-.6px}#modal.meal-sheet .modal-head>.icon-btn{order:-1;margin-right:12px;width:44px;height:44px}#modal.meal-sheet .modal-head h2{flex:1}#modal.meal-sheet .modal-body{display:flex;flex-direction:column;overflow:hidden;padding:0;max-height:none;min-height:0}.meal-scroll{overflow-y:auto;overscroll-behavior:contain;padding:20px 24px 8px;min-height:0;scroll-padding:18px}.meal-intro{color:#adb5a7;font-size:13px;line-height:1.5;margin:0 0 22px}.meal-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}.meal-section-head h3{font-size:14px;font-weight:650}.meal-section-head .text-button{font-size:11px;min-height:36px;color:#bdff39}.meal-section-head [data-meal-count]{display:inline-grid;place-items:center;min-width:21px;height:21px;background:#25321c;color:#bdff39;border-radius:7px;font-size:11px;margin-left:5px}.selected-food-heading{margin-top:26px;margin-bottom:8px}.food-choices{display:flex;flex-wrap:wrap;gap:8px}.food-choice{display:flex;align-items:center;gap:7px;min-height:44px;padding:9px 13px 9px 10px;border-radius:11px;border:1px solid #35402c;background:#191e15;color:#d9dfd2;font-size:12px;text-align:left;transition:background .12s,border-color .12s,color .12s}.food-choice[aria-pressed=true]{background:#273a14;border-color:#a2d83a;color:#d8ff9a}.food-choice:hover{border-color:#8aa365}.food-choice-mark{display:grid;place-items:center;flex-shrink:0}.food-choice-mark svg{width:16px;height:16px}.meal-search{display:block;margin-bottom:12px}.meal-search input{width:100%;min-height:46px;font-size:16px;background:#090c08;border:1px solid #35402c;border-radius:11px;color:#edf2e6;padding:10px 13px}.meal-column-labels{display:grid;grid-template-columns:minmax(0,1fr) 132px;font-size:9px;font-weight:650;letter-spacing:1px;color:#a5af9b;margin:0 52px 7px 30px;gap:10px}.meal-edit-row{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #2a3225;min-width:0}.food-row-mark{display:flex;align-items:center;justify-content:center;color:#bdff39;width:22px;flex-shrink:0}.food-row-mark svg{width:16px;height:16px}.meal-food-fields{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:10px}.meal-food-fields input{width:100%;min-width:0;background:#090c08;border:1px solid #37412e;border-radius:9px;color:#f0f4e9;font-size:16px;padding:11px 10px;min-height:46px;line-height:1.35}.meal-food-fields input:focus,.meal-search input:focus{outline:2px solid #bdff39;outline-offset:1px}.meal-food-fields input[aria-invalid=true]{border-color:#ffb69e}.meal-food-fields input::placeholder{color:#929e86;font-size:13px}.meal-edit-row .food-row-remove{width:44px;height:44px;min-width:44px;flex-shrink:0}.meal-edit-row .food-row-remove[hidden]{display:block;visibility:hidden}.empty-food-row{border-bottom:0}.empty-food-row .meal-food-fields input{border-style:dashed;background:transparent}.empty-food-row .food-row-mark{color:#8e9a80}.meal-help{font-size:11px;line-height:1.6;color:#99a58f;margin:12px 0 16px 30px;max-width:400px}.meal-savebar{flex-shrink:0;border-top:1px solid #34402a;padding:16px 24px max(12px,env(safe-area-inset-bottom));background:#151b10;box-shadow:0 -10px 28px #090c0855}.meal-save-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;line-height:1.4}.meal-save-summary strong{font-size:12px;color:#eaf2df}.meal-save-summary span{font-size:10px;color:#a7b797;text-align:right}.meal-savebar .button{min-height:50px;font-size:14px;justify-content:center}.meal-back{display:block;width:100%;min-height:36px;font-size:11px;color:#9fac93;margin-top:4px}.meal-inline-error{padding:12px;border:1px solid #996d52;background:#332218;color:#ffd5ba;font-size:13px;line-height:1.5;border-radius:10px;margin:10px 0}.meal-inline-error[hidden]{display:none}.meal-inline-error+button{margin-bottom:16px;min-height:44px}.meal-inline-error+button[hidden]{display:none}
@media(max-width:700px){#modal.meal-sheet{width:100%;max-width:100%;max-height:min(94dvh,var(--meal-viewport,94dvh));margin:auto 0 0;border-radius:22px 22px 0 0;border-bottom:0}#modal.meal-sheet .modal-head{padding:12px 16px;min-height:68px}#modal.meal-sheet .modal-head h2{font-size:20px}.meal-scroll{padding:18px 16px 4px}.meal-savebar{padding:12px 16px max(8px,env(safe-area-inset-bottom))}.meal-intro{font-size:12px;margin-bottom:14px}.food-choice{font-size:12px;min-height:44px;padding-right:11px}.meal-food-fields{grid-template-columns:minmax(0,1fr) 108px;gap:7px}.meal-column-labels{grid-template-columns:minmax(0,1fr) 108px;gap:7px;margin-right:50px}.meal-edit-row{gap:6px}.meal-edit-row .food-row-remove{width:44px;min-width:44px}.meal-food-fields input{padding:10px 8px}.meal-save-summary strong{font-size:11px}.meal-save-summary span{font-size:9px}.meal-help{font-size:10px;margin-left:28px}.selected-food-heading{margin-top:20px}.meal-card{padding:20px}.meal-card .card-head>.row{gap:10px}.meal-card .card-head .icon-tile{width:34px;height:34px;min-width:34px}.meal-card .card-head h3{font-size:15px}.meal-edit-link{font-size:11px}.meal-card .card-head .small{font-size:10px}.meal-draft-note span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.food-choice{transition:none}}
