body {
  --wo-strength: var(--blue-500);
  --wo-amrap: var(--amber-500);
  --wo-run: var(--green-500);
}

.wo-screen .fl-day-name::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 3px auto 0;
  border-radius: 50%;
  background: transparent;
}

.wo-screen .fl-day--today .fl-day-name::after {
  background: var(--text);
}

.wo-screen .wo-day--done .fl-day-name::after {
  background: var(--wo-run);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: wo-day-pulse 2s ease-in-out infinite;
}

@keyframes wo-day-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .wo-screen .wo-day--done .fl-day-name::after {
    animation: none;
  }
}

.wo-day {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
}

.wo-day .fl-tile {
  margin-top: 0;
}

.wo-continue {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--text);
  color: var(--bg);
  font-size: var(--type-label);
  font-weight: 700;
  text-decoration: none;
}

.wo-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-800);
  color: var(--text);
  flex-shrink: 0;
}

.wo-thumb--strength { background: var(--wo-strength); color: var(--accent-text); }
.wo-thumb--amrap,
.wo-thumb--tabata { background: var(--wo-amrap); color: #000; }
.wo-thumb--run { background: var(--wo-run); color: #000; }
.wo-thumb--empty { background: var(--text); color: var(--bg); }

.wo-card--live {
  border-color: var(--wo-strength);
}

.wo-live {
  display: inline-block;
  margin-left: var(--space-1);
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--wo-strength);
  color: var(--accent-text);
  font-size: var(--type-caption);
  font-weight: 700;
  vertical-align: middle;
  animation: wo-live-pulse 2s ease-in-out infinite;
}

.wo-continue-link {
  color: var(--text);
  font-weight: 700;
}

@keyframes wo-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.wo-rest {
  margin-top: 0;
}

.wo-section-title {
  margin: 0 0 var(--space-3);
  font-size: var(--type-body);
  font-weight: 700;
  color: var(--text);
}

.wo-history {
  padding: 0 var(--space-4) var(--space-6);
}

.wo-history-item {
  margin-bottom: var(--space-2);
  animation: wi-rise 0.5s ease-out calc(0.3s + var(--i, 0) * 45ms) both;
}

.wo-history-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 60px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  color: var(--text);
  text-decoration: none;
}

.wo-swipe .swipe-content {
  display: flex;
}

.wo-history-date {
  width: 84px;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: var(--type-label);
  font-weight: 600;
  color: var(--gray-500);
}

.wo-history-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wo-history-row svg {
  color: var(--gray-500);
  flex-shrink: 0;
}

.wo-start-bar .fl-search-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: var(--type-body);
  text-align: left;
  cursor: pointer;
}

.wo-start-panel {
  padding-bottom: var(--space-4);
}

.wo-start-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 60vh;
  overflow-y: auto;
  padding: 0 var(--space-4);
}

.wo-start-list form {
  display: contents;
}

.wo-start-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 60px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  background: var(--gray-900);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wo-start-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wo-start-manage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  margin: var(--space-3) var(--space-4) 0;
  color: var(--gray-500);
  font-size: var(--type-label);
  font-weight: 600;
  text-decoration: none;
}

.wo-row-chevron {
  color: var(--gray-500);
  flex-shrink: 0;
}

.wo-kinds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.wo-kinds--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wo-kind {
  position: relative;
  display: block;
  cursor: pointer;
}

.wo-kind input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.wo-kind-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 64px;
  padding: var(--space-2);
  border: 2px solid var(--gray-800);
  border-radius: var(--radius-lg);
  background: var(--gray-900);
  color: var(--gray-500);
  font-size: var(--type-label);
  font-weight: 700;
  text-align: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.wo-kind input:checked + .wo-kind-card {
  border-color: var(--text);
  color: var(--text);
}

.wo-kind input:focus-visible + .wo-kind-card {
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.wo-part {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 60px;
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-1);
  border-radius: var(--radius-lg);
  background: var(--gray-900);
}

.wo-part-name {
  flex: 1;
  min-width: 0;
  font-size: var(--type-body);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wo-form .wo-part-input,
.wo-form .wo-part-input:focus {
  width: 52px;
  min-height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
}

.wo-part-x {
  color: var(--gray-500);
}

.wo-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-3);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-md);
  background: var(--gray-900);
  color: var(--text);
  font: inherit;
  font-size: var(--type-input);
}

