/* Trainer Recorder layout and controls. */
.nf-trainer-recorder-context,
.nf-trainer-recorder-workspace,
.nf-exercise-strip,
.nf-recorder-media,
.nf-card-details,
.nf-recorder-set-head {
 display: none;
}
.nf-masthead-page-title {
 display: inline-block;
 color: #fff;
 font-size: clamp(15px, 1.4vw, 25px);
 line-height: 1.1;
 font-weight: 850;
 text-wrap: balance;
}
body:has(#workout.active) .nf-top-client .nf-top-client-caption {
 margin: 0;
 font-size: 10px;
}
body:has(#workout.active) .nf-top-client .uniform-select {
 min-width: clamp(132px, 12vw, 206px);
}
body:has(#workout.active) .nf-top-client .uniform-select-button {
 min-height: 34px;
 padding-block: 5px;
}
body > header .header-right #backupTop {
 border-color: #9ac1e5;
 background: #174b84;
 color: #fff;
}
body:has(#workout.active) > .shell > main {
 flex: 1 1 auto;
 max-width: none;
 min-width: 0;
 padding: var(--nf-page-gutter);
}
@media (min-width: 801px) {
 body > .shell > aside {
  width: var(--nf-sidebar-width);
  flex: 0 0 auto;
  --nf-workspace-height: calc(100dvh - var(--nf-workspace-header, 132px));
  padding: 7px 7px 9px;
  border: 0;
  display: flex;
  flex-direction: column;
  position: sticky !important;
  top: var(--nf-workspace-header, 132px) !important;
  height: var(--nf-workspace-height) !important;
  max-height: var(--nf-workspace-height) !important;
  align-self: flex-start;
  overflow-x: clip;
  background: var(--rec-sidebar);
 }
 body > .shell > aside > .nav {
  min-height: clamp(25px, calc((var(--nf-workspace-height) - 132px) / 13), 37px);
  flex: 0 0 auto;
  margin: 0 0 2px;
  padding: 3px 6px;
  border: 1px solid transparent !important;
  border-radius: 8px;
  font-size: clamp(12px, .95vw, 14px);
  letter-spacing: 0;
  line-height: 1.2;
 }
 body > .shell > aside #analysisSideMenu:not([hidden]) {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 44%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 0 0 3px;
 }
 body > .shell > aside > .nav.active,
 body > .shell > aside > #analysisMenuToggle.active {
  color: #0b315b !important;
  background: var(--rec-selected) !important;
  border-color: #ffc637 !important;
  box-shadow: 0 3px 8px #001c442b;
 }
}

body > .shell > aside #analysisSideMenu .nav {
 min-height: 30px;
 height: auto;
 margin: 0;
 padding: 5px 7px;
 line-height: 1.2;
 font-weight: 700;
 white-space: normal;
}
body > .shell > aside #analysisSideMenu .nav:is(.active, [aria-current="page"]),
#nfMobileDrawer .nf-mobile-drawer-list button:is(.active, [aria-current="page"]),
.mobile-nav button.active {
 color: #0b315b !important;
 background: var(--rec-selected) !important;
 border-color: #ffc637 !important;
}

#workout.nf-trainer-redesigned {
 --rec-panel-gap: 10px;
 color: var(--rec-ink);
 margin: 0;
}
#workout.nf-trainer-redesigned > h1 {
 position: absolute;
 width: 1px;
 height: 1px;
 overflow: hidden;
 clip-path: inset(50%);
 white-space: nowrap;
 margin: 0;
}
#workout.nf-trainer-redesigned > :is(.recorder-controls-row,.recorder-banner-shell) {
 display: none !important;
}
#workout.nf-trainer-redesigned :is(.nf-dashboard-main, .nf-trainer-recorder-workspace) {
 display: grid;
 grid-template-columns: minmax(0, 1fr);
 align-content: start;
 justify-items: stretch;
 min-width: 0;
 gap: var(--rec-panel-gap);
}
#workout.nf-trainer-redesigned .nf-trainer-recorder-context:empty {
 display: none;
}
#workout.nf-trainer-redesigned #nfRecorderDashboard {
 grid-template-columns: minmax(0, 1fr) minmax(270px, 29%);
 align-items: start;
 gap: clamp(11px, 1.15vw, 22px);
 margin: 0;
}
#workout.nf-trainer-redesigned .nf-dashboard-side {
 position: static;
 width: auto;
 height: auto;
 border: 0;
 background: transparent;
 padding: 0;
 overflow: visible;
 gap: 12px;
 color: var(--rec-ink);
}
#workout.nf-trainer-redesigned .nf-dashboard-side .nf-insight-panel {
 margin: 0;
 border-color: var(--rec-line);
 border-radius: 11px;
 background: linear-gradient(#fff, #f5f9fe);
 box-shadow: 0 2px 5px #173f7012;
}
#workout.nf-trainer-redesigned .nf-dashboard-side .nf-insight-panel h3 {
 padding: 10px 12px;
 background: linear-gradient(105deg, #0d3c78, #145793);
 color: #fff;
 font-size: clamp(12px, .95vw, 16px);
 letter-spacing: .015em;
}
#workout.nf-trainer-redesigned .nf-dashboard-side .nf-insight-content {
 padding: 11px 12px;
 gap: 9px;
}
#workout.nf-trainer-redesigned .nf-insight-content dl {
 margin: 0;
}
#workout.nf-trainer-redesigned .nf-insight-content dl > div {
 display: grid;
 grid-template-columns: minmax(0, 1fr) auto;
 align-items: center;
 min-height: 35px;
 gap: 8px;
 border-top: 1px solid #d4e4f3;
 font-size: 13px;
}
#workout.nf-trainer-redesigned .nf-insight-content dl dd {
 margin: 0;
 font-weight: 800;
}
#nfDashRecordsExercise {
 margin: 0;
 font-size: 12px;
 color: #2a5381;
 font-weight: 800;
}
#nfDashRecordsExercise:empty {
 display: none;
}
#workout.nf-trainer-redesigned #nfDashReadiness label {
 grid-template-columns: 61px minmax(0, 1fr) 43px;
 color: var(--rec-ink);
 font-size: 12px;
}
#workout.nf-trainer-redesigned #nfDashReadiness input {
 appearance: none;
 height: 9px;
 min-height: 9px !important;
 padding: 0;
 margin: 0;
 border: 0;
 border-radius: 12px;
 background: linear-gradient(to right, var(--slider-color, #28a348) 0 var(--nf-readiness-fill), #d6e0e6 var(--nf-readiness-fill) 100%);
 cursor: pointer;
}
#workout.nf-trainer-redesigned #nfDashReadiness input[data-readiness="soreness"] { --slider-color: #dfaa29; }
#workout.nf-trainer-redesigned #nfDashReadiness input::-webkit-slider-thumb {
 appearance: none;
 width: 17px;
 height: 17px;
 border: 2px solid #fff;
 border-radius: 50%;
 background: var(--slider-color, #28a348);
 box-shadow: 0 0 0 1px #8299ae;
}
#workout.nf-trainer-redesigned #nfDashReadiness input::-moz-range-thumb {
 width: 14px;
 height: 14px;
 border: 2px solid #fff;
 border-radius: 50%;
 background: var(--slider-color, #28a348);
 box-shadow: 0 0 0 1px #8299ae;
}
#workout.nf-trainer-redesigned #nfDashSessionNotes {
 min-height: 76px;
 border-color: var(--rec-line);
 resize: none;
 overflow: hidden;
 scroll-margin-top: calc(var(--nf-workspace-header, 132px) + 12px);
}

