.header-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}#themeToggle{white-space:nowrap}
:root[data-theme=light]{color-scheme:light;--mint:#346526;--lilac:#7050a5;--sky:#17647a;--peach:#99501d}
html[data-theme=light] body{background-color:#f4f7ef;background-image:radial-gradient(circle,#5073381a 2px,transparent 2.6px);color:#243629}
html[data-theme=light] header{background:#fafcf5f5;border-color:#c8d5c1}
html[data-theme=light] .card,html[data-theme=light] dialog,html[data-theme=light] input,html[data-theme=light] select,html[data-theme=light] .date,html[data-theme=light] .exercise-card,html[data-theme=light] .account-area details{background:#fffef9;color:#243629;border-color:#c3d1bd;box-shadow:0 8px 24px #29431d09}
html[data-theme=light] small,html[data-theme=light] .muted,html[data-theme=light] .stat small,html[data-theme=light] .cards .muted,html[data-theme=light] .foot,html[data-theme=light] .video-count,html[data-theme=light] .form-help,html[data-theme=light] #juiceHelp{color:#53654f}
html[data-theme=light] .cards h3,html[data-theme=light] h2,html[data-theme=light] h3{color:#243629}
html[data-theme=light] button,html[data-theme=light] .watch-link{background:#346526;color:#fff}
html[data-theme=light] button.secondary,html[data-theme=light] .filter{background:#e9efdf;color:#304d28;border-color:#b6c6ad}
html[data-theme=light] button.icon{background:transparent;color:#405838}
html[data-theme=light] .filter.active,html[data-theme=light] .page-nav a[aria-current=page]{background:#346526;color:#fff;border-color:#346526}
html[data-theme=light] .page-nav{background:#e9efdf;border-color:#c3d1bd}
html[data-theme=light] .page-nav a,html[data-theme=light] .account-area summary{color:#304d28}
html[data-theme=light] a{color:#326424}
html[data-theme=light] .watch-link{color:#fff}
html[data-theme=light] .bar{background:#e0e7d7}
html[data-theme=light] .row{border-color:#d3ddcc}
html[data-theme=light] .empty{color:#53654f}
html[data-theme=light] .empty b{color:#304d28}
html[data-theme=light] .pill,html[data-theme=light] .meal-icon{background:#e9efdf;color:#37522d}
html[data-theme=light] .tip-card{background:linear-gradient(110deg,#fff0dc,#fffef9);border-left-color:#99501d}
html[data-theme=light] .tip-card h3{color:#814515}
html[data-theme=light] .tip-card p{color:#405238}
html[data-theme=light] .water{background:#eaf5f6;border-color:#bad8dc}
html[data-theme=light] .water .pill{background:#d2e9ed;color:#205a6b}
html[data-theme=light] .glass{border-color:#448092}
html[data-theme=light] .glass.full{background:#58a7bb;border-color:#448092}
html[data-theme=light] .column{background:#bdcdb6}
html[data-theme=light] .day{color:#53654f}
html[data-theme=light] .banner{background-color:#e6efda;color:#304d28;border-color:#b6c6ad}
html[data-theme=light] .video-card{background:#f6f8f0;border-color:#c3d1bd}
html[data-theme=light] .logging-summary>div,html[data-theme=light] .logging-achievements li,html[data-theme=light] .logging-day,html[data-theme=light] .weekly-badge,html[data-theme=light] .meal-check,html[data-theme=light] .movement-tier{border-color:#b2c1a9}
html[data-theme=light] .meal-check{background:transparent;color:#304d28}
html[data-theme=light] .meal-check.complete,html[data-theme=light] .logging-day.logged{background:#eaf2df;border-color:#346526}
html[data-theme=light] .food-motivation .earned{border-color:#346526;color:#346526}
html[data-theme=light] .movement-rewards{background:#f4effa;border-color:#bba8d6}
html[data-theme=light] .movement-tier.earned{color:#7050a5;border-color:#7050a5}
html[data-theme=light] .daily-motivation{background:#edf3e3}
html[data-theme=light] .exercise-card p,html[data-theme=light] .exercise-help,html[data-theme=light] .exercise-count,html[data-theme=light] #exerciseDetail ol{color:#53654f}
html[data-theme=light] .exercise-meta{color:#7050a5}
html[data-theme=light] .exercise-form-tip{background:#f4effa}
html[data-theme=light] .form-error{color:#a52719}
html[data-theme=light] ::placeholder{color:#64745f}
@media(max-width:540px){header{gap:12px;align-items:flex-start}.header-actions{gap:6px;justify-content:flex-end}.header-actions button{padding:9px 11px;font-size:12px}.brand{padding-top:5px;white-space:nowrap}}

/* BMI calculator */
.bmi-card{margin-top:22px;scroll-margin-top:20px;border-left:4px solid var(--sky)}.bmi-intro{margin:10px 0 0}.bmi-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.bmi-fields label{margin-top:16px}.bmi-fields input,.bmi-fields select{margin-top:7px}.bmi-fields [hidden]{display:none!important}.bmi-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.bmi-result{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;margin-top:12px;border:1px solid #49634b;border-radius:16px;background:#24372a}.bmi-result[hidden]{display:none}.bmi-result small{display:block}.bmi-result strong{display:block;font-size:32px;line-height:1.2;color:var(--mint);margin-top:4px}.bmi-note{display:block;line-height:1.5;margin-top:16px}.bmi-card .form-error:empty{display:none}@media(max-width:480px){.bmi-fields{grid-template-columns:1fr 1fr;gap:0 10px}.bmi-fields label:first-child,.bmi-fields label:nth-child(3){grid-column:1}.bmi-fields label:nth-child(2),.bmi-fields label:nth-child(4){grid-column:2}.bmi-result{align-items:flex-start;flex-direction:column}}
html[data-theme=light] .bmi-result{background:#edf3e3;border-color:#b6c6ad}

/* Keep text readable when dark movement banners appear in light mode. */
html[data-theme=light] label,html[data-theme=light] legend{color:#304238}
html[data-theme=light] a.button-link{background:#346526;color:#fff}
html[data-theme=light] a.button-link.secondary-link{background:#e9efdf;color:#304d28;border:1px solid #b6c6ad}
html[data-theme=light] .exercise-quick-start{color:#f3f8f2}
html[data-theme=light] .exercise-quick-start p strong{color:#f3f8f2}
html[data-theme=light] .exercise-quick-start .quick-browse{color:#d4efd9}
html[data-theme=light] .bmi-ranges{color:#53654f}

/* Prevent iOS Safari from zooming the page when a small-text field receives focus. */
@media(max-width:700px){input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px!important}}
