/* Conversation thread (ConversationThread): when something new arrives while the person reads above, a « New messages » pill
   floats over the bottom of the messages, centred above the composer; it takes no room in the layout and brings the thread back
   to its end. Hidden (the `hidden` attribute) while the person is at the bottom. */
.thread-new-wrap { position: relative; height: 0; z-index: 2; }
.thread-new {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 5px; height: 27px; padding: 0 11px 0 9px; border: 1px solid var(--accent-line); border-radius: 999px;
  background: var(--surface); color: var(--accent); font: 600 12px/1 var(--font-ui, inherit); white-space: nowrap; cursor: pointer;
  box-shadow: var(--shadow-pop);
}
.thread-new[hidden] { display: none; }
.thread-new:hover { background: var(--accent-soft); }
.thread-new:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .thread-new:not([hidden]) { animation: thread-new-in 0.18s var(--ease-out, ease-out); }
}
@keyframes thread-new-in { from { opacity: 0; transform: translate(-50%, 4px); } to { opacity: 1; transform: translateX(-50%); } }
/* Older messages being read above (a conversation opened at its latest messages): a muted line heads the thread, with the kit's
   spinner at the size of the text. Its appearance and its removal keep the message in view in place (ConversationThread). */
.thread-earlier { justify-self: center; display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.thread-earlier .spin { width: 11px; height: 11px; border-width: 1.5px; }