body:has(#workout.active) .nf-trainer-recorder-context:not(:empty) {
 display: flex;
 align-items: center;
 gap: 10px;
 min-width: 0;
}
body:has(#workout.active) .nf-trainer-recorder-context .recorder-selectors {
 display: grid !important;
 grid-template-columns: repeat(2, minmax(57px, 1fr)) !important;
 width: auto !important;
 max-width: none !important;
 flex: 0 0 auto !important;
 gap: 6px !important;
 margin: 0;
 padding: 0;
}
body:has(#workout.active) .nf-trainer-recorder-context .recorder-selectors label {
 gap: 2px;
 margin: 0;
 font-size: 9px;
 color: inherit;
}
body:has(#workout.active) .nf-trainer-recorder-context .recorder-selectors .uniform-select-button {
 min-width: 56px;
 min-height: 30px;
 padding: 3px 7px;
 border-color: var(--rec-line);
 border-radius: 6px;
}
body:has(#workout.active) .nf-trainer-recorder-context #sessionTitle {
 background: transparent !important;
 color: inherit;
 border: 0 !important;
 box-shadow: none !important;
 padding: 0 !important;
 margin: 0 !important;
 font-size: clamp(12px, 1.13vw, 20px);
 font-weight: 850;
 overflow-wrap: anywhere;
}
body:has(#workout.active) .nf-trainer-recorder-context #sessionTitle small {
 display: none;
}
#workout.nf-trainer-redesigned #nfTrainerRecorderContextMobile:not(:empty) {
 padding: 8px 12px;
 color: var(--rec-ink);
 background: #f6faff;
 border: 1px solid var(--rec-line);
 border-radius: 10px;
}

#workout.nf-trainer-redesigned .nf-recorder-surface {
 min-width: 0;
 border: 1px solid var(--rec-line);
 border-radius: 11px;
 background: var(--rec-surface);
 box-shadow: var(--rec-shadow);
}
#workout.nf-trainer-redesigned .nf-recorder-timers {
 display: grid;
 grid-template-columns: minmax(0, 1fr) 170px;
 gap: 11px;
}
#workout.nf-trainer-redesigned #nfTrainerTimerPanel {
 display: flex;
 flex-wrap: nowrap;
 align-items: center;
 justify-content: space-between;
 gap: 8px;
 padding: 9px 10px;
}
#workout.nf-trainer-redesigned .nf-recorder-surface h2 {
 margin: 0;
 color: var(--rec-ink);
 font-size: 12px;
 font-weight: 850;
 letter-spacing: .02em;
}
#workout.nf-trainer-redesigned #nfTrainerTimerPanel .nf-session-mode-selector {
 flex: 1 0 auto;
 flex-wrap: nowrap;
 align-items: center;
 justify-content: flex-start;
 gap: 5px;
 margin: 0;
}
#workout.nf-trainer-redesigned #nfTrainerTimerPanel .recorder-session-clock {
 display: flex;
 flex: 0 1 auto;
 flex-wrap: nowrap;
 gap: 5px;
 min-width: 0;
 margin: 0;
 padding: 0;
 border: 0;
 background: transparent;
 box-shadow: none;
}
#workout.nf-trainer-redesigned #nfTrainerTimerPanel .recorder-session-clock strong {
 min-width: 0;
 padding: 0 4px;
 font-size: clamp(21px, 2vw, 36px);
 letter-spacing: -.035em;
 font-weight: 850;
 order: -1;
}
#workout.nf-trainer-redesigned #nfTrainerTimerPanel .recorder-session-clock button {
 min-width: 54px;
 min-height: 34px;
 border-radius: 7px;
 font-size: 11px;
 padding: 5px 8px;
}
#workout.nf-trainer-redesigned #nfTrainerTimerPanel .recorder-session-clock button:disabled {
 display: none;
}
#workout.nf-trainer-redesigned #nfTrainerTimerPanel #sessionStop {
 background: linear-gradient(#e9393c, #bd1621);
 color: #fff;
 border-color: #be1d2c;
}
#workout.nf-trainer-redesigned #nfTrainerRestPanel {
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 10px 12px;
 background: linear-gradient(120deg, #fffaf0, #ffedb6);
 border-color: var(--rec-gold-line);
}
#workout.nf-trainer-redesigned #nfTrainerRestPanel .nf-global-exercise-rest {
 display: flex;
 flex: 1 1 auto;
 flex-flow: row nowrap;
 align-items: center;
 justify-content: space-between;
 gap: 6px;
 margin: 0;
}
#workout.nf-trainer-redesigned #nfTrainerRestPanel .nf-global-exercise-rest > label {
 margin: 0;
 color: var(--rec-gold-ink);
 max-width: 73px;
 white-space: normal;
 font-size: 11px;
}
#workout.nf-trainer-redesigned #nfTrainerRestPanel .uniform-select {
 flex: 1 1 72px;
 min-width: 0;
}
#workout.nf-trainer-redesigned #nfTrainerRestPanel .uniform-select-button {
 width: 100%;
 min-width: 0;
}

#workout.nf-trainer-redesigned .nf-recorder-kpis {
 display: grid;
 grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) repeat(2, minmax(0, .85fr));
 gap: 9px;
}
#workout.nf-trainer-redesigned .nf-recorder-kpis > * {
 min-height: 72px;
 padding: 10px 11px;
}
#workout.nf-trainer-redesigned .nf-recorder-kpis p {
 margin: 5px 0 0;
 font-size: 13px;
 font-weight: 650;
 overflow-wrap: anywhere;
 font-variant-numeric: tabular-nums;
}
#workout.nf-trainer-redesigned #nfDashVolume {
 font-size: clamp(15px, 1.4vw, 23px);
 font-weight: 850;
}
#workout.nf-trainer-redesigned .nf-progress-track {
 margin-top: 6px;
 height: 9px;
 background: #d5e1ec;
}
#workout.nf-trainer-redesigned .nf-future-kpi {
 background: #f3f8fd;
 border-color: #cbdeef;
}
#workout.nf-trainer-redesigned #nfTrainerActions {
 display: flex;
 align-items: center;
 justify-content: space-between;
 flex-wrap: wrap;
 padding: 8px;
 gap: 8px;
}
#workout.nf-trainer-redesigned.nf-recorder-show-all #nfTrainerActions {
 position: sticky;
 top: var(--nf-workspace-header, 132px);
 z-index: 15;
}
#workout.nf-trainer-redesigned #workoutCards > article[data-recorder-item] {
 scroll-margin-top: calc(var(--nf-workspace-header, 132px) + 10px);
}
#workout.nf-trainer-redesigned #nfTrainerActions .nf-trainer-overview-actions {
 display: contents !important;
}
#workout.nf-trainer-redesigned #nfTrainerActions #nfTrainerOverviewButton { order: 0 !important; }
#workout.nf-trainer-redesigned #nfTrainerActions .nf-quick-add-toolbar {
 order: 1 !important;
 flex: 0 1 auto !important;
 width: auto !important;
 margin: 0;
}
#workout.nf-trainer-redesigned #nfTrainerActions #trainerSingleViewControls {
 order: 2 !important;
 flex: 0 1 auto !important;
 width: auto !important;
}
#workout.nf-trainer-redesigned #nfTrainerActions .nf-recorder-notes-jump { order: 3; }
#workout.nf-trainer-redesigned #nfTrainerActions #nfTrainerOverviewButton,
#workout.nf-trainer-redesigned #nfTrainerActions #trainerSingleToggle,
#workout.nf-trainer-redesigned #nfTrainerActions button,
#workout.nf-trainer-redesigned .workout-card-actions button,
#workout.nf-trainer-redesigned .nf-insight-link {
 width: auto !important;
 min-height: 34px !important;
 padding: 7px 11px !important;
 border: 1px solid var(--rec-gold-line) !important;
 border-radius: 8px !important;
 background: var(--rec-action) !important;
 box-shadow: 0 1px 1px #b7832230;
 color: var(--rec-gold-ink) !important;
 font-size: 11px !important;
 font-weight: 800;
 white-space: normal;
}
#workout.nf-trainer-redesigned #nfTrainerActions :is(#nfTrainerOverviewButton,#trainerSingleToggle,button) {
 padding-inline: 7px !important;
}
#workout.nf-trainer-redesigned #nfTrainerActions #nfQuickAddOpen,
#workout.nf-trainer-redesigned #nfTrainerActions #trainerSingleToggle {
 width: auto !important;
 max-width: 100%;
}

