/* LBRank Workout & dual Progress: theme-matched, flat and mobile-friendly. */

/* Seven destinations fit without a clipped seventh button on iPhone. */
.tab-nav > .tab-btn {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  padding-left: 1px !important;
  padding-right: 1px !important;
}
.tab-nav > .tab-btn .tab-label {
  font-size: clamp(8px, 2.15vw, 10px) !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}
.tab-nav > .tab-btn .tab-icon,
.tab-nav > .tab-btn .tab-icon svg {
  max-width: 24px !important;
}
@media(max-width:355px) {
  .tab-nav > .tab-btn .tab-label {font-size:7.6px !important;}
  .tab-nav > .tab-btn .tab-icon svg {width:19px !important;height:19px !important;}
}

#workout-tab .workout-container {
  width: min(100%, 650px);
  max-width: 650px;
  margin: 0 auto;
  padding: 6px 13px calc(var(--lbrank-nav-core-height,56px) + 34px);
  display: grid;
  align-content: start;
  gap: 16px;
  color: var(--theme-text,#fff);
  background: transparent !important;
}
#workout-tab .app-page-header {
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(172,192,219,.16);
}
#workout-tab .app-page-header h2 {
  color: var(--ui-header,var(--theme-text,#fff));
  margin: 4px 0;
}
#workout-tab .app-page-header p {
  color: var(--ui-card-description,var(--theme-text-muted,#bdc9d8));
  font-size: 12px;
  line-height: 1.55;
}
#workout-tab .workout-summary-row {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  padding: 8px 0 14px;
  border-bottom: 1px solid rgba(172,192,219,.16);
}
#workout-tab .workout-summary-row > div {
  display: grid;
  gap: 6px;
}
#workout-tab .workout-summary-row span {
  color: var(--ui-subheader,var(--theme-text-muted,#bdc9d8));
  font-size: 10px;
  font-weight: 750;
}
#workout-tab .workout-summary-row strong {
  color: var(--ui-card-title,var(--theme-text,#fff));
  font-weight: 850;
  font-size: 22px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

#workout-tab .workout-exercise-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 11px;
  min-width: 0;
}
#workout-tab .workout-exercise-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 7px;
  padding: 15px 13px 13px;
  border: 1px solid rgba(var(--theme-primary-rgb,0,212,255),.22);
  border-radius: 15px;
  background: rgba(var(--theme-primary-rgb,0,212,255),.055);
  box-shadow: none;
}
#workout-tab .workout-exercise-heading {
  display: grid;
  gap: 4px;
  min-height: 36px;
}
#workout-tab .workout-exercise-heading strong {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 850;
  color: var(--ui-card-title,var(--theme-text,#fff));
  overflow-wrap: anywhere;
}
#workout-tab .workout-exercise-heading small {
  font-size: 9px;
  line-height: 1.35;
  color: var(--ui-card-description,var(--theme-text-muted,#b8c5d6));
}
#workout-tab .workout-number {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-height: 49px;
  color: var(--theme-primary,#00d4ff);
  -webkit-text-fill-color: currentColor;
}
#workout-tab .workout-number strong {
  font-size: clamp(27px,7vw,37px);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: inherit;
  -webkit-text-fill-color: currentColor !important;
}
/* Consistent rep-number colours, including iOS WebKit text rendering. */
#workout-tab .workout-number.steady,
#workout-tab .workout-number.steady strong {color:var(--theme-primary,#00d4ff) !important;}
#workout-tab .workout-number.steady strong {-webkit-text-fill-color:var(--theme-primary,#00d4ff) !important;}
#workout-tab .workout-number.up,
#workout-tab .workout-number.up strong {color:#35c989 !important;}
#workout-tab .workout-number.up strong,
#workout-tab .workout-number.up .workout-delta {-webkit-text-fill-color:#35c989 !important;}
#workout-tab .workout-number.down,
#workout-tab .workout-number.down strong {color:#f36b73 !important;}
#workout-tab .workout-number.down strong,
#workout-tab .workout-number.down .workout-delta {-webkit-text-fill-color:#f36b73 !important;}
#workout-tab .workout-delta {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
#workout-tab .workout-entry-label {
  margin-top: auto;
  color: var(--ui-subheader,var(--theme-text-muted,#bdc9d8));
  font-size: 10px;
  font-weight: 750;
}
#workout-tab .workout-exercise-card input {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(var(--theme-primary-rgb,0,212,255),.25);
  border-radius: 10px;
  background: var(--theme-secondary,#080e18);
  color: var(--theme-text,#fff);
  -webkit-text-fill-color: var(--theme-text,#fff);
  font: 750 16px/1.3 system-ui,sans-serif;
  font-variant-numeric: tabular-nums;
  touch-action: manipulation;
}
#workout-tab .workout-exercise-card input:focus-visible,
#workout-tab #workoutAddForm input:focus-visible,
#workout-tab #workoutAddForm button:focus-visible {
  outline: 2px solid var(--theme-primary,#00d4ff);
  outline-offset: 2px;
}
#workout-tab .workout-add-form {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(172,192,219,.16);
  padding: 15px 0 4px;
}
#workout-tab .workout-add-form > label {
  color: var(--ui-card-title,var(--theme-text,#fff));
  font-size: 13px;
  font-weight: 850;
}
#workout-tab .workout-add-inline {
  display: flex;
  min-width: 0;
  gap: 10px;
}
#workout-tab .workout-add-inline input {
  min-width: 0;
  flex: 1 1 auto;
  height: 44px;
  border: 1px solid rgba(var(--theme-primary-rgb,0,212,255),.25);
  border-radius: 11px;
  padding: 9px 11px;
  background: var(--theme-secondary,#080e18);
  color: var(--theme-text,#fff);
  font: 500 16px/1.3 system-ui,sans-serif;
}
#workout-tab .workout-add-inline button {
  border: 1px solid rgba(var(--theme-primary-rgb,0,212,255),.4);
  border-radius: 11px;
  padding: 8px 17px;
  color: var(--theme-text,#fff);
  background: rgba(var(--theme-primary-rgb,0,212,255),.13);
  font: 800 12px/1.3 system-ui,sans-serif;
  cursor: pointer;
}
#workout-tab .workout-hint {
  color: var(--ui-card-description,var(--theme-text-muted,#bfcbd8));
  font-size: 11px;
  line-height: 1.6;
}

/* Two compact selector cards above the existing Weight and Workout layouts. */
#graph-tab .progress-mode-card-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  width: 100%;
}
#graph-tab .progress-mode-card {
  display: flex;
  gap: 9px;
  min-height: 82px;
  align-items: center;
  text-align: left;
  box-sizing: border-box;
  min-width: 0;
  padding: 13px 10px;
  border: 1px solid rgba(var(--theme-primary-rgb,0,212,255),.18);
  border-radius: 13px;
  color: var(--theme-text,#fff);
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}
#graph-tab .progress-mode-card.active {
  border-color: rgba(var(--theme-primary-rgb,0,212,255),.55);
  background: rgba(var(--theme-primary-rgb,0,212,255),.075);
}
#graph-tab .progress-mode-card:focus-visible {
  outline: 2px solid var(--theme-primary,#00d4ff);
  outline-offset: 2px;
}
#graph-tab .progress-mode-symbol {
  color: var(--theme-primary,#00d4ff);
  font-size: 20px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}
#graph-tab .progress-mode-card > span:nth-child(2) {
  display: grid;min-width: 0;gap: 5px;
}
#graph-tab .progress-mode-card strong {
  color: var(--ui-card-title,var(--theme-text,#fff));
  font-size: 13px;font-weight: 850;
}
#graph-tab .progress-mode-card small {
  color: var(--ui-card-description,var(--theme-text-muted,#b7c6d5));
  font-size: 9px;line-height: 1.35;
}
#graph-tab .progress-mode-chevron {
  margin-left: auto;color: var(--theme-primary,#00d4ff);
  font-size: 21px;
}
#graph-tab .progress-mode-view {
  display: grid;
  align-content: start;
  width: 100%;
  min-width: 0;
  gap: 18px;
}
#graph-tab .progress-mode-view[hidden] {
  display: none !important;
}
#graph-tab .history-list[hidden],
#graph-tab .weight-history-calendar[hidden],
#graph-tab .history-period-options[hidden],
#graph-tab .graph-week-selector[hidden] {
  display: none !important;
}
#graph-tab #workoutProgressView .history-section {
  width: 100%;
  min-width: 0;
  padding: 0;
}
#graph-tab #workoutProgressView .history-item.workout-history-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  column-gap: 13px;
  align-items: center;
}
#graph-tab .workout-history-movement {
  font-size: 11px;
  font-weight: 850;
  min-width: 28px;
  color: var(--theme-primary,#00d4ff);
  text-align: right;
}
#graph-tab .workout-history-movement.up {color:#35c989;}
#graph-tab .workout-history-movement.down {color:#f36b73;}
#graph-tab #workoutHistoryMore {
  border: 1px solid rgba(var(--theme-primary-rgb,0,212,255),.25);
  color: var(--theme-text,#fff);
  background: transparent;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 750;
  margin: 10px auto;
}
#graph-tab #workoutGraphInfo {font-size: 12px;}
#graph-tab #workoutGraphInfo:not([style*="display: none"]) {color:var(--theme-text-muted,#bdc8d8);}
#graph-tab .workout-cal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
}
#graph-tab .workout-cal-top button {
  border: 0;background: transparent;
  color: var(--theme-primary,#00d4ff);
  font-size: 24px;cursor: pointer;
  min-width: 36px;min-height: 36px;
}
#graph-tab .workout-cal-top strong {
  color: var(--ui-card-title,var(--theme-text,#fff));
  font-size: 14px;
}
#graph-tab .workout-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 6px;
}
#graph-tab .workout-calendar-grid > small {
  text-align: center;
  font-size: 11px;
  color: var(--theme-text-muted,#b6c3d4);
}
#graph-tab .workout-cal-cell {
  min-height: 51px;min-width: 0;
  display: grid;justify-items: center;align-content: center;
  gap: 5px;padding: 4px 1px;
  border: 1px solid rgba(174,192,217,.1);
  border-radius: 7px;
  font-size: 10px;color: var(--theme-text-muted,#bfcbd8);
}
#graph-tab .workout-cal-cell > strong {
  max-width: 100%;overflow: hidden;
  font-size: clamp(9px,2.65vw,12px);
  color: var(--theme-primary,#00d4ff);
  font-variant-numeric: tabular-nums;
}
#graph-tab .workout-cal-cell.is-today {border-color:var(--theme-primary,#00d4ff);}
#graph-tab .workout-cal-empty {min-height: 48px;}
#graph-tab .workout-chart-expanded {
  position: fixed !important;
  top: max(12px,env(safe-area-inset-top,12px)) !important;
  bottom: max(12px,env(safe-area-inset-bottom,12px)) !important;
  left: 10px !important;right: 10px !important;
  width: auto !important;max-width: none !important;
  height: auto !important;min-height: 200px !important;
  z-index: 3000 !important;
  background: var(--theme-secondary,#08101b) !important;
  border: 1px solid rgba(var(--theme-primary-rgb,0,212,255),.45) !important;
  border-radius: 15px !important;
  padding: 15px !important;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.85) !important;
}
@media(max-width:355px) {
  #workout-tab .workout-exercise-grid {gap:8px;}
  #workout-tab .workout-exercise-card {padding:12px 9px;}
  #graph-tab .progress-mode-card {gap:5px;padding:10px 8px;}
  #graph-tab .progress-mode-card small {font-size:8px;}
}


