/* Є ПЛАН — consolidated client dark theme.
 * Ordered cascade from the approved graphite UI through unified v268.
 * Keep this before client-training-current.css. Light and trainer themes are excluded.
 * Source history: backup/theme-before-cleanup-2026-10-18.
 */

/* OLED Minimal B — the existing home hero, restyled in the consolidated
   client dark theme. Its green live-status pill is intentionally preserved. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-program-hero{
  background:radial-gradient(ellipse at 90% 6%,rgba(80,166,255,.24),transparent 51%),linear-gradient(145deg,#07305B 0%,#0C4B87 62%,#0E67AD 100%)!important;
  border:1px solid rgba(88,162,244,.43)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.085),0 14px 32px rgba(0,24,59,.28)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-program-hero::before{
  background:rgba(118,189,251,.09)!important;opacity:1!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-program-hero :is(.client-program-hero-kicker,.client-program-hero-meta,.client-program-progress-label){
  color:#C8E2FF!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-program-hero>strong{
  color:#F4F7FB!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-program-hero-progress>span{
  background:rgba(7,24,49,.53)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-program-hero-progress i{
  background:#60B3FF!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-program-hero .client-program-hero-cta{
  background:#2D7FF9!important;
  border:1px solid #4594FF!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 7px 18px rgba(45,127,249,.16)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-program-hero.is-active .client-program-hero-cta.active{
  background:linear-gradient(135deg,#12B96A,#19C67A)!important;
  border:1px solid #57DE9B!important;
  color:#FFF!important;
  -webkit-text-fill-color:#FFF!important;
  box-shadow:0 8px 20px rgba(18,185,106,.18)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-program-hero.is-active .client-program-hero-cta.active:active{
  background:#0FA660!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-program-hero:not(.is-active) .client-program-hero-cta:active{
  background:#216BDA!important;
}
/* OLED cards, including home blocks and nested screens. No blue card fill. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
  .client-home-today-card,.client-home-metric,.client-weekly-checkin,
  .redesign-progress-kpi,.redesign-training-day,.redesign-nutrition-day-row,
  .nutrition-diary-card,.measurement-place-card,.activity-saved-card,
  .redesign-more-settings-card,.redesign-more-item
){
  border-color:rgba(120,146,184,.16)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-weekly-checkin:not(.done){
  background:#0B0F14!important;
}

/* ===== migrated: client-graphite.css ===== */
/* ЄПЛАН client graphite theme v1.
 * Deliberately dark-mode-only. Mirrors the trainer's graphite tokens, without
 * moving client controls or changing semantic macro/success/danger colors.
 * Loaded after theme.css; keep new refinements here rather than duplicating
 * the legacy navy theme across hundreds of rules. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"]{
  color-scheme:dark;
  --client-graphite-bg:#101114;
  --client-graphite-surface:#0B0F14;
  --client-graphite-raised:#11161D;
  --client-graphite-border:rgba(120,146,184,.16);
  --client-graphite-border-strong:rgba(120,146,184,.22);
  --client-graphite-text:#F4F7FB;
  --client-graphite-muted:#9AA6B2;
  --client-graphite-accent:#71B1FF;
  --oled-blue:#2D7FF9;
  --oled-blue-hover:#4594FF;
  --oled-success:#32D27A;
  --oled-success-soft:rgba(50,210,122,.14);
  --oled-divider:rgba(120,146,184,.12);
  --client-graphite-blue-surface:rgba(45,127,249,.12);
  --bg:var(--client-graphite-bg);
  --card:var(--client-graphite-surface);
  --card2:var(--client-graphite-raised);
  --line:var(--client-graphite-border);
  --text:var(--client-graphite-text);
  --muted:var(--client-graphite-muted);
  --eplan-surface:var(--client-graphite-surface);
  --eplan-raised:var(--client-graphite-raised);
  --eplan-ink:var(--client-graphite-text);
  --eplan-subtle:var(--client-graphite-muted);
  background:var(--client-graphite-bg)!important;
  color:var(--client-graphite-text)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  #app,.wrap.client-shell,.client-section-page,.redesign-training-page,
  .redesign-progress-page,.redesign-progress-shell,.redesign-nutrition-page,
  .redesign-more-page,.redesign-more-subpage,.redesign-bju-page,.measurements-page
){
  background-color:var(--client-graphite-bg)!important;
  color:var(--client-graphite-text)!important;
}
/* Shared main surface: dashboard, programs, progress, nutrition and measurements. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .card,.exercise,.client-home-today-card,.client-home-metric,
  .client-home-trainer-card,.client-weekly-checkin,
  .redesign-training-summary,.redesign-training-day,.redesign-training-help,
  .redesign-training-exercise,.redesign-training-last,.redesign-training-details,
  .redesign-training-stat-grid>div,.redesign-training-today-done,
  .redesign-progress-kpi,.redesign-progress-week,.redesign-progress-chart-card,
  .redesign-progress-training-row,.redesign-progress-achievements>div,
  .redesign-progress-workout-detail,.progress-workout-stat,
  .redesign-calorie-card,.redesign-macro-ring-card,
  .redesign-nutrition-summary-grid>div,.redesign-nutrition-day-row,
  .redesign-bju-summary,.redesign-empty-panel,
  .activity-field-card,.activity-steps-card,.activity-saved-card,
  .measurement-next,.measurement-metric,.measurement-place-card,
  .measurement-weight-visual,.measurement-history-card,
  .measurement-history-calendar-card,.meal-plan-card,.meal-view,.meal-option,
  .meal-variant,.redesign-more-settings-card,.redesign-settings-panel,
  .redesign-more-list,.redesign-more-item,.redesign-help-item,.calendar-day,
  .progress-workout-detail-hero,.progress-workout-detail-section,
  .progress-workout-exercise,.progress-workout-muscles,
  .redesign-progress-achievements,.nutrition-diary-meal,.nutrition-diary-day,
  .nutrition-diary-summary,.trainer-profile-public .trainer-profile-stats>div
){
  background:var(--client-graphite-surface)!important;
  background-image:none!important;
  border-color:var(--client-graphite-border)!important;
  color:var(--client-graphite-text)!important;
  box-shadow:none!important;
}
/* Grouped smaller elevated surfaces, but never blanket-override macro rings. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .redesign-training-tabs,.redesign-progress-tabs,.redesign-nutrition-tabs,
  .redesign-bju-detail-grid,.redesign-training-day-status,
  .redesign-training-day-index,.training-row-icon,.client-home-today-icon,
  .client-home-metric-icon,.activity-field-icon,.activity-metric-cards>*,
  .activity-steps-progress,.redesign-more-icon,.progress-workout-sets>*,
  .progress-workout-set-group,.progress-workout-muscle-row,
  .redesign-progress-workout-detail .progress-workout-stat,
  .nutrition-diary-food,.nutrition-diary-item,
  .meal-plan-head,.meal-plan-body,.measurement-history-calendar-card .calendar-day,
  .workout-timed-previous,.workout-timed-plan>div,.workout-timed-superset-progress,
  .redesign-rule-item>b
){
  background-color:var(--client-graphite-raised)!important;
  border-color:var(--client-graphite-border-strong)!important;
  box-shadow:none!important;
}
/* The active workout (sets, supersets, timers) should match the same graphite
   hierarchy. Existing success, rest-ring, completion and skipped states win. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .lyfta-exercise-card,.lyfta-workout-exercise,
  .workout-exercise-card,.workout-exercise,.workout-rest-panel,
  .workout-timer-panel,.workout-timed-modal-card,
  .workout-timed-ring>div,.lyfta-warmup-row,
  .lyfta-drop-set,.workout-superset-card
){
  background-color:var(--client-graphite-surface)!important;
  border-color:var(--client-graphite-border)!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .lyfta-set-input,.lyfta-reps-input,.lyfta-weight-input,
  .workout-timed-modal input,.workout-timed-modal select,
  .redesign-nutrition-page input,.redesign-nutrition-page textarea,
  .redesign-nutrition-page select
){
  background-color:var(--client-graphite-raised)!important;
  border-color:var(--client-graphite-border-strong)!important;
  color:var(--client-graphite-text)!important;
}
/* Forms and secondary buttons across all client screens. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  textarea,select
){
  background-color:var(--client-graphite-raised)!important;
  border-color:var(--client-graphite-border-strong)!important;
  color:var(--client-graphite-text)!important;
  color-scheme:dark;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(input,textarea)::placeholder{
  color:#a0a8b6!important;opacity:1!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .redesign-back-title button,.client-top .notify-btn,
  .redesign-training-help>button,.redesign-training-day-main,
  .redesign-more-item button,.workout-timed-close,
  .measurement-history-action,.measurement-calendar-nav button,
  .activity-custom-cardio button
){
  border-color:var(--client-graphite-border-strong)!important;
  color:var(--client-graphite-text)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .redesign-back-title button,.client-top .notify-btn,
  .workout-timed-close
){
  background-color:var(--client-graphite-raised)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  h1,h2,h3,h4,.redesign-training-day-main strong,
  .redesign-progress-workout-detail h2,.client-home-metric strong,
  .measurement-next h2,.progress-workout-detail-section-head strong,
  .redesign-more-copy strong
){color:var(--client-graphite-text)!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .muted,.redesign-more-copy small,.measurement-history-card small,
  .client-home-today-card small,.redesign-training-summary small,
  .progress-workout-detail-section-head span,.workout-timed-modal-meta,
  .nutrition-diary-meal small
){color:var(--client-graphite-muted)!important}
/* Tabs, highlighted training days, and the main client navigation use trainer blue. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .redesign-training-tabs,.redesign-progress-tabs,.redesign-nutrition-tabs
) button.active{
  background:var(--client-graphite-blue-surface)!important;
  color:var(--client-graphite-accent)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .redesign-training-day.is-next{
  border-color:#4b6b96!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-bottom-nav{
  background:rgba(28,30,35,.94)!important;
  border-color:#3b3e47!important;
  box-shadow:0 8px 30px rgba(0,0,0,.4)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-bottom-nav button.active{
  background:#142640!important;color:#96beff!important;
}
/* Nutrition rings, colored proteins/fats/carbs, completed exercises and
   status badges retain their existing semantic colors and SVG fills. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .redesign-nutrition-actions,.nutrition-diary-actions
){
  background:transparent!important;border-color:transparent!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .weekly-checkin-modal,.redesign-edit-modal,.redesign-modal-card,
  .workout-timed-modal-card,.measurement-modal-card,
  .nutrition-food-picker,.nutrition-search-modal
){
  background-color:var(--client-graphite-surface)!important;
  border-color:var(--client-graphite-border-strong)!important;
  color:var(--client-graphite-text)!important;
  box-shadow:0 16px 45px rgba(0,0,0,.28)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #timedExerciseWorkoutModal .workout-timed-ring>div{
  background:var(--client-graphite-raised)!important;
  box-shadow:inset 0 0 0 1px var(--client-graphite-border-strong)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .trainer-profile-public .trainer-profile-stats>div{
  background-color:var(--client-graphite-raised)!important;
}

/* Nested client sub-screens: eliminate remaining legacy navy backplates. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-top:not(.client-top-compact){
  background:var(--client-graphite-bg)!important;
  border-color:var(--client-graphite-border)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .redesign-training-day-main,.redesign-training-help-body,
  .nutrition-diary-card,.nutrition-diary-meal-body,.nutrition-diary-item,
  .nutrition-diary-meal-head,.progress-workout-detail-hero,
  .progress-workout-detail-section,.progress-workout-exercise,
  .measurement-history-card,.measurement-place-card,
  .activity-always-open,.redesign-more-list,.trainer-four-week-modal
){
  background-color:var(--client-graphite-surface)!important;
  border-color:var(--client-graphite-border)!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .workout-live-body .lyfta-set-swipe,.workout-live-body .lyfta-set-swipe-content,
  .workout-live-body .lyfta-prev-line button,
  .workout-live-body .lyfta-set-done:not(.done),
  .workout-timed-modal .workout-timed-modal-meta b
){
  background:var(--client-graphite-raised)!important;
  border-color:var(--client-graphite-border-strong)!important;
}
/* Checked workout sets retain the stronger green done state. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
.workout-live-body .lyfta-set-wrap.is-complete .lyfta-set-swipe-content{
  background:#243e33!important;
  border-color:#456c56!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
.workout-live-body .lyfta-set-done.done{
  background:#235746!important;
  color:#d9f6e7!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
  .trainer-four-week-field input,.trainer-four-week-field select,
  .workout-timed-modal input,.workout-timed-modal select
){
  background:var(--client-graphite-raised)!important;
  border-color:var(--client-graphite-border-strong)!important;
  color:var(--client-graphite-text)!important;
}

/* Training-day innards carried a legacy navy fill. Keep completed days green. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
  .redesign-training-day-main,.redesign-training-day-body,
  .redesign-training-exercises
){
  background:#0B0F14!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day.is-done .redesign-training-day-main{
  background:#0B0F14!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-superset{
  background:#0B0F14!important;
}

/* ===== migrated: client-graphite-polish.css ===== */
/* Client graphite QA v2: training hierarchy, activity icons, measurement calendar,
   and nutrition diary accents. Dark-only and visual-only. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"]{
  --client-q-card:#22252b;
  --client-q-raised:#11161D;
  --client-q-line:#434850;
  --client-q-muted:#b6c0cd;
  --client-q-blue:#a8caff;
}
/* The program list needs hierarchy, not a louder background everywhere. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day:not(.is-done):not(.is-next){
  background:var(--client-q-card)!important;
  border-color:var(--client-q-line)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day:not(.is-done):not(.is-next) .redesign-training-day-main{
  background:var(--client-q-card)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day.is-next{
  background:#0B0F14!important;
  border-color:#5a7caa!important;
  box-shadow:inset 3px 0 0 #75aaff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day.is-next .redesign-training-day-main{
  background:#0B0F14!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day.is-done{
  background:#0B0F14!important;
  border-color:#3d5b49!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day.is-done .redesign-training-day-main{
  background:#0B0F14!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day-copy strong{
  color:#f6f7fa!important;
  font-weight:850!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day-copy small{
  color:#c3cbd7!important;
  font-weight:750!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day-copy em{
  color:#aeb9c8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day-index{
  background:#0B0F14!important;
  border:1px solid #455366!important;
  color:#c2d7f6!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day.is-next .redesign-training-day-index{
  background:#11161D!important;border-color:#567aa7!important;color:#d8eaff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day.is-done .redesign-training-day-index{
  background:#0B0F14!important;border-color:#456954!important;color:#b2e9c5!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day:not(.is-done) .redesign-training-day-status{
  background:#0B0F14!important;
  color:#c7cfda!important;
  border:1px solid #464c57!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day.is-next .redesign-training-day-status{
  background:#11161D!important;color:#b9d8ff!important;border-color:#52769d!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-chevron{
  color:#c3cbd7!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day-body,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-exercises{
  background:transparent!important;
  border-color:var(--client-q-line)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-summary{
  background:#0B0F14!important;border-color:var(--client-q-line)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-summary span{
  color:var(--client-q-muted)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-cycle{
  background:#0B0F14!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-help{
  background:#0B0F14!important;border-color:var(--client-q-line)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-help>button{
  background:transparent!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-help-body{
  background:#0B0F14!important;border-color:var(--client-q-line)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-stat-grid>div{
  background:var(--client-q-card)!important;border-color:var(--client-q-line)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-stat-grid span{
  background:#0B0F14!important;color:#a8caff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-stat-grid small{
  color:var(--client-q-muted)!important;
}
/* Activity: neutral graphite cards, recognizable visible artwork. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .cardio-entry-card{
  background:#0B0F14!important;
  color:#edf2fa!important;
  border-color:#47505c!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .cardio-entry-card.selected{
  background:#2b3849!important;
  border-color:#698bb6!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .cardio-entry-card strong{
  color:#f1f4f8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .cardio-entry-card small,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .cardio-entry-card>b{
  color:#b6c2d2!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
  .cardio-entry-icon,.activity-field-icon
):has(.activity-approved-icon){
  background:#0B0F14!important;
  border:1px solid #4b6481!important;
  color:#b6d4ff!important;
}
/* Approved SVG files were navy strokes on pale tiles; brighten their line art on graphite. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .activity-approved-icon{
  filter:brightness(0) saturate(100%) invert(83%) sepia(15%) saturate(920%) hue-rotate(182deg) brightness(101%) contrast(97%)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
  .activity-steps-card,.cardio-metric-inputs .activity-field-card
){
  background:#0B0F14!important;border-color:#47505c!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .activity-field-card label{
  color:#c0cbd9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
  .activity-steps-card input,.cardio-metric-inputs .activity-field-card input
){
  background:transparent!important;color:#f5f6f9!important;border:0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .activity-section-label{
  color:#b6c1cf!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .cardio-save-neutral{
  background:#11161D!important;border:1px solid #517fc0!important;
  color:#f3f7ff!important;
  box-shadow:none!important;
}
/* Progress: dark graphite calendar, a visible but restrained selected date. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
  .measurement-history-calendar-card,.measurement-history-calendar-toggle,
  .measurement-history-calendar-body
){
  background:#0B0F14!important;border-color:#424850!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .measurement-calendar-head>button{
  background:#0B0F14!important;border-color:#4d5868!important;color:#d5e3f3!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .measurement-calendar-day{
  background:#0B0F14!important;border-color:#424950!important;color:#bec7d4!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .measurement-calendar-day.has-data:not(.active){
  background:#313f50!important;border-color:#526a88!important;color:#d2e5fd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .measurement-calendar-day.active{
  background:#344f70!important;border-color:#779dd0!important;color:#f2f7ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
  .measurement-calendar-hint,.measurement-calendar-empty
){
  background:#0B0F14!important;border-color:#424c5a!important;color:#c2ccd9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .measurement-calendar-weekdays span{
  color:#aeb9c8!important;
}
/* Nutrition: gentle actions instead of glowing solid blue strips. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal{
  background:#0B0F14!important;border-color:#3e444d!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal-body{
  background:#0B0F14!important;border-color:#3e444d!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal .nutrition-diary-add{
  background:#11161D!important;border:1px solid #536a88!important;
  color:#cfe3ff!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal .nutrition-diary-add:active{
  background:#11161D!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal-title strong{
  color:#f2f5f9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal-calories{
  color:#c2d2e8!important;
}

/* ===== migrated: client-graphite-deep-qa.css ===== */
/* Client graphite deep QA: list details, progress history, completed workout
 * editor and assigned nutrition. Scoped to dark client UI: light mode unchanged. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"]{
 --client-qa-surface:#22252b;
 --client-qa-raised:#2b2f37;
 --client-qa-line:#424750;
 --client-qa-muted:#b6c0cc;
 --client-qa-link:#a6c9ff;
}
/* Expanded workout day: prevent a thick navy/blue nested border.
 * Completion and upcoming states remain indicated in day headers. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day-body{
 background:#0B0F14!important;
 border-top-color:#40444e!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-exercises{
 background:transparent!important;
 border-color:#40444e!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-exercise{
 background:transparent!important;
 border-color:#3b4049!important;
 color:#edf1f7!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-superset{
 background:#0B0F14!important;
 border:0!important;
 outline:0!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-superset-label{
 background:#0B0F14!important;
 border:0!important;
 border-bottom:1px solid #454f5b!important;
 color:#c4d6ed!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-superset-label span{
 color:#b9d6fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-superset-label small{
 color:#b7c3d3!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-superset .redesign-training-exercise{
 background:#0B0F14!important;
 border-color:#3b4049!important;
 color:#eff3f8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-exercise > span:first-child{
 background:#0B0F14!important;
 border-color:#526781!important;
 color:#d4e6ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
 .redesign-training-technique>.redesign-training-tech-link,
 .redesign-training-alt-chip .redesign-training-alt-tech
){
 color:var(--client-qa-link)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-alt-chip{
 background:#0B0F14!important;
 border-color:#4f5d6d!important;
 color:#f1f4f9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-alt-chip :is(i,strong){
 color:#f1f4f9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-alt-chip small{
 color:#b9c6d6!important;
}
/* Progress history: neutral rows instead of rectangles inside rectangles.
 * Preserve text/time labels, skipped indicators and original layout. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
 .progress-workout-sets,.progress-workout-set-group
){
 background:transparent!important;
 border:0!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .progress-workout-sets .calendar-workout-set{
 background:#0B0F14!important;
 border:1px solid #3c424d!important;
 color:#e9eff6!important;
 box-shadow:none!important;
 border-radius:12px!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .progress-workout-sets .calendar-workout-set.progress-workout-timed-set{
 background:#0B0F14!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .progress-workout-sets .calendar-workout-set :is(span,strong,b){
 color:#ecf2fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .progress-workout-sets .calendar-workout-set :is(small,.progress-workout-timed-meta){
 color:#b9c8d9!important;
}
/* Completed session editor: the modal was still entirely light in dark mode. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .completed-workout-edit-modal{
 background:rgba(4,6,9,.78)!important;
 color:#f0f3f8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .completed-workout-edit-modal .completed-workout-edit-card{
 background:#0B0F14!important;
 color:#f0f3f8!important;
 border:1px solid #41454d!important;
 box-shadow:0 18px 50px rgba(0,0,0,.4)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .completed-workout-edit-modal .completed-workout-edit-head :is(h2,strong){
 color:#f2f4f8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .completed-workout-edit-modal .completed-workout-edit-head small{
 color:#9bbff8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .completed-workout-edit-modal .completed-workout-edit-head p{
 color:#b4becc!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .completed-workout-edit-modal .completed-workout-edit-head>button{
 background:#0B0F14!important;border:1px solid #4a5562!important;color:#e8f0fc!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .completed-workout-edit-modal
 .completed-workout-edit-exercise{
 background:#0B0F14!important;border-color:#434952!important;color:#eef3f9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .completed-workout-edit-modal
 .completed-workout-edit-exercise.timed-readonly{
 background:#0B0F14!important;border-color:#434952!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .completed-workout-edit-modal .completed-workout-edit-exercise-head strong{
 color:#f1f4fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .completed-workout-edit-modal .completed-workout-edit-exercise-head small{
 color:#b8c5d6!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .completed-workout-edit-modal .completed-workout-edit-exercise-head>span{
 background:#11161D!important;color:#c5dcff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .completed-workout-edit-modal :is(
 .completed-workout-timed-readonly>div,.completed-workout-edit-aux-section,
 .completed-workout-edit-aux-row,.completed-workout-edit-set-group
){
 background:#0B0F14!important;
 border-color:#444d59!important;
 color:#edf2fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .completed-workout-edit-modal :is(
 .completed-workout-timed-readonly span,.completed-workout-timed-readonly small,
 .completed-workout-edit-labels,.completed-workout-edit-set-number,
 .completed-workout-edit-aux-title>small,.completed-workout-edit-aux-title>span,
 .completed-workout-edit-aux-row>span
){
 color:#bcc7d6!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .completed-workout-edit-modal :is(
 .completed-workout-timed-readonly strong,.completed-workout-edit-exercise-head strong
){
 color:#f1f4f9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #completedWorkoutEditModal :is(
 .completed-workout-edit-set input,.completed-workout-edit-aux-row input
){
 background:#0B0F14!important;background-color:#0B0F14!important;border:1px solid #505864!important;
 color:#f0f4fb!important;color-scheme:dark;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .completed-workout-edit-modal :is(
 .completed-workout-add-warmup,.completed-workout-add-drop,.completed-workout-add-set,
 .completed-workout-edit-aux-row>button
){
 background:#11161D!important;
 border:1px solid #506989!important;
 color:#d1e4ff!important;
 box-shadow:none!important;
}
/* Meal plan: preserve blue/amber/green BJU semantics, neutralize large backplates. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-nutrition-page .meal-plan-card{
 background:#0B0F14!important;border-color:#424750!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-nutrition-page
 .meal-plan-card>button.meal-plan-head{
 background:#0B0F14!important;color:#f2f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-nutrition-page
 .meal-plan-card>.meal-plan-body{
 background:#0B0F14!important;border-top-color:#424750!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-nutrition-page .client-ration-tabs{
 background:#0B0F14!important;border-color:#444c56!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-nutrition-page .client-ration-tabs button:not(.active){
 color:#b6c3d3!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-nutrition-page .client-ration-tabs button.active{
 background:#364c69!important;color:#daeaff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-nutrition-page
 .client-ration-page .nutrition-menu-total-v6{
 background:#0B0F14!important;background-image:none!important;
 border-color:#4a5768!important;border-left-color:#7aaafa!important;
 box-shadow:none!important;color:#eff3f9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-nutrition-page .nutrition-menu-meal-v2{
 background:#0B0F14!important;border-color:#414954!important;
 color:#eef2f8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-nutrition-page :is(
 .nutrition-menu-meal-v2 .nutrition-menu-v2-layout,
 .nutrition-menu-meal-v2 .nutrition-menu-meal-body
){
 background:transparent!important;border-color:#3f4752!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-nutrition-page .nutrition-menu-meal-v2 .nutrition-menu-number{
 background:#11161D!important;color:#c6deff!important;
 border-color:#557ba7!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-nutrition-page .nutrition-menu-meal-v2 .nutrition-menu-ingredient{
 color:#b7c5d4!important;
}
/* Compact weekly-checkin surfaces; same graphite level as other modal windows. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #weeklyCheckinModal .weekly-checkin-modal{
 background:#0B0F14!important;border-color:#444953!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #weeklyCheckinModal .weekly-checkin-scale span{
 background:#0B0F14!important;border-color:#4c5969!important;color:#d9e4f2!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #weeklyCheckinModal .weekly-checkin-scale input:checked+span{
 background:#326bba!important;border-color:#326bba!important;color:#fff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #weeklyCheckinModal .weekly-checkin-comment{
 background:#0B0F14!important;border-color:#4b525e!important;color:#f2f5fa!important;
}

/* ===== migrated: client-graphite-inner-panels.css ===== */
/* Client graphite — inner panels and food dialogs.
   Keep layout/behavior unchanged; dark theme only. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] {
  --cg-popup:#22252b;
  --cg-elevated:#2c3038;
  --cg-field:#151B24;
  --cg-line:#444b55;
  --cg-subtle:#bcc6d2;
  --cg-action:#a9caff;
}
/* Weekly report: do not paint a square background behind the comment label.
   Only the textarea should have a field background. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #weeklyCheckinModal .weekly-checkin-comment{
  display:block!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
  color:var(--cg-subtle)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #weeklyCheckinModal .weekly-checkin-comment textarea{
  display:block!important;
  width:100%!important;
  background:var(--cg-field)!important;
  border:1px solid var(--cg-line)!important;
  border-radius:16px!important;
  color:#f3f5fa!important;
  padding:12px 13px!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #weeklyCheckinModal .weekly-checkin-comment textarea::placeholder{
  color:#acb6c5!important;
  opacity:1!important;
}
/* The completed-workout editor has a single exercise card. Individual
   work sets shouldn't turn into squared panels below their input row. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #completedWorkoutEditModal
  .completed-workout-edit-exercise .completed-workout-edit-set-group{
  background:transparent!important;
  background-color:transparent!important;
  border:0!important;
  border-bottom:1px solid #3b4149!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:9px 0 12px!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #completedWorkoutEditModal
  .completed-workout-edit-exercise .completed-workout-edit-set-group:last-child{
  border-bottom:0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #completedWorkoutEditModal
  .completed-workout-edit-exercise .completed-workout-edit-set{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #completedWorkoutEditModal
  .completed-workout-edit-exercise .completed-workout-edit-drop-holder{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #completedWorkoutEditModal
  .completed-workout-edit-exercise .completed-workout-edit-aux-row{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #completedWorkoutEditModal
  .completed-workout-edit-exercise .completed-workout-edit-aux-section{
  background:var(--cg-elevated)!important;
  border:1px solid var(--cg-line)!important;
  border-radius:15px!important;
}
/* Supersets: keep only a rounded outer surface and understated exercise
   separators; no hard-edged inner blue rectangles. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-superset{
  border-radius:18px!important;
  overflow:hidden!important;
  background:#0B0F14!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .redesign-training-superset .redesign-training-exercise{
  background:#0B0F14!important;
  border:0!important;
  border-bottom:1px solid #41464f!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .redesign-training-superset .redesign-training-exercise:last-child{
  border-bottom:0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .redesign-training-superset-label{
  background:#0B0F14!important;
  border:0!important;
  border-bottom:1px solid #474f59!important;
}
/* Product and recipe overlays: graphite like the rest of ЄПЛАН.
   These are appended directly to body, outside #app. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(
 #myProductModal,#myFoodsModal,#myRecipesModal
) .my-foods-panel{
  background:var(--cg-popup)!important;
  background-image:none!important;
  border:1px solid var(--cg-line)!important;
  color:#f2f5f9!important;
  border-radius:22px!important;
  box-shadow:0 20px 55px rgba(0,0,0,.32)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal :is(h2,strong),
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(#myProductModal,#myFoodsModal,#myRecipesModal)
  .my-foods-panel :is(h2,strong){
  color:#f0f3f8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal :is(.muted,.food-lookup-status,.food-lookup-note,.food-lookup-details),
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(#myProductModal,#myFoodsModal,#myRecipesModal)
  .my-foods-panel :is(.muted,.my-food-hint,.my-food-extra>small){
  color:var(--cg-subtle)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal input,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal select,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(#myProductModal,#myFoodsModal,#myRecipesModal)
  .my-foods-panel input:not([type="checkbox"]){
  background:var(--cg-field)!important;
  border:1px solid #515965!important;
  border-radius:13px!important;
  box-shadow:none!important;
  color:#eff3fa!important;
  color-scheme:dark;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal input::placeholder,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-foods-panel input::placeholder{
  color:#aebbc9!important;
  opacity:1!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal input:focus,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-foods-panel input:not([type="checkbox"]):focus{
  border-color:#6f9bdb!important;
  outline:2px solid rgba(106,157,228,.5)!important;
  outline-offset:1px!important;
}
/* Search tiles, macros and saved recipes use quiet raised surfaces. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal :is(
 .food-lookup-row,.food-lookup-portion,.food-lookup-macros>span
),
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(#myProductModal,#myFoodsModal,#myRecipesModal)
  :is(.my-food-extra,.my-food-row){
  background:var(--cg-elevated)!important;
  border:1px solid var(--cg-line)!important;
  color:#edf2f8!important;
  box-shadow:none!important;
  border-radius:14px!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal .food-lookup-row :is(small,span),
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(#myFoodsModal,#myRecipesModal) .my-food-row small{
  color:#b7c2d0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal .food-lookup-row em{
  color:#b9d7ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal .food-lookup-portion label,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-foods-panel label{
  color:#ced8e5!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal .food-lookup-macros :is(b,small){
  color:#e9eef7!important;
}
/* Neutral secondary actions and dismiss buttons. Retain blue for the actual
   submit action rather than for every button and large container. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #foodSearchModal .food-lookup-modal :is(
 .food-custom-actions button,.food-lookup-more,#foodSearchClose
),
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(#myProductModal,#myFoodsModal,#myRecipesModal)
 .my-foods-panel .between>button.dark,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(#myFoodsModal,#myRecipesModal)
 .my-food-row-actions button{
  background:#0B0F14!important;
  color:#d5e2f1!important;
  border:1px solid #53606f!important;
  box-shadow:none!important;
  border-radius:13px!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-food-extra>span{
  color:#e0e7f2!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-food-review{
  background:transparent!important;
  color:#d4deea!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-food-review input[type="checkbox"]{
  accent-color:#5595e1!important;
  background:transparent!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #myProductModal .my-food-primary{
  background:#11161D!important;
  border:1px solid #578ac9!important;
  color:#f5f8ff!important;
}

/* ===== migrated: client-graphite-semantic-accents.css ===== */
/* ЄПЛАН client graphite: semantic accents, clean supersets and legacy navy screens.
 * Dark mode only. CSS-only: workout and nutrition behavior is unchanged. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"]{
  --cg-neutral:#23262c;
  --cg-neutral-raised:#2b2f36;
  --cg-neutral-border:#414751;
  --cg-soft-blue:#a7caff;
  --cg-mint:#97ddc4;
  --cg-violet:#cab7f3;
  --cg-amber:#f0c38a;
}
/* Superset's old 10px horizontal padding + negative-margin header created
   two squared side strips inside the rounded shell. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-superset{
  padding:0!important;
  margin:9px 0!important;
  background:#0B0F14!important;
  border:0!important;
  border-radius:18px!important;
  overflow:hidden!important;
  box-shadow:none!important;
  outline:0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-superset .redesign-training-superset-label{
  margin:0!important;
  padding:10px 13px!important;
  background:#0B0F14!important;
  border:0!important;
  border-bottom:1px solid #434a54!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-superset .redesign-training-exercise{
  padding:15px 12px!important;
  margin:0!important;
  background:#0B0F14!important;
  border:0!important;
  border-bottom:1px solid #3d434c!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-superset .redesign-training-exercise:last-child{
  border-bottom:0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-superset :is(
  .redesign-training-exercise-copy,.redesign-training-main-title-row
){min-width:0!important;}
/* Stat icons: calendar amber, performed exercises turquoise, cycle violet.
   The legacy theme enforced a single blue SVG color on all three. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-stat-grid>div:nth-child(1)>span{
  background:#0B0F14!important;color:var(--cg-amber)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-stat-grid>div:nth-child(2)>span{
  background:#0B0F14!important;color:var(--cg-mint)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-stat-grid>div:nth-child(3)>span{
  background:#0B0F14!important;color:var(--cg-violet)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-stat-grid>div:nth-child(1)>span svg{
  stroke:var(--cg-amber)!important;color:var(--cg-amber)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-stat-grid>div:nth-child(2)>span svg{
  stroke:var(--cg-mint)!important;color:var(--cg-mint)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-stat-grid>div:nth-child(3)>span svg{
  stroke:var(--cg-violet)!important;color:var(--cg-violet)!important;
}
/* Home: keep training identifiable, but avoid blue for nutrition,
   weight, waist and completion counters. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-home-today-card:nth-child(1) .client-home-today-icon{
  background:#0B0F14!important;color:#c6b8ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-home-today-card:nth-child(2) .client-home-today-icon{
  background:#0B0F14!important;color:#a6e2bf!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-home-today-card:nth-child(1) .client-home-today-icon svg{
  stroke:#c6b8ff!important;color:#c6b8ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-home-today-card:nth-child(2) .client-home-today-icon svg{
  stroke:#a6e2bf!important;color:#a6e2bf!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-home-metric:nth-child(1) .client-home-metric-icon{
  background:#0B0F14!important;color:#c8b4fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-home-metric:nth-child(2) .client-home-metric-icon{
  background:#0B0F14!important;color:#9bdec4!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-home-metric:nth-child(3) .client-home-metric-icon{
  background:#0B0F14!important;color:#ecc58f!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-home-metric:nth-child(1) .client-home-metric-icon svg{
  stroke:#c8b4fa!important;color:#c8b4fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-home-metric:nth-child(2) .client-home-metric-icon svg{
  stroke:#9bdec4!important;color:#9bdec4!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-home-metric:nth-child(3) .client-home-metric-icon svg{
  stroke:#ecc58f!important;color:#ecc58f!important;
}
/* Diary: one neutral daily total and no navy footers/buttons per meal.
   Meal icons stay breakfast blue / lunch mint / snack lilac / dinner amber. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-day-total{
  background:#0B0F14!important;
  border:1px solid #454b55!important;
  border-radius:16px!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-day-total strong{
  color:#f0f3f9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-day-total :is(small,span){
  color:#b8c9db!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal .nutrition-diary-add,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal-head button{
  background:#0B0F14!important;
  border:1px solid #4b596b!important;
  color:#d7e5f5!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal{
  overflow:hidden!important;
  background:#0B0F14!important;
  border-color:#414750!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal-body{
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal .nutrition-diary-add{
  margin:0!important;
}
/* Marketplace trainers card: the selected trainer keeps a green relationship
   badge; the large navy card is neutral graphite. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
  .trainer-market-card.trainer-card-v3.marketplace,
  .client-home-trainer-card.trainer-card-v3
){
  background:#0B0F14!important;
  background-image:none!important;
  border:1px solid #434b56!important;
  color:#eef3f9!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .trainer-card-v3-tags>i{
  background:#0B0F14!important;
  border-color:#4a5665!important;
  color:#cbd8e9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .trainer-card-v3-footer{
  border-top-color:#414852!important;
}
/* Exercise library: neutral containers, mild dividers, meaningful blue video link. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-client-library .redesign-library-group{
  background:#0B0F14!important;
  border-color:#454c55!important;
  box-shadow:none!important;
  border-radius:18px!important;
  overflow:hidden!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-client-library .redesign-library-group-head{
  background:#0B0F14!important;
  border-color:#454c55!important;
  color:#f0f3f9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-client-library .redesign-library-group-body{
  background:#0B0F14!important;
  border-color:#454c55!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-client-library .redesign-library-row{
  background:transparent!important;
  border:0!important;
  border-bottom:1px solid #3e444e!important;
  color:#eef2f8!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-client-library .redesign-library-row:last-child{
  border-bottom:0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-client-library .redesign-library-group-meta b{
  background:#0B0F14!important;
  border-color:#505a68!important;
  color:#c7d5e7!important;
}
/* Help accordions become graphite, not solid navy blocks. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-help-item{
  background:#0B0F14!important;
  border:1px solid #404750!important;
  border-radius:17px!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-help-item>button{
  background:#0B0F14!important;
  color:#f0f4fa!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-help-item>div{
  background:#0B0F14!important;
  color:#c4ceda!important;
  border:0!important;
}

/* ===== migrated: client-graphite-active-diary.css ===== */
/* Client graphite 251: active workouts, distinct but quiet supersets,
   seamless diary meals and blue/green/orange home icons.
   Visual only; affects dark client theme, never the trainer or light theme. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"]{
 --cg-workout-bg:#0B0F14;
 --cg-workout-card:#22252b;
 --cg-workout-raised:#2d3138;
 --cg-workout-line:#424850;
 --cg-workout-muted:#b8c4d2;
}
/* Active workout: remove residual full-size navy tiles but preserve
   completed exercise/sets (green), chosen workout phase and primary finish. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout :is(
 .workout-live-exercise:not(.is-exercise-complete),
 .workout-live-toggle,.workout-live-exercise-inner,
 .workout-live-body,.workout-live-grouped-body,
 .workout-duration-strip,.workout-duration-card
){
 background-color:var(--cg-workout-card)!important;
 border-color:var(--cg-workout-line)!important;
 color:#f2f4f8!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-exercise:not(.is-exercise-complete)>.workout-live-toggle.open{
 background:var(--cg-workout-card)!important;
 border-color:var(--cg-workout-line)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-exercise:not(.is-exercise-complete)>.workout-live-body{
 background:var(--cg-workout-card)!important;
 border-color:var(--cg-workout-line)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout :is(
 .lyfta-set-wrap:not(.is-complete) .lyfta-set-swipe-content,
 .workout-live-body .set-card,.workout-live-body .workout-set-card,
 .workout-live-body .previous-set-row
){
 background:var(--cg-workout-raised)!important;
 border-color:rgba(120,146,184,.16)!important;
 color:#eaf0f8!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout :is(
 .lyfta-set-row input,
 .lyfta-aux-row input,
 .workout-live-body input,
 .workout-live-body select
){
 background:#0B0F14!important;
 border-color:#474e57!important;
 color:#f1f4f9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout .workout-live-body :is(
 .lyfta-prev-line button,.lyfta-add-set,.lyfta-add-drop,
 .lyfta-warmup-toggle,.lyfta-history-button,
 .btn-secondary,.secondary
){
 background:#0B0F14!important;
 border-color:#4a5664!important;
 color:#d2e1f3!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-exercise.is-exercise-complete,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-exercise.is-exercise-complete>.workout-live-toggle{
 background:#0B0F14!important;
 border-color:#436552!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-body .lyfta-set-wrap.is-complete .lyfta-set-swipe-content{
 background:#243c31!important;
 border-color:#466a56!important;
}
/* Superset has one graphite container with a short blue side accent, rather
   than a solid navy-filled rectangle. Collapsed and expanded use same styling. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-superset{
 background:#0B0F14!important;
 border:1px solid #52647a!important;
 border-left:3px solid #75aee9!important;
 border-radius:19px!important;
 box-shadow:none!important;
 overflow:hidden!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout :is(
 .workout-live-superset-head,.workout-live-superset-toggle,
 .workout-live-superset-head.has-timed,
 .workout-live-superset.has-timed .workout-live-superset-head
){
 background:#0B0F14!important;
 background-color:#0B0F14!important;
 border-color:#4d5967!important;
 color:#e9f1fa!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-superset-copy strong,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-superset-head strong{
 color:#acd4ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-superset-copy>span{
 color:#bac8d8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-superset .workout-live-superset-body{
 background:#0B0F14!important;
 border-color:#414b56!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-superset .workout-live-exercise-inner:not(.is-exercise-complete),
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-superset .workout-live-grouped-body{
 background:#0B0F14!important;
 border-color:#434b54!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-superset-divider{
 background:#11161D!important;
 border-color:#454d57!important;
}
/* Match active periodization chooser with graphite, keep its three semantic
   load-colored dots and selected radio indicator. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #workoutStartConfirmModal>.workout-start-confirm{
 background:#0B0F14!important;
 border:1px solid #454d57!important;
 box-shadow:0 20px 54px rgba(0,0,0,.38)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #workoutStartConfirmModal .workout-phase-option{
 background:#0B0F14!important;
 border-color:#566171!important;
 color:#edf2fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #workoutStartConfirmModal .workout-phase-check{
 background:#0B0F14!important;
 border-color:#78879a!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #workoutStartConfirmModal .workout-phase-option input[type="radio"]:checked + .workout-phase-check{
 background:#3476c5!important;
 border-color:#79b4f7!important;
 color:#fff!important;
}
/* Diary meals: single surface throughout; no square footer behind the
   Add product button or a separate rectangle around existing food items. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal{
 background:#0B0F14!important;
 background-image:none!important;
 border:1px solid #424850!important;
 border-radius:18px!important;
 overflow:hidden!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal :is(
 .nutrition-diary-meal-head,.nutrition-diary-meal-body
){
 background:#0B0F14!important;
 background-color:#0B0F14!important;
 background-image:none!important;
 border:0!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal-body{
 padding:0 13px 13px!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal .nutrition-diary-add{
 display:block!important;
 width:100%!important;
 margin:0!important;
 background:#0B0F14!important;
 border:1px solid #4e5865!important;
 border-radius:13px!important;
 color:#d5e7fd!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal .nutrition-diary-save-recipe{
 background:#0B0F14!important;
 border:1px dashed #4f647a!important;
 color:#bcd7f4!important;
 border-radius:12px!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal .nutrition-diary-item{
 background:transparent!important;
 border:0!important;
 border-top:1px solid #3f464e!important;
 padding:11px 0!important;
 border-radius:0!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal .nutrition-diary-item-actions button{
 background:#0B0F14!important;
 border-color:#4b5765!important;
 color:#d0e0f4!important;
}
/* Home palette: user's chosen blue + green + orange; no violet. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-home-today-card:first-child .client-home-today-icon,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-home-metric:first-child .client-home-metric-icon{
 background:#11161D!important;
 color:#94beff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-home-today-card:first-child .client-home-today-icon svg,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-home-metric:first-child .client-home-metric-icon svg{
 color:#94beff!important;
 stroke:#94beff!important;
}

/* ===== migrated: client-graphite-finishing-v252.css ===== */
/* ЄПЛАН client v252 — clean nested backgrounds, graphite rest timers,
   timed-history sets and semantic macro rings.
   Dark client mode only; no workout, timing or nutrition behavior changes. */