#workout.nf-trainer-redesigned #workoutCards {
 display: grid;
 grid-template-columns: minmax(0, 1fr);
 gap: var(--rec-panel-gap);
 width: 100%;
 max-width: none;
 margin: 0 !important;
 padding: 0 !important;
 min-width: 0;
}
#workout.nf-trainer-redesigned #workoutCards > article.exercise-card:not([hidden]) {
 box-sizing: border-box;
 width: 100% !important;
 max-width: none !important;
 margin: 0 !important;
}
#workout.nf-trainer-redesigned #workoutCards > article.exercise-card:not(.warmup-card):not([hidden]) {
 --rec-gear: 32px;
 --rec-set-cols: var(--rec-gear) 27px minmax(46px, 1.05fr) minmax(53px, 1fr) minmax(45px, .84fr) minmax(38px, .66fr) minmax(52px, .9fr) 37px;
 --rec-set-gap: 4px;
 display: grid !important;
 grid-template-columns: minmax(120px, 21%) minmax(0, 1fr);
 gap: 0 13px;
 margin: 0 !important;
 padding: 9px 10px 10px !important;
 border: 1px solid var(--rec-line) !important;
 border-radius: 13px;
 background: linear-gradient(126deg, #fff, #f5f9fe 80%) !important;
 color: var(--rec-ink);
 box-shadow: 0 2px 7px #234a7a1c;
}
#workout.nf-trainer-redesigned #workoutCards .nf-exercise-strip {
 display: flex;
 grid-column: 1 / -1;
 align-items: center;
 justify-content: space-between;
 gap: 9px;
 min-height: 43px;
 padding: 5px 9px;
 margin-bottom: 9px;
 border-radius: 8px;
 color: #075fb8;
 background: linear-gradient(102deg, #e5f1ff, #cfe5fc);
}
#workout.nf-trainer-redesigned #workoutCards .nf-exercise-strip .number {
 margin: 0;
 padding: 0;
 color: #065caf;
 white-space: nowrap;
 background: transparent;
 font-size: clamp(13px, 1.17vw, 19px);
 font-weight: 850;
}
#workout.nf-trainer-redesigned #nfOutsideExerciseNavigation {
 position: static;
 display: flex;
 justify-content: flex-end;
 gap: 6px;
 height: auto;
 z-index: auto;
}
#workout.nf-trainer-redesigned #nfOutsideExerciseNavigation button {
 width: auto;
 height: 31px;
 padding: 3px 9px;
 gap: 6px;
 transform: none;
 border: 1px solid #a9c7e7;
 border-radius: 7px;
 background: linear-gradient(#fff, #eaf3ff);
 color: var(--rec-ink);
 font-size: 12px;
 line-height: 1.2;
 font-weight: 800;
 box-shadow: 0 1px 2px #234a7a19;
}
#workout.nf-trainer-redesigned #nfOutsideExerciseNavigation button span { font-size: 19px; }
#workout.nf-trainer-redesigned #nfOutsideExerciseNavigation button:disabled { opacity: .47; }
#workout.nf-trainer-redesigned #workoutCards .nf-recorder-media-panel {
 grid-column: 1;
 grid-row: 2 / span 4;
 align-self: start;
 min-width: 0;
}
#workout.nf-trainer-redesigned #workoutCards .nf-recorder-media {
 display: grid;
 place-items: center;
 min-width: 0;
 width: 100%;
 aspect-ratio: 1.36;
 overflow: hidden;
 border: 1px solid #d3e3f3;
 border-radius: 9px;
 background: linear-gradient(145deg, #f8fbff, #edf5fc);
}
#workout.nf-trainer-redesigned #workoutCards button.nf-recorder-media {
 padding: 0;
 color: var(--rec-blue);
 font-size: 24px;
}
#workout.nf-trainer-redesigned #workoutCards .nf-recorder-media img {
 width: 100%;
 height: 100%;
 object-fit: contain;
}
#workout.nf-trainer-redesigned #workoutCards > article.exercise-card:not(.warmup-card) > .cardhead {
 grid-column: 2;
 display: grid !important;
 grid-template-columns: minmax(0, 1fr) auto !important;
 grid-template-rows: auto auto;
 align-items: start;
 gap: 3px 8px !important;
 min-width: 0;
 margin: 0 !important;
 padding: 5px 0 8px !important;
 border: 0 !important;
 background: transparent !important;
 box-shadow: none !important;
}
#workout.nf-trainer-redesigned #workoutCards .cardhead .nf-card-title {
 grid-column: 1;
 grid-row: 1 / span 2;
 min-width: 0;
}
#workout.nf-trainer-redesigned #workoutCards .nf-card-title h2 {
 margin: 0;
 color: #b7272a !important;
 font-size: clamp(20px, 1.8vw, 32px);
 line-height: 1.05;
 letter-spacing: -.023em;
 overflow-wrap: anywhere;
}
#workout.nf-trainer-redesigned #workoutCards .nf-card-name {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 5px 9px;
 margin-bottom: 8px;
}
#workout.nf-trainer-redesigned #workoutCards .nf-recorder-muscle {
 display: inline-block;
 padding: 3px 7px;
 border: 1px solid hsl(var(--split-hue) 50% 68%);
 border-radius: 6px;
 background: hsl(var(--split-hue) 65% 91%);
 color: hsl(var(--split-hue) 65% 23%);
 font-size: 11px;
 font-weight: 800;
}
#workout.nf-trainer-redesigned #workoutCards .nf-card-details {
 display: flex;
 flex-wrap: wrap;
 gap: 5px;
}
#workout.nf-trainer-redesigned #workoutCards .nf-card-details > span {
 padding: 4px 6px;
 border: 1px solid #e9cd85;
 border-radius: 7px;
 background: var(--rec-gold);
 color: var(--rec-ink);
 font-size: 10px;
 line-height: 1.2;
 font-weight: 800;
}
#workout.nf-trainer-redesigned #workoutCards .nf-card-details small {
 font-size: .9em;
 color: var(--rec-gold-ink);
}
#workout.nf-trainer-redesigned #workoutCards .cardhead .nf-header-metrics {
 grid-column: 2 !important;
 grid-row: 1 !important;
 justify-self: end;
}
#workout.nf-trainer-redesigned #workoutCards .cardhead .nf-header-metrics .pb {
 border: 0 !important;
 background: transparent !important;
 box-shadow: none !important;
 margin: 0 !important;
 padding: 0 !important;
 font-size: 10px !important;
 min-width: 0 !important;
}
#workout.nf-trainer-redesigned #workoutCards .cardhead .nf-header-metrics .best-metrics-table { display: none !important; }
#workout.nf-trainer-redesigned #workoutCards .cardhead .workout-card-actions {
 grid-column: 2 !important;
 grid-row: 2 !important;
 justify-content: flex-end !important;
 flex-wrap: wrap;
 gap: 5px;
}
#workout.nf-trainer-redesigned #workoutCards .cardhead .workout-card-actions:has(+ .nf-header-metrics:empty) { grid-row: 1 !important; }
#workout.nf-trainer-redesigned #workoutCards .cardhead .workout-card-actions button {
 padding: 5px 7px !important;
 min-height: 28px !important;
 font-size: 10px !important;
}
#workout.nf-trainer-redesigned #workoutCards .nf-recorder-targets {
 grid-column: 2;
 max-width: none !important;
 margin: 0 0 8px !important;
 padding: 0 !important;
 justify-content: flex-start !important;
 gap: 6px !important;
}
#workout.nf-trainer-redesigned #workoutCards .nf-recorder-targets > label {
 padding: 4px 6px !important;
 border: 1px solid #d4e2f4 !important;
 border-radius: 7px !important;
 background: #f4f8ff !important;
}