/* White, minimal exercise pictograms and individual graph shortcut. */
#workout-tab .workout-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  min-height: 43px;
  gap: 8px;
}
#workout-tab .workout-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  height: 43px;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
#workout-tab .workout-card-icon svg {
  display: block;
  width: 42px;
  height: 42px;
  stroke: #fff !important;
  fill: none !important;
  filter: none !important;
  opacity: .94;
}
#workout-tab .workout-card-graph {
  display: grid;
  place-items: center;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  min-width: 35px;
  min-height: 35px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.23) !important;
  border-radius: 10px;
  background: rgba(255,255,255,.045) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#workout-tab .workout-card-graph svg {
  display: block;
  width: 19px;
  height: 19px;
  stroke: #fff !important;
  fill: none !important;
}
#workout-tab .workout-card-graph:active {
  transform: scale(.94);
  background: rgba(255,255,255,.12) !important;
}
#workout-tab .workout-card-graph:focus-visible {
  outline: 2px solid var(--theme-primary, #00d4ff);
  outline-offset: 3px;
}
#workout-tab .workout-exercise-heading {
  min-height: 50px;
}

/* Filtered workout progress uses the same chart/history DOM and controls. */
#graph-tab #workoutProgressScope[hidden] {
  display: none !important;
}
#graph-tab #workoutProgressScope {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid rgba(172,192,219,.2);
  padding: 2px 0 14px;
  margin-bottom: 0;
  min-width: 0;
}
#graph-tab .workout-scope-copy {
  display: grid;
  gap: 5px;
  flex: 1 1 155px;
  min-width: 0;
}
#graph-tab .workout-scope-copy > span {
  color: var(--ui-subheader,var(--theme-text-muted,#bdc9d8));
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
#graph-tab .workout-scope-copy > strong {
  color: var(--ui-card-title,var(--theme-text,#fff));
  font-size: 20px;
  font-weight: 850;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
#graph-tab .workout-scope-copy > small {
  color: var(--ui-card-description,var(--theme-text-muted,#bdc9d8));
  font-size: 11px;
}
#graph-tab .workout-scope-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
#graph-tab .workout-scope-actions button {
  background: rgba(var(--theme-primary-rgb,0,212,255),.065);
  border: 1px solid rgba(var(--theme-primary-rgb,0,212,255),.22);
  border-radius: 9px;
  padding: 9px 10px;
  color: var(--theme-text,#fff);
  font-size: 11px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  min-height: 38px;
}
#graph-tab .workout-scope-actions button:focus-visible {
  outline: 2px solid var(--theme-primary,#00d4ff);
  outline-offset: 2px;
}
@media (max-width: 355px) {
  #workout-tab .workout-card-icon {
    flex-basis: 36px;
    height: 36px;
  }
  #workout-tab .workout-card-icon svg {
    width: 36px;
    height: 36px;
  }
  #workout-tab .workout-card-graph {
    width: 33px;
    height: 33px;
    min-width: 33px;
    min-height: 33px;
    flex-basis: 33px;
  }
}



/* Public-domain exercise photos replace the temporary hand-drawn illustrations. */
#workout-tab .workout-overview {
  display: grid;
  width: 100%;
  min-width: 0;
  align-content: start;
  gap: 16px;
}
#workout-tab .workout-overview[hidden],
#workout-tab .workout-detail[hidden] {
  display: none !important;
}
#workout-tab .workout-card-top {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 108px;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(142,153,175,.1);
}
#workout-tab .workout-card-image {
  display: block;
  width: 100%;
  height: 112px;
}
#workout-tab .workout-card-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: none !important; /* Display source exercise photos in full color. */
  background: rgba(190,198,208,.13);
}
#workout-tab .workout-photo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--theme-text-muted,#c1ccd7);
  border: 1px dashed rgba(180,195,216,.2);
  border-radius: 10px;
}
#workout-tab .workout-card-actions {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#workout-tab .workout-card-actions > button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 6px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(5,8,14,.82) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.27) !important;
  backdrop-filter: blur(5px);
  cursor: pointer;
  touch-action: manipulation;
}
#workout-tab .workout-card-actions > button:active {transform: scale(.94);}
#workout-tab .workout-card-actions > button:focus-visible {
  outline: 2px solid var(--theme-primary,#00d4ff);
  outline-offset: 2px;
}
#workout-tab .workout-card-actions .workout-card-remove {
  font: 800 23px/1 system-ui,sans-serif;
  color: #ffd4d7 !important;
}
#workout-tab .workout-image-credit {
  display: block;
  color: var(--ui-card-description,var(--theme-text-muted,#adbbcb));
  font-size: 10px;
  line-height: 1.5;
}
#workout-tab .workout-image-credit a {
  color: var(--theme-primary,#00d4ff);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#workout-tab .workout-detail {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  width: 100%;
  color: var(--theme-text,#fff);
}
#workout-tab .workout-detail-header {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid rgba(172,192,219,.16);
  padding: 0 0 14px;
}
#workout-tab .workout-detail-back {
  justify-self: start;
  padding: 8px 0 10px;
  border: 0;
  background: transparent;
  color: var(--theme-primary,#00d4ff);
  font: 800 12px/1.2 system-ui,sans-serif;
  cursor: pointer;
  min-height: 35px;
}
#workout-tab .workout-detail-kicker {
  color: var(--ui-subheader,var(--theme-text-muted,#b9c7d5));
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
#workout-tab .workout-detail-header h2 {
  margin: 0;
  color: var(--ui-header,var(--theme-text,#fff));
  font-size: clamp(22px,6vw,29px);
}
#workout-tab .workout-detail-header small {
  color: var(--theme-text-muted,#b9c7d5);
  font-size: 11px;
}
#workout-tab .workout-detail .chart-wrapper {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 262px !important;
  min-height: 262px !important;
  padding: 0 0 16px !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(172,192,219,.18) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#workout-tab .workout-detail .chart-top-row {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 35px !important;
  gap: 10px;
  margin-bottom: 8px;
}
#workout-tab .workout-detail .chart-toolbar.chart-toolbar-in-graph {
  display: grid !important;
  grid-template-columns: repeat(5,minmax(0,1fr)) !important;
  gap: 3px !important;
  width: 100%;
  min-height: 37px;
  border: 0 !important;
  border-bottom: 1px solid rgba(172,192,219,.13) !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#workout-tab .workout-detail .range-option {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
}
#workout-tab .workout-detail .range-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
}
#workout-tab .workout-detail .range-option .range-btn {
  display: grid !important;
  place-items: center;
  height: 34px !important;
  min-height: 34px !important;
  font-size: 11px;
  font-weight: 800;
  color: var(--theme-text-muted,#b9c7d5);
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
#workout-tab .workout-detail .range-option input:checked + .range-btn {
  color: var(--theme-text,#fff) !important;
  border-bottom-color: var(--theme-primary,#00d4ff) !important;
}
#workout-tab .workout-detail .range-option input:focus-visible + .range-btn {
  outline: 2px solid var(--theme-primary,#00d4ff);
}
#workout-tab .workout-detail .graph-landscape-button {
  width: 35px;
  height: 35px;
  padding: 4px;
  background: transparent;
  color: var(--theme-text,#fff);
}
#workout-tab .workout-detail .graph-week-selector[hidden],
#workout-tab .workout-detail .history-list[hidden],
#workout-tab .workout-detail .weight-history-calendar[hidden],
#workout-tab .workout-detail .history-period-options[hidden],
#workout-tab .workout-detail .show-more-history-btn[hidden] {
  display: none !important;
}
#workout-tab .workout-detail .graph-week-selector {
  display: flex;
  gap: 9px;
  margin-bottom: 4px;
}
#workout-tab .workout-detail .chart-canvas-area {
  width: 100%;
  flex: 1 1 auto !important;
  min-height: 160px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#workout-tab .workout-detail .chart-canvas-area canvas {height: 100% !important;}
#workout-tab .workout-detail-history {
  width: 100%;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#workout-tab .workout-detail-history .history-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#workout-tab .workout-detail-history .history-heading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
#workout-tab .workout-detail-history .progress-choice-group {
  display: flex;
  gap: 5px;
  align-items: center;
}
#workout-tab .workout-detail-history .progress-choice-option {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 8px 5px;
  color: var(--theme-text-muted,#b9c7d5);
  font: 800 11px/1.2 system-ui,sans-serif;
  cursor: pointer;
}
#workout-tab .workout-detail-history .progress-choice-option.active {
  border-bottom-color: var(--theme-primary,#00d4ff);
  color: var(--theme-text,#fff);
}
#workout-tab .workout-detail-history .history-total-change {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
#workout-tab .workout-detail-history .history-item.workout-history-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 13px;
  align-items: center;
}
#workout-tab .workout-detail .workout-history-movement {
  font: 800 11px/1.2 system-ui,sans-serif;
  color: var(--theme-primary,#00d4ff);
}
#workout-tab .workout-detail .workout-history-movement.up {color:#35c989;}
#workout-tab .workout-detail .workout-history-movement.down {color:#f36b73;}
#workout-tab .workout-detail #exerciseHistoryMore {
  display: block;
  margin: 10px auto;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid rgba(172,192,219,.3);
  color: var(--theme-text,#fff);
  background: transparent;
  font-size: 12px;
}
#workout-tab .workout-detail .workout-cal-top {
  display: flex;align-items: center;justify-content: space-between;gap: 6px;margin: 8px 0;
}
#workout-tab .workout-detail .workout-cal-top button {
  min-height: 36px;min-width: 36px;border: 0;
  font-size: 23px;background: transparent;color: var(--theme-primary,#00d4ff);
}
#workout-tab .workout-detail .workout-calendar-grid {
  display: grid;grid-template-columns: repeat(7,minmax(0,1fr));gap: 6px;
}
#workout-tab .workout-detail .workout-calendar-grid > small {
  text-align: center;color: var(--theme-text-muted,#b9c7d5);font-size: 10px;
}
#workout-tab .workout-detail .workout-cal-cell {
  min-height: 49px;min-width: 0;display: grid;
  gap: 5px;place-items: center;
  border: 1px solid rgba(172,192,219,.14);
  border-radius: 8px;padding: 4px 1px;font-size: 10px;
}
#workout-tab .workout-detail .workout-cal-cell strong {
  color: var(--theme-primary,#00d4ff);
  font-size: clamp(9px,2.65vw,12px);
  max-width: 100%;overflow: hidden;
}
#workout-tab .workout-detail .workout-cal-cell.is-today {
  border-color: var(--theme-primary,#00d4ff);
}
#workout-tab .workout-detail .workout-chart-expanded {
  z-index: 3000 !important;
  height: auto !important;
  position: fixed !important;
  top: max(12px,env(safe-area-inset-top,12px)) !important;
  bottom: max(12px,env(safe-area-inset-bottom,12px)) !important;
  left: 10px !important;
  right: 10px !important;
  background: var(--theme-secondary,#08101b) !important;
  border: 1px solid rgba(var(--theme-primary-rgb,0,212,255),.4) !important;
  border-radius: 14px !important;
  padding: 15px !important;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.85) !important;
}


