/* Private preview: tighter Home rhythm and readable saved workout details. */
:root body.client-dashboard-page .client-home-grid { gap: 12px; }
:root body.client-dashboard-page .client-home-intro { margin-bottom: 12px; }
:root body.client-dashboard-page .client-home-rewards {
  border-color: #4b5058;
  background: linear-gradient(145deg, #292d34, #22262b);
  box-shadow: 0 8px 22px rgb(0 0 0 / 12%);
}
:root body.client-dashboard-page .client-home-reward-card { min-height: 84px; }
:root body.client-dashboard-page .client-home-reward-mascot { width: 60px; height: 64px; }
:root body.client-dashboard-page .client-home-last-workout {
  min-height: 74px; padding: 10px 14px;
  border-color: #4b5058;
  background: linear-gradient(145deg, #292d34, #22262b);
}
:root body.client-dashboard-page .client-home-last-icon { flex-basis: 44px; width: 44px; height: 44px; }
:root body.client-dashboard-page .client-home-next { gap: 7px; }
:root body.client-dashboard-page .client-home-next-button { min-height: 46px; }
:root body.client-dashboard-page .client-home-planner,
:root body.client-dashboard-page .client-home-community { padding: 14px 16px; }
:root body.client-dashboard-page .client-home-week-days button { min-height: 48px !important; }
:root body.client-dashboard-page .client-home-week-detail { min-height: 44px; margin-top: 8px; }
:root body.client-dashboard-page .client-home-community-feed { gap: 6px; }
:root body.client-dashboard-page .client-home-community-post { padding: 10px 12px; }
:root body.client-dashboard-page .client-weekly-activity { order: 5; }
:root body.client-dashboard-page .client-home-checkin-links {
  order: 6; display: grid; gap: 10px; padding: 0;
}
:root body.client-dashboard-page .client-home-checkin-links .client-home-checkin-row {
  display: flex; width: 100%; min-height: 70px; align-items: center; gap: 12px;
  padding: 10px 14px; border: 1px solid #4b5058; border-radius: 20px;
  background: linear-gradient(145deg, #292d34, #22262b);
  color: #f5f7f9; text-align: left; text-decoration: none;
  font: inherit; cursor: pointer;
}
:root body.client-dashboard-page .client-home-checkin-links .client-home-checkin-row[hidden] { display: none !important; }
:root body.client-dashboard-page .client-home-checkin-icon {
  display: grid; width: 42px; height: 42px; flex: 0 0 42px;
  place-items: center; border-radius: 11px; background: #5aa9e8; color: #151a11;
}
:root body.client-dashboard-page .client-home-checkin-icon svg { width: 25px; height: 25px; }
:root body.client-dashboard-page .client-home-checkin-copy { display: grid; flex: 1; min-width: 0; gap: 3px; text-align: left; }
:root body.client-dashboard-page .client-home-checkin-copy strong { color: #f5f7f9; font-size: 16px; line-height: 1.2; }
:root body.client-dashboard-page .client-home-checkin-copy small { color: #bec9d1; font-size: 12px; line-height: 1.25; }
:root body.client-dashboard-page .client-home-checkin-chevron { color: #75b9eb; font-size: 24px; line-height: 1; }
:root body.client-dashboard-page .client-home-checkin-links .client-home-checkin-row:focus-visible { outline: 3px solid #75b9eb; outline-offset: 2px; }
:root body.client-dashboard-page .client-weekly-activity {
  padding: 0; overflow: hidden; border-color: #4b5058;
  background: linear-gradient(145deg, #292d34, #22262b);
}
:root body.client-dashboard-page .client-gym-compact > summary {
  display: flex; align-items: center; gap: 12px;
  min-height: 70px; padding: 10px 14px;
  list-style: none; cursor: pointer;
}
:root body.client-dashboard-page .client-gym-compact > summary::-webkit-details-marker { display: none; }
:root body.client-dashboard-page .client-gym-compact .client-gym-hero-icon {
  width: 42px; height: 42px; flex-basis: 42px; border-radius: 11px;
}
:root body.client-dashboard-page .client-gym-compact .client-gym-hero-icon svg { width: 25px; height: 25px; }
:root body.client-dashboard-page .client-gym-compact-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
:root body.client-dashboard-page .client-gym-compact-copy strong { color: #f5f7f9; font-size: 16px; line-height: 1.2; }
:root body.client-dashboard-page .client-gym-compact-copy small { color: #bec9d1; font-size: 12px; line-height: 1.25; }
:root body.client-dashboard-page .client-gym-compact-chevron { color: #75b9eb; font-size: 24px; line-height: 1; }
:root body.client-dashboard-page .client-gym-compact[open] .client-gym-compact-chevron { transform: rotate(180deg); }
:root body.client-dashboard-page .client-gym-compact-body { padding: 2px 16px 14px; border-top: 1px solid #434c55; }
:root body.client-dashboard-page .client-gym-compact-body .client-weekly-header { margin-top: 14px; }
:root body.client-dashboard-page .client-gym-compact > summary:focus-visible { outline: 3px solid #75b9eb; outline-offset: -3px; }

/* Log cards keep the exercise image and title together, then give sets their own lines. */
:root body.client-dashboard-page .training-log-superset-heading,
:root body.client-dashboard-page .training-log-workout-heading strong,
:root body.client-dashboard-page .training-log-exercise-head strong,
:root body.client-dashboard-page .training-log-row-main .training-log-notes strong {
  color: #f5f7f9;
}
:root body.client-dashboard-page .training-log-superset-heading { line-height: 1.35; }
:root body.client-dashboard-page .training-log-workout-heading span { color: #cbd4dc; }
:root body.client-dashboard-page .training-log-exercise-list { gap: 12px; }
:root body.client-dashboard-page .training-log-row-nested,
:root body.client-dashboard-page .training-log-history-card-details .training-log-row-nested {
  min-width: 0; padding: 14px;
  border: 1px solid #48515a;
  border-radius: 16px;
  background: #252a30;
  color: #f5f7f9;
}
:root body.client-dashboard-page .training-log-row-main { min-width: 0; gap: 12px; }
:root body.client-dashboard-page .training-log-exercise-head {
  display: grid; grid-template-columns: 96px minmax(0, 1fr);
  align-items: center; gap: 12px; min-width: 0;
}
:root body.client-dashboard-page .training-log-exercise-head strong {
  min-width: 0; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere;
}
:root body.client-dashboard-page .training-log-exercise-label { display: grid; min-width: 0; gap: 3px; }
:root body.client-dashboard-page .training-log-exercise-label small {
  color: #75b9eb; font-size: .68rem; font-weight: 800; letter-spacing: .08em;
}
:root body.client-dashboard-page .training-log-exercise-image {
  display: grid; width: 96px; height: 64px; overflow: hidden;
  place-items: center; border-radius: 12px; background: #182027;
}
:root body.client-dashboard-page .training-log-exercise-image .exercise-media-button,
:root body.client-dashboard-page .training-log-exercise-image .exercise-muscle-fallback {
  width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto;
}
:root body.client-dashboard-page .training-log-exercise-image .exercise-muscle-fallback img {
  width: 100%; height: 100%; object-fit: contain;
}
:root body.client-dashboard-page .training-log-exercise-image .exercise-media-button > img {
  position: static; width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  object-fit: contain; object-position: center;
}
:root body.client-dashboard-page .training-log-exercise-image .exercise-media-button-branded-crop > img {
  position: absolute; top: -25%; left: -6%; width: 184%; max-width: none;
  height: auto; max-height: none; transform: none; object-fit: fill;
}
:root body.client-dashboard-page .training-log-exercise-image .exercise-media-button-branded-crop.is-wide-branded-card > img {
  top: -21%; left: -9%; width: 225%;
}
:root body.client-dashboard-page .training-log-exercise-image-empty { color: #79b8e9; font-size: 26px; }
:root body.client-dashboard-page .client-saved-set-list {
  --saved-set-fill: #1b2025;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 2px 10px;
  border-radius: 12px;
  background: var(--saved-set-fill);
  list-style: none;
}
:root body.client-dashboard-page .client-saved-set-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0; gap: 2px 10px; align-items: center; padding: 7px 0;
}
:root body.client-dashboard-page .client-saved-set-row + .client-saved-set-row { border-top: 1px solid var(--saved-log-line); }
:root body.client-dashboard-page .client-saved-set-values {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px;
  min-width: 0; color: var(--saved-log-text); font-size: .88rem; line-height: 1.4;
}
:root body.client-dashboard-page .client-saved-set-name { color: var(--saved-log-muted); }
:root body.client-dashboard-page .client-saved-set-type { color: var(--saved-log-blue); font-size: .75rem; font-weight: 700; }
:root body.client-dashboard-page .client-saved-set-note {
  grid-column: 1 / -1; margin: 1px 0 3px; color: var(--saved-log-muted);
  font-size: .85rem; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap;
}
:root body.client-dashboard-page .client-saved-set-row button {
  width: 52px; min-width: 52px; min-height: 44px; padding: 6px 8px;
  border-color: var(--saved-log-line); border-radius: 9px; color: var(--saved-log-blue);
}
:root body.client-dashboard-page .training-log-gym { color: #ffd400; }
:root body.client-dashboard-page .training-log-notes { color: #d0d7dd; }
:root body.client-dashboard-page .training-log-exercise-history-button {
  width: 100%; min-height: 42px; margin: 0;
  border-color: #56616c; border-radius: 10px;
  color: #f5f7f9; background: #222a2c;
}
:root body.client-dashboard-page .training-log-workout-group { background: #23282d; }

:root[data-client-theme="light"] body.client-dashboard-page .client-home-rewards,
:root[data-client-theme="light"] body.client-dashboard-page .client-home-last-workout { background: #fff; }
:root[data-client-theme="light"] body.client-dashboard-page .client-weekly-activity { background: #fff; border-color: #cbd5dd; }
:root[data-client-theme="light"] body.client-dashboard-page .client-home-checkin-links .client-home-checkin-row { background: #fff; border-color: #cbd5dd; }
:root[data-client-theme="light"] body.client-dashboard-page .client-home-checkin-copy strong { color: #192632; }
:root[data-client-theme="light"] body.client-dashboard-page .client-home-checkin-copy small { color: #4b5b66; }
:root[data-client-theme="light"] body.client-dashboard-page .client-gym-compact-copy strong { color: #192632; }
:root[data-client-theme="light"] body.client-dashboard-page .client-gym-compact-copy small { color: #4b5b66; }
:root[data-client-theme="light"] body.client-dashboard-page .client-gym-compact-body { border-color: #d8e0e6; }
:root[data-client-theme="light"] body.client-dashboard-page .training-log-row-nested,
:root[data-client-theme="light"] body.client-dashboard-page .training-log-history-card-details .training-log-row-nested,
:root[data-client-theme="light"] body.client-dashboard-page .training-log-workout-group {
  background: #fff; border-color: #cbd5dd; color: #192632;
}
:root[data-client-theme="light"] body.client-dashboard-page .training-log-superset-heading,
:root[data-client-theme="light"] body.client-dashboard-page .training-log-workout-heading strong,
:root[data-client-theme="light"] body.client-dashboard-page .training-log-exercise-head strong,
:root[data-client-theme="light"] body.client-dashboard-page .training-log-row-main .training-log-notes strong { color: #192632; }
:root[data-client-theme="light"] body.client-dashboard-page .training-log-workout-heading span { color: #41515b; }
:root[data-client-theme="light"] body.client-dashboard-page .training-log-exercise-label small { color: #206da1; }
:root[data-client-theme="light"] body.client-dashboard-page .client-saved-set-list { --saved-set-fill: #eef2f6; }
:root[data-client-theme="light"] body.client-dashboard-page .training-log-notes { color: #344756; }
:root[data-client-theme="light"] body.client-dashboard-page .training-log-exercise-history-button { background: #f4f7f9; color: #192632; }

@media (max-width: 520px) {
  :root body.client-dashboard-page .client-home-grid { gap: 10px; }
  :root body.client-dashboard-page .client-home-reward-card { min-height: 76px; }
  :root body.client-dashboard-page .client-home-last-copy strong { font-size: 16px; }
  :root body.client-dashboard-page .training-log-history-card-details { padding: 12px; }
  :root body.client-dashboard-page .training-log-exercise-head { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
  :root body.client-dashboard-page .training-log-exercise-image { width: 84px; height: 60px; }
}