.wo-logger--amrap {
  padding-bottom: calc(68px + 136px + env(safe-area-inset-bottom, 0px));
}

.wo-amrap-bar {
  position: fixed;
  left: 50%;
  bottom: calc(68px + var(--space-3) + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: calc(100% - 2 * var(--space-4));
  max-width: calc(var(--app-width) - 2 * var(--space-4));
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transform: translateX(-50%);
}

.wo-finish-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--gray-800);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: var(--type-body);
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wo-finish-score {
  margin: 0 0 var(--space-3);
  color: var(--gray-500);
}

.wo-finish-score strong {
  font-size: var(--type-heading);
  color: var(--text);
}

.wo-head-done {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: var(--space-1);
  padding: 1px var(--space-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--wo-run) 16%, transparent);
  color: var(--wo-run);
  font-weight: 700;
}

.wo-settings-card {
  gap: 0;
  margin: var(--space-2) 0 var(--space-3);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  background: var(--gray-900);
}

.wo-settings-field {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  margin: 0;
  padding: 0 var(--space-4);
  color: var(--gray-500);
  font-size: var(--type-body);
  font-weight: 500;
}

.wo-settings-field + .wo-settings-field {
  border-top: 1px solid var(--gray-800);
}

.wo-settings-field input,
.wo-settings-field input:focus {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--text);
  font: inherit;
  font-size: var(--type-input);
  font-weight: 700;
  text-align: right;
}

.wo-settings-field input::-webkit-date-and-time-value {
  text-align: right;
}

.wo-settings form:last-child .fl-more-row {
  border-bottom: none;
}

.wo-delete-session {
  color: var(--danger);
}

.wo-delete-session .fl-more-icon {
  background: var(--danger);
  color: var(--bg);
}

.wo-finish-form {
  display: contents;
}

.wo-finish {
  min-height: 44px;
  padding: 0 var(--space-4);
  border: none;
  border-radius: 10px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font: inherit;
  font-size: var(--type-body);
  font-weight: 700;
  cursor: pointer;
}

.wo-exercise {
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--gray-900);
}

.wo-exercise-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.wo-exercise-title {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-top: var(--space-1);
}

.wo-exercise-remove-form {
  display: contents;
}

.wo-exercise-remove {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: calc(var(--space-2) * -1) calc(var(--space-2) * -1) 0 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--gray-500);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.wo-exercise-remove:active {
  background: var(--gray-800);
  color: var(--danger);
}

.wo-exercise-name {
  font-size: var(--type-body);
  font-weight: 700;
}

.wo-exercise-meta {
  font-size: var(--type-label);
  color: var(--gray-500);
}

.wo-sets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.wo-set {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 64px 56px 44px;
  gap: var(--space-2);
  align-items: center;
  min-height: 44px;
  border-radius: var(--radius-md);
  background: var(--gray-900);
}