/* Body-part sections — three compact cards per row, including on iPhone. */
#workout-tab .workout-exercise-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 21px;
  width: 100%;
  min-width: 0;
}
#workout-tab .workout-body-part-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  width: 100%;
}
#workout-tab .workout-body-part-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(var(--theme-primary-rgb,0,212,255),.25);
}
#workout-tab .workout-body-part-head h3 {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: .015em;
  color: var(--ui-header, var(--theme-text,#fff));
}
#workout-tab .workout-body-part-head small {
  color: var(--ui-card-description,var(--theme-text-muted,#b8c6d4));
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
#workout-tab .workout-body-part-group > .workout-exercise-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  width: 100%;
  gap: 8px;
  min-width: 0;
}
#workout-tab .workout-category-label,
#workout-tab .workout-add-group-field {
  display: grid;
  align-content: start;
  gap: 6px;
  color: var(--ui-subheader,var(--theme-text-muted,#bbc8d8));
  font-size: 10px;
  font-weight: 750;
}
#workout-tab .workout-category-label select,
#workout-tab .workout-add-group-field select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  height: 39px;
  margin: 0;
  border: 1px solid rgba(var(--theme-primary-rgb,0,212,255),.25);
  border-radius: 10px;
  background: var(--theme-secondary,#080e18);
  color: var(--theme-text,#fff);
  -webkit-text-fill-color: var(--theme-text,#fff);
  padding: 6px 24px 6px 9px;
  font: 700 12px/1.35 system-ui,sans-serif;
}
#workout-tab .workout-add-group-field label {
  color: var(--ui-subheader,var(--theme-text-muted,#bbc8d8));
  font-size: 11px;
  font-weight: 800;
}
#workout-tab .workout-category-label select:focus-visible,
#workout-tab .workout-add-group-field select:focus-visible {
  outline: 2px solid var(--theme-primary,#00d4ff);
  outline-offset: 2px;
}
@media (max-width: 355px) {
  #workout-tab .workout-exercise-groups {gap: 17px;}
  #workout-tab .workout-body-part-group > .workout-exercise-grid {gap: 8px;}
  #workout-tab .workout-body-part-head h3 {font-size:14px;}
}


/* Compact 3-column exercise cards: no horizontal scrolling or input zoom. */
#workout-tab .workout-body-part-group .workout-exercise-card {
  min-width: 0;
  padding: 8px 6px 9px;
  gap: 5px;
  border-radius: 11px;
}
#workout-tab .workout-body-part-group .workout-card-top {
  min-width: 0;
  min-height: 75px;
  border-radius: 7px;
}
#workout-tab .workout-body-part-group .workout-card-image {
  height: 78px;
}
#workout-tab .workout-body-part-group .workout-card-graph,
#workout-tab .workout-body-part-group .workout-card-remove {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 6px;
  border-radius: 8px;
}
#workout-tab .workout-body-part-group .workout-card-actions {
  right: 3px;
  top: 3px;
  gap: 3px;
}
#workout-tab .workout-body-part-group .workout-exercise-heading {
  min-width: 0;
  min-height: 57px;
  gap: 3px;
}
#workout-tab .workout-body-part-group .workout-exercise-heading strong {
  font-size: clamp(10px,2.75vw,12px);
  line-height: 1.23;
  overflow-wrap: anywhere;
}
#workout-tab .workout-body-part-group .workout-exercise-heading small {
  font-size: 8px;
  line-height: 1.25;
}
#workout-tab .workout-body-part-group .workout-number {
  min-height: 39px;
  gap: 4px;
}
#workout-tab .workout-body-part-group .workout-number strong {
  font-size: clamp(22px,5.7vw,28px);
  line-height: 1.15;
}
#workout-tab .workout-body-part-group .workout-delta {
  font-size: 10px;
}
#workout-tab .workout-body-part-group .workout-entry-label {
  font-size: 9px;
  line-height: 1.25;
}
#workout-tab .workout-body-part-group .workout-exercise-card input {
  width: 100%;
  min-width: 0;
  height: 39px;
  padding: 6px 7px;
  border-radius: 8px;
  font-size: 16px; /* Avoid automatic zoom on iPhone */
}
#workout-tab .workout-body-part-group .workout-category-label {
  font-size: 9px;
  gap: 4px;
}
#workout-tab .workout-body-part-group .workout-category-label select {
  padding: 5px 16px 5px 4px;
  font-size: 10px;
  height: 35px;
}
@media (max-width: 355px) {
  #workout-tab .workout-body-part-group > .workout-exercise-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 5px;
  }
  #workout-tab .workout-body-part-group .workout-exercise-card {
    padding: 7px 4px 8px;
  }
  #workout-tab .workout-body-part-group .workout-exercise-heading strong {
    font-size: 10px;
  }
  #workout-tab .workout-body-part-group .workout-card-image {
    height: 68px;
  }
  #workout-tab .workout-body-part-group .workout-card-top {
    min-height: 68px;
  }
}


