.session-bar {
  gap: 12px;
}

.date-label input {
  width: 100%;
  max-width: 145px;
}

.rest-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--orange);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.rest-status button {
  min-height: 30px;
  flex-shrink: 0;
  font-size: 10px;
}

.exercise-top {
  min-height: 20px;
  margin-bottom: 12px;
}

.set-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.exercise-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.exercise-heading > div {
  min-width: 0;
}

.exercise-heading .exercise-history {
  flex-shrink: 0;
  padding-top: 2px;
  min-height: 36px;
}

.set-list {
  margin-top: 20px;
}

.set-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.set-row:first-child {
  border-top: 1px solid var(--ink);
}

.last-set-feedback {
  min-height: 36px;
  margin-top: 4px;
  padding: 8px 0;
  font-size: 11px;
  color: var(--muted);
}

.exercise.done .set-count {
  color: var(--orange);
}

.timer-button:disabled {
  opacity: 1;
  cursor: default;
}

.set-loads {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.set-load {
  min-width: 0;
}

.set-exercise-name {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.set-row .weight {
  width: 100px;
  max-width: 100%;
  height: 42px;
}

.set-row .weight input {
  width: 100%;
  font-size: 21px;
  padding: 8px;
}

.set-reference,
.set-feedback-summary {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.set-reference {
  color: var(--muted);
}

.weight-basis,
.history-basis {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--muted);
}

.weight-basis {
  width: 100px;
  max-width: 100%;
  text-align: center;
}

.set-feedback-summary {
  color: var(--ink);
  font-weight: 600;
}

.set-action {
  min-height: 42px;
  padding: 10px 8px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.set-action:hover {
  background: var(--ink);
  color: var(--paper);
}

.feedback-rest {
  display: inline-block;
  margin: -8px 0 20px;
  padding: 8px 12px;
  border: 1px solid var(--orange);
  border-radius: 3px;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.feedback-item {
  padding: 0;
  margin: 0 0 25px;
  border: 0;
  min-width: 0;
}

.feedback-item legend {
  width: 100%;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.feedback-item legend span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.feedback-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.feedback-options button {
  padding: 12px 5px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 12px;
}

.feedback-options [aria-pressed=true] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.note-label {
  display: block;
  margin-top: 17px;
  font-size: 11px;
}

.note-label > span {
  color: var(--muted);
}

.note-label textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  resize: vertical;
}

.feedback-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.feedback-actions .save {
  min-height: 44px;
  background: var(--ink);
  color: var(--paper);
}

.form-error {
  color: var(--orange);
  font-size: 12px;
}

.history-feedback,
.history-note {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.4;
}

.history-feedback {
  font-weight: 600;
  padding: 6px 0;
  min-height: 30px;
}

.history-note {
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 370px) {
  .current-set {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 8px;
  }

  .set-action {
    font-size: 10px;
  }

  .exercise-heading .exercise-history {
    font-size: 10px;
    padding-right: 0;
  }
}

@media (min-width: 600px) {
  .set-loads {
    display: flex;
    align-items: flex-start;
    gap: 30px;
  }

  .set-load {
    flex: 1;
  }
}