#workout.nf-trainer-redesigned #workoutCards .nf-recorder-set-head,
#workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row {
 display: grid !important;
 grid-column: 2;
 grid-template-columns: var(--rec-set-cols) !important;
 column-gap: var(--rec-set-gap) !important;
 align-items: center !important;
 width: 100% !important;
 min-width: 0;
 margin: 0 !important;
 padding: 3px 5px !important;
}
#workout.nf-trainer-redesigned #workoutCards .nf-recorder-set-head {
 border: 1px solid #bed4ed;
 border-radius: 8px 8px 0 0;
 background: linear-gradient(#eaf4ff, #dcecff);
 color: var(--rec-ink);
 font-size: clamp(9px, .73vw, 11px);
 font-weight: 850;
 text-align: center;
}
#workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row {
 border: 1px solid #d6e3f0;
 border-top: 0;
 border-radius: 0;
 background: #f9fcff;
 box-shadow: none;
}
#workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row > * {
 grid-column: auto !important;
 grid-row: auto !important;
 width: auto !important;
 min-width: 0 !important;
 align-self: center !important;
 margin: 0 !important;
}
#workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row > strong {
 font-size: 15px !important;
 text-align: center;
 white-space: nowrap;
}
#workout.nf-trainer-redesigned #workoutCards .setrow.nf-trainer-set-row > label {
 font-size: 0 !important;
 gap: 0 !important;
}
#workout.nf-trainer-redesigned #workoutCards .setrow.nf-trainer-set-row > .nf-mixed-set-label {
 font-size: 9px !important;
}
#workout.nf-trainer-redesigned #workoutCards .setrow.nf-trainer-set-row :is(.nf-set-weight, .nf-set-repetitions, .nf-set-assisted, .nf-set-rir, .set-actual-rest) :is(input, .nf-rir-select) {
 height: 31px !important;
 min-height: 31px !important;
 width: 100% !important;
 text-align: center;
 padding: 3px 5px !important;
 border: 1px solid #aabed4;
 border-radius: 6px;
 background: #fff !important;
 font-size: 14px !important;
 font-weight: 700;
 color: var(--rec-ink);
}
#workout.nf-trainer-redesigned #workoutCards .setrow.nf-trainer-set-row > .nf-set-detail-trigger {
 display: grid;
 place-items: center;
 width: 100% !important;
 min-width: 0 !important;
 min-height: 29px !important;
 height: 29px !important;
 padding: 0 !important;
 border: 1px solid var(--rec-gold-line);
 border-radius: 6px;
 background: #fff3cc;
 color: var(--rec-gold-ink);
}
#workout.nf-trainer-redesigned #workoutCards .nf-set-detail-trigger .nf-icon {
 width: 18px;
 height: 18px;
}
#workout.nf-trainer-redesigned #workoutCards .setrow.nf-trainer-set-row > button[data-toggle] {
 width: 31px !important;
 height: 29px !important;
 min-height: 29px !important;
 justify-self: center;
 border: 1px solid #86a2be;
 border-radius: 6px;
 background: #fff;
 color: #365875;
}
#workout.nf-trainer-redesigned #workoutCards .setrow.nf-trainer-set-row > button[data-toggle].done {
 background: #22883d !important;
 border-color: #1e7536 !important;
 color: #fff !important;
}
#workout.nf-trainer-redesigned #workoutCards .exercise-card > .actual-rest:not([data-exercise-rest]) {
 grid-column: 2;
 margin: 0;
 min-width: 0;
 border-radius: 0;
}
#workout.nf-trainer-redesigned #workoutCards .nf-exercise-footer {
 grid-column: 1 / -1;
 display: flex !important;
 flex-wrap: wrap;
 align-items: stretch;
 gap: 8px;
 margin-top: 10px;
}
#workout.nf-trainer-redesigned #workoutCards .nf-exercise-footer > .nf-previous-workout-summary,
#workout.nf-trainer-redesigned #workoutCards .nf-exercise-footer > .nf-exercise-volume {
 display: flex;
 flex: 1 1 134px;
 min-width: 0;
 gap: 4px;
 flex-direction: column;
 align-items: flex-start;
 justify-content: center;
 margin: 0;
 padding: 7px 10px;
 border: 1px solid var(--rec-gold-line);
 border-radius: 8px;
 background: linear-gradient(#fff9e7, #fff1cb);
 color: var(--rec-gold-ink);
}
#workout.nf-trainer-redesigned #workoutCards button.nf-previous-workout-summary {
 text-align: left;
 white-space: normal;
}
#workout.nf-trainer-redesigned #workoutCards button.nf-previous-workout-summary:hover {
 background: #ffedb6;
}
#workout.nf-trainer-redesigned .nf-previous-workout-summary small {
 font-size: 11px;
}
#workout.nf-trainer-redesigned #workoutCards .nf-exercise-footer > .nf-exercise-volume {
 border-color: #abd8b7;
 background: linear-gradient(#f1fbf1, #dcf3e0);
 color: #1c6535;
}
#workout.nf-trainer-redesigned #workoutCards .nf-exercise-footer strong { font-size: 10px; }
#workout.nf-trainer-redesigned #workoutCards .nf-exercise-footer span { font-size: 13px; font-weight: 800; }
#workout.nf-trainer-redesigned #workoutCards .nf-exercise-footer .nf-weight-next-direct {
 align-self: center;
 margin: 0 !important;
 padding: 5px !important;
}
#workout.nf-trainer-redesigned #workoutCards .nf-exercise-footer .nf-weight-next-direct span { font-size: 10px; }
#workout.nf-trainer-redesigned .nf-recorder-progress-footer {
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 gap: 8px 14px;
 padding: 10px 12px;
}
#workout.nf-trainer-redesigned #workoutCards > .nf-exercise-rest-inline {
 display: grid !important;
 grid-template-columns: auto auto minmax(0, 1fr);
 align-items: center;
 gap: clamp(6px, 1vw, 14px);
 margin: 0 !important;
 padding: 6px clamp(6px, 1vw, 14px) !important;
 border: 1px solid var(--rec-line) !important;
 border-radius: 10px !important;
 background: var(--rec-sky) !important;
 color: var(--rec-navy);
 font-size: 12px;
}
#workout.nf-trainer-redesigned .nf-exercise-rest-clock {
 font-size: clamp(16px, 3vw, 25px);
 line-height: 1;
}
#workout.nf-trainer-redesigned .nf-exercise-rest-next {
 justify-self: end;
 border: 1px solid #0962aa;
 border-radius: 7px;
 padding: 5px clamp(5px, 1vw, 12px);
 min-height: 32px;
 font-size: clamp(10px, 1.1vw, 13px);
 white-space: nowrap;
}
#workout.nf-trainer-redesigned .nf-recorder-progress-footer p {
 margin: 0;
 font-size: 13px;
 color: var(--rec-blue);
 font-weight: 750;
}
#workout.nf-trainer-redesigned .nf-recorder-details > summary {
 padding: 9px 12px;
 cursor: pointer;
 color: var(--rec-navy);
 font-size: 11px;
 font-weight: 800;
}
#workout.nf-trainer-redesigned #nfTrainerSessionDetails {
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 gap: 6px 12px;
 padding: 0 10px 8px;
}
#workout.nf-trainer-redesigned #recorderExerciseOrder {
 display: flex;
 flex-direction: row;
 align-items: center;
 flex: 1 1 auto;
 flex-wrap: wrap;
 gap: 5px 7px;
 margin: 0;
 padding: 0;
 border: 0;
 max-width: none;
}
#workout.nf-trainer-redesigned #recorderExerciseOrder :is(.muscle-order-heading,.muscle-order-rank) { color: var(--rec-navy); }
#workout.nf-trainer-redesigned #recorderExerciseOrder .muscle-order-heading { font-size: 10px; }
#workout.nf-trainer-redesigned #recorderExerciseOrder .muscle-order-item {
 color: var(--rec-ink) !important;
 border: 1px solid var(--rec-line);
 border-radius: 6px;
 padding: 2px 4px;
 background: #f1f7fe;
 font-size: 11px !important;
}
#workout.nf-trainer-redesigned #nfTrainerSessionDetails :is(button,span)[hidden] { display:none !important; }
#workout.nf-trainer-redesigned #nfTrainerSessionDetails #workoutTimestamp {
 color: var(--rec-navy);
 font-size: 11px;
 font-weight: 700;
}
#workout.nf-trainer-redesigned #nfDashTime,
#workout.nf-trainer-redesigned #nfDashTimeFooter { color: var(--rec-navy); font-weight: 850; }
#workout.nf-trainer-redesigned .nf-recorder-progress-footer > div {
 display:flex;
 flex:1 1 auto;
 gap:8px;
 align-items: center;
}
#workout.nf-trainer-redesigned .nf-recent-performance {
 overflow-x: auto;
 min-width: 0;
}
#workout.nf-trainer-redesigned .nf-recent-performance table {
 width: 100%;
 border-collapse: collapse;
 font-variant-numeric: tabular-nums;
 font-size: clamp(10px, .92vw, 14px);
}
#workout.nf-trainer-redesigned .nf-recent-performance th {
 background: #e2effe;
 font-weight: 850;
 color: var(--rec-navy);
}
#workout.nf-trainer-redesigned .nf-recent-performance :is(th,td) {
 padding: 7px 4px;
 text-align: center;
 border-bottom: 1px solid #cfdeee;
}
#workout.nf-trainer-redesigned .nf-recent-performance :is(th,td):first-child {
 padding-left: 8px;
 text-align: left;
 white-space: nowrap;
}
#workout.nf-trainer-redesigned .nf-recent-performance td:last-child { white-space: nowrap; }
#workout.nf-trainer-redesigned .nf-recent-performance tr:nth-child(even) td { background: #edf5fd; }
#workout.nf-trainer-redesigned .nf-recent-performance > p { margin: 10px 12px 0; font-size: 12px; color: #425f7c; }
#workout.nf-trainer-redesigned [data-direction="1"] { color: #176537; font-weight: 800; }
#workout.nf-trainer-redesigned [data-direction="-1"] { color: #a4292e; font-weight: 800; }
#nfQuickAddDialog #nfQuickAddGroupLabel { color: #15578b; }
#nfQuickAddDialog #nfQuickAddExerciseLabel { color: #84490d; }