/* Version 2 daily Workout Score: transparent activity / progression / variety. */
#workout-tab .workout-score-breakdown,
#graph-tab #workoutProgressView .workout-score-breakdown {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 0 0 13px;
  border-bottom: 1px solid rgba(172,192,219,.15);
  color: var(--theme-text,#fff);
}
#workout-tab .workout-summary-row {
  border-bottom: 0;
  padding-bottom: 2px;
}
#workout-tab .workout-summary-row strong {
  font-size: clamp(18px,4.8vw,23px);
}
#workout-tab .workout-score-breakdown-top,
#graph-tab #workoutProgressView .workout-score-breakdown-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
#workout-tab .workout-score-breakdown-top > span,
#graph-tab #workoutProgressView .workout-score-breakdown-top > span {
  font: 800 11px/1.3 system-ui,sans-serif;
  color: var(--ui-subheader,var(--theme-text-muted,#b6c4d6));
}
#workout-tab .workout-score-breakdown-top > strong,
#graph-tab #workoutProgressView .workout-score-breakdown-top > strong {
  font-size: 21px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  color: var(--theme-primary,#00d4ff);
}
#workout-tab .workout-score-breakdown-top strong small,
#graph-tab #workoutProgressView .workout-score-breakdown-top strong small {
  font-size: 11px;
  font-weight: 700;
  color: var(--theme-text-muted,#b6c4d6);
}
#workout-tab .workout-score-parts,
#graph-tab #workoutProgressView .workout-score-parts {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
}
#workout-tab .workout-score-parts > div,
#graph-tab #workoutProgressView .workout-score-parts > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid rgba(var(--theme-primary-rgb,0,212,255),.13);
  border-radius: 9px;
  background: rgba(var(--theme-primary-rgb,0,212,255),.025);
}
#workout-tab .workout-score-parts span,
#graph-tab #workoutProgressView .workout-score-parts span {
  color: var(--ui-card-description,var(--theme-text-muted,#b6c4d6));
  font-size: 10px;
  font-weight: 760;
}
#workout-tab .workout-score-parts strong,
#graph-tab #workoutProgressView .workout-score-parts strong {
  color: var(--ui-card-title,var(--theme-text,#fff));
  font-size: 19px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
#workout-tab .workout-score-parts strong small,
#graph-tab #workoutProgressView .workout-score-parts strong small {
  margin-left: 3px;
  color: var(--theme-text-muted,#b6c4d6);
  font-size: 10px;
  font-weight: 700;
}
#workout-tab .workout-score-subline,
#graph-tab #workoutProgressView .workout-score-subline,
#workout-tab .workout-score-empty,
#graph-tab #workoutProgressView .workout-score-empty {
  color: var(--ui-card-description,var(--theme-text-muted,#b6c4d6));
  font-size: 11px;
  line-height: 1.45;
}
#workout-tab .workout-score-help,
#graph-tab #workoutProgressView .workout-score-help {
  min-width: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(172,192,219,.15);
  color: var(--theme-text-muted,#b6c4d6);
}
#workout-tab .workout-score-help summary,
#graph-tab #workoutProgressView .workout-score-help summary {
  color: var(--theme-primary,#00d4ff);
  font: 780 11px/1.45 system-ui,sans-serif;
  cursor: pointer;
}
#workout-tab .workout-score-help p,
#graph-tab #workoutProgressView .workout-score-help p {
  margin: 9px 0 0;
  font-size: 11px;
  line-height: 1.5;
}
#graph-tab #workoutProgressView .workout-score-progress-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
}
#graph-tab #workoutProgressView .workout-score-progress-heading h3 {
  margin: 3px 0 0;
  color: var(--ui-header,var(--theme-text,#fff));
  font: 850 17px/1.3 system-ui,sans-serif;
}
#graph-tab #workoutProgressView .workout-score-progress-heading > small {
  color: var(--theme-text-muted,#b6c4d6);
  font-size: 10px;
}


/* Tap exercise photographs to inspect the uncropped image. */
#workout-tab .workout-card-photo-trigger {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: inherit;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#workout-tab .workout-card-photo-trigger .workout-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important;
}
#workout-tab .workout-card-photo-trigger:focus-visible {
  outline: 3px solid var(--theme-primary,#00d4ff);
  outline-offset: -3px;
}

/* The viewer is a body-level overlay, not clipped by the scrolling workout tab. */
.workout-photo-lightbox[hidden] {
  display: none !important;
}
.workout-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  display: grid;
  place-items: center;
  isolation: isolate;
  box-sizing: border-box;
  padding: max(12px,env(safe-area-inset-top,12px))
    max(10px,env(safe-area-inset-right,10px))
    max(12px,env(safe-area-inset-bottom,12px))
    max(10px,env(safe-area-inset-left,10px));
}
.workout-photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,6,12,.89);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.workout-photo-lightbox-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%,880px);
  max-height: min(92vh,850px);
  max-height: min(92dvh,850px);
  min-height: 0;
  box-sizing: border-box;
  gap: 9px;
  padding: 12px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.22);
  background: var(--theme-secondary,#080e18);
  box-shadow: 0 16px 60px rgba(0,0,0,.52);
  color: var(--theme-text,#fff);
  overflow: hidden;
}
.workout-photo-lightbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}
.workout-photo-lightbox-toolbar h2 {
  margin: 0;
  min-width: 0;
  font: 800 16px/1.35 system-ui,sans-serif;
  color: var(--ui-header,var(--theme-text,#fff));
  overflow-wrap: anywhere;
}
.workout-photo-lightbox-close {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font: 800 28px/1 system-ui,sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
.workout-photo-lightbox-close:focus-visible {
  outline: 2px solid var(--theme-primary,#00d4ff);
  outline-offset: 2px;
}
.workout-photo-lightbox-stage {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-radius: 9px;
  background: rgba(0,0,0,.28);
}
.workout-photo-lightbox-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(72vh,690px);
  max-height: min(72dvh,690px);
  object-fit: contain;
  filter: none !important;
}
.workout-photo-lightbox-hint {
  margin: 0;
  text-align: center;
  color: var(--theme-text-muted,#aab6c8);
  font-size: 10px;
  line-height: 1.35;
}
@media (max-width: 390px) {
  .workout-photo-lightbox-dialog {padding: 9px;gap: 7px;}
  .workout-photo-lightbox-toolbar h2 {font-size: 14px;}
}


/* Top-left magnifier for each exercise image. Graph/remove stay top-right. */
#workout-tab .workout-card-zoom {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  z-index: 5;
  display: grid !important;
  place-items: center;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 6px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,.27) !important;
  background: rgba(5,8,14,.82) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: none !important;
  cursor: zoom-in;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
#workout-tab .workout-card-zoom svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none !important;
  stroke: #fff !important;
}
#workout-tab .workout-card-zoom:active {
  transform: scale(.94);
}
#workout-tab .workout-card-zoom:focus-visible {
  outline: 2px solid var(--theme-primary,#00d4ff);
  outline-offset: 2px;
}
body.workout-photo-open {
  overflow: hidden;
}


/* Workout achievements on the existing Badges page: individual exercises
   remain collapsed until selected instead of expanding hundreds of cards. */
#badges-tab .workout-badge-exercise {
    min-width: 0;
    margin: 0 0 8px;
    border: 1px solid rgba(var(--theme-primary-rgb,0,212,255),.16);
    border-radius: 12px;
    background: rgba(var(--theme-background-rgb,23,81,143),.045);
    overflow: hidden;
}
#badges-tab .workout-badge-exercise-heading {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 10px 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
#badges-tab .workout-badge-exercise-heading::-webkit-details-marker {
    display: none;
}
#badges-tab .workout-badge-exercise-heading > span:first-child {
    min-width: 0;
    display: grid;
    gap: 4px;
}
#badges-tab .workout-badge-exercise-heading strong {
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
    color: var(--ui-card-title,var(--theme-text,#fff));
    overflow-wrap: anywhere;
}
#badges-tab .workout-badge-exercise-heading small {
    font-size: 10px;
    color: var(--ui-card-description,var(--theme-text-muted,#bed0e0));
}
#badges-tab .workout-badge-exercise-chevron {
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
    color: var(--theme-primary,#00D4FF);
    transition: transform .18s ease;
}
#badges-tab .workout-badge-exercise[open] .workout-badge-exercise-chevron {
    transform: rotate(180deg);
}
#badges-tab .workout-badge-exercise[open] .workout-badge-exercise-heading {
    border-bottom: 1px solid rgba(var(--theme-primary-rgb,0,212,255),.12);
}
#badges-tab .workout-badge-exercise > .milestone-group-grid {
    padding: 10px;
}
#badges-tab .workout-badge-exercise-heading:focus-visible {
    outline: 2px solid var(--theme-primary,#00D4FF);
    outline-offset: -3px;
}
@media (prefers-reduced-motion: reduce) {
    #badges-tab .workout-badge-exercise-chevron {transition: none;}
}


