/* Keep electric gold in place of the former lime without overriding blue roles. */
:root body.client-dashboard-page {
  --brand-primary: #ffd400;
  --brand-primary-hover: #ffe066;
  --brand-primary-ink: #171a17;
  --lime: #ffd400;
  --focus: #ffd400;
  --success: #ffd400;
  --blue: #57a8ff;
  --secondary-accent: #57a8ff;
  --client-neon: #5aa9e8;
  --client-accent: #57a8ff;
  --client-accent-bright: #54baff;
  --client-accent-ink: #102b50;
  --client-settings-accent: #57a8ff;
  --client-page-headline: #57a8ff;
  --client-action-link: #54baff;
}

:root[data-client-theme="light"] body.client-dashboard-page {
  --focus: #0069dd;
  --success: #936800;
  --blue: #0069dd;
  --secondary-accent: #0069dd;
  --client-neon: #0069dd;
  --client-accent: #0069dd;
  --client-accent-bright: #54baff;
  --client-accent-ink: #102b50;
  --client-settings-accent: #0069dd;
  --client-page-headline: #0059c9;
  --client-action-link: #075da3;
}

:root body.client-dashboard-page .client-settings-panel {
  --client-settings-accent: var(--client-accent);
}

:root body.client-dashboard-page [data-custom-workout-grouped="true"] {
  --grouped-lime: #ffd400;
  --grouped-blue: #2c9cff;
  --grouped-gold: #ffd400;
  --grouped-focus: #ffd400;
}

:root body.client-dashboard-page [data-custom-workout-grouped="true"] :is(
  .custom-workout-grouped-status,
  .custom-workout-grouped-progress,
  .custom-workout-grouped-exercise-status,
  .custom-workout-grouped-set-status,
  .custom-workout-grouped-finish-heading small,
  [data-custom-grouped-notes-state]
) {
  color: #e1ad00;
}

:root[data-client-theme="light"] body.client-dashboard-page [data-custom-workout-grouped="true"] :is(
  .custom-workout-grouped-status,
  .custom-workout-grouped-progress,
  .custom-workout-grouped-exercise-status,
  .custom-workout-grouped-set-status,
  .custom-workout-grouped-finish-heading small,
  [data-custom-grouped-notes-state]
) {
  color: #795500;
}

:root body.client-dashboard-page :is(.workout-elapsed-timer, .custom-workout-grouped-timer) {
  --lime: #ffd400;
}

:root body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-heading h2 {
  color: var(--client-page-headline);
}

/* Text-only actions use blue so they read as links beside gold headings. */
:root body.client-dashboard-page .client-workout-selection-action,
:root body.client-dashboard-page .client-workout-panel-custom .custom-workout-copy-past-link,
:root body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-add strong,
:root body.client-dashboard-page .client-workout-panel-custom .custom-workout-footer-add strong,
:root body.client-dashboard-page .client-workout-panel-custom .custom-workout-manage-exercises > summary {
  color: var(--client-action-link);
}

:root[data-client-theme="light"] body.client-dashboard-page .client-workout-selection-action {
  color: var(--client-action-link);
}

/* The custom exercise cards stay dark in light mode, so their blue must stay bright. */
:root[data-client-theme="light"] body.client-dashboard-page .client-workout-panel-custom .custom-workout-launcher-exercise-heading h3 {
  color: #68b9ff !important;
}

:root[data-client-theme="light"] body.client-dashboard-page .client-workout-panel-custom :is(
  .custom-workout-launcher-add strong,
  .custom-workout-footer-add strong,
  .custom-workout-manage-exercises > summary
) {
  color: #68b9ff;
}

:root body.client-dashboard-page :is(input[type="checkbox"], input[type="radio"], input[type="range"]) {
  accent-color: #ffd400;
}

/* Keep these three custom workout actions in the gold role requested for them. */
:root body.client-dashboard-page .client-workout-panel-custom :is(
  .custom-workout-copy-past-link,
  .custom-workout-footer-add strong,
  .custom-workout-manage-exercises > summary
) {
  color: #ffd400;
}

:root body.client-dashboard-page .client-workout-panel-custom .custom-workout-footer-add-icon {
  background: #ffd400;
  color: #171a17;
}

:root body.client-dashboard-page .client-workout-panel-custom .custom-workout-footer-add {
  border-color: #ffd400;
  color: #ffd400;
}

:root body.client-dashboard-page .client-workout-panel-custom .custom-workout-circuit-add-exercise {
  border-color: #ffd400;
  color: #ffd400;
}

:root body.client-dashboard-page .client-workouts-tools {
  margin-bottom: 0;
}
