/* Fuel keeps the next action visible while the full guide stays optional. */
#fuelHome .fuel-guide-progress .row,#fuelHome .fuel-progress .row{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 12px}
#fuelHome .fuel-guide-progress p{margin:10px 0 0}
#fuelHome .fuel-progress>p{margin:0}
#fuelHome .fuel-meal-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:60px;padding:12px 0;border:0;border-bottom:1px solid var(--edge);background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}
#fuelHome .fuel-meal-row:last-child{border-bottom:0}
#fuelHome .fuel-meal-row>span:first-child{min-width:0}
#fuelHome .fuel-meal-row b,#fuelHome .fuel-meal-row small{display:block}
#fuelHome .fuel-meal-row small{margin-top:4px;color:var(--muted);font-size:.82rem;overflow-wrap:anywhere}
#fuelHome .fuel-meal-state{flex-shrink:0;color:var(--accent);font-size:.75rem}
#fuelHome .fuel-meal-row:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
#fuelHome #fuelAction:empty{display:none}
#fuelHome .fuel-next>p:last-child{margin-bottom:0}
/* Short setup steps and large, legible food choices. */
.fuel-capture-step,.meal-setup-step,.meal-choice-group{border:0;padding:0;margin:16px 0;min-width:0}
.fuel-capture-step[hidden],.meal-setup-step[hidden]{display:none!important}
.fuel-capture-step>legend,.meal-setup-step>legend{font-size:1.2rem;font-weight:750;margin:0 0 12px;color:var(--text)}
.meal-choice-group>legend{font-size:.85rem;color:var(--muted);padding:8px 0}
.meal-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:12px 0 18px}
.meal-choice{display:flex!important;align-items:center;gap:10px;border:1px solid var(--edge);border-radius:12px;padding:12px!important;min-height:52px;background:#c8f47704;cursor:pointer;line-height:1.4}
.meal-choice:has(input:checked){border-color:#b8ec75;background:#b8ec7512;color:#e6ffc9}
.meal-choice:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.meal-choice input{flex:none;width:20px!important;height:20px;min-height:0!important;margin:0!important;accent-color:var(--accent)}
.meal-step-nav{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--edge);padding-top:18px;margin-top:22px}
.meal-step-nav .button{min-width:120px}
.meal-flow-progress{font-size:.78rem;letter-spacing:.04em;color:var(--accent);margin:18px 0 12px}
#fuelTargetsSetup{margin:20px 0}#fuelTargetsSetup>summary{font-size:1rem}
.target-review{border-top:1px solid var(--edge);padding-top:20px}
#fuelMacroForm{padding-top:10px}#manualCalories{color:var(--accent);font-weight:700}
#fuelContinueFoods{margin-top:20px}
.fuel-setup-flow{display:grid;gap:0}
.meal-setup-step .fuel-fields{margin:12px 0 18px}
@media(max-width:600px){.meal-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.meal-choice{font-size:.9rem;padding:10px!important}.meal-step-nav .button{flex:1;min-width:0}#fuelMacroForm .button{width:100%;margin-top:8px}.fuel-capture-step .fuel-fields{grid-template-columns:1fr}.meal-planner .panel{padding:16px}}
.fuel-portion-list,.meal-portion-list{padding-left:20px;margin:10px 0;line-height:1.65}
.fuel-serving{margin:14px 0 18px;padding:12px 16px;border-radius:12px;background:#c8f47708;border:1px solid var(--edge)}
.fuel-serving>p{margin:0}.fuel-serving>p:last-child{margin-top:8px}
/* Three quiet destinations inside Fuel, with saved forms kept mounted. */
#fuelShell{padding-top:24px;min-width:0}
#fuelShell .fuel-heading{margin-bottom:22px}
#fuelShell .fuel-heading h1{font-size:clamp(2.3rem,6vw,3.3rem);margin-bottom:8px}
#fuelShell .fuel-heading p{margin-bottom:0}
.fuel-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:5px;margin-bottom:22px;background:var(--panel);border:1px solid var(--edge);border-radius:14px}
.fuel-tabs button{min-height:46px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-weight:750;font-size:.94rem;padding:10px 6px}
.fuel-tabs button[aria-pressed=true]{background:var(--accent);color:#182018;box-shadow:0 2px 8px #0002}
#fuelShell [hidden]{display:none!important}
.fuel-section{min-width:0}
#fuelShell #fuelHome{padding-top:0;gap:16px}
#fuelShell .fuel-mode{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
#fuelShell .fuel-mode h2{font-size:1.1rem;margin:0 0 8px}
#fuelShell .fuel-mode .eyebrow{font-size:.65rem;margin-bottom:8px}
#fuelShell .fuel-mode p{margin-bottom:0}
#fuelShell .fuel-mode button{flex-shrink:0}
#fuelSetupChoice .fuel-choices{display:grid;gap:10px}
#fuelSetupChoice .fuel-choices button{text-align:left;white-space:normal;padding:16px}
#fuelSetupChoice .fuel-choices span{display:block;color:var(--muted);font-weight:400;font-size:.86rem;margin-top:6px}
#fuelSetupChoice label{display:grid;gap:8px;margin:16px 0}
#fuelSetupChoice input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}
#fuelSetupChoice select{min-height:48px;width:100%;padding:12px;background:var(--bg);color:var(--text);border:1px solid var(--edge);border-radius:10px}
#fuelShell #fuelTargetsSetup{margin:0 0 16px}
#fuelShell .fuel-records{margin-top:18px}
#fuelShell .fuel-records>summary{font-size:.94rem}
#fuelShell .fuel-progress{padding:18px;gap:14px}
#fuelShell .fuel-progress .eyebrow{margin-bottom:0;font-size:.68rem}
#fuelShell .fuel-progress details{border-top:1px solid var(--edge);padding-top:4px}
#fuelShell .fuel-progress h2{font-size:1.2rem;margin:4px 0}
#fuelShell .fuel-progress details>div{margin:10px 0}
#fuelWeekContent>.section-head{margin-top:0}
#fuelShell .meal-planner>h2{font-size:1.25rem;margin:0 0 10px}
#fuelShell .fuel-week-empty h2{margin-bottom:12px}
@media(max-width:600px){#fuelShell{padding-top:18px}.fuel-tabs{margin-bottom:18px}#fuelShell .fuel-mode{padding:16px}#fuelShell .fuel-mode .button{padding:10px}#fuelShell .fuel-mode h2{font-size:1rem}#fuelShell .meal-planner{padding:16px}}
#fuelShell .fuel-mode{display:block;margin-bottom:12px;padding:8px 16px}
#fuelShell .fuel-mode>summary{min-height:44px;padding:12px 0;font-size:.88rem;font-weight:650}
#fuelShell .fuel-mode>p{margin:10px 0}
#fuelShell .fuel-heading{margin-bottom:18px}
#fuelShell .meal-planner{margin-top:12px}
#fuelSetupStage>.button{font-size:.82rem;min-height:40px;padding:8px 0}
#fuelWeekContent{padding:20px;background:var(--panel);border:1px solid var(--edge);border-radius:18px;min-width:0}
#fuelWeekContent .meal-task input[type=checkbox]{width:22px;height:22px;flex-shrink:0;accent-color:var(--accent)}
#fuelWeekContent details>summary{min-height:48px;padding:14px 0}
#fuelWeekContent input:not([type=checkbox]){background:var(--bg);color:var(--text);border:1px solid var(--edge);border-radius:10px;padding:10px;max-width:100%}
#fuelWeekContent .meal-timer label{display:grid;gap:8px;margin:12px 0}
@media(max-width:600px){#fuelWeekContent{padding:16px}}
#fuelShell .fuel-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
#fuelShell .fuel-heading h1{margin:0;font-size:2rem}
#fuelShell .fuel-heading p{font-size:.85rem}
#fuelHome .fuel-meal-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
#fuelHome .fuel-meal-heading .eyebrow{margin:0;font-size:.65rem;max-width:50%}
#fuelHome .fuel-meal-heading label{margin:0;flex-shrink:0}
#fuelHome .fuel-meal-heading select{padding:9px 10px;min-height:40px;font-size:.85rem;width:125px}
#fuelHome .fuel-next h2{margin:14px 0}
#fuelHome .fuel-serving{margin:12px 0 16px;padding:10px 14px}
#fuelHome .fuel-serving .fuel-portion-list{margin:8px 0 0}
.fuel-main-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.fuel-main-actions>.button:only-child{grid-column:1/-1}
#fuelHome .fuel-main-actions .button{min-width:0;padding-left:10px;padding-right:10px}
#fuelShell .fuel-progress{padding:16px;gap:10px}
#fuelShell .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#fuelShell .fuel-progress{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
#fuelShell .fuel-progress>.eyebrow,#fuelShell .fuel-progress>details,#fuelShell .fuel-progress>h2,#fuelShell .fuel-progress>p,#fuelShell .fuel-progress>button{grid-column:1/-1}
#fuelShell .fuel-progress>div>.row{flex-direction:column;align-items:flex-start;gap:3px}
#fuelShell .fuel-progress>div>.row span{font-size:.8rem;color:var(--muted)}
#fuelShell .fuel-progress details>summary{padding:8px 0;min-height:44px}
/* Corrections stay in one dated ledger, below the next action. */
#fuelHome .fuel-food-ledger>summary{min-height:48px;padding:12px 0}
#fuelHome .fuel-food-ledger>label{display:grid;gap:8px;margin:12px 0;max-width:240px}
#fuelHome .fuel-ledger-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px 0;border-top:1px solid var(--edge)}
#fuelHome .fuel-ledger-row b{overflow-wrap:anywhere}
#fuelHome .fuel-ledger-row p{margin:6px 0 0}
#fuelHome .fuel-ledger-actions{display:flex;align-items:center;gap:6px}
#fuelHome .fuel-ledger-actions .button{padding:10px;min-height:44px}
#fuelHome #fuelAction .button{margin:6px 6px 6px 0;white-space:normal}
#fuelHome #fuelAddSnack{margin-top:8px;width:100%}
.fuel-weight-history{max-height:240px;overflow-y:auto}
.fuel-weight-checkin h2{font-size:1.35rem}
@media(max-width:400px){#fuelHome .fuel-ledger-row{grid-template-columns:1fr}#fuelHome .fuel-ledger-actions{justify-content:flex-end}}
#fuelHome .fuel-recent-foods{margin-bottom:16px}
#fuelHome .fuel-recent-foods .button{display:block;width:100%;text-align:left;margin:8px 0}