/* Workout list view: one full-width, horizontal tile per exercise on phones,
   tablets and desktop. Keep all existing rep inputs, graphs and photo actions. */
#workout-tab .workout-body-part-group > .workout-exercise-grid {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
}
#workout-tab .workout-body-part-group .workout-exercise-card {
  display:grid!important;
  grid-template-columns:clamp(76px,23vw,108px) minmax(0,1fr) minmax(84px,110px)!important;
  grid-template-rows:auto auto auto!important;
  align-content:center!important;
  align-items:center!important;
  gap:5px 12px!important;
  width:100%!important;
  min-width:0!important;
  min-height:115px!important;
  padding:10px!important;
  box-sizing:border-box!important;
  border-radius:14px!important;
}
#workout-tab .workout-body-part-group .workout-card-top {
  grid-column:1!important;grid-row:1/4!important;
  min-width:0!important;
  height:94px!important;min-height:94px!important;
  align-self:center!important;
  border-radius:9px!important;
}
#workout-tab .workout-body-part-group .workout-card-image {
  display:block!important;width:100%!important;
  height:94px!important;min-height:94px!important;
}
#workout-tab .workout-body-part-group .workout-card-photo {
  width:100%!important;height:100%!important;
  object-fit:cover!important;
}
#workout-tab .workout-body-part-group .workout-exercise-heading {
  grid-column:2!important;grid-row:1!important;
  min-width:0!important;min-height:0!important;
  align-content:end!important;gap:4px!important;
}
#workout-tab .workout-body-part-group .workout-exercise-heading strong {
  font-size:clamp(13px,3.7vw,16px)!important;
  line-height:1.27!important;
  overflow-wrap:anywhere!important;
  font-weight:800!important;
}
#workout-tab .workout-body-part-group .workout-exercise-heading small {
  font-size:10px!important;line-height:1.3!important;
}
#workout-tab .workout-body-part-group .workout-number {
  grid-column:2!important;grid-row:2!important;
  min-height:0!important;margin:0!important;
  align-self:center!important;gap:6px!important;
}
#workout-tab .workout-body-part-group .workout-number strong {
  font-size:clamp(25px,7vw,32px)!important;line-height:1.1!important;
}
#workout-tab .workout-body-part-group .workout-delta {
  font-size:11px!important;
}
#workout-tab .workout-body-part-group .workout-entry-label {
  grid-column:3!important;grid-row:1!important;
  min-width:0!important;margin:0!important;
  align-self:end!important;justify-self:stretch!important;
  text-align:center!important;font-size:10px!important;
}
#workout-tab .workout-body-part-group .workout-exercise-card input {
  grid-column:3!important;grid-row:2!important;
  width:100%!important;min-width:0!important;
  height:45px!important;padding:8px!important;
  align-self:start!important;justify-self:stretch!important;
  font-size:16px!important;text-align:center!important;
}
#workout-tab .workout-body-part-group .workout-category-label {
  grid-column:2/4!important;grid-row:3!important;
  min-width:0!important;display:flex!important;
  align-items:center!important;gap:9px!important;
  font-size:10px!important;
}
#workout-tab .workout-body-part-group .workout-category-label select {
  width:auto!important;min-width:0!important;
  max-width:100%!important;flex:1!important;
  font-size:12px!important;height:36px!important;
  padding:5px 18px 5px 9px!important;
}
#workout-tab .workout-body-part-group .workout-card-actions {
  top:3px!important;right:3px!important;
  flex-direction:column!important;gap:3px!important;
}
#workout-tab .workout-body-part-group .workout-card-actions > button,
#workout-tab .workout-body-part-group .workout-card-graph,
#workout-tab .workout-body-part-group .workout-card-remove {
  min-width:30px!important;width:30px!important;
  min-height:30px!important;height:30px!important;
}
@media(max-width:355px) {
  #workout-tab .workout-body-part-group .workout-exercise-card {
    grid-template-columns:70px minmax(0,1fr) 78px!important;
    gap:5px 7px!important;padding:8px!important;
  }
  #workout-tab .workout-body-part-group .workout-card-top,
  #workout-tab .workout-body-part-group .workout-card-image {
    height:82px!important;min-height:82px!important;
  }
  #workout-tab .workout-body-part-group .workout-exercise-heading strong {
    font-size:12px!important;
  }
  #workout-tab .workout-body-part-group .workout-number strong {
    font-size:25px!important;
  }
}

