/* The established dark palette stays the default; light mode uses the same accents. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;min-height:42px;padding:9px 12px;border:1px solid var(--line);background:var(--raised);color:var(--ink);font-size:12px}.theme-toggle>span:first-child{font-size:20px;line-height:1}.theme-toggle-floating{position:fixed;right:18px;top:max(14px,env(safe-area-inset-top));z-index:20;box-shadow:0 4px 18px #17151d15}
:root[data-theme=light]{color-scheme:light;--bg:#f8f7fc;--surface:#ffffff;--panel:#ffffff;--raised:#f0edf6;--gray:#edeaf3;--lav:#b9a5e8;--pink:#f3c9da;--ink:#302b3b;--muted:#6b6378;--line:#ded8e8}
html[data-theme=light] body,html[data-theme=light] .login-panel{background:var(--bg)}
html[data-theme=light] :is(.sidebar,.topbar,.card,.stat,.bubble,.reminder-panel,dialog,.library-modal,.exercise-list-row,.agenda-day){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=light] :is(input,select,textarea){background:#fff;border-color:#bfb5ce;color:var(--ink)}
html[data-theme=light] :is(input,textarea)::placeholder{color:#7c7389}
html[data-theme=light] :is(a,.eyebrow,.saved,.food-target-details summary){color:#70519d}
html[data-theme=light] :is(label,th,.exercise small,.brand small,.bubble small,nav button,.agenda-entry small,.agenda-event small,.agenda-hour>span,.food-search-result small,.food-source-tag){color:var(--muted)}
html[data-theme=light] button.ghost{color:#655275}
html[data-theme=light] :is(.tag,.chip,.badge,.superset-label,.superset-summary,.reviewed-tag){background:#eee5f8;color:#634581}
html[data-theme=light] :is(.badge.pink,.pink){background:var(--pink);color:#513245}
html[data-theme=light] :is(.metric,.chat,.exercise,.food-catalog-macros span){background:#f4f0f9}
html[data-theme=light] .progress{background:#e8e1f1}
html[data-theme=light] .notice{background:#fcf0f6;color:#75445e;border-color:#e8bfd2}
html[data-theme=light] .stat:first-child{background:var(--lav);color:#302445}
html[data-theme=light] .stat:nth-child(2){background:var(--pink);color:#422c3b}
html[data-theme=light] .bubble.mine{background:#e8dcf8;color:#302445}
html[data-theme=light] .bubble.mine small{color:#655275}
html[data-theme=light] :is(.month-cell.outside-month,.agenda-day header){background:#f0ebf7}
html[data-theme=light] .outside-month .month-number{color:#847a92}
html[data-theme=light] :is(.month-appointment,.client-calendar-event,.agenda-event){background:#eee4f9;color:#3f3157;border-color:#a68aca}
html[data-theme=light] :is(.month-appointment b,.client-calendar-event b,.agenda-time,.is-today .month-number){color:#70519d}
html[data-theme=light] :is(.month-appointment .small,.client-calendar-event small){color:#6c5c7e}
html[data-theme=light] :is(.month-appointment:hover,.agenda-entry:hover){background:#e6daf3}
html[data-theme=light] :is(.agenda-modes,.agenda-day,.agenda-entry,.agenda-hour>button,.exercise-list-row,.assignment-slot,.report-history details){border-color:var(--line)}
html[data-theme=light] :is(.nutrition-plan-icon,.report-checked){background:#eee4f9;color:#70519d}
html[data-theme=light] .food-ai-box{background:#f1e9fa}
html[data-theme=light] .report-rating button[data-filled=true]{background:#eee4f9;color:#70519d}
html[data-theme=light] :is(.food-catalog-dialog a,.food-catalog a){color:#70519d}
html[data-theme=light] .food-search-result{background:#fff;border-color:var(--line)}
html[data-theme=light] :is(#auth-error,#booking-error,#builder-exercise-error,.food-ai-box [role=alert]){color:#a33666!important}
html[data-theme=light] .visit-attended{box-shadow:inset 4px 0 #9b7bc8,0 0 0 1px var(--line)}
@media(max-width:600px){.topbar .theme-toggle-label{display:none}.topbar .theme-toggle{width:40px;min-width:40px;padding:8px}.topbar>.flex{gap:7px}.theme-toggle-floating{right:12px;font-size:11px}}

html[data-theme=light] nav button.active{color:#302445}
