/* Notes on his messages that left or were answered in another tab (public/chat-sort.js). The "Moved to" line stays
   in the tab the message left. Just after the move, app.js starts each animation part way in after a redraw: the
   bubble folds away first, then the line fades in. "Answered in" sits quietly under a message whose answer is in
   another tab. Both keep a 44px tap target while looking like a small grey line. */
.moved-row { align-self: flex-end; max-width: 85%; display: flex; flex-direction: column; align-items: flex-end; }
.moved-ghost { overflow: hidden; animation: moved-ghost 420ms var(--ease) both; }
.moved-note, .also-in, .answered-in {
  display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 4px;
  border: 0; background: none; color: var(--ink-3); font: inherit; font-size: 13px; cursor: pointer;
}
.moved-note, .answered-in { min-height: 44px; margin: -6px 0; }
.moved-note.fresh { animation: moved-note 900ms linear both; }
.moved-note:hover, .also-in:hover, .answered-in:hover { color: var(--ink); }
.moved-note:focus-visible, .also-in:focus-visible, .answered-in:focus-visible { outline: 2px solid var(--pen); outline-offset: 1px; border-radius: 6px; }
.also-in { align-self: flex-start; min-height: 28px; margin-bottom: 2px; }
.moved-chev { display: inline-grid; transform: rotate(-90deg); }

@keyframes moved-ghost {
  from { opacity: 1; max-height: 240px; }
  to { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; }
}
@keyframes moved-note {
  0%, 45% { opacity: 0; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .moved-ghost { display: none; animation: none; }
  .moved-note.fresh { animation: none; }
}