/* Continuous workout list: one shared surface per body-part section, not
   individually bordered cards. Applies to Original, Spotify, and YouTube UI. */
#workout-tab .workout-body-part-group > .workout-exercise-grid {
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;
}
#workout-tab .workout-body-part-group > .workout-exercise-grid > .workout-exercise-card {
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  outline:0;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  padding:13px 5px!important;
  margin:0!important;
}
#workout-tab .workout-body-part-group > .workout-exercise-grid > .workout-exercise-card:not(:first-child) {
  border-top:1px solid rgba(172,192,219,.15)!important;
}
#workout-tab .workout-body-part-group > .workout-exercise-grid > .workout-exercise-card::before,
#workout-tab .workout-body-part-group > .workout-exercise-grid > .workout-exercise-card::after {
  content:none!important;
}
@media (max-width:355px) {
  #workout-tab .workout-body-part-group > .workout-exercise-grid > .workout-exercise-card {
    padding:11px 3px!important;
  }
}

/* Workout rep comparison row: personal best and the last actual
   workout (before today), excluding automatically filled rest-day zeros. */
#workout-tab .workout-body-part-group .workout-exercise-card {
  grid-template-rows:auto auto auto auto!important;
}
#workout-tab .workout-body-part-group .workout-rep-comparison {
  grid-column:2 / 4!important;
  grid-row:3!important;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  gap:5px 12px;
  width:100%;
  min-width:0;
  padding:4px 0 2px;
  color:var(--theme-text,#fff);
}
#workout-tab .workout-body-part-group .workout-rep-stat {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  align-content:start;
  gap:2px 6px;
  min-width:0;
}
#workout-tab .workout-body-part-group .workout-rep-stat > span {
  font-size:10px;
  font-weight:650;
  color:var(--ui-card-description,var(--theme-text-muted,#b8c5d6));
}
#workout-tab .workout-body-part-group .workout-rep-stat > strong {
  font-size:14px;
  line-height:1.25;
  font-weight:850;
  color:var(--ui-card-title,var(--theme-text,#fff));
  font-variant-numeric:tabular-nums;
}
#workout-tab .workout-body-part-group .workout-rep-stat > small {
  font-size:9px;
  font-weight:650;
  color:var(--ui-card-description,var(--theme-text-muted,#b8c5d6));
}
#workout-tab .workout-body-part-group .workout-category-label {
  grid-row:4!important;
}
@media (max-width:355px) {
  #workout-tab .workout-body-part-group .workout-rep-comparison {gap:3px 7px;}
  #workout-tab .workout-body-part-group .workout-rep-stat {gap:1px 4px;}
  #workout-tab .workout-body-part-group .workout-rep-stat > span {font-size:9px;}
  #workout-tab .workout-body-part-group .workout-rep-stat > strong {font-size:13px;}
}

/* Muscle details for compound free-weight and bodyweight exercises. */
#workout-tab .workout-body-part-group .workout-exercise-card {
  grid-template-rows:auto auto auto auto auto!important;
}
#workout-tab .workout-body-part-group .workout-muscles {
  grid-column:2 / 4!important;
  grid-row:4!important;
  display:grid;
  gap:2px;
  min-width:0;
  padding:6px 0 1px;
  font-size:11px;
  line-height:1.4;
  overflow-wrap:anywhere;
  color:var(--ui-card-description,var(--theme-text-muted,#bdc9d8));
}
#workout-tab .workout-body-part-group .workout-muscles span {
  font-weight:800;
  color:var(--ui-card-title,var(--theme-text,#fff));
  margin-right:4px;
}
#workout-tab .workout-body-part-group .workout-category-label {
  grid-row:5!important;
}

/* Workbook-style graph controls: per-body-part colored exercise switches. */
#graph-tab #workoutProgressView .workout-graph-description {
  margin:0;
  color:var(--ui-card-description,var(--theme-text-muted,#b8c7d6));
  font-size:12px;
  line-height:1.5;
}
#graph-tab #workoutProgressView .workout-series-toggles {
  display:grid;
  width:100%;
  min-width:0;
  gap:17px;
  padding:1px 0 6px;
}
#graph-tab #workoutProgressView .workout-series-group {
  min-width:0;
  display:grid;
  gap:9px;
  padding:0;
}
#graph-tab #workoutProgressView .workout-series-group h4 {
  margin:0;
  font-size:12px;
  font-weight:800;
  color:var(--ui-subheader,var(--theme-text,#fff));
}
#graph-tab #workoutProgressView .workout-series-buttons {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  min-width:0;
}
#graph-tab #workoutProgressView button.workout-series-toggle {
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  min-height:39px!important;
  padding:8px 11px!important;
  border:1px solid rgba(176,192,216,.22)!important;
  border-radius:9px!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--theme-text-muted,#afbfce)!important;
  -webkit-text-fill-color:currentColor!important;
  font:700 12px/1.2 system-ui,sans-serif!important;
  text-align:left!important;
  cursor:pointer;
  touch-action:manipulation;
  transition:border-color .15s ease,background-color .15s ease,color .15s ease;
}
#graph-tab #workoutProgressView button.workout-series-toggle.is-selected {
  background:rgba(180,193,210,.10)!important;
  border-color:rgba(205,214,226,.46)!important;
  color:var(--theme-text,#fff)!important;
}
#graph-tab #workoutProgressView .workout-series-swatch {
  flex:0 0 9px;
  width:9px;
  height:9px;
  border-radius:50%;
  border:2px solid var(--series-color);
  background:transparent;
}
#graph-tab #workoutProgressView .workout-series-toggle.is-selected .workout-series-swatch {
  background:var(--series-color);
  box-shadow:0 0 0 2px rgba(255,255,255,.05);
}
#graph-tab #workoutProgressView button.workout-series-toggle:focus-visible {
  outline:2px solid var(--theme-primary,#00d4ff)!important;
  outline-offset:2px;
}
@media(max-width:360px) {
  #workout-tab .workout-body-part-group .workout-muscles {font-size:10px;}
  #graph-tab #workoutProgressView .workout-series-buttons {gap:6px;}
  #graph-tab #workoutProgressView button.workout-series-toggle {font-size:11px!important;padding:8px 9px!important;}
}

/* Compact workout selector + rep-based history: 2026-10-13.
   Full exercise names remain accessible as button labels and tooltips. */
