/* Є ПЛАН — canonical trainer OLED dark theme.
   Maintained in this file, not stacked with historical dark stylesheet versions.
   Shared/light styles remain in their existing files. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"]{
  color-scheme:dark;
  --trainer-dark-bg:#000000;
  --trainer-dark-surface:#0b0f14;
  --trainer-dark-raised:#121b25;
  --trainer-dark-muted:#a9b9ca;
  --trainer-dark-border:#354353;
  --trainer-dark-text:#f2f6fc;
  --trainer-dark-accent:#82baff;
  --bg:var(--trainer-dark-bg);
  --card:var(--trainer-dark-surface);
  --card2:var(--trainer-dark-raised);
  --line:var(--trainer-dark-border);
  --text:var(--trainer-dark-text);
  --muted:var(--trainer-dark-muted);
  background:var(--trainer-dark-bg)!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  #app,.trainer-shell,.trainer-home-page,.trainer-clients-page,
  .trainer-programs-page,.trainer-nutrition-page,.trainer-more-page,
  .trainer-client-page,.trainer-progress-page,.trainer-library-page
){
  background:var(--trainer-dark-bg)!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-shell :is(
  h1,h2,h3,h4
){color:var(--trainer-dark-text)!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-page-sub,.trainer-empty,.trainer-row-time,
  .trainer-client-identity p,.trainer-client-copy em,
  .trainer-assigned-copy small,.trainer-nutrition-copy small,
  .trainer-more-copy small,.trainer-checkin-empty span,
  .trainer-library-result-line,.trainer-program-empty p,
  .trainer-measure-empty,.trainer-progress-empty,.muted
){color:var(--trainer-dark-muted)!important}

/* Foundation — cards and headers share client-dark graphite surfaces. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .card,.trainer-home-stats>button,
  .trainer-activity-card,.trainer-client-row,.trainer-activity-row,
  .trainer-client-kpis>div,.trainer-smart-summary,
  .trainer-assigned-list,.trainer-assigned-row,.trainer-nutrition-list,.trainer-nutrition-row,
  .trainer-program-empty,.trainer-template-card,.trainer-template-toolbar,
  .trainer-template-editor-item,.trainer-template-editor-day,
  .trainer-more-list,.trainer-more-item,
  .trainer-nutrition-summary>div,.trainer-nutrition-target-card,
  .trainer-nutrition-current,.trainer-nutrition-calc-card,
  .trainer-saved-plan,.trainer-saved-legacy,.trainer-assigned-meal,
  .trainer-food-review-panel,.trainer-food-review-row,
  .trainer-library-summary>div,.trainer-library-group,.trainer-library-exercise,
  .trainer-library-admin,.trainer-library-admin-section,
  .trainer-checkin-card,.trainer-checkin-empty,.trainer-checkin-history-item,
  .trainer-review-card,.trainer-review-queue,
  .trainer-program-editor,.trainer-exercise-card,
  .trainer-overview-card,.trainer-profile-card,.trainer-private-note,
  .trainer-workout-calendar-card,.trainer-workout-calendar-details,
  .trainer-workout-calendar-session,.trainer-volume-panel,
  .trainer-progress-hero,.trainer-progress-section,.trainer-progress-pr-card,
  .trainer-measurements-page .measurement-place-card,
  .trainer-measurements-page .measurement-history-card,
  .trainer-public-profile-editor .trainer-profile-collapsed,
  .trainer-public-profile-editor .trainer-profile-editor-preview,
  .trainer-public-profile-editor .trainer-profile-editor-form,
  .trainer-coach-request,.trainer-client-actions-pop
){
  background:var(--trainer-dark-surface)!important;
  border-color:var(--trainer-dark-border)!important;
  color:var(--trainer-dark-text)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .card :is(h1,h2,h3,h4,strong),
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-activity-row,.trainer-client-row,.trainer-nutrition-row,
  .trainer-assigned-row,.trainer-more-item,.trainer-template-card,
  .trainer-program-editor,.trainer-checkin-card,.trainer-review-card,
  .trainer-workout-calendar-card,.trainer-progress-hero,
  .trainer-library-exercise,.trainer-profile-card
) :is(strong,b,h2,h3){
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-activity-row,.trainer-client-row,.trainer-nutrition-row,
  .trainer-assigned-row,.trainer-more-item,.trainer-review-card,
  .trainer-library-exercise
){border-bottom-color:var(--trainer-dark-border)!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-client-row,.trainer-assigned-row,.trainer-nutrition-row,
  .trainer-more-item,.trainer-template-card,.trainer-library-exercise
):active{
  background:#202f3e!important;
}

/* Primary client-count hero is intentionally blue, not a plain dark card. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-hero-card{
  background:linear-gradient(135deg,#0c3865 0%,#0c4e8a 62%,#1466b3 100%)!important;
  border:1px solid #275c8c!important;
  color:#f5f9ff!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-hero-card :is(strong,small){
  color:#f5f9ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-top{
  background:transparent!important;color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-top :is(strong,span){
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-top span{
  color:var(--trainer-dark-muted)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-top .notify-btn{
  background:var(--trainer-dark-raised)!important;
  border-color:var(--trainer-dark-border)!important;
  color:var(--trainer-dark-text)!important;
}

/* Floating nav, search and tabs. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-bottom-nav{
  background:rgba(11,15,20,.95)!important;
  border:1px solid #354353!important;
  box-shadow:0 8px 30px rgba(0,0,0,.4)!important;
  -webkit-backdrop-filter:blur(20px) saturate(1.1)!important;
  backdrop-filter:blur(20px) saturate(1.1)!important;
  bottom:calc(19px + env(safe-area-inset-bottom,0px))!important;
  padding:5px 6px!important;
  border-radius:22px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-bottom-nav button{
  background:transparent!important;
  color:#a9b9ca!important;
  min-height:50px!important;
  padding:4px 2px!important;
  gap:2px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-bottom-nav button.active{
  background:#1a314c!important;
  color:#a8d1ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-search,.trainer-segmented,.trainer-programs-segmented,.trainer-client-tabs,
  .trainer-program-tabs,.trainer-progress-periods,.trainer-volume-tabs,
  .trainer-ration-tabs,.trainer-saved-ration-tabs,
  .trainer-filter-chips button,.trainer-template-editor-top
){
  background:var(--trainer-dark-raised)!important;
  border-color:var(--trainer-dark-border)!important;
  color:var(--trainer-dark-muted)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-search input{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-filter-chips button,.trainer-client-tabs button,
  .trainer-program-tabs button,.trainer-segmented button,
  .trainer-programs-segmented button,.trainer-progress-periods button,.trainer-volume-tabs button,
  .trainer-ration-tabs button,.trainer-saved-ration-tabs button
):not(.active){
  background:transparent!important;color:var(--trainer-dark-muted)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-filter-chips button,.trainer-client-tabs button,
  .trainer-program-tabs button,.trainer-segmented button,
  .trainer-programs-segmented button,.trainer-progress-periods button,.trainer-volume-tabs button,
  .trainer-ration-tabs button,.trainer-saved-ration-tabs button
).active{
  background:#31567f!important;
  color:#f3f8ff!important;
  border-color:#436c98!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-round-add,.trainer-page-title button,.trainer-client-navline button,
  .trainer-more-icon,.trainer-program-empty-icon,.trainer-template-icon,
  .trainer-library-add,.trainer-library-video,.trainer-volume-more,.trainer-activity-more
){
  background:#253d55!important;
  color:#a6d0ff!important;
  border-color:#3b5671!important;
  box-shadow:none!important;
}

/* Low-light semantic surfaces for paused and destructive actions. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-extra-manager-status.paused{
 background:#342719!important;border-color:#65503b!important;color:#f1c08a!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-ration-tabs .trainer-ration-remove{
 background:#2b1c23!important;border-color:#704452!important;color:#ffb9c5!important;
}

/* Text inputs: protect readable text, placeholder and iOS controls. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,select
){
  background:#121b25!important;
  border-color:#40576d!important;
  color:#f2f6fc!important;
  box-shadow:none!important;
  -webkit-text-fill-color:#f2f6fc;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(input,textarea)::placeholder{
  color:#9bacbf!important;
  -webkit-text-fill-color:#9bacbf!important;
  opacity:1;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(input,textarea,select):focus-visible{
  outline:2px solid #7caef2!important;
  outline-offset:2px;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] input[type="checkbox"]{
  accent-color:#377fcf;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .card :is(
  input:not([type="checkbox"]):not([type="radio"]),textarea,select
){
  background:#121b25!important;
  border-color:#40576d!important;
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-library-filters select,.trainer-private-note textarea,
  .trainer-program-editor input,.trainer-program-editor select,
  .trainer-nutrition-target-fields input
){
  background:#121b25!important;
  color:#f2f6fc!important;
  border-color:#40576d!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .card button.dark,.trainer-client-action.neutral,
  .trainer-template-actions button.dark,.trainer-checkin-history-toggle,
  .trainer-library-group-toggle,.trainer-library-admin-toggle
){
  background:#263b50!important;
  color:#dceafa!important;
  border:1px solid #435a70!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-template-create,.trainer-public-profile-save,
  .trainer-new-client-submit,.trainer-program-add
){
  background:#2d75c1!important;
  color:#fff!important;
  border-color:#3f87d3!important;
  box-shadow:none!important;
}

/* Explicit warning/status colors retain their meaning. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-smart-status.ok,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-smart-status.training,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-checkin-reviewed{
  background:#244536!important;color:#94deb2!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-smart-status.new{
  background:#243d59!important;color:#a1caff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-smart-status.attention{
  background:#483526!important;color:#f0bc83!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-smart-status.risk{
  background:#4a2933!important;color:#ffa7b2!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-smart-status.paused{
  background:#293544!important;color:#a6b5c5!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-smart-summary.attention{
  background:#302920!important;border-color:#655039!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-smart-summary.risk{
  background:#33242d!important;border-color:#6d4251!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-smart-summary.ok{
  background:#1d302a!important;border-color:#3b624e!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-smart-summary span{
  color:#b5c5d6!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-status.neutral{
  background:#293849!important;color:#b4c5d7!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-status.ok{
  background:#244536!important;color:#95e0b3!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-status.warn{
  background:#463722!important;color:#f3bf79!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-status.attention{
  background:#492b2e!important;color:#f9a5aa!important;
}

/* Coach reviews, reports, program editor and library panels. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-checkin-grid span,.trainer-review-detail,.trainer-review-exercise,
  .trainer-review-sets>*,.trainer-review-aux,.trainer-review-comment,
  .trainer-program-editor-grid,.trainer-program-alternative-card,
  .trainer-program-alternative-row,.trainer-template-alternative-row,
  .trainer-template-editor-grid,.trainer-template-editor-items,
  .trainer-template-editor-meta,.trainer-template-editor-day-head,
  .trainer-library-admin-body,.trainer-library-add-actions,
  .trainer-nutrition-target-summary,.trainer-nutrition-calc-head,
  .trainer-saved-ration-page,.trainer-meal-recipe,.trainer-assigned-dish,
  .trainer-assigned-ingredients,.trainer-assigned-preparation,
  .trainer-food-review-extra,.trainer-food-review-inputs,
  .trainer-progress-summary,.trainer-progress-activity-stats,
  .trainer-progress-pr-grid,.trainer-progress-compare-list,
  .trainer-progress-activity-list,.trainer-workout-calendar-grid,
  .trainer-workout-calendar-exercises,.trainer-workout-calendar-comment
){
  background:#111820!important;
  border-color:#364b60!important;
  color:#e6f0fc!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-checkin-grid b{
  color:#edf5fd!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-checkin-card p{
  color:#c1cfdd!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-review-queue-head,.trainer-review-exercise-head,
  .trainer-checkin-history-head,.trainer-checkin-history-toggle,
  .trainer-program-editor-head,.trainer-template-editor-day-head,
  .trainer-library-group-toggle,.trainer-library-admin-toggle,
  .trainer-workout-calendar-title,.trainer-workout-calendar-nav
){
  border-color:#3a5067!important;
  color:#edf5fd!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-review-set-current,.trainer-review-set-previous,
  .trainer-review-set-block,.trainer-volume-kpis>div,.trainer-volume-muscle-row,
  .trainer-progress-pr-card,.trainer-workout-calendar-cell
){
  background:#223244!important;
  border-color:#41566c!important;
  color:#dceaf8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-workout-calendar-cell.active{
  border-color:#6caeff!important;
  background:#2a5279!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-review-exercise,.trainer-review-set-block,
  .trainer-volume-panel,.trainer-progress-section
) :is(strong,b){
  color:#f2f7fd!important;
}

/* Modals — scope to the trainer role and preserve touch sizing. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-new-client-card,.trainer-avatar-crop-modal .card,
  .trainer-nutrition-calc-card,.trainer-client-actions-pop,
  .trainer-superset-modal,.trainer-template-editor-modal,
  .trainer-program-template-modal,
  .trainer-food-review-panel,.modal>.card,
  .modal-content
){
  background:#0b0f14!important;
  color:#f2f6fc!important;
  border-color:#41566c!important;
  box-shadow:0 18px 46px #0006!important;
}

/* Dark exercise picker is a distinct modal, above the program edit sheet.
   IDs match the base light selector specificity without a new override file. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programExercisePickerModal{
 background:rgba(0,0,0,.83)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programExercisePickerModal>.trainer-program-picker-card{
 background:var(--trainer-dark-surface)!important;
 border:1px solid var(--trainer-dark-border)!important;
 color:var(--trainer-dark-text)!important;
 box-shadow:0 18px 54px rgba(0,0,0,.6)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programExercisePickerModal :is(
 .trainer-program-picker-head h2,.trainer-program-picker-copy strong,.trainer-program-picker-empty strong
){color:var(--trainer-dark-text)!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programExercisePickerModal :is(
 .trainer-program-picker-head p,.trainer-program-picker-copy small,.trainer-program-picker-empty span
){color:var(--trainer-dark-muted)!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programExercisePickerModal :is(
 .trainer-program-picker-row,.trainer-program-picker-search,.trainer-program-picker-empty
){
 background:var(--trainer-dark-raised)!important;
 border-color:var(--trainer-dark-border)!important;
 color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programExercisePickerModal .trainer-program-picker-search input{
 background:transparent!important;color:var(--trainer-dark-text)!important;
 -webkit-text-fill-color:var(--trainer-dark-text)!important;
 border:0!important;box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programExercisePickerModal :is(
 .trainer-program-picker-modes button,.trainer-program-picker-groups button,
 .trainer-program-picker-scope button,.trainer-program-picker-muscles button,
 .trainer-program-picker-fav,.trainer-program-picker-manual
){
 background:var(--trainer-dark-raised)!important;
 color:var(--trainer-dark-muted)!important;
 border-color:var(--trainer-dark-border)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programExercisePickerModal :is(
 .trainer-program-picker-modes button.active,.trainer-program-picker-groups button.active,
 .trainer-program-picker-scope button.active,.trainer-program-picker-muscles button.active,
 .trainer-program-picker-fav.active
){
 background:#1b3552!important;border-color:#4778b1!important;color:#c1e0ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programExercisePickerModal :is(
 .trainer-program-picker-pick,.trainer-program-picker-close
){color:var(--trainer-dark-text)!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programExercisePickerModal .trainer-program-picker-select{
 color:var(--trainer-dark-muted)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programExercisePickerModal .trainer-program-picker-pick{
 background:var(--trainer-dark-raised)!important;
 border:1px solid var(--trainer-dark-border)!important;
 color:var(--trainer-dark-text)!important;
 box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programExercisePickerModal .trainer-program-picker-pick:active{
 background:#182736!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programExercisePickerModal :is(
 .trainer-program-picker-groups,.trainer-program-picker-scope,
 .trainer-program-picker-muscles,.trainer-program-picker-results
){
 background:transparent!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-program-alternative-params :is(input,select){
 box-sizing:border-box!important;width:100%!important;
 min-width:0!important;min-height:44px!important;height:44px!important;
 padding:0 10px!important;font-size:13px!important;line-height:1.2!important;
 border-radius:11px!important;
 color-scheme:dark;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-shell .ui-icon,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .modal .ui-icon{
 stroke:currentColor;fill:none;vector-effect:non-scaling-stroke;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-new-client-head,.trainer-new-client-section,
  .trainer-avatar-crop-head,.trainer-avatar-crop-stage,
  .trainer-nutrition-calc-head
){border-color:#3d5268!important;color:#f2f6fc!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-action.danger,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-more-logout{
  background:#38272e!important;
  color:#ffabb6!important;
  border-color:#684452!important;
  box-shadow:none!important;
}

/* Trainer theme settings reuse the same tri-state preference as the client. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-theme-settings .redesign-settings-panel{
  background:#0b0f14!important;
  color:#f1f5fa!important;
  border:1px solid #344557!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-theme-settings .redesign-settings-panel>strong{
  color:#f1f5fa!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-theme-settings .eplan-theme-option{
  background:#233548!important;
  border:1px solid #435a71!important;
  color:#c7d6e7!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-theme-settings .eplan-theme-option[aria-checked="true"]{
  background:#315a86!important;
  border-color:#79b7ff!important;
  color:#f5f9ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-theme-settings .eplan-theme-note{
  color:#aebed0!important;
}
body.eplan-redesign.trainer-ui .trainer-theme-settings .trainer-theme-back{
  width:44px;height:44px;min-width:44px;
  display:grid;place-items:center;
  padding:0!important;border-radius:13px;
}


/* Second-pass coverage: deep trainer workflows and formerly white subcards.
   Kept separate from the first layer to make QA corrections localized. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-client-list,.trainer-template-list,.trainer-template-editor-card,
  .trainer-template-editor-exercise,.trainer-template-editor-item-head,
  .trainer-template-alternatives,.trainer-template-alternatives-empty,
  .trainer-program-picker-card,.trainer-program-picker-search,
  .trainer-program-alternatives-block,.trainer-program-alternative-params,
  .trainer-day-title-card,.trainer-day-title-field,.trainer-inline-superset-fields,
  .trainer-inline-superset-grid,.trainer-inline-superset-head,
  .trainer-program-exercise-field,.trainer-program-superset-field,
  .trainer-extra-day-modal-card,.trainer-extra-day-form,.trainer-extra-day-empty,
  .trainer-extra-manager-empty,.trainer-extra-manager-item,
  .trainer-nutrition-edit,.trainer-ration-accuracy,.trainer-auto-fit,
  .trainer-assigned-day-total,.trainer-measure-count,.trainer-exercise-shell,
  .trainer-exercise-body,.trainer-exercise-head,.trainer-superset-head,
  .trainer-checkin-history-detail,.trainer-checkin-history-empty,
  .trainer-review-client-comment,.trainer-review-drop-list,
  .trainer-review-empty-detail,.trainer-review-complete-card,
  .trainer-workout-calendar-empty,.trainer-calendar-day-volume,
  .trainer-library-group-footer,.trainer-library-input-stack,
  .trainer-library-admin-form,.trainer-profile-editor-stats,
  .trainer-profile-collapsed-stats,.trainer-profile-collapsed-tags,
  .trainer-superset-round-note,
  .meal-plan-card,.meal-plan-head,.meal-plan-body,.meal-view,.meal-option,
  .nutrition-menu-meal-v2,.nutrition-menu-total-v6,.nutrition-diary-meal,
  .measurement-place-card,.measurement-history-card,.measurement-weight-visual,
  .measurement-metric,.exercise-card,.program-exercise-card
){
  background:#111820!important;
  color:#edf4fc!important;
  border-color:#394e64!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-program-picker-modes,.trainer-program-picker-muscles,
  .trainer-program-picker-scope,.trainer-program-picker-groups,
  .trainer-program-picker-fav,.trainer-template-editor-actions,
  .trainer-review-actions,.trainer-nutrition-target-actions,
  .trainer-workout-calendar-nav,.trainer-checkin-history-more,
  .trainer-template-editor-add-day,.trainer-template-editor-add-exercise,
  .trainer-program-alternative-add,.trainer-template-alternative-add,
  .trainer-library-add-toggle,.trainer-library-filter-chip,
  .trainer-library-toggle-meta,.trainer-extra-manager-actions,
  .trainer-extra-day-badges,.trainer-saved-plan-actions,
  .trainer-superset-inline-move,.trainer-superset-move
){
  background:#243749!important;
  border-color:#425a72!important;
  color:#dceaf8!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-template-editor-exercise,.trainer-review-client-comment,
  .trainer-program-alternative-params,.trainer-library-admin-form,
  .trainer-checkin-history-detail,.trainer-assigned-day-total,
  .trainer-progress-summary,.trainer-profile-collapsed-stats
) :is(strong,b,h2,h3,small,p,label){
  color:#dfe9f6!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-template-alternative-remove,.trainer-program-alternative-remove,
  .trainer-library-danger-btn,.trainer-extra-action.danger
){
  background:#382730!important;
  border-color:#784453!important;
  color:#ffabb5!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-library-primary-btn,.trainer-program-picker-pick,
  .trainer-program-alternative-pick,.trainer-template-alternative-pick,
  .trainer-nutrition-calc-apply,.trainer-extra-day-create,
  .trainer-extra-manager-create
){
  background:#2d5c8b!important;
  border-color:#477bad!important;
  color:#e9f4ff!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-client-actions-head,.trainer-workout-calendar-review-link,
  .trainer-review-complete-next,.trainer-review-complete-secondary,
  .trainer-review-complete-close,.trainer-nutrition-calc-close,
  .trainer-new-client-close,.trainer-profile-collapse-btn,
  .trainer-profile-edit-toggle,.trainer-program-picker-close
){
  background:#263b4d!important;
  border-color:#456178!important;
  color:#e7f2fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-meta-chip,.trainer-status-pill,.trainer-checkin-history-status,
  .trainer-assigned-meta,.trainer-workout-calendar-status,
  .trainer-profile-collapsed-status,.trainer-review-badge,
  .trainer-review-skipped-badge,.trainer-review-set-deltas,
  .trainer-calendar-duration,.trainer-history-duration
){
  background:#293c4f!important;
  border-color:#425a73!important;
  color:#c3dcf7!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-coach-request-status.accepted,.trainer-assigned-meta.active,
  .trainer-profile-collapsed-status.open
){background:#264637!important;color:#9ee5b9!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-coach-request-status.pending,.trainer-nutrition-status.warn
){background:#483923!important;color:#f4c388!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-coach-request-status.declined,.trainer-review-skipped-badge
){background:#493038!important;color:#f4adb7!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-hero-card :is(.trainer-client-avatar,.trainer-client-avatar.more){
  border-color:#dfeafa!important;
}
/* Trainer assets and accent colors must not be inverted or recolored.
   Avatar palette is owned by trainer-avatars.css. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-avatar-stack .trainer-client-avatar.more{
  background:#1a2a3c!important;
  border-color:#40566e!important;
  color:#b9d8f5!important;
}
/* This is also a theme selector when opened in light mode. */
body.eplan-redesign.trainer-ui .trainer-theme-settings .eplan-theme-options{
  display:grid;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-theme-settings .trainer-theme-back{
  background:#243b52!important;
  border:1px solid #3d5874!important;
  color:#badaff!important;
}

/* v2 — iPhone QA: legacy light styles use strong selectors and !important.
   Scope every correction to TRAINER + DARK; never modify client theme. */

/* The program, template, client, and nutrition lists are stacks, not parent cards. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
 .trainer-template-list,.trainer-template-list.modern,
 .trainer-client-list,.trainer-assigned-list,.trainer-assigned-list.modern,
 .trainer-nutrition-list,.trainer-nutrition-list.modern,
 .trainer-template-toolbar,.trainer-template-toolbar.modern
){
 background:transparent!important;
 border-color:transparent!important;
 box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-template-toolbar.modern :is(strong,span),
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-template-toolbar.modern>div>span{
 color:#a9bacd!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-template-toolbar.modern strong{
 color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-template-list.modern .trainer-template-card,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-assigned-row.modern,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-row.modern{
 background:#0b0f14!important;
 border:1px solid #354353!important;
 color:#edf5fd!important;
 box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-assigned-row.modern:last-child,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-row.modern:last-child{
 border-bottom-color:#354353!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-template-list.modern .trainer-template-actions button:first-child,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-template-list.modern .trainer-template-actions .dark{
 background:#263b51!important;
 color:#bcd9fa!important;
 border:1px solid #435d77!important;
 box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-template-list.modern .trainer-template-actions .dark{
 background:#223140!important;
 color:#d0dfed!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-template-card-main small,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-assigned-row.modern small{
 color:#acbbce!important;
}

/* Dashboard nutrition tiles must not show dark navy statistics on dark cards. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-summary>div{
 background:#0b0f14!important;
 border-color:#354353!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-summary strong{
 color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-summary small,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-template-card-main p{
 color:#a9bacd!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-food-review-entry{
 background:#274563!important;
 color:#bdddff!important;
 border:1px solid #3d5f83!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-search{
 background:#1d2a38!important;
 color:#aabbd0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-search input{
 background:transparent!important;
 color:#edf5fc!important;
}

/* The overview, questionnaire, notes, check-ins and access cards. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #profile>.card,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-overview-card,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-profile-card,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .access-card,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-private-note,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-checkin-card,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-checkin-empty{
 background:#0b0f14!important;
 color:#eef5fc!important;
 border-color:#354353!important;
 box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page :is(
 .trainer-overview-card h2,.trainer-profile-card h2,.access-saved h2,
 .trainer-private-note h2,.trainer-checkin-card h2,
 .trainer-checkin-empty h2,.trainer-checkin-history h2
){color:#edf5fc!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-profile-card :is(
 strong,div[style*="white-space"]
){color:#edf5fc!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-profile-card .muted{
 color:#aabbd0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-profile-card>div[style*="margin-top"],
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .access-edit-box{
 border-color:#344759!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-meta-chip{
 background:#263748!important;color:#c2d0e0!important;border-color:#41556a!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-meta-chip.ok,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .access-pill.ok{
 background:#233d31!important;color:#98dfb7!important;border-color:#466e55!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-meta-chip.warn,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .access-pill.warn{
 background:#403426!important;color:#f5c08c!important;border-color:#775739!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-meta-chip.alert,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .access-pill.off{
 background:#422b34!important;color:#f7aab5!important;border-color:#754754!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .access-pill{
 background:#243646!important;color:#cbd8e9!important;border-color:#43586e!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .access-saved>button,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-private-note-save,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-checkin-card>button{
 background:#294767!important;color:#bfdaff!important;border:1px solid #436587!important;
 box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .access-edit-box :is(input,select){
 background:#1e2e3d!important;color:#eef5fd!important;border-color:#40576c!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-checkin-grid span{
 background:#223243!important;color:#b9c9db!important;border-color:#40566d!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-checkin-card p{
 color:#bfcddd!important;
}

/* Fixed light fills in nutrition goals and their value tiles. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-page .trainer-nutrition-target-card{
 background:#0b0f14!important;
 border-color:#354353!important;
 box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-target-head h2{
 color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-target-head p{
 color:#aebfd0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-target-summary>div{
 background:#243444!important;
 border:1px solid #40566c!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-target-summary span,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-target-summary small{
 color:#aebfd0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-target-summary strong{
 color:#f2f7fd!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-edit,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-target-actions button.dark{
 background:#243849!important;border-color:#42596e!important;color:#d4e5f8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-target-fields :is(input,select){
 background:#203141!important;border-color:#455a70!important;color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-target-fields label>span{
 color:#b1c1d3!important;
}

/* Assigned meal plan: quiet graphite, not white blocks or midnight-blue labels. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-page .meal-plan-card,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-page .meal-plan-head,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-page .meal-plan-body{
 background:#0b0f14!important;
 color:#eff5fc!important;
 border-color:#354353!important;
 box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-page .meal-plan-head strong{
 color:#eff5fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-page .meal-plan-head .muted,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-page .meal-plan-head .arrow{
 color:#a9bad0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-page :is(
 .meal-view,.meal-editor,.meal-variant,.structured-meal-editor,.structured-food-row
){
 background:#1c2b39!important;
 border-color:#394f65!important;
 color:#e8f1fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-page :is(
 .meal-view>strong,.meal-editor-head strong,.meal-option
){color:#e5f0fb!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-page .meal-actions button{
 background:#243b51!important;border-color:#405d79!important;color:#cbe3fd!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-page .meal-variant textarea{
 background:#213142!important;color:#eef5fc!important;border-color:#43596e!important;
}

/* Daily ration totals: dark tinted nutrient badges, legible values. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-total-v6,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-assigned-day-total{
 background:#192c3c!important;
 color:#e8f3ff!important;
 border:1px solid #405d7c!important;
 border-left:3px solid #5c9fe9!important;
 box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-total-v6 .nutrition-menu-total-heading>span{
 color:#96bbdf!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-total-v6 .nutrition-menu-total-heading>strong,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-total-v6 .nutrition-menu-total-heading>strong small{
 color:#eff7ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-total-v6 .nutrition-total-chip.protein{
 background:#243b58!important;color:#a1c9ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-total-v6 .nutrition-total-chip.fat{
 background:#493b28!important;color:#ffd18b!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-total-v6 .nutrition-total-chip.carbs{
 background:#244536!important;color:#99ddb7!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-total-v6 .nutrition-total-chip :is(
 .nutrition-total-value,.nutrition-total-label,.nutrition-total-icon,small,svg
){
 color:inherit!important;stroke:currentColor;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-saved-ration-tabs{
 background:#121b25!important;box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-saved-ration-tab{
 background:transparent!important;color:#adbed1!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-saved-ration-tab.active{
 background:#315780!important;color:#f4f8fd!important;box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-day-intro>span{
 color:#c3d4e8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-day-intro small{
 color:#a2b3c6!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-page .trainer-assigned-meal,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2{
 background:#151f2a!important;border-color:#385065!important;box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .trainer-assigned-dish,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-assigned-meal .trainer-assigned-dish{
 color:#edf5fd!important;
 background:transparent!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .trainer-assigned-meal-label,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .nutrition-menu-v2-kicker .trainer-assigned-meal-label{
 color:#afc2d6!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .nutrition-menu-ingredient,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .nutrition-menu-ingredient b,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .trainer-assigned-ingredients{
 color:#aebed2!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .nutrition-menu-energy{
 background:#263f5a!important;color:#aad2ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .nutrition-menu-v2-macro{
 background:#263f5a!important;color:#a9d0ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .nutrition-menu-v2-macro.macro-1{
 background:#443a29!important;color:#f5c67c!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .nutrition-menu-v2-macro.macro-2{
 background:#244336!important;color:#97dcb8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .nutrition-menu-v2-macro :is(b,small),
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .nutrition-menu-energy small{
 color:inherit!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .nutrition-menu-method,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .nutrition-menu-v2-method{
 border-color:#3b5066!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-meal-v2 .nutrition-menu-method summary{
 color:#83baff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-round-prompt{
 background:#24384b!important;border-color:#425e77!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-round-prompt span{
 color:#c0d0e2!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .nutrition-menu-round-prompt button{
 background:#294c70!important;border-color:#4b7399!important;color:#bfe0ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-saved-plan-actions button{
 background:#263b51!important;color:#d7e9fc!important;border:1px solid #45617c!important;
}

/* v3 — shared graphite system for trainer screens.
   Keep this block after v2: legacy dark overrides deliberately use !important.
   No changes to client styles, trainer layout, avatar tones, or semantic statuses. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"]{
  
  
  
  
  
  
  
  --bg:var(--trainer-dark-bg);
  --card:var(--trainer-dark-surface);
  --card2:var(--trainer-dark-raised);
  --line:var(--trainer-dark-border);
  --text:var(--trainer-dark-text);
  --muted:var(--trainer-dark-muted);
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .card,.trainer-home-stats>button,.trainer-activity-card,.trainer-client-row,
  .trainer-activity-row,.trainer-client-kpis>div,.trainer-smart-summary,
  .trainer-assigned-row,.trainer-nutrition-row,.trainer-program-empty,
  .trainer-template-card,.trainer-template-editor-item,.trainer-template-editor-day,
  .trainer-more-item,.trainer-nutrition-summary>div,.trainer-nutrition-target-card,
  .trainer-nutrition-current,.trainer-nutrition-calc-card,.trainer-saved-plan,
  .trainer-saved-legacy,.trainer-assigned-meal,.trainer-food-review-panel,
  .trainer-food-review-row,.trainer-library-summary>div,.trainer-library-group,
  .trainer-library-exercise,.trainer-library-admin,.trainer-library-admin-section,
  .trainer-checkin-card,.trainer-checkin-empty,.trainer-checkin-history-item,
  .trainer-review-card,.trainer-review-queue,.trainer-program-editor,
  .trainer-exercise-card,.trainer-overview-card,.trainer-profile-card,
  .trainer-private-note,.trainer-workout-calendar-card,
  .trainer-workout-calendar-details,.trainer-workout-calendar-session,
  .trainer-volume-panel,.trainer-progress-hero,.trainer-progress-section,
  .trainer-progress-pr-card,.trainer-measurements-page .measurement-place-card,
  .trainer-measurements-page .measurement-history-card,
  .trainer-public-profile-editor .trainer-profile-collapsed,
  .trainer-public-profile-editor .trainer-profile-editor-preview,
  .trainer-public-profile-editor .trainer-profile-editor-form,
  .trainer-coach-request,.trainer-client-actions-pop
){
  background:var(--trainer-dark-surface)!important;
  border-color:var(--trainer-dark-border)!important;
  color:var(--trainer-dark-text)!important;
  box-shadow:none!important;
}
/* Stronger v2 selectors: cards remain separate from transparent list wrappers. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-template-list.modern .trainer-template-card,
  .trainer-assigned-row.modern,.trainer-nutrition-row.modern,
  .trainer-client-page #profile>.card,
  .trainer-client-page .trainer-overview-card,
  .trainer-client-page .trainer-profile-card,
  .trainer-client-page .access-card,
  .trainer-client-page .trainer-private-note,
  .trainer-client-page .trainer-checkin-card,
  .trainer-client-page .trainer-checkin-empty,
  .trainer-nutrition-page .trainer-nutrition-target-card,
  .trainer-nutrition-page .meal-plan-card,
  .trainer-nutrition-page .meal-plan-head,
  .trainer-nutrition-page .meal-plan-body,
  .trainer-nutrition-page .trainer-assigned-meal,
  .nutrition-menu-meal-v2
){
  background:var(--trainer-dark-surface)!important;
  border-color:var(--trainer-dark-border)!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-checkin-grid span,.trainer-review-detail,.trainer-review-exercise,
  .trainer-review-sets>*,.trainer-review-aux,.trainer-review-comment,
  .trainer-review-set-current,.trainer-review-set-previous,
  .trainer-review-set-block,.trainer-program-editor-grid,
  .trainer-program-alternative-card,.trainer-program-alternative-row,
  .trainer-template-alternative-row,.trainer-template-editor-grid,
  .trainer-template-editor-items,.trainer-template-editor-meta,
  .trainer-template-editor-day-head,.trainer-library-admin-body,
  .trainer-library-add-actions,.trainer-nutrition-target-summary>div,
  .trainer-nutrition-calc-head,.trainer-saved-ration-page,.trainer-meal-recipe,
  .trainer-assigned-dish,.trainer-assigned-ingredients,
  .trainer-assigned-preparation,.trainer-food-review-extra,
  .trainer-food-review-inputs,.trainer-progress-summary,
  .trainer-progress-activity-stats,.trainer-progress-pr-grid,
  .trainer-progress-compare-list,.trainer-progress-activity-list,
  .trainer-workout-calendar-grid,.trainer-workout-calendar-exercises,
  .trainer-workout-calendar-comment,.trainer-volume-kpis>div,
  .trainer-volume-muscle-row,.trainer-workout-calendar-cell,
  .trainer-nutrition-page .meal-view,.trainer-nutrition-page .meal-editor,
  .trainer-nutrition-page .meal-variant,
  .trainer-nutrition-page .structured-meal-editor,
  .trainer-nutrition-page .structured-food-row,
  .trainer-client-page .trainer-checkin-grid span
){
  background:var(--trainer-dark-raised)!important;
  border-color:var(--trainer-dark-border)!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-nutrition-target-summary span,.trainer-nutrition-target-summary small,
  .trainer-nutrition-target-head p,.trainer-checkin-card p,
  .trainer-client-page .trainer-checkin-card p,.trainer-nutrition-summary small,
  .trainer-template-card-main p,.trainer-template-card-main small,
  .trainer-assigned-row.modern small,.trainer-template-toolbar.modern>div>span,
  .trainer-nutrition-target-fields label>span,
  .trainer-client-page .trainer-profile-card .muted
){color:var(--trainer-dark-muted)!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-nutrition-summary strong,.trainer-nutrition-target-summary strong,
  .trainer-nutrition-target-head h2,.trainer-template-toolbar.modern strong
){color:var(--trainer-dark-text)!important}

/* Fields and selectors: one quiet level above their parent cards. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  input:not([type="checkbox"]):not([type="radio"]),textarea,select,
  .card input:not([type="checkbox"]):not([type="radio"]),.card textarea,.card select,
  .trainer-client-page .access-edit-box input,
  .trainer-client-page .access-edit-box select,
  .trainer-nutrition-target-fields input,.trainer-nutrition-target-fields select,
  .trainer-nutrition-page .meal-variant textarea
){
  background:var(--trainer-dark-raised)!important;
  border-color:#354353!important;
  color:var(--trainer-dark-text)!important;
  -webkit-text-fill-color:var(--trainer-dark-text);
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-search,.trainer-segmented,.trainer-client-tabs,.trainer-program-tabs,
  .trainer-progress-periods,.trainer-volume-tabs,.trainer-ration-tabs,
  .trainer-saved-ration-tabs,.trainer-template-editor-top
){
  background:var(--trainer-dark-raised)!important;
  border-color:var(--trainer-dark-border)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-search input{
  background:transparent!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-template-list.modern .trainer-template-actions button:first-child,
  .trainer-template-list.modern .trainer-template-actions .dark,
  .trainer-client-page .access-saved>button,
  .trainer-private-note-save,.trainer-client-page .trainer-checkin-card>button,
  .trainer-nutrition-edit,.trainer-nutrition-target-actions button.dark,
  .trainer-saved-plan-actions button,.trainer-nutrition-page .meal-actions button
){
  background:#18232e!important;
  color:#d7e7ff!important;
  border-color:#354353!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-template-create,.trainer-public-profile-save,
  .trainer-new-client-submit,.trainer-program-add
){background:#3478f6!important;border-color:#4787fa!important;color:#fff!important}



body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-filter-chips button,.trainer-client-tabs button,
  .trainer-program-tabs button,.trainer-segmented button,
  .trainer-programs-segmented button,.trainer-progress-periods button,.trainer-volume-tabs button,
  .trainer-ration-tabs button,.trainer-saved-ration-tabs button
).active{
  background:#293d58!important;color:#e9f2ff!important;border-color:#43658f!important;
}
/* Progress and meal totals are softly blue-tinted, never white or navy blocks. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .nutrition-menu-total-v6,.trainer-assigned-day-total
){
  background:#202c3b!important;
  border-color:#3d526b!important;
  border-left-color:#579bf5!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-saved-ration-tabs{
  background:var(--trainer-dark-raised)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-saved-ration-tab.active{
  background:#293d58!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-page .nutrition-menu-meal-v2{
  background:var(--trainer-dark-surface)!important;
  border-color:var(--trainer-dark-border)!important;
}
/* Explicitly preserve avatar tones, success/warning/risk chips, and current
   action semantics: those are intentionally handled by earlier rules. */

/* v4 — trainer dark contrast repairs from iPhone QA, 2026-10-15.
   These color-only overrides intentionally follow v3. All rules require BOTH
   trainer-ui and dark mode: light/client themes and workout logic stay untouched. */

/* Dashboard: icon badges should not look like light-mode tiles. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-home-stats .trainer-stat-icon.orange{
  background:#403025!important;color:#f0ad72!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-home-stats .trainer-stat-icon.green{
  background:#213b2d!important;color:#70d79a!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-home-stats .trainer-stat-icon.blue{
  background:#263a56!important;color:#8bbaff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-home-stats>button small{
  color:var(--trainer-dark-muted)!important;
}

/* Activity/status cards are independent tiles; remove the surface behind them. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-home-page .trainer-activity-card,
  .trainer-home-page .trainer-client-list,
  .trainer-clients-page .trainer-client-list
){
  background:transparent!important;border:0!important;box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-home-page .trainer-activity-row,
  .trainer-home-page .trainer-client-row,
  .trainer-clients-page .trainer-client-row
){
  background:var(--trainer-dark-surface)!important;
  border:1px solid var(--trainer-dark-border)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-home-page .trainer-activity-row:last-child,
  .trainer-home-page .trainer-client-row:last-child,
  .trainer-clients-page .trainer-client-row:last-child
){border-bottom:1px solid var(--trainer-dark-border)!important}

/* Client profile: unify access controls and private notes with graphite. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page :is(
  .access-pill,.trainer-meta-chip
):not(.ok):not(.warn):not(.alert):not(.off){
  background:#29333e!important;color:#c3d0e0!important;
  border-color:#424955!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-private-note textarea{
  background:var(--trainer-dark-raised)!important;
  border-color:#354353!important;
  color:var(--trainer-dark-text)!important;
  -webkit-text-fill-color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page :is(
  .trainer-private-note-save,.access-saved>button
){
  background:#18232e!important;color:#d7e7ff!important;border-color:#354353!important;
}

/* RIR opt-in: remove the bright white switch panel without changing checkbox behavior. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-program-rir-toggle{
  background:var(--trainer-dark-surface)!important;
  border-color:var(--trainer-dark-border)!important;
  color:var(--trainer-dark-text)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-program-rir-toggle strong{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-program-rir-toggle small{
  color:var(--trainer-dark-muted)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-program-rir-toggle>input[type="checkbox"]{
  accent-color:#3478f6!important;
}

/* Program/day editor: dark headers, secondary pick actions and muted labels. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page :is(
  .trainer-program-editor,.program-day-card,.trainer-program-editor-grid
){
  border-color:var(--trainer-dark-border)!important;
  color:var(--trainer-dark-text)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-program-editor-grid{
  background:transparent!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page :is(
  .trainer-program-editor-head h2,.program-day-heading h2,.program-day-head
){
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page :is(
  .trainer-program-editor-head p,.program-day-heading small,
  .trainer-program-editor-grid label,.trainer-program-editor-grid label>span
){
  color:var(--trainer-dark-muted)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .program-day-title-edit{
  background:transparent!important;
  border:1px solid var(--trainer-dark-border)!important;
  color:var(--trainer-dark-muted)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-program-exercise-field>button,
  .trainer-program-alternative-pick,
  .trainer-template-editor-exercise>button
){
  background:#293d58!important;
  border-color:#45658c!important;
  color:#b5d3ff!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-program-add{
  background:#3478f6!important;color:#fff!important;border-color:#4787fa!important;
}

/* Alternative prescriptions: distinct but quiet section/card/input layers. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-program-alternatives-block{
  background:var(--trainer-dark-surface)!important;
  border-color:#a86d39!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-program-alternatives-title>span{
  color:#d5e3f6!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-program-alternatives-title>small{
  color:var(--trainer-dark-muted)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-program-alternative-card,.trainer-program-alternative-row,.trainer-template-alternative-row
){
  background:var(--trainer-dark-raised)!important;border-color:#a86d39!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-program-alternative-card .trainer-program-alternative-params{
  background:transparent!important;border-top-color:#434a55!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-program-alternative-params label>span{
  color:var(--trainer-dark-muted)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-program-alternative-card :is(
  .trainer-program-alternative-input,.trainer-program-alternative-params input,
  .trainer-program-alternative-params select
){
  background:var(--trainer-dark-surface)!important;
  border-color:var(--trainer-dark-border)!important;
  color:var(--trainer-dark-text)!important;
  -webkit-text-fill-color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-program-alternatives-block .trainer-program-alternative-card .trainer-program-alternative-remove{
  background:#39272e!important;
  border-color:#65404c!important;
  color:#f0abb8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-program-alternative-add{
  background:#2a3949!important;
  border-color:#53647a!important;
  color:#c3d8f4!important;
}

/* The inline superset is an optional secondary action, not a white CTA. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-inline-superset-toggle{
  background:#293847!important;
  border-color:#506680!important;
  color:#c7ddfa!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-inline-superset-toggle.active{
  background:#263b55!important;
  border-color:#5b80ad!important;
  color:#d4e7ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-inline-superset-fields{
  background:#111820!important;
  border-color:#43576d!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-inline-superset-head{
  border-bottom-color:#43505f!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-inline-superset-head strong{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-inline-superset-head span,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-inline-superset-grid label>span{
  color:var(--trainer-dark-muted)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-inline-superset-head>button{
  background:#18232e!important;
  color:#c5d3e4!important;
  border-color:#354353!important;
}

/* Previously added exercises: never render light headers, white pills or pale delete. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page :is(
  .program-block,.program-block.trainer-exercise-card,
  .program-block.trainer-exercise-card.superset-block
){
  background:var(--trainer-dark-surface)!important;
  color:var(--trainer-dark-text)!important;
  border-color:var(--trainer-dark-border)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page :is(
  .trainer-exercise-shell>.trainer-exercise-head,
  .superset-inner>.trainer-exercise-head,
  .superset-block .superset-inner>.trainer-exercise-head
){
  background:var(--trainer-dark-raised)!important;
  color:var(--trainer-dark-text)!important;
  border-bottom-color:#354353!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-exercise-head .trainer-program-title-line>strong,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .program-block strong{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page :is(
  .trainer-exercise-body,.superset-block .superset-inner
){
  background:var(--trainer-dark-surface)!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-exercise-body>.muted{
  color:var(--trainer-dark-muted)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page :is(
  .trainer-exercise-head-actions button,
  .trainer-superset-inline-move button,
  .trainer-superset-move button,
  .program-block-actions button
){
  background:#18232e!important;
  border-color:#354353!important;
  color:#d2ddec!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .program-extra .badge{
  background:#2c333d!important;
  border-color:#495260!important;
  color:#becde0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .inner-actions button.dark{
  background:#18232e!important;border-color:#354353!important;color:#d6e4f7!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .inner-actions button.danger{
  background:#39272e!important;border-color:#65404c!important;color:#f0abb8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .exercise-alternatives{
  background:var(--trainer-dark-surface)!important;
  border:1px solid #8b623f!important;color:var(--trainer-dark-muted)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .exercise-alternatives>strong{
  color:#e0e6ef!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .alternative-chip{
  background:var(--trainer-dark-raised)!important;
  border:1px solid #a86d39!important;color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .superset-block .trainer-superset-head{
  background:#273a51!important;
  border-bottom-color:#486381!important;
  color:#aaccff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .superset-block .superset-inner+.superset-inner{
  border-top-color:#354353!important;
}

/* v5 — iPhone trainer dark-theme follow-up: supplementary cards, readable
   program headers and client action-sheet. Role + theme scoped throughout. */

/* The empty extra-day graphic and its copy should not contain light tiles. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-extra-manager-empty{
  background:var(--trainer-dark-surface)!important;
  border:1px dashed var(--trainer-dark-border)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-extra-manager-empty>span{
  background:var(--trainer-dark-raised)!important;
  color:var(--trainer-dark-accent)!important;
  border:1px solid var(--trainer-dark-border)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-extra-manager-empty strong{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-extra-manager-empty small{
  color:var(--trainer-dark-muted)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-extra-manager-create{
  background:#294b70!important;
  border-color:#486b91!important;
  color:#d3e5ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-extra-manager-kicker{
  color:#8ebcff!important;
}
/* Bring secondary inset panels nearer to graphite; no blue slabs in the
   exercise form, while preserving blue action buttons and focus indication. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-program-alternatives-block{
  background:var(--trainer-dark-surface)!important;
  border-color:#a86d39!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-inline-superset-fields{
  background:var(--trainer-dark-raised)!important;
  border-color:var(--trainer-dark-border)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-program-alternatives-block .trainer-program-alternative-card.trainer-program-alternative-row{
  background:var(--trainer-dark-raised)!important;
  border:1px solid #a86d39!important;
}

/* Superset labels must contrast with their muted header. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .superset-block .trainer-superset-head{
  background:#263543!important;
  border-bottom-color:#405365!important;
  color:#c0dcff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-superset-head>span:first-child{
  color:#a6cbff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-superset-head small{
  color:#bdcbdc!important;
}
/* Actual exercise names are marquee tracks with a duplicate string. That
   animation is why screenshots show only the middle of an exercise title.
   Keep a single, fully readable name with natural line wrapping instead. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page :is(
  .trainer-exercise-shell>.trainer-exercise-head,
  .superset-inner>.trainer-exercise-head
){
  height:auto!important;
  min-height:58px!important;
  max-height:none!important;
  padding-top:11px!important;
  padding-bottom:11px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-exercise-head{
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-exercise-head .trainer-program-title-line{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:4px 0!important;
  height:auto!important;
  min-height:30px!important;
  max-height:none!important;
  overflow:visible!important;
  line-height:1.3!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-exercise-head .trainer-program-name-marquee{
  flex:0 1 100%!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:visible!important;
  white-space:normal!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-exercise-head .trainer-program-name-track{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  transform:none!important;
  animation:none!important;
  will-change:auto!important;
  white-space:normal!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-exercise-head .trainer-program-name-track>strong{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  color:var(--trainer-dark-text)!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  line-height:1.28!important;
  text-overflow:clip!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-exercise-head .trainer-program-name-track>strong[aria-hidden="true"]{
  display:none!important;
}
/* Technique remains available underneath a long title rather than being
   crushed between animated text and fixed-width reorder controls. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-exercise-head .trainer-program-title-line>.alternative-tech-link{
  flex:0 0 auto!important;
  height:auto!important;
  min-height:22px!important;
  margin:0!important;
  padding-left:9px!important;
  line-height:22px!important;
  color:#8ebcff!important;
  white-space:nowrap!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-exercise-head .trainer-program-title-line>.alternative-tech-link::before{
  border-color:#647587!important;
}
/* Do not shift action controls when title wraps. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-exercise-head-actions{
  flex-shrink:0!important;
  min-width:max-content!important;
  align-self:center!important;
}

/* Client-actions modal: remove accidental navy banner and white close chip. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-actions-layer>.trainer-client-actions-pop{
  background:var(--trainer-dark-surface)!important;
  border-color:var(--trainer-dark-border)!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-actions-pop .trainer-client-actions-head{
  background:transparent!important;
  border:0!important;
  color:var(--trainer-dark-text)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-actions-pop .trainer-client-actions-head>strong{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-actions-pop .trainer-client-actions-head>button{
  display:grid!important;place-items:center!important;
  background:var(--trainer-dark-raised)!important;
  color:var(--trainer-dark-muted)!important;
  border:1px solid var(--trainer-dark-border)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-actions-pop .trainer-client-action.neutral{
  background:var(--trainer-dark-raised)!important;
  color:var(--trainer-dark-text)!important;
  border-color:var(--trainer-dark-border)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-actions-pop .trainer-client-action.danger{
  background:#39272e!important;
  color:#f2abb8!important;
  border-color:#65414d!important;
}

/* v6 — trainer iPhone QA: remove stray editor panels and light-only controls.
   All declarations are role/dark scoped. Client/light presentation unchanged. */

/* Exercise creation: the wrapper between День/Назва/Вправа/Техніка is
   structural only; don't paint opaque rectangular bands behind its children. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-program-editor .trainer-program-editor-grid{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-program-editor .trainer-program-editor-grid>label{
  min-width:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-program-editor .trainer-program-exercise-field,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #editExerciseModal .trainer-program-exercise-field{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  min-width:0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-program-editor .trainer-program-exercise-field>input,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-program-editor .trainer-program-editor-grid>label>input{
  background:var(--trainer-dark-raised)!important;
  border-color:#354353!important;
  color:var(--trainer-dark-text)!important;
  -webkit-text-fill-color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-program-editor .trainer-program-exercise-field>button{
  background:#293d58!important;
  color:#c1d8fa!important;
  border-color:#45658c!important;
}

/* Trainer edit exercise sheet: the old redesign rules force white
   modal panels and low-contrast white inputs in otherwise dark mode. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #editExerciseModal{
  background:rgba(4,7,12,.76)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #editExerciseModal>.edit-exercise-card{
  background:var(--trainer-dark-surface)!important;
  border-color:#41454f!important;
  color:var(--trainer-dark-text)!important;
  box-shadow:0 22px 56px rgba(0,0,0,.55)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #editExerciseModal .edit-exercise-head h2{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #editExerciseModal .edit-exercise-close{
  background:#18232e!important;
  border-color:#354353!important;
  color:#dce6f6!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #editExerciseModal :is(input:not([type="checkbox"]),select,textarea){
  background:var(--trainer-dark-raised)!important;
  border-color:#354353!important;
  color:var(--trainer-dark-text)!important;
  -webkit-text-fill-color:var(--trainer-dark-text)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #editExerciseModal input::placeholder,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-program-editor input::placeholder{
  color:#a9b1be!important;
  -webkit-text-fill-color:#a9b1be!important;
  opacity:1!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #editExerciseModal label,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #editExerciseModal label>span{
  color:#b7bfce!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #editExerciseModal .trainer-program-exercise-field>button{
  background:#293d58!important;
  border-color:#45658c!important;
  color:#c1d8fa!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #editExerciseModal .trainer-edit-exercise-primary{
  background:#3478f6!important;
  border-color:#4787fa!important;
  color:#fff!important;
}

/* Body measurements: labels and values must never inherit navy-on-navy.
   Source sprites are the same as the client; apply its existing dark artwork
   technique to trainer only, leaving anatomical highlights intact. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page :is(
  .measurement-weight-visual,.measurement-place-card,.measurement-compare-card,
  .measurement-history-calendar-card,.measurement-history-card.redesigned-history
){
  background:var(--trainer-dark-surface)!important;
  color:var(--trainer-dark-text)!important;
  border-color:var(--trainer-dark-border)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-weight-visual{
  background:#111820!important;
  border-color:#3f536a!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-place-top>span:not(.measurement-generated-art),
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-place-card>strong,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-weight-visual strong,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page :is(.measurement-visual-overview,.measurement-compare-card) h2{
  color:var(--trainer-dark-text)!important;
  -webkit-text-fill-color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page :is(
  .measurement-place-card,.measurement-weight-visual,.measurement-visual-overview
) :is(em,small),
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-section-title p{
  color:var(--trainer-dark-muted)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-side-values>span{
  background:#2a2e37!important;
  border-color:#354353!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-side-values :is(b,strong){
  color:#f1f4f8!important;
  -webkit-text-fill-color:#f1f4f8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-side-values small{
  color:#adb9ca!important;
}
/* No new image assets or redraw. Use the previously vetted reversible client
   dark filter only on measurement art, not on the accompanying value text. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-place-top{
  position:relative;
  isolation:isolate;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-place-top::before{
  content:"";
  position:absolute;
  z-index:0;
  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;
  box-sizing:border-box;
  border-radius:14px;
  border:1px solid #424b57;
  background:#252c36;
  pointer-events:none;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .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;
}

/* History: fix the bright white collapsed header and white calendar days. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-history-calendar-card{
  background:var(--trainer-dark-surface)!important;
  border-color:var(--trainer-dark-border)!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-history-calendar-toggle{
  background:var(--trainer-dark-surface)!important;
  color:var(--trainer-dark-text)!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-history-calendar-toggle strong{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-history-calendar-toggle :is(small,b){
  color:var(--trainer-dark-muted)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-history-calendar-body{
  background:var(--trainer-dark-surface)!important;
  border-top-color:var(--trainer-dark-border)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-calendar-head>strong{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-calendar-head>button{
  background:#18232e!important;
  color:#c6d8ef!important;
  border-color:#354353!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-calendar-weekdays span{
  color:#a8b4c3!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-calendar-day:not(.empty){
  background:var(--trainer-dark-raised)!important;
  color:#c7ced9!important;
  border-color:#3c434d!important;
  opacity:1!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-calendar-day.has-data{
  background:#293d58!important;
  color:#b8d4ff!important;
  border-color:#4c6d99!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-calendar-day.active{
  background:#3478f6!important;
  color:#fff!important;
  border-color:#6da2ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-calendar-day.has-data::after{
  background:#8dbbff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-calendar-day.active::after{
  background:#fff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-calendar-hint,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-calendar-empty{
  background:#121b25!important;
  color:#b9c7d8!important;
  border-color:#454e5b!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-calendar-selected{
  border-top-color:#404650!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page .measurement-history-head{
  border-bottom-color:#424a54!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page :is(
  .measurement-history-head strong,.measurement-history-metric>strong,
  .measurement-history-pair-sides b,.measurement-history-section h4
){
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measurements-page :is(
  .measurement-history-caption,.measurement-history-pair-sides small,
  .measurement-history-metric>span
){
  color:var(--trainer-dark-muted)!important;
}
/* Compact status counters, including the white check-in count circle. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-checkin-history-head>span{
  background:#2a3e58!important;
  border:1px solid #456084!important;
  color:#b9d7ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-measure-count{
  background:#293d58!important;
  color:#bfd7ff!important;
  border-color:#486b91!important;
}

/* v7 — trainer graphite polish: day-title/extra-day sheets and nutrition editor.
   Screenshot QA 2026-10-15. Color-only overrides restricted to trainer dark mode.
   Preserve light/client UI, program data, food macros and nutrition actions. */

/* Day title modal: dark outer card, editable field, helper and dismiss button. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #dayTitleModal{
  background:rgba(5,8,13,.78)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #dayTitleModal>.trainer-day-title-card{
  background:var(--trainer-dark-surface)!important;
  color:var(--trainer-dark-text)!important;
  border-color:#424752!important;
  box-shadow:0 24px 70px rgba(0,0,0,.50)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #dayTitleModal .edit-exercise-head h2{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #dayTitleModal .trainer-day-title-kicker{
  color:#85b6ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #dayTitleModal .trainer-day-title-day,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #dayTitleModal .trainer-day-title-field>span,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #dayTitleModal .trainer-day-title-hint{
  color:#abb6c5!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #dayTitleModal .edit-exercise-close{
  background:#18232e!important;
  border-color:#354353!important;
  color:#dce6f6!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #dayTitleModal #dayTitleInput{
  background:var(--trainer-dark-raised)!important;
  border-color:#354353!important;
  color:var(--trainer-dark-text)!important;
  -webkit-text-fill-color:var(--trainer-dark-text)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #dayTitleModal #dayTitleInput:focus{
  background:var(--trainer-dark-raised)!important;
  border-color:#579bf5!important;
  box-shadow:0 0 0 3px rgba(52,120,246,.16)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #dayTitleModal .trainer-day-title-save{
  background:#3478f6!important;
  border-color:#4787fa!important;
  color:#fff!important;
}

/* Additional training bottom-sheet: no pale helper or bright borders. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-extra-day-modal{
  background:rgba(5,8,13,.76)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-extra-day-modal>.trainer-extra-day-modal-card{
  background:var(--trainer-dark-surface)!important;
  color:var(--trainer-dark-text)!important;
  border-color:var(--trainer-dark-border)!important;
  box-shadow:0 -12px 42px rgba(0,0,0,.48)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-extra-day-modal-card .edit-exercise-head h2{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-extra-day-modal-card .edit-exercise-head small{
  color:#85b6ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-extra-day-modal-card .edit-exercise-head button.edit-exercise-close.dark{
  background:#18232e!important;
  border-color:#354353!important;
  color:#dce6f6!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-extra-day-modal-card .trainer-extra-day-form{
  background:transparent!important;
  border-color:transparent!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-extra-day-modal-card .trainer-extra-day-form label{
  background:transparent!important;
  color:#b7c2d0!important;
  border-color:transparent!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-extra-day-modal-card .trainer-extra-day-form label>span{
  color:#aeb9c7!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-extra-day-modal-card :is(
  .trainer-extra-day-form input,.trainer-extra-day-form select,
  .trainer-day-title-field input
){
  background:var(--trainer-dark-raised)!important;
  border-color:#354353!important;
  color:var(--trainer-dark-text)!important;
  -webkit-text-fill-color:var(--trainer-dark-text)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-extra-day-modal-card .trainer-extra-day-form input:focus,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-extra-day-modal-card .trainer-extra-day-form select:focus{
  background:var(--trainer-dark-raised)!important;
  border-color:#579bf5!important;
  box-shadow:0 0 0 3px rgba(52,120,246,.15)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-extra-day-modal-card .trainer-extra-day-form input[readonly]{
  background:#22262d!important;
  border-color:#3f4550!important;
  color:#b5bfcc!important;
  -webkit-text-fill-color:#b5bfcc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-extra-day-modal-card .trainer-extra-day-note{
  background:#121b25!important;
  border:1px solid #434b56!important;
  color:#c0cad8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-extra-day-modal-card .trainer-extra-day-save{
  background:#3478f6!important;
  color:#fff!important;
  border-color:#4787fa!important;
  box-shadow:none!important;
}

/* Nutrition overview: no navy rectangles showing behind the goal tiles. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-page :is(
  .trainer-nutrition-target-card,.meal-plan-card,.meal-plan-head,.meal-plan-body
){
  background:var(--trainer-dark-surface)!important;
  border-color:var(--trainer-dark-border)!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-summary{
  background:transparent!important;
  border:0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-summary>div{
  background:var(--trainer-dark-raised)!important;
  border-color:#354353!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-edit{
  background:#18232e!important;
  border-color:#354353!important;
  color:#d7e7ff!important;
}
/* Ration strips: graphite instead of gray/navy bands across their width. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition :is(
  .trainer-ration-tabs,.trainer-saved-ration-tabs,.meal-autoplan-toolbar
){
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-ration-tabs button{
  background:#121b25!important;
  border-color:#354353!important;
  color:#bfc8d7!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-ration-tabs button.active{
  background:#293d58!important;
  color:#d7e8ff!important;
  border-color:#5277a4!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-saved-ration-tabs{
  background:var(--trainer-dark-raised)!important;
  border-color:#3c434c!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-saved-ration-tab{
  color:#adb8c7!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-saved-ration-tab.active{
  background:#293d58!important;
  color:#d8eaff!important;
}

/* Secondary nutrition actions: no white rectangles competing with primary save. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition :is(
  .meal-autoplan-open,.meal-plan-edit-open,.structured-start,
  .structured-add,.structured-meal-loader button
){
  background:#293d58!important;
  border:1px solid #49668c!important;
  color:#c4dcff!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .meal-autoplan-save{
  background:#3478f6!important;
  border-color:#4787fa!important;
  color:#fff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-meal-recipe{
  background:#292c34!important;
  border-color:#3e454e!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-meal-recipe>strong{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-meal-recipe p{
  color:#aebacc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-meal-recipe button{
  background:#293d58!important;
  color:#bcd8ff!important;
  border-color:#4b6b95!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition :is(
  .meal-editor,.meal-variant,.structured-meal-editor,.structured-food-row
){
  background:var(--trainer-dark-raised)!important;
  border-color:#3e454f!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .meal-editor-head>strong{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-food-row{
  background:#292c33!important;
  border-color:#414752!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-food-name{
  color:#f0f3f7!important;
  -webkit-text-fill-color:#f0f3f7!important;
  background:transparent!important;
  border:0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-food-name span{
  color:#82b6ff!important;
  -webkit-text-fill-color:#82b6ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-food-use{
  color:#86c5a8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition :is(
  .structured-food-macro,.structured-food-details label,
  .structured-food-details label>span
){
  color:#aebacc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-food-details input.structured-grams{
  background:#23262d!important;
  color:var(--trainer-dark-text)!important;
  border-color:#48505b!important;
  -webkit-text-fill-color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-remove{
  background:#392b33!important;
  border-color:#6a4856!important;
  color:#eeaabc!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-veg-opt{
  color:#b1bdcc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-veg-opt input[type="checkbox"]{
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
  accent-color:#3478f6!important;
  color-scheme:dark!important;
  background-color:#121b25!important;
}
/* In-meal summary and four-column daily totals are nested graphite tiles. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-meal-summary{
  background:#232a33!important;
  color:#e7f0fc!important;
  border:1px solid #415061!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-meal-summary>strong{
  color:#e7f0fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-meal-summary small{
  color:#b6c7dc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-daily-summary{
  background:#22272f!important;
  border:1px solid #414c5b!important;
  color:var(--trainer-dark-text)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-daily-summary>strong{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-daily-grid>span{
  background:#2d323c!important;
  border-color:#495361!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-daily-grid b{
  color:#f0f3f8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-daily-grid small,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-daily-summary>small{
  color:#aab9c9!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .structured-daily-summary p{
  color:#b6c9e0!important;
}
/* Keep warnings and success tints; ensure their text is readable in dark. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition :is(
  .trainer-auto-fit,.trainer-ration-accuracy
){
  background:#202d39!important;
  border-color:#466079!important;
  color:#d7e7f8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition :is(
  .trainer-auto-fit,.trainer-ration-accuracy
) strong{
  color:#e6f3ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition :is(
  .trainer-auto-fit,.trainer-ration-accuracy
) :is(small,span){
  color:#aebfd3!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-ration-accuracy button{
  background:#18232e!important;
  color:#d4e4f8!important;
  border-color:#4b5b70!important;
}
/* Prevent inherited light-blue or navy from making product rows illegible. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .meal-editor :is(
  .meal-variant .muted,.trainer-meal-recipe p,.structured-food-macro
){color:#aebacc!important}

/* v8 — neutralize accidental inherited container paints and complete dark
   calculator/product picker. Trainer + dark only, no workout/nutrition logic. */

/* Structural fields should never form colored rectangles behind the real input. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #dayTitleModal .trainer-day-title-card .trainer-day-title-field{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #dayTitleModal .trainer-day-title-card .trainer-day-title-field>span{
  background:transparent!important;
  color:#b3bdcb!important;
}

/* Exercise headings: display full titles but no block behind the arrow set
   or stray separator when the technique link wraps under a long name. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-exercise-head :is(
  .trainer-program-title-line,.trainer-program-name-marquee,
  .trainer-program-name-track,.trainer-exercise-head-actions,
  .trainer-superset-inline-move
){
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-exercise-head .trainer-program-title-line>.alternative-tech-link{
  margin:2px 0 0!important;
  padding:0!important;
  border:0!important;
  text-decoration:underline!important;
  text-underline-offset:2px!important;
  color:#8ebcff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-exercise-head .trainer-program-title-line>.alternative-tech-link::before{
  display:none!important;
  content:none!important;
  border:0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-exercise-head-actions button{
  background:#18232e!important;
  border-color:#354353!important;
}

/* Assigned meal plan: wrappers and headings are not separate tiles. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition :is(
  .trainer-saved-ration-page,.nutrition-menu-v2-layout,
  .nutrition-menu-v2-copy,.nutrition-menu-v2-kicker,
  .trainer-assigned-ingredients,.trainer-assigned-preparation,
  .nutrition-menu-day-intro
){
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .nutrition-menu-meal-v2 .trainer-assigned-dish{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#f1f4f8!important;
  -webkit-text-fill-color:#f1f4f8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .nutrition-menu-v2-kicker .trainer-assigned-meal-label{
  background:transparent!important;
  color:#b4c3d5!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .nutrition-menu-v2-kicker .nutrition-menu-number{
  background:#293d58!important;
  color:#a5cbff!important;
}

/* Nutrition goal edit footer was receiving a navy full-width paint. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-actions{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-actions button:not(.dark){
  background:#3478f6!important;
  border-color:#4787fa!important;
  color:#fff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-actions button.dark{
  background:#18232e!important;
  border-color:#354353!important;
  color:#d7e7ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .nutrition-calc-button.trainer-nutrition-calc-launch{
  background:#293d58!important;
  border:1px solid #4b6b95!important;
  color:#c3dcff!important;
  box-shadow:none!important;
}

/* Calculator uses a separate body-level modal, not the trainer client page.
   Legacy refinements styles had forced white surfaces and white selects. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal{
  background:rgba(5,8,13,.79)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .trainer-nutrition-calc-card{
  background:var(--trainer-dark-surface)!important;
  border-color:#354353!important;
  color:var(--trainer-dark-text)!important;
  box-shadow:0 22px 64px rgba(0,0,0,.56)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .trainer-nutrition-calc-head{
  background:var(--trainer-dark-surface)!important;
  border-bottom-color:#354353!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .trainer-nutrition-calc-head h2{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .trainer-nutrition-calc-head p{
  color:#afbdcc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .trainer-nutrition-calc-close{
  background:#18232e!important;
  border-color:#354353!important;
  color:#dce6f6!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .nutrition-calc-grid{
  background:transparent!important;
  border:0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .nutrition-calc-grid label{
  color:#b7c4d4!important;
  background:transparent!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .nutrition-calc-grid label small{
  color:#a9b6c8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .nutrition-calc-grid :is(input,select){
  background-color:var(--trainer-dark-raised)!important;
  border-color:#48525f!important;
  color:var(--trainer-dark-text)!important;
  -webkit-text-fill-color:var(--trainer-dark-text)!important;
  color-scheme:dark;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .nutrition-calc-grid input::placeholder{
  color:#9eafc3!important;
  -webkit-text-fill-color:#9eafc3!important;
  opacity:1!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .nutrition-calc-grid select:invalid{
  color:#9eafc3!important;
  -webkit-text-fill-color:#9eafc3!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .nutrition-calc-grid select option{
  background:#121b25!important;
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .nutrition-calc-grid input:disabled{
  background:#23262d!important;
  color:#a9b9ca!important;
  -webkit-text-fill-color:#a9b9ca!important;
  opacity:.7!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .nutrition-calc-result{
  background:#242b34!important;
  border-color:#465363!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .nutrition-calc-kcal{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .nutrition-calc-macros span{
  background:#18232e!important;
  border-color:#4b5564!important;
  color:#e8f0fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .trainer-nutrition-calc-apply{
  background:#293d58!important;
  color:#c3dcff!important;
  border-color:#4b6b95!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerNutritionCalcModal .trainer-nutrition-calc-submit{
  background:#3478f6!important;
  color:#fff!important;
  border-color:#4787fa!important;
}

/* Food selector is also mounted directly under body. The old white picker
   rendered inherited light/white text against a white background. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #structuredFoodPicker{
  background:rgba(5,8,13,.78)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #structuredFoodPicker .structured-picker{
  background:var(--trainer-dark-surface)!important;
  border-color:#354353!important;
  color:var(--trainer-dark-text)!important;
  box-shadow:0 22px 64px rgba(0,0,0,.5)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #structuredFoodPicker .structured-picker-head,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #structuredFoodPicker .structured-picker-head strong{
  background:transparent!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #structuredFoodPicker .structured-picker-head button{
  background:#18232e!important;
  border-color:#354353!important;
  color:#dce6f6!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #structuredFoodPicker #structuredFoodSearch{
  background:#121b25!important;
  border-color:#4c5562!important;
  color:#f2f6fc!important;
  -webkit-text-fill-color:#f2f6fc!important;
  color-scheme:dark;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #structuredFoodPicker #structuredFoodSearch::placeholder{
  color:#a8b6c9!important;
  -webkit-text-fill-color:#a8b6c9!important;
  opacity:1!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #structuredFoodPicker #structuredFoodMatches{
  background:transparent!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #structuredFoodPicker #structuredFoodMatches button{
  background:#121b25!important;
  border-color:#354353!important;
  color:#f0f3f7!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #structuredFoodPicker #structuredFoodMatches button strong{
  color:#f0f3f7!important;
  -webkit-text-fill-color:#f0f3f7!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #structuredFoodPicker #structuredFoodMatches button small{
  color:#abb9cc!important;
}

/* v9 — trainer graphite clean-up: access, notification center, More,
   trainer profile and nutrition action strip (iPhone QA).
   These selectors require trainer + dark, preserving all client/light styles. */

/* Access card expands inline: legacy light theme was hard-coded on the editor. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #accessEditBox.access-edit-box{
  background:var(--trainer-dark-surface)!important;
  border:1px solid var(--trainer-dark-border)!important;
  color:var(--trainer-dark-text)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #accessEditBox .access-editor-head{
  background:transparent!important;
  border-color:transparent!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #accessEditBox .access-editor-head strong{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #accessEditBox :is(
  .access-editor-head small,.access-field label,.access-quick-title
){
  color:#aeb9c8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #accessEditBox :is(
  .access-grid,.access-field,.access-editor-actions,.access-quick-actions
){
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #accessEditBox .access-field :is(input,select){
  background:var(--trainer-dark-raised)!important;
  border-color:#474e59!important;
  color:var(--trainer-dark-text)!important;
  -webkit-text-fill-color:var(--trainer-dark-text)!important;
  color-scheme:dark;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #accessEditBox .access-field select option{
  background:#121b25!important;
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #accessEditBox .access-quick-actions button{
  background:#293d58!important;
  border-color:#465d7b!important;
  color:#d3e5ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #accessEditBox .access-quick-actions button:active{
  background:#345275!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #accessEditBox .access-editor-actions .access-primary{
  background:#3478f6!important;
  border-color:#4787fa!important;
  color:#fff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #accessEditBox .access-editor-actions .access-secondary{
  background:#18232e!important;
  border-color:#354353!important;
  color:#d7e7ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #accessEditBox .access-editor-actions .access-save-success{
  background:#213b2d!important;
  border-color:#436f54!important;
  color:#94e0b0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #accessEditBox .access-editor-note{
  background:#252b34!important;
  border-color:#414c5a!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #accessEditBox .access-editor-note>span{
  background:#293d58!important;
  color:#a4caff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #accessEditBox .access-editor-note p{
  color:#b6c3d3!important;
}

/* Trainer notifications: unread gets a quiet blue tint; read stays graphite.
   Swipe reveal, unread marker and push-enabled status retain their behavior. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationDetailModal{
  background:rgba(4,7,12,.74)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  #notificationModal,#notificationDetailModal
) .notification-modal-card{
  background:var(--trainer-dark-surface)!important;
  border-color:#40454f!important;
  color:var(--trainer-dark-text)!important;
  box-shadow:0 24px 70px rgba(0,0,0,.52)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  #notificationModal,#notificationDetailModal
) .notification-modal-head h2{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  #notificationModal,#notificationDetailModal
) .notification-modal-head small{
  color:#aab6c6!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  #notificationModal,#notificationDetailModal
) .notification-close{
  background:#18232e!important;
  border-color:#354353!important;
  color:#dce6f6!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal .notification-clear-all{
  background:#39272e!important;
  border-color:#674451!important;
  color:#f1b2be!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal .notification-phone-toggle{
  background:#263a52!important;
  border-color:#456487!important;
  color:#bad7ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal .notification-phone-toggle.push-enabled{
  background:#213a2e!important;
  border-color:#426b52!important;
  color:#a1dfb7!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal .notification-list,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal .notification-swipe{
  background:transparent!important;
  border-color:transparent!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal .notification-item{
  background:#121b25!important;
  border-color:#354353!important;
  color:var(--trainer-dark-text)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal .notification-item.unread{
  background:#243347!important;
  border-color:#547295!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal .notification-item-top strong{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal .notification-item-top time{
  color:#a7b7ca!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal .notification-item p{
  color:#e0e6ef!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal .notification-dot{
  background:#78b0ff!important;
  box-shadow:0 0 0 3px #304c70!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal .notification-delete-bg.notification-delete{
  background:#39272e!important;
  border-color:#674451!important;
  color:#f1adbb!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal .notification-empty,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationDetailModal .notification-detail-message{
  background:#121b25!important;
  border-color:#434b56!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal .notification-empty strong,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationDetailModal .notification-detail-message p{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal .notification-empty span{
  color:#abb8c9!important;
}

/* More list: remove the gray container band, keep individual graphite tiles. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-more-page .trainer-more-list.modern{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-more-page .trainer-more-list.modern .trainer-more-item{
  background:var(--trainer-dark-surface)!important;
  border:1px solid var(--trainer-dark-border)!important;
  color:var(--trainer-dark-text)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-more-page .trainer-more-list.modern .trainer-more-item:last-child{
  border-bottom:1px solid var(--trainer-dark-border)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-more-page .trainer-more-icon{
  background:#293d58!important;
  color:#a3cbff!important;
  border:1px solid #385776!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-more-page .trainer-more-copy strong{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-more-page .trainer-more-copy small,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-more-page .trainer-more-chevron{
  color:#a9b5c5!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-more-page .trainer-more-logout{
  background:#39272e!important;
  border-color:#674451!important;
  color:#f1adbb!important;
}

/* Public trainer profile: statistics, tags and photo button were light-mode.
   Do not place rectangular paint behind rows of already bordered tiles. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-collapsed,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-editor-preview,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-public-profile-card{
  background:var(--trainer-dark-surface)!important;
  color:var(--trainer-dark-text)!important;
  border-color:var(--trainer-dark-border)!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor :is(
  .trainer-profile-collapsed-stats,.trainer-profile-collapsed-tags,
  .trainer-profile-editor-stats,.trainer-profile-editor-preview>div:nth-child(2)
){
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-collapsed-stats>div,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-editor-stats>div{
  background:var(--trainer-dark-raised)!important;
  border:1px solid #414852!important;
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-collapsed-stats strong,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-editor-stats strong,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-collapsed-copy h2,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-editor-preview strong{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-collapsed-stats span,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-editor-stats span,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-collapsed-copy p,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-editor-preview>div:nth-child(2)>span{
  color:#aeb9c8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-collapsed-tags>span{
  background:#293d58!important;
  color:#b6d5ff!important;
  border:1px solid #49678c!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-avatar-upload>span{
  background:#293d58!important;
  color:#bad8ff!important;
  border:1px solid #49678c!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-edit-toggle{
  background:#293d58!important;
  border-color:#49678c!important;
  color:#d5e7ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-form-head{
  background:transparent!important;
  border-bottom-color:#404750!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-form-head strong{
  color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-form-head span,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-public-profile-card label>span{
  color:#abb8c8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-collapse-btn{
  background:#18232e!important;
  border-color:#354353!important;
  color:#d5e5f9!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-public-profile-card :is(input:not([type="checkbox"]),textarea,select){
  background:var(--trainer-dark-raised)!important;
  border-color:#454d57!important;
  color:var(--trainer-dark-text)!important;
  -webkit-text-fill-color:var(--trainer-dark-text)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-public-profile-card textarea::placeholder{
  color:#a9b7c8!important;
  -webkit-text-fill-color:#a9b7c8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-public-profile-editor .trainer-profile-editor-avatar:not(.has-photo){
  background:#18232e!important;
  color:#b7d6ff!important;
}

/* Assigned meal-plan footer: do not paint a rectangular band behind CTA. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition :is(
  .trainer-saved-plan-actions,.trainer-assigned-bottom-actions,
  .trainer-saved-plan-footer,.trainer-assigned-actions
){
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-saved-plan-actions button{
  background:#293d58!important;
  border-color:#49688f!important;
  color:#d5e7ff!important;
}

/* v10 — trainer template editor and library graphite cleanup (iPhone).
   Remove accidental painted wrappers; preserve actual cards/controls.
   All additions are isolated to trainer + explicit dark theme. */

/* A full-screen template editor had decorative dark rectangles behind
   text and every grid label. Real input and card surfaces stay distinct. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal{
  background:rgba(4,7,12,.77)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal .trainer-template-editor-card{
  background:#0b0f14!important;
  border-color:#354353!important;
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal :is(
  .trainer-template-editor-top,.trainer-template-editor-top>div,
  .trainer-template-editor-days,.trainer-template-editor-day-head,
  .trainer-template-editor-day-head>div,.trainer-template-editor-items,
  .trainer-template-editor-item-head,.trainer-template-editor-item-head>div,
  .trainer-template-editor-grid,.trainer-template-editor-grid>label,
  .trainer-template-editor-main-exercise,.trainer-template-editor-exercise,
  .trainer-template-editor-meta>label
){
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal .trainer-template-editor-top{
  border-color:transparent!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal .trainer-template-editor-top h2,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal .trainer-template-editor-item-head>strong{
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal .trainer-template-editor-top p{
  color:#aeb8c7!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal .trainer-template-editor-meta,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal .trainer-template-editor-day,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal .trainer-template-alternatives{
  background:#20242b!important;
  border:1px solid #3b424e!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal .trainer-template-editor-item{
  background:#0b0f14!important;
  border:1px solid #3a414c!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal .trainer-template-editor-day-head{
  border-bottom:1px solid #3d4551!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal :is(
  .trainer-template-editor-meta label>span,
  .trainer-template-editor-grid label>span,
  .trainer-template-editor-main-exercise>span
){
  background:transparent!important;
  color:#aeb9c8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal :is(
  .trainer-template-editor-meta input,
  .trainer-template-editor-meta textarea,
  .trainer-template-editor-day-head input,
  .trainer-template-editor-grid input,
  .trainer-template-editor-grid select,
  .trainer-template-editor-exercise>input,
  .trainer-template-alternative-row input
){
  background:#121b25!important;
  border-color:#354353!important;
  color:#f2f6fc!important;
  -webkit-text-fill-color:#f2f6fc!important;
  box-shadow:none!important;
  color-scheme:dark;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal :is(
  .trainer-template-editor-day-head button.dark,
  .trainer-template-editor-item-head button.dark,
  .trainer-template-editor-top>button.dark
):not(.danger-soft){
  background:#18232e!important;
  border-color:#354353!important;
  color:#dce8f8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal :is(
  .trainer-template-editor-day-head button.danger-soft,
  .trainer-template-editor-item-head button.danger-soft
){
  background:#39272e!important;
  border-color:#674451!important;
  color:#f1b5c0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal .trainer-template-editor-exercise>button{
  background:#293d58!important;
  border-color:#49688f!important;
  color:#c6ddff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal .trainer-template-alternatives-head,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal .trainer-template-alternatives-empty{
  background:transparent!important;
  color:#c6d1e1!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal .trainer-template-editor-actions{
  background:rgba(32,36,43,.96)!important;
  border-color:#434b56!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal .trainer-template-editor-actions .trainer-template-primary{
  background:#3478f6!important;
  border-color:#4787fa!important;
  color:#fff!important;
}

/* Library counters and horizontal filters: no bright white chips. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-summary{
  background:transparent!important;
  border:0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-summary>div{
  background:#0b0f14!important;
  border-color:#3d424d!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-summary strong{
  color:#f0f3f8!important;
  -webkit-text-fill-color:#f0f3f8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-summary small{
  color:#aab8ca!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-filter-strip{
  background:transparent!important;
  border:0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-filter-chip{
  background:#121b25!important;
  border:1px solid #48505c!important;
  color:#e5edf8!important;
  box-shadow:none!important;
  color-scheme:dark;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-filter-chip>span,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-filter-chip>i{
  color:#aab9cb!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-filter-chip>strong{
  color:#f0f3f8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-filter-chip>select{
  color-scheme:dark!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-result-line,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-result-line strong{
  color:#b6c4d6!important;
}

/* Library group is one actual card; meta count/arrow must not introduce
   a rectangular bar, and expanded exercises remain charcoal. */
/* Canonical dark trainer muscle-atlas cards: same assets and proportions as client. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #app .trainer-library-page{
 --el-panel:var(--trainer-dark-surface);
 --el-elevated:var(--trainer-dark-raised);
 --el-line:var(--trainer-dark-border);
 --el-text:var(--trainer-dark-text);
 --el-muted:var(--trainer-dark-muted);
 --el-action:var(--trainer-dark-accent);
 --el-visual:#0b0f14;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #app .trainer-library-focus-head>strong{
 color:var(--trainer-dark-text)!important;
}

body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-group,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-admin{
  background:#0b0f14!important;
  border-color:#354353!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page :is(
  .trainer-library-group-toggle,.trainer-library-admin-toggle
){
  background:var(--trainer-dark-surface)!important;
  border:0!important;
  color:#f2f6fc!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page :is(
  .trainer-library-group-toggle,.trainer-library-admin-toggle
):hover{
  background:#18232e!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page :is(
  .trainer-library-group-toggle>strong,.trainer-library-admin-toggle strong
){
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-toggle-meta{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-toggle-meta>b{
  background:var(--trainer-dark-raised)!important;
  border:1px solid var(--trainer-dark-border)!important;
  color:var(--trainer-dark-muted)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-toggle-meta>.arrow{
  background:transparent!important;
  color:#b8c4d3!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page :is(
  .trainer-library-exercise-list,.library-group-body
){
  background:#0b0f14!important;
  border-color:#3a414b!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-exercise{
  background:#0b0f14!important;
  border-bottom-color:#3c424d!important;
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page :is(
  .trainer-library-exercise-main,.library-exercise-name-line,.library-muscle-lines
){
  background:transparent!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-exercise-name-line>strong{
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-muscles-empty,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-muscle-lines{
  color:#aeb9c8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-scope-badge{
  background:#293d58!important;
  border-color:#4a688b!important;
  color:#c6ddff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-scope-badge.mine{
  background:#273b35!important;
  border-color:#456f5f!important;
  color:#b3e2ca!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-video{
  display:block!important;
  width:auto!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-video .redesign-library-video{
  display:inline-block!important;
  width:auto!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  color:#8dbaff!important;
  text-decoration:underline!important;
  text-underline-offset:2px!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-edit-btn{
  background:#18232e!important;
  border-color:#354353!important;
  color:#dce8f8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-delete-btn{
  background:#39272e!important;
  border-color:#674451!important;
  color:#f1b5c0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-group-footer,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-add{
  background:#222831!important;
  border-color:#414852!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-add-toggle{
  background:transparent!important;
  color:#bcd6fb!important;
  border:0!important;
}

/* Legacy grouped :is(.card button.dark, ...) has a more specific selector
   than the generic toggle override; pin library headers explicitly. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-group > button.trainer-library-group-toggle.redesign-library-group-head,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-admin > button.trainer-library-admin-toggle.exercise-toggle{
  background:var(--trainer-dark-surface)!important;
  border:0!important;
  color:#f2f6fc!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-group > button.trainer-library-group-toggle.redesign-library-group-head:hover,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-admin > button.trainer-library-admin-toggle.exercise-toggle:hover{
  background:#18232e!important;
}

/* v11 — trainer assigned meal icons and client progress graphite polish.
   Only trainer dark UI. Keep meal colors meaningful, not white rectangles. */

/* Assigned menus use the same hand-drawn Lucide meal glyphs as client view.
   Their light tiles persisted because theme.css only targeted client-ui. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .nutrition-menu-meal-v2 .nutrition-menu-photo.nutrition-meal-icon{
  box-shadow:none!important;
  border:1px solid #455363!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .nutrition-menu-meal-v2 .nutrition-meal-icon-breakfast{
  background:#233951!important;
  border-color:#385879!important;
  color:#89baff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .nutrition-menu-meal-v2 .nutrition-meal-icon-lunch{
  background:#203e35!important;
  border-color:#365f4f!important;
  color:#84d2ab!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .nutrition-menu-meal-v2 .nutrition-meal-icon-dinner{
  background:#403328!important;
  border-color:#665039!important;
  color:#e8ae71!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .nutrition-menu-meal-v2 .nutrition-meal-icon-snack{
  background:#332d46!important;
  border-color:#54466c!important;
  color:#bea1f4!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .nutrition-menu-meal-v2 .nutrition-meal-icon>svg{
  stroke:currentColor!important;
  fill:none!important;
  background:transparent!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .nutrition-menu-v2-layout,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .nutrition-menu-v2-copy{
  background:transparent!important;
  box-shadow:none!important;
}

/* Client progress — remove white metric/activity cards and inherited dark
   navy text on graphite. Each tile keeps its own subtle outline. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page :is(
  .trainer-progress-summary,.trainer-progress-activity-stats,
  .trainer-progress-pr-grid,.trainer-volume-muscles,
  .trainer-workout-calendar-grid,.trainer-workout-calendar-weekdays
){
  background:transparent!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page .trainer-progress-summary>div,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page .trainer-progress-activity-stats>div{
  background:#121b25!important;
  border:1px solid #424a56!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page .trainer-progress-summary :is(strong,b),
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page .trainer-progress-activity-stats :is(strong,b){
  color:#f0f3f8!important;
  -webkit-text-fill-color:#f0f3f8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page .trainer-progress-summary span,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page .trainer-progress-activity-stats span{
  color:#b2c0d1!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page .trainer-progress-summary small,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page .trainer-progress-activity-stats small{
  color:#a3b2c5!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page .trainer-progress-activity-list{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page .trainer-progress-activity-list>div{
  background:#121b25!important;
  border:1px solid #424a56!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page .trainer-progress-activity-list>div :is(strong,b){
  color:#edf2f8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page .trainer-progress-activity-list>div small{
  color:#a9b9ca!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page .trainer-progress-pr-grid{
  border:0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page .trainer-progress-pr-card{
  background:#202329!important;
  border:1px solid #3d4652!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page .trainer-progress-pr-card :is(strong,b){
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page .trainer-progress-pr-card small{
  color:#a7b4c6!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-page .trainer-progress-pr-card>span{
  background:#493826!important;
  border:1px solid #73552f!important;
  color:#ffcd83!important;
}

/* Training calendar / volume: no white arrows, count bubble, no painted bar
   behind "Без групи" / other volume muscle labels. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-title>span{
  background:#293d58!important;
  border-color:#49678a!important;
  color:#b8d8ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-nav{
  background:transparent!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-nav>button{
  background:#18232e!important;
  border-color:#495464!important;
  color:#d5e6ff!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-nav>strong{
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-calendar-day-volume>div{
  background:#121b25!important;
  border-color:#414957!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-calendar-day-volume strong,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-volume-head h3,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-volume-kpis strong{
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-volume-kpis>div{
  background:#121b25!important;
  border-color:#414957!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-volume-muscles-head span,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-volume-muscle-row strong{
  color:#edf2f8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-volume-muscle-row{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-volume-muscle-row>div{
  background:transparent!important;
  border:0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-volume-muscle-row span{
  color:#b2c1d3!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-volume-muscle-row>i{
  background:#343c48!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-volume-muscle-row>i>b{
  background:#4385f6!important;
}

/* v12 — separated home avatars + one optically centered SVG Back button.
   The Back control is shared across trainer client, library and Theme pages. */

/* The summary strip sits on blue gradient, so the dark perimeter outlines
   each pastel avatar instead of allowing adjacent pastel fills to merge. */
body.eplan-redesign.trainer-ui .trainer-home-page .trainer-hero-card .trainer-avatar-stack{
  display:flex!important;
  align-items:center!important;
  padding:2px 3px!important;
  isolation:isolate;
}
body.eplan-redesign.trainer-ui .trainer-home-page .trainer-hero-card .trainer-avatar-stack>.trainer-client-avatar{
  width:40px!important;
  height:40px!important;
  flex:0 0 40px!important;
  box-sizing:border-box!important;
  border:3px solid #163c70!important;
  border-radius:50%!important;
  box-shadow:0 0 0 1px rgba(238,246,255,.72)!important;
  margin-left:-3px!important;
}
body.eplan-redesign.trainer-ui .trainer-home-page .trainer-hero-card .trainer-avatar-stack>.trainer-client-avatar:first-child{
  margin-left:0!important;
}

/* Use a true SVG icon, not the typographic ‹ character with offset metrics. */
body.eplan-redesign.trainer-ui :is(
  .trainer-client-navline button.trainer-back-button,
  .trainer-theme-settings button.trainer-back-button
){
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 44px!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0!important;
  margin:0!important;
  box-sizing:border-box!important;
  border:1px solid #c8dbf0!important;
  border-radius:14px!important;
  background:#eaf2ff!important;
  color:#285f9b!important;
  box-shadow:none!important;
  font-size:0!important;
  line-height:0!important;
  text-indent:0!important;
  -webkit-tap-highlight-color:transparent;
}
body.eplan-redesign.trainer-ui :is(
  .trainer-client-navline button.trainer-back-button,
  .trainer-theme-settings button.trainer-back-button
)>.ui-icon{
  display:block!important;
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2.5!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
body.eplan-redesign.trainer-ui :is(
  .trainer-client-navline button.trainer-back-button,
  .trainer-theme-settings button.trainer-back-button
):focus-visible{
  outline:2px solid #7caff6!important;
  outline-offset:3px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-client-navline button.trainer-back-button,
  .trainer-theme-settings button.trainer-back-button
){
  background:#253d55!important;
  color:#b4d8ff!important;
  border-color:#3b5671!important;
}

/* v13 — new-client nutrition targets: the optional macro card was white in dark mode.
   Scope strictly to the trainer's add-client modal; leave light theme unchanged. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-new-client-modal .trainer-new-client-section{
  background:#121b25!important;
  color:#f2f6fc!important;
  border-color:#424b58!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-new-client-modal .trainer-new-client-section-head strong{
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-new-client-modal :is(
  .trainer-new-client-section-head span,
  .trainer-new-client-macros label>span
){
  color:#b6c4d5!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-new-client-modal .trainer-new-client-macros input{
  background:#121b25!important;
  color:#f2f6fc!important;
  border-color:#354353!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-new-client-modal .trainer-new-client-macros input::placeholder{
  color:#a9b8c9!important;
  opacity:1!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-new-client-modal .trainer-new-client-macros input:focus{
  border-color:#82b5ff!important;
  box-shadow:0 0 0 3px rgba(83,145,230,.2)!important;
}

/* v14 — Library taxonomy admin: dark muscle rows, forms and accessible iPhone status area.
   The light-theme rules in redesign.css intentionally remain untouched. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-admin-body{
  background:#121b25!important;
  color:#f2f6fc!important;
  border-top-color:#454c58!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-admin-section{
  background:transparent!important;
  color:#f2f6fc!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-admin-section-head{
  background:transparent!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-admin-section-head strong{
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-admin-section-head small{
  color:#a9b8ca!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-admin-section+.trainer-library-admin-section{
  border-top-color:#454c58!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-admin-form input{
  background:#121b25!important;
  border-color:#48515e!important;
  color:#f2f6fc!important;
  color-scheme:dark;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-admin-form input::placeholder{
  color:#a9b8ca!important;
  opacity:1;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-admin-form input:focus{
  border-color:#82b5ff!important;
  box-shadow:0 0 0 3px rgba(83,145,230,.2)!important;
  outline:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-muscle-admin-list>div{
  background:var(--trainer-dark-raised)!important;
  border:1px solid var(--trainer-dark-border)!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-muscle-admin-list>div>span{
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-muscle-admin-list>div>.library-delete-btn{
  display:grid!important;
  place-items:center!important;
  flex:0 0 36px!important;
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
  border:1px solid #674451!important;
  border-radius:11px!important;
  background:#39272e!important;
  color:#f1b5c0!important;
  box-shadow:none!important;
  font-size:22px!important;
  line-height:1!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-muscle-admin-list>div>.library-delete-btn:focus-visible{
  outline:2px solid #82b5ff!important;
  outline-offset:2px!important;
}


/* v15 — final trainer dark QA: exercise library editor, nutrition KPI icons
   and pending workout reviews. All overrides require trainer + explicit dark. */

/* Structural form wrappers must not paint square blue rectangles behind inputs. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page :is(
  .trainer-library-admin-form,
  .trainer-library-input-stack,
  .trainer-library-add-actions
){
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-input-stack input{
  background:#121b25!important;
  color:#f2f6fc!important;
  border-color:#495260!important;
  color-scheme:dark;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-input-stack input::placeholder{
  color:#a7b7c9!important;
  opacity:1!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .trainer-library-input-stack input:focus-visible{
  border-color:#83b7ff!important;
  box-shadow:0 0 0 3px #578ce83d!important;
  outline:none!important;
}

/* Both main and secondary muscle selectors in add/edit exercise forms. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-muscle-picker{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-muscle-picker>div{
  background:#2b3039!important;
  border-color:#454e5a!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-muscle-picker>div>strong{
  color:#e8edf5!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-check-grid label{
  background:#343a45!important;
  border-color:#505b6b!important;
  color:#dae4ef!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-check-grid label:has(input:checked){
  background:#293e58!important;
  border-color:#76a7ec!important;
  color:#d2e7ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-check-grid input[type="checkbox"]{
  background:#242b36!important;
  border:1px solid #7890aa!important;
  accent-color:#4386ee!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-check-grid input[type="checkbox"]:checked{
  background:#4386ee!important;
  border-color:#4386ee!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-library-page .library-check-grid input[type="checkbox"]:checked::after{
  color:#fff!important;
}

/* KPI glyphs on the trainer's nutrition overview, not the client diary. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-page .trainer-nutrition-summary .trainer-stat-icon.green{
  background:#233d31!important;
  color:#80d4a4!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-page .trainer-nutrition-summary .trainer-stat-icon.orange{
  background:#463626!important;
  color:#f1b777!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-nutrition-page .trainer-nutrition-summary .trainer-stat-icon.blue{
  background:#293d5a!important;
  color:#9fc5ff!important;
}

/* Pending workout cards have their own legacy !important white backgrounds;
   darkening the queue alone cannot reach the toggle, badges or buttons. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-card{
  background:#0b0f14!important;
  border-color:#424751!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-toggle{
  background:#121b25!important;
  color:#f2f6fc!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-main strong{
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-main small{
  color:#bac7d9!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-duration{
  background:#333c49!important;
  color:#d6e3f2!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-badge{
  background:#263c52!important;
  color:#b5d8ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-arrow{
  color:#b1c1d1!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-detail{
  background:#242830!important;
  color:#e6edf5!important;
  border-top-color:#434b58!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-exercise{
  background:#121b25!important;
  border-color:#354353!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-exercise-head strong,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-sets b{
  color:#f0f4fa!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-exercise-head span,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-sets :is(small,em){
  color:#a6b6c9!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-sets>div{
  background:#2e333c!important;
  border-color:#354353!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-aux,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-client-comment{
  background:#121b25!important;
  border-color:#455568!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-client-comment p{
  color:#e9f2fb!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-aux span,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-drop-list>div{
  background:#333c47!important;
  color:#e5eef7!important;
  border-color:#536174!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-drop-list strong{
  color:#e6eff8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-comment>span{
  color:#cedaea!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-comment>span small{
  color:#a7b6c8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-comment textarea{
  background:#121b25!important;
  color:#f2f6fc!important;
  border-color:#495260!important;
  color-scheme:dark;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-comment textarea::placeholder{
  color:#9fb0c4!important;
  opacity:1!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-actions{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-actions button{
  background:#294669!important;
  color:#cbe2ff!important;
  border-color:#4c719d!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-actions button.dark{
  background:#333943!important;
  color:#d9e2ef!important;
  border-color:#4b5563!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-actions button:focus-visible,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-toggle:focus-visible{
  outline:2px solid #82b5ff!important;
  outline-offset:2px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #trainerPendingReviewQueue .trainer-review-queue-head>span{
  background:#463326!important;
  color:#f5bd80!important;
}


/* v16 — Native iPhone safe area, no fixed overlay that hides scrolled content.
   The trainer shell already controls its spacing in redesign.css. Only extend
   that spacing by the reported inset when the PWA is installed; never force
   a 44px fixed pseudo-element across screens. */
@media (max-width:700px) and (display-mode:standalone){
  body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-shell{
    padding-top:calc(8px + env(safe-area-inset-top, 0px))!important;
  }
}


/* v19 — raised trainer nav 10px above the previous offset.
   Preserve the slim concept 3 bar, iPhone safe-area and tap targets. */


body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-bottom-nav button>span{
  font-size:10.5px!important;
  line-height:1.1!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-bottom-nav .trainer-nav-icon{
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
  stroke-width:1.85!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-bottom-nav .trainer-nav-leaf{
  fill:#55c27a!important;
  stroke:#55c27a!important;
  stroke-width:1.3!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-bottom-nav button.active .trainer-nav-leaf{
  fill:#7cde9d!important;
  stroke:#7cde9d!important;
}


/* v21 — trainer theme screen uses exactly the library back-button layout:
   back row above the title, never beside it. In both light and dark modes. */
body.eplan-redesign.trainer-ui .trainer-more-page.modern.trainer-theme-settings{
  display:block!important;
}
body.eplan-redesign.trainer-ui .trainer-theme-settings .trainer-client-navline{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  margin-bottom:10px!important;
}
body.eplan-redesign.trainer-ui .trainer-theme-settings .trainer-page-title{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  margin:4px 0 12px!important;
}
body.eplan-redesign.trainer-ui .trainer-theme-settings .trainer-page-title h1{
  margin:0!important;
  font-size:30px!important;
  line-height:1.05!important;
  letter-spacing:-.02em!important;
}
body.eplan-redesign.trainer-ui .trainer-theme-settings .trainer-page-sub{
  margin:5px 0 0!important;
  font-size:12px;
}


/* v22 — trainer progress calendar: selected date and contrast, no rectangular
   inherited paint around the session exercises. Dark trainer only. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-cell.selected,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-cell.has-workout.selected{
  background:#3267a3!important;
  border:2px solid #8fc3ff!important;
  color:#fff!important;
  box-shadow:0 0 0 2px rgba(84,150,229,.27)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-cell.selected i{
  background:#fff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-cell:not(.selected):not(.has-workout):not(.empty){
  color:#ccd6e3!important;
  background:#121b25!important;
  border-color:#393f4a!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-cell:focus-visible{
  outline:2px solid #91c5ff!important;
  outline-offset:2px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-session{
  background:#1d2026!important;
  border-color:#354353!important;
  border-radius:18px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-sessions{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-session-head>div:first-child strong{
  color:#f2f5fa!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-session-head>div:first-child span{
  color:#aab9ca!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-exercise{
  background:#121b25!important;
  border:1px solid #424a56!important;
  border-radius:15px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-exercise-head strong,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-sets b{
  color:#f3f5fa!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-exercise-head span,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-sets :is(small,em){
  color:#a7b5c8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-sets>div{
  background:#2e333c!important;
  border-color:#414954!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-status.reviewed{
  background:#213f34!important;
  color:#95e4bd!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-status.pending{
  background:#453526!important;
  color:#f8c188!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-day-head strong{
  color:#f2f5fa!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-empty{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:5px!important;
  background:#222b36!important;
  border-color:#4a6078!important;
  color:#bdcee2!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-empty strong{
  color:#f2f5fa!important;
}


/* v23 — trainer read-only actual calorie/macros per day, both themes. */
body.eplan-redesign.trainer-ui .trainer-actual-diary{
  margin:12px 0!important;
  padding:18px!important;
  border-radius:20px!important;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-head small{
  display:block;color:#7c91ac;font-size:10px;font-weight:850;letter-spacing:.055em;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-head h3{
  margin:5px 0;color:inherit;font-size:20px;font-weight:850;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-head p{
  margin:0;color:#7d8da3;font-size:12px;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-date{
  display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:end;
  gap:9px;margin:16px 0 12px;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-date>button{
  width:42px;height:46px;border-radius:12px;padding:0!important;
  font-size:25px;font-weight:750;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-date>button:disabled{
  opacity:.4;cursor:default;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-date label{
  display:grid;gap:4px;min-width:0;font-size:11px;color:#7b8da6;font-weight:750;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-date input{
  width:100%!important;min-width:0!important;height:46px!important;
  border-radius:12px!important;margin:0!important;padding:0 10px!important;
  font-size:15px!important;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-source{
  margin-bottom:9px;font-size:11px;font-weight:800;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-metrics{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-metrics>div{
  padding:12px;border:1px solid #dce5ef;border-radius:14px;
  background:#f6f9fc;min-width:0;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-metrics span,
body.eplan-redesign.trainer-ui .trainer-actual-diary-metrics small{
  display:block;font-size:11px;color:#71829b;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-metrics strong{
  display:block;font-size:22px;margin:4px 0;color:#122645;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-meals{
  display:grid;gap:8px;margin-top:14px;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-meal{
  padding:12px;border:1px solid #dce5ef;border-radius:14px;background:#f6f9fc;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-meal>strong{
  display:block;margin-bottom:7px;font-size:13px;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-meal>div{
  display:flex;align-items:center;justify-content:space-between;gap:9px;
  padding:6px 0;font-size:12px;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-meal>div+div{border-top:1px solid #dce5ef}
body.eplan-redesign.trainer-ui .trainer-actual-diary-meal>div>span{
  flex:1;min-width:0;overflow-wrap:anywhere;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-meal small{
  display:block;margin-top:2px;font-size:11px;color:#7589a0;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-meal b{
  white-space:nowrap;font-size:11px;
}
body.eplan-redesign.trainer-ui .trainer-actual-diary-no-data{
  margin:12px 0 0;color:#7388a0;font-size:12px;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-actual-diary{
  background:#1d2026!important;border-color:#354353!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-actual-diary-head small,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-actual-diary-source{
  color:#a8c8ed!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-actual-diary-head h3{
  color:#f3f6fb!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-actual-diary-head p,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-actual-diary-date label,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-actual-diary-metrics span,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-actual-diary-metrics small,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-actual-diary-meal small,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-actual-diary-no-data{
  color:#b0bfd0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-actual-diary-metrics>div,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-actual-diary-meal{
  background:#121b25!important;border-color:#454d5a!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-actual-diary-metrics strong,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-actual-diary-meal>strong,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-actual-diary-meal b,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-actual-diary-meal>div>span{
  color:#f1f5fa!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-actual-diary-meal>div+div{
  border-top-color:#444e5a!important;
}


/* v24 — follow-up dark trainer polish: soft selected date, legible comment,
   graphite empty states, no rectangular volume backdrop, matched nutrition
   macro accents, and stable compact date arrows. Light styling isolated. */

/* Date arrows must never inherit legacy primary/yellow button paint. */
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary-date{
  grid-template-columns:44px minmax(0,1fr) 44px!important;
  gap:10px!important;
}
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary-date>button{
  box-sizing:border-box!important;
  display:grid!important;
  place-items:center!important;
  min-width:44px!important;
  max-width:44px!important;
  width:44px!important;
  height:46px!important;
  min-height:46px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid #c6d7ee!important;
  border-radius:13px!important;
  background:#e7eef8!important;
  color:#345c88!important;
  font-size:25px!important;
  line-height:1!important;
  font-weight:750!important;
  box-shadow:none!important;
  flex:none!important;
  -webkit-appearance:none;
  appearance:none;
}
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary-date>button:disabled{
  opacity:.46!important;
  cursor:default!important;
}
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary-date>button:focus-visible{
  outline:2px solid #6897d6!important;
  outline-offset:2px!important;
}
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary-date label,
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary-date input{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary-date input{
  overflow:hidden!important;
  background:#f4f7fb!important;
  border-color:#c9d7e7!important;
  color:#264667!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #nutrition .trainer-actual-diary-date>button{
  background:#2b3b4d!important;
  border-color:#475c74!important;
  color:#bfd8f2!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #nutrition .trainer-actual-diary-date input{
  background:#121b25!important;
  border-color:#46505f!important;
  color:#edf3fa!important;
  color-scheme:dark!important;
}

/* Quiet selected date: the same graphite/steel-blue family as the active tabs. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-cell.selected,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-cell.has-workout.selected{
  background:#30435c!important;
  border:1.5px solid #7491b6!important;
  color:#ecf2fc!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-cell.selected i{
  background:#9ebfe8!important;
}

/* The older light empty-component styling must not leak into dark progress. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-empty{
  background:var(--trainer-dark-raised)!important;
  border:1px dashed var(--trainer-dark-border)!important;
  color:var(--trainer-dark-muted)!important;
  box-shadow:none!important;
}

body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-volume-panel .trainer-progress-empty.compact{
  background:#121b25!important;
  border:1px dashed #495564!important;
  border-radius:14px!important;
  color:#b9c5d3!important;
  padding:13px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-volume-panel .trainer-progress-empty.compact :is(strong,span){
  color:#c8d5e5!important;
}

/* Remove the solid tinted rectangular strip behind daily volume/work sets. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-calendar-day-volume,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-volume-kpis,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-details{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-calendar-day-volume>div,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-volume-kpis>div{
  background:#121b25!important;
  border:1px solid #424956!important;
  border-radius:15px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-calendar-day-volume small,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-volume-kpis span{
  color:#a9b7c8!important;
}

/* Green comment card: keep accent but never dark-green-on-dark-green text. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-comment{
  background:#22372f!important;
  border:1px solid #416753!important;
  border-radius:15px!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-comment small{
  color:#a2ddbc!important;
  font-size:11px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-comment p{
  color:#edf8f1!important;
  font-size:13px!important;
  line-height:1.5!important;
}

/* Preserve a comfortable offset for automatic scroll to selected details
   without resurrecting the old fixed status-bar strip. */
body.eplan-redesign.trainer-ui #progress .trainer-workout-calendar-details,
body.eplan-redesign.trainer-ui #progress .trainer-workout-calendar-card,
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary{
  scroll-margin-top:calc(52px + env(safe-area-inset-top, 0px))!important;
}

/* Same calorie/protein/fat/carbs palette as the client nutrition interface.
   Dark: colored edge + tinted graphite, high-contrast values. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #nutrition .trainer-nutrition-target-summary>div{
  border-radius:15px!important;
  border:1px solid #404956!important;
  border-top-width:3px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #nutrition .trainer-nutrition-target-summary .kcal{
  background:#293544!important;
  border-top-color:#85aad6!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #nutrition .trainer-nutrition-target-summary .protein{
  background:#263648!important;
  border-top-color:#72afff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #nutrition .trainer-nutrition-target-summary .fat{
  background:#3a332a!important;
  border-top-color:#e9b461!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #nutrition .trainer-nutrition-target-summary .carbs{
  background:#28392f!important;
  border-top-color:#78c79b!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #nutrition .trainer-nutrition-target-summary :is(.kcal,.protein,.fat,.carbs) strong{
  color:#f2f5fa!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #nutrition .trainer-nutrition-target-summary .kcal>span{color:#b4cceb!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #nutrition .trainer-nutrition-target-summary .protein>span{color:#a5cdff!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #nutrition .trainer-nutrition-target-summary .fat>span{color:#f3c98c!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #nutrition .trainer-nutrition-target-summary .carbs>span{color:#a0dbb6!important}

/* Mirror those accents for the fact vs target figures. */
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary-metrics>div:nth-child(1){border-top:3px solid #85aad6!important}
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary-metrics>div:nth-child(2){border-top:3px solid #72afff!important}
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary-metrics>div:nth-child(3){border-top:3px solid #e9b461!important}
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary-metrics>div:nth-child(4){border-top:3px solid #78c79b!important}
body.eplan-redesign.trainer-ui:not([data-eplan-theme="dark"]) #nutrition .trainer-nutrition-target-summary .protein>span{color:#386bb4!important}
body.eplan-redesign.trainer-ui:not([data-eplan-theme="dark"]) #nutrition .trainer-nutrition-target-summary .fat>span{color:#9c671f!important}
body.eplan-redesign.trainer-ui:not([data-eplan-theme="dark"]) #nutrition .trainer-nutrition-target-summary .carbs>span{color:#2e8050!important}

/* v25 — iOS date picker in actual client nutrition can render its native
   long Ukrainian date over the next-day arrow. Render a bounded text layer
   and keep the real date input transparent/on top so tapping still opens
   the native picker. Applies in BOTH trainer themes. */
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary-date{
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) 44px!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
  align-items:end!important;
}
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary-date>button{
  position:relative!important;
  z-index:1!important;
}
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary-date>label{
  position:relative!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:4px!important;
  box-sizing:border-box!important;
}
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary-date-display{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  height:46px!important;
  padding:0 8px!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  border:1px solid #c9d7e7!important;
  border-radius:13px!important;
  background:#f4f7fb!important;
  color:#264667!important;
  font-size:15px!important;
  font-weight:650!important;
  font-variant-numeric:tabular-nums!important;
  box-sizing:border-box!important;
  pointer-events:none!important;
}
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary-date input[type="date"]{
  display:block!important;
  position:absolute!important;
  inset:auto 0 0 0!important;
  z-index:2!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:46px!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
  -webkit-appearance:none!important;
  appearance:none!important;
}
body.eplan-redesign.trainer-ui #nutrition .trainer-actual-diary-date>label:focus-within .trainer-actual-diary-date-display{
  outline:2px solid #6897d6!important;
  outline-offset:-2px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #nutrition .trainer-actual-diary-date-display{
  background:#121b25!important;
  border-color:#46505f!important;
  color:#edf3fa!important;
}


/* v26 — black canvas for trainer dark mode only; preserve graphite content
   cards, overlays, buttons, navigation, light mode and all client views. */
html:has(> body.eplan-redesign.trainer-ui[data-eplan-theme="dark"]){
  background-color:#000000!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"]{
  
  --bg:#000000;
  background-color:#000000!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  #app,.wrap.trainer-shell,
  .trainer-home-page,.trainer-clients-page,.trainer-client-page,
  .trainer-programs-page,.trainer-nutrition-page,.trainer-more-page,
  .trainer-library-page,.trainer-progress-page,.trainer-measurements-page,
  .trainer-checkins-page,.trainer-public-profile-page,.trainer-theme-settings
){
  background-color:#000000!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-shell>.trainer-top{
  background-color:transparent!important;
}


/* v27 — quiet curved-glass / fisheye edge on trainer dark cards.
   Keep the black page canvas and existing graphite/semantic fill colors.
   Radial light stays on the painted card surface; no filters, pseudo-elements,
   animations or geometry changes that could distort content or intercept taps. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .card,
  .trainer-home-stats>button,
  .trainer-client-row,
  .trainer-activity-card,
  .trainer-template-card,
  .trainer-library-group,
  .trainer-library-admin,
  .trainer-nutrition-target-card,
  .trainer-saved-plan,
  .trainer-actual-diary,
  .trainer-workout-calendar-card,
  .trainer-workout-calendar-session,
  .trainer-progress-section,
  .trainer-checkin-card,
  .trainer-measurements-page .measurement-place-card,
  .trainer-measurements-page .measurement-history-card,
  .trainer-client-page .trainer-program-root .trainer-program-day-card
){
  background-image:
    radial-gradient(ellipse 115% 70% at 38% -24%,rgba(225,240,255,.072) 0%,transparent 65%),
    radial-gradient(ellipse 88% 72% at 110% 110%,rgba(115,159,220,.042) 0%,transparent 68%)!important;
  box-shadow:
    inset 0 1px 0 rgba(245,250,255,.10),
    inset 1px 0 0 rgba(174,208,244,.023),
    inset -1px 0 0 rgba(174,208,244,.027),
    0 7px 18px rgba(0,0,0,.16)!important;
}
/* Modern More list cards have a more-specific legacy reset. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-more-page .trainer-more-list.modern .trainer-more-item{
  background-image:
    radial-gradient(ellipse 115% 70% at 38% -24%,rgba(225,240,255,.072) 0%,transparent 65%),
    radial-gradient(ellipse 88% 72% at 110% 110%,rgba(115,159,220,.042) 0%,transparent 68%)!important;
  box-shadow:inset 0 1px 0 rgba(245,250,255,.10),0 7px 18px rgba(0,0,0,.16)!important;
}
/* Retain the branded blue hero with a tiny curved reflection (no neon rim). */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-hero-card{
  background-image:
    radial-gradient(ellipse 105% 73% at 72% -20%,rgba(255,255,255,.085) 0%,transparent 66%),
    radial-gradient(ellipse 75% 85% at 111% 108%,rgba(120,178,255,.065) 0%,transparent 68%),
    linear-gradient(135deg,#0c3865 0%,#0c4e8a 62%,#1466b3 100%)!important;
  box-shadow:inset 0 1px 0 rgba(250,252,255,.16),0 8px 20px rgba(0,0,0,.17)!important;
}


/* v29 — trainer premium-contrast palette (COLORS ONLY).
   Keep all existing layout, icons, interactions, black canvas and subtle v27
   reflections. Nothing here applies to client UI or trainer light mode. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"]{
  
  
  
  
  
  
  
  --bg:#000000;
  --card:var(--trainer-dark-surface);
  --card2:var(--trainer-dark-raised);
  --line:var(--trainer-dark-border);
  --text:var(--trainer-dark-text);
  --muted:var(--trainer-dark-muted);
}
/* Black is a page color, NOT the content card color. Preserve v27 reflection
   background-image and use only background-color for graphite cards. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .card,.trainer-home-stats>button,.trainer-client-row,
  .trainer-activity-row,.trainer-activity-card,
  .trainer-nutrition-summary>div,.trainer-nutrition-row,
  .trainer-template-card,.trainer-library-group,.trainer-library-admin,
  .trainer-library-summary>div,.trainer-library-exercise,
  .trainer-program-empty,.trainer-assigned-row,.trainer-saved-plan,
  .trainer-review-card,.trainer-checkin-card,
  .trainer-progress-section,.trainer-workout-calendar-card,
  .trainer-measurements-page .measurement-place-card,
  .trainer-measurements-page .measurement-history-card
){
  background-color:#0b0f14!important;
  border-color:#354353!important;
}
/* Higher-specificity legacy paint for these lists needs a corresponding rule. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-home-page .trainer-client-row,
  .trainer-clients-page .trainer-client-row,
  .trainer-home-page .trainer-activity-row,
  .trainer-library-page .trainer-library-summary>div,
  .trainer-more-page .trainer-more-list.modern .trainer-more-item,
  .trainer-nutrition-page .trainer-nutrition-summary>div,
  .trainer-client-page .trainer-program-root .trainer-program-day-card
){
  background-color:#0b0f14!important;
  border-color:#354353!important;
}
/* Extra depth is achieved with colored surfaces, not extra glow or geometry. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-search,.trainer-segmented,.trainer-programs-segmented,.trainer-client-tabs,
  .trainer-program-tabs,.trainer-progress-periods,.trainer-volume-tabs,
  .trainer-ration-tabs,.trainer-saved-ration-tabs,.trainer-template-editor-top
){
  background-color:#121b25!important;
  border-color:#354353!important;
}
/* Brighter blue hero: keep its existing very quiet glass reflection. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-hero-card{
  background-image:
    radial-gradient(ellipse 105% 73% at 72% -20%,rgba(255,255,255,.085) 0%,transparent 66%),
    radial-gradient(ellipse 75% 85% at 111% 108%,rgba(120,178,255,.065) 0%,transparent 68%),
    linear-gradient(132deg,#123e7a 0%,#204f92 55%,#2d63b3 100%)!important;
  border-color:#4779b7!important;
  color:#f4f7fb!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-hero-card :is(strong,small),
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-home-stats>button strong{
  color:#f4f7fb!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-home-stats>button small,.trainer-client-copy em,
  .trainer-more-copy small,.trainer-nutrition-copy small,
  .trainer-page-sub,.trainer-top span
){
  color:#a9b9ca!important;
}
/* Clean vivid action/selection blue, without any change in sizes or position. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-home-stats>button em,
  .trainer-home-section-head>button
){
  color:#4a86ff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-hero-card .more-chevron{
  color:#f4f7fb!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-round-add,.trainer-page-title button,
  .trainer-library-add,.trainer-program-add
){
  background-color:#24549a!important;
  border-color:#417bce!important;
  color:#f4f7fb!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-filter-chips button,.trainer-client-tabs button,
  .trainer-program-tabs button,.trainer-segmented button,
  .trainer-programs-segmented button,.trainer-progress-periods button,.trainer-volume-tabs button,
  .trainer-ration-tabs button,.trainer-saved-ration-tabs button
).active{
  background-color:#2859a1!important;
  color:#f4f7fb!important;
  border-color:#417bce!important;
}
/* Icon tiles keep their semantic meaning, but are no longer washed-out. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-home-stats .trainer-stat-icon.orange,
  .trainer-nutrition-page .trainer-nutrition-summary .trainer-stat-icon.orange
){background-color:#58351d!important;color:#ffb672!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-home-stats .trainer-stat-icon.green,
  .trainer-nutrition-page .trainer-nutrition-summary .trainer-stat-icon.green
){background-color:#17472e!important;color:#6bebaa!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-home-stats .trainer-stat-icon.blue,
  .trainer-nutrition-page .trainer-nutrition-summary .trainer-stat-icon.blue
){background-color:#21477f!important;color:#9ec5ff!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-more-page .trainer-more-list.modern .trainer-more-item:nth-child(1) .trainer-more-icon{
  background-color:#1853a0!important;color:#d5eaff!important;border-color:#326cba!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-more-page .trainer-more-list.modern .trainer-more-item:nth-child(2) .trainer-more-icon{
  background-color:#145e40!important;color:#9df5c4!important;border-color:#2a7859!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-more-page .trainer-more-list.modern .trainer-more-item:nth-child(3) .trainer-more-icon{
  background-color:#51307b!important;color:#e1bcff!important;border-color:#72529c!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-more-page .trainer-more-list.modern .trainer-more-item:nth-child(4) .trainer-more-icon{
  background-color:#7e411f!important;color:#ffd5a9!important;border-color:#a36137!important;
}
/* Semantic status badges: improve contrast without reclassifying clients. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(.trainer-smart-status.training,.trainer-smart-status.ok){
  background-color:#17472e!important;color:#85e8ae!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(.trainer-smart-status.attention,.trainer-nutrition-status.warn){
  background-color:#48311d!important;color:#f4bb72!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-smart-status.risk{
  background-color:#4b2632!important;color:#ff9fac!important;
}
/* Floating nav and quiet glass stay the same shape, but with clearer contrast. */

body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-bottom-nav button:not(.active){
  color:#c0cbda!important;
}

body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-bottom-nav button.active :is(span,svg){
  color:#e1efff!important;
}
/* Trainer program overview stylesheet is loaded later: theme-scoped tokens
   carry the same new palette into its existing cards without changing layout. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-program-root{
  --tpo-panel:#171c24;
  --tpo-raised:#1c2330;
  --tpo-text:#f4f7fb;
  --tpo-muted:#b7c0cf;
  --tpo-border:#354353;
  --tpo-blue:#93baff;
  --tpo-blue-surface:#243b63;
  --tpo-blue-border:#417bce;
}


/* v30 — trainer dark mirrors the existing LIGHT style in a calm neutral palette.
   Only visual color/shadow/background paint changes; no behavioral or structural
   styles are added. Preserve black canvas and semantic nutrition/status colors. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"]{
  
  
  
  
  
  
  
  --bg:#000000;
  --card:var(--trainer-dark-surface);
  --card2:var(--trainer-dark-raised);
  --line:var(--trainer-dark-border);
  --text:var(--trainer-dark-text);
  --muted:var(--trainer-dark-muted);
  background-color:#000000!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  #app,.wrap.trainer-shell,.trainer-home-page,.trainer-clients-page,
  .trainer-client-page,.trainer-programs-page,.trainer-nutrition-page,
  .trainer-more-page,.trainer-library-page,.trainer-progress-page,
  .trainer-measurements-page,.trainer-checkins-page,
  .trainer-public-profile-page,.trainer-theme-settings
){background-color:#000000!important}
/* Primary cards: same modest edges as the white theme, with no lens/glass. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .card,.trainer-home-stats>button,.trainer-client-row,.trainer-activity-row,
  .trainer-template-card,.trainer-program-empty,.trainer-template-editor-card,
  .trainer-library-summary>div,.trainer-library-group,.trainer-library-admin,
  .trainer-library-exercise,.trainer-nutrition-summary>div,
  .trainer-nutrition-target-card,.trainer-nutrition-current,
  .trainer-nutrition-calc-card,.trainer-nutrition-row,.trainer-assigned-row,
  .trainer-saved-plan,.trainer-saved-legacy,.trainer-assigned-meal,
  .trainer-review-card,.trainer-review-queue,
  .trainer-checkin-card,.trainer-checkin-history-item,
  .trainer-overview-card,.trainer-profile-card,.trainer-private-note,
  .trainer-progress-section,.trainer-progress-hero,.trainer-progress-pr-card,
  .trainer-workout-calendar-card,.trainer-workout-calendar-session,
  .trainer-actual-diary,.trainer-food-review-panel,.trainer-food-review-row,
  .trainer-measurements-page .measurement-place-card,
  .trainer-measurements-page .measurement-history-card,
  .trainer-public-profile-editor .trainer-profile-collapsed,
  .trainer-public-profile-editor .trainer-profile-editor-preview,
  .trainer-public-profile-editor .trainer-profile-editor-form
){
  background-color:#0b0f14!important;
  background-image:none!important;
  border-color:#354353!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 3px 12px rgba(0,0,0,.10)!important;
}
/* High-specificity former QA rules for real iPhone subviews. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-home-page .trainer-client-row,
  .trainer-clients-page .trainer-client-row,
  .trainer-home-page .trainer-activity-row,
  .trainer-more-page .trainer-more-list.modern .trainer-more-item,
  .trainer-library-page .trainer-library-summary>div,
  .trainer-library-page .trainer-library-group,
  .trainer-library-page .trainer-library-admin,
  .trainer-library-page .trainer-library-exercise,
  .trainer-nutrition-page .trainer-nutrition-summary>div,
  .trainer-client-page .trainer-program-root .trainer-program-overview-head,
  .trainer-client-page .trainer-program-root .trainer-program-overview-card,
  .trainer-client-page .trainer-program-root .trainer-program-day-card,
  #trainerPendingReviewQueue .trainer-review-card,
  #progress .trainer-workout-calendar-card,
  #progress .trainer-workout-calendar-session,
  #nutrition .trainer-actual-diary
){
  background-color:#0b0f14!important;
  background-image:none!important;
  border-color:#354353!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 3px 12px rgba(0,0,0,.10)!important;
}
/* List wrappers never become accidental large rectangular cards. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-home-page .trainer-activity-card,
  .trainer-more-page .trainer-more-list,
  #progress .trainer-progress-summary,
  #progress .trainer-progress-activity-list,
  #progress .trainer-progress-pr-grid,
  #progress .trainer-calendar-day-volume,
  #progress .trainer-volume-kpis
){
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
/* Nested exercise, calendar, menu and form surfaces. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-client-kpis>div,.trainer-checkin-grid span,
  .trainer-template-editor-item,.trainer-template-editor-day,
  .trainer-library-admin-body,.trainer-library-admin-section,
  .trainer-library-page .library-muscle-admin-list>div,
  .trainer-library-page .library-muscle-picker>div,
  .trainer-library-page .library-check-grid label,
  .trainer-progress-summary>div,.trainer-progress-activity-stats>div,
  .trainer-progress-activity-list>div,.trainer-calendar-day-volume>div,
  .trainer-volume-kpis>div,.trainer-actual-diary-metrics>div,
  .trainer-actual-diary-meal,.trainer-workout-calendar-exercises .trainer-review-exercise,
  .trainer-workout-calendar-exercises .trainer-review-sets>div,
  .structured-food-row,.trainer-saved-plan-actions button
){
  background-color:#121b25!important;
  background-image:none!important;
  border-color:#354353!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  #progress .trainer-progress-summary>div,
  #progress .trainer-progress-activity-stats>div,
  #progress .trainer-progress-activity-list>div,
  #progress .trainer-progress-pr-card,
  #progress .trainer-calendar-day-volume>div,
  #progress .trainer-volume-kpis>div,
  #progress .trainer-workout-calendar-exercises .trainer-review-exercise,
  #progress .trainer-workout-calendar-exercises .trainer-review-sets>div,
  #nutrition .trainer-actual-diary-metrics>div,
  #nutrition .trainer-actual-diary-meal,
  #trainerPendingReviewQueue .trainer-review-exercise,
  #trainerPendingReviewQueue .trainer-review-sets>div
){
  background-color:#121b25!important;
  background-image:none!important;
  border-color:#354353!important;
}
/* Branded primary hero matches the original light blue gradient. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-hero-card{
  background:linear-gradient(135deg,#205da9 0%,#367bce 100%)!important;
  background-image:linear-gradient(135deg,#205da9 0%,#367bce 100%)!important;
  color:#f8fbff!important;
  border-color:#4685d5!important;
  box-shadow:0 5px 16px rgba(0,0,0,.14)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-hero-card :is(strong,small,.more-chevron){
  color:#f8fbff!important;
}
/* Light-mode icon color relationships, mapped to dark pastel chips. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-home-stats .trainer-stat-icon.orange,
  .trainer-nutrition-page .trainer-nutrition-summary .trainer-stat-icon.orange
){background-color:#3b2d23!important;color:#f3b781!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-home-stats .trainer-stat-icon.green,
  .trainer-nutrition-page .trainer-nutrition-summary .trainer-stat-icon.green
){background-color:#233a2d!important;color:#90dcb0!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-home-stats .trainer-stat-icon.blue,
  .trainer-nutrition-page .trainer-nutrition-summary .trainer-stat-icon.blue
){background-color:#293b56!important;color:#a0c7ff!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-more-page .trainer-more-list.modern :is(
  .trainer-more-item:nth-child(1),.trainer-more-item:nth-child(2),
  .trainer-more-item:nth-child(3),.trainer-more-item:nth-child(4)
) .trainer-more-icon{
  background-color:#293b56!important;
  color:#a0c7ff!important;
  border-color:#415471!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-library-add,.trainer-program-empty-icon,.trainer-template-icon,
  .trainer-page-title button,.trainer-round-add,
  .trainer-top .notify-btn,.trainer-client-navline button
){background-color:#293747!important;border-color:#435165!important;color:#bbd8ff!important}
/* Bottom navigation remains the identical component from the white theme. */

body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-bottom-nav button:not(.active){
  background-color:transparent!important;color:#b8c0cd!important;
}

body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-bottom-nav button.active :is(span,svg){color:#a8cbff!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-filter-chips button,.trainer-client-tabs button,
  .trainer-program-tabs button,.trainer-segmented button,
  .trainer-programs-segmented button,.trainer-progress-periods button,.trainer-volume-tabs button,
  .trainer-ration-tabs button,.trainer-saved-ration-tabs button
).active{background-color:#2b4364!important;color:#d9e9ff!important;border-color:#466085!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-search,.trainer-segmented,.trainer-client-tabs,.trainer-program-tabs,
  .trainer-progress-periods,.trainer-volume-tabs,
  .trainer-ration-tabs,.trainer-saved-ration-tabs,.trainer-template-editor-top
){background-color:#121b25!important;border-color:#354353!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  input:not([type="checkbox"]):not([type="radio"]),textarea,select
){background-color:#121b25!important;border-color:#354353!important;color:#f2f6fc!important;-webkit-text-fill-color:#f5f6f8}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(input,textarea)::placeholder{
  color:#9faab9!important;-webkit-text-fill-color:#9faab9!important;
}
/* A later program overview CSS file consumes these theme-specific values. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-program-root{
  --tpo-panel:#1d2025;
  --tpo-raised:#292d34;
  --tpo-text:#f5f6f8;
  --tpo-muted:#b6bdc8;
  --tpo-border:#354353;
  --tpo-blue:#81b5ff;
  --tpo-blue-surface:#2b4364;
  --tpo-blue-border:#466085;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-home-stats>button small,.trainer-more-copy small,
  .trainer-client-copy em,.trainer-nutrition-copy small,
  .trainer-page-sub,.trainer-top span
){color:#b6bdc8!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-home-stats>button em,.trainer-home-section-head>button,
  .trainer-page-title a
){color:#79adf7!important}


/* v31 — high-specificity dark trainer editor/library/nutrition detail QA.
   Keeps the same neutral paint across modal surfaces that still had old color
   overrides. Maintain selection indicators, semantic states and original layout. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  #programTemplateEditorModal .trainer-template-editor-card,
  #programTemplateEditorModal .trainer-template-editor-item,
  .trainer-new-client-modal .trainer-new-client-section,
  .trainer-client-page .trainer-program-editor,
  .trainer-client-page #profile>.card,
  .trainer-client-page #nutrition .trainer-saved-plan,
  .trainer-public-profile-editor .trainer-public-profile-card
){
  background-color:#0b0f14!important;
  background-image:none!important;
  border-color:#354353!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  #programTemplateEditorModal .trainer-template-editor-item,
  #programTemplateEditorModal .trainer-template-editor-day,
  #programTemplateEditorModal .trainer-template-editor-meta,
  .trainer-library-page .trainer-library-admin-body,
  .trainer-library-page .library-muscle-admin-list>div,
  .trainer-library-page .trainer-library-group-toggle,
  .trainer-library-page .trainer-library-filter-chip,
  .trainer-public-profile-editor .trainer-profile-collapsed-stats>div,
  .trainer-new-client-modal .trainer-new-client-macros,
  .trainer-client-page #nutrition .structured-daily-grid>span,
  .trainer-client-page #nutrition .structured-meal-summary
){
  background-color:#121b25!important;
  background-image:none!important;
  border-color:#354353!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  #programTemplateEditorModal .trainer-template-editor-grid input,
  #programTemplateEditorModal .trainer-template-editor-meta input,
  .trainer-library-page .trainer-library-admin-form input,
  .trainer-library-page .trainer-library-input-stack input,
  .trainer-client-page #nutrition .structured-food-details input
){
  background-color:#121b25!important;
  border-color:#354353!important;
  color:#f2f6fc!important;
  -webkit-text-fill-color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #programTemplateEditorModal .trainer-template-editor-actions{
  background-color:rgba(29,32,37,.96)!important;
  border-color:#354353!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #nutrition .trainer-actual-diary-date-display{
  background-color:#121b25!important;
  border-color:#354353!important;
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-public-profile-editor .trainer-profile-form-head strong,
  .trainer-library-page .trainer-library-admin-section-head strong,
  .trainer-client-page .trainer-program-editor strong,
  #trainerPendingReviewQueue .trainer-review-main strong
){color:#f5f6f8!important}


/* v32 — finish white-theme-parity dark palette for notifications and overlays.
   Color-only: leave modal dimensions, scrolling, swipe actions, timers and data
   untouched; trainer dark only, client and trainer light unchanged. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  #notificationModal,#notificationDetailModal
) .notification-modal-card{
  background-color:#0b0f14!important;
  background-image:none!important;
  border-color:#354353!important;
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal .notification-item{
  background-color:#121b25!important;
  border-color:#354353!important;
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #notificationModal .notification-item.unread{
  background-color:#263449!important;
  border-color:#476184!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  #notificationModal .notification-empty,
  #notificationDetailModal .notification-detail-message
){
  background-color:#121b25!important;
  border-color:#354353!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  #notificationModal,#notificationDetailModal
) .notification-close{
  background-color:#121b25!important;
  border-color:#354353!important;
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  #notificationModal,#notificationDetailModal
) .notification-modal-head small{
  color:#a9b9ca!important;
}
/* Individual editor sheets often have their own legacy background declarations. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-superset-modal,.trainer-template-editor-modal,
  .trainer-program-template-modal,.trainer-new-client-modal,
  .trainer-food-review-panel,.trainer-client-actions-pop,
  .modal>.card,.modal-content
){
  background-color:#0b0f14!important;
  border-color:#354353!important;
  color:#f2f6fc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
  .trainer-new-client-head,.trainer-template-editor-meta,
  .trainer-new-client-macros,.trainer-library-admin-body
){
  background-color:#121b25!important;
  border-color:#354353!important;
}

/* v33 — client details: semantic access, brand buttons and readable meal rows.
   Dark trainer only; keep the light and client interfaces unchanged. */
/* A running subscription stays green even during its last seven days.
   Expiry/frozen status keeps its distinct .off presentation. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .access-saved-main>.access-pill:is(.ok,.warn){
  background:#214b36!important;
  border-color:#477e5c!important;
  color:#a6e9c0!important;
}
/* Actions are purposefully blue, rather than blending into gray cards. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .access-saved>button,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page .trainer-private-note-save,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-head .trainer-nutrition-edit{
  background:#2d70bd!important;
  border:1px solid #4a8cdb!important;
  color:#f5f9ff!important;
  -webkit-text-fill-color:#f5f9ff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-edit :is(svg,.ui-icon){
  color:inherit!important;
  stroke:currentColor!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page :is(.access-saved>button,.trainer-private-note-save,#nutrition .trainer-nutrition-edit):active{
  background:#245d9f!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page :is(.access-saved>button,.trainer-private-note-save,#nutrition .trainer-nutrition-edit):focus-visible{
  outline:2px solid #a9ceff!important;
  outline-offset:2px!important;
}
/* Colored top edges, not full colored outlines, on saved daily goals. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-summary>div{
  background:#121b25!important;
  border:1px solid #354353!important;
  border-top-width:4px!important;
  border-radius:14px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-summary>div.kcal{
  border-top:4px solid #8cb9ef!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-summary>div.protein{
  border-top:4px solid #71aafa!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-summary>div.fat{
  border-top:4px solid #e8b45f!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-summary>div.carbs{
  border-top:4px solid #78c99a!important;
}
/* Repeat the same 4-color scheme for actual-vs-target totals. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-actual-diary-metrics>div{
  border:1px solid #354353!important;
  border-top-width:4px!important;
  border-radius:14px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-actual-diary-metrics>div:nth-child(1){
  border-top:4px solid #8cb9ef!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-actual-diary-metrics>div:nth-child(2){
  border-top:4px solid #71aafa!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-actual-diary-metrics>div:nth-child(3){
  border-top:4px solid #e8b45f!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-actual-diary-metrics>div:nth-child(4){
  border-top:4px solid #78c99a!important;
}
/* A separate, quiet graphite row for every ingredient, with amounts on the right. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .nutrition-menu-meal-v2 .nutrition-menu-ingredients{
  display:grid!important;
  gap:6px!important;
  margin:9px 0 0!important;
  padding:0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .nutrition-menu-meal-v2 .nutrition-menu-ingredient{
  display:flex!important;
  align-items:baseline!important;
  justify-content:space-between!important;
  gap:9px!important;
  padding:7px 9px!important;
  background:#292f38!important;
  border:1px solid #3e4b5b!important;
  border-left:3px solid #547ca9!important;
  border-radius:9px!important;
  color:#c5d3e4!important;
  font-size:11px!important;
  line-height:1.45!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .nutrition-menu-meal-v2 .nutrition-menu-ingredient.full{
  display:block!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .nutrition-menu-meal-v2 .nutrition-menu-ingredient>b{
  color:#dbeaff!important;
  font-size:11px!important;
  font-weight:850!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
}
@media(max-width:360px){
  body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .nutrition-menu-meal-v2 .nutrition-menu-ingredient{
    padding:6px 7px!important;
    gap:6px!important;
  }
}

/* v34 — brighter nutrition accents and scannable client workout history.
   Trainer dark only. Do not alter workout values, layouts or logic. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition{
  --trainer-kcal-v34:#6ebcff;
  --trainer-protein-v34:#638fff;
  --trainer-fat-v34:#ffbf52;
  --trainer-carbs-v34:#55dda0;
}
/* Keep the approved top-edge treatment, but increase chroma and give the
   remaining thin edges a matching tint so the four metrics read at a glance. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-summary>div,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-actual-diary-metrics>div{
  background-color:#282e38!important;
  border-radius:14px!important;
  border-width:1px!important;
  border-top-width:4px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-summary>.kcal,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-actual-diary-metrics>div:nth-child(1){
  border-top-color:var(--trainer-kcal-v34)!important;
  border-right-color:#46668a!important;
  border-bottom-color:#46668a!important;
  border-left-color:#46668a!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-summary>.protein,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-actual-diary-metrics>div:nth-child(2){
  border-top-color:var(--trainer-protein-v34)!important;
  border-right-color:#485d95!important;
  border-bottom-color:#485d95!important;
  border-left-color:#485d95!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-summary>.fat,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-actual-diary-metrics>div:nth-child(3){
  border-top-color:var(--trainer-fat-v34)!important;
  border-right-color:#765d39!important;
  border-bottom-color:#765d39!important;
  border-left-color:#765d39!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-summary>.carbs,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-actual-diary-metrics>div:nth-child(4){
  border-top-color:var(--trainer-carbs-v34)!important;
  border-right-color:#426c55!important;
  border-bottom-color:#426c55!important;
  border-left-color:#426c55!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-summary>.kcal>span{color:#a7d9ff!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-summary>.protein>span{color:#afc5ff!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-summary>.fat>span{color:#ffcf7d!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #nutrition .trainer-nutrition-target-summary>.carbs>span{color:#9be9bf!important}

/* Client Progress > history > selected workout: separate three depth levels
   (session / exercise / recorded set), without inserting any markup. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-session{
  background-color:#1d252f!important;
  border-color:#506079!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-session-head>div:first-child strong{
  color:#f7faff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-calendar-duration{
  background:#284968!important;
  color:#c2e2ff!important;
  border:1px solid #3e6487!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-exercise{
  background:var(--trainer-dark-surface)!important;
  border:1px solid var(--trainer-dark-border)!important;
  border-radius:15px!important;
  box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-exercise-head strong{
  color:#f8fbff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-exercise-head>span{
  color:#c3dcff!important;
  background:#314963!important;
  border:1px solid #456487!important;
  border-radius:9px!important;
  padding:4px 6px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-exercise-head>div>small{
  color:#a8bed6!important;
}
/* A completed set has a distinctly visible green-gray row, not a flat gray
   rectangle. Skipped sets are handled separately below. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-block:not(.skipped)>.trainer-review-set-current{
  background:#254035!important;
  border:1px solid #427b5c!important;
  box-shadow:inset 3px 0 0 #69c997!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-current>small{
  color:#b1dbcb!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-current>b{
  color:#f5fff9!important;
  -webkit-text-fill-color:#f5fff9!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-current .trainer-review-set-meta :is(.trainer-review-rir,.trainer-review-rest){
  color:#c4dbd1!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-previous{
  background:#28303b!important;
  border:1px solid #3e4e61!important;
  border-radius:9px!important;
  color:#b1c3d8!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-previous>span{
  color:#a7b9cb!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-previous>strong{
  color:#dfecfc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-previous .trainer-review-set-meta :is(.trainer-review-rir,.trainer-review-rest){
  color:#a6b7cb!important;
}
/* Keep comparison chips dark in dark mode; the old light reset made '0 сек'
   look like a white input and obscured which row was the result. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-review-set-deltas>.delta-up{
  background:#20513b!important;
  color:#9ff0bc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-review-set-deltas>.delta-down{
  background:#5b333c!important;
  color:#ffc0c5!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-review-set-deltas>.delta-same{
  background:#35465c!important;
  color:#d0e2f7!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-block.skipped>.trainer-review-set-current.skipped{
  background:#373127!important;
  border:1px solid #6c5940!important;
  box-shadow:inset 3px 0 0 #c99751!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-block.skipped .trainer-review-skipped-badge{
  background:#59462b!important;
  color:#ffd28a!important;
  border:1px solid #896439!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-calendar-day-volume>div:first-child{
  border-top:3px solid #68aaff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-calendar-day-volume>div:nth-child(2){
  border-top:3px solid #6dcca1!important;
}

/* v35 — trainer dark: unify semantic action buttons, quiet workout results.
   Blue only for editing/creating/saving/adding; keep navigation, delete,
   secondary and review status colors unchanged. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"]{
 --trainer-action-blue:#2d70bd;
 --trainer-action-blue-border:#4a8cdb;
 --trainer-action-text:#f5f9ff;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
 .trainer-client-page .access-saved>button,
 .trainer-client-page .access-primary,
 .trainer-client-page .trainer-private-note-save,
 .trainer-client-page #nutrition .trainer-nutrition-edit,
 .trainer-client-page #nutrition .trainer-nutrition-target-actions button:not(.dark),
 .trainer-client-page .trainer-program-root .trainer-program-mode-toggle,
 .trainer-client-page .trainer-program-root .trainer-program-new-day,
 .trainer-client-page .trainer-program-root .trainer-program-day-add button,
 .trainer-extra-manager-create,.trainer-extra-day-save,.trainer-day-title-save,
 .trainer-edit-exercise-primary,.trainer-program-add,
 .trainer-extra-day-empty>button,.trainer-extra-action.promote,
 .trainer-inline-superset-toggle,.trainer-program-alternative-add,
 .trainer-library-primary-btn,.trainer-library-add-toggle,
 .trainer-template-create,.trainer-template-primary,
 .trainer-template-list.modern .trainer-template-actions button:first-child,
 .trainer-template-list.modern .trainer-template-actions button:nth-child(2),
 .trainer-template-editor-actions button,
 .trainer-template-editor-add-exercise,.trainer-template-editor-add-day,
 .trainer-nutrition-page .meal-plan-edit-open,
 .trainer-nutrition-page .meal-autoplan-open,
 .trainer-nutrition-page .meal-autoplan-save,
 .trainer-nutrition-page .meal-actions button,
 .trainer-nutrition-page .structured-start,
 .trainer-nutrition-page .structured-add,
 .auto-meal-primary,.trainer-profile-edit-toggle,
 .trainer-public-profile-save,.trainer-new-client-submit,
 .trainer-coach-request-actions button:first-child,
 .activity-saved-edit
){
 background:var(--trainer-action-blue)!important;
 background-image:none!important;
 border:1px solid var(--trainer-action-blue-border)!important;
 color:var(--trainer-action-text)!important;
 -webkit-text-fill-color:var(--trainer-action-text)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
 .trainer-client-page .access-saved>button,.trainer-private-note-save,
 .trainer-client-page #nutrition .trainer-nutrition-edit,
 .trainer-program-mode-toggle,.trainer-extra-manager-create,
 .trainer-template-create,.trainer-library-primary-btn,
 .trainer-profile-edit-toggle,.activity-saved-edit,
 .trainer-nutrition-page .meal-plan-edit-open
) :is(svg,.ui-icon){
 color:var(--trainer-action-text)!important;stroke:currentColor!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
 .trainer-client-page .access-saved>button,.trainer-client-page .access-primary,
 .trainer-private-note-save,.trainer-client-page #nutrition .trainer-nutrition-edit,
 .trainer-program-mode-toggle,.trainer-extra-manager-create,
 .trainer-extra-day-save,.trainer-day-title-save,.trainer-edit-exercise-primary,
 .trainer-program-add,.trainer-template-create,.trainer-template-primary,
 .trainer-public-profile-save,.trainer-new-client-submit,
 .trainer-library-primary-btn,.trainer-nutrition-page .meal-plan-edit-open,
 .trainer-nutrition-page .meal-autoplan-open
):active:not(:disabled){background:#245d9f!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
 .trainer-program-mode-toggle,.trainer-extra-manager-create,
 .trainer-extra-day-save,.trainer-day-title-save,.trainer-edit-exercise-primary,
 .trainer-program-add,.trainer-template-create,.trainer-template-primary,
 .trainer-client-page .access-saved>button,
 .trainer-private-note-save,.trainer-client-page #nutrition .trainer-nutrition-edit
):focus-visible{outline:2px solid #b6d5ff!important;outline-offset:2px!important}
/* Finished sets: graphite with a narrow blue-gray cue, not a large green fill. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-block:not(.skipped)>.trainer-review-set-current{
 background:#18232e!important;
 background-image:none!important;
 border:1px solid #536273!important;
 border-left:3px solid #6d9ccb!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-block:not(.skipped) .trainer-review-set-current>small{color:#bdcadc!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-block:not(.skipped) .trainer-review-set-current>b{color:#f6f9ff!important;-webkit-text-fill-color:#f6f9ff!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-block:not(.skipped) .trainer-review-set-meta :is(.trainer-review-rir,.trainer-review-rest){color:#b9c9dc!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-previous{background:#272e38!important;border:1px solid #414d5f!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-block.skipped>.trainer-review-set-current.skipped{
 background:#35333a!important;border:1px solid #56515b!important;
 border-left:3px solid #b69a65!important;box-shadow:none!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-block.skipped .trainer-review-skipped-badge{
 background:#554631!important;border:1px solid #82704e!important;color:#f4d4a2!important;
}

/* v36 — trainer-dark: high-clarity super-sets, unified blue, calendars and
   progress decoration. SVGs reuse uiIcon; no metric/data logic changes. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"]{
 --trainer-action-blue:#2676d3;
 --trainer-action-blue-border:#438deb;
 --trainer-action-text:#ffffff;
}
/* All primary action buttons, including those that had inherited dark paint,
   use exactly the same blue as the "Перевірити прогрес" action. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
 .trainer-four-week-launch button,
 .trainer-four-week-action,.trainer-four-week-proposal button,
 .trainer-client-page #program .inner-actions>button.dark,
 .trainer-client-page #program .trainer-extra-manager-create,
 .trainer-client-page #nutrition .trainer-nutrition-edit,
 .trainer-client-page #nutrition .trainer-nutrition-target-actions button:not(.dark),
 .trainer-client-page .access-saved>button,
 .trainer-client-page .trainer-private-note-save,
 .trainer-client-page .trainer-program-root .trainer-program-mode-toggle,
 .trainer-template-list.modern .trainer-template-actions button:nth-child(2),
 .trainer-checkin-card>button,
 .trainer-checkin-history-more
){
 background:#2676d3!important;
 background-image:none!important;
 border:1px solid #438deb!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.09)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
 .trainer-four-week-launch button,.trainer-four-week-action,
 .trainer-client-page #program .inner-actions>button.dark,
 .trainer-client-page #nutrition .trainer-nutrition-edit
):focus-visible{outline:2px solid #afd4ff!important;outline-offset:2px!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #program .inner-actions>button.dark:active{
 background:#1d5daf!important;
}
/* Clear single frame around the ENTIRE pair in the trainer program editor.
   Avoid thick internal borders which could make two exercises look ungrouped. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #program .program-block.trainer-exercise-card.superset-block{
 border:2px solid #77b9ff!important;
 border-left:4px solid #68a8f1!important;
 border-radius:18px!important;
 background:#1d2632!important;
 box-shadow:0 0 0 1px rgba(98,161,246,.10),inset 0 1px 0 rgba(255,255,255,.055)!important;
 overflow:hidden!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #program .superset-block .trainer-superset-head{
 background:#274360!important;
 color:#b9dbff!important;
 border-bottom:1px solid #648bb5!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #program .superset-block .trainer-superset-head>span:first-child{
 color:#b4daff!important;font-weight:900!important;letter-spacing:.06em!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] .trainer-client-page #program .superset-block .superset-inner+.superset-inner{
 border-top:1px solid #566b83!important;
}
/* Three trainer calendars: same square button and centered drawn chevron.
   Text glyph is visually suppressed but remains in DOM; aria-label remains. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
 #progress .trainer-workout-calendar-nav>button,
 .trainer-measurements-page .measurement-calendar-head>button,
 #nutrition .trainer-actual-diary-date>button
){
 display:grid!important;place-items:center!important;
 background:#304968!important;border:1px solid #54759c!important;
 color:#b6d6ff!important;
 border-radius:12px!important;
 font-size:0!important;line-height:0!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.07)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
 #progress .trainer-workout-calendar-nav>button,
 .trainer-measurements-page .measurement-calendar-head>button,
 #nutrition .trainer-actual-diary-date>button
)::after{
 content:"";display:block!important;
 width:10px;height:10px;
 border-top:3px solid currentColor;border-right:3px solid currentColor;
 border-radius:1px;
 transform:rotate(45deg);
 margin-right:4px;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
 #progress .trainer-workout-calendar-nav>button:first-child,
 .trainer-measurements-page .measurement-calendar-head>button:first-child,
 #nutrition .trainer-actual-diary-date>button:first-child
)::after{transform:rotate(-135deg);margin-left:4px;margin-right:0}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
 #progress .trainer-workout-calendar-nav>button,
 .trainer-measurements-page .measurement-calendar-head>button,
 #nutrition .trainer-actual-diary-date>button
):disabled{opacity:.38!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
 #progress .trainer-workout-calendar-nav>button,
 .trainer-measurements-page .measurement-calendar-head>button,
 #nutrition .trainer-actual-diary-date>button
):focus-visible{outline:2px solid #9dc7ff!important;outline-offset:2px!important}
/* Available days and selected day are visibly distinct in both calendars. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
 #progress .trainer-workout-calendar-cell:not(.empty),
 .trainer-measurements-page .measurement-calendar-day:not(.empty)
){
 background:#121b25!important;
 border:1px solid #485568!important;
 color:#d4dce8!important;
 opacity:1!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
 #progress .trainer-workout-calendar-cell.has-workout,
 .trainer-measurements-page .measurement-calendar-day.has-data
):not(.selected):not(.active){
 background:#2e4566!important;
 border-color:#577eb1!important;
 color:#c2ddff!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
 #progress .trainer-workout-calendar-cell.selected,
 .trainer-measurements-page .measurement-calendar-day.active
){
 background:#3168b3!important;
 border:1.5px solid #91c5ff!important;
 color:#fff!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.11)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
 #progress .trainer-workout-calendar-cell.has-workout i,
 .trainer-measurements-page .measurement-calendar-day.has-data::after
){background:#74acff!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] :is(
 #progress .trainer-workout-calendar-cell.selected i,
 .trainer-measurements-page .measurement-calendar-day.active::after
){background:#fff!important}
/* Comparison appears as a compact continuation of the current set, rather
   than a separate boxed previous-result card. Retain deltas and rest/RIR. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-previous{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 flex-wrap:wrap!important;column-gap:8px!important;row-gap:4px!important;
 padding:7px 3px 2px 11px!important;
 margin-top:3px!important;margin-left:4px!important;
 border:0!important;border-top:1px solid #445369!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;
 min-height:0!important;white-space:normal!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-previous>span:first-child{
 color:#9eb5d1!important;font-size:10px!important;flex:0 0 auto!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-previous>strong{
 color:#d5e5fa!important;font-size:11px!important;min-width:0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-previous .trainer-review-set-meta{
 color:#afbed1!important;white-space:normal!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-deltas{
 margin-left:auto!important;gap:4px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-deltas>i{
 background:#29384b!important;border:1px solid #405575!important;
 color:#c2d8f5!important;min-height:19px!important;padding:2px 6px!important;
}
/* Semantic value change colors remain only in the delta, never full-row tint. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-deltas>.delta-up{
 color:#9ee7c4!important;border-color:#376a56!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-workout-calendar-exercises .trainer-review-set-deltas>.delta-down{
 color:#ffc0c5!important;border-color:#85515b!important;
}
/* SVG-based, color-keyed stat headings; no changed values or reading order. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-metric-label{
 display:flex!important;align-items:center!important;gap:6px!important;
 color:#c9d7e8!important;font-size:10.5px!important;line-height:1.25!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-metric-label .ui-icon{
 display:block!important;width:18px!important;height:18px!important;flex:0 0 18px!important;
 fill:none!important;stroke:currentColor!important;stroke-width:2px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-summary>div,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-activity-stats>div{
 background:#121b25!important;
 border:1px solid #485568!important;
 border-top:3px solid #73adfa!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-summary>div:nth-child(2),
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-activity-stats>div:nth-child(2){border-top-color:#66cfad!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-summary>div:nth-child(3),
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-activity-stats>div:nth-child(3){border-top-color:#b89af2!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-summary>div:nth-child(1) .ui-icon,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-activity-stats>div:nth-child(1) .ui-icon{color:#91c2ff!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-summary>div:nth-child(2) .ui-icon,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-activity-stats>div:nth-child(2) .ui-icon{color:#90e1c2!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-summary>div:nth-child(3) .ui-icon,
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-activity-stats>div:nth-child(3) .ui-icon{color:#cab0ff!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-title-icon{
 display:flex!important;align-items:center!important;gap:9px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-title-icon .ui-icon{
 width:24px!important;height:24px!important;flex:0 0 24px!important;
 stroke:#83b7ff!important;fill:none!important;stroke-width:1.9px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-activity-list>div{
 background:#121b25!important;border:1px solid #486079!important;border-left:3px solid #608fcd!important;
 gap:10px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-activity-list>div:nth-child(2n){border-left-color:#69cbb0!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-entry-icon{
 width:32px!important;height:32px!important;flex:0 0 32px!important;
 display:grid!important;place-items:center!important;border-radius:10px!important;
 background:#334c6b!important;color:#a5cfff!important;
 font-style:normal!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-entry-icon.cardio{
 background:#29493f!important;color:#a0e7cc!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-entry-icon .ui-icon{
 width:19px!important;height:19px!important;stroke:currentColor!important;
 fill:none!important;stroke-width:2px!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-activity-list>div>span:not(.trainer-progress-entry-icon){
 flex:1 1 auto!important;min-width:0!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-pr-card{
 background:#121b25!important;border:1px solid #5a5345!important;
 border-top:3px solid #e5af58!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-pr-card .trainer-progress-pr-mark{
 display:inline-flex!important;align-items:center!important;gap:5px!important;
 width:max-content!important;color:#ffd089!important;
 border-color:#896537!important;background:#55412d!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-pr-card .trainer-progress-pr-mark .ui-icon{
 display:block!important;width:14px!important;height:14px!important;
 flex:0 0 14px!important;fill:none!important;stroke:currentColor!important;stroke-width:2px!important;
}
@media(max-width:390px){
 body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-metric-label{gap:4px!important;font-size:10px!important}
 body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-metric-label .ui-icon{width:15px!important;height:15px!important;flex-basis:15px!important}
 body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #progress .trainer-progress-entry-icon{width:28px!important;height:28px!important;flex-basis:28px!important}
}

/* v37 — use the same centered SVG chevrons as the unified trainer Back
   button for workout, measurements and nutrition calendar date navigation.
   The v36 CSS pseudo-chevron was off-center on narrow iPhones. */
body.eplan-redesign.trainer-ui :is(
 #progress .trainer-workout-calendar-nav>button.trainer-date-nav-button,
 .trainer-measurements-page .measurement-calendar-head>button.trainer-date-nav-button,
 #nutrition .trainer-actual-diary-date>button.trainer-date-nav-button
){
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 gap:0!important;
 padding:0!important;
 margin:0!important;
 box-sizing:border-box!important;
 text-indent:0!important;
 font-size:0!important;
 line-height:0!important;
 -webkit-appearance:none!important;
 appearance:none!important;
}
/* Suppress the old CSS-drawn after-arrow entirely: SVG is the only icon. */
body.eplan-redesign.trainer-ui :is(
 #progress .trainer-workout-calendar-nav>button.trainer-date-nav-button,
 .trainer-measurements-page .measurement-calendar-head>button.trainer-date-nav-button,
 #nutrition .trainer-actual-diary-date>button.trainer-date-nav-button
)::after,
body.eplan-redesign.trainer-ui :is(
 #progress .trainer-workout-calendar-nav>button.trainer-date-nav-button,
 .trainer-measurements-page .measurement-calendar-head>button.trainer-date-nav-button,
 #nutrition .trainer-actual-diary-date>button.trainer-date-nav-button
)::before{
 content:none!important;
 display:none!important;
}
body.eplan-redesign.trainer-ui :is(
 #progress .trainer-workout-calendar-nav>button.trainer-date-nav-button,
 .trainer-measurements-page .measurement-calendar-head>button.trainer-date-nav-button,
 #nutrition .trainer-actual-diary-date>button.trainer-date-nav-button
)>.ui-icon{
 display:block!important;
 width:22px!important;
 height:22px!important;
 min-width:22px!important;
 flex:0 0 22px!important;
 margin:0!important;
 padding:0!important;
 fill:none!important;
 stroke:currentColor!important;
 stroke-width:2.5!important;
 stroke-linecap:round!important;
 stroke-linejoin:round!important;
 transform:none!important;
}
body.eplan-redesign.trainer-ui :is(
 #progress .trainer-workout-calendar-nav>button.trainer-date-nav-next,
 .trainer-measurements-page .measurement-calendar-head>button.trainer-date-nav-next,
 #nutrition .trainer-actual-diary-date>button.trainer-date-nav-next
)>.ui-icon{
 transform:rotate(180deg)!important;
}

/* Measurement history uses a true right-chevron SVG instead of a rotated left-chevron. */
body.eplan-redesign.trainer-ui .trainer-measurements-page .measurement-calendar-head>button.trainer-date-nav-next>.ui-icon{
 transform:none!important;
}

/* v409 — completed-workout correction sheet in trainer OLED Minima. */
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #completedWorkoutEditModal{
 background:rgba(4,6,9,.8)!important;
 color:#f1f4f9!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #completedWorkoutEditModal .completed-workout-edit-card{
 background:#0B0F14!important;color:#f1f4f9!important;
 border:1px solid #414952!important;box-shadow:0 18px 45px rgba(0,0,0,.45)!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #completedWorkoutEditModal :is(
 .completed-workout-edit-exercise,.completed-workout-edit-set-group,
 .completed-workout-edit-aux-section,.completed-workout-edit-aux-row,
 .completed-workout-timed-readonly>div
){
 background:#10151c!important;color:#eef3f9!important;border-color:#414b59!important;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #completedWorkoutEditModal :is(
 .completed-workout-edit-head h2,.completed-workout-edit-exercise-head strong,
 .completed-workout-timed-readonly strong
){color:#f1f4fa!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #completedWorkoutEditModal :is(
 .completed-workout-edit-head p,.completed-workout-edit-labels,
 .completed-workout-edit-set-number,.completed-workout-edit-aux-title,
 .completed-workout-edit-exercise-head small,.completed-workout-timed-note
){color:#b4c1d2!important}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #completedWorkoutEditModal :is(
 .completed-workout-edit-set input,.completed-workout-edit-aux-row input
){
 background:#0B0F14!important;color:#f0f4fb!important;
 border:1px solid #506070!important;color-scheme:dark;
}
body.eplan-redesign.trainer-ui[data-eplan-theme="dark"] #completedWorkoutEditModal :is(
 .completed-workout-add-warmup,.completed-workout-add-drop,
 .completed-workout-add-set,.completed-workout-edit-aux-row>button,
 .completed-workout-edit-head>button
){
 background:#141c27!important;color:#dceafd!important;border-color:#4e6075!important;
}
body.eplan-redesign.trainer-ui .trainer-workout-calendar-edit-actions{
 display:flex;justify-content:flex-end;margin:12px 0 4px;
}
body.eplan-redesign.trainer-ui .trainer-workout-calendar-edit-actions>button{
 display:inline-flex;align-items:center;justify-content:center;min-height:42px;
 font-weight:700;
}