.wo-set--head {
  min-height: 20px;
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.wo-set--head span:nth-child(3),
.wo-set--head span:nth-child(4) {
  text-align: center;
}

.wo-set-num {
  font-size: var(--type-label);
  font-weight: 700;
  text-align: center;
}

.wo-set-prev {
  font-size: var(--type-label);
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wo-set .wo-set-input,
.wo-set .wo-set-input:focus {
  width: 100%;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: var(--type-input);
  font-weight: 700;
  text-align: center;
  box-shadow: none;
}

.wo-set-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray-800);
  border-radius: 10px;
  background: var(--bg);
  color: var(--gray-500);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.wo-set-check:active {
  transform: scale(0.92);
}

.wo-set--done .wo-set-input,
.wo-set--done .wo-set-prev,
.wo-set--done .wo-set-num {
  opacity: 0.55;
}

.wo-set--done .wo-set-check {
  border-color: var(--wo-run);
  background: var(--wo-run);
  color: #000;
}

.wo-add-set-form {
  display: block;
  margin-top: var(--space-2);
}

.wo-add-set {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  width: 100%;
  min-height: 44px;
  border: 1px dashed var(--gray-700);
  border-radius: var(--radius-md);
  background: none;
  color: var(--text);
  font: inherit;
  font-size: var(--type-label);
  font-weight: 600;
  cursor: pointer;
}

.wo-amrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

.wo-amrap-hero {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.wo-amrap-clock {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wo-amrap-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.wo-amrap-ring circle {
  fill: none;
  stroke: var(--gray-800);
  stroke-width: 9;
}

.wo-amrap-ring circle:last-child {
  stroke: var(--wo-amrap);
  stroke-linecap: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1s linear;
}

.wo-amrap[data-state="idle"] .wo-amrap-ring circle:last-child {
  stroke: var(--gray-700);
}

.wo-amrap-clock[data-state="over"] .wo-amrap-ring circle:last-child {
  stroke: var(--danger);
}

.wo-amrap-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.wo-amrap-digits {
  font-size: var(--type-title);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.wo-amrap-caption {
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.wo-amrap-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: wi-rise 0.5s ease-out both;
}

.wo-amrap-round-num {
  font-size: var(--type-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.wo-amrap-round-num small {
  font-size: var(--type-heading);
  color: var(--wo-amrap);
  margin-left: 2px;
}

.wo-amrap-live {
  margin-top: var(--space-2);
  font-size: var(--type-title);
  font-weight: 700;
  color: var(--wo-amrap);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.wo-amrap-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.wo-amrap-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  background: var(--gray-900);
}

.wo-amrap-stat-value {
  font-size: var(--type-body);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.wo-splits {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 132px;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-lg);
  background: var(--gray-900);
}

.wo-split {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 44px;
  gap: var(--space-2);
  align-items: center;
  min-height: 24px;
  animation: wo-split-in 0.4s cubic-bezier(0.2, 1, 0.4, 1) calc(var(--i, 0) * 40ms) both;
}

.wo-split--empty {
  display: block;
  font-size: var(--type-label);
  color: var(--gray-500);
  animation: none;
}

.wo-split-num {
  font-size: var(--type-label);
  font-weight: 700;
  color: var(--gray-500);
  text-align: center;
}

.wo-split--live .wo-split-num {
  color: var(--text);
}

.wo-split-track {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--gray-800);
  overflow: hidden;
}

.wo-split-bar {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--gray-600);
  transition: width 0.9s linear;
}

.wo-split--live .wo-split-bar {
  background: linear-gradient(90deg, var(--wo-amrap), #fde68a);
  animation: wo-bar-glow 1.6s ease-in-out infinite;
}

.wo-split--best .wo-split-bar {
  background: var(--wo-run);
}

.wo-split-time {
  font-size: var(--type-label);
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.wo-split--best .wo-split-time {
  color: var(--wo-run);
}

.wo-movements-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wo-movement-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  background: var(--gray-900);
  font-size: var(--type-label);
  font-weight: 600;
}

.wo-movement-chip strong {
  color: var(--wo-amrap);
  font-size: var(--type-label);
}

@keyframes wo-split-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes wo-bar-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

.wo-amrap-actions {
  display: flex;
  gap: var(--space-2);
  width: 100%;
}

.wo-round-form {
  flex: 1;
  display: flex;
  width: 100%;
}

.wo-round-form--side {
  flex: 0 0 56px;
}

.wo-start-btn,
.wo-round-btn--secondary {
  width: 100%;
}

.wo-round-btn--secondary {
  background: var(--gray-900);
  color: var(--text);
}

.wo-round-btn--side {
  background: var(--gray-900);
  color: var(--text);
}

.wo-round-btn--danger {
  color: var(--danger);
}

.wo-undo-round {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--gray-800);
  border-radius: 10px;
  background: var(--gray-900);
  color: var(--text);
  font: inherit;
  font-size: var(--type-label);
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: wi-rise 0.3s ease-out both;
}

.wo-amrap[data-state="idle"] .wo-amrap-ring circle:last-child {
  stroke: var(--gray-700);
}

.wo-round-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex: 1;
  min-height: 56px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font: inherit;
  font-size: var(--type-body);
  font-weight: 700;
  cursor: pointer;
}

.wo-round-btn:disabled {
  opacity: 0.4;
}

.wo-run {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-6);
}

.wo-run-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) 0;
}

