/* Every message shows the time it was sent at the bottom right. On your own messages the time is the delivery mark:
   faint when sent, bold and bright once the other person's device has it (no ticks). */
.vibe-message .vibe-message-meta {
  display: flex; justify-content: flex-end; align-items: center; gap: 5px; margin-top: 3px;
  font-size: 11px; font-weight: 500; line-height: 1; white-space: nowrap; opacity: .7;
}
.vibe-message.mine .vibe-message-meta { opacity: 1; color: rgba(255, 255, 255, .62); transition: color .25s ease; }
.vibe-message.mine .vibe-message-meta[data-state="delivered"] { color: #fff; font-weight: 800; }
.vibe-message .vibe-message-time { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .vibe-message.mine .vibe-message-meta { transition: none; } }

/* Older messages on a new device: a small notice inside the message list (it scrolls away with the chat), with ×,
   gone 3 hours after it first appeared; the code box when a code was emailed; and the "Send a code" sheet. */
.vibe-history-lock { position: relative; align-self: stretch; margin: 2px 0 6px; padding: 8px 44px 8px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.4; color: #52698f; background: rgba(123, 77, 255, .08); border: 1px solid rgba(123, 77, 255, .18); }
.vibe-history-lock > p { margin: 0; }
.vibe-history-lock-close { position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 20px; cursor: pointer; }
.vibe-history-code { display: grid; gap: 8px; margin-top: 8px; justify-items: start; }
.vibe-history-code button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; font: inherit; font-weight: 800; color: #fff; background: #7b4dff; cursor: pointer; }
.vibe-history-code button:disabled { opacity: .6; }
.vibe-history-code-error { margin: 6px 0 0; color: #b02b51; font-weight: 700; }
html[data-theme="dark"] .vibe-history-lock { color: #9fb4d2; background: rgba(123, 77, 255, .14); border-color: rgba(123, 77, 255, .3); }
html[data-theme="dark"] .vibe-history-code-error { color: #ff9db4; }
.vibe-message[data-locked] > span { font-style: italic; opacity: .78; }
dialog.device-link-dialog { max-width: 420px; }
dialog.device-link-dialog .device-link-copy { margin: 4px 22px 0; font-size: 15px; line-height: 1.5; }
dialog.device-link-dialog .device-link-status { min-height: 20px; margin: 10px 22px 0; font-size: 13px; color: #52698f; }
html[data-theme="dark"] dialog.device-link-dialog .device-link-status { color: #9fb4d2; }
dialog.device-link-dialog .device-link-actions { display: flex; gap: 10px; margin: 14px 22px 22px; }
/* A run of messages this device can't open folds into one quiet line. */
.vibe-message-item[hidden] { display: none !important; }

/* Weak networks: a message waiting on this device to send, and the short notice inside a call. */
.vibe-message[data-pending="true"] { opacity: .72; }
.vibe-message .vibe-message-waiting { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 600; opacity: .9; }
.call-network-notice { margin: 0 auto 12px; padding: 8px 14px; max-width: 34em; border-radius: 14px; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.4; color: #52698f; background: rgba(123, 77, 255, .08); border: 1px solid rgba(123, 77, 255, .22); }
html[data-theme="dark"] .call-network-notice { color: #9fb4d2; background: rgba(123, 77, 255, .16); border-color: rgba(123, 77, 255, .32); }
.call-network-notice[hidden] { display: none; }
