:root{color-scheme:dark;font-family:"Inter",system-ui,-apple-system,sans-serif;background:#000000;color:#f7f5f5;--card:#1c1c22;--muted:#b5b4be}*{box-sizing:border-box}body{margin:0}#app{min-height:100dvh}a{color:var(--accent)}main,.site-header,nav,aside{width:min(100%,540px);margin-inline:auto}main{padding:26px var(--layout-page-gutter) calc(100px + env(safe-area-inset-bottom))}h1{font-size:clamp(30px,8vw,44px);line-height:1.05;margin:10px 0 22px;letter-spacing:-.045em}h2{font-size:19px;margin:0 0 7px}p{color:var(--muted);line-height:1.55;margin:0 0 14px}nav,aside{display:flex;align-items:center;gap:10px;background:#000000;backdrop-filter:blur(18px);z-index:2}.wordmark{font-weight:950;letter-spacing:-.075em;font-style:italic;font-size:21px}.wordmark span{color:var(--brand-accent)}nav,aside{position:fixed;bottom:0;left:0;right:0;justify-content:center;padding:9px 14px calc(9px + env(safe-area-inset-bottom));border-top:1px solid #ffffff14}nav button{flex:1;background:none;color:var(--muted)}nav [aria-current=page]{color:var(--accent);background:var(--accent-tint)}
input{font:inherit;font-size:16px}a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.primary{width:100%;margin-top:7px}.full{width:100%;margin-top:9px}.row{display:flex;align-items:center;justify-content:space-between;gap:8px}.eyebrow{font-size:11px;font-weight:760;letter-spacing:.12em;color:var(--accent);margin-bottom:6px}.auth{min-height:100dvh;display:flex;flex-direction:column;justify-content:center;padding-top:calc(25px + env(safe-area-inset-top))}.auth .wordmark{font-size:44px;margin-bottom:38px}.auth label{display:grid;gap:8px;margin:16px 0;font-weight:650}.auth footer{margin-top:28px;display:flex;flex-wrap:wrap;gap:9px;color:var(--muted);font-size:13px}.auth .row{margin-top:10px}.message{color:var(--danger);margin:8px 0;min-height:24px}.demo-code{color:var(--accent)}
input{width:100%;min-width:0;background:#111117;color:#f7f5f5;border:1px solid #ffffff25;border-radius:9px;min-height:44px;padding:9px}.exercise p{font-size:13px}.set-row{display:grid;grid-template-columns:28px minmax(59px,1.1fr) minmax(37px,1fr) minmax(37px,1fr) 44px;gap:5px;align-items:center;padding:5px 2px;border-radius:10px;text-align:center;font-size:13px}.set-row input{text-align:center;padding-inline:3px}.labels{color:var(--muted);font-size:11px}.check{padding:0;color:#a5a4b2}.checked{background:#28473b}.checked .check{background:#62d9a0;color:#0c2b1c}.chips{display:flex;gap:8px;margin:0 0 14px}.chips button{flex:1}.chips [aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--accent);color:var(--accent)}.chips small{color:var(--muted);margin-left:3px}.summary{margin-bottom:14px;color:var(--muted);font-size:13px}.summary strong{color:white}.rest{justify-content:flex-start}.rest div{margin-right:auto;display:grid;gap:2px}.rest span{color:var(--muted);font-size:12px}.rest strong{font-variant-numeric:tabular-nums}.section-title{margin-top:28px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#71dbac;margin-right:5px}
dialog{position:fixed;inset:auto 0 0;width:min(100%,540px);max-width:none;margin:0 auto;border:1px solid #ffffff22;border-radius:23px 23px 0 0;padding:0 18px calc(18px + env(safe-area-inset-bottom));color:white}.grab{height:4px;width:36px;border-radius:4px;margin:9px auto 12px;background:#777782}.selector{text-align:left}.resume{text-align:left}@media(max-width:355px){main{padding-inline:var(--layout-compact-gutter)}main .card{padding-inline:8px}.summary{font-size:11px}}

nav [aria-current=page],.chips [aria-pressed=true]{background:var(--accent-tint);color:var(--accent)}
.chips button{border-radius:14px}
.set-row input{background:transparent;border:1px solid var(--field-outline);border-radius:5px}
.set-row input:disabled{opacity:.8}
.set-row.tracking-row-1 { grid-template-columns: 28px minmax(0, 1fr) 44px; }
.set-row.tracking-row-2 { grid-template-columns: 28px repeat(2, minmax(0, 1fr)) 44px; }
.live-exercise-heading { justify-content: start; }
.live-exercise-heading h2 { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.live-exercise-heading .art-missing { background: var(--surface-high); }
:is(.live-exercise-actions, .routine-view-menu, .routine-card-menu) {
  color: #fff;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
button:is(.live-exercise-actions, .routine-view-menu, .routine-card-menu):enabled:is(:hover,:active,:focus) {
  background: transparent;
  box-shadow: none;
}
:is(.live-note-button, .live-exercise-actions) {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  padding: 0;
  border-color: transparent;
}
:is(.live-note-button, .live-exercise-actions) svg { width: 20px; height: 20px; }
.workout-minimize svg { transform: rotate(-90deg); }
.workout-last-eye {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 44px;
  padding: 0;
  border-color: transparent;
}
.workout-last-eye svg,.set-note-button svg { width: 24px; height: 24px; }
.live-rpe-cell svg { display: block; width: 20px; height: 20px; margin-inline: auto; }
.rpe-picker { position: relative; }
.rpe-picker-status { display: grid; min-height: 44px; place-items: center; }
.rpe-picker-status output { font-size: 32px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.rpe-picker-status .rpe-value-empty { color: var(--muted); }
.rpe-effort-copy { margin: 1px 0 4px; text-align: center; }
#rpe-effort { margin: 0; color: #fff; font-weight: 700; line-height: 1.25; }
#rpe-description { margin: 2px 0 0; font-size: 14px; line-height: 1.3; }
.rpe-entry-content .rpe-help-button {
  position: absolute;
  inset: 0 auto auto 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #f7f5f5;
}
.rpe-help-button span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--field-outline);
  border-radius: 50%;
  background: var(--rpe-control-surface);
  font-size: 13px;
  line-height: 1;
}
.rpe-scrubber { position: relative; min-width: 0; }
.rpe-track {
  position: absolute;
  inset: 11px 0 auto;
  height: 22px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(90deg,transparent var(--rpe-progress,0px),var(--rpe-control-surface) var(--rpe-progress,0px)),
    linear-gradient(90deg,var(--rpe-fill,var(--rpe-control-surface),var(--rpe-control-surface)));
  box-shadow: inset 0 0 0 1px #ffffff20;
}
.rpe-track-ticks {
  position: absolute;
  inset: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--surface-high);
  font-size: 9px;
  line-height: 1;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.rpe-track-ticks span { width: 0; display: flex; justify-content: center; }
.rpe-range-controls input[type="range"] {
  --rpe-dot-ring: transparent;
  position: relative;
  appearance: none;
  display: block;
  margin: 0;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.rpe-range-controls input.rpe-slider-selected { --rpe-dot-ring: #141518; }
.rpe-range-controls input[type="range"]::-webkit-slider-runnable-track { height: 28px; }
.rpe-range-controls input[type="range"]::-moz-range-track { height: 28px; }
.rpe-range-controls input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  border: 2px solid var(--rpe-dot-ring);
  border-radius: 50%;
  background: var(--rpe-dot,#8e8f99);
}
.rpe-range-controls input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  border: 2px solid var(--rpe-dot-ring);
  border-radius: 50%;
  background: var(--rpe-dot,#8e8f99);
}
#sheet:has(.rpe-help-content) { background: #171719; }
#sheet:has(.rpe-help-content) .sheet-title-row {
  margin-inline: -18px;
  padding-inline: 18px;
  padding-block-end: 4px;
  border-bottom: 1px solid #ffffff12;
}
#sheet:has(.rpe-help-content) #sheet-title { font-size: 16px; font-weight: 500; }
.rpe-help-content { margin-block: 12px 2px; font-size: 14px; }
.rpe-help-content > p { margin: 0 0 12px; color: #a9a8ad; line-height: 1.4; }
.rpe-help-content > p strong { color: #f7f5f5; }
.rpe-help-scale { display: flex; flex-direction: column-reverse; gap: 7px; padding: 0; margin: 0; list-style: none; }
.rpe-help-scale li {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 6px 8px;
  border-radius: 11px;
  background: var(--rpe-help-tone,#303641);
}
.rpe-help-scale [data-rating="6"] { --rpe-help-color: #5bcc6e; --rpe-help-tone: #173925; }
.rpe-help-scale [data-rating="8"] { --rpe-help-color: #ffad4e; --rpe-help-tone: #3d3017; }
.rpe-help-scale [data-rating="10"] { --rpe-help-color: #ff7766; --rpe-help-tone: #3c1d18; }
.rpe-help-rating {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: #fff;
  text-shadow: 0 1px 2px #000b;
  background: var(--rpe-help-color,#e6ebf5);
  font-variant-numeric: tabular-nums;
}
.rpe-help-example { display: grid; gap: 2px; line-height: 1.25; overflow-wrap: anywhere; }
.rpe-help-example strong { color: #f7f5f5; font-weight: 650; }
.rpe-help-example span { color: #b4b2b4; font-size: 13px; }
#sheet:has(.workout-entry-layout) { --rpe-control-surface: #101114; }
.workout-entry-layout {
  display: grid;
  grid-template-columns: minmax(0,3fr) minmax(48px,1fr);
  gap: 5px;
}
.workout-number-keys,.workout-entry-rail { display: grid; grid-template-rows: repeat(4,minmax(44px,1fr)); gap: 4px; }
.workout-number-keys { grid-template-columns: repeat(3,minmax(0,1fr)); }
.workout-keypad-main { min-width: 0; }
.workout-keypad-value {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.workout-number-keys button,.workout-entry-rail button,.rpe-entry-content {
  border: 1px solid var(--button-outline,#77747f);
  border-radius: 9px;
  background: var(--rpe-control-surface);
}
.workout-number-keys button,.workout-entry-rail button {
  padding: 0;
  min-height: 44px;
  color: #fff;
}
.rpe-picker .workout-entry-rail button[data-step]:disabled {
  background: var(--rpe-control-surface);
  color: var(--muted);
}
.workout-number-keys button { font-size: 19px; font-variant-numeric: tabular-nums; }
.workout-number-keys :is([data-key="."],[data-key="Backspace"]) {
  border-color: transparent;
  background: transparent;
}
.workout-number-keys :is([data-key="."],[data-key="Backspace"]):is(:hover,:active) {
  border-color: transparent;
  background: #ffffff10;
}
.workout-number-keys :is([data-key="."],[data-key="Backspace"],.workout-entry-note-button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.workout-number-keys .workout-entry-note-button {
  color: #fff;
  background: #26272c;
}
:is(.workout-entry-rail,.workout-entry-note-button) svg { display: block; width: 22px; height: 22px; margin-inline: auto; }
.workout-entry-layout .measurement-next {
  color: var(--on-accent);
  background: var(--button-solid-blue);
  border-color: var(--button-solid-border);
}
.workout-entry-layout .measurement-next:not(:disabled):active {
  box-shadow: inset 0 0 0 999px #00000024;
}
.workout-entry-layout .measurement-next:disabled {
  background: #292a30;
  border-color: var(--action-border);
  color: var(--muted);
  box-shadow: none;
}
.rpe-entry-content {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: center;
  padding-inline: 8px;
}
.workout-entry-rail button.rpe-complete:not(:disabled) {
  color: #fff;
  border-color: #19633d;
  background: #19633d;
}
#sheet:has(.rpe-picker,.rpe-help-content) {
  scrollbar-color: transparent transparent;
  scrollbar-width: thin;
}
#sheet.rpe-is-scrolling:has(.rpe-picker,.rpe-help-content) { scrollbar-color: #777985 transparent; }
@supports selector(::-webkit-scrollbar-thumb) {
  #sheet:has(.rpe-picker,.rpe-help-content) { scrollbar-color: auto; scrollbar-width: auto; }
  #sheet:has(.rpe-picker,.rpe-help-content)::-webkit-scrollbar { width: 6px; }
  #sheet:has(.rpe-picker,.rpe-help-content)::-webkit-scrollbar-track,
  #sheet:has(.rpe-picker,.rpe-help-content)::-webkit-scrollbar-thumb { background: transparent; }
  #sheet.rpe-is-scrolling:has(.rpe-picker,.rpe-help-content)::-webkit-scrollbar-thumb,
  #sheet:has(.rpe-picker,.rpe-help-content)::-webkit-scrollbar-thumb:is(:hover,:active) {
    background: #777985;
    border-radius: 999px;
  }
}
.last-set-actions button { margin-top: 0; }
.last-set-subtitle { margin-bottom: 10px; text-align: center; }
.last-set-measurements {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0,1fr);
  gap: 5px;
  margin: 0 0 14px;
  text-align: center;
}
.last-set-measurements dt { margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.last-set-measurements dd {
  display: grid;
  min-height: 34px;
  margin: 0;
  padding: 4px 2px;
  place-items: center;
  background: #101114;
  border: 1px solid #676973;
  border-radius: 5px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.workout-exercise-title-link { color: var(--accent); text-decoration: none; }
.workout-exercise-title-link:hover { color: var(--accent); }
.live-exercise .workout-exercise-title-link { color: var(--accent); }
.live-exercise .workout-exercise-title-link:hover { color: var(--accent); }
.live-set-row .set-note-button { width: 100%; }
.live-set-row .set-note-button.has-note { color: var(--accent); }
.set-note-button.has-note,.set-note-button.has-previous-note { color: var(--accent); }
.set-note-button:disabled { opacity: .4; }
.set-note-preview { display: none; }
.recorded-set-row .set-note-button:disabled {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.recorded-set-note { margin: 3px 0 0; }
.last-exercise-notes { margin-block: 4px 9px; color: var(--muted); font-size: 13px; }
.last-exercise-notes summary { cursor: pointer; padding-block: 6px; color: var(--button-text); }
.live-note textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 15px;
  resize: vertical;
  font: inherit;
  font-size: 16px;
  color: inherit;
  background: transparent;
  border: 1px solid var(--field-outline);
  border-radius: 5px;
}
.live-note:has(textarea:not(:placeholder-shown)) > span {
  top: 0;
  font-size: 12px;
  background: var(--field-surface,#000);
}
.workout-exercise-notes > [data-action="workout-note-add"] {
  margin-bottom: 10px;
  border-radius: 8px;
}
.live-rest-button {
  padding-inline: 4px;
  border-color: transparent;
  border-radius: 6px;
  font-size: 13px;
  text-align: left;
}
.set-row.live-set-row {
  grid-template-columns: 30px 40px repeat(2,var(--workout-measure-width)) 40px 44px;
  gap: 4px;
  min-height: 44px;
  padding: 0;
  border-radius: 6px;
  justify-content: space-between;
}
.set-row.live-set-row-2 {
  grid-template-columns: 30px 40px repeat(3,var(--workout-measure-width)) 40px 44px;
}
:is(.workout,.workout-history-review) { --workout-measure-width: clamp(52px,14vw,68px); }
@media (max-width: 380px) {
  :is(.workout,.workout-history-review) { --workout-measure-width: 50px; }
  .set-row.live-set-row {
    grid-template-columns: 26px 30px repeat(2,var(--workout-measure-width)) 32px 36px;
    gap: 3px;
  }
  .set-row.live-set-row-2 {
    grid-template-columns: 26px 30px repeat(3,var(--workout-measure-width)) 32px 36px;
  }
}
.set-row.labels.live-set-row {
  min-height: 25px;
  color: #a8a8b2;
  font-size: 11px;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.workout-measurement-heading { display: grid; line-height: 1.12; }
.workout-measurement-heading small { font-size: 9px; text-transform: none; color: #9597a3; }
.live-set-row :is(input, select),
.live-set-row .live-rpe-cell,
.live-set-row .live-set-number,
.recorded-set-row :is(.recorded-set-number,.recorded-measurement) {
  color: inherit;
  background: #101114;
  border: 1px solid #676973;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}
.live-set-row :is(input,select,.live-rpe-cell,.logged-measurement) {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0 2px;
  font: inherit;
  font-size: 16px;
  text-align: center;
}
.live-set-row :is(input:focus, select:focus,.workout-measurement-open) { border-color: var(--accent); }
.live-set-row .live-set-number {
  display: grid;
  place-items: center;
  min-height: 30px;
  padding: 0;
}
.live-set-row .workout-last-eye { width: 100%; }
.workout-set-swipe .live-set-row .set-actions { border-color: #676973; }
.live-set-row.checked { background: #67e19c20; }
.live-set-row.checked .logged-measurement {
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.live-set-row.checked .logged-measurement.workout-measurement-open {
  border-color: var(--accent);
  background: #101114;
  box-shadow: inset 0 0 0 1px var(--accent);
}
.live-set-row.checked .logged-measurement:focus-visible { outline-offset: -2px; }
.live-set-row.checked .check {
  background: #67e19c24;
  border-color: #67e19c64;
  color: #aaf0c7;
}
.live-set-row .check { min-height: 34px; border-radius: 6px; }
.live-set-row input[data-live-measurement] { color: #fff; }
.live-set-row input[data-workout-ghost]::placeholder { color: var(--muted); opacity: 1; }
.live-set-row.checked .live-rpe-cell { border-color: #aaf0c748; background: transparent; }
.live-set-row .live-rpe-cell:is(:hover,:focus-visible,.rpe-is-open) { border-color: var(--accent); }
.live-set-row .live-rpe-cell.rpe-is-open { box-shadow: inset 0 0 0 1px var(--accent); }
.live-set-row.checked .live-rpe-cell:is(:hover,:focus-visible,.rpe-is-open) { color: var(--accent); }
.live-exercise.card,
.workout-history-review [data-recorded-exercise] {
  margin: 0;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid #ffffff1e;
  border-radius: 0;
  background: transparent;
  --field-surface: #000;
}
.live-exercise-title { flex: 1; min-width: 0; }
.live-exercise-title h2 { font-size: 17px; line-height: 1.2; }
.live-exercise-title p { margin: 2px 0 0; font-size: 12px; }
.live-exercise-heading .workout-exercise-avatar { flex: 0 0 36px; width: 36px; height: 36px; }
.workout-exercise-avatar.art-missing::before {
  content: "";
  width: 18px;
  height: 18px;
  opacity: .6;
  background: currentColor;
  mask: url("./icons/training.svg") center / contain no-repeat;
}
.live-exercise-meta { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 12px; margin-block: 3px; }
.live-exercise-meta .last-exercise-notes { margin-block: 0; }
.live-exercise-meta .last-exercise-notes summary { min-height: 36px; padding: 9px 0; }
.live-exercise :is(.log-weight-help,.live-rest-button) { color: #fff; }
.live-exercise :is(.log-weight-help,.live-rest-button) { min-height: 36px; font-weight: 400; }
.live-exercise-heading > .live-note-button {
  border-radius: 9px;
  background: #26272c;
  color: #fff;
}
.live-exercise-heading > .exercise-note-pin svg { width: 24px; height: 24px; }
.live-exercise-heading > .exercise-note-pin.has-note { color: var(--accent); }
.live-exercise .set-note-button svg { width: 30px; height: 30px; }
.live-exercise > [data-action="add"] { margin-top: 7px; }
.workout-secondary-button {
  border: 1px solid #52545d;
  border-radius: 8px;
  background: #131418;
  color: #f7f5f5;
  font-size: var(--action-font-size);
}
:is(.workout,.recorded-workout-readonly) .live-set-row .live-note-button { color: #c2c4cf; }
:is(.workout,.workout-history-review) .workout-last-eye { color: var(--accent); }
:is(.workout,.recorded-workout-readonly) .live-set-row .set-note-button:is(.has-note,.has-previous-note) { color: var(--accent); }
.workout > [data-action="workout-add-exercises"] { border-radius: 8px; }
.workout-set-swipe { position: relative; overflow: hidden; touch-action: pan-y pinch-zoom; }

.workout-set-swipe button.set-actions {
  min-width: 0;
  padding: 0;
  border-color: transparent;
}
.workout-set-actions-strip:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 4px 4px 7px;
}
.log-weight-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-inline: 4px;
  border-color: transparent;
  border-radius: 6px;
  font-size: 13px;
}
.log-weight-help svg { width: 16px; height: 16px; flex: none; }
@media (hover: hover) {
  .log-weight-help:hover { text-decoration: underline; }
}
.check{border-radius:12px;padding:0}
.auth .material-field{position:relative;display:block;margin:22px 0 7px}
.auth .wordmark,.demo-action{text-align:center}
.auth .wordmark{
  font-size:clamp(36px,16vw,66px);
  font-kerning:none;
  letter-spacing:.025em;
  margin:0;
}
.auth-demo-only .auth-content,.demo-action{display:grid;gap:16px}
.auth-tagline{margin:4px 0 24px;text-align:center;color:#a8a8a8;font-size:18px;font-weight:600}
.demo-action button.full{margin:0}
.auth-command-mark{display:none}
@media (min-width:900px){
  .auth{display:grid;grid-template-columns:minmax(0,400px) minmax(0,600px);
    align-items:center;justify-content:center;gap:28px;width:min(100%,1108px);padding-inline:40px}
  .auth-demo-only{grid-template-columns:max-content minmax(0,330px)}
  .auth-content{width:min(100%,400px);justify-self:center}
  .auth-command-mark{display:block;color:#d8d6d2}
  .auth-command-mark svg{display:block;width:100%;height:auto}
}
.demo-action{width:max-content;max-width:100%;margin-inline:auto}
.wordmark span{display:inline-block;width:.17em;height:.17em;margin-left:.075em;background:var(--brand-accent);color:transparent;overflow:hidden}
.auth .wordmark span{background:var(--accent)}
.policy-links a,.policy-links a:visited{color:inherit;text-underline-offset:3px}
dialog{border-radius:28px 28px 0 0}
.selector{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:12px;background:transparent;color:#fff}
.selector > span{min-width:0;overflow-wrap:anywhere}
.athlete-selected-check{flex:0 0 22px;width:22px;height:22px;color:var(--accent)}
.selector:hover,.selector:focus-visible{background:#ffffff12}
@media(prefers-reduced-motion:reduce){button{transition:none}}

#athlete-form .material-field{position:relative;display:block;margin:20px 0 4px}
#athlete-form .material-field span{background:var(--surface-high)}

html:has(.site-header) {
  scrollbar-gutter: stable both-edges;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #000;
}

.site-header-row {
  display: grid;
  align-items: center;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  border-bottom: 1px solid #ffffff12;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: 44px;
  column-gap: 5px;
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: rgb(0 0 0 / 76%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: #000;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.training-sync-status {
  position: fixed;
  z-index: 20;
  right: 16px;
  bottom: calc(110px + env(safe-area-inset-bottom));
  width: min(360px, calc(100% - 32px));
  padding: 10px 12px;
  border: 1px solid #ffffff25;
  border-radius: 12px;
  color: #f7f5f5;
  background: var(--card);
}

.training-sync-status p {
  margin: 0;
  font-size: 14px;
}

.training-sync-status div:not(:empty) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.training-sync-status button {
  min-height: var(--action-height);
  padding: 6px 10px;
  font-size: var(--action-font-size);
}
body:has(.workout-overlay) .training-sync-status:is([data-status="error"],[data-status="conflict"]) {
  z-index: 28;
  top: calc(72px + env(safe-area-inset-top));
  bottom: auto;
}
#training-conflict-form fieldset {
  min-width: 0;
  margin: 0 0 12px;
  border: 1px solid var(--field-outline);
  border-radius: 8px;
}
#training-conflict-form label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 8px;
  align-items: center;
  padding: 5px 0;
}
#training-conflict-form input[type="radio"] { width: 18px; min-height: 18px; accent-color: var(--accent); }
#training-conflict-form label span { grid-column: 2; color: var(--muted); overflow-wrap: anywhere; }

.site-header-row button:where(:not(.routine-exercise-picker .picker-new-exercise)) {
  background: none;
  border-color: transparent;
  padding: 0 8px;
}

.site-header .site-header-row.site-header-two-columns {
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: minmax(44px,auto);
}

.site-header-row .athlete-header-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 4px 0 4px 4px;
  border-inline-end-width: 0;
  color: #fff;
  font-size: 1.125rem;
}

.athlete-header-label {
  flex: 0 1 auto;
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.2;
}

.athlete-header-chevron {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff20;
}

.athlete-header-chevron svg { width: 14px; height: 14px; }

:root { --header-icon-size: 24px; }
.header-account-actions { display: flex; }
:is(.header-invite,.header-notifications) {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  color: #fff;
}
.header-invite:active:not(:disabled) { color: var(--accent); }
.header-notifications:is([aria-current="page"], :active:not(:disabled)) { color: var(--accent); }
/* Icon-only site-header controls share the existing Profile interaction variant.
   Text actions, athlete-name selectors and non-header controls stay separate. */
.site-header-row button:is(.header-invite,.header-notifications,.header-sign-out,.detail-back,.workout-minimize),
.site-header-row .athlete-profile-header-actions button {
  border-radius: 50%;
}
.site-header-row button:is(.header-invite,.header-notifications,.header-sign-out,.detail-back,.workout-minimize):not(:disabled):is(:hover,:active),
.site-header-row .athlete-profile-header-actions button:not(:disabled):is(:hover,:active) {
  color: var(--accent);
  background: var(--accent-tint);
}
.header-notifications[data-unread]:not([aria-current])::after {
  content: "";
  position: absolute;
  inset: 6px 6px auto auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
}
.header-notifications svg,
.header-invite-icon {
  width: var(--header-icon-size);
  height: var(--header-icon-size);
}
.header-invite-icon {
  background: currentColor;
  mask: url("/icons/gift.svg") center / contain no-repeat;
  -webkit-mask: url("/icons/gift.svg") center / contain no-repeat;
}
.notifications-page .notification-message:empty { display: none; }
.notification-routine + .notification-routine { margin-top: 12px; }
.routine-view-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-block: 10px 22px; }
.routine-view-heading h1 { min-width: 0; margin: 0; }
.routine-view-heading h1, .notification-routine h2, .unassigned-routines h3 { overflow-wrap: anywhere; }
.routine-view-menu { display: grid; place-items: center; flex: 0 0 44px; padding: 0; border-color: transparent; }
.routine-view-menu svg { width: 20px; height: 20px; }
.unassigned-routines { margin-top: 24px; }
.routine-share-content form > button { width: 100%; }
.setup-athlete-actions { display: grid; gap: 14px; }
.setup-athlete-actions button { margin: 0; }
.member-invite-counts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.member-invite-counts button,
.member-invites-table button {
  padding-inline: 6px;
  border-color: transparent;
  border-radius: 8px;
  color: var(--accent);
}
.member-invite-counts button { text-decoration: underline; }
.member-invites-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 8px;
  font-size: 13px;
  text-align: left;
}
.member-invites-table th,
.member-invites-table td {
  padding: 6px;
  border-bottom: 1px solid #ffffff18;
}
.member-invites-table td:first-child { overflow-wrap: anywhere; }
.member-invites-table :is(th, td):nth-child(2) { white-space: nowrap; }
.member-invites [role="status"]:empty { display: none; }

.bottom-navigation a { font-weight: 500; color: #fff; }
.selector.selector-compact { margin: 0 0 16px; }

:root { --layout-submenu-content-gap: 14px; }
.site-header + main:not(.exercise-detail),.discipline-menu + main {
  padding-top: var(--layout-submenu-content-gap);
}

.site-header + main:not(.exercise-detail) > h1:first-child,.discipline-menu + main > h1:first-child {
  margin-top: 0;
}

.discipline-menu {
  position: relative;
  display: flex;
  width: min(100%, 540px);
  margin-inline: auto;
  padding-inline: 12px;
}

.discipline-menu button {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
}

.discipline-menu[data-menu="home"] button { flex: 0 0 50%; }

.discipline-menu button[aria-pressed="true"] {
  color: #fff;
}

.discipline-menu::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  width: calc((100% - 24px) / 2);
  height: 2px;
  background: var(--accent);
  pointer-events: none;
  transform: translateX(0);
  transition: transform 240ms cubic-bezier(.2, .75, .25, 1);
}

.discipline-menu[data-selected="wrestling"]::after {
  transform: translateX(100%);
}


.discipline-menu[data-menu="discipline"]::after { transition-duration: 300ms; }
.train-panel > h1:first-child { margin-top: 0; }
#app:has(> .train-page) { display: flex; flex-direction: column; }
.train-page { flex: 1; touch-action: pan-y pinch-zoom; }
.train-page.is-sliding { overflow-x: clip; }
.train-slide-exit {
  position: fixed;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .discipline-menu::after,.discipline-menu[data-menu="discipline"]::after { transition: none; }
}

.site-header-row > :last-child{justify-self:end}
.site-header-row > :first-child{justify-self:start;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#routine-form .material-field{position:relative;display:block;margin:20px 0 12px}
#routine-form .material-field span,#athlete-form .material-field span{background:#27262e}
#routine-form fieldset{border:1px solid var(--field-outline);border-radius:12px;margin:0;padding:4px 12px}
.routine-option{display:flex;align-items:center;gap:10px;min-height:44px}
.routine-option input{width:18px;height:18px;min-height:0;accent-color:var(--accent)}

#athlete-form .material-field:not(:focus-within):has(input:placeholder-shown) span{background:transparent}
.sheet-handle{display:grid;place-items:center;height:28px;touch-action:none;cursor:grab}
.sheet-handle .grab{margin:0}
dialog{max-height:76dvh;overflow-y:auto;overscroll-behavior:contain}
dialog.expanded{height:90dvh;max-height:90dvh}
.plan-set{display:grid;grid-template-columns:24px repeat(2,minmax(0,1fr)) auto;gap:7px;align-items:center}
.plan-set:has(.material-field:nth-child(2):last-of-type){grid-template-columns:24px minmax(0,1fr) auto}
.plan-set .material-field{margin:8px 0}
:is(.routine-editor, .exercise-picker) {
  --exercise-page-gap: var(--layout-submenu-content-gap);
  --exercise-page-gutter: var(--layout-page-gutter);
  --exercise-page-left: max(var(--exercise-page-gutter), env(safe-area-inset-left));
  --exercise-page-right: max(var(--exercise-page-gutter), env(safe-area-inset-right));
}
@media (max-width: 355px) {
  :is(.routine-editor, .exercise-picker) {
    --exercise-page-gutter: var(--layout-compact-gutter);
  }
}
:is(.routine-editor, .exercise-picker) .site-header-row {
  padding-inline: var(--exercise-page-left) var(--exercise-page-right);
}
.routine-builder {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100dvh;
}
.routine-builder > main {
  overflow-y: auto;
  padding-bottom: 20px;
}
.routine-builder-dock {
  width: min(100%, 540px);
  margin-inline: auto;
  padding: 16px max(18px, env(safe-area-inset-left))
    calc(18px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-right));
  border: 1px solid #ffffff22;
  border-radius: 28px 28px 0 0;
}
.routine-builder-dock .material-field { margin: 0; }
.routine-name-units {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.routine-builder-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.routine-builder-actions .primary { margin: 0; }
.routine-error { margin-block: 6px 0; min-height: 0; }
.routine-error:empty { margin: 0; }
.routine-builder button.routine-invalid-action {
  border-color: var(--danger);
  background: transparent;
  color: #fff;
}
.routine-builder button.routine-invalid-action:focus-visible { outline-color: var(--danger); }
:is(.routine-builder-dock, #plan-rest, #workout-rest-form) .material-field > input[aria-invalid="true"] {
  border-color: var(--danger);
  outline-color: var(--danger);
}
:is(.routine-builder-dock, #plan-rest, #workout-rest-form) .material-field:has(input[aria-invalid="true"]) > span {
  color: var(--danger);
}
.picker-search-controls {
  display: grid;
  gap: var(--exercise-page-gap);
  padding: var(--exercise-page-gap) var(--exercise-page-right) var(--exercise-page-gap) var(--exercise-page-left);
  border-bottom: 1px solid #ffffff12;
}
.picker-title {
  margin: 0;
  letter-spacing: normal;
  text-align: center;
}
.picker-search-controls .material-field { margin: 0; }
.exercise-picker > .site-header + main {
  padding-block: var(--exercise-page-gap) calc(var(--picker-dock-height, 0px) + var(--picker-bottom-inset, 0px) + var(--exercise-page-gap));
  padding-inline: var(--exercise-page-left) var(--exercise-page-right);
}
.picker-new-exercise.primary, .routine-exercise-picker .picker-new-exercise { width: auto; margin: 0; min-width: 54px; padding-inline: 12px; }
#custom-exercise-form .material-field { margin-block: 0 16px; }
#custom-exercise-form .message:empty { display: none; }
.exercise-picker > main :is(button, input) {
  scroll-margin-top: var(--picker-header-height, 164px);
  scroll-margin-bottom: calc(var(--picker-dock-height, 0px) + var(--picker-bottom-inset, 0px) + var(--exercise-page-gap));
}
.picker-dock {
  position: fixed;
  inset: auto 0 var(--picker-bottom-inset, 0px);
  z-index: 3;
  padding-block: var(--exercise-page-gap) calc(var(--exercise-page-gap) + env(safe-area-inset-bottom));
  padding-inline: calc(var(--exercise-page-left) - 1px) calc(var(--exercise-page-right) - 1px);
  box-shadow: 0 -10px 32px #0005;
}
.picker-dock:has(#add-picked[hidden]):has(#picker-filter-panel[hidden]),
.picker-dock:has(#picker-filter-panel:not([hidden])) #add-picked,
#add-picked[hidden],
#picker-filter-panel[hidden] { display: none; }
#add-picked { margin: 0; }
#picker-filter-panel {
  display: flex;
  flex-direction: column;
  height: min(calc(68dvh - var(--picker-bottom-inset, 0px)), 600px);
}
.picker-filter-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
}
.picker-filter-header h2 { margin: 0; text-align: center; }
.picker-filter-header .detail-back {
  display: grid;
  place-items: center;
  width: 44px;
  padding: 0;
  border-color: transparent;
  color: inherit;
}
.picker-result{display:flex;align-items:center;border-bottom:1px solid #ffffff16;gap:8px}
.picker-result label{display:flex;flex:1;min-width:0;align-items:center;gap:12px;padding:10px 0;cursor:pointer}
.picker-result input{width:18px;height:18px;min-height:0;accent-color:var(--accent);flex:none}
.picker-result small{display:block;color:var(--muted);margin-top:4px}
.exercise-picker #results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--exercise-page-gap);
}
.exercise-picker .results-count { margin: 0; }

.picker-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--exercise-page-gap)}
.filter-chip {
  display: flex;
  overflow: hidden;
}
.filter-chip button {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  color: inherit;
}
.filter-chip [data-build="filter"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding-inline: 9px;
  font-size: inherit;
}
.filter-chip [data-build="filter"] span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filter-chip svg { width: 14px; height: 14px; }
.filter-chip .clear-chip {
  flex: 0 0 44px;
  padding: 0;
  border-inline-start: 1px solid var(--selection-border);
  font-size: 18px;
}
.filter-chip:focus-within { border-color: var(--accent); }
.filter-chip button:focus-visible { outline-offset: -3px; }
.body-icon{width:24px;height:30px;flex:none;color:#b5b4be}
.exercise-avatar{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:#302d36}
.picker-result button{padding:0;width:44px;border:0;background:transparent;color:var(--accent);font-size:22px}
.filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.filter-option{position:relative;display:flex;align-items:center;gap:7px;min-height:52px;padding:6px 8px;border:1px solid #ffffff20;border-radius:10px;font-size:13px;cursor:pointer;overflow-wrap:anywhere}
.filter-option input{position:absolute;width:1px;height:1px;min-height:0;opacity:0;padding:0}
.filter-option:has(input:checked){background:var(--accent-tint);border-color:var(--accent);color:var(--accent)}
.filter-option:focus-within{outline:2px solid var(--accent);outline-offset:1px}
.equipment-symbol{color:var(--accent);font-size:18px}
dialog:has(.filter-footer){height:min(76dvh,680px);overflow:hidden}
dialog[open]:has(.filter-footer){display:flex;flex-direction:column}
dialog.expanded:has(.filter-footer){height:90dvh}
dialog:has(.filter-footer) .sheet-handle{flex:none}
.filter-scroll{flex:1;overflow:auto;min-height:0;padding:6px 2px 12px}
.filter-scroll h3{font-size:13px;color:var(--muted);margin:15px 0 8px}
.filter-footer{flex:none;display:grid;grid-template-columns:1fr 1.15fr;gap:8px;padding-top:10px;border-top:1px solid #ffffff18}
.filter-footer button{margin:0;padding-inline:5px}
.slide-in{animation:enter-detail .2s ease-out}
@keyframes enter-detail{from{transform:translateX(35px);opacity:.55}}
@media(prefers-reduced-motion:reduce){.slide-in{animation:none}}

.picker-result{border-radius:12px;gap:0}
.picker-result.is-selected{background:var(--accent-tint);color:var(--on-accent);border-bottom-color:transparent}
.picker-result.is-selected small,.picker-result.is-selected .exercise-info{color:#624c53}
.picker-result .exercise-select{width:auto;display:flex;flex:1;min-width:0;gap:12px;align-items:center;text-align:left;background:transparent;color:inherit;font-size:15px;padding:8px 10px;border-radius:12px}
.picker-result .exercise-info{flex:0 0 44px;color:var(--muted);display:grid;place-items:center}
.exercise-info svg{width:20px;height:20px}
/* Exercise rows and information controls share transparent interaction paint.
   Selection belongs to the parent row, not an inner pressed-button fill. */
.picker-result button:is(.exercise-select,.exercise-info),
button.log-weight-help {
  -webkit-tap-highlight-color: transparent;
}
.picker-result button:is(.exercise-select,.exercise-info):is(:hover,:active,:focus-visible),
button.log-weight-help:not(:disabled):is(:hover,:active,:focus-visible) {
  background: transparent;
  box-shadow: none;
}
.exercise-avatar{position:relative;width:48px;height:48px;flex:0 0 48px;background:#292831}
.exercise-avatar img{object-fit:cover;border-radius:50%;width:100%;height:100%}
.exercise-avatar.art-missing{background:#27262e}
.picker-result.is-selected .art-missing{background:#e9b7c0}
.picker-add[hidden]{display:none}
.picker-add{justify-content:stretch;box-shadow:0 -10px 32px #0005}
.picker-add .primary{margin:0;min-height:48px}

/* Compact, single-line picker rows and shared selection surfaces. */
:root{--selection:var(--accent-tint);--on-selection:var(--on-accent)}
html{overflow-x:clip}
.picker-result{position:relative;border:0;border-radius:0;margin-block:2px;min-height:60px}
.exercise-picker .picker-result { margin: 0; padding: var(--exercise-page-gap); }
.picker-result.is-selected{border-radius:0;background:var(--selection);color:var(--on-selection)}
.picker-result .exercise-select{font-size:14px;padding:6px 8px;gap:9px;border-radius:0}
.exercise-picker .picker-result .exercise-select { padding: 0; }
.exercise-select > span:last-child{min-width:0;flex:1}
.exercise-select strong,.exercise-select small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.exercise-select small{font-size:11px;margin-top:3px}
.exercise-avatar,.exercise-avatar.art-missing,.picker-result.is-selected .art-missing{background:#fff}
.exercise-avatar img{object-fit:contain}
.exercise-avatar img.legacy-art{mix-blend-mode:normal}

.filter-option:has(input:checked){background:var(--selection);color:var(--on-selection);border-color:var(--selection)}
.filter-option:has(input:checked) .body-icon,.filter-option:has(input:checked) .equipment-symbol{color:var(--on-selection)}
.equipment-symbol{display:grid;place-items:center;width:28px;height:28px;flex:none}
.equipment-symbol svg{width:24px;height:24px}
.site-header-row .detail-back,.sheet-title-row .detail-back,.detail-back.workout-header-back{display:grid;place-items:center;width:44px;padding:0;border:0;background:transparent;color:inherit}
.detail-back svg{width:22px;height:22px}
:is(.site-header-row,.sheet-title-row) .detail-back svg {
  width: var(--header-icon-size);
  height: var(--header-icon-size);
}
.site-header .detail-tabs{margin:0;padding:2px 14px 0;gap:0}
.exercise-detail h1{font-size:22px;line-height:1.2;letter-spacing:-.02em;margin:16px 0}
.detail-art{display:block;object-fit:contain;width:min(196px,100%);height:auto;aspect-ratio:1;margin:0 auto;border-radius:12px;background:white}

/* Shared selected state for exercise rows, filter options, and active chips. */
:root{--selection:var(--accent-tint);--selection-border:var(--accent);--on-selection:var(--on-accent)}
.filter-chip.is-filtered{border-color:var(--selection-border)}
.filter-chip.is-filtered button{color:var(--button-text)}
.picker-result.is-selected{box-shadow:inset 0 0 0 1px var(--selection-border);border-radius:8px}
.picker-result.is-selected small{color:var(--on-accent)}
.picker-result.is-selected .exercise-info{color:var(--accent)}
.filter-option:has(input:checked){border-color:var(--selection-border);box-shadow:inset 0 0 0 1px var(--selection-border)}

.bench-preview{position:relative;width:min(196px,100%);margin-inline:auto;aspect-ratio:1;overflow:hidden;border-radius:12px;background:white}
.bench-preview .detail-art{width:100%}
.filter-option .body-icon,.filter-option .equipment-symbol{width:38px;height:38px;flex:0 0 38px;padding:4px;border-radius:50%;background:#fff;color:#303540}
.filter-option:has(input:checked) .equipment-symbol,.filter-option:has(input:checked) .body-icon{color:#303540}
.filter-option{min-height:56px}
.equipment-symbol svg{width:29px;height:29px}
.detail-media{margin:-26px -20px 0;width:calc(100% + 40px);height:clamp(215px,60vw,300px);background:white;overflow:hidden}
.detail-media .detail-art,.detail-media .bench-preview{display:block;width:100%;height:100%;object-fit:contain;margin:0;border-radius:0;aspect-ratio:auto}
.detail-media .bench-preview .detail-art{height:100%}
@media(max-width:355px){.detail-media{margin-inline:-10px;width:calc(100% + 20px)}}

.filter-avatar{display:block;width:38px;height:38px;flex:0 0 38px;object-fit:contain;border-radius:50%;background:white}
#sheet-title{text-align:center;margin:0 0 12px;flex:none;text-transform:capitalize}
.sheet-title-row{flex:none}
.sheet-title-row:has([data-sheet-back]){
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 44px;
  align-items:center;
  margin-bottom:12px;
}
.sheet-title-row:has([data-sheet-back]) #sheet-title{grid-column:2;margin:0}
.sheet-title-row #sheet-title.sheet-title-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sheet-policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 16px;
  margin-top: 12px;
  color: #bcbcc2;
  font-size: 13px;
  line-height: 1.5;
}
.sheet-policy-links a {
  padding-block: 8px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}
.avatar-check{position:absolute;top:-2px;right:-3px;display:grid;place-items:center}

/* Floating main navigation */
.bottom-navigation {
  width: min(calc(100% - 32px), 360px);
  bottom: calc(10px + env(safe-area-inset-bottom));
  gap: 4px;
  padding: 5px;
  border: 1px solid #ffffff30;
  border-radius: 999px;
  background: #23232b;
  box-shadow: inset 0 1px 0 #ffffff16, 0 8px 28px #0008;
  backdrop-filter: none;
}
#app:has(> .bottom-navigation) { --training-page-gutter: 20px; }
#app:has(> .bottom-navigation) > main { padding-inline: var(--training-page-gutter); }
@media (max-width: 355px) {
  #app:has(> .bottom-navigation) { --training-page-gutter: 10px; }
}
.minimized-workout {
  position: fixed;
  z-index: 3;
  inset-inline: 0;
  bottom: calc(82px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(min(100%,540px) - 2 * var(--training-page-gutter));
  margin-inline: auto;
  padding: 5px;
  border: 1px solid #ffffff30;
  border-radius: 999px;
  background: #23232b;
  box-shadow: inset 0 1px 0 #ffffff16, 0 6px 24px #0008;
}
.minimized-workout button {
  border-color: transparent;
  border-radius: 999px;
  padding: 0;
}
.minimized-workout-resume {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  border: 0;
}
.minimized-workout-content { display: grid; min-width: 0; gap: 2px; }
.minimized-workout-status { display: flex; align-items: center; gap: 7px; }
.minimized-workout-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #5feb89;
  animation: minimized-workout-pulse 1.7s ease-in-out infinite;
}
@keyframes minimized-workout-pulse {
  50% { opacity: .56; transform: scale(.78); }
}
@media (prefers-reduced-motion: reduce) {
  .minimized-workout-dot { animation: none; }
}
.minimized-workout-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #d6d5dc;
  font-weight: 500;
}
.minimized-workout-time { color: #fff; font-size: 16px; font-variant-numeric: tabular-nums; }
.minimized-workout-chevron, .minimized-workout button.minimized-workout-discard {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #ffffff24;
  border-radius: 50%;
  background: #ffffff12;
}
.minimized-workout-chevron { color: #fff; }
:is(.minimized-workout-chevron,.minimized-workout-discard) svg { width: 19px; height: 19px; }
.minimized-workout-chevron svg { transform: rotate(90deg); }
#app:has(> .minimized-workout) > main { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  :is(.bottom-navigation,.minimized-workout) {
    background: linear-gradient(155deg, #ffffff16, #ffffff04 60%), #17171e88;
    -webkit-backdrop-filter: blur(20px) saturate(155%);
    backdrop-filter: blur(20px) saturate(155%);
  }
}

.bottom-navigation a {
  text-decoration: none;
  box-sizing: border-box;
  font-family: inherit;
  font-weight: 500;
  position: relative;
  font-size: 13px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 5px 10px;
  flex: 1 1 0;
  min-width: 0;
  border-color: transparent;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
  transition: color 240ms ease;
}

@media (max-width: 355px) {
  .bottom-navigation a { padding-inline: 0; }
}

.bottom-navigation a:active:not(:disabled) {
  box-shadow: none;
}

.bottom-navigation-icon {
  width: 21px;
  height: 21px;
  background-color: currentColor;
  -webkit-mask: var(--tab-icon) center / contain no-repeat;
  mask: var(--tab-icon) center / contain no-repeat;
}

.bottom-navigation-icon[data-icon="home"] { --tab-icon: url("./icons/home.svg"); }
.bottom-navigation-icon[data-icon="train"] { --tab-icon: url("./icons/train.svg"); }
.bottom-navigation-icon[data-icon="profile"] { --tab-icon: url("./icons/profile.svg"); }

.bottom-navigation::before {
  content: "";
  position: absolute;
  inset: 5px auto 5px 5px;
  width: calc((100% - 18px) / 3);
  border-radius: 999px;
  background: #ffffff16;
  box-shadow: inset 0 0 0 1px #ffffff14;
  pointer-events: none;
  transform: translateX(0);
  will-change: transform;
  transition: transform 240ms cubic-bezier(.2, .75, .25, 1);
}

.bottom-navigation[data-page="train"]::before {
  transform: translateX(calc(100% + 4px));
}

.bottom-navigation[data-page="profile"]::before {
  transform: translateX(calc(200% + 8px));
}

.bottom-navigation [aria-current="page"] {
  background: transparent;
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .bottom-navigation a,
  .bottom-navigation::before { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  :is(.bottom-navigation,.minimized-workout) {
    background: #23232b;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.history-workout-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.routine-card-heading h2 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.routine-card-menu {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  padding: 0;
  border-color: transparent;
}
.routine-card-menu svg { width: 19px; height: 19px; }
.material-static-value {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 56px;
  padding: 8px 15px;
  border: 1px solid var(--field-outline);
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.material-field.material-static > span {
  top: 0;
  font-size: 12px;
  background: var(--field-surface, #000);
}
.plan-preview-set { margin-block: 14px; }
.plan-preview-metrics {
  display: grid;
  grid-auto-columns: minmax(0,1fr);
  grid-auto-flow: column;
  align-items: start;
  gap: 7px;
}
.plan-preview-set .material-static { min-width: 0; margin: 0; }
.plan-preview-set .material-static > span { left: 4px; }
.plan-preview-set .material-static-value { padding-inline: 8px; }
.plan-preview-metrics .material-static-value { justify-content: center; text-align: center; }
.plan-preview-set-note { margin-top: 12px; }
.plan-preview-set-note .material-static-value { white-space: pre-wrap; }
:is(.plan-preview-meta, .recorded-exercise-rest) {
  display: flex;
  align-items: start;
  gap: 8px;
  margin-block: 8px;
}
:is(.plan-preview-meta, .recorded-exercise-rest) svg { width: 18px; height: 18px; flex: 0 0 18px; }
:is(.plan-preview-meta, .recorded-exercise-rest) span { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.recorded-exercise-meta { display: flex; min-width: 0; align-items: center; gap: 7px; }
.recorded-exercise-meta .recorded-note-icon { flex: 0 0 36px; min-height: 36px; }
.recorded-exercise-rest { align-items: center; color: var(--muted); font-size: 13px; }
.plan-preview-heading { align-items: start; }
.plan-preview-heading-text { min-width: 0; }
.exercise-heading-metadata p { margin: 4px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.routine-view-actions { margin-top: 0; }
.routine-unit-exercises { margin-top: 16px; }
.routine-unit-exercises button { margin-top: 5px; }
#sheet:has(.entity-actions) { background: #171c1f; color: #f3f5f7; --danger: #ff8592; }
#sheet:has(.entity-actions) #sheet-title { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
#sheet:has(.entity-actions) .grab { background: #858b91; }
.entity-actions { display: grid; border-radius: 14px; background: #262d34; }
.entity-menu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: var(--action-height);
  padding: 8px 13px;
  border-color: transparent;
  border-radius: 0;
  color: inherit;
  font-size: var(--action-font-size);
  font-weight: 450;
  text-align: left;
}
.entity-menu-row:first-child { border-start-start-radius: 14px; border-start-end-radius: 14px; }
.entity-menu-row:last-child { border-end-start-radius: 14px; border-end-end-radius: 14px; }
.entity-menu-row svg { width: 19px; height: 19px; flex: 0 0 19px; }
.entity-menu-row:not(:disabled):hover { background: #ffffff10; }
.entity-menu-row:focus-visible { outline-offset: -3px; }
.entity-menu-row:disabled { border-color: transparent; opacity: .62; }
.entity-actions > .entity-menu-row + .entity-menu-row { position: relative; }
.entity-actions > .entity-menu-row + .entity-menu-row::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 1px;
  background: #383f47;
  pointer-events: none;
}
html:has(.workout-overlay) { overflow: hidden; overscroll-behavior: none; }
#app:has(> .workout-overlay.has-adjusted-viewport) > [inert]:not(.workout-overlay) { visibility: hidden; }
.workout-overlay {
  position: fixed;
  top: var(--workout-overlay-top,0);
  left: 0;
  right: 0;
  z-index: 25;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  height: var(--workout-overlay-height,100dvh);
  background: #000;
  overflow: hidden;
}
.workout-overlay:focus { outline: none; }
.workout-overlay.has-summary { grid-template-rows: auto auto minmax(0,1fr); }
.workout-overlay.opening { animation: workout-overlay-enter .24s cubic-bezier(.2,.8,.2,1) both; }
.workout-overlay.closing { animation: workout-overlay-exit .2s ease-in both; }
@keyframes workout-overlay-enter { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes workout-overlay-exit { to { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .workout-overlay:is(.opening,.closing) { animation: none; }
}
.workout-overlay-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block-end: calc(100px + env(safe-area-inset-bottom));
}
#sheet.workout-entry-sheet {
  z-index: 26;
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--card);
}
.workout-entry-scroll {
  max-height: min(76dvh,var(--workout-entry-available,76dvh));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 9px 18px calc(18px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}
.workout-entry-scroll::-webkit-scrollbar { display: none; }
#sheet.workout-entry-sheet, .workout-compact-dock {
  --workout-dock-footprint: calc(8px + env(safe-area-inset-bottom));
}
body:has(#sheet[open].workout-entry-sheet) .workout-overlay-scroll {
  padding-bottom: var(--workout-entry-height,min(50dvh,340px));
}
.workout-overlay-summary {
  width: min(100%,540px);
  margin-inline: auto;
  padding: 0 20px;
}
:is(.workout-overlay, .exercise-picker, .routine-editor) .site-header-row {
  grid-template-columns: minmax(70px,1fr) minmax(0,2.5fr) minmax(70px,1fr);
}
.workout-overlay:not(.has-summary) .site-header-row {
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  grid-template-rows: minmax(44px,auto);
}
.workout-overlay .site-header-row:has(.live-workout-finish) {
  grid-template-columns: minmax(44px,1fr) minmax(0,max-content) minmax(max-content,1fr);
}
.site-header-row .workout-minimize, .detail-back.workout-header-back {
  border: 1px solid var(--button-outline,#77747f);
  background: var(--card);
}
:root { --header-back-foreground: #f7f5f5; }
.detail-back.workout-header-back { color: var(--header-back-foreground); }
.site-header-row .workout-finish-button {
  width: auto;
  margin: 0;
  padding-inline: 14px;
}
.site-header-row .workout-athlete-switch {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0;
}
.site-header-row :is(.workout-athlete-switch, .picker-title) {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.site-header-row .workout-athlete-switch { font-size: 1.125rem; }
.site-header-row:has(.workout-athlete-switch) { grid-template-rows: minmax(44px,auto); }
.workout-athlete-switch span { overflow-wrap: anywhere; }
.workout-athlete-switch svg { flex: 0 0 16px; width: 16px; height: 16px; transform: rotate(-90deg); }

.workout-overlay .workout-compact-dock {
  position: absolute;
  display: block;
  bottom: 0;
  inset-inline: 0;
  z-index: 3;
  width: min(100%,540px);
  height: var(--workout-dock-footprint);
  margin-inline: auto;
  border: 0;
  background: var(--card);
  box-shadow: 0 -8px 24px #0007;
}
.workout-overlay.has-summary:has(:is(.workout-set-note,.workout-exercise-notes) textarea:focus) {
  grid-template-rows: auto auto minmax(0,1fr) auto;
}
.workout-overlay:has(:is(.workout-set-note,.workout-exercise-notes) textarea:focus) .workout-overlay-scroll {
  grid-row: 3;
}
.workout-overlay:has(:is(.workout-set-note,.workout-exercise-notes) textarea:focus) .workout-compact-dock {
  position: relative;
  inset: auto;
  grid-row: 4;
}
.workout-overlay.has-short-note-viewport .workout-overlay-summary { display: none; }
.workout-set-note-entry { display: flow-root; }
.workout-overlay:has(.workout-set-note:not([hidden])) .workout-compact-dock { display: none; }
.workout-overlay.has-short-note-viewport .workout-set-note-entry {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
}
.workout-overlay.has-short-note-viewport .workout-set-note-entry .material-field { margin: 0; }
.workout-overlay.has-short-note-viewport .workout-set-note-entry button { padding-inline: 10px; white-space: nowrap; }
body:has(#sheet[open].workout-entry-sheet) .workout-compact-dock { display: none; }
.workout-overlay .workout-overlay-scroll main { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.workout-keypad-toggle {
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 1;
  inset: auto auto 100% 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 30px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 30px 30px 0 0;
  background: var(--card);
  color: #fff;
}
.workout-keypad-toggle::after { content: ''; position: absolute; inset: 0 0 -14px; }
.workout-keypad-toggle svg { width: 24px; height: 24px; transform: rotate(90deg); }
.workout-keypad-toggle[aria-expanded="true"] svg { transform: rotate(-90deg); }
#sheet.workout-entry-sheet .sheet-handle { display: none; }
.workout-rest-controls { margin-block: 0 5px; }
.rest-timer-actions { display: grid; grid-template-columns: 1fr minmax(54px,1fr) 1fr 1fr; align-items: center; gap: 6px; }
.rest-timer-actions .rest-countdown {
  display: grid;
  place-items: center;
  padding-inline: 4px;
  border-color: transparent;
  color: inherit;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.rest-timer-actions .rest-countdown[aria-pressed="true"] { color: #ffd055; }
.rest-countdown > * { grid-area: 1 / 1; }
.rest-countdown svg { width: 20px; height: 20px; visibility: hidden; }
.rest-countdown.show-pause strong { visibility: hidden; }
.rest-countdown.show-pause svg { visibility: visible; }
:is(.workout-entry-sheet,.workout-compact-dock) [data-rest-progress] {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 4px;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: #ffffff29;
}
:is(.workout-entry-sheet,.workout-compact-dock) [data-rest-progress]::-webkit-progress-bar { background: #ffffff29; }
:is(.workout-entry-sheet,.workout-compact-dock) [data-rest-progress]::-webkit-progress-value { background: var(--accent); }
:is(.workout-entry-sheet,.workout-compact-dock) [data-rest-progress]::-moz-progress-bar { background: var(--accent); }
[data-rest-progress][hidden] { display: none; }
.rest-timer-actions button { padding: 6px 8px; font-size: 14px; }
.rest-timer-actions [data-action="skip"] { font-size: var(--action-font-size); }
.workout-summary {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
}
:is(.workout-overlay-summary,.workout-history-review) .workout-summary.card {
  margin: 0;
  padding: 3px 0 7px;
  border: 0;
  border-bottom: 1px solid #ffffff1e;
  border-radius: 0;
  background: transparent;
}
.workout > h1,.workout-history-review > h1 { margin-bottom: 8px; }
.workout-history-review.recorded-workout-readonly > h1,
.recorded-workout-readonly .recorded-workout-heading h1 { font-size: 1.125rem; }
.recorded-workout-readonly .recorded-workout-heading { display: flex; align-items: flex-start; gap: 8px; }
.recorded-workout-readonly .recorded-workout-heading h1 { flex: 1; min-width: 0; margin-bottom: 8px; overflow-wrap: anywhere; }
.recorded-workout-readonly .recorded-workout-edit-icon svg { width: 22px; height: 22px; }
.workout-overlay.has-summary .workout > #workout-overlay-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}
.workout-summary dl {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px 8px;
  margin: 0;
}
.workout-summary dt { color: var(--muted); font-size: 13px; }
.workout-summary dd { margin: 3px 0 0; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.workout-muscles-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 4px;
  border-color: transparent;
  border-radius: 10px;
  font-size: 12px;
}
.workout-muscles-button:is(:hover,:focus-visible) { color: var(--accent); }
.workout-muscle-figures { display: flex; justify-content: center; gap: 8px; }
.workout-muscle-figures figure { margin: 0; text-align: center; }
.workout-muscle-figures svg { display: block; width: 32px; height: 70px; }
.workout-muscle-figures figcaption { color: var(--muted); font-size: 10px; }
:is(.workout-summary,.workout-finish-summary) .workout-muscle-figures { gap: 3px; }
:is(.workout-summary,.workout-finish-summary) .workout-muscle-figures svg { width: 18px; height: 38px; }
:is(.workout-summary,.workout-finish-summary) .workout-muscle-figures figcaption { display: none; }
.workout-muscles-details .workout-muscle-figures { gap: 20px; margin-bottom: 16px; }
.workout-muscles-details svg { width: 70px; height: 154px; }
.workout-muscles-details figcaption { font-size: 13px; }
.workout-branded-figure { width: min(100%,335px); margin: 0 auto 14px; }
.workout-branded-canvas {
  position: relative;
}
.workout-branded-canvas img { display: block; width: 100%; height: auto; filter: url(#workout-character-key); }
.workout-branded-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.workout-map-region.primary { fill: var(--accent); fill-opacity: .56; }
.workout-map-region.secondary { fill: #8d65db; fill-opacity: .48; }
.body-outline { fill: #34343d; stroke: #77747f; stroke-width: 1; }
.body-region { fill: #474752; stroke: #34343d; stroke-width: .6; }
.body-region.primary { fill: var(--accent); }
.body-region.secondary { fill: #b6a1e9; }
.workout-muscle-key { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 100%; }
.workout-muscle-key.primary { background: var(--accent); }
.workout-muscle-key.secondary { background: #b6a1e9; }
.workout-muscle-breakdown { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
.workout-muscle-breakdown :is(th,td) { padding: 7px 0; border-bottom: 1px solid #ffffff18; }
.workout-muscle-breakdown th:first-child { text-align: left; }
.workout-muscle-breakdown :not(:first-child):is(th,td) { text-align: right; padding-left: 8px; font-variant-numeric: tabular-nums; }
.workout-muscle-breakdown thead th,.workout-muscle-legend { color: var(--muted); font-size: 13px; }
.workout-muscle-legend { display: flex; justify-content: center; gap: 16px; margin-block: 12px 6px; }
.workout-muscles-details > p { margin-bottom: 8px; }
#sheet:has(.workout-muscles-details) { scrollbar-width: none; }
#sheet:has(.workout-muscles-details)::-webkit-scrollbar { display: none; }
.workout-rest-controls[hidden] { display: none; }
.is-reordering-routines { overflow-anchor: none; }
.is-reordering-routines .routine-card:not(.is-reorder-selected) { opacity: .4; }
.routine-card.is-reorder-selected {
  position: relative;
  z-index: 1;
  border-color: var(--accent);
  background: var(--card);
  touch-action: none;
  user-select: none;
}
.routine-card.is-dragging { z-index: 4; }
.routine-reorder-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.routine-reorder-tools button { padding: 6px 9px; }
.routine-reorder-tools button:not(.routine-drag-handle) { font-size: var(--action-font-size); }
.routine-reorder-tools .routine-drag-handle {
  display: grid;
  place-items: center;
  width: 44px;
  padding: 0;
  cursor: grab;
}
.is-dragging .routine-drag-handle { cursor: grabbing; }
.routine-drag-handle svg { width: 20px; height: 20px; }
.history-workout-link:is(:hover,:focus-visible) {
  border-color: var(--accent);
}
.workout-history-actions { display: grid; grid-template-columns: minmax(0,1fr); }
.workout-history-actions [data-history-action="delete"] { justify-content: center; }
.workout-history-actions button.selector.selector-compact[data-history-action="edit"]:not(:disabled,:hover,:focus-visible,:active) {
  color: #fff;
}
.workout-history-actions button.selector.selector-compact[data-history-action="delete"]:not(:disabled):is(:hover,:focus-visible,:active) {
  background: #34262e;
  border-color: var(--danger);
  color: var(--danger);
}
.workout-history-actions button.selector.selector-compact[data-history-action="delete"]:not(:disabled):active {
  background: #503039;
}
.workout-history-actions button[data-history-action="delete"]:focus-visible,
body:has(.workout-history-review) #delete-training-item button.primary.danger:focus-visible {
  outline-color: var(--danger);
}
.history-delete-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.workout-history-review ol {
  margin: 0;
  padding-inline-start: 0;
  list-style: none;
}
.workout-history-review li + li { margin-top: 4px; }
.workout-history-review .recorded-set-row {
  display: grid;
  grid-template-columns: 30px 38px repeat(3,var(--workout-measure-width)) 38px;
  gap: 6px;
  min-height: 36px;
  align-items: center;
  text-align: center;
  justify-content: start;
}
.workout-history-review .recorded-set-row[data-recorded-fields="1"] {
  grid-template-columns: 30px 38px repeat(2,var(--workout-measure-width)) 38px;
}
.recorded-set-row .workout-last-eye { width: 100%; min-height: 36px; }
.recorded-set-row .set-note-button { min-height: 36px; padding: 0; }
@media (min-width: 480px) {
  .set-row.live-set-row {
    grid-template-columns: 30px 40px repeat(2,var(--workout-measure-width)) minmax(88px,1fr) 44px;
  }
  .set-row.live-set-row-2 {
    grid-template-columns: 30px 40px repeat(3,var(--workout-measure-width)) minmax(88px,1fr) 44px;
  }
  .workout-history-review .recorded-set-row {
    grid-template-columns: 30px 38px repeat(3,var(--workout-measure-width)) minmax(88px,1fr);
  }
  .workout-history-review .recorded-set-row[data-recorded-fields="1"] {
    grid-template-columns: 30px 38px repeat(2,var(--workout-measure-width)) minmax(88px,1fr);
  }
  .set-note-heading { text-align: start; padding-inline-start: 5px; }
  :is(.live-set-row,.recorded-set-row) .set-note-button {
    display: flex;
    justify-content: start;
    min-width: 0;
    gap: 5px;
    padding-inline: 5px;
  }
  .set-note-button svg { flex: 0 0 22px; width: 22px; height: 22px; }
  .live-exercise .set-note-button svg { flex-basis: 30px; }
  .set-note-preview {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.workout-history-review [data-recorded-readonly] .recorded-set-row {
  grid-template-columns: 30px 32px repeat(3,minmax(0,var(--workout-measure-width))) 30px;
  gap: 4px;
}
.workout-history-review [data-recorded-readonly] .recorded-set-row[data-recorded-fields="1"] {
  grid-template-columns: 30px 32px repeat(2,minmax(0,var(--workout-measure-width))) 30px;
}
.workout-history-review [data-recorded-readonly] .recorded-set-row .set-note-heading { text-align: center; padding-inline-start: 0; }
/* Read-only rows reuse Live's columns and fields. Static RPE/completion and
   absent-note cells need the same layout as their native-button counterparts. */
.recorded-workout-readonly .recorded-live-set-row > .live-rpe-cell,
.recorded-workout-readonly .recorded-live-set-row > .check {
  display: grid;
  place-items: center;
}
.recorded-workout-readonly .recorded-live-set-row > .check {
  border: 1px solid var(--button-outline,#77747f);
  font-size: 16px;
  font-weight: 650;
}
.recorded-workout-readonly .recorded-live-set-row > .recorded-no-note { min-height: 44px; }
.recorded-workout-readonly .workout-field-cell > span.recorded-readonly-measurement {
  display: flex;
  align-items: center;
  justify-content: center;
}
.recorded-set-identity { display: grid; min-width: 0; }
.recorded-set-identity > [hidden], .recorded-set-identity .recorded-set-number[hidden] { display: none; }
.recorded-pr:not([hidden]) {
  display: grid; place-items: center; min-width: 0; min-height: 36px; padding: 0;
  border-color: transparent; background: transparent; color: #ffd36b;
}
.recorded-pr svg { width: 20px; height: 20px; }
.recorded-pr:hover { background: #ffd36b26; }
.record-sheet-list { padding-inline-start: 20px; }
.record-sheet-list li { margin-block: 8px; overflow-wrap: anywhere; }
.record-sheet-list time { color: var(--muted); }
.recorded-no-note { display: grid; place-items: center; color: var(--muted); opacity: .5; }
.recorded-no-note svg { width: 20px; height: 20px; }
.workout-history-review .recorded-note-icon { color: var(--accent); }
.workout-history-review .recorded-set-row .recorded-note-icon { justify-content: center; }
.recorded-saved-set-note { font-size: 13px; }
.recorded-exercise-note p, .recorded-saved-set-note {
  margin: 6px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.workout-history-review .recorded-set-labels {
  min-height: 26px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.recorded-set-row :is(.recorded-set-number,.recorded-measurement) {
  display: grid;
  place-items: center;
  min-height: 30px;
  padding-inline: 3px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.recorded-set-row input.recorded-measurement {
  width: 100%;
  min-height: 36px;
  padding: 0 4px;
  text-align: center;
  font-size: 16px;
}
.recorded-set-row input.recorded-measurement:focus { border-color: var(--accent); }
.recorded-set-row input:is([data-history-compact="time"],[data-history-compact="sprint"]):not(:focus),
.recorded-workout-readonly input.recorded-readonly-compact,
.live-set-row input[data-duration][data-compact-measurement]:not(:focus) {
  padding-inline: 1px;
  font-size: clamp(11.5px,3.3vw,14px);
}
.recorded-set-note-field {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 6px;
  margin-block: 3px 8px;
  color: var(--muted);
  font-size: 12px;
}
.recorded-set-note > span { margin-right: 7px; color: var(--muted); font-size: 12px; }
.recorded-set-note-field input {
  min-height: 34px;
  background: #101114;
  border: 1px solid #676973;
  border-radius: 5px;
}
.workout-correction-actions { margin-top: 12px; }
.workout-correction-actions button { margin: 0; }

.live-exercise-how-to h3 { margin: 3px 0 10px; overflow-wrap: anywhere; }
.exercise-instruction-art { display: block; width: 100%; height: min(31dvh, 260px); object-fit: contain; margin: 0 auto 12px; }
.exercise-instruction-steps { margin: 0; padding-inline-start: 22px; }
.exercise-instruction-steps li { margin-block: 8px; overflow-wrap: anywhere; }


.workout-finish h1 { margin-block: 8px 16px; }
.workout-finish-summary { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; margin: 0 0 16px; }
.workout-finish-summary dl { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 0; }
.workout-summary[data-recorded-summary] dl { grid-template-columns: repeat(4,minmax(0,1fr)); }
.workout-finish-summary dt { color: var(--muted); font-size: 13px; }
.workout-finish-summary dd { margin: 4px 0 0; font-variant-numeric: tabular-nums; font-weight: 650; }
#finish-workout { display: grid; gap: 10px; }
#finish-workout .material-field { margin: 0; }
.workout-finish-date, .workout-finish-switches > label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; text-align: start; }
.workout-finish-date { width: 100%; background: transparent; }
.workout-finish-date [data-finish-date] { color: var(--muted); text-align: end; }
.workout-finish-switches > label { cursor: pointer; }
.workout-finish-switches > label:has(input:disabled) { color: var(--muted); cursor: default; }
.workout-finish-switches input[role="switch"] {
  appearance: none; flex: 0 0 42px; position: relative; min-height: 0; height: 24px; margin: 0;
  padding: 0; background: var(--card); border: 1px solid var(--button-outline,#77747f); border-radius: 999px;
}
.workout-finish-switches input[role="switch"]::before {
  content: ""; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; background: #fff; border-radius: 50%;
}
.workout-finish-switches input[role="switch"]:checked { background: var(--accent); border-color: var(--accent); }
.workout-finish-switches input[role="switch"]:checked::before { left: 21px; }
.workout-finish-switches input[role="switch"]:disabled { opacity: .45; }
.workout-finish-switches input[role="switch"]:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.workout-finish-omitted { margin: 0; font-size: 13px; }
.workout-history-review :is(.recorded-workout-status,.recorded-set-status) { color: var(--workout-warning); }
.workout-history-review .recorded-workout-status { margin-top: -4px; }
.workout-history-review .recorded-set-status {
  margin: 3px 0 0;
  font-size: .8125rem;
}
.workout-history-review .recorded-imperial-parts {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 3px;
  min-width: 0;
}
.workout-history-review .recorded-imperial-parts input {
  min-width: 0;
  width: 100%;
}
.workout-finish-actions > .primary { margin: 0; }
.workout-finish-actions > button.danger { margin: 4px 0 0; background: transparent; border-color: transparent; }

.live-set-identity { display: grid; min-width: 0; }
.live-set-identity > [hidden] { display: none; }
.live-set-pr:not([hidden]) {
  display: grid; place-items: center; min-width: 0; min-height: 30px; padding: 0;
  border-color: transparent; background: transparent; color: #ffd36b;
}
.live-set-pr svg { width: 20px; height: 20px; }
.live-set-pr:hover { background: #ffd36b26; }
.record-set-heading { display: flex; justify-content: center; align-items: center; gap: 7px; margin-bottom: 13px; }
.record-set-heading p { min-width: 0; margin: 0; color: #f6f4f1; overflow-wrap: anywhere; text-align: center; }
.record-set-medal { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #ffd36b24; color: #ffd36b; }
.record-set-medal svg { width: 15px; height: 15px; }
.exercise-detail .exercise-instruction-art { height: min(34dvh, 300px); margin-bottom: 16px; }
.live-record-list { display: grid; gap: 1px; padding: 0; overflow: hidden; border-radius: 12px; background: #ffffff24; }
.live-record-list li {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,auto); gap: 3px 12px;
  margin: 0; padding: 10px 12px; background: #22242a;
}
.live-record-list li > div { display: grid; gap: 2px; align-content: start; }
.live-record-list li > div:nth-child(2) { text-align: end; }
.live-record-list span { color: var(--muted); font-size: 13px; }
.live-record-list .live-record-improvement { color: #ffd36b; }
.live-record-previous { grid-column: 1 / -1; }

.personal-best-list > li {
  display: grid; grid-template-columns: 16px minmax(0,1fr) minmax(0,55%);
  align-items: center; gap: 8px; padding: var(--sheet-group-row-padding);
}
.personal-best-list li > svg { width: 16px; height: 16px; color: #ffd36b; }
.personal-best-metric { text-align: start; overflow-wrap: anywhere; }
.personal-best-list li > .personal-best-value { min-width: 0; text-align: end; gap: 2px; font-variant-numeric: tabular-nums; }
.personal-best-result { display: flex; flex-wrap: wrap; justify-content: end; align-items: baseline; gap: 2px 6px; }
.personal-best-comparison { overflow-wrap: anywhere; }

.workout-pr-metric { position: relative; }
.workout-pr-label { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.workout-pr-label svg { flex: 0 0 13px; width: 13px; height: 13px; color: #ffd36b; }
button.workout-pr-label, button.workout-pr-label:disabled {
  min-height: 0; padding: 0; background: transparent; border: 0; color: inherit; font: inherit;
}
button.workout-pr-label::after { content: ""; position: absolute; inset: 0; }
button.workout-pr-label:not(:disabled):is(:hover,[aria-pressed="true"]) { color: #f6f4f1; }
.workout-history-review[data-highlight-records] .recorded-set-row[data-personal-record-set],
.workout-history-review.recorded-workout-readonly[data-highlight-records] .recorded-live-set-row[data-personal-record-set] {
  background: #29292e; border-radius: 6px;
}
#sheet:has(.sheet-grouped-rows, .record-sheet-content) { background: #27262e; }
.sheet-grouped-rows {
  --sheet-group-row-padding: 8px 12px;
  --sheet-group-row-height: 44px;
  --sheet-group-divider: var(--button-outline, #77747f);
  display: grid;
  gap: 1px;
  margin: 0 0 9px;
  padding: 0;
  border: 1px solid var(--sheet-group-divider);
  border-radius: 12px;
  list-style: none;
  overflow: hidden;
  background: var(--sheet-group-divider);
}
.sheet-grouped-rows > li {
  min-height: var(--sheet-group-row-height);
  min-width: 0;
  margin: 0;
  background: #17181c;
}
.workout-athlete-options .selector {
  min-height: var(--sheet-group-row-height);
  margin: 0;
  padding: var(--sheet-group-row-padding);
  border: 0;
  border-radius: 0;
  background: transparent;
}
.workout-athlete-options .selector[aria-pressed="true"] { color: #fff; }
.workout-athlete-options .selector:not(:disabled):is(:hover,:focus-visible) { background: #24252a; }
.workout-athlete-options .selector:not(:disabled):active { background: #303138; }
.workout-athlete-options .selector:focus-visible { outline-offset: -3px; }

/* Switcher-only athlete photos; the white circle belongs to the avatar. */
.athlete-switcher-row .athlete-switcher-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  border: 1px solid #fff;
  border-radius: 50%;
  overflow: hidden;
}
.athlete-switcher-row .athlete-switcher-avatar > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.athlete-switcher-row .athlete-switcher-avatar > [hidden] { display: none; }
.athlete-switcher-row .athlete-switcher-identity {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}
.athlete-switcher-row .athlete-switcher-username {
  white-space: normal;
  overflow-wrap: anywhere;
}

.exercise-controls { margin-block: 6px 9px; }
.exercise-control-row { display: flex; align-items: center; gap: 8px; }
.exercise-control-row > .exercise-control {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; margin: 0; padding: 0 10px;
  border: 1px solid #676973; border-radius: 5px; background: #101114; color: #fff;
  font: inherit; font-size: 14px;
}
.exercise-control-row > .exercise-control svg { flex: 0 0 20px; width: 20px; height: 20px; }
.exercise-control-row > .exercise-note-pin { width: 44px; padding: 0; }
.exercise-control-row > .exercise-note-pin.has-note { color: var(--accent); }
.exercise-control-row > .exercise-control:not(:disabled):hover { background: #22232a; border-color: var(--accent); }
.exercise-control-row > .exercise-control:not(:disabled):active { background: #282a34; }
.exercise-control-row > .exercise-control:disabled { color: var(--muted); }
.exercise-pinned-notes:empty { display: none; }
.exercise-pinned-notes p { margin: 6px 0 0; color: #fff; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.exercise-inline-note { margin-block: 6px 12px; }
.exercise-inline-note > .material-field { margin: 6px 0; }
.exercise-inline-note textarea { width: 100%; }

.workout-imperial-fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 5px;
  margin-bottom: 6px;
}
.workout-imperial-fields > button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-radius: 8px;
  background: var(--rpe-control-surface);
  color: #fff;
  padding: 6px 9px;
  font-size: 13px;
}
.workout-imperial-fields > button[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.workout-imperial-fields [data-imperial-value] {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
:root .workout-set-actions-strip > button.danger:not(:disabled) {
  background: #c13445;
  border-color: #c13445;
  color: #fff;
}
:root .workout-set-actions-strip > button.danger:not(:disabled):hover {
  box-shadow: inset 0 0 0 999px #00000013;
}
:root .workout-set-actions-strip > button.danger:not(:disabled):active {
  box-shadow: inset 0 0 0 999px #00000026;
}
.workout-set-actions-strip > button.danger:focus-visible {
  outline-color: var(--danger);
}

.routine-editor {
  grid-template-rows: auto minmax(0,1fr);
}
.routine-editor > .site-header {
  z-index: 3;
}
.routine-editor > main.routine-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--exercise-page-gap);
  padding-block: var(--exercise-page-gap);
  padding-inline: var(--exercise-page-left) var(--exercise-page-right);
}
.routine-editor .routine-plan-exercise {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--exercise-page-gap);
  padding: var(--exercise-page-gap);
}
.routine-editor .routine-plan-exercise > * {
  margin-block: 0;
}
.routine-builder-summary {
  display: grid;
  align-content: center;
  gap: var(--exercise-page-gap);
  min-height: 54px;
  padding-block: var(--exercise-page-gap);
  padding-inline: var(--exercise-page-left) var(--exercise-page-right);
  border-bottom: 1px solid #ffffff1e;
}
.routine-builder-summary :is(.routine-save-hint, .routine-error) { margin: 0; }
.routine-builder-summary .routine-error:empty { position: absolute; }
.routine-builder-summary .material-field {
  margin: 0;
}
.routine-builder-summary .material-field > input[aria-invalid="true"] {
  border-color: var(--danger);
  outline-color: var(--danger);
}
.routine-builder-summary .material-field:has(input[aria-invalid="true"]) > span {
  color: var(--danger);
}
.routine-builder [data-routine-metric-count] {
  --routine-metric-count: 1;
}
.routine-builder [data-routine-metric-count="2"] {
  --routine-metric-count: 2;
}
.routine-builder .routine-set-row {
  grid-template-columns: 30px repeat(var(--routine-metric-count), minmax(0,1fr));
}
.routine-builder [data-removable-sets] .routine-set-row {
  grid-template-columns: 30px repeat(var(--routine-metric-count), minmax(0,1fr)) 44px;
}
.routine-builder .routine-remove-set {
  color: #f7f5f5;
}
@media (max-width: 380px) {
  .routine-builder .routine-set-row {
    grid-template-columns: 26px repeat(var(--routine-metric-count), minmax(0,1fr));
  }
  .routine-builder [data-removable-sets] .routine-set-row {
    grid-template-columns: 26px repeat(var(--routine-metric-count), minmax(0,1fr)) 36px;
  }
}

.routine-builder .routine-column-unit {
  width: 100%;
  min-height: 24px;
  padding: 0 2px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
}
.routine-builder .routine-set-row input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.routine-save-hint {
  margin: 5px 0 0;
  font-size: 12px;
}
.routine-save-hint:empty {
  display: none;
}
.routine-builder .routine-set-row input[aria-invalid="true"] {
  border-color: var(--danger);
  outline-color: var(--danger);
}
.routine-rest-form #rest-help {
  text-align: center;
}
.routine-rest-picker {
  display: none;
}
@media (hover: none) and (pointer: coarse) {
  .routine-rest-text {
    display: none;
  }
  .routine-rest-picker {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    text-align: center;
    --rest-wheel-row: 36px;
  }
  .routine-rest-wheel-column > span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 13px;
  }
  .routine-rest-wheel {
    height: calc(5 * var(--rest-wheel-row));
    padding-block: calc(2 * var(--rest-wheel-row));
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    border: 1px solid var(--field-outline);
    border-radius: 8px;
    font-variant-numeric: tabular-nums;
  }
  .routine-rest-wheel:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  .routine-rest-wheel[aria-disabled="true"] {
    opacity: .64;
    overflow-y: hidden;
  }
  .routine-rest-option {
    display: grid;
    place-items: center;
    height: var(--rest-wheel-row);
    scroll-snap-align: center;
    color: var(--muted);
  }
  .routine-rest-option[aria-selected="true"] {
    color: #fff;
    background: #131418;
    font-weight: 700;
  }
}


.routine-exercise-picker .avatar-check circle {
  fill: var(--accent);
  stroke: #101114;
}
button.routine-primary-action {
  font-weight: 700;
}
button.routine-primary-action:not(:disabled):hover {
  box-shadow: inset 0 0 0 999px #00000013;
}
button.routine-primary-action:not(:disabled):active {
  box-shadow: inset 0 0 0 999px #00000026;
}
.routine-editor .site-header-row {
  grid-template-rows: minmax(44px,auto);
}


/* Ordinary sheets use one shared gutter; the workout keypad retains its reference geometry. */
dialog:not(.workout-entry-sheet) {
  padding-inline: var(--layout-sheet-gutter);
  padding-bottom: calc(var(--layout-sheet-gutter) + env(safe-area-inset-bottom));
}


/* Keep Train routine previews compact; the complete list remains in View Routine. */
.train-page .routine-card .routine-exercise-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Invalid Save remains an actionable validation control. */
.routine-builder .site-header-row button.text-action.primary.routine-save-validation:not(:disabled) {
  background: #29292e;
  color: #fff;
  border-color: var(--action-border);
}
.workout-keypad-unit {margin:0 0 6px;text-align:center;color:var(--muted);font-size:13px;}
.imperial-unit-conflict {padding:8px 0;font-size:13px;color:var(--muted);}
.imperial-unit-conflict p {margin:0 0 8px;}
.imperial-unit-conflict button {margin:0 8px 8px 0;}

/* Semantic live Finish variant; routine Save and other primary actions retain blue. */
:root { --workout-success: #16A34A; }
.workout-overlay button.text-action.primary.live-workout-finish:not(:disabled) {
  background: #15803D;
  border-color: #fff;
  color: #fff;
}

/* Completed workout actions share one success color. Numeric Next retains its blue variant. */
:root .workout-entry-rail button.rpe-complete:not(:disabled),
:root .live-set-row.checked .check:not(:disabled) {
  background:var(--workout-success);border-color:var(--workout-success);color:#fff;
}
:root .workout-entry-rail button.rpe-complete:not(:disabled):is(:hover,:active),
:root .live-set-row.checked .check:not(:disabled):is(:hover,:active) {
  background:var(--workout-success);border-color:var(--workout-success);color:#fff;
  box-shadow:inset 0 0 0 999px #00000024;
}
/* Finish and its confirmation use the same contrast-safe action variant. */
:root button.text-action.primary[data-confirm-finish]:not(:disabled),
:root button.text-action.primary[data-confirm-finish]:not(:disabled):is(:hover,:active),
:root .workout-overlay button.live-workout-finish:not(:disabled):is(:hover,:active) {
  background:#15803D;border-color:#fff;color:#fff;
}
:root .workout-overlay button.live-workout-finish:not(:disabled):is(:hover,:active) {
  box-shadow:inset 0 0 0 999px #00000024;
}
:root .live-set-row.checked {background:#0D2A19;}
:root .workout > .button-stack > .text-action,
:root .workout-finish-actions > .text-action,
:root .finish-confirm-actions > .text-action {font-weight:700;}
.finish-confirm-divider {border:0;border-top:1px solid var(--border);margin:16px 0;}
.finish-confirm-actions.button-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
:root button.text-action.primary.danger:not(:disabled):is(:hover,:active,:focus-visible),
:root button.text-action.danger:not(:disabled):is(:hover,:active,:focus-visible) {
  background:var(--action-danger,#b42335);border-color:var(--action-danger,#b42335);color:#fff;
}
/* Preserve matching Save/Discard typography against the shared danger variant. */
:root .workout-finish .workout-finish-actions > button.text-action.danger {
  font-weight:700;
}

/* Keep future rows behind the keypad; the active row ends 8px above its collapse handle. */
body:has(#sheet[open].workout-entry-sheet) .workout-overlay-scroll {
  clip-path:inset(0 0 var(--workout-entry-clip,0px) 0);
}
/* Measurement errors are visual outlines with accessible hidden descriptions. */
:root { --workout-warning: #FFD600; --workout-warning-surface: #33260C; }
.workout-field-cell { min-width: 0; display: grid; align-content: center; position: relative; }
.workout-field-cell > :is(input,button) { width: 100%; min-width: 0; }
.workout-field-feedback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.live-set-row .workout-field-cell:has(.workout-field-feedback:not(:empty)) > :is(input,button),
.live-set-row .workout-field-invalid { border-color: var(--workout-warning); box-shadow: inset 0 0 0 1px var(--workout-warning); }
:root .live-set-row.has-workout-warning { background: var(--workout-warning-surface); }
:root .live-set-row .check.workout-set-warning:not(:disabled) { background: var(--workout-warning-surface); color: var(--workout-warning); }
:root .live-set-row .check.workout-set-warning:not(:disabled):is(:hover,:active,:focus-visible) { background: var(--workout-warning-surface); color: var(--workout-warning); }
.workout-set-warning svg { width: 23px; height: 23px; vertical-align: middle; }
.workout-set-warning:focus-visible { outline: 2px solid var(--workout-warning); outline-offset: 2px; }

/* Explicit workout/sign-out actions only; retain existing fills, geometry and state styles. */
:root button.action-white-border {
  border-color: #fff !important;
}

/* Optional workout metadata uses the existing material fields in equal columns. */
.workout-wellness-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.workout-wellness-fields > .material-field {min-width:0;}
.recorded-workout-wellness {margin-block:var(--layout-form-gap,18px);}
.recorded-workout-wellness > .material-field {margin:0;}
.notification-ownership p {overflow-wrap:anywhere;}

/* Shared neutral activity rows: actor on the left, message and time on the right. */
.notification-follow-row {display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;align-items:center;padding:14px 0;}
.notification-follow-row + .notification-follow-row {margin-top:0;}
.notification-avatar {position:relative;display:grid;place-items:center;width:48px;height:48px;overflow:hidden;border-radius:50%;background:var(--card);color:var(--muted);}
.notification-avatar svg {width:28px;height:28px;}
.notification-avatar img {position:absolute;inset:0;width:48px;height:48px;object-fit:cover;}
.notification-content {min-width:0;overflow-wrap:anywhere;}
.notification-content p {margin:0;color:inherit;line-height:1.45;}
.notification-content a {color:inherit;text-decoration:none;}
.notification-content a:hover {text-decoration:underline;}
.notification-content time {display:inline;margin-left:4px;white-space:nowrap;font-size:12px;line-height:1.5;color:var(--muted);}