/* The progress "Achievements" grid has its own square backing layer in the
   legacy theme. Remove the BACKING, not the separate rounded achievement tiles. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-achievements{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-achievements>div{
  background:#0B0F14!important;
  border:1px solid #383e47!important;
  border-radius:16px!important;
  box-shadow:none!important;
}
/* Same square backing behind progress muscle rows: retain the outside card
   and an unobtrusive separator for each muscle, not a solid inner panel. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .progress-workout-muscles .progress-workout-muscle-row{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  border-top:1px solid #3c424b!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .progress-workout-muscles .progress-workout-muscle-row:first-of-type{
  border-top:0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .progress-workout-muscles .progress-workout-muscle-row>i{
  background:#0B0F14!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .progress-workout-muscles .progress-workout-muscle-row>i>b{
  background:#11161D!important;
}
/* Remove the opaque rectangle beneath the rounded More menu items.
   Keep each row's radius and faint separation; keep logout rose. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .redesign-more-page .redesign-more-list{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .redesign-more-page .redesign-more-item{
  background:#0B0F14!important;
  border:1px solid #393e47!important;
  box-shadow:none!important;
}
/* Graphite the actual rest timer, not its progress indication.
   The clock/timer accent stays blue for recognition, while a full bright
   navy surface or floating widget no longer dominates the workout. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-active-workout .workout-featured-rest{
  background:#0B0F14!important;
  background-image:none!important;
  border:1px solid #505864!important;
  border-radius:18px!important;
  box-shadow:none!important;
  color:#eff3f8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-active-workout .workout-featured-rest :is(
  .workout-featured-rest-heading,.workout-featured-rest-value
 ){color:#edf3fa!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-active-workout .workout-featured-rest :is(
  .workout-featured-rest-next,.workout-featured-rest-status
 ){color:#bac6d4!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-active-workout .workout-featured-rest .workout-featured-rest-actions>button,
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-active-workout .workout-featured-rest .workout-featured-rest-actions>.workout-featured-rest-pause,
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-active-workout .workout-featured-rest .workout-featured-rest-actions>.workout-featured-rest-stop,
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-active-workout .workout-featured-rest.is-paused .workout-featured-rest-actions>.workout-featured-rest-pause{
  background:#0B0F14!important;
  border:1px solid #535f6d!important;
  box-shadow:none!important;
  color:#dce6f2!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-active-workout .workout-featured-rest .workout-featured-rest-actions>.workout-featured-rest-pause{
  background:#11161D!important;
  border-color:#59789c!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-active-workout .workout-featured-rest .workout-featured-rest-settings{
  background:transparent!important;
  border:0!important;
  color:#c2ccd8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-active-workout .workout-featured-rest-ring .workout-featured-rest-track{
  stroke:#4a515b!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-active-workout .workout-featured-rest-ring .workout-featured-rest-progress{
  stroke:#649eec!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-floating-rest-timer{
  background:rgba(40,44,51,.97)!important;
  background-image:none!important;
  border:1px solid #505c6b!important;
  color:#f0f4fa!important;
  box-shadow:0 9px 24px rgba(0,0,0,.3)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-floating-rest-timer #floatingRestTimerValue{
  color:#f0f4fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-floating-rest-timer-copy small{
  color:#b9c8db!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-floating-rest-timer-icon svg{
  stroke:#75aaf1!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-active-workout .redesign-rest-timer-icon,
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-active-workout .redesign-rest-timer-play{
  background:#0B0F14!important;
  border-color:#56616e!important;
  color:#c2d5ef!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-active-workout .redesign-rest-timer-icon.running,
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 .redesign-active-workout .redesign-rest-timer-play.running{
  background:#11161D!important;
  border-color:#6685aa!important;
  color:#e2efff!important;
}
/* Timed set history: remove the old navy stripe/pill, retain 2-column
   wrapping and avoid changing saved values, labels or duration. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .progress-workout-sets .calendar-workout-set.progress-workout-timed-set{
  background:#0B0F14!important;
  background-color:#0B0F14!important;
  border:1px solid #464e58!important;
  box-shadow:none!important;
  color:#eaf0f8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .progress-workout-sets .calendar-workout-set.progress-workout-timed-set :is(
  span,strong,b
 ){color:#edf2fa!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .progress-workout-sets .calendar-workout-set.progress-workout-timed-set
 .progress-workout-timed-meta{
  background:transparent!important;
  color:#becbd8!important;
}
/* 0% BJU rings should not all look navy: each empty track is mildly tinted
   according to its original macro. Filled arcs keep stronger semantic color.
   Do not change percent or nutrition calculations. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-macro-ring.blue{
 --ring:#5c9feb;
 --ring-track:#2b435f;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-macro-ring.orange{
 --ring:#e9b351;
 --ring-track:#534632;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-macro-ring.green{
 --ring:#74cfa3;
 --ring-track:#2c4e40;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-macro-ring{
 background:conic-gradient(var(--ring) calc(var(--pct)*1%),var(--ring-track) 0)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-macro-ring::after{
 background:#0B0F14!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-macro-ring>span{
 color:#f0f4fa!important;
}

/* ===== migrated: client-graphite-components-v253.css ===== */
/* Client dark v253: tighten active workout hierarchy, calm completed sets,
 * graphite exercise substitution/notifications and correct library counters.
 * Client dark only; preserve behavior, light colors and trainer UI. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"]{
  --v253-main:#22252b;
  --v253-raised:#2b2f36;
  --v253-stroke:#3b424c;
  --v253-accent:#8dbaf4;
  --v253-success:#93d9b4;
}
/* Active workout: one card boundary, no nested hard-edged frame.
   Exercise collapse/open actions, swipe controls and inputs stay interactive. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-exercise:not(.workout-live-exercise-inner){
  background:var(--v253-main)!important;
  border:1px solid var(--v253-stroke)!important;
  border-radius:19px!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-exercise>.workout-live-toggle,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-exercise>.workout-live-toggle.open{
  background:var(--v253-main)!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-exercise>.workout-live-body{
  background:var(--v253-main)!important;
  border:0!important;
  box-shadow:none!important;
}
/* Completed set: graphite with a subtle mint edge instead of double green
   nested outlines, large green fill and a second green drop zone. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-body .lyfta-set-wrap.is-complete{
  margin-left:0!important;
  margin-right:0!important;
  margin-top:6px!important;
  margin-bottom:12px!important;
  padding:0!important;
  background:var(--v253-raised)!important;
  border:1px solid #4b6459!important;
  border-left:3px solid #6aaf8a!important;
  border-radius:15px!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-body .lyfta-set-wrap.is-complete :is(.lyfta-set-swipe,.lyfta-set-swipe-content){
  background:var(--v253-raised)!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-body .lyfta-set-wrap.is-complete .lyfta-set-row input{
  background:#292d33!important;
  border:1px solid #49515c!important;
  color:#f1f4f8!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-body .lyfta-set-wrap.is-complete .lyfta-drop-zone{
  background:var(--v253-raised)!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-body .lyfta-set-wrap.is-complete .lyfta-add-drop{
  background:#363d44!important;
  border:1px solid #54605b!important;
  color:#cfebdc!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout
 .workout-live-body .lyfta-set-wrap.is-complete .lyfta-set-done.done{
  background:#295241!important;
  border:1px solid #3d785b!important;
  color:#b5f1d0!important;
  box-shadow:none!important;
}
/* Replace exercise modal is mounted directly beneath <body>, not within #app.
   This is why earlier '#app .redesign-active-workout' styles never fixed it. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #alternativeExerciseModal{
  background:rgba(0,0,0,.72)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #alternativeExerciseModal>.swap-choice-card{
  background:#0B0F14!important;
  color:#f1f5fa!important;
  border:1px solid #4a525e!important;
  border-radius:22px!important;
  box-shadow:0 24px 65px rgba(0,0,0,.42)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #alternativeExerciseModal
 .edit-exercise-head h2,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #alternativeExerciseModal
 .swap-scope-actions strong{
  color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #alternativeExerciseModal
 :is(.edit-exercise-head .muted,.swap-scope-actions span){
  color:#b5c2d2!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #alternativeExerciseModal
 .edit-exercise-close{
  background:#0B0F14!important;
  border:1px solid #536173!important;
  color:#e8f0f9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #alternativeExerciseModal
 .alternative-modal-list>button,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #alternativeExerciseModal
 .swap-scope-actions>button{
  background:#0B0F14!important;
  border:1px solid #4b5663!important;
  color:#eaf0f8!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #alternativeExerciseModal
 .alternative-modal-list>button>small{
  color:#bcc8d6!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #alternativeExerciseModal
 .alternative-modal-list>button.alternative-current{
  background:#0B0F14!important;
  border-color:#6b93bb!important;
  color:#b7d9ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #alternativeExerciseModal
 .alternative-modal-list>button.alternative-current>small{
  color:#9fc4eb!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #alternativeExerciseModal
 .swap-back-btn{
  background:#0B0F14!important;
  border-color:#4b5562!important;
  color:#cfdded!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #alternativeExerciseModal
 .swap-step-label{
  color:#9bc4f3!important;
}
/* Diary: add-product should look clearly actionable but not a bright blue
   panel. Give it a restrained accent border while keeping a shared meal bg. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .nutrition-diary-meal .nutrition-diary-add{
  background:#0B0F14!important;
  border:1px solid #66809c!important;
  border-radius:13px!important;
  color:#e3effe!important;
  font-weight:800!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .nutrition-diary-meal .nutrition-diary-add:active{
  background:#11161D!important;
}
/* Notification modal is also portaled to body. Neutral graphite, green only
   for enabled push and subtle blue for unread indicators. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 :is(#notificationModal,#notificationDetailModal) .notification-modal-card{
  background:#0B0F14!important;
  border:1px solid #48515d!important;
  color:#edf2f9!important;
  box-shadow:0 20px 58px rgba(0,0,0,.4)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 :is(#notificationModal,#notificationDetailModal) .notification-close{
  background:#0B0F14!important;
  border:1px solid #4b5663!important;
  color:#e3edf8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-empty{
  background:#0B0F14!important;
  border:1px dashed #4b535f!important;
  color:#eaf0f8!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-empty .ui-icon{
  color:#a9b9ca!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-swipe .notification-item{
  background:#0B0F14!important;
  border:1px solid #454e59!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #notificationModal .notification-swipe .notification-item.unread{
  background:#0B0F14!important;
  border-color:#6684a6!important;
}
/* Exercise library count: remove full rectangular blue background behind
   the number AND chevron. Keep just a soft circular number badge. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-client-library
 .redesign-library-group-head .redesign-library-group-meta{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  padding:0!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-client-library
 .redesign-library-group-head .redesign-library-group-meta b{
  display:grid!important;
  place-items:center!important;
  min-width:32px!important;
  height:30px!important;
  background:#0B0F14!important;
  border:1px solid #4e5b69!important;
  border-radius:999px!important;
  color:#d0e0ef!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-client-library
 .redesign-library-group-head .redesign-library-group-meta i{
  display:block!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  padding:0!important;
  color:#bcc9d6!important;
  box-shadow:none!important;
}

/* v254 — remove the square outer active-session slab and ghost dividers.
   The active workout is a layout container, NOT another full-size card.
   Child timers/exercises retain their own rounded boundaries. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .redesign-training-page > .redesign-active-workout{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  box-shadow:none!important;
  padding:0!important;
  margin:0!important;
  overflow:visible!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .redesign-training-page > .redesign-active-workout > .redesign-active-workout-head,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .redesign-training-page > .redesign-active-workout > h2{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
/* An old v98 rule draws a full-width top line before the finish button. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .redesign-training-page:has(.training-live) .finish-workout-wrap{
  border:0!important;
  border-top:0!important;
  box-shadow:none!important;
  background:transparent!important;
  padding-top:0!important;
}

/* ===== migrated: client-unified-dark-v268.css ===== */
/* Client unified dark v268: palette shared by all client tabs, nested pages and dialogs.
   Excludes trainer/light; preserves layout, nutrition ring colors, checked sets,
   timer progress, destructive and status colors. */
