



:root{
 --ui-text:#f4f8f5;
 --ui-muted:#c4d6d0;
 --ui-note:#b9ceca;
 --ui-control-bg:#1d333a;
 --ui-control-fg:#f4f8f5;
 --ui-control-border:#607c79;
 --ui-subtle-bg:#223b42;
 --ui-panel-bg:#172730;
 --ui-accent-bg:#c4ed9d;
 --ui-accent-fg:#173323;
 --ui-link:#d4f3b7;
 --ui-placeholder:#b7cbc7;
 --ui-error-bg:#402b30;
 --ui-error-text:#ffd9d6;
}
html,body{color:var(--ui-text)}
.modal-panel{color:var(--ui-text)}
.modal-panel h2,.modal-panel h3,.modal-panel b,.modal-panel strong{color:inherit}
label,.field label,.small.muted,.muted,.subtitle,.footnote,.notice,
.modal-panel .subtitle,.modal-panel .footnote{color:var(--ui-muted)}
.footnote,.notice{color:var(--ui-note)}
input:not([type="checkbox"]):not([type="radio"]),select,textarea,
.field input:not([type="checkbox"]):not([type="radio"]),.field select,.field textarea{
 background:var(--ui-control-bg);
 color:var(--ui-control-fg);
 border:1px solid var(--ui-control-border);
 caret-color:var(--ui-control-fg);
}
input::placeholder,textarea::placeholder{color:var(--ui-placeholder);opacity:1}
input[type="date"]{color-scheme:dark}
select option{background:var(--ui-control-bg);color:var(--ui-control-fg)}
input:focus-visible,textarea:focus-visible,select:focus-visible{
 border-color:var(--ui-accent-bg);
 outline:2px solid var(--ui-accent-bg);
 outline-offset:2px;
}
input:disabled,button:disabled,select:disabled{opacity:.6;cursor:not-allowed}
.btn,.btn.ghost,.btn.sm,.modal-panel .btn:not(.primary):not(.danger){
 color:var(--ui-control-fg);
 background:var(--ui-control-bg);
 border:1px solid var(--ui-control-border);
}
.btn.primary,.modal-panel .btn.primary{
 background:var(--ui-accent-bg);
 color:var(--ui-accent-fg);
 border:1px solid var(--ui-accent-bg);
}
.btn.danger{
 color:var(--ui-error-text);
 border-color:#cc8588;
 background:var(--ui-error-bg);
}
.btn:focus-visible,.text-btn:focus-visible,.checkin-choice:focus-visible,
.record-choice:focus-visible,.detail-toggle:focus-visible{
 outline:3px solid var(--ui-accent-bg);
 outline-offset:2px;
}
.btn:not(:disabled):active,.checkin-choice:active,.record-choice:active{
 filter:brightness(1.1);
}
.detail-toggle,.modal-panel .detail-toggle,
details>summary.detail-toggle{
 display:block;
 background:var(--ui-subtle-bg);
 color:var(--ui-text);
 border:1px solid var(--ui-control-border);
 padding:14px 16px;
 min-height:46px;
 font-weight:750;
 border-radius:12px;
}
.checkin-choice{
 background:var(--ui-subtle-bg);
 color:var(--ui-text);
 border-color:var(--ui-control-border);
 min-height:67px;
}
.checkin-choice .muted,.checkin-choice .small,
.checkin-choice .small.muted{color:var(--ui-muted)}
.record-choice,.intake-chooser .record-choice{
 background:var(--ui-subtle-bg);
 color:var(--ui-text);
 border-color:var(--ui-control-border);
}
.record-choice small,.intake-chooser .record-choice small{color:var(--ui-muted)}
.preset-grid .preset-btn{
 background:var(--ui-subtle-bg);
 color:var(--ui-text);
 border-color:var(--ui-control-border);
}
.record-choice>span:first-child{background:#315149;color:#dcf8bf}
.record-choice strong{color:var(--ui-link)}
.modal-panel details>summary:not(.detail-toggle),
.portion-detail summary,.meal-extra summary,.lab-more summary,.lab-paste-panel summary{
 color:var(--ui-text);
}
.modal-panel details:not([open])>summary:hover,.detail-toggle:hover{border-color:var(--ui-accent-bg)}
.modal-panel .field label,.modal-panel label:not(.strategy-check):not(.reminder-check){color:var(--ui-muted)}
.modal-panel .lab-batch-footer{background:var(--ui-panel-bg);border-color:var(--ui-control-border)}
.modal-panel .lab-batch-label{color:var(--ui-text)}
.modal-panel .lab-batch-label small{color:var(--ui-muted)}
.modal-panel .setup-choice{color:var(--ui-text);background:var(--ui-subtle-bg);border-color:var(--ui-control-border)}
.modal-panel .setup-choice small{color:var(--ui-muted)}
.modal-panel .setup-allergies label{color:var(--ui-text);background:var(--ui-subtle-bg);border-color:var(--ui-control-border)}
.modal-panel .setup-choice.on{background:#2a4e42;color:#effce9;border-color:var(--ui-accent-bg)}
.modal-panel .setup-choice.on small{color:#d3e6dc}
.modal-panel .hud-gauge-caption{color:var(--ui-muted)}
.modal-panel .close-btn{color:var(--ui-text);background:var(--ui-subtle-bg)}
.modal-panel .text-btn,.text-btn{color:var(--ui-link)}
.tag{color:#e1f8cb}



@media all{
 .modal-panel .banner,.modal-panel .banner.info{color:#f7e6d7}
 .modal-panel .banner.info{color:#d6edfa}
 .modal-panel .photo-ai-state{color:#e0f3e6}
 .modal-panel .tag{color:#e1f8cb}
}
.modal-panel .smallcaps,.smallcaps{color:var(--ui-muted)}
.modal-panel .stats-strip small,.statbox small{color:var(--ui-muted)}
.modal-panel .food-result small{color:var(--ui-muted)}
.modal-panel .list-empty{color:var(--ui-muted)}
.modal-panel .system-row,.system-row{color:var(--ui-text)}
.modal-panel .strategy-check,.modal-panel .reminder-check label{color:var(--ui-text)}
a:not(.btn):not(.nav-link){color:var(--ui-link)}
.pp21 .hud-modes,.pp21 .hud-gauge,.pp21 .hud-gap-strip,.pp21 .hud-feed,.pp21 .body-tile,
.pp21 .profile-button,.pp21 .profile-summary,.pp21 .hud-actions button:not(:first-child){
 color:var(--ui-text);
}
.pp21 .hud-gauge-caption,.pp21 .hud-gauge-unit,.pp21 .body-tile small,
.pp21 .hud-feed-row span,.pp21 .profile-summary p,.pp21 .profile-button small{color:var(--ui-muted)}
.pp21 .hud-mode:not(.selected){color:var(--ui-muted)}
.pp21 .hud-mode.selected{color:var(--pp-accent-text)}
.pp21 .hud-smart .eyebrow,.pp21 .hud-smart p{color:#d5e7dc}
.pp21 .hud-smart .hud-smart-title{color:#fff}
.pp21 .hud-hero p,.pp21 .subtitle,.pp21 .hud-gap-placeholder{color:var(--ui-muted)}
.pp21 .hud-below-heading button,.pp21 .body-tile-bottom,
.pp21 .hud-footer-links button{color:var(--ui-link)}

@media not all{
 :root{
  --ui-text:#193029;
  --ui-muted:#435d53;
  --ui-note:#4b635b;
  --ui-control-bg:#fff;
  --ui-control-fg:#1a332a;
  --ui-control-border:#779989;
  --ui-subtle-bg:#e7f0e9;
  --ui-panel-bg:#fff;
  --ui-accent-bg:#266c4b;
  --ui-accent-fg:#fff;
  --ui-link:#1b6847;
  --ui-placeholder:#526d60;
  --ui-error-bg:#fff0ef;
  --ui-error-text:#9e252e;
  --ink:#193029;
  --muted:#435d53;
  --bg:#f5f7f2;
  --surface:#fff;
  --surface2:#edf4ee;
 }
 html,body{color:var(--ui-text)}
 .brand-text span{color:#456556}
 .bottom-nav .nav-link:not(.active):not(.nav-quick){color:#456556}
 .modal-panel{background:#fff;color:var(--ui-text)}
 .modal-panel .subtitle,.modal-panel .footnote,.modal-panel label,.modal-panel .small.muted{color:var(--ui-muted)}
 .modal-panel input,.modal-panel textarea,.modal-panel select{background:#fff;color:var(--ui-text)}
 input[type="date"]{color-scheme:light}
 .btn.primary,.modal-panel .btn.primary{background:var(--ui-accent-bg);border-color:var(--ui-accent-bg);color:#fff}
 .btn.ghost,.modal-panel .btn.ghost,.btn.sm:not(.primary):not(.danger){color:var(--ui-text);background:#e7f0e9;border:1px solid var(--ui-control-border)}
 .btn.danger{background:var(--ui-error-bg);color:var(--ui-error-text);border-color:#c55d64}
 .card,.card.soft,.statbox,.macro,.lab-tile,.weekly-mini>div,.day-digest,.intake-summary>div,
 .drink-stats>span,.hud-metric,.lab-batch-footer{background:#fff;color:var(--ui-text);border-color:#cfddd4}
 .card.soft{background:#eef5ee}
 .detail-toggle,.modal-panel .detail-toggle{color:#1b4633;background:#dcebe1;border-color:#96b6a4}
 .checkin-choice{color:var(--ui-text);background:#f0f6f1;border:1px solid #a7c0b2}
 .checkin-choice .small.muted{color:var(--ui-muted)}
 .checkin-choice:active,.preset-grid .preset-btn:active{background:#d3e7d9;color:#1b352a}
 .record-choice,.intake-chooser .record-choice{background:#edf5ef;color:#1b332a;border:1px solid #9cb7a9}
 .record-choice>span:first-child{background:#d9ece0;color:#205e3f}
 .record-choice strong,.record-choice b{color:#1b4a32}
 .record-choice small{color:var(--ui-muted)}
 .preset-grid .preset-btn{background:#e6f1e9;color:#1b352a;border-color:#89ad94}
 .chip{background:#e7f0e9;color:#235b43;border-color:#8baa98}
 .chip.active{background:#266c4b;color:#fff;border-color:#266c4b}
 .tag{background:#def0e3;color:#20583e}
 .tag.warn{background:#fff2db;color:#7e4b16}
 .tag.dim{background:#edf2ef;color:#4c6257}
 .banner{background:#fff2e8;color:#7a461f;border-color:#c8a37b}
 .banner.info{background:#e7f3fa;color:#244f67;border-color:#9fc8dc}
 .day-selector{color:var(--ui-muted)}
 .day-digest,.weekly-card,.prompt-card,.winddown-card,.response-card,.nudge{
  background:#edf5ee;color:var(--ui-text);border-color:#bed4c5;
 }
 .priority-reason,.more-moves>summary{color:#345b47}
 .food-result small,.meal-description .detail,.drink-record span,.drink-stats small,.intake-summary span,.intake-summary strong small,
 .intake-feed-meta,.intake-supplement-row span,.system-count,.smallcaps,.notice,.loading{color:var(--ui-muted)}
 .portion-choice>span,.portion-detail summary,.meal-extra summary,.lab-more summary,.lab-paste-panel summary,
 .onboard-extra summary{color:#205b43}
 .portion-detail,.meal-extra,.lab-more,.lab-paste-panel,.onboard-extra{border-color:#b4cfbe;background:#f8faf8}
 .photo-ai-state{background:#e6f4eb;color:#24583d;border-color:#a4c3ae}
 .lab-batch-footer{background:#fff;border-color:#cddfd1}
 .lab-batch-label,.lab-batch-row .lab-batch-label{color:var(--ui-text)}
 .lab-batch-label small,.lab-batch-row .lab-batch-label small{color:var(--ui-muted)}
 .setup-progress span:not(.on){background:#a9c5b5}
 .setup-choice.on,.modal-panel .setup-choice.on{background:#dbefe1;color:#153d2a;border-color:#397e59}
 .setup-choice.on small,.modal-panel .setup-choice.on small{color:#38634a}
 .setup-allergies label,.modal-panel .setup-allergies label{background:#edf5ee;color:#1b332a;border-color:#a5c2b0}
 .model-grid small,.stats-strip small,.statbox small,.meal-description small{color:var(--ui-muted)}
 .lab-tile b,.intake-feed-row strong,.intake-supplement-row b{color:var(--ui-text)}
 .intake-feed,.intake-feed-ico{background:#f2f8f3;color:var(--ui-text);border-color:#c6dbcc}
 .intake-feed-meta{color:#315d49}
 .intake-feed-symbol{background:#dcece1;color:#205f40}
 .photo-slot{background:#f0f6f1;color:var(--ui-muted);border-color:#aac7b4}
 .pp21 .hud-mode:not(.selected){color:#35564a}
 .pp21 .hud-smart .eyebrow{color:#226344}
 .pp21 .hud-smart .hud-smart-title{color:#193c2c}
 .pp21 .hud-smart p{color:#3f6350}
 .pp21 .hud-below-heading button,.pp21 .body-tile-bottom,.pp21 .hud-footer-links button{color:#1d6948}
 .pp21 .hud-actions button:first-child,.pp21 .hud-mode.selected{color:#fff}
 .pp21 .hud-gauge-caption,.pp21 .hud-gauge-unit,.pp21 .body-tile small,.pp21 .hud-feed-row span{color:var(--ui-muted)}
 .pp21 .hud-modes,.pp21 .hud-gauge,.pp21 .hud-gap-strip,.pp21 .hud-feed,.pp21 .body-tile,
 .pp21 .profile-button,.pp21 .profile-summary,.pp21 .hud-actions button:not(:first-child){
  color:var(--ui-text);
 }
 .pp21 .hud-gauge-track>span{color:var(--ui-text)}
 .pp21 .hud-gap-strip>span{color:var(--ui-muted)}
 .pp21 .hud-gap-placeholder{color:var(--ui-muted)}
 .pp21 .hud-feed-ico{background:#dfefe4;color:#1c6946}
 .pp21 .body-tile-icon{background:#e5f1e8;color:#1d6849}
 .pp21 .profile-button .ui-icon{color:#205f41}
 .pp21 .profile-summary p{color:var(--ui-muted)}
 
 html.embedded-plan .shop-field input,html.embedded-plan .shop-field select,
 html.embedded-plan #shop-new-extra{background:#fff;color:var(--ui-text);border-color:var(--ui-control-border)}
 html.embedded-plan .shop-btn.alt{background:#e7f0e9;color:#1e5238;border-color:#96b2a1}
 html.embedded-plan .shop-meal b{color:#205c3d}
 html.embedded-plan .shop-item input:checked+span{color:#4c6257}
 html.embedded-plan .shop-item small{color:var(--ui-muted)}
 html.embedded-plan .shop-warning{background:#fff2de;color:#694a20;border-color:#bb8843}
 html.embedded-plan .shop-group{color:#315f47}
 html.embedded-plan .shop-btn{background:#266c4b;color:#fff}
 html.embedded-plan .shop-disclaimer{color:var(--ui-muted)}
}



.supp-photo-action{margin:5px 0 17px}
.supp-scan{width:100%;min-height:94px;border-radius:18px;border:1.5px solid var(--ui-accent-bg);background:var(--ui-subtle-bg);color:var(--ui-text);display:flex;align-items:center;gap:13px;padding:15px 13px;text-align:left}
.supp-scan>span{display:grid;gap:5px;flex:1}
.supp-scan b{font-size:16px;line-height:1.3}
.supp-scan small{font-size:12px;font-weight:500;color:var(--ui-muted);line-height:1.35}
.supp-scan .ui-icon:first-child{color:var(--ui-link)}
.supp-scan:focus-visible,.supp-lookup-result:focus-visible{outline:3px solid var(--ui-accent-bg);outline-offset:2px}
.supp-photo-action>p{margin:9px 0 0;font-size:12px;line-height:1.4}
.supp-search-action{margin:8px 0 15px}
.supp-search-action .btn{min-height:44px}
.supp-search-action p{margin:8px 0;line-height:1.4;font-size:12px}
.supp-dose-section{border:1px solid var(--ui-control-border);border-radius:15px;padding:14px 12px;margin:15px 0;background:var(--ui-panel-bg)}
.supp-dose-section h3{color:var(--ui-text);font-size:17px;line-height:1.2;margin:0 0 8px}
.supp-dose-section>p.small{margin:6px 0 11px}
.supp-dose-section .field label{font-size:12px;line-height:1.3}
.supp-serving-math{color:var(--ui-link);font-size:12px;font-weight:650;line-height:1.5;margin:11px 0 0}
.supp-serving-math.needs-review{color:var(--ui-error-text)}
.supp-serving-math:empty,.supp-scaled-preview:empty{display:none}
.supp-confirm{padding:12px 0;margin:10px 0;font-size:13px;line-height:1.45;align-items:start}
.supp-confirm input{accent-color:var(--ui-accent-bg);width:23px;height:23px}
#supp-nutrient-panel{background:var(--ui-panel-bg);padding:12px;margin:10px 0}
#supp-nutrient-panel .supp-row{margin-bottom:8px}

#supp-nutrient-panel .supp-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
#supp-nutrient-panel .supp-row .field{margin:6px 0}
.supp-amount-box{display:flex;align-items:stretch;border:1px solid var(--ui-control-border);border-radius:12px;overflow:hidden;background:var(--ui-subtle-bg)}
.supp-amount-box:focus-within{border-color:var(--ui-accent-bg)}
.supp-amount-box .supp-amount{flex:1 1 auto;width:auto!important;min-width:0;border:0!important;border-radius:0;box-shadow:none!important;background:transparent}
.supp-amount-box .supp-unit{flex:0 0 auto;width:auto!important;min-width:5.4em;max-width:58%;border:0!important;border-radius:0;box-shadow:none!important;padding:0 8px;font-weight:800;font-size:14px;background:var(--ui-accent-bg);color:var(--ui-accent-fg,#111827)}
.supp-amount-box .supp-unit:disabled{opacity:.45}
.supp-unit-flag{grid-column:1/-1;margin:0 0 4px;padding:8px 10px;border-radius:10px;font-size:12px;line-height:1.45;font-weight:650;background:#fff4d6;color:#7a4b00;border:1px solid #f0c060}
.supp-unit-flag[hidden]{display:none}
.supp-row-flagged .supp-amount-box{border-color:#e0a020}
#supp-label-status{padding:9px 0;line-height:1.4}
#supp-other-ingredients{color:var(--ui-muted);font-size:12px;line-height:1.45}
.supp-confirm[hidden]{display:none!important}
.supp-suggest{display:grid;gap:6px;margin:-4px 0 10px;max-height:260px;overflow-y:auto}
.supp-suggest:empty{display:none}
.supp-suggest-row{width:100%;min-height:48px;background:var(--ui-subtle-bg);border:1px solid var(--ui-control-border);border-radius:12px;padding:10px 12px;text-align:left;color:var(--ui-text);display:grid;gap:2px;font:inherit;cursor:pointer}
.supp-suggest-row span{font-size:12px;color:var(--ui-muted,inherit);opacity:.85}
.supp-suggest-row.saved{border-color:#0284c7}
.supp-lookup-result{width:100%;background:var(--ui-subtle-bg);border:1px solid var(--ui-control-border);border-radius:12px;padding:12px;text-align:left;color:var(--ui-text);display:grid;gap:4px;margin:7px 0}
.supp-lookup-result b{font-size:13px;color:var(--ui-text)}
.supp-lookup-result span{font-size:12px;color:var(--ui-muted)}
@media(max-width:370px){.supp-dose-section{padding:10px 8px}.supp-dose-section .twofields{gap:7px}.supp-dose-section .field label{font-size:12px}}

.supp-scaled-preview{font-size:12px;line-height:1.55;color:var(--ui-text);padding:9px 10px;margin-top:9px;border:1px solid var(--ui-control-border);background:var(--ui-subtle-bg);border-radius:11px}

.log-again,.drink-mine{margin:0 0 12px}
.log-again-title,.drink-mine-title{display:block;font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;margin:0 0 6px;color:var(--ui-text)}
.log-again-chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.log-again-chip{flex:0 0 auto;max-width:240px;min-height:44px;display:grid;gap:1px;text-align:left;padding:8px 12px;border-radius:14px;border:1px solid var(--ui-control-border);background:var(--ui-subtle-bg);color:var(--ui-text);font:inherit;font-weight:700;cursor:pointer;white-space:normal;line-height:1.25}
.log-again-chip small{font-weight:500;font-size:12px;opacity:.8}
.known-photo{display:grid;gap:6px;margin:10px 0;border:2px solid #0284c7}
