/* Final transcript-row hierarchy: keep metadata quiet, give the transcript
   more room, and anchor destructive actions to the bottom service line. */

@media (min-width: 981px) {
  .pp-transcripts-workspace .pp-jobs-row {
    grid-template-columns: minmax(0, 16.5rem) minmax(0, 1fr) 12rem;
    column-gap: 20px;
  }

  .pp-transcripts-workspace .pp-jobs-row:has(.pp-jobs-action-stack) {
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "source status actions"
      ". status actions"
      "date status actions";
    align-items: stretch;
  }

  .pp-transcripts-workspace .pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-source,
  .pp-transcripts-workspace .pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-status {
    align-self: start;
  }

  .pp-transcripts-workspace .pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-date {
    align-self: end;
  }

  .pp-transcripts-workspace .pp-jobs-result-preview {
    -webkit-line-clamp: 3;
    line-height: 1.5;
  }

  .pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-actions {
    align-self: stretch;
    width: 12rem;
  }

  .pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-action-stack {
    flex: 1 1 auto;
    min-height: 100%;
  }

  .pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-action-stack [data-delete-job-id] {
    margin-top: auto;
  }

  body.product-page .pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-actions .button,
  body.product-page .pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-actions .pp-split-btn {
    height: 40px;
    min-height: 40px;
  }

  body.product-page .pp-jobs-row:has(.pp-jobs-action-stack) .pp-jobs-actions .pp-split-arrow {
    flex-basis: 44px;
    width: 44px;
    min-width: 44px;
  }
}

@media (max-width: 980px) {
  .pp-transcripts-workspace .pp-jobs-result-preview {
    -webkit-line-clamp: 2;
  }
}
