/* Delivery receipts on your own messages: one tick sent, two ticks delivered. */
.vibe-message.mine .vibe-message-receipt {
  display: inline-flex; vertical-align: -2px; margin-left: 6px; float: right; margin-top: 3px;
  width: 18px; height: 12px; color: rgba(255, 255, 255, .62); transition: color .25s ease;
}
.vibe-message.mine .vibe-message-receipt svg { width: 100%; height: 100%; overflow: visible; }
.vibe-message.mine .vibe-message-receipt[data-state="delivered"] { color: #fff; }
/* The second tick draws in when delivery arrives. */
.vibe-message.mine .vibe-message-receipt.is-new path { stroke-dasharray: 30; animation: sp-receipt-draw .42s var(--sp-ease-snappy) both; }
.vibe-message.mine .vibe-message-receipt.is-new { animation: sp-receipt-pop .42s var(--sp-ease-snappy); }
@keyframes sp-receipt-draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes sp-receipt-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .vibe-message.mine .vibe-message-receipt, .vibe-message.mine .vibe-message-receipt path { animation: none !important; transition: none; } }

/* Device approval: history locked to your other devices, and the "Allow your new device?" sheet. */
.vibe-history-lock { margin: 8px 12px 0; padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.45; color: #52698f; background: rgba(123, 77, 255, .08); border: 1px solid rgba(123, 77, 255, .18); }
html[data-theme="dark"] .vibe-history-lock { color: #9fb4d2; background: rgba(123, 77, 255, .14); border-color: rgba(123, 77, 255, .3); }
.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-locked-run { display: flex; align-items: center; gap: 8px; align-self: center; margin: 6px auto; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #52698f; background: rgba(123, 77, 255, .08); border: 1px solid rgba(123, 77, 255, .16); }
.vibe-locked-run svg { width: 15px; height: 15px; flex: none; color: #7b4dff; }
html[data-theme="dark"] .vibe-locked-run { color: #9fb4d2; background: rgba(123, 77, 255, .14); border-color: rgba(123, 77, 255, .28); }
html[data-theme="dark"] .vibe-locked-run svg { color: #b69aff; }
.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; }
