/* workout.css — page-specific styles for #page-workout */

.workout-history-item { cursor: default; }

.workout-history-detail {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.exercise-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  gap: 8px;
}

.exercise-name-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.active-exercise-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.active-exercise-row:last-child { border-bottom: none; }

.history-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--text-faint);
}
.history-stars .filled { color: var(--warning); }
.history-stars .filled svg { fill: currentColor; }
.history-stars svg { display: block; }

/* ---- Exercise library / tutorials ---- */
.library-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--text);
}
.library-item:last-child { border-bottom: none; }
.library-item:active { background: var(--bg-elevated); }

.library-steps,
.library-tips {
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

.library-steps li { margin-bottom: 6px; }
.library-tips li { margin-bottom: 6px; color: var(--warning); }
.library-tips li::marker { color: var(--warning); }

/* Entry point to the Camera Workout page (camera.js), which has no tab of its own. */
.camera-workout-entry {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: left;
  cursor: pointer;
  border-color: rgba(59, 130, 246, 0.35);
}
.camera-workout-entry:active { transform: scale(0.99); }
.camera-workout-entry-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
}
.camera-workout-entry-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.camera-workout-entry-title { font-weight: 600; font-size: 15px; }
.camera-workout-entry-sub { font-size: 12px; line-height: 1.4; }
