/* The booking conversation (Partials/_ServiceThread). */
.dsb-thread { display: grid; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--dsb-border-color); }
.dsb-thread__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 320px; overflow-y: auto; }
.dsb-thread__msg { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--dsb-radius-lg); background: var(--dsb-bg-subtle); max-width: min(85%, 560px); }
.dsb-thread__msg--mine { justify-self: end; background: var(--dsb-pill-searching-bg); }
.dsb-thread__meta { display: flex; gap: 8px; font-size: 12px; color: var(--dsb-text-muted); }
.dsb-thread__body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.dsb-thread__read { margin-left: auto; }
.dsb-thread__form { display: grid; gap: 8px; }
.dsb-field.dsb-thread__field textarea { width: 100%; resize: vertical; min-height: 96px; }
.dsb-thread__actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.dsb-thread__files { flex: 1; font-size: 12px; color: var(--dsb-text-muted); min-width: 0; overflow-wrap: anywhere; }
.dsb-thread__empty { margin: 0; color: var(--dsb-text-muted); font-size: 14px; }
.dsb-thread__form .dsb-alert { margin: 0; }
/* .dsb-alert is display:flex, which beats [hidden]; the error box must stay out of sight until it has a message. */
.dsb-thread__form .dsb-alert[hidden] { display: none; }

/* R5: the save-as-service-file result line. */
.dsb-thread__save-error { margin: 0; font-size: 12px; color: var(--dsb-alert-danger-text); }
.dsb-thread__save-error[hidden] { display: none; }

/* AB#4862: the answer page's delete is a plain form; it sits in the chip row like the script pages' button. */
.dsb-thread__delete-form { display: inline-flex; margin: 0; }

/* R8: a closed booking's heading when a completed service shows several threads. */
.dsb-thread__booking { margin: 0; font-weight: 500; }

/* Booking live updates (2026-10-01): "There are new updates" while a draft is typed; the post's reload clears it. */
.dsb-thread__live { margin: 0; font-size: 12px; color: var(--dsb-text-muted); }
