/* The save-and-correct surface: utterance rows a gardener fixes in place.
   Correction is quiet work — small controls, no card chrome, the recording
   player above stays the loudest thing on the page. */

.pc-transcript__speakers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lore-space-2);
  margin-bottom: var(--lore-space-2);
}

.pc-transcript__rename {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.pc-transcript__rename input[type="text"] {
  width: 9rem;
}

.pc-transcript__speaker-name {
  font-weight: 600;
}

.pc-transcript__rows {
  display: flex;
  flex-direction: column;
  gap: var(--lore-space-2);
}

.pc-transcript__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--lore-space-2);
}

.pc-transcript__time {
  border: 0;
  background: none;
  padding: 0.25rem 0;
  color: var(--bs-link-color);
  font-variant-numeric: tabular-nums;
  font-size: var(--bs-body-font-size);
}

.pc-transcript__speaker-input {
  width: 7rem;
  flex-shrink: 0;
}

/* Mobile-first: the words own the whole row (a single-utterance recording is
   a full paragraph), and the box grows with its content — field-sizing where
   the browser has it, the server's rows estimate elsewhere. 1rem on touch
   widths also keeps iOS from zoom-jumping into the field on focus. */
.pc-transcript__text-input {
  flex: 1 1 100%;
  min-width: 0;
  font-size: 1rem;
  field-sizing: content;
}

@media (min-width: 768px) {
  .pc-transcript__text-input {
    flex: 1 1 auto;
    min-width: 12rem;
    font-size: var(--bs-font-size-sm, 0.875rem);
  }
}

.pc-transcript__raw {
  font-style: italic;
  color: var(--lore-ink-soft);
}