@media (max-width: 1000px) {
 #workout.nf-trainer-redesigned #nfRecorderDashboard {
  grid-template-columns: minmax(0, 1fr);
 }
 #workout.nf-trainer-redesigned .nf-dashboard-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
 }
}
@media (max-width: 850px) {
 body:has(#workout.active) > .shell > main {
  padding-bottom: calc(75px + env(safe-area-inset-bottom));
 }
 #workout.nf-trainer-redesigned #workoutCards > article.exercise-card:not(.warmup-card):not([hidden]) {
  grid-template-columns: minmax(0, 1fr);
 }
 #workout.nf-trainer-redesigned #workoutCards .nf-recorder-media-panel {
  grid-column: 1;
  grid-row: auto;
  width: min(160px, 62%);
  margin-bottom: 7px;
 }
 #workout.nf-trainer-redesigned #workoutCards .nf-recorder-media:not(button) { display: none; }
 #workout.nf-trainer-redesigned #workoutCards > article.exercise-card:not(.warmup-card) > .cardhead,
 #workout.nf-trainer-redesigned #workoutCards .nf-recorder-targets,
 #workout.nf-trainer-redesigned #workoutCards .nf-recorder-set-head,
 #workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row,
 #workout.nf-trainer-redesigned #workoutCards .exercise-card > .actual-rest:not([data-exercise-rest]) {
  grid-column: 1;
 }
}
@media (max-width: 590px) {
 #workout.nf-trainer-redesigned .nf-recorder-timers {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
 }
 #workout.nf-trainer-redesigned .nf-recorder-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
 }
 #workout.nf-trainer-redesigned .nf-future-kpi { display: none; }
 #workout.nf-trainer-redesigned .nf-recorder-kpis > * { min-height: 60px; padding: 7px; }
 #workout.nf-trainer-redesigned .nf-recorder-kpis p,
 #workout.nf-trainer-redesigned .nf-recorder-surface h2 { font-size: 11px; }
 #workout.nf-trainer-redesigned .nf-dashboard-side { grid-template-columns: minmax(0, 1fr); }
 #workout.nf-trainer-redesigned #nfTrainerActions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
 }
 #workout.nf-trainer-redesigned #nfTrainerActions :is(#nfQuickAddOpen, #trainerSingleToggle) { width: 100% !important; }
 #workout.nf-trainer-redesigned #workoutCards .nf-recorder-set-head { display: none !important; }
 #workout.nf-trainer-redesigned #workoutCards > article.exercise-card:not(.warmup-card):not([hidden]) {
  --rec-gear: 29px;
  --rec-set-cols: var(--rec-gear) 20px repeat(3, minmax(0, 1fr)) 33px;
  --rec-set-gap: 5px;
 }
 #workout.nf-trainer-redesigned #workoutCards > article.exercise-card:not(.warmup-card) > .cardhead {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 5px !important;
 }
 #workout.nf-trainer-redesigned #workoutCards .cardhead .nf-card-title { grid-row: 1; }
 #workout.nf-trainer-redesigned #workoutCards .cardhead .nf-header-metrics {
  grid-column: 1 !important;
  grid-row: 2 !important;
  justify-self: start;
 }
 #workout.nf-trainer-redesigned #workoutCards .cardhead .workout-card-actions,
 #workout.nf-trainer-redesigned #workoutCards .cardhead .workout-card-actions:has(+ .nf-header-metrics:empty) {
  grid-column: 1 !important;
  grid-row: 3 !important;
  justify-content: flex-start !important;
 }
 #workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row {
  row-gap: 4px;
  border-top: 1px solid #d6e3f0;
  border-radius: 7px;
  margin-bottom: 4px !important;
 }
 #workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row > label {
  font-size: 9px !important;
  gap: 2px !important;
 }
 #workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row > .nf-set-repetitions {
  grid-column: 4 / 6 !important; grid-row: 1 !important;
 }
 #workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row > .nf-set-assisted {
  grid-column: 3 !important; grid-row: 2 !important;
 }
 #workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row > .nf-set-rir {
  grid-column: 4 !important; grid-row: 2 !important;
 }
 #workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row > .set-actual-rest {
  grid-column: 5 !important; grid-row: 2 !important;
 }
 #workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row > button[data-toggle] {
  grid-column: 6 !important; grid-row: 2 !important; align-self: end !important;
 }
}

/* Keep Add and Substitute together, with both controls visible on narrow screens. */
#workout.nf-trainer-redesigned #nfTrainerActions .nf-quick-add-toolbar {
 flex-wrap: wrap;
 gap: 8px;
}
#nfQuickAddDialog label[hidden],
#workout.nf-trainer-redesigned #nfOutsideExerciseNavigation button[hidden] { display: none !important; }
#workout.nf-trainer-redesigned #workoutCards .warmup-card:not([hidden]) {
 background: #fff;
 border-color: var(--rec-line);
}
@media (max-width: 590px) {
 #workout.nf-trainer-redesigned #nfTrainerActions .nf-quick-add-toolbar {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr));
 }
 #workout.nf-trainer-redesigned #nfTrainerActions .nf-quick-add-toolbar button {
  width: 100% !important;
 }
}