.wo-run-digits {
  font-size: var(--type-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.wo-run[data-state="paused"] .wo-run-digits {
  color: var(--gray-500);
}

.wo-run[data-state="running"] .wo-run-digits {
  animation: wo-run-breathe 2s ease-in-out infinite;
}

.wo-run-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.wo-run-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-4) var(--space-2);
  border-radius: var(--radius-lg);
  background: var(--gray-900);
}

.wo-run-stat-value {
  font-size: var(--type-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.wo-run-note {
  margin: 0;
  text-align: center;
  font-size: var(--type-label);
  line-height: 1.5;
  color: var(--gray-500);
}

.wo-time-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.wo-time-field {
  position: relative;
  display: flex;
}

.wo-time-field input {
  flex: 1;
  min-width: 0;
  padding-right: 48px;
  -moz-appearance: textfield;
}

.wo-time-field input::-webkit-outer-spin-button,
.wo-time-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wo-time-field span {
  position: absolute;
  top: 50%;
  right: var(--space-3);
  transform: translateY(-50%);
  pointer-events: none;
}

.wo-logger--run {
  padding-bottom: calc(68px + 136px + env(safe-area-inset-bottom, 0px));
}

@keyframes wo-run-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.wo-library-search {
  padding: 0 var(--space-4) var(--space-3);
}

.wo-groups {
  display: flex;
  gap: var(--space-2);
  padding: 0 var(--space-4) var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
}

.wo-groups::-webkit-scrollbar {
  display: none;
}

.wo-group {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  background: var(--gray-900);
  color: var(--text);
  font-size: var(--type-label);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.wo-group.is-active {
  background: var(--text);
  color: var(--bg);
}

.wo-goals {
  padding: var(--space-4);
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--gray-800);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wo-goals--complete {
  border-color: var(--wo-run);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--wo-run) 40%, transparent), 0 8px 28px color-mix(in srgb, var(--wo-run) 22%, transparent);
  animation: wo-glow 0.9s ease-out;
}

.wo-goals-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.wo-goals-title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--type-body);
  font-weight: 700;
}

.wo-goals--complete .wo-goals-title {
  color: var(--wo-run);
}

.wo-goals-edit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-2);
  border: none;
  background: none;
  color: var(--gray-500);
  font: inherit;
  font-size: var(--type-label);
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wo-goals-bar {
  display: block;
  height: 5px;
  margin: var(--space-2) 0 var(--space-3);
  border-radius: 3px;
  background: var(--gray-800);
  overflow: hidden;
}

.wo-goals-bar > span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--wo-run);
  transition: width 0.6s cubic-bezier(0.2, 1, 0.4, 1);
}

.wo-goal-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.wo-goal-form {
  display: block;
}

.wo-goal {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 56px;
  padding: var(--space-2) var(--space-3);
  border: none;
  border-radius: var(--radius-lg);
  background: var(--gray-900);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wo-goal .wo-thumb {
  width: 36px;
  height: 36px;
}

.wo-goal-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wo-goal-name {
  font-size: var(--type-body);
  font-weight: 700;
}

.wo-goal-pips {
  display: flex;
  gap: 5px;
}

.wo-pip {
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: var(--gray-800);
}

.wo-pip--on {
  background: var(--wo-run);
  animation: wo-pip 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) calc(0.2s + var(--i, 0) * 60ms) both;
}

.wo-goal-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  font-size: var(--type-label);
  font-weight: 700;
  color: var(--gray-500);
  white-space: nowrap;
}

.wo-goal--done .wo-goal-count {
  color: var(--wo-run);
}

.wo-goal--done .wo-goal-name {
  color: var(--gray-500);
}

.wo-weeks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: var(--space-3);
}

.wo-weeks-pips {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.wo-week-pip {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--gray-800);
}

.wo-week-pip--on {
  background: var(--wo-run);
}

.wo-week-pip--now {
  box-shadow: inset 0 0 0 2px var(--gray-600);
}

.wo-week-pip--now.wo-week-pip--on {
  box-shadow: none;
}

.wo-weeks-streak {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--type-label);
  color: var(--gray-500);
}

.wo-goals--complete .wo-weeks-streak {
  color: var(--wo-run);
}