html:has(>body.eplan-redesign.client-ui[data-eplan-theme="dark"]){background:#000!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]{color-scheme:dark;--client-graphite-bg:#000;--client-graphite-surface:#0B0F14;--client-graphite-raised:#11161D;--client-graphite-border:rgba(120,146,184,.16);--client-graphite-border-strong:rgba(120,146,184,.22);--client-graphite-text:#f4f7fb;--client-graphite-muted:#9AA6B2;--client-graphite-accent:#71B1FF;--client-graphite-blue-surface:rgba(45,127,249,.12);--bg:#000;--card:#0B0F14;--card2:#11161D;--line:rgba(120,146,184,.16);--text:#f4f7fb;--muted:#9AA6B2;background:#000!important;color:#F4F7FB!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(#app,.wrap.client-shell,.client-section-page,.client-home,.redesign-training-page,.redesign-progress-page,.redesign-progress-shell,.redesign-nutrition-page,.redesign-bju-page,.redesign-more-page,.redesign-more-subpage,.client-profile-page,.measurements-page){background-color:#000!important;color:#f4f7fb!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-top:not(.client-top-compact){background-color:#000!important;border-color:#323a45!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(.client-home-today-card:not(.is-completed),.client-home-metric,.client-home-trainer-card,.client-weekly-checkin:not(.done),.redesign-training-summary,.redesign-training-stat-grid>div,.redesign-training-last,.redesign-training-details,.redesign-training-help,.redesign-progress-kpi,.redesign-progress-week,.redesign-progress-chart-card,.redesign-progress-training-row,.redesign-progress-achievements>div,.redesign-nutrition-day-row,.redesign-nutrition-summary-grid>div,.redesign-calorie-card,.redesign-macro-ring-card,.redesign-bju-summary,.activity-saved-card,.cardio-editor-card,.measurement-place-card,.measurement-history-calendar-card,.measurement-history-card,.measurement-compare-card,.redesign-more-item,.redesign-more-settings-card,.redesign-settings-panel,.redesign-help-item,.client-profile-details,.trainer-market-card,.trainer-profile-section){background-color:#0B0F14!important;border-color:rgba(120,146,184,.16)!important;color:#f4f7fb!important;box-shadow:inset 0 1px 0 rgba(248,251,255,.045),0 5px 16px rgba(0,0,0,.14)!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(.redesign-training-day:not(.is-done):not(.is-next),.redesign-client-library .redesign-library-group,.nutrition-diary-meal,.redesign-nutrition-page .meal-plan-card,.redesign-progress-workout-detail .progress-workout-detail-section){background-color:#0B0F14!important;border-color:rgba(120,146,184,.16)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(.client-home-metric strong,.redesign-progress-kpi strong,.redesign-nutrition-day-row strong,.redesign-more-item strong,.redesign-training-day strong,.measurement-place-card strong,.redesign-client-library .redesign-library-row strong){color:#f4f7fb!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(.redesign-progress-kpi small,.redesign-progress-chart-card small,.client-home-metric small,.measurement-history-card small,.redesign-training-summary small,.redesign-more-item small){color:#b9c6d5!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){background-color:#0B0F14!important;border-color:#4a5563!important;color:#f5f8fc!important;color-scheme:dark}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(input,textarea)::placeholder{color:#aebccc!important;opacity:1!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(input,textarea,select,button):focus-visible{outline:2px solid #9dc7ff!important;outline-offset:2px!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(.redesign-start-workout,.redesign-nutrition-actions>button:not(.nutrition-food-search-button),.nutrition-date-save,.profile-save,.cardio-save-neutral,.completed-workout-edit-btn,.nutrition-diary-edit-actions>.primary,.redesign-progress-training-more){background:#2D7FF9!important;border:1px solid #4594FF!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.client-ui[data-eplan-theme="dark"] :is(#weeklyCheckinModal .weekly-checkin-save,#completedWorkoutEditModal .completed-workout-save,#myProductModal .my-food-primary,#foodSearchModal .food-lookup-primary){background:#11161D!important;border:1px solid #4594FF!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.client-ui[data-eplan-theme="dark"] #app :is(.redesign-start-workout:active:not(:disabled),.redesign-nutrition-actions>button:not(.nutrition-food-search-button):active:not(:disabled),.nutrition-date-save:active:not(:disabled),.profile-save:active:not(:disabled),.cardio-save-neutral:active:not(:disabled)){background:#11161D!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(.redesign-training-tabs,.redesign-progress-tabs,.redesign-nutrition-tabs,.client-nutrition-view-tabs,.eplan-theme-options,.redesign-bju-tabs){background-color:#0B0F14!important;border-color:#3a4859!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(.redesign-training-tabs button.active,.redesign-progress-tabs button.active,.redesign-nutrition-tabs button.active,.client-nutrition-view-tabs button[aria-selected=true]){background:#142640!important;color:#c0dcff!important;border-color:#527caa!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-bottom-nav{background:rgba(11,15,20,.95)!important;border-color:rgba(120,146,184,.16)!important;box-shadow:0 8px 24px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.025)!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-bottom-nav button:not(.active){color:#b9c4d3!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-bottom-nav button.active{background:rgba(45,127,249,.13)!important;color:#71B1FF!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(.unified-back-button,.redesign-back-title>button,.measurement-calendar-head>button,.calendar-head>button,.redesign-progress-kpi-arrows>button,.nutrition-diary-date-chevron){background:#11161D!important;border:1px solid #547497!important;color:#c5e0ff!important;border-radius:12px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.06)!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(.unified-back-button,.redesign-back-title>button,.measurement-calendar-head>button,.calendar-head>button){display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(.unified-back-button,.redesign-back-title>button)>.ui-icon{width:21px!important;height:21px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.4!important;transform:none!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day.is-next{background-color:#0B0F14!important;border-color:#577da8!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day.is-next .redesign-training-day-main{background-color:#0B0F14!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day.is-done{background-color:#0B0F14!important;border-color:#436853!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day.is-done .redesign-training-day-main{background-color:#0B0F14!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day-body{background-color:#0B0F14!important;border-color:#48505c!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day .redesign-training-exercise{background-color:#0B0F14!important;border-color:#424d59!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-superset{border-radius:17px!important;border-left:3px solid #72a9ec!important;background:#0B0F14!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-superset .redesign-training-superset-label{background:#11161D!important;color:#bddcff!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout .workout-live-exercise:not(.is-exercise-complete):not(.workout-live-exercise-inner){background-color:#0B0F14!important;border-color:#46515f!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout .workout-live-exercise>.workout-live-toggle{background-color:#0B0F14!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout .workout-featured-rest{background-color:#0B0F14!important;border-color:#5a7390!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-active-workout .lyfta-set-wrap:not(.is-complete){background-color:#11161D!important;border-color:#485561!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal :is(.nutrition-diary-meal-head,.nutrition-diary-meal-body){background-color:#0B0F14!important;border-color:#414b55!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-item{background-color:#0B0F14!important;border:1px solid #414f5c!important;border-radius:10px!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal .nutrition-diary-add{background:#11161D!important;border:1px solid #6686ac!important;color:#d6e9ff!important;box-shadow:none!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal .nutrition-diary-item .nutrition-diary-item-actions button{background:#0B0F14!important;border-color:#53606c!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-nutrition-page .nutrition-menu-meal-v2{background-color:#0B0F14!important;border-color:#46505c!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-nutrition-page .nutrition-menu-meal-v2 .nutrition-menu-ingredient{background-color:#0B0F14!important;border-color:#43505e!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-kpi-weight{border-top:3px solid #75b6ff!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-topgrid .redesign-progress-kpi:nth-child(2){border-top:3px solid #71d2a8!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-chart-card{border-top:3px solid #73b7ff!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-training-row{background:#0B0F14!important;border-color:#495a6b!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-training-row .training-row-icon{background:#11161D!important;color:#a5ceff!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .progress-workout-exercise{background:#0B0F14!important;border:1px solid #455364!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .progress-workout-exercise .calendar-workout-set{background:#0B0F14!important;border-color:#506071!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .measurement-history-calendar-card{border-color:#465361!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .measurement-calendar-day:not(.empty):not(.active){background:#2b333e!important;border-color:#4a5565!important;color:#d0dae8!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .measurement-calendar-day.has-data:not(.active){background:#304664!important;border-color:#6286ae!important;color:#c0dcff!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .measurement-calendar-day.active{background:#3268ad!important;border-color:#8bc0ff!important;color:#fff!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(.activity-field-card,.activity-steps-card){background:#0B0F14!important;border-color:#485560!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .cardio-entry-card{background:#0B0F14!important;border-color:#465361!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .cardio-entry-card.selected{background:#2b405a!important;border-color:#7aa4d0!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .activity-saved-metrics>div{background:#0B0F14!important;border-color:#4c5a68!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-more-list{background:transparent!important;border:0!important;box-shadow:none!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-more-item{background:#0B0F14!important;border-color:#424d59!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-client-library .redesign-library-group{background:#0B0F14!important;border:1px solid #424f5b!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-client-library .redesign-library-group-head{background:#0B0F14!important;border-color:#465461!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-client-library .redesign-library-row{background:#0B0F14!important;border-color:#424b56!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-profile-details{border-color:#44505d!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(#profileModal .profile-editor-card,#nutritionDateModal .nutrition-date-modal,#weeklyCheckinModal .weekly-checkin-modal,#completedWorkoutEditModal .completed-workout-edit-card,#alternativeExerciseModal .swap-choice-card,#foodSearchModal .food-lookup-modal,#myProductModal .my-foods-panel,#myFoodsModal .my-foods-panel,#myRecipesModal .my-foods-panel,#notificationModal .notification-modal-card,#notificationDetailModal .notification-modal-card,#trainerRequestModal .trainer-request-modal,#trainerReviewModal .trainer-review-modal){background-color:#0B0F14!important;border-color:#4a5562!important;color:#f4f7fb!important;box-shadow:0 24px 60px rgba(0,0,0,.4)!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(#profileModal .profile-field,#completedWorkoutEditModal .completed-workout-edit-exercise,#myProductModal .my-food-row,#foodSearchModal .food-lookup-row,#notificationModal .notification-item){background-color:#0B0F14!important;border-color:#485462!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] :is(#profileModal .profile-close,#notificationModal .notification-close,#notificationDetailModal .notification-close,#alternativeExerciseModal .edit-exercise-close){background:#0B0F14!important;border-color:#526071!important;color:#e7f0fb!important}
@media(max-width:360px){body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-training-row{padding-left:9px!important;padding-right:9px!important}}

/* v269 — client dark frame cleanup. Only client dark mode.
   Avoid double borders on expanded training days and the empty results panel.
   Keep selected/complete semantic styling distinct from ordinary surfaces. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .completed-workout-reopen-btn{
  background:#0B0F14!important;
  background-image:none!important;
  border:1px solid rgba(112,138,174,.34)!important;
  color:#dce7f5!important;
  -webkit-text-fill-color:#dce7f5!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .completed-workout-reopen-btn:active:not(:disabled){
  background:#0B0F14!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
  .progress-workout-detail-hero,
  .progress-workout-detail-section,
  .progress-workout-muscles,
  .progress-workout-stat,
  .redesign-more-subpage .redesign-settings-panel,
  .redesign-training-day:not(.is-done):not(.is-next)
){
  border-color:rgba(112,138,174,.24)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-detail-section .redesign-empty-panel{
  background:#0B0F14!important;
  background-image:none!important;
  border:1px dashed rgba(112,138,174,.19)!important;
  color:#dce5f0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-detail-section .redesign-empty-panel span{
  color:#aebccb!important;
}
/* One exterior stroke for the day; subtle divider inside it.
   Preserve the brighter border only for the next day and green completion. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day.is-next{
  border-color:rgba(116,165,231,.64)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day.is-done{
  border-color:rgba(105,164,128,.43)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day-body{
  background:#0B0F14!important;
  border:0!important;
  border-top:1px solid rgba(112,138,174,.13)!important;
  outline:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day-body>.redesign-training-exercises{
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day-body .redesign-training-exercises>.redesign-training-exercise{
  background:transparent!important;
  border:0!important;
  border-bottom:1px solid rgba(112,138,174,.15)!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-training-day-body .redesign-training-exercises>.redesign-training-exercise:last-child{
  border-bottom:0!important;
}
/* The theme selector was sitting on top of its own solid rectangular strip. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-more-subpage .redesign-settings-panel{
  border-color:rgba(112,138,174,.24)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .eplan-theme-options{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .eplan-theme-option:not([aria-checked="true"]){
  background:#0B0F14!important;
  border:1px solid rgba(112,138,174,.23)!important;
  color:#d9e3ef!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .eplan-theme-option[aria-checked="true"]{
  background:#11161D!important;
  border:1px solid #478ce6!important;
  color:#dcecff!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-bottom-nav{
  border:1px solid rgba(112,138,174,.23)!important;
  box-shadow:0 10px 25px rgba(0,0,0,.39),inset 0 1px 0 rgba(255,255,255,.032)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] .client-bottom-nav::before{
  background:linear-gradient(180deg,rgba(255,255,255,.028),transparent)!important;
}

/* v270 — completed workout / Progress: eliminate the hard rectangular grid.
   Each exercise is its own softly separated rounded card; set rows sit inside.
   Light mode, trainer view and recorded workout data remain unchanged. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-detail-section>.progress-workout-exercise{
  box-sizing:border-box!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  padding:14px 12px!important;
  background:#0B0F14!important;
  border:1px solid rgba(112,138,174,.21)!important;
  border-radius:16px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.026)!important;
  outline:0!important;
  overflow:hidden!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-detail-section>.progress-workout-exercise:first-of-type{
  padding-top:14px!important;
  border-top:1px solid rgba(112,138,174,.21)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-detail-section>.progress-workout-exercise+.progress-workout-exercise{
  margin-top:12px!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-exercise-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-width:0!important;
  margin-bottom:12px!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-exercise-head>div{
  min-width:0!important;
  flex:1 1 auto!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-exercise-head>div>strong{
  display:block!important;
  color:#f3f6fb!important;
  line-height:1.32!important;
  overflow-wrap:break-word!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-exercise-head>span{
  flex:0 0 auto!important;
  padding:5px 8px!important;
  margin:0!important;
  border:1px solid rgba(112,159,216,.32)!important;
  border-radius:10px!important;
  background:#11161D!important;
  color:#c9ddf6!important;
  font-weight:800!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-sets{
  min-width:0!important;
  gap:8px!important;
  background:transparent!important;
  border:0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-set-group{
  min-width:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-sets .calendar-workout-set{
  box-sizing:border-box!important;
  min-width:0!important;
  background:#0B0F14!important;
  border:1px solid rgba(112,138,174,.24)!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-sets .calendar-workout-set.progress-workout-timed-set{
  background:#0B0F14!important;
  border-color:rgba(112,138,174,.24)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-sets .calendar-workout-set .progress-workout-timed-meta{
  min-width:0!important;
  white-space:normal!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-aux{
  background:#0B0F14!important;
  border:1px solid rgba(112,138,174,.18)!important;
  border-radius:10px!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-drop{
  background:#0B0F14!important;
  border-left-color:#627f9f!important;
}
@media(max-width:370px){
 body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-detail-section>.progress-workout-exercise{
   padding:12px 10px!important;
 }
 body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .redesign-progress-workout-detail .progress-workout-exercise-head>span{
   padding:5px 6px!important;
   font-size:10px!important;
 }
}

/* v277 — client calendar/day diary: remove legacy white inner cards.
   Dark-only; the existing light history and nutrition design stays intact. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
 .diary-day-hero,.calendar-workout-session,.calendar-workout-exercise,
 .calendar-workout-exercise.standalone,.calendar-workout-superset,
 .calendar-nutrition-card,.calendar-nutrition-empty,
 .calendar-activity-card,.calendar-activity-empty
){
 background:#0B0F14!important;
 background-image:none!important;
 border-color:#454e59!important;
 color:#f1f5fa!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .diary-day-hero{
 background:#0B0F14!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .diary-day-icon{
 background:#0B0F14!important;
 color:#91bdf9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .diary-day-copy h1,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-workout-session-top>strong,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-workout-toggle strong,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-nutrition-empty-copy strong,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-activity-empty strong,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-nutrition-title strong,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-activity-title strong{
 color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
 .diary-day-kicker,.diary-day-weekday,.calendar-workout-count,
 .calendar-workout-replacement,.calendar-nutrition-empty-copy small,
 .calendar-activity-empty small,.calendar-nutrition-title span:not(.calendar-nutrition-icon),
 .calendar-activity-title span:not(.calendar-activity-icon),
 .calendar-workout-session-duration-inline
){
 color:#aebbc9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-workout-toggle{
 background:transparent!important;
 color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-workout-exercise.with-divider{
 border-color:#394651!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-workout-superset{
 border-color:#4c84bb!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-workout-superset-head{
 background:#0B0F14!important;
 border-color:#3c6082!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-workout-superset-head strong{
 color:#a9d4ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-workout-superset-head span{
 color:#b4c6d8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-workout-set{
 background:#0B0F14!important;
 border:1px solid #45505d!important;
 color:#c0cbd9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-workout-set strong{
 color:#f1f5fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-workout-set em{
 color:#adbdcd!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-workout-session-status{
 color:#79d2a3!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-workout-session.is-finished .calendar-workout-session-status,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-nutrition-status,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-activity-status{
 background:#0B0F14!important;
 border-color:#39634e!important;
 color:#93e2b7!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-review-done{
 border-color:#3d4753!important;
 color:#b7c8d7!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-nutrition-empty,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-activity-empty{
 border:1px dashed #465464!important;
 border-radius:15px!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
 .calendar-nutrition-empty-icon,.calendar-activity-empty-icon,.calendar-nutrition-icon,
 .calendar-activity-icon
){
 background:#0B0F14!important;
 color:#9ac7fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .calendar-activity-empty-icon .activity-approved-icon{
 color:#9ac7fa!important;
 stroke:#9ac7fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .history-nutrition-add{
 background:#11161D!important;
 border:1px solid #456f9a!important;
 color:#afd3ff!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 :is(.calendar-nutrition-macros>div,.calendar-activity-metrics>div){
 background:#0B0F14!important;
 border-color:#44505c!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 :is(.calendar-nutrition-macros span,.calendar-activity-metrics span){
 color:#b1c1d1!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 :is(.calendar-nutrition-macros strong,.calendar-activity-metrics strong){
 color:#eff4fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 :is(.calendar-nutrition-edit,.trainer-calendar-review textarea){
 background:#0B0F14!important;
 border-color:#4b5d72!important;
 color:#d2e6fb!important;
}


/* v278 — Unified neutral graphite, brighter legibility.
   Only the CLIENT dark theme is affected. Blue is reserved for actions,
   selected states, the superset accent and approved semantic icons. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"]{
 --client-graphite-bg:#000;
 --client-graphite-surface:#0B0F14;
 --client-graphite-raised:#11161D;
 --client-graphite-border:rgba(120,146,184,.16);
 --client-graphite-border-strong:rgba(120,146,184,.28);
 --client-graphite-text:#f5f7fa;
 --client-graphite-muted:#9AA6B2;
 --bg:#000;--card:#0B0F14;--card2:#11161D;
 --line:rgba(120,146,184,.16);--text:#f5f7fa;--muted:#9AA6B2;
}
/* Shared dark surface tone for nested client screens: don't color functional,
   semantic cards, meal glyphs or the blue superset header. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
 .trainer-profile-public .trainer-profile-cover,
 .trainer-profile-public .trainer-profile-section,
 .trainer-profile-public .trainer-profile-service-note,
 .measurement-history-calendar-card,
 .measurement-history-calendar-body,
 .nutrition-diary-card,.nutrition-diary-meal,
 .completed-workout-edit-entry
){
 background:#0B0F14!important;
 background-image:none!important;
 border-color:rgba(120,146,184,.16)!important;
 color:#f5f7fa!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
 .trainer-profile-public .trainer-profile-stats>div,
 .trainer-profile-public .trainer-market-socials a,
 .measurement-calendar-hint,
 .nutrition-diary-date-pill,
 .nutrition-diary-day-total,
 .nutrition-diary-meal-body,.nutrition-diary-meal-head,
 .nutrition-diary-item
){
 background:#0B0F14!important;
 background-image:none!important;
 border-color:#4d5662!important;
 color:#f5f7fa!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
 .trainer-profile-public .trainer-profile-cover-copy h2,
 .trainer-profile-public .trainer-profile-cover-copy .trainer-profile-rating-line strong,
 .trainer-profile-public .trainer-profile-stats strong,
 .trainer-profile-public .trainer-profile-section h3,
 .trainer-profile-public .trainer-profile-service-note strong,
 .measurement-calendar-head>strong,
 .measurement-history-calendar-toggle strong,
 .nutrition-diary-heading h2,
 .nutrition-diary-meal-title strong,
 .nutrition-diary-item strong
){color:#f5f7fa!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app :is(
 .trainer-profile-public .trainer-profile-cover-copy>p,
 .trainer-profile-public .trainer-profile-rating-line small,
 .trainer-profile-public .trainer-profile-stats span,
 .trainer-profile-public .trainer-profile-service-note p,
 .trainer-profile-public .trainer-profile-section p,
 .measurement-history-calendar-toggle small,
 .measurement-calendar-weekdays span,
 .measurement-calendar-hint,
 .nutrition-diary-heading p,.nutrition-diary-date-row>span,
 .nutrition-diary-meal-title small,.nutrition-diary-item small,
 .nutrition-diary-meal-calories,.nutrition-diary-note,
 .nutrition-diary-day-total span
){color:#bdc7d4!important}
/* Coach profile: no legacy blue backing on the hero and service block. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .trainer-profile-public .trainer-profile-cover{
 background:#0B0F14!important;
 border:1px solid #56606c!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .trainer-profile-public .trainer-profile-service-note{
 background:#0B0F14!important;
 border-color:#56606c!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .trainer-profile-public .trainer-profile-tags>span{
 background:#0B0F14!important;
 border-color:#515f6c!important;
 color:#d9e4ef!important;
}
/* Measurement history: neutral calendar grid and readable date; only the
   selected/recorded day gets the blue accent. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .measurement-history-calendar-card{
 background:#0B0F14!important;
 border-color:#505762!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .measurement-history-calendar-body{
 background:#0B0F14!important;
 border-top-color:#464f5b!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .measurement-calendar-day:not(.active):not(.empty){
 background:#2c3036!important;
 border-color:#4c5560!important;
 color:#d8e0e9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .measurement-calendar-day.empty{
 background:transparent!important;
 border-color:transparent!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .measurement-calendar-day.active{
 background:#344d70!important;
 border-color:#7299c7!important;
 color:#e2f0ff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .measurement-calendar-head>button.trainer-date-nav-button{
 background:#0B0F14!important;
 border:1px solid #5b6673!important;
 color:#dae8f8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .measurement-calendar-head>button.trainer-date-nav-next>.ui-icon{
 transform:none!important;
}
/* Nutrition: keep colored food icons, replace old blue-tinted panes and
   unselected controls with neutral graphites. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .nutrition-diary-date-pill{
 background:#0B0F14!important;
 border:1px solid #55606c!important;
 color:#e7edf6!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .nutrition-diary-day-total{
 background:#0B0F14!important;
 border:1px solid #555d68!important;
 color:#f5f7fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .nutrition-diary-day-total strong,
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .nutrition-diary-date-pill strong{
 color:#f5f7fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .client-section-page .nutrition-diary-card .nutrition-diary-meal{
 background:#0B0F14!important;
 background-color:#0B0F14!important;
 border:1px solid #515963!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .client-section-page .nutrition-diary-card .nutrition-diary-meal :is(.nutrition-diary-meal-body,.nutrition-diary-meal-head){
 background:#0B0F14!important;
 background-color:#0B0F14!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .nutrition-diary-meal .nutrition-diary-item{
 background:transparent!important;
 border-color:#474e57!important;
}
/* OLED B: adding food is primary; saving a recipe remains secondary. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal .nutrition-diary-save-recipe{
 background:#0B0F14!important;
 border:1px solid rgba(120,146,184,.31)!important;
 color:#BFD9FB!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal .nutrition-diary-add{
 background:#2D7FF9!important;
 background-image:none!important;
 border:1px solid #4594FF!important;
 color:#FFF!important;
 -webkit-text-fill-color:#FFF!important;
 font-weight:850!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 6px 15px rgba(45,127,249,.14)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .nutrition-diary-meal .nutrition-diary-add:active:not(:disabled){
 background:#216BDA!important;
 border-color:#3486F9!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .nutrition-diary-meal .nutrition-diary-item-actions button{
 background:#0B0F14!important;
 border-color:#59636d!important;
 color:#e4eaf2!important;
}
/* Ordinary exercise controls stay graphite; blue remains on the
   outlined superset grouping (specified in client-training-current.css). */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app
 .redesign-active-workout.eplan-training-v2-live .workout-live-body
 :is(.lyfta-workout-tools button,.lyfta-add-set){
 background:#0B0F14!important;
 border-color:#566270!important;
 color:#e8eef7!important;
}
/* Modals live directly under body (outside #app). */
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 #weeklyCheckinModal .weekly-checkin-modal,
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 #completedWorkoutEditModal .completed-workout-edit-card{
 background:#0B0F14!important;
 background-image:none!important;
 border:1px solid #5a626d!important;
 color:#f5f7fa!important;
 box-shadow:0 18px 60px rgba(0,0,0,.46)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 #weeklyCheckinModal :is(h2,.weekly-checkin-field>label,.weekly-checkin-comment),
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 #completedWorkoutEditModal :is(h2,.completed-workout-edit-exercise-head strong){
 color:#f5f7fa!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 #weeklyCheckinModal :is(.weekly-checkin-modal small,.weekly-checkin-comment textarea::placeholder),
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 #completedWorkoutEditModal :is(.completed-workout-edit-head p,.completed-workout-edit-aux-title small,.completed-workout-edit-labels){
 color:#bdc7d4!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 #weeklyCheckinModal .weekly-checkin-scale input:not(:checked)+span{
 background:#151B24!important;
 border:1px solid #596575!important;
 color:#e0e8f2!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 #weeklyCheckinModal .weekly-checkin-scale input:checked+span{
 background:#2D7FF9!important;
 border-color:#609bdf!important;
 color:#fff!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 #weeklyCheckinModal :is(.weekly-checkin-comment textarea,.between>button.dark){
 background:#0B0F14!important;
 border-color:#56606e!important;
 color:#e8eef8!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 #completedWorkoutEditModal :is(
 .completed-workout-edit-exercise,.completed-workout-edit-aux-section,
 .completed-workout-timed-readonly
){
 background:#0B0F14!important;
 border:1px solid #525b67!important;
 color:#eef2f8!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 #completedWorkoutEditModal :is(
 .completed-workout-edit-set input,.completed-workout-edit-aux-row input
){
 background:#0B0F14!important;
 border:1px solid #58616c!important;
 color:#f5f7fa!important;
}
body.eplan-redesign.client-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
){
 background:#0B0F14!important;
 border:1px solid #5b6c7e!important;
 color:#dbe8f7!important;
 box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 #completedWorkoutEditModal :is(
 .completed-workout-edit-aux-title span,.completed-workout-edit-set-number,
 .completed-workout-timed-readonly strong
){color:#e5ebf4!important}
body.eplan-redesign.client-ui[data-eplan-theme="dark"]
 #completedWorkoutEditModal :is(
 .completed-workout-edit-head .dark,.completed-workout-edit-exercise-head>span
){
 background:#0B0F14!important;
 border-color:#586470!important;
 color:#e0e9f5!important;
}

