/* Keep the empty quick workout action centered, with sources and Start below it. */
:root body.client-dashboard-page #client-workouts-panel.is-compact-workout-log .client-workouts-topbar h2 {
  text-transform: none; font-size: 17px; letter-spacing: 0; font-weight: 650;
}
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .custom-workout-launcher-heading { display: none; }
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-summary {
  display: flex; width: 100%; min-height: 58px; margin: 0 0 2px; padding: 9px;
  align-items: center; gap: 6px; border: 1px solid #393d45; border-radius: 18px;
  background: linear-gradient(135deg, #292820, #202126); color: #f7f7f8;
  font: 600 12px/1.15 var(--font-ui, Inter, sans-serif);
}
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-summary button {
  display: flex; width: auto !important; inline-size: auto !important; max-width: none !important;
  min-width: 0; flex: 0 1 auto; min-height: 44px; align-items: center; justify-content: center;
  gap: 4px; overflow: hidden; padding: 8px 4px;
  border: 0; border-radius: 18px; background: #33312c; color: #f7f7f8;
  font: inherit; font-size: clamp(11px, 3.3vw, 13px) !important;
  text-overflow: ellipsis; white-space: nowrap !important; cursor: pointer;
}
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-summary button:nth-child(2) { flex: 1 1 auto; }
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-summary svg {
  flex: 0 0 17px; width: 17px; height: 17px; color: #62b2f4;
}
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-summary .custom-workout-setup-gym-icon { flex: 0 0 auto; }
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-summary button span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap !important; vertical-align: middle;
}
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog {
  box-sizing: border-box; width: min(420px, calc(100vw - 24px)); max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 40px); margin: auto; padding: 18px;
  overflow-y: auto; border: 1px solid #414852; border-radius: 22px;
  background: #1b1d22; color: #f7f7f8; box-shadow: 0 18px 54px #000b;
}
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog:not([open]) { display: none; }
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog::backdrop { background: #000b; }
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog > header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px;
}
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog h2 { margin: 0; color: #fff; font: 750 20px/1.2 var(--font-ui, Inter, sans-serif); }
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog > header button {
  min-width: 64px; min-height: 44px; border: 0; border-radius: 12px;
  background: #ffd400; color: #111; font: 750 14px var(--font-ui, Inter, sans-serif);
}
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog .custom-workout-setup-fields {
  display: grid; gap: 12px; padding: 0; border: 0; background: transparent;
}
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog[data-section="gym"] .workout-gym-main-row:has(.workout-gym-history[open]) {
  flex-wrap: wrap;
}
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog[data-section="gym"] .workout-gym-main-row:has(.workout-gym-history[open]) > [data-workout-gym-history] {
  flex: 1 1 100%; min-width: 0;
}
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog[data-section="gym"] .workout-gym-history-list {
  position: static; width: 100%; max-height: 50dvh; margin-top: 8px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog[data-section="gym"] .workout-gym-scroll-cue {
  margin: 8px 2px 0; color: #aeb3bd; font-size: 12px; line-height: 1.3;
}
.workout-gym-scroll-cue { display: none; }
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog[data-section="gym"] .workout-gym-history[open] .workout-gym-scroll-cue { display: block; }
:root[data-client-theme="light"] body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog[data-section="gym"] .workout-gym-scroll-cue { color: #566158; }
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog[data-section="date"] :is(.custom-workout-launcher-gym, .workout-compact-format),
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog[data-section="gym"] :is(.custom-workout-session-date, .workout-compact-format),
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog[data-section="format"] :is(.custom-workout-session-date, .custom-workout-launcher-gym) { display: none; }
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog[data-section="format"] .custom-workout-format-picker > summary { display: none; }
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog[data-section="format"] .custom-workout-format-options {
  position: static; width: 100%; padding: 0; gap: 8px; border: 0; background: transparent; box-shadow: none;
}
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog[data-section="format"] .custom-workout-format-button {
  min-height: 48px; padding: 12px; border: 1px solid #414852; border-radius: 12px;
}
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog[data-section="format"] .custom-workout-format-button.is-active {
  border-color: #ffd400; background: #4a3d0e; color: #ffd400;
}
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-summary button:focus-visible,
:root body.client-dashboard-page #client-workouts-panel .custom-workout-setup-dialog :is(button, input):focus-visible {
  outline: 3px solid #62b2f4; outline-offset: 2px;
}
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .custom-workout-launcher-options {
  order: -1; position: relative; flex: 0 0 56px; width: 56px;
}
:root body.client-dashboard-page #client-workouts-panel .custom-workout-launcher-options summary {
  display: grid; width: 56px; height: 54px; place-items: center; cursor: pointer;
  list-style: none; border: 1px solid #393d45; border-radius: 15px;
  background: #22252b; color: #f7f7f8; font-size: 20px;
}
:root body.client-dashboard-page #client-workouts-panel .custom-workout-launcher-options summary::-webkit-details-marker { display: none; }
:root body.client-dashboard-page #client-workouts-panel .custom-workout-launcher-options > div {
  position: absolute; z-index: 10; left: 0; bottom: 62px; display: grid;
  width: 190px; padding: 7px; gap: 4px; border: 1px solid #45494d;
  border-radius: 14px; background: #24272d; box-shadow: 0 10px 30px #0008;
}
:root body.client-dashboard-page #client-workouts-panel .custom-workout-launcher-options:not([open]) > div { display: none; }
:root body.client-dashboard-page #client-workouts-panel .custom-workout-launcher-options button {
  width: 100%; padding: 10px; border: 0; border-radius: 9px;
  background: transparent; color: #f7f7f8; text-align: left;
}
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .custom-workout-launcher-more,
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .custom-workout-manage-exercises { display: none; }
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .custom-workout-launcher-exercise-card {
  order: 0; display: grid; min-height: clamp(320px, 42dvh, 430px);
  padding: 14px; place-items: center; border: 1px solid #393d45;
  background: linear-gradient(160deg, #242424, #14151a 75%);
}
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .custom-workout-launcher-exercise-heading { display: none; }
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .custom-workout-launcher-add {
  display: flex; min-height: 280px; width: 100%; padding: 20px 10px;
  align-items: center; justify-content: center; gap: 15px;
  border: 0; background: transparent; color: #f7f7f8;
}
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .custom-workout-launcher-add-icon {
  width: 86px; height: 86px; background: #ffd400; color: #111;
  font-size: 48px; box-shadow: 0 0 0 8px #ffd40022, 0 0 26px #ffd40077;
}
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .custom-workout-launcher-add strong {
  color: #f7f7f8 !important; font-size: clamp(19px, 5.4vw, 24px); line-height: 1.2; text-align: center;
}
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .custom-workout-launcher-add-help {
  color: #aeb3bd; font-size: 14px; line-height: 1.35;
}
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .workout-compact-source { order: 1; }
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .workout-compact-source > h3 { display: none; }
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .workout-compact-source-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  overflow: visible; border: 0; background: transparent;
}
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .workout-compact-source-list .workout-choice-card {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-width: 0; min-height: 86px; gap: 7px; padding: 12px;
  border: 1px solid #393d45 !important; border-radius: 17px !important;
  background: #1d1f25; color: #f7f7f8;
}
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .workout-compact-source-list .workout-choice-card + .workout-choice-card { border-top: 1px solid #393d45 !important; }
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .workout-choice-icon {
  width: 22px; height: 22px; background: transparent; color: #69b8fa;
}
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .workout-choice-title {
  color: #f7f7f8; font-size: 14px; white-space: normal;
}
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .workout-choice-description,
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .workout-choice-arrow { display: none; }
:root body.client-dashboard-page #client-workouts-panel .client-workout-panel-custom:not(.has-custom-exercises) .custom-workout-primary-actions { order: 2; margin-top: 0; }