.wo-goals-empty {
  margin: var(--space-2) 0 0;
  font-size: var(--type-label);
  line-height: 1.4;
  color: var(--gray-500);
}

.wo-goals-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-4) var(--space-4) 0;
  text-decoration: none;
}

.wo-goal-settings {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.wo-goal-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 44vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wo-goal-item {
  max-height: 72px;
  opacity: 1;
  transition: max-height 0.22s ease, opacity 0.2s ease, transform 0.22s ease, margin 0.22s ease;
}

.wo-goal-item.is-adding {
  max-height: 0;
  opacity: 0;
  transform: translateY(8px);
}

.wo-goal-item.is-removing {
  max-height: 0;
  margin-top: calc(-1 * var(--space-2));
  opacity: 0;
  transform: translateX(-32px);
  overflow: hidden;
  pointer-events: none;
}

.wo-goal-setting {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 56px;
  padding: 0 var(--space-2) 0 var(--space-1);
  border-radius: var(--radius-lg);
  background: var(--gray-900);
}

.wo-goal-setting .rf-ingredient-handle {
  color: var(--gray-500);
  touch-action: none;
}

.wo-goal-setting-name {
  flex: 1;
  min-width: 0;
  font-size: var(--type-body);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wo-goal-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--gray-800);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wo-goal-settings .wo-goal-input,
.wo-goal-settings .wo-goal-input:focus {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: var(--type-input);
  font-weight: 700;
  text-align: center;
  box-shadow: none;
  -moz-appearance: textfield;
}

.wo-goal-input::-webkit-outer-spin-button,
.wo-goal-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@keyframes wo-pip {
  from { transform: scaleX(0.2); opacity: 0.3; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes wo-glow {
  0% { transform: scale(0.98); box-shadow: 0 0 0 0 color-mix(in srgb, var(--wo-run) 60%, transparent); }
  60% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .wo-pip--on,
  .wo-goals--complete,
  .wo-live,
  .wo-split,
  .wo-split--live .wo-split-bar,
  .wo-amrap-side,
  .wo-run-digits {
    animation: none;
  }
}

.wo-library {
  padding-bottom: calc(68px + 84px + env(safe-area-inset-bottom, 0px));
}

.ex-section-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4) var(--space-1);
}

.ex-section-name {
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.ex-section-count {
  font-size: var(--type-label);
  color: var(--gray-600);
  font-variant-numeric: tabular-nums;
}

.ex-list {
  margin: 0;
  padding: 0 var(--space-4);
  list-style: none;
}

.ex-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--gray-800);
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.ex-list li:last-child .ex-row {
  border-bottom: none;
}

.ex-row-thumb {
  width: 36px;
  height: 36px;
  font-size: var(--type-label);
  font-weight: 700;
}

.ex-row-record {
  flex-shrink: 0;
  font-size: var(--type-label);
  font-weight: 600;
  color: var(--gray-400);
  font-variant-numeric: tabular-nums;
}

.ex-row-chevron {
  flex-shrink: 0;
  color: var(--gray-600);
}

.ex-show-body {
  padding: var(--space-2) var(--space-4) var(--space-8);
}

.ex-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.ex-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  background: var(--gray-900);
}

.ex-fact-label {
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.ex-fact-value {
  font-size: var(--type-body);
  font-weight: 600;
  color: var(--text);
}

.ex-record {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  font-size: var(--type-body);
  color: var(--gray-400);
}

.ex-record strong {
  color: var(--text);
}

.ex-section-title {
  margin: var(--space-6) 0 var(--space-3);
  font-size: var(--type-heading);
  font-weight: 700;
  color: var(--text);
}

.ex-steps {
  margin: 0;
  padding-left: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--type-body);
  line-height: 1.6;
  color: var(--gray-300);
}

.ex-steps li::marker {
  color: var(--gray-500);
  font-weight: 600;
}

.ex-empty {
  margin: 0;
  font-size: var(--type-body);
  color: var(--gray-500);
}

.ex-origin {
  margin: var(--space-8) 0 0;
  font-size: var(--type-label);
  color: var(--gray-500);
  text-align: center;
}

.wo-screen .fl-top {
  padding-bottom: var(--space-4);
}