/* Masthead and navigation shared by the workspace. */
.nf-icon { display: inline-block; flex: 0 0 auto; vertical-align: -.2em; }
body > header .nf-top-client .nf-top-client-details {
 align-items: center;
 gap: 3px 8px;
 font-size: 10px;
}
body > header .nf-top-client-details > span { white-space: nowrap; }
body > header .nf-top-client-details b { font-size: 11px; margin-left: 2px; }
body > header #nfEditVitals {
 display: inline-grid;
 place-items: center;
 width: 24px;
 min-height: 24px;
 padding: 0;
 border: 1px solid #7fa9d6;
 border-radius: 5px;
 background: #16487e;
 color: #fff;
}
#nfEditVitals .nf-icon { width: 14px; height: 14px; }
#nfVitalsFields { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
#nfVitalsFields > label { min-width: 0; }
#nfVitalsFields input { width: 100%; }
body > .shell > aside > .nav,
#nfMobileDrawerList > button { display: flex; align-items: center; justify-content: flex-start; gap: 8px; text-align: left; }
body > .shell > aside > .nav .nf-icon,
#nfMobileDrawerList > button .nf-icon { width: 22px; height: 22px; }
@media (max-height: 680px) and (min-width: 801px) {
 body > .shell > aside > .nav { padding-block: 2px; margin-bottom: 1px; font-size: 11px; }
}
#workout.nf-trainer-redesigned .nf-dashboard-main { container-type: inline-size; }
#workout.nf-trainer-redesigned :is(h2, h3, summary, button, .nf-exercise-volume strong) > .nf-icon {
 width: 20px;
 height: 20px;
}
#workout.nf-trainer-redesigned .nf-insight-panel h3 > .nf-icon { margin-right: 5px; }
#workout.nf-trainer-redesigned #nfTrainerTimerPanel h2 { flex-shrink: 1; line-height: 1.2; }
#workout.nf-trainer-redesigned #nfTrainerTimerPanel .nf-session-mode { padding-inline: 7px; }
#workout.nf-trainer-redesigned #nfTrainerTimerPanel .nf-session-duration { width: 52px; padding-inline: 5px; }
#workout.nf-trainer-redesigned #nfTrainerTimerPanel .recorder-session-clock { flex: 0 0 auto; }
#workout.nf-trainer-redesigned #nfTrainerTimerPanel .recorder-session-clock strong { font-variant-numeric: tabular-nums; }
#workout.nf-trainer-redesigned #nfTrainerRestPanel { padding-inline: 8px; }
#workout.nf-trainer-redesigned #nfTrainerRestPanel .uniform-select-button { padding-left: 6px; font-size: 11px; }
@container (max-width: 632px) {
 #workout.nf-trainer-redesigned .nf-recorder-timers { grid-template-columns: minmax(0, 1fr); gap: 7px; }
 #workout.nf-trainer-redesigned #nfTrainerRestPanel .nf-global-exercise-rest > label { max-width: none; }
 #workout.nf-trainer-redesigned #nfTrainerRestPanel .uniform-select { flex: 0 1 116px; }
}
@container (max-width: 465px) {
 #workout.nf-trainer-redesigned #nfTrainerTimerPanel { gap: 4px; padding-inline: 6px; position: relative; }
 #workout.nf-trainer-redesigned #nfTrainerTimerPanel h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
 }
 #workout.nf-trainer-redesigned #nfTrainerTimerPanel .nf-session-mode-selector { flex: 0 1 auto; }
 #workout.nf-trainer-redesigned #nfTrainerTimerPanel .nf-session-mode,
 #workout.nf-trainer-redesigned #nfTrainerTimerPanel .nf-session-duration-label { font-size: 11px; }
 #workout.nf-trainer-redesigned #nfTrainerTimerPanel .nf-session-duration { width: 43px; }
 #workout.nf-trainer-redesigned #nfTrainerTimerPanel .nf-minute-tail { display: none; }
 #workout.nf-trainer-redesigned #nfTrainerTimerPanel .recorder-session-clock { gap: 2px; }
 #workout.nf-trainer-redesigned #nfTrainerTimerPanel .recorder-session-clock button { min-width: 43px; padding-inline: 4px; }
 #workout.nf-trainer-redesigned #nfTrainerTimerPanel .recorder-session-clock strong { font-size: 20px; }
}

#workout.nf-trainer-redesigned .muscle-order-arrows:empty { display: none; }
#workout.nf-trainer-redesigned #workoutCards :is(.nf-recorder-set-head, .exercise-card .setrow.nf-trainer-set-row) {
 position: relative;
 isolation: isolate;
 border: 0;
 background: transparent;
}
#workout.nf-trainer-redesigned #workoutCards :is(.nf-recorder-set-head, .exercise-card .setrow.nf-trainer-set-row)::before {
 content: '';
 position: absolute;
 inset: 0 0 0 calc(var(--rec-gear) + var(--rec-set-gap) + 3px);
 z-index: -1;
 border: 1px solid #d6e3f0;
 border-top: 0;
 background: #f9fcff;
 pointer-events: none;
}
#workout.nf-trainer-redesigned #workoutCards .nf-recorder-set-head::before {
 border: 1px solid #bed4ed;
 border-radius: 8px 8px 0 0;
 background: linear-gradient(#eaf4ff, #dcecff);
}
#workout.nf-trainer-redesigned #workoutCards .nf-mobile-reps-heading { display: none; }
@media (max-width: 590px) {
 #workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row::before {
  border-top: 1px solid #d6e3f0;
  border-radius: 7px;
 }
 #workout.nf-trainer-redesigned #workoutCards .nf-mobile-reps-heading {
  display: block;
  grid-column: 1 / -1;
  font-size: 9px;
  font-weight: 800;
 }
}
#workout.nf-trainer-redesigned #workoutCards .nf-personal-record:not([hidden]) {
 grid-column: 1 / -1;
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 gap: 5px 9px;
 margin-top: 9px;
 padding: 8px 10px;
 border: 1px solid #69ba79;
 border-radius: 8px;
 background: linear-gradient(110deg, #e7fae8, #d0f4d6);
 color: #184d2a;
 font-size: 13px;
}
#workout.nf-trainer-redesigned #workoutCards .nf-personal-record > .nf-icon { color: #9a6000; }
#workout.nf-trainer-redesigned #workoutCards .nf-record-performance {
 font-variant-numeric: tabular-nums;
 white-space: nowrap;
}
#workout.nf-trainer-redesigned #workoutCards [data-record-kind="weight"] [data-record-load],
#workout.nf-trainer-redesigned #workoutCards [data-record-kind="reps"] [data-record-reps] {
 font-size: 19px;
 font-weight: 900;
}
#workout.nf-trainer-redesigned #workoutCards > .nf-exercise-rest-inline[hidden] { display: none !important; }
@container (max-width: 325px) {
 #workout.nf-trainer-redesigned #nfTrainerTimerPanel .nf-session-mode { padding-inline: 5px; }
 #workout.nf-trainer-redesigned #nfTrainerTimerPanel .nf-session-duration { width: 40px; }
 #workout.nf-trainer-redesigned #nfTrainerTimerPanel .recorder-session-clock strong { font-size: 18px; padding-inline: 2px; }
}

/* Keep the workspace icons monochrome and give the Recorder actions and metrics an accent. */
#workout.nf-trainer-redesigned .nf-icon { color: #135db0; }
#workout.nf-trainer-redesigned .nf-icon:is([data-icon="target"],[data-icon="muscles"],[data-icon="trophy"]) { color: #936100; }
#workout.nf-trainer-redesigned .nf-icon:is([data-icon="notes"],[data-icon="plus"]) { color: #18724a; }
#workout.nf-trainer-redesigned .nf-icon[data-icon="swap"] { color: #8549a3; }
#workout.nf-trainer-redesigned .nf-insight-panel .nf-icon { color: #c4e5ff; }
#workout.nf-trainer-redesigned .nf-insight-panel .nf-icon[data-icon="trophy"] { color: #ffdf75; }
#workout.nf-trainer-redesigned .nf-insight-panel .nf-icon[data-icon="person"] { color: #9de9c3; }
#nfEditVitals .nf-icon { width: 16px; height: 16px; color: #ffdf75; }

#workout.nf-trainer-redesigned #workoutCards .nf-exercise-photo-actions {
 display: grid;
 grid-template-columns: repeat(4, minmax(0, 1fr));
 gap: 4px;
 margin-top: 8px;
}
#workout.nf-trainer-redesigned #workoutCards .nf-exercise-photo-actions button {
 display: grid;
 place-items: center;
 min-height: 33px;
 min-width: 0;
 padding: 0;
 border: 1px solid #e3c06c;
 border-radius: 7px;
 background: linear-gradient(#fff8e0, #ffedb1);
}
#workout.nf-trainer-redesigned #workoutCards .nf-exercise-photo-actions button:disabled {
 opacity: 1;
 cursor: default;
 background: #fffae9;
 border-color: #eee1bb;
}
#workout.nf-trainer-redesigned #workoutCards .nf-exercise-photo-actions .has-notes {
 background: #dff5e7;
 border-color: #72b28e;
}
#workout.nf-trainer-redesigned #workoutCards .nf-exercise-photo-actions .nf-icon {
 width: 21px;
 height: 21px;
}
#workout.nf-trainer-redesigned #workoutCards .setrow.nf-trainer-set-row :is(.nf-set-rir,.set-actual-rest) :is(.nf-rir-select,input) {
 border-color: #dfbc64;
 background: #fff2c8 !important;
 color: #5c3c10;
}
#workout.nf-trainer-redesigned #workoutCards .setrow .nf-rir-select {
 padding-inline: 3px !important;
 text-align-last: center;
}
#nfExerciseNotesDialog { width: min(540px, calc(100vw - 24px)); }
#nfExerciseNotesDialog form,
#nfExerciseSetNotes { display: grid; gap: 11px; }
#nfExerciseNotesDialog textarea {
 box-sizing: border-box;
 width: 100%;
 resize: none;
 overflow-y: hidden;
 min-height: 48px;
 padding: 8px 10px;
 border: 1px solid #b6cadd;
 border-radius: 6px;
 font: inherit;
 font-weight: 500;
}

