/* Scoped additions to the existing job and Word views. */
.job-receipt,
.job-observation,
.job-storage-note {
  margin: 8px 0;
  color: var(--muted-strong);
  font-size: var(--text-sm, .875rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.job-receipt { font-weight: 700; }
.job-storage-note { color: var(--amber-dark); }
.job-handoff-actions,
.job-resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.job-handoff-actions p,
.job-resume p { margin: 4px 0; line-height: 1.5; }
.job-resume > div { min-width: 0; overflow-wrap: anywhere; }
[data-job-handoff] .button,
[data-job-handoff] .job-review-link,
.job-resume .button,
.activity-panel .button,
.word-preview-shell .button,
.word-preview-shell .back,
.word-preview-findings a,
.word-preview-jump input {
  min-height: 48px;
  min-width: 48px;
  box-sizing: border-box;
}
[data-job-handoff] .job-review-link,
.word-preview-shell .back,
.word-preview-findings a {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
}
.job-handoff-actions .button,
.job-resume .button { flex-shrink: 0; text-align: center; white-space: normal; }
[data-job-resume][hidden],
[data-job-active-handoff][hidden],
[data-job-storage-note][hidden] { display: none; }
.word-version-receipt,
.word-review-checklist {
  margin: 16px 0;
  padding: clamp(12px, 3vw, 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-wrap: anywhere;
}
.word-version-receipt h2,
.word-review-checklist h2 { margin: 0 0 8px; font-size: 1.1rem; }
.word-version-receipt p,
.word-review-checklist p,
.word-review-checklist li { line-height: 1.6; }
.word-version-receipt dl { display: grid; gap: 8px; margin: 12px 0; }
.word-version-receipt dt { color: var(--muted-strong); font-size: var(--text-sm, .875rem); }
.word-version-receipt dd { margin: 2px 0 0; }
.word-version-receipt code { white-space: normal; overflow-wrap: anywhere; }
.word-review-checklist ul { display: grid; gap: 8px; padding-left: 20px; }
.word-review-return { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 600px) {
  .job-handoff-actions,
  .job-resume { align-items: stretch; flex-direction: column; }
  .job-handoff-actions .button,
  .job-resume .button,
  .word-review-return .button { width: 100%; justify-content: center; }
  .job-handoff-actions,
  .job-resume,
  .word-review-return {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
}