#graph-tab #workoutProgressView .workout-series-toggles {
  gap:4px!important;
  padding:0!important;
}
#graph-tab #workoutProgressView .workout-series-group {
  display:grid!important;
  grid-template-columns:70px minmax(0,1fr)!important;
  align-items:start!important;
  gap:7px!important;
  padding:5px 0!important;
  border-bottom:1px solid rgba(165,186,215,.09)!important;
}
#graph-tab #workoutProgressView .workout-series-group h4 {
  padding-top:7px!important;
  margin:0!important;
  font:800 10px/1.3 system-ui,sans-serif!important;
}
#graph-tab #workoutProgressView .workout-series-buttons {
  display:flex!important;
  flex-wrap:wrap!important;
  gap:4px!important;
  min-width:0!important;
}
#graph-tab #workoutProgressView button.workout-series-toggle {
  display:inline-flex!important;
  gap:5px!important;
  min-height:30px!important;
  padding:4px 7px!important;
  border-radius:7px!important;
  font:750 11px/1.15 system-ui,sans-serif!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
  max-width:100%!important;
  position:relative!important;
  z-index:1!important;
  pointer-events:auto!important;
  -webkit-tap-highlight-color:transparent;
}
#graph-tab #workoutProgressView button.workout-series-toggle.is-selected {
  border-color:var(--series-color)!important;
  background:rgba(160,181,205,.12)!important;
  color:var(--theme-text,#fff)!important;
}
#graph-tab #workoutProgressView .workout-series-swatch {
  flex:0 0 7px!important;
  width:7px!important;
  height:7px!important;
  border-width:1.5px!important;
  pointer-events:none!important;
}
#graph-tab #workoutProgressView button.workout-series-toggle > span:last-child {
  pointer-events:none!important;
}
#graph-tab #workoutProgressView .workout-reps-history {
  display:grid;
  gap:11px;
  width:100%;
  min-width:0;
  padding:7px 0 22px;
}
#graph-tab #workoutProgressView .workout-reps-history .history-heading-row {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
  padding-bottom:12px;
  border-bottom:1px solid rgba(165,185,211,.15);
}
#graph-tab #workoutProgressView .workout-reps-history .history-heading-row h3 {
  margin:0;
  font-size:16px;
  flex:1 0 100%;
}
#graph-tab #workoutProgressView .workout-reps-history .history-heading-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  width:100%;
}
#graph-tab #workoutProgressView .workout-reps-history .history-total-change {
  margin-left:auto;
}
#graph-tab #workoutProgressView .workout-history-record {
  padding:13px 0;
  display:grid;
  gap:7px;
  border-bottom:1px solid rgba(174,192,217,.13);
  background:transparent!important;
  box-shadow:none!important;
}
#graph-tab #workoutProgressView .workout-history-record-head {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:10px;
  color:var(--ui-card-title,var(--theme-text,#fff));
  font-size:13px;
  font-weight:750;
}
#graph-tab #workoutProgressView .workout-history-record-head > span {
  color:var(--theme-primary,#00d4ff);
  font-size:13px;
  font-weight:850;
  font-variant-numeric:tabular-nums;
}
#graph-tab #workoutProgressView .workout-history-exercises {
  display:flex;
  flex-wrap:wrap;
  gap:5px 12px;
  min-width:0;
}
#graph-tab #workoutProgressView .workout-history-exercise {
  color:var(--ui-card-description,var(--theme-text-muted,#b8c5d6));
  font-size:11px;
  line-height:1.35;
}
#graph-tab #workoutProgressView .workout-history-exercise strong {
  color:var(--theme-text,#fff);
  font-variant-numeric:tabular-nums;
}
#graph-tab #workoutProgressView .workout-history-calendar {
  display:grid;
  gap:10px;
}
#graph-tab #workoutProgressView .workout-history-calendar[hidden],
#graph-tab #workoutProgressView .workout-reps-history [hidden] {
  display:none!important;
}
#graph-tab #workoutProgressView button.workout-cal-cell {
  appearance:none;
  -webkit-appearance:none;
  padding:5px 1px!important;
  cursor:pointer;
  background:transparent!important;
  box-shadow:none!important;
  min-height:49px;
}
#graph-tab #workoutProgressView button.workout-cal-cell.has-reps strong {
  color:var(--theme-primary,#00d4ff);
}
#graph-tab #workoutProgressView button.workout-cal-cell.is-selected {
  border-color:var(--theme-primary,#00d4ff)!important;
  background:rgba(150,170,195,.11)!important;
}
#graph-tab #workoutProgressView button.workout-cal-cell:focus-visible {
  outline:2px solid var(--theme-primary,#00d4ff);
  outline-offset:2px;
}
#graph-tab #workoutProgressView .workout-calendar-selection {
  display:flex;
  align-items:baseline;
  gap:6px 12px;
  flex-wrap:wrap;
  padding:10px 0;
  border-top:1px solid rgba(174,192,217,.13);
}
#graph-tab #workoutProgressView .workout-calendar-selection > strong {
  font-size:12px;
  color:var(--theme-text,#fff);
}
#graph-tab #workoutProgressView .workout-calendar-selection > span {
  color:var(--theme-primary,#00d4ff);
  font:800 12px/1.3 system-ui,sans-serif;
}
#graph-tab #workoutProgressView .workout-calendar-selection .workout-history-exercises {
  flex-basis:100%;
}
#graph-tab #workoutProgressView .workout-calendar-selection p {
  font-size:11px;
  color:var(--theme-text-muted,#bdc9d8);
  margin:0;
}
@media(max-width:355px) {
  #graph-tab #workoutProgressView .workout-series-group {
    grid-template-columns:58px minmax(0,1fr)!important;
    gap:4px!important;
  }
  #graph-tab #workoutProgressView .workout-series-group h4 {font-size:9px!important;}
  #graph-tab #workoutProgressView button.workout-series-toggle {
    font-size:10px!important;
    padding:4px 6px!important;
  }
  #graph-tab #workoutProgressView .workout-series-buttons {gap:3px!important;}
}

/* Five-level dumbbell training weight control. One shared selection
   across Workout, Workout Progress and individual exercise history. */
#workout-tab .workout-weight-selector,
#graph-tab #workoutProgressView .workout-weight-selector {
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  column-gap:12px!important;
  row-gap:8px!important;
  width:100%!important;
  padding:9px 0 11px!important;
  margin:0!important;
  border:0!important;
  border-bottom:1px solid rgba(170,192,219,.15)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  min-width:0!important;
}
#workout-tab .workout-weight-heading,
#graph-tab #workoutProgressView .workout-weight-heading {
  display:flex;
  flex:0 0 auto;
  align-items:baseline;
  gap:7px;
  font:750 11px/1.2 system-ui,sans-serif;
  color:var(--ui-subheader,var(--theme-text-muted,#bccad9));
}
#workout-tab .workout-weight-heading strong,
#graph-tab #workoutProgressView .workout-weight-heading strong {
  font-size:14px;
  font-weight:850;
  color:var(--theme-text,#fff);
  font-variant-numeric:tabular-nums;
}
#workout-tab .workout-weight-buttons,
#graph-tab #workoutProgressView .workout-weight-buttons {
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0;
}
#workout-tab button.workout-weight-option,
#graph-tab #workoutProgressView button.workout-weight-option {
  display:grid!important;
  flex:0 0 auto!important;
  place-items:center!important;
  min-width:39px!important;
  min-height:34px!important;
  padding:5px 7px!important;
  border:1px solid rgba(174,192,214,.20)!important;
  border-radius:8px!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--theme-text-muted,#bac5d5)!important;
  -webkit-text-fill-color:currentColor!important;
  font:800 12px/1.2 system-ui,sans-serif!important;
  cursor:pointer!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent;
}
#workout-tab button.workout-weight-option.is-selected,
#graph-tab #workoutProgressView button.workout-weight-option.is-selected {
  border-color:var(--theme-primary,#00d4ff)!important;
  color:var(--theme-text,#fff)!important;
  background:rgba(var(--theme-primary-rgb,0,212,255),.13)!important;
}
#workout-tab button.workout-weight-option:focus-visible,
#graph-tab #workoutProgressView button.workout-weight-option:focus-visible {
  outline:2px solid var(--theme-primary,#00d4ff)!important;
  outline-offset:2px!important;
}
#workout-tab .workout-detail .workout-weight-selector {
  margin:7px 0!important;
}
#graph-tab #workoutProgressView .workout-reps-history .history-heading-row h3 small {
  font-size:11px;
  font-weight:750;
  color:var(--theme-primary,#00d4ff);
  white-space:nowrap;
  margin-left:5px;
}
@media(max-width:375px) {
  #workout-tab .workout-weight-selector,
  #graph-tab #workoutProgressView .workout-weight-selector {column-gap:7px!important;}
  #workout-tab .workout-weight-buttons,
  #graph-tab #workoutProgressView .workout-weight-buttons {gap:3px!important;}
  #workout-tab button.workout-weight-option,
  #graph-tab #workoutProgressView button.workout-weight-option {
    min-width:35px!important;
    padding:5px!important;
  }
}

/* Journey: a reversible one-exercise-per-category training route.
   Keep the same full-width editable cards and a compact step label. */