/* Compact, visually distinct access reminder on the OLED client home. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-access-banner:not(.expired){
 display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:5px 12px!important;
 min-height:0!important;margin:0 0 14px!important;padding:10px 13px!important;
 background:#151612!important;border:1px solid rgba(232,172,82,.26)!important;
 border-radius:14px!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-access-banner:not(.expired)>strong{
 display:inline-flex!important;align-items:center!important;gap:7px!important;
 padding:4px 9px!important;border-radius:999px!important;
 background:rgba(244,168,58,.12)!important;color:#F2C181!important;
 font-size:12px!important;font-weight:800!important;line-height:1.35!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-access-banner:not(.expired)>strong:before{
 content:"";display:block;flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:#E6A354;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #app .client-access-banner:not(.expired)>p{
 min-width:0!important;margin:0!important;font-size:11px!important;line-height:1.4!important;
 color:#B4BECA!important;overflow-wrap:anywhere!important;
}

/* OLED B v285: profile editor uses the same black surfaces as the app. */
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal>.profile-editor-card{
 box-sizing:border-box!important;width:min(610px,calc(100vw - 28px))!important;
 max-height:calc(100dvh - 30px)!important;padding:0!important;overflow-y:auto!important;
 border:1px solid rgba(120,146,184,.27)!important;border-radius:22px!important;
 background:#0B0F14!important;color:#F4F7FB!important;
 box-shadow:0 30px 70px rgba(0,0,0,.54)!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-sticky{
 top:0!important;margin:0!important;padding:18px 20px 15px!important;
 border-bottom:1px solid rgba(120,146,184,.16)!important;
 background:linear-gradient(110deg,#111C2A,#0B0F14)!important;color:#F4F7FB!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-head h2{
 font-size:24px!important;line-height:1.15!important;
 letter-spacing:-.02em!important;color:#F4F7FB!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-close{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;
 margin:0!important;padding:0!important;background:#151B24!important;
 border:1px solid rgba(120,146,184,.37)!important;border-radius:12px!important;
 color:#DCEBFC!important;box-shadow:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-close svg{
 display:block!important;width:20px!important;height:20px!important;
 flex:none!important;stroke:currentColor!important;transform:none!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-body{
 padding:17px 20px 22px!important;background:#0B0F14!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-grid{
 gap:12px!important;margin-top:0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-field{
 min-width:0!important;padding:0!important;border:0!important;background:transparent!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-field label{
 margin:0 0 6px!important;font-size:12px!important;
 font-weight:700!important;color:#B5C4D6!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-body :is(input,textarea,select),
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal #pfSex{
 box-sizing:border-box!important;width:100%!important;min-width:0!important;
 min-height:48px!important;padding:11px 13px!important;
 border:1px solid rgba(120,146,184,.30)!important;border-radius:12px!important;
 background-color:#11161D!important;color:#F4F7FB!important;
 font-size:16px!important;box-shadow:none!important;color-scheme:dark;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal #pfSex{
 padding-right:44px!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal textarea{
 min-height:92px!important;line-height:1.4!important;resize:vertical;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-body :is(input,textarea)::placeholder{
 color:#7F93AA!important;opacity:1!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-body :is(input,textarea,select):focus{
 border-color:#4594FF!important;outline:2px solid rgba(45,127,249,.17)!important;outline-offset:0!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-hint{
 margin-top:5px!important;font-size:11px!important;line-height:1.35!important;color:#8D9DAE!important;
}
body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-save{
 min-height:48px!important;margin:10px 0 0!important;
 border:1px solid #4594FF!important;border-radius:13px!important;
 background:#2D7FF9!important;color:#FFF!important;
 box-shadow:0 8px 20px rgba(45,127,249,.12)!important;
}
@media(max-width:375px){
 body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-sticky{
  padding:15px 15px 13px!important;
 }
 body.eplan-redesign.client-ui[data-eplan-theme="dark"] #profileModal .profile-modal-body{
  padding:15px 15px 20px!important;
 }
}
