/* The custom workout starter keeps setup choices out of the logging area. */
body.client-dashboard-page .client-workout-panel-custom .panel-heading.custom-workout-launcher-heading {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-heading h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.45rem, 6vw, 2rem);
  line-height: 1.15;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-copy-past-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--client-neon);
  font: inherit;
  font-size: .93rem;
  font-weight: 700;
  cursor: pointer;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-copy-past-link:focus-visible {
  outline: 2px solid var(--client-neon);
  outline-offset: 3px;
}

body.client-dashboard-page .client-workout-panel-custom :is(.custom-workout-launcher-menu, .custom-workout-format-picker) > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  list-style: none;
}

body.client-dashboard-page .client-workout-panel-custom :is(.custom-workout-launcher-menu, .custom-workout-format-picker) > summary::-webkit-details-marker {
  display: none;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-menu {
  position: relative;
  z-index: 30;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-menu > summary {
  width: 44px;
  height: 44px;
  border: 1px solid #353e49;
  border-radius: 50%;
  background: #242932;
  color: #e9edf2;
  font-size: 1.55rem;
  line-height: 1;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-menu-content {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(310px, 82vw);
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #39424e;
  border-radius: 16px;
  background: #252a32;
  box-shadow: 0 14px 35px #0008;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-menu:not([open]) > .custom-workout-launcher-menu-content,
body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-more:not([open]) > div,
body.client-dashboard-page .client-workout-panel-custom .custom-workout-format-picker:not([open]) > .custom-workout-format-options,
body.client-dashboard-page .client-workout-panel-custom .custom-workout-manage-exercises:not([open]) > .workout-exercise-list {
  display: none;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-menu-content > button,
body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-more > summary {
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #f4f6f9;
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-menu-content > button:hover,
body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-more > summary:hover {
  background: #343b45;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-menu-content > [data-reset-custom-workout] {
  color: #ff8b8b;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-more > div {
  display: grid;
  gap: 12px;
  padding: 6px;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-details {
  margin: 0 0 16px;
  color: #aeb8c3;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-details > summary {
  width: fit-content;
  min-height: 40px;
  padding: 8px 0;
  color: #69bdff;
  font-weight: 700;
  cursor: pointer;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-details [data-generate-workout] {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #3d4d61;
  border-radius: 10px;
  background: #181d23;
  color: #69bdff;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-gym .workout-gym-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 6px;
  padding: 12px;
  border-color: #2b3d41;
  background: #142124;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-gym .workout-gym-picker label,
body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-gym .workout-gym-picker small,
body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-gym .workout-gym-error {
  grid-column: 1 / -1;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-gym .workout-gym-picker label {
  color: #68b9ff;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-gym .workout-gym-picker input {
  min-width: 0;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-gym .workout-gym-find {
  min-height: 44px;
  padding: 8px 10px;
  white-space: nowrap;
}

@media (max-width: 380px) {
  body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-gym .workout-gym-picker {
    grid-template-columns: 1fr;
  }
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-builder {
  gap: 16px;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-exercise-card {
  display: grid;
  gap: 18px;
  padding: 16px;
  border: 1px solid #2b3d41;
  border-radius: 21px;
  background: #111e20;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-exercise-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-exercise-heading h3 {
  margin: 0;
  color: #f7f9fb;
  font-size: 1.25rem;
  line-height: 1.2;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-exercise-heading p {
  margin: 5px 0 0;
  color: #a2b3bd;
  font-size: .92rem;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-format-picker {
  position: relative;
  z-index: 20;
  display: block;
  width: max-content;
  max-width: 55%;
  padding: 0;
  border: 0;
  background: transparent;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-format-picker > summary {
  min-height: 38px;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid #3b4650;
  border-radius: 999px;
  background: #242b32;
  color: #edf3f7;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-format-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(250px, 76vw);
  grid-template-columns: 1fr;
  gap: 3px;
  padding: 6px;
  border: 1px solid #39424e;
  border-radius: 14px;
  background: #252a32;
  box-shadow: 0 12px 30px #0008;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-format-button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e9edf2;
  text-align: left;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-format-button.is-active {
  background: #193f5c;
  color: #8ed0ff;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-format-picker > p {
  display: none;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-add {
  display: flex;
  width: 100%;
  min-height: clamp(210px, 30vh, 280px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed #42515d;
  border-radius: 18px;
  background: #141c20;
  color: #68b9ff;
  font: inherit;
  font-size: 1.04rem;
  cursor: pointer;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-add-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: #1684f5;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-add-help {
  color: #93a5ae;
  font-size: .82rem;
  line-height: 1.4;
  text-align: center;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-add[hidden],
body.client-dashboard-page .client-workout-panel-custom .custom-workout-footer-add[hidden] {
  display: none;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-footer-add {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid #3d4d61;
  border-radius: 18px;
  background: #181d23;
  color: #69bdff;
  font: inherit;
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-footer-add-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #1684f5;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-primary-actions {
  margin-top: clamp(72px, 20vh, 220px);
  display: flex;
  align-items: stretch;
  gap: 10px;
}

body.client-dashboard-page .client-workout-panel-custom.has-custom-exercises .custom-workout-primary-actions {
  margin-top: 0;
}

body.client-dashboard-page .client-workout-panel-custom [data-custom-workout-start-control] {
  flex: 1 1 auto;
  min-width: 0;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-reset-button {
  flex: 0 0 118px;
  width: 118px !important;
  max-width: 118px;
  min-height: 58px;
  padding: 0 8px;
  border: 1px solid #4a5157 !important;
  border-radius: 13px;
  background: #1b2224 !important;
  color: #f2f3ef !important;
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

body.client-dashboard-page .client-workout-panel-custom .workout-start-control {
  width: 100%;
}

body.client-dashboard-page .client-workout-panel-custom .workout-start-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 13px;
  background: #1684f5;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-manage-exercises > summary {
  padding: 10px 2px;
  color: #69bdff;
  font-weight: 700;
  cursor: pointer;
}

body.client-dashboard-page .client-workout-panel-custom .custom-workout-manage-exercises .workout-exercise-list-add {
  display: none;
}

body.client-dashboard-page .client-workout-panel-custom [hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-heading h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }
}
