:root{color-scheme:light;--accent-soft:#eff8d9;--accent-border:#d7e9af;--panel-soft:#f0f3e9;--accent-ink:#253116;--field:#fafbf7;--shadow-soft:0 12px 35px #24351b08}
.food-picker-option-head>b{font-size:13px;line-height:1.5}
.food-picker-option-macros{font-size:12px}.food-picker-option-macros small{font-size:10px}
.food-picker-filters button{font-size:12px;min-height:40px}
.food-picker-brand{display:block;font-size:11px;font-weight:500;color:var(--muted);margin-top:3px}
.food-picker-catalog-status{padding:10px 12px;font-size:12px;line-height:1.6;color:var(--muted);background:var(--panel-soft);border-bottom:1px solid var(--line)}
.food-picker-catalog-status button{display:block;border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:9px 12px;border-radius:9px;font:inherit;font-weight:700;margin-top:8px;min-height:40px}
.food-picker-more{display:block;width:100%;min-height:44px;border:0;border-top:1px solid var(--line);padding:10px;background:var(--panel-soft);color:var(--ink);font:inherit;font-size:12px;font-weight:700}
.food-picker-attribution{padding:10px 12px;font-size:11px;line-height:1.7;color:var(--muted);border-top:1px solid var(--line);background:var(--paper)}
.food-picker-attribution a,.food-picker-selected a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.food-picker-attribution span,.food-picker-selected small{display:block}
.card{box-shadow:var(--shadow-soft)}
.day:not(.active){color:var(--muted)}.trainer-note .label{color:var(--ink)}
.theme-toggle.button{padding:0;min-height:42px;border:1px solid var(--line);background:var(--paper);color:var(--ink)}
.theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.theme-options .button{padding:12px 8px;font-size:11px}
.theme-options .selected{background:var(--lime);color:#202820}
.goal-intro{background:linear-gradient(115deg,#edf6d7,#f1edfc);padding:25px}.goal-overview{background:var(--panel-soft)}
.goal-overview h2{font-size:24px}.goal-percent{font-size:42px;font-weight:800;letter-spacing:-2px}.goal-percent small{display:block;font-size:10px;letter-spacing:0;color:var(--muted);text-align:right}
.goal-track{height:9px;background:var(--line);border-radius:10px;overflow:hidden}.goal-track i{height:100%;display:block;background:#87ad43;border-radius:10px;transition:width .35s ease}
.goal-choice{border:0;padding:0;margin:0;display:grid;gap:10px}.goal-choice legend{font-size:12px;font-weight:800;margin-bottom:10px}.goal-choice label{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid var(--line);border-radius:14px;cursor:pointer;background:var(--field)}
.goal-choice label:has(input:checked){background:var(--panel-soft);border-color:#a1ba73;box-shadow:inset 0 0 0 1px #a1ba73}.goal-choice input{width:18px!important;height:18px;accent-color:#7d9d40;flex-shrink:0;padding:0!important}.goal-choice b{display:block;font-size:13px}.goal-choice small{display:block;color:var(--muted);font-size:11px;margin-top:6px}
[hidden]{display:none!important}.form-error{border:1px solid #ce9289;padding:12px;border-radius:12px;background:#fff0ec;color:#893c32;line-height:1.7;font-size:12px}
.goal-chart{width:100%;height:auto;min-height:120px;stroke:none;margin-top:25px}.goal-chart polyline{fill:none;stroke:#83aa49;stroke-width:4}.goal-chart circle{fill:var(--lime);stroke:#698b3b;stroke-width:2}.goal-chart .chart-guide{stroke:var(--line);stroke-width:1}
.goal-entry{display:flex;gap:16px;justify-content:space-between;border-bottom:1px solid var(--line);padding:20px 0}.goal-entry:last-child{border:0;padding-bottom:0}.goal-entry>div:first-child{min-width:0;flex:1}.goal-entry b{font-size:12px}.goal-entry p{overflow-wrap:anywhere}.goal-entry>div:last-child{text-align:right;flex-shrink:0}.goal-entry strong{display:block;font-size:19px}.goal-entry small{display:block;font-size:11px;color:var(--muted);margin:8px 0}.goal-entry .chip{display:inline-flex;margin-top:8px}
.goal-guide{background:var(--panel-soft)}.rating-badge{display:inline-flex;gap:6px;align-items:center;padding:8px 12px;background:var(--panel-soft);border-radius:30px;font-size:13px;font-weight:800;margin-top:14px}.rating-badge svg{width:16px;height:16px}.rating-badge small{font-size:9px;color:var(--muted);font-weight:500}.coach-score{font-size:40px;letter-spacing:-1.5px}.rating-row{display:flex;align-items:center;gap:14px;padding:19px 0;border-bottom:1px solid var(--line)}.rating-row:last-of-type{border:0}.rating-row .grow{flex:1}.rating-row b{font-size:12px}.rating-row strong{font-size:30px}.rating-formula{display:flex;gap:15px;align-items:center;padding:24px;background:var(--panel-soft);border-radius:16px}.rating-formula strong{font-size:36px}.rating-formula span{font-size:11px;line-height:1.6}.rating-points{font-size:24px;color:var(--green)}
.rating-sort-label{display:flex;align-items:center;gap:12px;font-size:11px;margin-bottom:18px;color:var(--muted)}.rating-sort-label select{border:1px solid var(--line);padding:10px;border-radius:10px;background:var(--paper);color:var(--ink)}
.subscription-main{background:linear-gradient(140deg,#f1f8df,var(--paper) 70%)}.subscription-main .subscription-heading{font-size:36px;line-height:1.25;margin-top:16px;letter-spacing:-1.2px}.benefit-list{list-style:none;padding:0;margin:24px 0;display:grid;gap:15px}.benefit-list li{font-size:12px;line-height:1.7;position:relative;padding-left:24px}.benefit-list li::before{content:'\2713';position:absolute;left:0;color:#6d8c3d;font-weight:800}
.plan-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.plan-option{background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:18px 8px;color:var(--ink)}.plan-option.selected{outline:2px solid #93ac61;outline-offset:0;background:var(--panel-soft)}.plan-option b,.plan-option span{display:block}.plan-option b{font-size:13px}.plan-option span{font-size:11px;color:var(--muted);margin-top:10px}
.local-workspace{border-style:dashed}.local-admin-note{background:var(--panel-soft);border:1px dashed #a2b787;border-radius:14px;padding:16px 20px;font-size:11px;line-height:1.8;color:var(--muted)}.product-admin-tabs{display:flex;gap:8px;overflow-x:auto;padding:3px 3px 18px;margin-bottom:16px}.product-admin-tabs .button{white-space:nowrap}.admin-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.admin-metrics .metric{background:var(--paper);border:1px solid var(--line)}.admin-metrics span{font-size:11px;color:var(--muted)}.admin-application{border-bottom:1px solid var(--line);padding:20px 0}.admin-application:last-child{border:0}.admin-application b{font-size:14px}.admin-coach{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding:20px 0}.admin-coach:last-of-type{border:0}.admin-coach .grow{min-width:0}.admin-coach b{font-size:13px}.admin-coach .button{flex-shrink:0}.archived-goal summary{font-size:12px;cursor:pointer}
html[data-theme=dark]{color-scheme:dark;--accent-soft:#304022;--accent-border:#536a3b;--bg:#141916;--paper:#1e2621;--ink:#ecf2eb;--muted:#a5b2a7;--line:#364139;--lilac:#383347;--green:#9bd3ab;--panel-soft:#293328;--field:#17201a;--shadow-soft:0 12px 35px #00000015;background:var(--bg);color:var(--ink)}
html[data-theme=dark] body{background:var(--bg)}
html[data-theme=dark] :is(.card,.sidebar,.role,.mini-card,.day,.icon-btn,.coach-card,.city-result,.food-picker-dropdown,dialog,.bottom-nav,.chat-compose,.chat-list,.chat-layout,.message-list,.exercise-card,.empty-day,.food-mode-settings){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(input,select,textarea,.inline-input,.form-grid input,.form-grid textarea,.form-grid select,.food-picker-input,.food-picker-input input,.exercise-destination select){background:var(--field);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#8d9d90}
html[data-theme=dark] :is(.nav-item,.eyebrow,.brand small,.footer-note,.date-chip,.label,.muted,.sub){color:var(--muted)}
html[data-theme=dark] :is(.nav-item.active,.day.active,.tab.active,.button.dark){background:var(--lime);color:#202820}
html[data-theme=dark] .nav-item.active svg{color:#314525}
html[data-theme=dark] .day.active b{color:#202820}
html[data-theme=dark] .button{color:#202820}html[data-theme=dark] :is(.button.secondary,.button.ghost,.button.text-btn){color:var(--ink)}
html[data-theme=dark] .theme-toggle.button{color:var(--ink)}
html[data-theme=dark] :is(.chip,.chip.lime,.chip.lilac){background:var(--panel-soft);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .chip.lime{background:#41532c;color:#e0f6c7}
html[data-theme=dark] :is(.tabs,.metric,.stat-box,.set-table th,.bar,.date-chip,.meal-menu,.report-day-body,.report-macros>div,.recipe-ingredient,.food-picker-filters,.food-picker-count,.food-preview,.food-mode-panel,.trainer-client-context,.exercise-form-target,.exercise-destination,.day-editor,.trainer-note,.side-note,.recipe-meal-summary,.food-picker-selected,.food-mode-option,.day-summary,.training-day,.goal-guide){background:var(--panel-soft);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.goal-intro,.subscription-main){background:linear-gradient(135deg,#2c3a23,#282333)}
html[data-theme=dark] :is(.workout-hero,.summary-dark){background:#202c24;color:#f2f7ef;border-color:#3f5144}
html[data-theme=dark] .workout-hero .sticker{background:#e5dffb;color:#202820}
html[data-theme=dark] :is(.summary-dark .sub,.macro-name,.macro-val span,.food-picker-option-macros,.food-mode-hint,.exercise-destination p,.report-attention p,.food-mode-option small){color:var(--muted)}
html[data-theme=dark] .food-picker-option-macros b{color:#dce9d6}
html[data-theme=dark] :is(.food-picker-option:hover,.food-picker-option.highlighted,.city-result:hover,.client-list-item:hover){background:#34452d}
html[data-theme=dark] :is(.food-mode-option.selected,.training-day.selected,.food-picker-option[aria-selected=true],.city-result.selected){background:#353545;border-color:#a99bc4}
html[data-theme=dark] :is(.avatar,.avatar.green){color:#eaf0e9;background:#3d4636}
html[data-theme=dark] .food-date-context{background:var(--paper);border-color:var(--line)}html[data-theme=dark] .food-date-context.other-date{background:#312b42;border-color:#6c5b90}
html[data-theme=dark] .notice{background:#2a3025;color:#b8c8ae;border-color:var(--line)}
html[data-theme=dark] dialog{color:var(--ink)}html[data-theme=dark] dialog::backdrop{background:#000a}
html[data-theme=dark] :is(.dialog-head,.list-row,.meal-line,.trainer-request,.settings-row,.report-day,.food-picker-option){border-color:var(--line)}
html[data-theme=dark] .bottom-item.active{color:var(--lime);background:var(--panel-soft)}
html[data-theme=dark] .coach-cover{background:#343047}html[data-theme=dark] .coach-cover.green{background:#33422c}
html[data-theme=dark] .coach-cover .paid{color:#202820;background:#d3f56b}
html[data-theme=dark] .goal-choice label:has(input:checked){border-color:#a1ba73}
html[data-theme=dark] .form-error{background:#462b28;color:#ffb7a9}
html[data-theme=dark] .text-btn{color:var(--ink)}
html[data-theme=dark] :is(.mini-icon,.tile-icon){background:#393447;color:#c8b9ec}
html[data-theme=dark] :is(.quick-action.ghost,.dialog-head,.food-mode-settings summary,.pwa-install-card,.install-launch-check,.install-benefits span){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .trainer-client-context nav a{background:var(--paper);color:var(--ink)}html[data-theme=dark] .trainer-client-context nav a.selected{background:var(--lime);color:#202820}
html[data-theme=dark] .training-day.selected b{color:#e0f6c7}
html[data-theme=dark] .set-complete{background:#2b3d26}html[data-theme=dark] .set-complete td:first-child{color:#d4efa7}
html[data-theme=dark] :is(.install-browser-hint,.install-guide-note,.install-guide-brand span,.food-mode-footer,.nutrition-number span,.plan-update-note){color:var(--muted)}
html[data-theme=dark] .pwa-status{background:#26332a;color:var(--ink);border:1px solid var(--line)}html[data-theme=dark] .pwa-status .button{color:#202820}
html[data-theme=dark] .chart text{fill:var(--muted)}
html[data-theme=dark] #toast{background:#304035;color:#f2f8ef;border:1px solid #52634f}
@media(hover:hover){html[data-theme=dark] :is(.nav-item:not(.active):hover,.mini-card:hover,.training-day:not(.selected):hover){background:#303e2a}}
@media(max-width:700px){.admin-metrics{grid-template-columns:repeat(2,1fr)}.admin-coach{align-items:flex-start;flex-direction:column}.admin-coach .button{width:100%}.subscription-main .subscription-heading{font-size:29px}.rating-formula{padding:18px;gap:12px}.rating-formula strong{font-size:30px}.goal-overview h2{font-size:21px}.goal-percent{font-size:36px}.goal-intro{padding:21px}.theme-options .button{font-size:10px}.top-actions{gap:8px}.theme-toggle.button{width:38px;height:38px;min-height:38px}.theme-toggle svg{width:18px;height:18px}.goal-entry{gap:10px}.goal-entry strong{font-size:17px}}
@media(prefers-reduced-motion:reduce){.goal-track i{transition:none}}

/* Keep text and surfaces paired in both themes, including first-use actions. */
html[data-theme=dark] :is(.first-step,.first-step .step-number){color:var(--ink)}
html[data-theme=dark] :is(.bubble,.photo-placeholder,.banner,.face-choice,.price-option){background:var(--panel-soft);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.bubble.mine,.face-choice.selected,.price-option.selected){background:var(--accent-soft);color:var(--ink);border-color:var(--accent-border)}
html[data-theme=dark] :is(.check-btn.done,.food-picker-filters button[aria-pressed=true]){color:var(--accent-ink)}
html[data-theme=dark] :is(.food-picker-selected>button,.food-picker-selected>button[aria-pressed=true]){background:var(--panel-soft);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .food-picker-selected>button[aria-pressed=true]{background:var(--accent-soft);color:#e5d087}
html[data-theme=dark] :is(.food-picker-count,.food-picker-option-macros small,.food-picker-filters button,.report-exercise p,.coach-meta,.coach-view .card p,.bubble time){color:var(--muted)}
html[data-theme=dark] .food-mode-switch{color:var(--green)}
html[data-theme=dark] :is(.danger,.recipe-delete,.recipe-ingredient .remove-ingredient,.photo-remove){color:#f0aba0}
html[data-theme=dark] .delete:hover{background:#462b28;color:#ffb7a9}
html[data-theme=dark] .text-btn:not(:disabled):hover{color:#c4e99d}
html[data-theme=dark] .set-complete input{background:var(--field);border-color:var(--accent-border)}
html[data-theme=dark] .switch::after{background:#ecf2eb}
html[data-theme=dark] :is(.city-filter,.food-picker-toggle){color:var(--ink)}
html[data-theme=dark] .food-picker-filters button[aria-pressed=true]{color:var(--accent-ink)}
html[data-theme=dark] .report-overview .metric strong span{color:var(--muted)}
html[data-theme=dark] :is(.food-mode-option.selected .food-mode-icon,.training-day.selected .tile-icon){color:var(--accent-ink)}
html[data-theme=dark] .food-mode-option.selected .food-mode-check{background:var(--lime);border-color:var(--lime);color:var(--accent-ink)}

/* A single selected theme; neutral choices never inherit the primary button fill. */
.theme-options .button{background:var(--field);color:var(--ink);border:1px solid var(--line);white-space:normal;line-height:1.5}
.theme-options .button.selected{background:var(--lime);color:#202820;border-color:var(--lime)}
html[data-theme=dark] .theme-options .button.selected{color:var(--accent-ink)}

.nutrition-invite{border-color:var(--accent-border,var(--line))}
.nutrition-invite h2{margin-top:8px}
.nutrition-inputs,.nutrition-result-macros{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.nutrition-setup .card,.nutrition-setup label{min-width:0}
.nutrition-setup select{max-width:100%;width:100%}
.nutrition-result{background:var(--panel-soft,#f5f5ef);color:var(--ink);border:1px solid var(--line);border-radius:18px;padding:20px}
.nutrition-result>strong{display:block;font-size:30px;margin:12px 0}
.nutrition-result-macros span{font-size:12px;color:var(--muted);min-width:0}
.nutrition-result-macros b{display:block;font-size:20px;color:var(--ink)}
.nutrition-setup [hidden]{display:none!important}
.nutrition-setup .stack{align-content:start}
@media(max-width:400px){.nutrition-inputs{grid-template-columns:1fr}.nutrition-result{padding:16px}.nutrition-result-macros{gap:8px}}

/* Account-bound coach plan forms share the light/night theme surfaces. */
.coach-plan-editor{min-width:0}.coach-plan-editor .notice{display:block;line-height:1.7}
.coach-plan-item,.coach-plan-exercise{min-width:0;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--paper)}
.coach-plan-item{display:grid;gap:14px}.coach-plan-exercise>summary{font-weight:700;cursor:pointer;overflow-wrap:anywhere;padding:4px 0 12px}
.coach-plan-set{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.coach-plan-editor .form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(130px,100%),1fr));gap:12px}
.coach-plan-editor .form-row>label{min-width:0}.coach-plan-editor input,.coach-plan-editor select,.coach-plan-editor textarea{max-width:100%;min-width:0}
.coach-plan-footer{display:grid;gap:10px;padding-top:12px;border-top:1px solid var(--line)}
.coach-target-choice,.coach-manual-targets{margin:0;padding:0;border:0;min-width:0}.coach-target-choice legend,.coach-manual-targets legend{font-size:12px;font-weight:700;margin-bottom:12px}
.coach-target-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.coach-target-options .selected{background:var(--lime);color:var(--accent-ink)}
.coach-plan-editor [hidden]{display:none!important}.coach-menu-summary{padding:16px;border-radius:16px;background:var(--panel-soft);border:1px solid var(--line)}
.coach-menu-summary>strong{display:block;font-size:28px;line-height:1.4;margin:10px 0}.coach-menu-macros{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:11px;color:var(--muted)}.coach-menu-macros b{display:block;color:var(--ink);font-size:15px;margin-top:5px}
.coach-plan-editor .section-heading{flex-wrap:wrap;gap:8px}.coach-plan-editor .button{white-space:normal;min-height:44px}
@media(max-width:480px){.coach-plan-item{padding:12px}.coach-plan-exercise{padding:10px}.coach-plan-editor .form-row{grid-template-columns:repeat(2,minmax(0,1fr))}}

.load-progression{min-width:0}.load-controls{display:grid;grid-template-columns:minmax(100px,.6fr) minmax(0,1.4fr);gap:12px}.load-controls label,.load-panel label{display:grid;gap:8px;font-size:12px;font-weight:700;min-width:0}.load-progression select{width:100%;max-width:100%;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--field);color:var(--ink);font:inherit;overflow:hidden;text-overflow:ellipsis}
.load-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.load-summary>div{background:var(--panel-soft);border-radius:14px;padding:14px;min-width:0}.load-summary span{display:block;font-size:11px;line-height:1.6;color:var(--muted)}.load-summary strong{display:block;font-size:21px;margin-top:8px;overflow-wrap:anywhere}
.load-panel{padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--paper);min-width:0}.load-panel>summary{cursor:pointer;line-height:1.6;font-size:13px;overflow-wrap:anywhere}.load-panel>summary small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.load-panel .section-heading{align-items:start;flex-wrap:wrap;gap:14px}.load-change{font-size:12px;font-weight:700;line-height:1.7;margin:12px 0}.load-change.positive{color:var(--green)}
svg.load-chart{display:block;width:100%;height:auto;overflow:visible;stroke:none;fill:none;margin:15px 0}.load-chart text{font:16px Manrope,Arial,sans-serif;fill:var(--muted);stroke:none}.load-chart-grid{stroke:var(--line);stroke-width:1}.load-chart-line{stroke:var(--green);stroke-width:3;fill:none}.load-chart-dot{fill:var(--lime);stroke:var(--green);stroke-width:2}
.load-set-table{width:100%;border-collapse:collapse;font-size:12px;margin-top:14px}.load-set-table caption{text-align:left;margin-bottom:10px}.load-set-table td,.load-set-table th{padding:12px 5px;text-align:left;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.load-set-table th{font-size:11px}.load-set-muted{color:var(--muted)}
@media(max-width:480px){.load-controls{grid-template-columns:1fr}.load-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.load-summary>div:last-child{grid-column:1/-1}.load-panel{padding:12px}.load-summary strong{font-size:20px}.load-set-table{font-size:11px}.load-set-table th{font-size:10px}}