#workout-tab .workout-order-controls{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
  padding:8px 0 10px!important;
  margin:0!important;
  border-bottom:1px solid rgba(171,193,222,.16)!important;
  background:transparent!important;
}
#workout-tab .workout-order-label{
  display:grid;gap:3px;min-width:0;
}
#workout-tab .workout-order-label strong{
  font-size:12px;font-weight:800;line-height:1.2;
  color:var(--ui-card-title,var(--theme-text,#fff));
}
#workout-tab .workout-order-label small{
  font-size:10px;font-weight:650;line-height:1.3;
  color:var(--ui-card-description,var(--theme-text-muted,#b5c3d4));
}
#workout-tab .workout-journey-toggle{
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:7px!important;flex:0 0 auto!important;
  min-width:94px!important;min-height:37px!important;
  padding:7px 12px!important;
  margin:0!important;
  border:1px solid rgba(var(--theme-primary-rgb,0,212,255),.30)!important;
  border-radius:10px!important;
  background:var(--theme-secondary,#09101d)!important;
  color:var(--ui-card-title,var(--theme-text,#fff))!important;
  -webkit-text-fill-color:currentColor!important;
  font:800 12px/1.1 system-ui,sans-serif!important;
  box-shadow:none!important;
  cursor:pointer!important;
  touch-action:manipulation;
}
#workout-tab .workout-journey-toggle svg{
  width:18px;height:18px;flex:0 0 18px;stroke:currentColor;fill:none;
}
#workout-tab .workout-journey-toggle.is-active{
  background:rgba(var(--theme-primary-rgb,0,212,255),.14)!important;
  border-color:var(--theme-primary,#00d4ff)!important;
  color:var(--theme-primary,#00d4ff)!important;
}
#workout-tab .workout-journey-toggle:focus-visible{
  outline:2px solid var(--theme-primary,#00d4ff)!important;outline-offset:3px!important;
}
#workout-tab .workout-journey-hint{
  margin:0!important;
  padding:8px 1px 3px!important;
  font-size:11px;line-height:1.45;
  color:var(--ui-card-description,var(--theme-text-muted,#b5c3d4));
}
#workout-tab .workout-journey-hint[hidden]{display:none!important;}
#workout-tab .workout-journey-list{
  gap:0!important;margin:0!important;
}
#workout-tab .workout-journey-list > .workout-exercise-grid{
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;
}
#workout-tab .workout-journey-list .workout-journey-step{
  display:flex!important;align-items:center!important;
  gap:9px!important;min-width:0!important;
  padding:12px 5px 1px!important;
  margin:0!important;
  font-size:11px;font-weight:800;line-height:1.25;
  color:var(--ui-card-title,var(--theme-text,#fff));
}
#workout-tab .workout-journey-list .workout-journey-count{
  flex:0 0 24px!important;
  width:24px;height:24px;
  display:grid;place-items:center;
  border:1px solid rgba(var(--theme-primary-rgb,0,212,255),.27);
  border-radius:7px;
  color:var(--theme-primary,#00d4ff);
  background:rgba(var(--theme-primary-rgb,0,212,255),.07);
  font-size:11px;font-weight:850;font-variant-numeric:tabular-nums;
}
#workout-tab .workout-journey-list .workout-journey-step small{
  margin-left:auto;
  font-size:10px;font-weight:750;
  color:var(--theme-primary,#00d4ff);
}
#workout-tab .workout-journey-list > .workout-exercise-grid > .workout-exercise-card{
  padding-top:7px!important;
}

/* Strong logged-today workout rows in Grouped and Journey modes.
   High specificity protects the state from later Spotify/YouTube surface
   resets and the earlier deliberately transparent list-row rules. */
#workout-tab .workout-body-part-group > .workout-exercise-grid > .workout-exercise-card.is-logged-today {
  background:linear-gradient(90deg,
    rgba(var(--theme-primary-rgb,0,212,255),.23) 0%,
    rgba(var(--theme-primary-rgb,0,212,255),.11) 100%)!important;
  background-image:linear-gradient(90deg,
    rgba(var(--theme-primary-rgb,0,212,255),.23),
    rgba(var(--theme-primary-rgb,0,212,255),.11))!important;
  border-radius:9px!important;
  box-shadow:inset 4px 0 0 var(--theme-primary,#00d4ff)!important;
  -webkit-box-shadow:inset 4px 0 0 var(--theme-primary,#00d4ff)!important;
  padding-left:11px!important;
  padding-right:9px!important;
}
#workout-tab .workout-body-part-group .workout-exercise-card.is-logged-today .workout-entry-status.is-logged {
  color:var(--theme-primary,#00d4ff)!important;
  -webkit-text-fill-color:var(--theme-primary,#00d4ff)!important;
  font-size:10px!important;
  font-weight:850!important;
  letter-spacing:.015em;
}
#workout-tab .workout-body-part-group .workout-exercise-card.is-logged-today .workout-exercise-heading strong {
  color:var(--ui-card-title,var(--theme-text,#fff))!important;
}
@media(max-width:355px){
  #workout-tab .workout-body-part-group > .workout-exercise-grid > .workout-exercise-card.is-logged-today {
    padding-left:9px!important;
    padding-right:7px!important;
  }
}

/* Workout Rest Day: a date-specific, non-logging training break.
   Keep the toggle active while every card and Add form is inert. */
#workout-tab .workout-rest-day-controls{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:10px!important;width:100%!important;min-width:0!important;
  padding:9px 0 10px!important;margin:0!important;
  border-bottom:1px solid rgba(171,193,222,.16)!important;
}
#workout-tab .workout-rest-day-copy{display:grid;gap:3px;min-width:0}
#workout-tab .workout-rest-day-copy strong{
  font:800 12px/1.2 system-ui,sans-serif!important;
  color:var(--ui-card-title,var(--theme-text,#fff))!important;
}
#workout-tab .workout-rest-day-copy small{
  font:650 10px/1.35 system-ui,sans-serif!important;
  color:var(--ui-card-description,var(--theme-text-muted,#b5c3d4))!important;
}
#workout-tab #workoutRestDayToggle{
  display:flex!important;justify-content:center!important;align-items:center!important;
  flex:0 0 auto!important;gap:6px!important;
  min-height:38px!important;min-width:104px!important;
  margin:0!important;padding:8px 11px!important;
  border:1px solid rgba(var(--theme-primary-rgb,0,212,255),.30)!important;
  border-radius:10px!important;background:var(--theme-secondary,#09101d)!important;
  color:var(--ui-card-title,var(--theme-text,#fff))!important;
  -webkit-text-fill-color:currentColor!important;
  font:800 12px/1 system-ui,sans-serif!important;
  box-shadow:none!important;cursor:pointer!important;touch-action:manipulation;
}
#workout-tab #workoutRestDayToggle svg{
  width:17px;height:17px;stroke:currentColor;flex:0 0 17px;
}
#workout-tab #workoutRestDayToggle.is-active{
  border-color:var(--theme-primary,#00d4ff)!important;
  background:rgba(var(--theme-primary-rgb,0,212,255),.16)!important;
  color:var(--theme-primary,#00d4ff)!important;
}
#workout-tab #workoutRestDayToggle:focus-visible{
  outline:2px solid var(--theme-primary,#00d4ff)!important;outline-offset:2px!important;
}
#workout-tab .workout-rest-day-message{
  font:700 11px/1.45 system-ui,sans-serif!important;
  color:var(--theme-primary,#00d4ff)!important;
  padding:8px 2px 3px!important;margin:0!important;
}
#workout-tab .workout-rest-day-message[hidden]{display:none!important}
#workout-tab #workoutExerciseCards.is-rest-day,
#workout-tab #workoutAddForm.is-rest-day{
  opacity:.38!important;filter:grayscale(.55)!important;
  pointer-events:none!important;
}
#workout-tab #workoutExerciseCards.is-rest-day :is(input,button,select),
#workout-tab #workoutAddForm.is-rest-day :is(input,button,select){
  cursor:not-allowed!important;
}
#graph-tab #workoutProgressView .workout-cal-cell.is-rest-day{
  color:var(--ui-card-description,var(--theme-text-muted,#b5c3d4))!important;
  opacity:.6;
}
@media(max-width:355px){
  #workout-tab .workout-rest-day-controls{gap:7px!important}
  #workout-tab #workoutRestDayToggle{min-width:98px!important;padding-inline:8px!important}
  #workout-tab .workout-rest-day-copy small{font-size:9px!important}
}