body > .shell > aside > #analysisMenuToggle {
 justify-content: flex-start !important;
}
body > .shell > aside > #analysisMenuToggle > span[aria-hidden] {
 margin-inline-start: auto;
}
#nfMobileDrawer .nf-mobile-subpages[data-group="analysis"] {
 margin-inline: 0;
 padding-inline: 0;
 border-inline-start: 0;
}
body > .shell > aside #analysisSideMenu .nav.nf-section-complete:not(.active, [aria-current="page"]),
#nfMobileDrawer .nf-mobile-subpages button.nf-section-complete:not([aria-current="page"]) {
 color: #baf3d8 !important;
}
#analysisSideMenu .nf-completion-mark,
#nfMobileDrawer .nf-completion-mark {
 display: inline-grid;
 place-items: center;
 width: 1.35em;
 height: 1.35em;
 margin-inline-end: .2em;
 border-radius: 50%;
 background: #b7f5d9;
 color: #064833;
 font-weight: 900;
 vertical-align: baseline;
}

#nfSetDetailsDialog {
 box-sizing: border-box;
 width: min(620px, calc(100vw - 24px));
 max-width: calc(100vw - 24px);
 max-height: calc(100dvh - 16px);
 margin: auto;
 padding: 0;
 overflow: auto;
 overscroll-behavior: contain;
 border: 1px solid #bdcfe3;
 border-radius: 14px;
 color: #133153;
 background: #f8fbff;
 box-shadow: 0 16px 50px #0d274a55;
}
#nfSetDetailsDialog::backdrop { background: #081d3b85; }
#nfSetDetailsDialog form {
 display: grid;
 gap: 10px;
 padding: 16px;
}
#nfSetDetailsTitle {
 margin: 0;
 color: #103760;
 font-size: clamp(15px, 2vw, 20px);
}
#nfSetDetailsFields {
 display: grid;
 gap: 8px;
}
#nfSetDetailsDialog fieldset {
 box-sizing: border-box;
 min-inline-size: 0;
 display: grid;
 align-items: end;
 gap: 7px;
 margin: 0;
 padding: 7px 9px 9px;
 border: 1px solid #bdd3ec;
 border-radius: 8px;
 background: #fff;
}
#nfSetDetailsDialog :is(.nf-details-gear,.nf-recorder-percent-controls) {
 grid-template-columns: repeat(3, minmax(0, 1fr));
}
#nfSetDetailsDialog legend {
 padding-inline: 4px;
 color: #124f85;
 font-size: 11px;
 font-weight: 850;
 letter-spacing: .035em;
}
#nfSetDetailsDialog :is(label, .nf-recorder-percent-weight) {
 display: grid;
 gap: 4px;
 min-width: 0;
 margin: 0;
 font-size: 12px;
 font-weight: 750;
}
#nfSetDetailsDialog :is(select, input, output) {
 box-sizing: border-box;
 width: 100%;
 min-width: 0;
 min-height: 34px;
 margin: 0;
 padding: 4px 6px;
 border: 1px solid #aebfd3;
 border-radius: 6px;
 font: inherit;
 font-size: 13px;
}
#nfSetDetailsDialog select { text-overflow: ellipsis; }
#nfSetDetailsDialog output {
 display: grid;
 align-items: center;
 color: #115283;
 border-color: #b6cce4;
 background: #eaf4ff;
}
#nfSetDetailsDialog .nf-set-mode-buttons {
 grid-template-columns: repeat(5, minmax(0, 1fr));
 align-items: stretch;
}
#nfSetDetailsDialog [data-set-mode] {
 min-width: 0;
 min-height: 34px;
 margin: 0;
 padding: 4px 1px;
 border: 1px solid color-mix(in srgb, var(--mode-color) 44%, white);
 border-radius: 6px;
 color: var(--mode-color);
 background: color-mix(in srgb, var(--mode-color) 11%, white);
 font-size: 11px;
 font-weight: 850;
}
#nfSetDetailsDialog [data-set-mode]:hover:not(:disabled) { border-color: var(--mode-color); }
#nfSetDetailsDialog [data-set-mode]:focus-visible { outline: 2px solid var(--rec-navy); outline-offset: 2px; }
#nfSetDetailsDialog [data-set-mode="unilateral"] { --mode-color: #b62438; }
#nfSetDetailsDialog [data-set-mode="isometric"] { --mode-color: #a04408; }
#nfSetDetailsDialog [data-set-mode="alternating"] { --mode-color: #137144; }
#nfSetDetailsDialog [data-set-mode="superset"] { --mode-color: #155bad; }
#nfSetDetailsDialog [data-set-mode="dropSet"] { --mode-color: #6938a6; }
#nfSetDetailsDialog [data-set-mode][aria-pressed="true"] {
 color: var(--rec-white);
 border-color: var(--mode-color);
 background: var(--mode-color);
 box-shadow: inset 0 -3px #0003;
}
#nfSetDetailsDialog [data-set-mode]:disabled {
 opacity: 1;
 color: #53677d;
 border-color: #c5d3e2;
 background: #edf2f7;
 box-shadow: none;
 cursor: not-allowed;
}
#nfSetDetailsDialog .nf-set-details-close {
 justify-self: end;
 min-height: 34px;
 padding: 4px 14px;
}
@media (max-height: 390px) {
 #nfSetDetailsDialog form { gap: 5px; padding: 9px; }
 #nfSetDetailsFields { gap: 4px; }
 #nfSetDetailsDialog fieldset { padding-block: 4px; }
}

/* Use the workspace sidebar and content gutter as the masthead grid. */
body {
 --nf-sidebar-width: clamp(186px, 15.5vw, 246px);
 --nf-page-gutter: clamp(10px, 1.1vw, 20px);
 --nf-header-gap: 12px;
}
body > .shell > main {
 flex: 1 1 0;
 width: auto;
 max-width: none;
 margin-inline: 0;
 padding-inline: var(--nf-page-gutter);
}
body > header {
 display: grid;
 grid-template-columns: calc(var(--nf-sidebar-width) - var(--nf-header-gap)) minmax(110px, max-content) minmax(160px, 1fr) auto auto;
 align-items: center;
 gap: 6px var(--nf-header-gap);
 height: auto;
 min-height: auto;
 padding: 8px var(--nf-page-gutter);
 background: var(--rec-masthead) !important;
 border: 0;
 box-shadow: 0 2px 8px #12427538;
}
body > header > .brand { display: contents; }
body > header .brand-logo {
 grid-column: 1;
 grid-row: 1;
 width: 100% !important;
 height: auto !important;
 max-width: 100%;
 aspect-ratio: 648 / 367;
 object-fit: contain;
}
body > header #nfMastheadPageTitle {
 grid-column: 2;
 grid-row: 1;
 justify-self: start;
 max-width: 14ch;
}
body > header .nf-top-client {
 grid-column: 3;
 grid-row: 1;
 justify-self: start;
 width: min(100%, 250px);
}
body > header #nfTrainerRecorderContext { grid-column: 4; grid-row: 1; }
body > header .header-right { grid-column: 5; grid-row: 1; gap: 6px; justify-self: end; }
body > header .header-right button { min-height: 32px; padding: 5px 8px; font-size: 11px; }
#planner #planRows { width: 100%; max-width: none; margin-inline: 0; }
@media screen and (max-width: 1024px) {
 html { scroll-padding-block-start: calc(var(--nf-workspace-header, 90px) + 8px); }
 body { --nf-header-gap: 8px; }
 body > .shell { display: block; }
 body > .shell > aside { display: none !important; }
 body > .shell > main,
 body:has(#workout.active) > .shell > main {
  padding-inline: max(var(--nf-page-gutter), env(safe-area-inset-left)) max(var(--nf-page-gutter), env(safe-area-inset-right));
  padding-block-end: max(24px, env(safe-area-inset-bottom));
 }
 body > header {
  grid-template-columns: minmax(92px, 124px) minmax(80px, 1fr) minmax(145px, 1.3fr) auto;
  grid-template-areas: "logo title client actions";
  padding-block-start: max(6px, env(safe-area-inset-top));
  padding-block-end: 6px;
  padding-inline: max(var(--nf-page-gutter), env(safe-area-inset-left)) max(var(--nf-page-gutter), env(safe-area-inset-right));
 }
 body > header .brand-logo { grid-area: logo; }
 body > header #nfMastheadPageTitle { grid-area: title; font-size: clamp(13px, 2vw, 18px); }
 body > header .nf-top-client { grid-area: client; min-width: 0; justify-self: stretch; position: relative; }
 body > header .nf-top-client .nf-top-client-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
 }
 body > header .nf-top-client :is(.uniform-select, #nfTopClientSelect) { min-width: 0; }
 body > header .nf-top-client :is(.uniform-select, #nfTopClientSelect:not(.uniform-native-select)) { width: calc(100% - 49px); }
 body > header .nf-top-client .uniform-select-button { min-height: 44px !important; }
 body > header .nf-top-client .nf-top-client-details { gap: 2px 7px; }
 body > header #nfEditVitals {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
 }
 body > header .header-right { grid-area: actions; align-items: center; gap: 5px; }
 body > header .header-right button { min-height: 44px !important; }
 body > header .header-right .pill { min-width: 44px; }
 body > header #nfMobileMenuButton {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 62px;
  border: 1px solid #9ac1e5;
  border-radius: 8px;
  background: #174b84;
  color: white;
  font-weight: 800;
 }
 #nfMobileDrawer { padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) env(safe-area-inset-left); }
 #nfMobileClose { min-width: 44px; min-height: 44px; }
 .nf-mobile-drawer-list { min-height: 0; }
 html:has(body.nf-mobile-menu-open) { overflow: hidden; }
}

