/* EPLAN theme v1 — client only; existing light design remains the default. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"]{
 color-scheme:dark;
 --bg:#0b1117;--card:#151e27;--card2:#1b2733;--line:#2b3948;
 --text:#f1f5fa;--muted:#9baec0;--yellow:#2388f5;
 background:#0b1117!important;color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(#app,.wrap.client-shell,.client-section-page){background-color:#0b1117!important;color:#f1f5fa}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-top{background:rgba(11,17,23,.95)!important;border-color:#2b3948!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.card,.exercise,.redesign-more-item,.redesign-settings-panel,.redesign-help-item,.redesign-more-list,.calendar-day){background-color:#151e27!important;border-color:#2b3948!important;color:#f1f5fa!important;box-shadow:none!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(input,textarea,select){background:#1b2733!important;color:#f1f5fa!important;border-color:#344557!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(h1,h2,h3,h4,strong,.redesign-more-copy strong){color:#f1f5fa}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.muted,small,.redesign-more-copy small){color:#9baec0}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.client-top .notify-btn,.redesign-back-title button){background:#1b2733!important;color:#f1f5fa!important;border-color:#344557!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-chevron{color:#9baec0}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .eplan-theme-option{background:#1b2733;border-color:#344557;color:#f1f5fa}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .eplan-theme-option[aria-checked="true"]{background:#153657;border-color:#2388f5;color:#d8ebff}
.eplan-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
.eplan-theme-option{min-width:0;padding:13px 5px;border-radius:12px;border:1px solid #d8e2f0;background:#f4f7fd;color:#142542;font-size:13px;font-weight:700;cursor:pointer}
.eplan-theme-option[aria-checked="true"]{border-color:#1677ff;background:#e7f1ff;color:#0958ba}
.eplan-theme-note{font-size:13px;color:var(--muted);margin-top:12px}
@media(max-width:360px){.eplan-theme-option{font-size:12px;padding:12px 3px}}

/* v2: comprehensive dark surfaces, preserving macro colors and the light theme */
body.eplan-redesign.client-ui[data-eplan-theme="dark"]{
 --eplan-surface:#151e27;--eplan-raised:#1b2733;--eplan-ink:#f1f5fa;--eplan-subtle:#9baec0;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-top,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-top.client-top-compact{
 background:#0b1117!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-bottom-nav{
 background:rgba(21,30,39,.96)!important;border:1px solid #344557!important;
 box-shadow:0 8px 30px #0006!important;backdrop-filter:blur(16px);
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-bottom-nav button{background:transparent!important;color:#9baec0!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-bottom-nav button.active{color:#2388f5!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .client-home-today-card,.client-home-metric,.client-home-trainer-card,
 .redesign-training-summary,.redesign-training-day,.redesign-training-help,
 .redesign-training-exercise,.redesign-training-last,.redesign-training-details,
 .redesign-training-stat-grid>div,.redesign-training-today-done,
 .redesign-progress-kpi,.redesign-progress-week,.redesign-progress-chart-card,
 .redesign-progress-training-row,.redesign-progress-achievements>div,
 .redesign-progress-workout-detail,.progress-workout-stat,
 .redesign-calorie-card,.redesign-macro-ring-card,.redesign-nutrition-summary-grid>div,
 .redesign-nutrition-day-row,.redesign-bju-summary,.redesign-empty-panel,
 .activity-field-card,.activity-steps-card,.activity-saved-card,
 .measurement-next,.measurement-metric,.measurement-place-card,
 .measurement-weight-visual,.measurement-history-card,.measurement-history-calendar-card,
 .meal-plan-card,.meal-view,.meal-option,.meal-variant,
 .redesign-more-settings-card,.redesign-help-item
 ){background:#151e27!important;border-color:#344557!important;box-shadow:none!important;color:#f1f5fa!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-training-tabs,.redesign-progress-tabs,.redesign-nutrition-tabs,
 .redesign-bju-detail-grid,.redesign-nutrition-actions,
 .redesign-training-day-status,.redesign-training-day-index,
 .client-home-today-icon,.client-home-metric-icon,.training-row-icon,
 .activity-field-icon,.redesign-more-icon
 ){background-color:#1b2733!important;border-color:#344557!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-training-tabs,.redesign-progress-tabs,.redesign-nutrition-tabs
 ) button{background:transparent!important;color:#9baec0!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-training-tabs,.redesign-progress-tabs,.redesign-nutrition-tabs
 ) button.active{background:#24466b!important;color:#fff!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-training-day,.redesign-progress-training-row,.client-home-today-card,
 .client-home-metric,.redesign-progress-kpi,.redesign-macro-ring-card,
 .measurement-place-card,.meal-plan-card,.meal-view,.meal-option,
 .redesign-training-stat-grid>div,.redesign-progress-achievements>div
 ) :is(strong,b,h2,h3){color:#f1f5fa!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-training-day,.redesign-progress-training-row,.client-home-today-card,
 .client-home-metric,.redesign-progress-kpi,.redesign-macro-ring-card,
 .measurement-place-card,.meal-plan-card,.meal-view,.meal-option
 ) :is(small,em,p){color:#a9b9ca}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-training-day-status,.redesign-training-day-index,
 .redesign-training-day-status strong
 ){color:#8dbdff!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-day.is-next{border-color:#2388f5!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-nutrition-actions button,.redesign-training-details,
 .redesign-training-progress-link,.redesign-progress-training-more,
 .nutrition-targets-button
 ){background:#203954!important;color:#a8d2ff!important;border-color:#344e70!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-more-page,.redesign-training-page,.redesign-progress-page,
 .redesign-nutrition-page,.measurements-page
 )>h1{color:#f1f5fa!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-back-title{position:relative;z-index:1}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-back-title h1{color:#f1f5fa!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .client-home-trainer-card,.meal-plan-card,.meal-view,.meal-option,
 .measurement-place-card,.measurement-weight-visual
 ) :is(button,input,select){border-color:#344557}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-item{background:#151e27!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-item :is(strong,small){color:#f1f5fa!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-item small{color:#9baec0!important}

/* v3: dark theme contrast corrections from iPhone visual QA, client only */
@media(max-width:760px){
 body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .redesign-training-page,.redesign-progress-shell,.redesign-nutrition-page,
  .redesign-more-page,.redesign-more-subpage,.redesign-bju-page
 ){margin-top:0!important}
 body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-top.client-top-compact{
  background:transparent!important;backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;border:0!important
 }
}
/* Previously hard-coded white backgrounds and near-white labels */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .client-weekly-checkin,.redesign-training-help>button,
 .redesign-training-day-main,.activity-steps-card,.activity-field-card,
 .activity-metric-cards>*,.activity-saved-card,
 .progress-workout-detail-hero,.progress-workout-detail-section,
 .progress-workout-exercise,.progress-workout-sets>*,.progress-workout-set-group,
 .progress-workout-muscles,.progress-workout-muscle-row,
 .redesign-progress-achievements,.redesign-progress-achievements>div,
 .redesign-nutrition-actions button,.redesign-nutrition-day-row,
 .redesign-more-list,.redesign-more-item,.meal-plan-head,.meal-plan-body,
 .meal-view,.meal-option,.meal-variant,.measurement-history-card,
 .measurement-place-card,.measurement-next,.measurement-weight-visual
 ){background:#151e27!important;color:#f1f5fa!important;border-color:#344557!important;box-shadow:none!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-training-help,.redesign-training-day,.activity-always-open,
 .redesign-progress-workout-detail,.redesign-progress-achievements,
 .redesign-nutrition-page,.redesign-more-page,.measurements-page
 ) :is(h2,h3,strong,b){color:#f1f5fa!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-training-help>button,.redesign-training-day-main,
 .progress-workout-detail-section,.progress-workout-exercise,
 .measurement-place-card,.measurement-next,.client-weekly-checkin,
 .meal-plan-head,.meal-view,.meal-option
 ) :is(span,strong,b,h2,h3){color:#f1f5fa!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-training-help,.redesign-training-day,.activity-always-open,
 .progress-workout-detail-section,.progress-workout-exercise,
 .measurement-place-card,.measurement-next,.client-weekly-checkin,
 .meal-plan-head,.meal-view,.meal-option
 ) :is(small,em,p){color:#a9b9ca!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .client-weekly-checkin>span,.measurement-kicker,.measurement-place-top,
 .progress-workout-detail-section-head span,.progress-workout-exercise-head strong,
 .redesign-progress-achievements-head h2
 ){color:#f1f5fa!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .progress-workout-sets>*,.progress-workout-set-group,
 .progress-workout-aux,.progress-workout-drop,
 .redesign-training-exercise,.redesign-training-day-body
 ){background:#1b2733!important;border-color:#344557!important;color:#e7eff8!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .progress-workout-sets>*,.progress-workout-set-group
 ) :is(span,b,strong){color:#e7eff8!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-progress-kpi .kpi-icon,.redesign-training-stat-grid .ui-icon,
 .redesign-macro-ring-card .redesign-macro-ring
 ){color:#f1f5fa}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-weekly-checkin{
 background:linear-gradient(130deg,#1b2733,#192b3d)!important
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-weekly-checkin :is(strong,small,span){color:#dce9f7!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-weekly-checkin>span{color:#a9b9ca!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-training-help>button,.redesign-training-day-main
 ){background:#151e27!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-training-day-index,.redesign-training-day-status
 ){background:#203954!important;color:#a8d2ff!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-day.is-next{background:#192738!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-progress-tabs,.redesign-training-tabs,.redesign-nutrition-tabs
 ) button.active{background:#2b4a70!important;color:#f1f5fa!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-nutrition-page,.redesign-more-page
 ) :is(.nutrition-diary-tabs,.nutrition-mode-tabs,.nutrition-view-tabs){
 background:#1b2733!important;color:#f1f5fa!important
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-list{
 background:transparent!important
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-item{
 border:1px solid #344557!important;border-radius:17px!important
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .activity-static-heading{color:#f1f5fa!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .activity-custom-cardio label{color:#f1f5fa!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-nutrition-page,.redesign-progress-page,.redesign-training-page,
 .redesign-more-page
 ) :is(.redesign-nutrition-section-head h2,.measurement-section-title){
 color:#f1f5fa!important
}

/* v4: screenshot follow-up, contrast for nested nutrition, history, measurements */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .meal-plan-card,.meal-plan-card *:not(svg):not(path),
 .redesign-bju-summary,.redesign-nutrition-day-row,
 .calendar-workout-set,.progress-workout-sets .calendar-workout-set
 ){border-color:#344557}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .meal-plan-card,.meal-plan-head,.meal-plan-body,.meal-view,.meal-option,
 .meal-variant,.calendar-workout-set,.progress-workout-sets .calendar-workout-set
 ){background:#151e27!important;color:#f1f5fa!important;box-shadow:none!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .meal-plan-card,.meal-plan-head,.meal-plan-body,.meal-view,.meal-option,
 .meal-variant,.calendar-workout-set,.progress-workout-sets .calendar-workout-set
 ) :is(h1,h2,h3,h4,b,strong){color:#f1f5fa!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .meal-plan-card,.meal-plan-head,.meal-plan-body,.meal-view,.meal-option,
 .meal-variant,.calendar-workout-set
 ) :is(p,small,em){color:#a9b9ca!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .progress-workout-sets .calendar-workout-set{
 background:#1b2733!important
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .progress-workout-sets .calendar-workout-set *{
 color:#dce9f7!important
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .progress-workout-muscle-row :is(span,b,strong),
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .progress-workout-detail-section-head :is(span,strong),
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurements-page .measurement-next h2{
 color:#f1f5fa!important
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .weekly-checkin-modal{
 background:#151e27!important;color:#f1f5fa!important;border-color:#344557!important
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .weekly-checkin-field>label{
 color:#a9b9ca!important
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .weekly-checkin-scale span{
 background:#1b2733!important;border-color:#344557!important;color:#dce9f7!important
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .weekly-checkin-scale input:checked+span{
 background:#2b69c5!important;border-color:#2b69c5!important;color:#fff!important
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .weekly-checkin-comment{
 color:#a9b9ca!important
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-nutrition-page,.redesign-progress-page,.measurements-page
 ) :is(.redesign-progress-achievements-head,.redesign-progress-achievements-title){
 color:#f1f5fa!important
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .redesign-nutrition-page,.redesign-progress-page,.measurements-page
 ) :is(.redesign-progress-achievements-head h2,.redesign-progress-achievements-title h2){
 color:#f1f5fa!important
}


/* v5: dark nutrition contrast. Scoped to client dark mode; no light-theme changes.
   Fixes white nested plan/diary panels and light-on-light text in the iPhone QA. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"]{
 --nutrition-dark-surface:#151e27;
 --nutrition-dark-raised:#1b2733;
 --nutrition-dark-border:#344557;
 --nutrition-dark-text:#f1f5fa;
 --nutrition-dark-muted:#a9b9ca;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .nutrition-diary-card,.nutrition-diary-meal,.nutrition-diary-meal-body,
 .nutrition-diary-day-total,.nutrition-diary-edit,
 .nutrition-menu-meal-v2,.nutrition-menu-meal-v2 .nutrition-menu-meal-body,
 .meal-plan-card,.meal-plan-head,.meal-plan-body,.meal-view,.meal-option,.meal-variant
){
 background:var(--nutrition-dark-surface)!important;
 border-color:var(--nutrition-dark-border)!important;
 color:var(--nutrition-dark-text)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .nutrition-diary-meal-title strong,.nutrition-diary-item strong,
 .nutrition-diary-heading h2,.nutrition-diary-meal-head strong,
 .nutrition-diary-edit h2,.nutrition-diary-day-total strong,
 .nutrition-menu-meal-v2 h3,.nutrition-menu-meal-v2 strong,
 .meal-plan-card h2,.meal-plan-card h3,.meal-plan-card strong
){color:var(--nutrition-dark-text)!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .nutrition-diary-meal-title small,.nutrition-diary-meal-head small,
 .nutrition-diary-item small,.nutrition-diary-empty,
 .nutrition-diary-note,.nutrition-diary-heading p,
 .nutrition-diary-meal-calories,.nutrition-diary-edit label,
 .nutrition-menu-meal-v2 p,.nutrition-menu-meal-v2 small,
 .meal-plan-card p,.meal-plan-card small
){color:var(--nutrition-dark-muted)!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .nutrition-diary-item,.nutrition-diary-meal-head,
 .nutrition-diary-day-total
){border-color:var(--nutrition-dark-border)!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .nutrition-diary-date-pill,.nutrition-diary-edit input,
 .nutrition-diary-edit select,.nutrition-diary-item-actions button,
 .nutrition-diary-add,.nutrition-diary-save-recipe
){
 background:var(--nutrition-dark-raised)!important;
 border-color:var(--nutrition-dark-border)!important;
 color:#dce9f7!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .nutrition-diary-edit-actions button.primary{
 background:#2b69c5!important;color:#fff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 .nutrition-diary-day-total>span,.nutrition-diary-meal-calories
){color:#a8c9ee!important}


/* v6: dark theme only — training supersets and exercise alternatives.
   Keep workout structure and interactions unchanged. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-superset{
 background:#192530!important;
 border:1px solid #344557!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-superset-label{
 background:#23374b!important;
 border-color:#344557!important;
 color:#b6d2ef!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-superset-label span{
 color:#a8c9ee!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-superset-label small{
 color:#a9b9ca!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-superset .redesign-training-exercise{
 background:#192530!important;
 border-color:#344557!important;
 color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-alternatives{
 color:#a9b9ca!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-alternatives em{
 color:#a9b9ca!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-alt-chip{
 background:#243444!important;
 border:1px solid #405367!important;
 color:#f1f5fa!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-alt-chip i{
 color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-alt-chip small{
 color:#a9b9ca!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-alt-chip .redesign-training-alt-tech{
 border-color:#405367!important;
 color:#e58a49!important;
}


/* v7: dark training exercise numbers and remove the extra superset outline. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-exercise > span:first-child{
 background:#2a4058!important;
 color:#c6dcf3!important;
 border:1px solid #3b5269!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-superset .redesign-training-exercise > span:first-child{
 background:#2a4058!important;
 color:#c6dcf3!important;
 border-color:#3b5269!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-superset{
 border:0!important;
 outline:0!important;
 box-shadow:none!important;
 background:#192530!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-superset-label{
 border:0!important;
 border-bottom:1px solid #344557!important;
}


/* v8: eliminate nested training-day seams in dark mode.
   The day card owns the sole outer border; exercise rows retain subtle dividers. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-day-body,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-exercises{
 background:#151e27!important;
 border:0!important;
 outline:0!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-day-main{
 border-bottom:0!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-exercise{
 background:transparent!important;
 border-left:0!important;
 border-right:0!important;
 outline:0!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-superset{
 background:#192530!important;
 border:0!important;
 outline:0!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-superset .redesign-training-exercise{
 background:transparent!important;
 border-left:0!important;
 border-right:0!important;
}


/* v9: dark-only contrast fixes for workout start, activity and stats. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #workoutStartConfirmModal .workout-start-confirm{
 background:#18232f!important;color:#f1f5fa!important;border:1px solid #344557!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #workoutStartConfirmModal .workout-start-confirm :is(h2,p strong,.workout-phase-select>strong,.workout-phase-copy strong){
 color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #workoutStartConfirmModal .workout-start-confirm :is(p,.workout-phase-select>small,.workout-phase-copy small){
 color:#a9b9ca!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #workoutStartConfirmModal .workout-phase-option{
 background:#202e3e!important;border-color:#405367!important;color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #workoutStartConfirmModal .workout-phase-option.selected{
 background:#253d55!important;border-color:#4388e4!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #workoutStartConfirmModal :is(.workout-confirm-close,.workout-confirm-secondary){
 background:#263747!important;color:#dce9f7!important;border-color:#405367!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #workoutStartConfirmModal .workout-confirm-primary:disabled{
 background:#3b608d!important;color:#c7d8ec!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .cardio-entry-card{
 background:#202e3e!important;color:#f1f5fa!important;border-color:#405367!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .cardio-entry-card :is(strong,b){
 color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .cardio-entry-card small{
 color:#a9b9ca!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .cardio-entry-card.selected{
 background:#263e55!important;border-color:#4388e4!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .activity-steps-card :is(label,input){
 color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .activity-steps-card input{
 background:#202e3e!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .activity-approved-icon{
 filter:brightness(0) saturate(100%) invert(85%) sepia(12%) saturate(333%) hue-rotate(171deg)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-stat-grid .ui-icon,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-stat-grid svg{
 color:#b6d2ef!important;stroke:#b6d2ef!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-details>span{
 color:#b6d2ef!important;
}


/* Dark theme: active workout surface, without touching workout behavior. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.workout-live-exercise,.workout-live-superset,.workout-live-superset-head,.workout-live-superset-body,.workout-live-exercise-inner,.workout-duration-strip,.workout-current-phase){
 background:#18232e!important;border-color:#334454!important;color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.workout-live-toggle,.workout-live-grouped-exercise-head){
 background:transparent!important;color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.workout-live-toggle strong,.workout-live-superset-copy strong,.workout-current-phase strong,.workout-duration-strip>span){
 color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.workout-plan-line,.workout-plan-meta,.workout-live-superset-copy>span,.workout-current-phase small){
 color:#aabbd0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-superset-head{
 background:#223648!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.workout-live-body,.workout-live-grouped-body,.workout-live-superset-divider){
 border-color:#334454!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.workout-live-toggle .arrow,.workout-live-superset-arrow,.workout-live-toggle-side){
 color:#b5c8dd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-current-phase[data-phase="heavy"]{
 background:#292a2b!important;border-color:#65503b!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-current-phase[data-phase="medium"]{
 background:#1d3044!important;border-color:#365b80!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-current-phase[data-phase="light"]{
 background:#1d342e!important;border-color:#356452!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.workout-live-exercise.is-exercise-complete,.workout-live-superset.is-superset-complete){
 background:#1a302b!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.workout-live-exercise input,.workout-live-exercise select,.workout-live-exercise textarea,.workout-live-superset input,.workout-live-superset select){
 background:#223344!important;color:#f1f5fa!important;border-color:#405467!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.workout-live-exercise input::placeholder,.workout-live-superset input::placeholder){
 color:#91a6bb!important;
}


/* Active workout expanded sets: eliminate light-mode surfaces in dark theme. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-exercise .workout-live-body,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-exercise .exercise-body,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-superset .exercise-body{
 background:#18232e!important;color:#eef3f9!important;border-color:#334454!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body :is(.set-row,.set-card,.workout-set-row,.workout-set-card,.previous-set-row,.warmup-set-row){
 background:#202e3c!important;color:#eef3f9!important;border-color:#34485c!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body :is(.muted,small,label,.set-label,.set-header,.previous-result,.previous-set,.workout-set-meta){
 color:#adbed1!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body :is(button,.btn,.secondary,.btn-secondary){
 background:#273c50!important;color:#dce9f8!important;border-color:#40576f!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body :is(input,select,textarea){
 background:#243748!important;color:#f1f5fa!important;border-color:#476078!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body :is(th,td,strong,b){
 color:#eaf2fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body :is(hr,table,thead,tbody,tr){
 border-color:#35485a!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-duration-strip :is(.workout-duration-badge,.duration-badge,strong,b,span){
 color:#edf5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-duration-strip :is(.workout-duration-badge,.duration-badge){
 background:#254137!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-exercise :is(.workout-day-title,.workout-active-day-title),
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body h1,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body h2{
 color:#f1f5fa!important;
}


/* Dark theme: actual Lyfta set markup (workout-lyfta.js). */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-wrap,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-swipe,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-swipe-content{
 background:#202e3c!important;color:#eef3f9!important;border-color:#34485c!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-wrap.is-complete .lyfta-set-swipe-content{
 background:#1d3933!important;border-color:#426858!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-prev-line,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-prev-line :is(span,strong),
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-row .setnum{
 color:#d2e0ee!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-prev-line button{
 background:#30465c!important;color:#e6f0fa!important;border-color:#466079!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-row{
 background:transparent!important;color:#edf3fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-row input{
 background:#263a4c!important;color:#f3f7fc!important;border-color:#4a6279!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-row input::placeholder{
 color:#a6b9cc!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-done{
 background:#30475d!important;color:#e6f0fa!important;border-color:#4a6279!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-done.done{
 background:#235746!important;color:#d9f6e7!important;
}


/* v12: focused active-workout dark polish, based on actual component classes.
   Applies only to the client dark theme; no layout or workout logic changes. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-active-workout>h2{
  color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-active-workout .redesign-rest-timer-icon,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-active-workout .redesign-rest-timer-play{
  background:#243749!important;
  color:#d9eafa!important;
  border:1px solid #435a70!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-active-workout .redesign-rest-timer-icon.running,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-active-workout .redesign-rest-timer-play.running{
  background:#1e4465!important;
  color:#b6dcff!important;
  border-color:#417cbb!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-active-workout .redesign-rest-timer-icon.paused{
  background:#293746!important;
  color:#aebfd0!important;
  border-color:#435a70!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-exercise>.workout-live-toggle.open{
  background:#18232e!important;
  border-bottom:1px solid #304255!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-exercise .workout-live-body{
  border-top:0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-head{
  color:#a0b2c6!important;
  border:0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-wrap{
  background:transparent!important;
  border-top:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-wrap.is-complete{
  background:#1d3933!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-swipe-content{
  background:#223547!important;
  border:1px solid #34485c!important;
  border-radius:12px!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-wrap.is-complete .lyfta-set-swipe-content{
  background:#254238!important;
  border-color:#356454!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-prev-line>span{
  color:#b0c3d6!important;
}


/* v13: rest timer surfaces, dropset and active workout seam (dark theme only) */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .card.redesign-active-workout{
 background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-active-workout .workout-live-exercise:not(.workout-live-exercise-inner){
 background:#18232e!important;border-color:#344557!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-active-workout .workout-live-exercise>.workout-live-toggle.open{
 background:#18232e!important;border-bottom:0!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-active-workout .workout-live-exercise>.workout-live-body{
 background:#18232e!important;border-top:0!important;box-shadow:none!important;
}
/* The drop-set strip under a completed set was still a light-mode white block. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-drop-zone,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-wrap.is-complete .lyfta-drop-zone{
 background:#254238!important;border-left:1px solid #426858!important;
 color:#dcece5!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-add-drop{
 background:#304a52!important;border:1px solid #4b6970!important;
 color:#edf5f4!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-aux-row>input,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-aux-row>button{
 background:#2b4250!important;border-color:#48616e!important;color:#ecf3fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-aux-row>span{
 color:#b8cbd4!important;
}
/* Rest timer picker is appended to <body>, not inside the workout card. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .rest-timer-picker .rest-timer-picker-card{
 background:#192530!important;color:#f1f5fa!important;border:1px solid #344557!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .rest-timer-picker :is(.rest-timer-picker-head strong,.rest-timer-picker-head h2){
 color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .rest-timer-picker .rest-timer-picker-head span{
 color:#a9b9ca!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .rest-timer-picker .rest-timer-picker-handle{
 background:#586a7d!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .rest-timer-picker :is(.rest-timer-picker-close,.rest-timer-preset-list button,.rest-timer-custom){
 background:#263a4c!important;color:#e5eff8!important;
 border:1px solid #41586d!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .rest-timer-picker .rest-timer-preset-list button.selected{
 background:#254e7a!important;color:#cbe3ff!important;border-color:#4584c4!important;
}
/* Running in-page rest timer: avoid pale blue card and low-contrast countdown. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-active-workout .workout-featured-rest{
 background:#1b2c3d!important;border:1px solid #3d5c7a!important;
 color:#f1f5fa!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-featured-rest :is(
 .workout-featured-rest-heading,.workout-featured-rest-value
){color:#edf5ff!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-featured-rest :is(
 .workout-featured-rest-next,.workout-featured-rest-status
){color:#acc0d5!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-featured-rest .workout-featured-rest-settings{
 background:transparent!important;color:#b9cbe0!important;border:0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-featured-rest .workout-featured-rest-track{
 stroke:#42576c!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-featured-rest .workout-featured-rest-ring>span,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-featured-rest .workout-featured-rest-ring>span svg{
 color:#bfd7ec!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-featured-rest .workout-featured-rest-actions>button{
 background:#273e54!important;border-color:#466684!important;
 color:#d7e8f7!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-featured-rest .workout-featured-rest-actions>.workout-featured-rest-pause,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-featured-rest.is-paused .workout-featured-rest-actions>.workout-featured-rest-pause{
 background:#225480!important;border-color:#4a92d6!important;color:#e2f2ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-featured-rest .workout-featured-rest-actions>button svg{
 color:inherit!important;
}
/* Persistent floating rest timer uses independent fixed-position markup. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-floating-rest-timer{
 background:rgba(29,46,62,.97)!important;border:1px solid #456079!important;
 color:#eaf3ff!important;box-shadow:0 9px 24px rgba(0,0,0,.30)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-floating-rest-timer :is(
 #floatingRestTimerValue,.redesign-floating-rest-timer-copy strong
){color:#edf5ff!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-floating-rest-timer :is(
 .redesign-floating-rest-timer-copy small,.redesign-floating-rest-timer-icon
){color:#a9c7e8!important}


/* OLED B: completion is communicated in the OUTER card and in each set row,
   not by flooding the expanded summary with saturated green. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-exercise.is-exercise-complete{
  background:#0E1914!important;
  border-color:rgba(50,210,122,.38)!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-exercise.is-exercise-complete>.workout-live-toggle,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-superset .workout-live-exercise.is-exercise-complete>.workout-live-toggle,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-exercise.is-exercise-complete>.workout-live-toggle.open{
  background:#102019!important;
  color:#F4F7FB!important;
  border-color:rgba(50,210,122,.24)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-exercise.is-exercise-complete .workout-live-toggle :is(strong,b,h2,h3){
  color:#F4F7FB!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-exercise.is-exercise-complete .workout-live-toggle .workout-plan-line{
  color:#B8C7BE!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-exercise.is-exercise-complete .workout-live-body{
  background:#0B0F14!important;
  color:#F4F7FB!important;
  border-color:rgba(120,146,184,.14)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-completed-summary{
  background:#11161D!important;
  border:1px solid rgba(120,146,184,.20)!important;
  color:#F4F7FB!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-completed-summary-head strong{
  color:#DFF8E9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-completed-summary-head small{
  color:#9AAFC0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-completed-summary-icon{
  background:rgba(50,210,122,.16)!important;
  color:#85E4AF!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-completed-set:not(.skipped){
  background:rgba(50,210,122,.085)!important;
  color:#B5DAC5!important;
  border:1px solid rgba(50,210,122,.26)!important;
  border-left:3px solid #32D27A!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-completed-set:not(.skipped) span{
  color:#BBD8C9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-completed-set:not(.skipped) strong{
  color:#F3FAF5!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-completed-set:not(.skipped) em{
  color:#BCD8C7!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-completed-set.skipped{
  background:#151B24!important;
  border:1px solid rgba(120,146,184,.24)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-completed-drop{
  background:rgba(50,210,122,.045)!important;
  border-left-color:rgba(50,210,122,.3)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-completed-drop :is(span,strong){color:#C3D9CC!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-completed-aux{
  background:#151B24!important;
  border-color:rgba(120,146,184,.20)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-completed-aux small{color:#9AADB9!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-completed-aux span{
  background:#202A33!important;color:#DCE7F0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-completed-replacement{
  background:#151B24!important;
  color:#B1C2CF!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-completed-replacement strong{color:#EDF3F8!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-completed-edit{
  background:#173050!important;
  border-color:rgba(69,148,255,.36)!important;
  color:#DCEBFF!important;
  box-shadow:none!important;
}

/* v16: dark workout warm-up rows and extra sets — exact Lyfta classes */
/* Warm-up approaches live inside a separate card, not inside .lyfta-set-wrap. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-warmup-block{
 background:#203344!important;
 color:#edf5ff!important;
 border:1px solid #3a5469!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-warmup-head strong{
 color:#eaf3fc!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-warmup-head small{
 color:#b4c6d7!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-warmup-head>button{
 background:#30495e!important;
 border:1px solid #4d6980!important;
 color:#dcecfb!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-warmup-list{
 background:transparent!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-warmup-block .lyfta-aux-row{
 background:transparent!important;
 color:#e8f0fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-warmup-block .lyfta-aux-row>span{
 color:#b4cce0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-warmup-block .lyfta-aux-row>input{
 background:#2a4355!important;
 border:1px solid #4e6a7e!important;
 color:#f2f7fc!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-warmup-block .lyfta-aux-row>input::placeholder{
 color:#b0bfd0!important;
 opacity:1;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-warmup-block .lyfta-aux-row>button{
 background:#294354!important;
 border:1px solid #4b687d!important;
 color:#dceaf7!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-warmup-toggle{
 background:#223849!important;
 border:1px dashed #49657d!important;
 color:#ccdef0!important;
 box-shadow:none!important;
}
/* Extra working sets should look like other set rows, without a white number plate. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-wrap.is-extra{
 border-top:0!important;
 background:transparent!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-row.is-extra .setnum{
 position:relative!important;
 background:#30485e!important;
 border:1px solid #47657d!important;
 border-radius:10px!important;
 color:#e3f0ff!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-row.is-extra .setnum small{
 background:#4778a7!important;
 border:1px solid #5d8db8!important;
 color:#fff!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-extra-set-actions .lyfta-add-set{
 background:#2a4054!important;
 border:1px solid #456077!important;
 color:#e7f2fd!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-extra-set-actions>small{
 color:#aabdd0!important;
}


/* v17 — dark workout swipe actions and progress measurement contrast */
/* Color-coded swipe actions: skip = amber, delete = red, restore = blue.
   The actions are already wired by workout-lyfta.js; only their CSS changes. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-action-tray.skip,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-action-tray.skip button{
  background:#6b4721!important;
  color:#ffe5b3!important;
  border-color:#906536!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-action-tray.delete,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-action-tray.delete button{
  background:#6c303b!important;
  color:#ffe0e4!important;
  border-color:#944b59!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-action-tray.restore,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-action-tray.restore button{
  background:#264e77!important;
  color:#d8eafe!important;
  border-color:#4778a6!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-action-tray button{
  font-weight:900!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-set-wrap.is-skipped .lyfta-set-swipe-content{
  background:#26313b!important;
  border-color:#435568!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-skipped-copy strong{
  color:#e7edf4!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-live-body .lyfta-skipped-copy small{
  color:#a9b8c8!important;
}
/* History sheet: OLED panel, compact header and centered SVG close. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #exerciseHistoryModal{
  background:rgba(0,0,0,.76)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #exerciseHistoryModal .lyfta-history-modal{
  box-sizing:border-box;
  width:min(440px,calc(100vw - 28px))!important;
  max-height:min(82dvh,730px)!important;
  padding:20px!important;
  border:1px solid rgba(120,146,184,.22)!important;
  border-radius:22px!important;
  background:#0B0F14!important;
  color:#F4F7FB!important;
  box-shadow:0 24px 65px rgba(0,0,0,.48)!important;
  overflow:auto;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #exerciseHistoryModal .lyfta-history-modal>.between{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 42px!important;
  align-items:start!important;
  gap:12px!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #exerciseHistoryModal .lyfta-history-modal>.between>div{min-width:0!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #exerciseHistoryModal .lyfta-history-modal h2{
  margin:4px 0 0!important;
  font-size:clamp(19px,5.5vw,25px)!important;
  line-height:1.25!important;
  overflow-wrap:anywhere!important;
  color:#F4F7FB!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #exerciseHistoryModal .lyfta-history-kicker{
  color:#8DBEFF!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #exerciseHistoryModal .lyfta-history-close{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  flex:0 0 42px!important;
  width:42px!important;height:42px!important;
  min-width:42px!important;min-height:42px!important;
  margin:0!important;padding:0!important;
  border:1px solid rgba(120,146,184,.32)!important;
  border-radius:13px!important;
  background:#151B24!important;
  color:#D9E8F8!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #exerciseHistoryModal .lyfta-history-close svg{
  display:block!important;
  flex:none!important;
  width:20px!important;height:20px!important;
  stroke:currentColor!important;
  transform:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #exerciseHistoryModal :is(.lyfta-history-chart>div,.lyfta-history-kicker){
  color:#9AAFC3!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #exerciseHistoryModal .lyfta-history-chart{
  padding:12px!important;
  background:#11161D!important;
  border:1px solid rgba(120,146,184,.16)!important;
  border-radius:14px!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #exerciseHistoryModal .lyfta-history-line{
  stroke:#4594FF!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #exerciseHistoryModal .lyfta-history-dot{
  fill:#0B0F14!important;stroke:#4594FF!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #exerciseHistoryModal .redesign-progress-empty-chart{
  margin-top:16px!important;
  padding:20px 16px!important;
  border:1px dashed rgba(120,146,184,.21)!important;
  border-radius:14px!important;
  background:#11161D!important;
  color:#AEBECD!important;
  text-align:center!important;
  line-height:1.55!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #exerciseHistoryModal .lyfta-history-item{
  background:#11161D!important;
  border:1px solid rgba(120,146,184,.18)!important;
  color:#F4F7FB!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #exerciseHistoryModal .lyfta-history-item span{
  color:#9AAFC3!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #exerciseHistoryModal .lyfta-history-item strong{
  color:#F4F7FB!important;
}

/* Progress overview: explicit light-theme text colors were invisible on graphite. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-achievements-head>div>span{
  color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-achievements-head>div>strong{
  color:#b0c0d0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-kpi .kpi-icon.blue{
  background:#213c58!important;
  color:#80bcff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-kpi .kpi-icon.green{
  background:#214538!important;
  color:#83dbab!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-kpi .kpi-icon.blue svg{
  color:#80bcff!important;
  stroke:#80bcff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-kpi .kpi-icon.green svg{
  color:#83dbab!important;
  stroke:#83dbab!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-kpi-arrows button{
  background:#273b4f!important;
  color:#dceafb!important;
  border-color:#3a5268!important;
}
/* Measurement summary: the strongest heading and 'Вага' label were dark navy. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurements-page .measurement-next .measurement-kicker{
  color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurements-page .measurement-next h2{
  color:#dce7f1!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurements-page .measurement-next p{
  color:#a9bbce!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurements-page .measurement-weight-visual .measurement-place-top>span,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurements-page .measurement-place-card .measurement-place-top>span{
  color:#eaf2fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurements-page .measurement-weight-visual strong,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurements-page .measurement-place-card>strong{
  color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurements-page :is(
 .measurement-weight-visual,.measurement-place-card
) :is(em,small){
  color:#a9bbce!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-week .progress-week-icon{
  background:#213c58!important;
  color:#80bcff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-week .progress-week-icon svg{
  color:#80bcff!important;
  stroke:#80bcff!important;
}


/* v18 — measurement artwork and history/calendar surfaces (dark client theme only) */
/* Reuse the existing male/female measurement sprites. Their opaque white
   backgrounds become visually dark through a reversible dark-only filter.
   Screen blending retains colored measurement zones without new image assets. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-place-top{
  position:relative;
  isolation:isolate;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-place-top::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  box-sizing:border-box;
  width:74px;
  height:78px;
  border-radius:14px;
  border:1px solid #3a5166;
  background:#1e2c39;
  pointer-events:none;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-weight-visual .measurement-place-top::before{
  width:82px;
  height:82px;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-place-top .measurement-generated-art{
  position:relative;
  z-index:1;
  background-color:#fff!important;
  box-shadow:none!important;
  filter:invert(1) hue-rotate(180deg) brightness(1.9) saturate(1.25);
  mix-blend-mode:screen;
}
@media (max-width:370px){
  body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-place-top::before{
    width:66px;
    height:70px;
  }
  body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-weight-visual .measurement-place-top::before{
    width:66px;
    height:70px;
  }
}
/* Collapsed history row at the bottom of Progress > Заміри. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-history-calendar-card{
  background:#18232e!important;
  border-color:#34485b!important;
  color:#eef4fb!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-history-calendar-toggle{
  background:#18232e!important;
  color:#eef4fb!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-history-calendar-toggle strong{
  color:#eef4fb!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-history-calendar-toggle small,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-history-calendar-toggle>b{
  color:#adbed1!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-history-calendar-body{
  background:#18232e!important;
  border-top:1px solid #34485b!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-calendar-head>strong{
  color:#eaf3fd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-calendar-head>button{
  background:#293d50!important;
  color:#dbeafa!important;
  border-color:#445e76!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-calendar-weekdays span{
  color:#9eb1c5!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-calendar-day{
  background:#253647!important;
  color:#bfd0df!important;
  border-color:#32475a!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-calendar-day.has-data{
  background:#24466a!important;
  border-color:#477eae!important;
  color:#d3e8ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-calendar-day.has-data::after{
  background:#7fbaff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-calendar-day.active{
  background:#2465b8!important;
  border-color:#4b99ef!important;
  color:#fff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-calendar-day.active::after{
  background:#fff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-calendar-selected{
  border-top-color:#34485b!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.measurement-calendar-hint,.measurement-calendar-empty){
  background:#223446!important;
  color:#b7c9db!important;
  border-color:#34485b!important;
}
/* Expanded date details, including paired measurements. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-history-card.redesigned-history{
  background:#1d2b39!important;
  border-color:#3a4f63!important;
  color:#eef4fb!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-history-head{
  border-bottom-color:#3a4f63!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-history-head strong{
  color:#eaf3fd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .measurement-history-caption,.measurement-history-section h4,
  .measurement-history-pair-sides small
){
  color:#a9bbce!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .measurement-history-metric,.measurement-history-pair,
  .measurement-history-legacy,.measurement-history-pair-sides>span
){
  background:#26394a!important;
  border-color:#3b5268!important;
  color:#e7f0f9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .measurement-history-metric>span,.measurement-history-pair-title
){
  color:#bdd0e2!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .measurement-history-metric>strong,.measurement-history-pair-sides b
){
  color:#f0f6fc!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-history-card .measurement-edit{
  background:#25486b!important;
  border-color:#4779aa!important;
  color:#b6dcff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-history-card .measurement-delete{
  background:#55313b!important;
  border-color:#824a58!important;
  color:#ffb7bf!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-history-card .measurement-delete svg{
  stroke:currentColor!important;
}
/* Paired body measurement values should not retain pale filled subcards. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-side-values>span{
  background:#25394a!important;
  border-color:#3b5268!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-side-values :is(b,strong){
  color:#eaf3fd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-side-values small{
  color:#b2c4d6!important;
}


/* v19 — measurement entry form: dark surfaces and readable inputs */
/* Explicitly override the older light-only !important form tiles. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-tip{
  background:#203142!important;
  border:1px solid #3c536a!important;
  color:#e8f1fa!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-tip strong{
  color:#edf5fd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-tip span{
  color:#afc3d6!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-date-row{
  background:#203142!important;
  border:1px solid #3c536a!important;
  color:#e8f1fa!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-date-row label{
  color:#b7c9d9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-date-row input[type="date"]{
  background:#182a3a!important;
  border:1px solid #476178!important;
  color:#f1f7fd!important;
  color-scheme:dark;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-date-row input[type="date"]::-webkit-calendar-picker-indicator{
  filter:invert(1) brightness(1.3);
  opacity:.8;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-form-section h3{
  color:#f1f6fd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-form-section>p{
  color:#afc3d6!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-input-grid label{
  color:#b7c9d9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-input-grid input{
  background:#1b2b3a!important;
  border:1px solid #3c5266!important;
  color:#eef5fc!important;
  box-shadow:none!important;
  color-scheme:dark;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-pair-group{
  background:#203142!important;
  border:1px solid #3c536a!important;
  color:#edf5fd!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-pair-title{
  color:#eef5fd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-pair-inputs label,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-pair-inputs label span{
  color:#b7c9d9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-pair-inputs input{
  background:#1b2b3a!important;
  border:1px solid #476178!important;
  color:#edf5fd!important;
  box-shadow:none!important;
  color-scheme:dark;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form input::placeholder{
  color:#99afc3!important;
  opacity:1;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form :is(
  .measurement-pair-inputs input,.measurement-input-grid input,.measurement-date-row input
):focus{
  outline:2px solid #438cf0!important;
  outline-offset:1px;
  border-color:#438cf0!important;
}
/* Date/number controls remain legible in iOS Safari/PWA dark appearance. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form input{
  -webkit-text-fill-color:#edf5fd;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form input::placeholder{
  -webkit-text-fill-color:#99afc3;
}


/* v20 — shared measurement thumbnail alignment, light and dark */
/* All measurement icons use one correctly proportioned 5x2 sprite viewport.
   Keep the name alongside the image; center each sprite cell in its slot.
   These structural rules are intentionally theme-independent. */
body.eplan-redesign.client-ui .measurement-place-top,
body.eplan-redesign.trainer-ui .trainer-measurements-page .measurement-place-top{
  --measurement-art-slot:84px;
  --measurement-art-width:76px;
  --measurement-art-height:80px;
  display:grid!important;
  grid-template-columns:var(--measurement-art-slot) minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:10px!important;
}
body.eplan-redesign.client-ui .measurement-place-top>.measurement-generated-art,
body.eplan-redesign.trainer-ui .trainer-measurements-page .measurement-place-top>.measurement-generated-art,
body.eplan-redesign.client-ui .measurement-weight-visual .measurement-place-top>.measurement-generated-art,
body.eplan-redesign.trainer-ui .trainer-measurements-page .measurement-weight-visual .measurement-place-top>.measurement-generated-art{
  display:block!important;
  box-sizing:border-box!important;
  width:var(--measurement-art-width)!important;
  height:var(--measurement-art-height)!important;
  justify-self:center!important;
  align-self:center!important;
  flex:none!important;
  margin:0!important;
  background-size:500% 200%!important;
  background-position:calc(var(--mx) + var(--measurement-figure-x, 0%)) var(--my)!important;
  background-repeat:no-repeat!important;
}
body.eplan-redesign.client-ui .measurement-place-top>span:not(.measurement-generated-art),
body.eplan-redesign.trainer-ui .trainer-measurements-page .measurement-place-top>span:not(.measurement-generated-art){
  min-width:0;
  align-self:center;
}
/* Dark skin uses a separate backing plate for the sprite. Keep it exactly
   aligned with the centered viewport; avoid an off-center double frame. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-place-top::before{
  box-sizing:border-box;
  top:0!important;
  left:calc((var(--measurement-art-slot) - var(--measurement-art-width)) / 2)!important;
  width:var(--measurement-art-width)!important;
  height:var(--measurement-art-height)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-weight-visual .measurement-place-top::before{
  left:calc((var(--measurement-art-slot) - var(--measurement-art-width)) / 2)!important;
  width:var(--measurement-art-width)!important;
  height:var(--measurement-art-height)!important;
}
@media (max-width:370px){
  body.eplan-redesign.client-ui .measurement-place-top,
  body.eplan-redesign.trainer-ui .trainer-measurements-page .measurement-place-top{
    --measurement-art-slot:72px;
    --measurement-art-width:66px;
    --measurement-art-height:70px;
    column-gap:8px!important;
  }
}


/* v21 — correct the artwork inside sprite cells, not the icon frames */
/* The source figures are not perfectly centered inside their 5x2 sprite cells.
   Positive percentages move the artwork left while leaving its frame fixed.
   Calibrations are relative to the sprite cell, hence scale with viewport size.
   The same rules apply to male/female artwork in both themes and trainer/client. */
body.eplan-redesign .measurement-generated-art.sex-male.metric-art-shoulders { --measurement-figure-x:1.0%; }
body.eplan-redesign .measurement-generated-art.sex-male.metric-art-neck      { --measurement-figure-x:0.7%; }
body.eplan-redesign .measurement-generated-art.sex-male.metric-art-chest     { --measurement-figure-x:1.4%; }
body.eplan-redesign .measurement-generated-art.sex-male.metric-art-waist     { --measurement-figure-x:0.7%; }
body.eplan-redesign .measurement-generated-art.sex-male.metric-art-hips      { --measurement-figure-x:1.4%; }
body.eplan-redesign .measurement-generated-art.sex-male.metric-art-thighs    { --measurement-figure-x:1.0%; }
body.eplan-redesign .measurement-generated-art.sex-male.metric-art-calves    { --measurement-figure-x:0.8%; }
body.eplan-redesign .measurement-generated-art.sex-male.metric-art-arms      { --measurement-figure-x:0.9%; }
body.eplan-redesign .measurement-generated-art.sex-male.metric-art-forearms  { --measurement-figure-x:0.9%; }
body.eplan-redesign .measurement-generated-art.sex-female.metric-art-shoulders { --measurement-figure-x:0.45%; }
body.eplan-redesign .measurement-generated-art.sex-female.metric-art-neck      { --measurement-figure-x:0.40%; }
body.eplan-redesign .measurement-generated-art.sex-female.metric-art-chest     { --measurement-figure-x:0.55%; }
body.eplan-redesign .measurement-generated-art.sex-female.metric-art-waist     { --measurement-figure-x:0.35%; }
body.eplan-redesign .measurement-generated-art.sex-female.metric-art-hips      { --measurement-figure-x:0.50%; }
body.eplan-redesign .measurement-generated-art.sex-female.metric-art-thighs    { --measurement-figure-x:0.45%; }
body.eplan-redesign .measurement-generated-art.sex-female.metric-art-calves    { --measurement-figure-x:0.35%; }
body.eplan-redesign .measurement-generated-art.sex-female.metric-art-arms      { --measurement-figure-x:0.40%; }
body.eplan-redesign .measurement-generated-art.sex-female.metric-art-forearms  { --measurement-figure-x:0.40%; }
/* The scales sprite is already centered; keep its original crop. */
body.eplan-redesign .measurement-generated-art.metric-art-weight { --measurement-figure-x:0%; }


/* v22 — readable completed workout timed and skipped sets, both themes */
/* Historic timed sets need two columns, not the generic three-column row:
   the plan/rest text otherwise crushes '30 сек на кожну руку' to a word-wide strip. */
body.eplan-redesign.client-ui .redesign-progress-workout-detail
.progress-workout-sets .calendar-workout-set.progress-workout-timed-set{
  display:grid!important;
  grid-template-columns:72px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:10px!important;
  row-gap:6px!important;
  align-items:start!important;
  padding:12px!important;
  min-width:0;
}
body.eplan-redesign.client-ui .redesign-progress-workout-detail
.calendar-workout-set.progress-workout-timed-set>span{
  grid-column:1;
  grid-row:1;
  white-space:nowrap;
  line-height:1.5;
}
body.eplan-redesign.client-ui .redesign-progress-workout-detail
.calendar-workout-set.progress-workout-timed-set>strong{
  grid-column:2;
  grid-row:1;
  display:block;
  min-width:0;
  line-height:1.4!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word;
  font-size:13px!important;
}
body.eplan-redesign.client-ui .redesign-progress-workout-detail
.progress-workout-timed-meta{
  grid-column:2;
  grid-row:2;
  display:flex;
  flex-wrap:wrap;
  gap:4px 12px;
  min-width:0;
  line-height:1.4;
  font-size:11px;
  font-weight:650;
  color:#61758b;
}
body.eplan-redesign.client-ui .redesign-progress-workout-detail
.progress-workout-timed-meta>span{
  flex:0 1 auto;
  min-width:0;
  white-space:normal;
  word-break:normal;
  overflow-wrap:break-word;
  color:inherit;
}
/* Skipped sets have their own status line instead of three competing columns. */
body.eplan-redesign.client-ui .redesign-progress-workout-detail
.progress-workout-sets .calendar-workout-set.skipped{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  gap:4px 9px!important;
  padding:11px 12px!important;
  border:1px solid #e9d8b7;
  background:#fff9ef;
}
body.eplan-redesign.client-ui .redesign-progress-workout-detail
.calendar-workout-set.skipped>span{
  grid-column:1;
  grid-row:1;
  white-space:nowrap;
  color:#6e7380;
}
body.eplan-redesign.client-ui .redesign-progress-workout-detail
.calendar-workout-set.skipped>strong{
  grid-column:2;
  grid-row:1;
  justify-self:end;
  padding:5px 9px;
  border-radius:9px;
  background:#fff0d6;
  color:#8b5515!important;
  font-size:11px!important;
  white-space:nowrap;
  line-height:1.3;
}
body.eplan-redesign.client-ui .redesign-progress-workout-detail
.calendar-workout-set.skipped>em{
  grid-column:1 / -1;
  grid-row:2;
  color:#987a56;
  font-size:11px;
  white-space:normal!important;
  line-height:1.4;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-workout-detail
.progress-workout-sets .calendar-workout-set.skipped{
  background:#2b2927!important;
  border-color:#665239!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-workout-detail
.calendar-workout-set.skipped>span{
  color:#bcc6d2!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-workout-detail
.calendar-workout-set.skipped>strong{
  background:#5a4128!important;
  color:#ffdca8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-workout-detail
.calendar-workout-set.skipped>em{
  color:#cab08b!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-workout-detail
.progress-workout-timed-meta,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-workout-detail
.progress-workout-timed-meta>span{
  color:#aebfd1!important;
}
/* Existing exercise-volume title inherited a light navy color in dark mode. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-workout-detail
.progress-workout-muscles-head>span{
  color:#f1f5fa!important;
}


/* v23 — complete progress accents and globally dark client back buttons */
/* Keep client subpage back arrows consistent with the dark shell.
   Both controls share the exact same arrow pseudo-element in redesign.css. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .unified-back-button,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-back-title>button{
  background:#223346!important;
  border:1px solid #3c536b!important;
  color:transparent!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .unified-back-button::before,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-back-title>button::before{
  border-left-color:#d5e4f5!important;
  border-bottom-color:#d5e4f5!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .unified-back-button>svg,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-back-title>button>svg{
  color:#d5e4f5!important;
  stroke:#d5e4f5!important;
}
/* A light avatar circle is distracting in the dark navigation header. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-top .client-avatar{
  background:#223346!important;
  border-color:#3c536b!important;
  color:#d5e4f5!important;
  box-shadow:none!important;
}
/* Incomplete weekly sessions should be muted tracks rather than white bars. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-week .progress-week-bars>i{
  background:#334558!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-week .progress-week-bars>i.done{
  background:#2388f5!important;
}
/* Preserve the achievement colors with graphite backgrounds, not pale tiles. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-achievements .achievement-icon.trophy{
  background:#453824!important;
  color:#f1c46a!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-achievements .achievement-icon.fire{
  background:#483227!important;
  color:#f0a16e!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-achievements .achievement-icon.blue{
  background:#213c58!important;
  color:#8dc4ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-achievements .achievement-icon.green{
  background:#214538!important;
  color:#8bd9ae!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-achievements .achievement-icon svg{
  color:inherit!important;
  stroke:currentColor!important;
}
/* Completed workout: the section count was white text on a white badge. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-workout-detail
.progress-workout-detail-section-head>strong{
  background:#253e58!important;
  border:1px solid #3c5870!important;
  color:#9dcaff!important;
}
/* 'Reviewed by trainer' is a positive completion state, never neutral white. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-workout-detail
.calendar-review-done>strong{
  color:#54d39b!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-workout-detail
.calendar-review-done{
  border-top-color:#344557!important;
  color:#a9b9ca!important;
}


/* v24 — calm measurement actions for the dark client theme */
/* The measurements form previously used the global electric-blue save button
   and near-white secondary actions. Keep interactions intact and limit the
   palette update to the client dark measurements interface. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
.measurement-form .measurement-form-actions>button:first-child{
  background:#30577b!important;
  border:1px solid #436b90!important;
  color:#f3f8fe!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
.measurement-form .measurement-form-actions>button:first-child:not(:disabled):hover{
  background:#386489!important;
  border-color:#54799b!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
.measurement-form .measurement-form-actions>button.dark,
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
.measurement-early>button.dark{
  background:#233444!important;
  border:1px solid #42586d!important;
  color:#d5e4f3!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
.measurement-form .measurement-form-actions>button.dark:not(:disabled):hover,
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
.measurement-early>button.dark:not(:disabled):hover{
  background:#2b4155!important;
  border-color:#537087!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
.measurement-form .measurement-form-actions>button:focus-visible,
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
.measurement-early>button.dark:focus-visible{
  outline:2px solid #84b6e1!important;
  outline-offset:2px;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
.measurement-form .measurement-form-actions>button:disabled{
  opacity:.68;
  cursor:wait;
}


/* v25 — nutrition dark surfaces and softer measurement primary */
/* CSS-only client dark overrides. Preserve original Lucide SVG markup and all data flows. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-form-actions>button:first-child{background:#337ac3!important;border-color:#4a8bc9!important;color:#f7fbff!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .measurement-form .measurement-form-actions>button:first-child:not(:disabled):hover{background:#4289d0!important;border-color:#66a1da!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-nutrition-view-tabs{background:#1d2b39!important;border:1px solid #314658!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-nutrition-view-tabs>button{background:transparent!important;color:#a9bacb!important;border:0!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-nutrition-view-tabs>button.active{background:#2d5079!important;color:#f1f7ff!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-nutrition-view-tabs>button:focus-visible{outline:2px solid #8bbdea!important;outline-offset:1px;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-macro-ring{background:conic-gradient(var(--ring) calc(var(--pct)*1%),#35485a 0)!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-macro-ring::after{background:#1b2a39!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-macro-ring>span{color:#e9f3fd!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-macro-ring.orange{--ring:#dfa24c;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-macro-ring.green{--ring:#56b78a;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-macro-ring.blue{--ring:#5396eb;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-calorie-progress{background:#35485a!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-calorie-progress>i{background:#397fcc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .nutrition-fire{background:#3f312b!important;border:1px solid #68503c!important;color:#ee9d66!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.nutrition-diary-meal-title,.nutrition-menu-meal-v2) .nutrition-meal-icon{box-shadow:none!important;border:1px solid #374e63!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.nutrition-diary-meal-title,.nutrition-menu-meal-v2) .nutrition-meal-icon-breakfast{background:#233951!important;border-color:#385879!important;color:#89baff!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.nutrition-diary-meal-title,.nutrition-menu-meal-v2) .nutrition-meal-icon-lunch{background:#203e35!important;border-color:#365f4f!important;color:#84d2ab!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.nutrition-diary-meal-title,.nutrition-menu-meal-v2) .nutrition-meal-icon-snack{background:#332d46!important;border-color:#54466c!important;color:#bea1f4!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.nutrition-diary-meal-title,.nutrition-menu-meal-v2) .nutrition-meal-icon-dinner{background:#403328!important;border-color:#665039!important;color:#e8ae71!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.nutrition-diary-meal-title,.nutrition-menu-meal-v2) .nutrition-meal-icon>svg{stroke:currentColor!important;fill:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-actions .nutrition-food-search-button{background:#284663!important;border:1px solid #3f607e!important;color:#d8eaff!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .nutrition-diary-meal .nutrition-diary-save-recipe{background:#1c2b3a!important;border:1px dashed #47627b!important;color:#bcd6f0!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .nutrition-diary-day-total{background:#1b2a3a!important;border-color:#364f67!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .nutrition-diary-day-total strong small{color:#b5c6da!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .nutrition-diary-meal-title small{color:#a9b9ca!important;}


/* v26 — brighter dark-mode nutrition macro progress arcs */
/* Brighten only the filled arc, retain calm graphite cards and percent layout. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-macro-ring{
  background:conic-gradient(var(--ring) calc(var(--pct)*1%),#2c3d50 0)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-macro-ring.blue{--ring:#7cb7ff;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-macro-ring.orange{--ring:#f5be6f;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-macro-ring.green{--ring:#8ee0ac;}


/* v27 — vivid nutrition macro rings on dark backgrounds */
/* Sharper contrast between completed and remaining sections, dark mode only. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-macro-ring{
  background:conic-gradient(var(--ring) calc(var(--pct)*1%),#263548 0)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-macro-ring.blue{--ring:#2f9bff;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-macro-ring.orange{--ring:#ffb300;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-macro-ring.green{--ring:#20e786;}


/* v28 — dark nutrition modal, ration and history readability */
/* Screen-specific CSS; existing light mode and features unchanged. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal{background:#172431!important;border:1px solid #405369!important;color:#eef5fc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal h2{color:#f2f7fd!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal .muted{color:#b4c5d6!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-custom-actions button{background:#263d55!important;border:1px solid #45617b!important;color:#cce4ff!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal input{background:#1c2d3e!important;border:1px solid #49617a!important;color:#f1f6fc!important;color-scheme:dark;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal input::placeholder{color:#a8b9ca!important;opacity:1;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal .food-lookup-note{color:#aebed0!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal .food-lookup-row{background:#203243!important;border-color:#3e566c!important;color:#e6f1fc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal .food-lookup-row strong{color:#f1f7ff!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal .food-lookup-row :is(small,span){color:#b3c4d5!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal .food-lookup-row em{color:#8dbfff!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal .food-lookup-portion{background:#1d3041!important;border-color:#405870!important;color:#eaf3fc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal .food-lookup-macros span{background:#293f54!important;color:#eaf4ff!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal .food-lookup-macros :is(b,small){color:#d6e9fa!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal .food-lookup-more{background:#29496a!important;border:1px solid #4a749c!important;color:#deefff!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal #foodSearchClose{background:#24394d!important;border:1px solid #435c72!important;color:#eef6ff!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-week .between>div>strong{color:#f0f5fc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-progress-chart-card .between>div>strong{color:#f0f5fc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-day-row .nutrition-row-edit{background:#253d54!important;border:1px solid #415c76!important;color:#acd3ff!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-day-row .nutrition-row-edit svg{color:#acd3ff!important;stroke:currentColor!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-average-bars>span>i{background:#33485b!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-average-bars>span:nth-child(1)>i>em{background:#4c98ff!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-average-bars>span:nth-child(2)>i>em{background:#eeb459!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-average-bars>span:nth-child(3)>i>em{background:#45c58b!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .meal-plan-card{background:#182531!important;border-color:#3b5065!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .meal-plan-card>button.meal-plan-head{background:#203141!important;color:#f0f5fc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .meal-plan-head strong{color:#f0f5fc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .meal-plan-head .muted{color:#b5c5d7!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .meal-plan-head .arrow{color:#b1c8dd!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .meal-plan-card>.meal-plan-body{background:#182531!important;border-top:1px solid #3b5065!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .client-ration-tabs{background:#203344!important;border:1px solid #3b536b!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .client-ration-tabs button{background:transparent!important;border:0!important;color:#b1c5d9!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .client-ration-tabs button.active{background:#315880!important;color:#f3f8fd!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .client-ration-page .nutrition-menu-total-v6{background:#203144!important;border:1px solid #43617d!important;border-left:3px solid #6aa5f3!important;color:#ecf5ff!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .nutrition-menu-total-v6 .nutrition-menu-total-heading>span{color:#b8cfe6!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .nutrition-menu-total-v6 .nutrition-menu-total-heading>strong{color:#f6f9ff!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .nutrition-menu-total-v6 .nutrition-menu-total-heading>strong small{color:#c3d5e8!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .nutrition-menu-total-v6 .nutrition-total-chip.protein{background:#234362!important;color:#95c6ff!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .nutrition-menu-total-v6 .nutrition-total-chip.fat{background:#453623!important;color:#f8c976!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .nutrition-menu-total-v6 .nutrition-total-chip.carbs{background:#214235!important;color:#8be3b3!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .nutrition-menu-total-v6 .nutrition-total-chip :is(.nutrition-total-value,.nutrition-total-name,small){color:inherit!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .nutrition-menu-meal-v2 .nutrition-menu-energy{background:#223c58!important;color:#9fcaff!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .nutrition-menu-meal-v2 .nutrition-menu-v2-macro.macro-0{background:#213f5d!important;color:#9ac5ff!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .nutrition-menu-meal-v2 .nutrition-menu-v2-macro.macro-1{background:#433424!important;color:#f4c171!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .nutrition-menu-meal-v2 .nutrition-menu-v2-macro.macro-2{background:#203f34!important;color:#8bdeb0!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .nutrition-menu-meal-v2 .nutrition-menu-v2-macro :is(b,small){color:inherit!important;}


/* v29 — final dark mode nutrition forms and notification center */
/* Client dark theme only: no data or light-theme behavior changes. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .nutrition-menu-day-intro>span{color:#ebf3fc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .nutrition-menu-day-intro>small{color:#b4c4d5!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .trainer-assigned-meal-label{color:#bfd2e7!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .nutrition-menu-ingredient{color:#aabdd2!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .nutrition-menu-ingredient b{color:#ecf4fc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .nutrition-menu-v2-kicker{color:#bbd0e5!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-foods-panel,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myFoodsModal .my-foods-panel,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myRecipesModal .my-foods-panel{background:#172431!important;border:1px solid #40536a!important;color:#e9f2fc!important;box-shadow:0 18px 60px #0006!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-foods-panel h2,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myFoodsModal .my-foods-panel h2,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myRecipesModal .my-foods-panel h2{color:#f2f7fc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-foods-panel .muted,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myFoodsModal .my-foods-panel .muted,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myRecipesModal .my-foods-panel .muted{color:#aec1d4!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-foods-panel label,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myFoodsModal .my-foods-panel label,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myRecipesModal .my-foods-panel label{color:#c1d3e4!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-foods-panel input:not([type=checkbox]),
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myFoodsModal .my-foods-panel input:not([type=checkbox]),
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myRecipesModal .my-foods-panel input:not([type=checkbox]){background:#1c2d3d!important;border:1px solid #4a6178!important;color:#f1f6fc!important;color-scheme:dark;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-foods-panel input::placeholder{color:#9aafc3!important;opacity:1;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-foods-panel input:not([type=checkbox]):focus{border-color:#73acf1!important;outline:2px solid #518ed2!important;outline-offset:1px;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-food-extra{background:#203345!important;border:1px solid #425b72!important;color:#e8f2fc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-food-extra>span{color:#d9e7f5!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-food-extra>small{color:#b3c7d9!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-food-review{color:#d1e0ef!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-food-review input[type=checkbox]{appearance:auto!important;accent-color:#438fe5!important;color-scheme:dark;background-color:#203345!important;border-color:#67839e!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-food-hint{color:#aec1d4!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-food-error{color:#ffb1b5!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-food-primary,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myFoodsModal .my-food-primary{background:#315d88!important;border:1px solid #507eaa!important;color:#f1f7ff!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-foods-panel .between>button.dark,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myFoodsModal .my-foods-panel .between>button.dark,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myRecipesModal .my-foods-panel .between>button.dark{background:#273c51!important;border:1px solid #466079!important;color:#eaf3fc!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myFoodsModal .my-food-row,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myRecipesModal .my-food-row{background:#203244!important;border:1px solid #3c536a!important;color:#eaf2fb!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myFoodsModal .my-food-row strong,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myRecipesModal .my-food-row strong{color:#ebf4fc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myFoodsModal .my-food-row small,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myRecipesModal .my-food-row small{color:#adc2d7!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myFoodsModal .my-food-row-actions button,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myRecipesModal .my-food-row-actions button{background:#294866!important;border:1px solid #436383!important;color:#c1deff!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-modal-card,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationDetailModal .notification-modal-card{background:#172431!important;border:1px solid #3d5368!important;color:#edf5fd!important;box-shadow:0 20px 65px #0006!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-modal-head h2,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationDetailModal .notification-modal-head h2{color:#f0f6fc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-modal-head small,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationDetailModal .notification-modal-head small{color:#9fb7cd!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-close,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationDetailModal .notification-close{background:#263b50!important;border:1px solid #475e76!important;color:#edf5ff!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-clear-all{background:#432c35!important;border:1px solid #76515d!important;color:#ffb4bb!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-phone-toggle{background:#243f59!important;border:1px solid #406589!important;color:#bcdfff!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-phone-toggle.push-enabled{background:#224436!important;border:1px solid #387455!important;color:#a3efc4!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-swipe .notification-item{background:#1e2d3b!important;border:1px solid #3b5167!important;color:#e9f2fb!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-swipe .notification-item.unread{background:#20374e!important;border:1px solid #547fa7!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-item-top strong{color:#f0f7ff!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-item-top time{color:#a7bcd0!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-item p{color:#d8e6f3!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-dot{background:#54a1fa!important;box-shadow:0 0 0 3px #284463!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-delete-bg.notification-delete{background:#432b34!important;border:1px solid #76505b!important;color:#ffb8c0!important;box-shadow:none!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-empty{background:#1e3040!important;border:1px dashed #4a647c!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-empty .ui-icon{color:#97b5d2!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-empty strong{color:#eff6fd!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-empty span{color:#adc0d3!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationDetailModal .notification-detail-message{background:#203243!important;border:1px solid #415870!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationDetailModal .notification-detail-message p{color:#eaf3fc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationDetailModal .notification-detail-message time{color:#a7bcd0!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationDetailModal .notification-detail-back{background:#2a4866!important;border:1px solid #456985!important;color:#dceeff!important;box-shadow:none!important;}


/* v30 — client dark-mode More pages and nutrition meal index contrast */
/* Appearance only, client dark mode: keep light mode, navigation, and saved data intact. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .nutrition-menu-v2-kicker .nutrition-menu-number{
 background:#284665!important;border:1px solid #48739c!important;color:#b3d8ff!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .trainer-assigned-meal-label{
 color:#c5d5e5!important;
}

/* More — root menu and logout */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-page .redesign-more-item{
 background:#151e27!important;border:1px solid #344657!important;color:#f0f5fb!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-item .redesign-more-copy strong{color:#f0f5fb!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-item .redesign-more-copy small{color:#afbed0!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-item .redesign-more-icon{
 background:#21354a!important;border:1px solid #355471!important;color:#75adfa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-item .redesign-more-icon.green{
 background:#203d35!important;border-color:#345c4e!important;color:#7fd4a5!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-item .redesign-more-icon .ui-icon{
 color:inherit!important;stroke:currentColor!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-item .redesign-more-chevron{color:#9db1c6!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-page .redesign-more-logout{
 background:#34252d!important;border:1px solid #67424d!important;color:#ffa7b2!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-logout .ui-icon{color:inherit!important;}

/* More — profile overview and editor */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-profile-hero h1{color:#eff6fd!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-profile-hero .client-profile-avatar:not(.has-photo){
 background:#283849!important;border:1px solid #4a5d73!important;color:#d0deec!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-profile-hero .avatar-initials{color:#cbd7e6!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-profile-hero .client-profile-edit-btn{
 background:#2a4764!important;border:1px solid #466583!important;color:#e8f2fc!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-profile-page .client-profile-details{
 background:#151e27!important;border-color:#344657!important;color:#edf4fb!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal>.profile-editor-card{
 background:#151e27!important;border:1px solid #3a4f65!important;color:#edf5fe!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-sticky{
 background:#151e27!important;border-bottom:1px solid #33485c!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-head h2{color:#f3f8fe!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-close{
 background:#263b50!important;border:1px solid #4a647d!important;color:#eaf3fd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal #pfSex{
 background-color:#1d2d3d!important;border:1px solid #455e75!important;color:#edf5fe!important;color-scheme:dark;
 background-image:linear-gradient(45deg,transparent 50%,#b6c9dc 50%),linear-gradient(135deg,#b6c9dc 50%,transparent 50%)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-body :is(input,select,textarea){
 background-color:#1c2c3b!important;color:#edf5fc!important;border:1px solid #40566b!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-body :is(input,textarea)::placeholder{color:#9bafc2!important;opacity:1;}

/* More — trainer marketplace card, badges, and metadata */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-market-card.trainer-card-v3.marketplace{
 background:#1b2b3a!important;border:1px solid #3e5670!important;color:#eaf3fc!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-card-v3-head>strong{color:#f1f6fc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-card-v3-head>b{
 background:#493927!important;color:#f3c776!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-card-v3-subtitle,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-card-v3-meta{color:#b4c5d7!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-card-v3-tags>i{
 background:#29445e!important;border:1px solid #3b5975!important;color:#c0dcf7!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-card-v3-footer{border-top:1px solid #3a5066!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-card-v3-footer>i.current{
 background:#254e40!important;color:#8de2b4!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-card-v3-footer>i.open{
 background:#243e35!important;color:#a1deb8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-card-v3-footer>em{color:#86baff!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-section,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-service-note{
 background:#172431!important;border:1px solid #3b5165!important;color:#eaf3fc!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-section p,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-service-note p{color:#b8c8d9!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-tags span{background:#29445e!important;color:#d5e8fc!important;}

/* More — exercise library: including expanded rows, headers, and counters. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-group{
 background:#172431!important;border:1px solid #3b5165!important;color:#f0f6fc!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-group-head,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-group-body{
 background:#1c2b3a!important;border-color:#3b5269!important;color:#f1f7fd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-group-head strong,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-row strong{color:#edf5fd!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-group-head :is(span,.redesign-library-group-meta b){
 background:#294968!important;border-color:#44627e!important;color:#a9d0ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-group-head .redesign-library-group-meta i{color:#afc6dc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-row{
 background:#172431!important;border-color:#32495e!important;color:#edf5fc!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-row small{color:#adc0d3!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-video{color:#85baff!important;}

/* More — history month arrows, help accordion and push toggle */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .calendar-head button{
 background:#284055!important;border:1px solid #486078!important;color:#e4f1ff!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-help-item{
 background:#172431!important;border:1px solid #3d5367!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-help-item>button{
 background:#1d2f40!important;border:0!important;color:#e8f2fc!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-help-item>button strong{color:#eff6ff!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-help-item>div{
 background:#172431!important;color:#bbcddd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-help-item>div p{color:#c8d8e8!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-settings-panel .phone-notify-enable.push-enabled{
 background:#244538!important;border:1px solid #426f57!important;color:#95e3b6!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-settings-panel .phone-notify-enable:not(.push-enabled){
 background:#294867!important;border:1px solid #476c8e!important;color:#c3e2ff!important;box-shadow:none!important;
}


/* v31 — follow-up QA: More, trainer cards, exercise library and profile.
   Dark client theme ONLY. Explicitly cover elements previously rendered white.
   No layout or behavior changes; light mode remains unchanged. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-profile-page .client-profile-avatar.is-placeholder,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-profile-hero .client-profile-avatar.is-placeholder{
 background:#28394c!important;border:1px solid #49637c!important;color:#d5e4f2!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-profile-page .client-profile-hero h1,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-profile-page .client-profile-hero .avatar-initials{
 color:#eff6fd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-editor-card,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-sticky{
 background:#172431!important;color:#eff6fd!important;border-color:#3b536a!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-head,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-head h2{background:transparent!important;color:#eff6fd!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-field label{color:#b8cbdc!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-body select,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-body input,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-body textarea{
 background-color:#1c2d3e!important;border:1px solid #425a72!important;color:#eef6fd!important;color-scheme:dark;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-close{
 background:#263e53!important;border-color:#45627d!important;color:#e4f1fe!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-market-page .trainer-market-card.trainer-card-v3.marketplace{
 background:#1b2d3c!important;border:1px solid #3c556b!important;color:#edf5fc!important;
 background-image:none!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-market-page .trainer-card-v3-head strong{color:#eef5fd!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-market-page .trainer-card-v3-footer>em{color:#91c2ff!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-group,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-group-head,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-group-body{
 background:#192a39!important;border-color:#3b536a!important;color:#edf6fe!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-group-head strong,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-row strong{
 color:#eff6fd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-row{
 background:#172431!important;border-color:#31475e!important;color:#e9f3fc!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-row small{color:#a9c0d4!important;}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-group-meta b{
 background:#2b4762!important;color:#aed3fc!important;border-color:#3c6287!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-subpage .redesign-help-item,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-subpage .redesign-help-item>button{
 background:#192a39!important;border-color:#364f66!important;color:#edf5fd!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-subpage .redesign-help-item strong{
 color:#edf5fd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-subpage .redesign-help-item>div{
 background:#192a39!important;color:#bcd0e0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-page .redesign-more-logout{
 background:#35252c!important;border-color:#67424a!important;color:#ffb1bb!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-more-subpage .calendar-head button{
 background:#273f54!important;border-color:#46627c!important;color:#e2f0ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-settings-panel .phone-notify-enable.push-enabled{
 background:#254638!important;border-color:#407159!important;color:#a3e5bd!important;
}


/* v32 — dark workout completion modal and completed-day status. */
/* This modal is appended directly to body. All changes are intentionally
   client dark-mode only; the existing light design and workout flows remain. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal{
  background:rgba(3,9,17,.76)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .finish-summary{
  background:#182531!important;
  border:1px solid #3b5166!important;
  color:#eef5fc!important;
  box-shadow:0 22px 65px rgba(0,0,0,.46)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .finish-summary h2{
  color:#f3f7fc!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .finish-summary>p,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .finish-summary>p.muted{
  color:#b2c2d3!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .finish-summary>p strong{
  color:#e7f1fb!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .workout-finish-summary-grid>div{
  background:#223548!important;
  border:1px solid #41586e!important;
  color:#edf5fc!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .workout-finish-summary-grid .muted{
  color:#aabbcd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .summary-number{
  color:#f0f6fd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .workout-finish-phase{
  background:#413323!important;
  border:1px solid #6c5131!important;
  color:#f1c07b!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .finish-workout-comment{
  border-top-color:#3b4f63!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .finish-workout-comment-head strong{
  color:#eef5fc!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .finish-workout-comment-head span{
  color:#a9bcd0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .finish-workout-comment textarea{
  background:#203244!important;
  border:1px solid #455d75!important;
  color:#eef5fc!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .finish-workout-comment textarea::placeholder{
  color:#9eb3c8!important;
  opacity:1;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .finish-workout-comment-actions button:not(.dark),
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .finish-summary>button{
  background:#35618c!important;
  border:1px solid #4c79a5!important;
  color:#f5f9fe!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .finish-workout-comment-actions button.dark,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .finish-summary-recovery-actions button.dark{
  background:#293e52!important;
  border:1px solid #466079!important;
  color:#e2eefb!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .finish-summary-recovery-actions .finish-summary-reopen{
  background:#1c2a38!important;
  border:1px solid #45596d!important;
  color:#bdd0e3!important;
  box-shadow:none!important;
}
/* A completed day should read as green success without a pale pill. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-day.is-done .redesign-training-day-status{
  background:#224637!important;
  border:1px solid #366b51!important;
  color:#90e0b0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-day.is-done .redesign-training-day-status strong{
  color:#90e0b0!important;
}


/* v33 — dark theme QA: training completion, cycle, library counters, trainer profile. */
/* Only the client dark theme is affected. No layout or workout logic changes. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-today-done{
  background:#172b27!important;border:1px solid #355e4c!important;color:#e8f6ec!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-today-done-icon{
  background:#254b3a!important;border:1px solid #377457!important;color:#99e5b5!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-today-done strong{
  color:#a2e7bc!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-today-done small{
  color:#b4c9bf!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-summary .redesign-training-cycle{
  background:#36485c!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-summary .redesign-training-cycle i{
  background:#548fed!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-summary>b{
  color:#85b7ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-day.is-done{
  background:#162921!important;border-color:#365b48!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-day.is-done .redesign-training-day-main{
  background:#162921!important;
}
/* Library: the meta wrapper must stay invisible; only the number is a pill. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-group-head .redesign-library-group-meta{
  display:flex!important;align-items:center!important;gap:10px!important;
  width:auto!important;min-width:0!important;height:auto!important;padding:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-group-head .redesign-library-group-meta b{
  display:grid!important;place-items:center!important;min-width:31px!important;height:28px!important;
  padding:0 9px!important;border:1px solid #46698a!important;border-radius:999px!important;
  background:#2b4a66!important;color:#b7d9fc!important;font-size:11px!important;line-height:1!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-client-library .redesign-library-group-head .redesign-library-group-meta i{
  background:transparent!important;border:0!important;border-radius:0!important;
  padding:0!important;color:#acc2d6!important;box-shadow:none!important;
}
/* Public trainer profile: cover, stats, socials and review surfaces. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-public .trainer-profile-cover{
  background:radial-gradient(circle at 100% 0%,rgba(85,145,205,.13),transparent 55%),linear-gradient(135deg,#223649,#172633)!important;
  border:1px solid #405a70!important;color:#edf5fd!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-public .trainer-profile-cover-copy h2,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-public .trainer-profile-rating-line strong{
  color:#f2f7fc!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-public .trainer-profile-cover-copy>p,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-public .trainer-profile-rating-line small{
  color:#b4c9da!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-public .trainer-profile-cover .trainer-market-avatar.large{
  border-color:#344f66!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-public .trainer-profile-stats>div{
  background:#1b2d3d!important;border:1px solid #3f586d!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-public .trainer-profile-stats strong{
  color:#e9f3fc!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-public .trainer-profile-stats span{
  color:#b7c9da!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-public .trainer-market-socials a{
  background:#25394c!important;border:1px solid #45627e!important;color:#c0dcf7!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-public .trainer-profile-availability.open{
  background:#244538!important;color:#9be2b6!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-public .trainer-reviews-head p,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-public .trainer-review-row p{
  color:#adc1d3!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-public .trainer-review-row{
  border-top-color:#3c5368!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-public .trainer-review-action{
  background:#294866!important;border:1px solid #4a6c8b!important;color:#b2d7ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-public .trainer-market-primary.current{
  background:#253e35!important;border:1px solid #416452!important;color:#9de0b6!important;
}


/* v34 — dark theme: expanded warm-up and training rules. */
/* Keep the light theme untouched; style only the client training guide in dark mode. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-help {
  background:#151e27!important;
  border-color:#34485b!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-help>button {
  background:#151e27!important;
  color:#eef4fb!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-help>button strong {
  color:#eef4fb!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-help>button small,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-rule-chevron {
  color:#aec0d3!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #trainingRulesBody.redesign-training-help-body {
  background:#182430!important;
  border-top:1px solid #34485b!important;
  color:#eaf2fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #trainingRulesBody .redesign-rule-item {
  background:transparent!important;
  border-bottom-color:#34485b!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #trainingRulesBody .redesign-rule-item:last-child {
  border-bottom:0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #trainingRulesBody .redesign-rule-item>b {
  background:#29435b!important;
  border:1px solid #42627c!important;
  color:#bddcff!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #trainingRulesBody .redesign-rule-item strong {
  color:#eef4fb!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #trainingRulesBody .redesign-rule-item p {
  color:#b5c5d5!important;
}

/* v35 — dark client UI: weekly report controls, home progress and food diary actions. */
/* Keep neutral report controls on the same dark surface as the check-in modal. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #weeklyCheckinModal .weekly-checkin-modal .between>button.dark{
  background:#253748!important;border:1px solid #40556c!important;
  color:#dce9f7!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #weeklyCheckinModal .weekly-checkin-save{
  background:#284b70!important;border:1px solid #4274a0!important;
  color:#edf6ff!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #weeklyCheckinModal .weekly-checkin-save:focus-visible,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #weeklyCheckinModal .between>button.dark:focus-visible{
  outline:2px solid #87bfff!important;outline-offset:2px;
}
/* The empty parts of nutrition and weekly training progress should never be white. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-home-today-card .home-mini-progress{
  background:#35495d!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-home-today-card .home-mini-progress i{
  background:#318afa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-home-training-metric .home-week-bars i{
  background:#35495d!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-home-training-metric .home-week-bars i.done{
  background:#318afa!important;
}
/* Highlight only today's completed training, not all future training cards. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-home-today-card.is-completed>strong{
  color:#86dbaa!important;
}
/* A clear but restrained action in each meal card; search/data logic is unchanged. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .nutrition-diary-meal .nutrition-diary-add{
  background:#294f77!important;border:1px solid #4776a5!important;
  color:#e4f1ff!important;box-shadow:none!important;
  min-height:42px!important;font-size:13px!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .nutrition-diary-meal .nutrition-diary-add:active{
  background:#32618d!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .nutrition-diary-meal .nutrition-diary-add:focus-visible{
  outline:2px solid #87bfff!important;outline-offset:2px;
}

/* v36 — dark timed workout controls and nutrition actions surface (client only). */
/* Active timed exercise plan/history panels must not inherit light-only fills. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-timed-previous,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-timed-plan>div,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-timed-superset-progress{
  background:#203040!important;
  border-color:#3b5065!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-timed-previous span,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-timed-plan span,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-timed-superset-progress span{
  color:#adbed0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-timed-previous strong,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-timed-plan strong{
  color:#eef5fd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-timed-previous em.up{
  background:#244636!important;color:#9ce4b7!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-timed-previous em.down{
  background:#453426!important;color:#f4bd80!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .workout-timed-superset-progress strong{
  color:#8dbdff!important;
}
/* Dark modal, countdown ring and controls, including during work/rest/pause. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal.workout-timed-modal{
  background:rgba(4,9,17,.78)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-modal-card{
  background:#151e27!important;
  border:1px solid #344557!important;
  border-bottom:0!important;
  color:#f1f5fa!important;
  box-shadow:0 -14px 42px rgba(0,0,0,.32)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-modal-head small{
  color:#81b7ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-modal-head h2{
  color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-close{
  background:#253749!important;
  border:1px solid #41566c!important;
  color:#e9f3fd!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-modal-meta{
  color:#b5c6d7!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-modal-meta b{
  background:#263b50!important;
  color:#c9d9ea!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-ring .track{
  stroke:#33485d!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-ring .progress{
  stroke:#448dff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-ring.rest .progress,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-ring.done .progress{
  stroke:#58c891!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-ring>div{
  background:#1b2733!important;
  box-shadow:inset 0 0 0 1px #34495d!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-ring span{
  color:#81b7ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-ring.rest span,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-ring.done span{
  color:#84dcac!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-ring strong{
  color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-ring small{
  color:#adbed0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-primary{
  background:#307cf0!important;
  border:0!important;
  color:#fff!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal :is(.workout-timed-close,.workout-timed-primary):focus-visible{
  outline:2px solid #90c1ff!important;
  outline-offset:2px;
}
/* The grey rectangle between 'Додати БЖВ' and 'Додати продукт'
   came from the wrapper, not the buttons themselves. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-nutrition-page .redesign-nutrition-actions{
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  padding:0!important;
  gap:9px;
}


/* Four-week trainer nutrition review: compact, light and dark theme aware. */
.trainer-four-week-launch{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px;}
.trainer-four-week-launch strong{font-weight:700;}
.trainer-four-week-launch p{margin:5px 0 0;font-size:13px;line-height:1.45;}
.trainer-four-week-launch button,.trainer-four-week-action,.trainer-four-week-proposal button{border:0;border-radius:11px;background:#2676d3;color:#fff;padding:11px 16px;font-weight:700;cursor:pointer;}
.trainer-four-week-overlay{position:fixed;inset:0;z-index:4100;background:rgba(0,0,0,.65);display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto;}
.trainer-four-week-modal{width:min(100%,560px);max-height:min(88vh,900px);overflow:auto;padding:18px;border-radius:20px;background:var(--card,#fff);color:var(--text,#192639);}
.trainer-four-week-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;}
.trainer-four-week-head h2{font-size:20px;margin:0 0 5px;}
.trainer-four-week-head p{font-size:13px;margin:0 0 14px;}
.trainer-four-week-close{flex:0 0 44px;height:44px;border:1px solid var(--line,#d9e2e9);border-radius:12px;background:transparent;color:inherit;}
.trainer-four-week-field{display:grid;gap:7px;font-size:13px;font-weight:600;margin-bottom:13px;}
.trainer-four-week-field :is(select,input){border:1px solid var(--line,#d9e2e9);border-radius:11px;padding:12px;background:var(--card,#fff);color:inherit;width:100%;box-sizing:border-box;}
.trainer-four-week-action{width:100%;}
.trainer-four-week-report{padding-top:16px;}
.trainer-four-week-report h3{margin:0 0 5px;font-size:18px;}
.trainer-four-week-report .muted{font-size:12px;}
.trainer-four-week-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0;}
.trainer-four-week-metric{border:1px solid var(--line,#d9e2e9);border-radius:13px;padding:12px;display:grid;gap:7px;}
.trainer-four-week-metric strong{font-size:13px;}
.trainer-four-week-metric span{font-weight:750;font-size:15px;}
.trainer-four-week-metric small{color:var(--muted,#728296);}
.trainer-four-week-notes{font-size:13px;line-height:1.5;}
.trainer-four-week-notes p{margin:5px 0;}
.trainer-four-week-report ul{padding-left:19px;font-size:13px;line-height:1.5;}
.trainer-four-week-report li{margin:5px 0;}
.trainer-four-week-proposal{border:1px solid #75b99c;border-radius:13px;padding:14px;margin-top:13px;display:grid;gap:10px;}
.trainer-four-week-proposal p{margin:0;font-weight:700;}
.trainer-four-week-proposal small{font-size:12px;line-height:1.5;color:var(--muted,#728296);}
body.eplan-redesign[data-eplan-theme="dark"] .trainer-four-week-modal{background:#182838;color:#f1f6fb;border:1px solid #3b5269;}
body.eplan-redesign[data-eplan-theme="dark"] .trainer-four-week-field :is(select,input){background:#22374a;color:#f1f6fb;border-color:#50677a;color-scheme:dark;}
body.eplan-redesign[data-eplan-theme="dark"] .trainer-four-week-metric{border-color:#4a6074;}
@media(max-width:420px){.trainer-four-week-grid{grid-template-columns:1fr}.trainer-four-week-modal{padding:15px}}
.trainer-four-week-weeks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0;}
.trainer-four-week-weeks>div{display:grid;gap:4px;text-align:center;min-width:0;padding:9px 4px;border:1px solid var(--line,#d9e2e9);border-radius:10px;}
.trainer-four-week-weeks strong{font-size:14px;}
.trainer-four-week-weeks small{font-size:10px;line-height:1.3;color:var(--muted,#728296);overflow-wrap:anywhere;}
.trainer-four-week-other{font-size:12px;line-height:1.55;}
body.eplan-redesign[data-eplan-theme="dark"] .trainer-four-week-weeks>div{border-color:#4a6074;}


/* v37 — client third-concept navigation: same floating offset and compact
   touch sizing as trainer, shared SVGs, a green nutrition leaf and trend progress.
   Keep original floating glass on light theme; dark surfaces match trainer. */
body.eplan-redesign.client-ui .client-bottom-nav{
  bottom:calc(19px + env(safe-area-inset-bottom, 0px))!important;
  padding:5px 6px!important;
  border-radius:22px!important;
}
body.eplan-redesign.client-ui .client-bottom-nav button{
  min-height:50px!important;
  padding:4px 2px!important;
  gap:2px!important;
  border-radius:16px!important;
}
body.eplan-redesign.client-ui .client-bottom-nav button>span{
  font-size:10.5px!important;
  line-height:1.1!important;
}
body.eplan-redesign.client-ui .client-bottom-nav .client-nav-icon{
  display:block!important;
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
  margin:0!important;
  transform:none!important;
  opacity:1!important;
  stroke-width:1.85!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
body.eplan-redesign.client-ui .client-bottom-nav .trainer-nav-leaf{
  fill:#55c27a!important;
  stroke:#55c27a!important;
  stroke-width:1.3!important;
}
body.eplan-redesign.client-ui .client-bottom-nav button.active .trainer-nav-leaf{
  fill:#7cde9d!important;
  stroke:#7cde9d!important;
}
body.eplan-redesign.client-ui .client-bottom-nav button.active{
  background:rgba(22,119,255,.14)!important;
  color:#1677ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-bottom-nav{
  background:rgba(28,30,35,.94)!important;
  border-color:#3b3e47!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-bottom-nav button{
  color:#adb3bd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-bottom-nav button.active{
  background:#263954!important;
  color:#96beff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-bottom-nav button.active>span,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-bottom-nav button.active .client-nav-icon{
  color:#96beff!important;
}


/* v38 — auth screens follow the saved EPLAN theme preference.
   Login, forgot-password and reset-password share the same markup. Do not
   style by the OS preference alone: theme.js resolves light/dark/system. */
body.eplan-auth-page[data-eplan-theme="dark"]{
  color-scheme:dark!important;
  background:#101114!important;
  color:#f3f4f6!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] #app,
body.eplan-auth-page[data-eplan-theme="dark"] .auth-shell{
  background:#101114!important;
  color:#f3f4f6!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .auth-card{
  background:#1c1e23!important;
  border:1px solid #3b3e47!important;
  color:#f3f4f6!important;
  box-shadow:0 18px 48px rgba(0,0,0,.23)!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .auth-heading h1{
  color:#f3f4f6!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .auth-heading p{
  color:#adb7c5!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .auth-field>span{
  color:#c9d4e2!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .auth-field input{
  background:#282b31!important;
  border:1px solid #4a505d!important;
  color:#f3f4f6!important;
  caret-color:#b6d4ff;
  color-scheme:dark;
  box-shadow:none!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .auth-field input::placeholder{
  color:#9daebf!important;
  opacity:1!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .auth-field input:focus{
  border-color:#76acfb!important;
  outline:none!important;
  box-shadow:0 0 0 3px rgba(97,151,233,.22)!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .auth-field input:-webkit-autofill,
body.eplan-auth-page[data-eplan-theme="dark"] .auth-field input:-webkit-autofill:focus{
  -webkit-text-fill-color:#f3f4f6!important;
  box-shadow:inset 0 0 0 1000px #282b31!important;
  transition:background-color 9999s ease-out 0s;
}
body.eplan-auth-page[data-eplan-theme="dark"] .password-eye-btn{
  color:#aebed1!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .remember-row{
  color:#b1bfd0!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .remember-row input[type="checkbox"]{
  -webkit-appearance:none!important;
  appearance:none!important;
  display:inline-grid!important;
  place-items:center!important;
  flex:0 0 18px!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  padding:0!important;
  margin:0!important;
  background:#282b31!important;
  border:1.5px solid #8190a3!important;
  border-radius:5px!important;
  cursor:pointer;
  vertical-align:middle;
}
body.eplan-auth-page[data-eplan-theme="dark"] .remember-row input[type="checkbox"]:checked{
  background:#3478f6!important;
  border-color:#6aa4ff!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .remember-row input[type="checkbox"]:checked::after{
  content:"";
  width:4px;
  height:8px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:translateY(-1px) rotate(45deg);
}
body.eplan-auth-page[data-eplan-theme="dark"] .remember-row input[type="checkbox"]:focus-visible{
  outline:2px solid #96c2ff!important;
  outline-offset:2px!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .auth-forgot{
  color:#8dbdff!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .auth-status{
  color:#b7c5d5!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .auth-error{
  color:#ff9da7!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .auth-secondary{
  background:#303744!important;
  border-color:#4a576a!important;
  color:#e1eaf7!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .auth-logo-name{
  color:#e6ecf5!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .auth-logo{
  box-shadow:0 12px 34px rgba(0,0,0,.18)!important;
}
body.eplan-auth-page[data-eplan-theme="dark"] .eplan-splash{
  background:#101114!important;
}

/* v277 — theme choice: only the checked option gets the blue selection.
   Unchecked options stay neutral in the original white interface. */
body.eplan-redesign.client-ui[data-eplan-theme="light"] #app
 .eplan-theme-options>.eplan-theme-option[aria-checked="false"]{
 background:#f4f7fd!important;
 background-image:none!important;
 border:1px solid #d8e2f0!important;
 color:#142542!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="light"] #app
 .eplan-theme-options>.eplan-theme-option[aria-checked="true"]{
 background:#e7f1ff!important;
 background-image:none!important;
 border:1px solid #1677ff!important;
 color:#0958ba!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .eplan-theme-options>.eplan-theme-option[aria-checked="false"]{
 background:#292e36!important;
 background-image:none!important;
 border:1px solid #48535e!important;
 color:#d9e2ec!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .eplan-theme-options>.eplan-theme-option[aria-checked="true"]{
 background:#254669!important;
 background-image:none!important;
 border:1px solid #478ce6!important;
 color:#dcecff!important;
 box-shadow:none!important;
}

/* PR #198: same unobtrusive recovery action in OLED/dark mode. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #finishSummaryModal .finish-summary-recovery-actions .finish-summary-reopen{
 background:transparent!important;
 border:0!important;
 color:#ff8d98!important;
 box-shadow:none!important;
}
