.copilot-plan-choices { display:grid; gap:10px; margin:14px 0 4px; }
.copilot-plan-choices button { display:grid; grid-template-columns:26px minmax(0,1fr) 12px; align-items:center; gap:12px; width:100%; min-height:64px; text-align:left; border:1px solid var(--line); border-radius:8px; padding:14px; background:var(--ai-message-surface); color:var(--ink); font-size:14px; line-height:1.45; letter-spacing:0; }
.copilot-plan-choices button:hover { border-color:var(--blue); background:var(--blue-soft); }
.copilot-plan-choices .nav-feature-icon { width:24px; height:24px; }
.copilot-plan-choices .nav-feature-icon,.ai-planning-shortcuts .nav-feature-icon { display:block; background:currentColor; mask:var(--planning-ui-icon) center/contain no-repeat; -webkit-mask:var(--planning-ui-icon) center/contain no-repeat; color:var(--blue); }
.copilot-plan-choices .nav-feature-icon.plan,.ai-planning-shortcuts .nav-feature-icon.plan { --planning-ui-icon:url('/assets/features/planning-monk.svg'); }
.copilot-plan-choices .nav-feature-icon.home { --planning-ui-icon:url('/assets/features/infinity.svg'); }
.copilot-plan-choices button span { min-width:0; overflow-wrap:anywhere; }
.copilot-plan-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.copilot-plan-actions button { min-height:42px; border-radius:8px; padding:10px 12px; white-space:normal; font-size:13px; line-height:1.4; }
.ai-planning-shortcuts { padding:8px 16px; border-bottom:1px solid var(--line); flex-shrink:0; background:var(--ai-message-surface); }
.ai-planning-shortcuts[hidden] { display:none; }
.ai-planning-shortcuts button { display:flex; align-items:center; gap:8px; width:100%; text-align:left; padding:7px 0; min-height:36px; background:transparent; color:var(--ink); border:0; font-size:13px; line-height:1.4; }
.ai-planning-shortcuts .nav-feature-icon { width:20px; height:20px; }
.ai-planning-shortcuts button:disabled { opacity:.5; cursor:not-allowed; }
#aiChat{grid-template-rows:auto auto auto minmax(0,1fr) auto}
#aiOnboardingNotice{grid-row:2}
#aiPlanningShortcuts{grid-row:3}
#aiMessages{grid-row:4}
#aiForm{grid-row:5}
.copilot-diet-assessment { width:100%; min-width:0; color:var(--ink); padding:12px 0; }
.copilot-diet-assessment header { display:flex; gap:8px; justify-content:space-between; align-items:flex-start; }
.copilot-diet-assessment h3 { font-size:17px; line-height:1.4; margin:3px 0 10px; letter-spacing:0; }
.copilot-diet-assessment .eyebrow { margin:0; font-size:11px; }
.copilot-diet-assessment p { font-size:13px; line-height:1.55; margin:8px 0; overflow-wrap:anywhere; }
.copilot-assessment-close { width:36px; height:36px; flex-shrink:0; border:0; border-radius:50%; background:transparent; color:var(--muted); font-size:24px; }
.copilot-energy-table { width:100%; }
.copilot-energy-table table { table-layout:fixed; border-collapse:collapse; width:100%; font-size:12px; font-variant-numeric:tabular-nums; }
.copilot-energy-table caption { text-align:left; color:var(--muted); padding:0 0 10px; font-size:12px; }
.copilot-energy-table th,.copilot-energy-table td { padding:9px 3px; border-bottom:1px solid var(--line); text-align:right; overflow-wrap:anywhere; }
.copilot-energy-table th:first-child { text-align:left; width:22%; }
.copilot-energy-table thead th { font-size:11px; color:var(--muted); font-weight:500; }
.copilot-diet-assessment dl { margin:12px 0; }
.copilot-diet-assessment dl>div { display:flex; justify-content:space-between; gap:12px; padding:6px 0; font-size:12px; line-height:1.5; }
.copilot-diet-assessment dd { margin:0; font-weight:650; text-align:right; }
.copilot-diet-assessment dt { color:var(--muted); }
.copilot-diet-pending { list-style:none; padding:0; margin:10px 0; }
.copilot-diet-pending li { display:flex; justify-content:space-between; gap:10px; font-size:12px; padding:6px 0; border-bottom:1px solid var(--line); }
.copilot-diet-pending span { color:var(--muted); }
.copilot-diet-assessment .copilot-assessment-note { color:var(--muted); font-size:12px; }
.copilot-plan-choices button:focus-visible,.copilot-plan-actions button:focus-visible,.copilot-assessment-close:focus-visible,.ai-planning-shortcuts button:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.copilot-flow-back{width:44px;min-width:44px;height:44px;padding:0!important;font-size:22px}
.copilot-first-flow{display:grid;gap:12px;min-width:0}
.copilot-first-flow h3,.copilot-first-flow h4{font-size:16px;margin:0;letter-spacing:0}
.copilot-first-flow .copilot-plan-option{border:1px solid var(--line);border-radius:8px;padding:12px;min-width:0}
.copilot-first-flow .copilot-plan-option-grid{display:grid;grid-template-columns:1fr;gap:12px}
.copilot-first-flow dl,.copilot-strategy-result dl{margin:0;display:grid;gap:8px}
.copilot-first-flow dl>div,.copilot-strategy-result dl>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.copilot-first-flow dd,.copilot-strategy-result dd{margin:0;overflow-wrap:anywhere}
.copilot-strategy-result{border-top:1px solid var(--line);padding-top:12px}
.copilot-first-flow details{min-width:0}
.copilot-first-flow summary{cursor:pointer;padding:8px 0}
.copilot-first-flow .copilot-plan-actions>button{white-space:normal;overflow-wrap:anywhere}
.copilot-first-flow .first-plan-confirm-actions{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:stretch}
.copilot-first-flow .first-plan-confirm-actions .copilot-flow-back{height:100%}
.copilot-first-flow [data-first-flow="cancel"]{min-height:44px}
.copilot-first-flow .first-plan-summary>div{border:0;background:none;padding:4px 0;min-width:0;display:block}
.copilot-first-flow .first-plan-summary dd{font-weight:700}
/* The first-plan conversation uses the same weekly preview as the delivery sheet. */
#aiChat .ai-msg:has(.copilot-first-flow .week-preview){width:100%;max-width:100%}
.copilot-first-flow .first-plan-summary{gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.copilot-first-flow .first-plan-summary>div{padding:0}
.copilot-first-flow .first-plan-summary dt{color:var(--muted);font-size:.68rem;line-height:1.3}
.copilot-first-flow .first-plan-summary dd{margin-top:3px;color:var(--ink);font-size:.8rem;line-height:1.3}
.copilot-first-flow .first-plan-price-origin{color:var(--muted);font-size:.73rem;line-height:1.5}
.copilot-first-flow .week-preview{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}
.copilot-first-flow .week-preview summary{display:flex;align-items:center;gap:8px;min-height:46px;padding:12px 14px;list-style:none;color:var(--blue-deep);font-size:.77rem;font-weight:800;line-height:1.35}
.copilot-first-flow .week-preview summary::-webkit-details-marker{display:none}
.copilot-first-flow .week-preview summary::before{content:'▸';flex:none;color:var(--blue);transition:transform .16s ease}
.copilot-first-flow .week-preview details[open]>summary::before,.copilot-first-flow .week-preview[open]>summary::before{transform:rotate(90deg)}
.copilot-first-flow .week-preview>.wp-content{padding:0 9px 10px}
.copilot-first-flow .week-preview .wp-day{margin:0;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.copilot-first-flow .week-preview .wp-day>summary{padding:12px 10px;color:var(--ink)}
.copilot-first-flow .week-preview .wp-meals{display:grid;gap:5px;padding:0 8px 8px}
.copilot-first-flow .week-preview .wp-meal{border:1px solid transparent;border-radius:9px;background:var(--surface-2)}
.copilot-first-flow .week-preview .wp-meal[open]{border-color:var(--line)}
.copilot-first-flow .week-preview .wp-meal>summary{min-height:44px;padding:10px 9px;font-size:.72rem;color:var(--text)}
.copilot-first-flow .week-preview .wp-foods{margin:0;padding:0 10px 5px;list-style:none}
.copilot-first-flow .week-preview summary:focus-visible{outline:2px solid var(--blue);outline-offset:-3px;border-radius:9px}
@media(prefers-reduced-motion:reduce){.copilot-first-flow .week-preview summary::before{transition:none}}
.ai-onboarding-notice{display:flex;align-items:center;gap:8px;padding:8px 16px;color:var(--ink);font-size:12px;line-height:1.4;flex-shrink:0;background:var(--ai-message-surface)}
.ai-onboarding-notice[hidden]{display:none}
.ai-onboarding-notice::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--blue);flex-shrink:0}
.copilot-diet-assessment details{min-width:0;margin-top:12px}
.copilot-diet-assessment summary{cursor:pointer;padding:8px 0;font-size:13px}
.copilot-diet-assessment .copilot-assessment-outcome{font-size:15px;font-weight:650}
.copilot-diet-assessment h3,.copilot-diet-assessment h4{font-family:inherit}
.copilot-first-flow .copilot-calculating{display:flex;align-items:center;gap:10px}
.copilot-calculating::before{content:"";width:16px;height:16px;border:2px solid var(--line);border-top-color:var(--blue);border-radius:50%;animation:copilot-calculating-spin .8s linear infinite;flex-shrink:0}
[data-copilot-waiting]{display:flex;align-items:center;gap:12px;line-height:1.5}
.planning-choice-modal .first-plan-summary{display:grid;gap:12px;margin:16px 0}
.planning-choice-modal .first-plan-summary>div{display:block;min-width:0;padding:0;border:0;background:transparent}
.planning-choice-modal .first-plan-summary dt{color:var(--muted);font-size:12px}
.planning-choice-modal .first-plan-summary dd{margin:4px 0 0;overflow-wrap:anywhere}
.planning-choice-modal details{margin:12px 0}
.planning-choice-modal summary{cursor:pointer;padding:8px 0;color:var(--ink)}
.copilot-first-flow .copilot-plan-choices{width:100%;margin:0}
.copilot-first-flow .copilot-plan-choices button:focus-visible,.planning-choice-modal summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
@keyframes copilot-calculating-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.copilot-calculating::before{animation:none}}
/* Native first-diet setup reuses the existing planning task and domain controls. */
.first-diet-setup{display:grid;gap:18px;min-width:0;color:var(--ink)}
.first-diet-setup>header .eyebrow{margin:0 0 6px;color:var(--muted);font-size:12px}
.first-diet-setup>header h2{margin:0;font-size:24px;line-height:1.25;letter-spacing:0}
.first-diet-setup [data-first-diet-content]{min-width:0}
.first-diet-setup .copilot-plan-choices{margin:0}
.first-diet-setup .copilot-plan-choices button{background:var(--surface);font-size:16px}
.first-diet-setup button,.first-diet-setup summary{min-height:44px}
.first-diet-setup input,.first-diet-setup select{font-size:16px}
.first-diet-setup .copilot-first-flow p{margin:0;line-height:1.55}
.first-diet-setup .copilot-plan-actions>button{font-size:14px;min-height:44px}
.first-diet-setup .copilot-assessment-close{width:44px;height:44px}
.first-diet-setup [role="status"]{overflow-wrap:anywhere}
.first-diet-setup :is(button,input,select,summary):focus-visible{outline:2px solid var(--blue);outline-offset:3px}
@media(max-width:480px){.first-diet-setup .copilot-plan-actions{display:flex;gap:8px}.first-diet-setup .copilot-plan-actions>button:not(.copilot-flow-back){flex:1 1 160px}.first-diet-setup .first-plan-confirm-actions{display:grid;grid-template-columns:44px minmax(0,1fr)}}
[data-nutrition-review] ul{padding-inline-start:1.25em;margin-block:.5rem}