@media screen and (max-width: 1024px), screen and (pointer: coarse) {
 #workout.nf-trainer-redesigned #workoutCards > article.exercise-card:not(.warmup-card):not([hidden]) {
  --rec-gear: 44px;
  --rec-set-cols: var(--rec-gear) 26px minmax(46px, 1.05fr) minmax(53px, 1fr) minmax(45px, .84fr) minmax(44px, .66fr) minmax(52px, .9fr) 44px;
 }
 #workout.nf-trainer-redesigned #workoutCards .setrow.nf-trainer-set-row > :is(.nf-set-detail-trigger, button[data-toggle]) {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
 }
 #workout.nf-trainer-redesigned #workoutCards .setrow.nf-trainer-set-row :is(.nf-set-weight, .nf-set-repetitions, .nf-set-assisted, .nf-set-rir, .set-actual-rest) :is(input, .nf-rir-select) {
  height: 44px !important;
  min-height: 44px !important;
  font-size: 16px !important;
 }
 #workout.nf-trainer-redesigned #nfTrainerTimerPanel :is(.nf-session-mode, .nf-session-duration, .recorder-session-clock button),
 #workout.nf-trainer-redesigned #nfTrainerActions button,
 #workout.nf-trainer-redesigned #workoutCards .warmup-actions button,
 #workout.nf-trainer-redesigned #workoutCards .cardhead .workout-card-actions button {
  min-height: 44px !important;
 }
 #workout.nf-trainer-redesigned #workoutCards .nf-exercise-photo-actions button { min-height: 44px; }
 #workout.nf-trainer-redesigned #workoutCards .warmup-fields input { min-height: 44px; }
 #workout.nf-trainer-redesigned #nfTrainerTimerPanel .nf-session-duration { font-size: 16px; }

 .nf-calendar-day { min-height: 44px; font-size: 12px; }
 .nf-calendar-days { grid-template-columns: repeat(auto-fit, minmax(37px, 1fr)); }
 .nf-calendar-week-toggle { min-height: 34px; padding-inline: 6px; font-size: 11px; }
 #planRows .nf-planner-exercise-actions button,
 #planRows .nf-planner-include,
 #planner .nf-planner-view-toggle button { min-height: 44px; }
 #planRows .nf-planner-exercise-actions button { min-width: 44px; }
 #planRows .nf-planner-include { min-width: 44px; justify-content: center; align-items: center; }
 .session-report-scroll { max-width: 100%; overscroll-behavior-inline: contain; }

 main :is(input:not([type=checkbox], [type=radio], [type=range], [type=file]), select, textarea),
 dialog :is(input:not([type=checkbox], [type=radio], [type=range], [type=file]), select, textarea) {
  font-size: max(16px, 1em);
 }
 #bodyAnalysisApp :is(input:not([type=checkbox], [type=radio], [type=range], [type=file]), select, textarea) {
  font-size: max(16px, 1em) !important;
 }
 main :is(.filters, .library-filters, .body-grid, .rm-inputs) :is(input:not([type=checkbox], [type=radio], [type=range]), .uniform-select-button, select:not(.uniform-native-select)),
 dialog :is(button, select:not(.uniform-native-select), input:not([type=checkbox], [type=radio], [type=range], [type=file])) {
  min-height: 44px;
 }
 dialog { max-block-size: calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom))); }
 #nfSetDetailsDialog :is(input, select) { min-height: 44px; font-size: 16px; }
 #nfSetDetailsDialog :is([data-set-mode], .nf-set-details-close) { min-height: 44px; }
}

@media screen and (max-width: 760px) {
 body > header .header-right #backupTop { display: none; }
}

@media screen and (max-width: 600px) {
 body > header {
  grid-template-columns: minmax(96px, 1fr) auto;
  grid-template-areas: "logo client" "title actions";
  gap: 4px 8px;
 }
 body > header .brand-logo { width: min(100%, 122px) !important; }
 body > header .nf-top-client { width: 100%; max-width: 245px; }
 body > header #nfMastheadPageTitle { max-width: none; font-size: clamp(12px, 3.2vw, 17px); }
 .nf-report-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .nf-calendar-week-controls { gap: 3px; }
 #planRows .nf-planner-exercise-title { flex-basis: calc(100% - 60px); }
 #planRows .nf-planner-exercise-actions { margin-inline-start: 0; }
 .body-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 #workout.nf-trainer-redesigned #workoutCards .warmup-card .cardhead {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
  padding-inline: 8px !important;
 }
 #workout.nf-trainer-redesigned #workoutCards .warmup-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-self: stretch;
 }
}

@media screen and (max-width: 590px) {
 #workout.nf-trainer-redesigned #nfTrainerActions #trainerSingleViewControls {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
 }
 #workout.nf-trainer-redesigned #nfTrainerActions :is(#trainerSingleToggle, #nfTrainerOverviewButton) { min-height: 44px !important; }
 #workout.nf-trainer-redesigned #workoutCards > article.exercise-card:not(.warmup-card):not([hidden]) {
  --rec-set-cols: var(--rec-gear) 24px repeat(3, minmax(0, 1fr)) 44px;
  --rec-set-gap: 5px;
 }
 #workout.nf-trainer-redesigned #workoutCards .setrow.nf-trainer-set-row {
  padding: 6px !important;
  row-gap: 7px;
 }
 #workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row::before { inset: 0; }
 #workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row > label { font-size: 10px !important; }
 #workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row > .nf-set-weight {
  grid-column: 3 / span 2 !important; grid-row: 1 !important;
 }
 #workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row > .nf-set-repetitions {
  grid-column: 5 / -1 !important;
 }
 #workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row > .nf-set-assisted {
  grid-column: 1 / span 2 !important;
 }
 #workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row > .nf-set-rir { grid-column: 3 !important; }
 #workout.nf-trainer-redesigned #workoutCards .exercise-card .setrow.nf-trainer-set-row > .set-actual-rest { grid-column: 4 / span 2 !important; }
}

@media screen and (max-width: 390px) {
 body > header .brand-logo { width: min(100%, 104px) !important; }
}
