/* View once (shared/view-once.js): the tray option, the composer chip and the closed bubble. Light and dark mode. */
:root { --vo-violet: #9b6cff; --vo-ink: #0b285b; --vo-muted: #52698f; }
html[data-theme="dark"] { --vo-ink: #f5f8ff; --vo-muted: #9fb4d2; }
.message-media-icon.is-view-once { color: var(--vo-violet); }
.message-media-icon.is-view-once[aria-pressed="true"] { background: rgba(155, 108, 255, .18); border-radius: 12px; }
/* The composer chip: "View once" with × to turn it off. Sits beside the send-time chip when both are on. */
.message-view-once-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin: 0 8px 8px 0; padding: 4px 4px 4px 10px; border: 1px solid var(--vo-violet); border-radius: 14px; background: rgba(155, 108, 255, .1); color: var(--vo-ink); font-weight: 700; font-size: 14px; }
html[data-theme="dark"] .message-view-once-chip { background: rgba(155, 108, 255, .16); }
.message-view-once-chip[hidden] { display: none; }
.message-view-once-chip svg { color: var(--vo-violet); flex: none; }
.message-view-once-chip button { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; border: 0; background: none; color: inherit; cursor: pointer; }
/* No Reply on a view-once message: nothing of it is quoted. */
.vibe-message-line:has(.vibe-message[data-view-once]) .vibe-message-reply { display: none; }
/* Send with time + View once: the waiting copy says so. */
.vibe-scheduled-once { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: var(--vo-violet); font-weight: 800; }
.vibe-scheduled-once svg { width: 14px; height: 14px; }
/* The closed bubble: the icon, what it was ("Photo · View once") and its state. Never the content. */
.vibe-view-once { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.vibe-view-once svg { color: var(--vo-violet); flex: none; }
.vibe-view-once-state { display: block; margin-top: 2px; color: var(--vo-muted); font-size: 12px; font-weight: 700; }
.vibe-message.mine .vibe-view-once-state { color: inherit; opacity: .82; }
.vibe-message.mine .vibe-view-once svg { color: #ffffff; }
.vibe-message[data-view-once="opened"] .vibe-view-once svg, .vibe-message[data-view-once="expired"] .vibe-view-once svg { opacity: .45; }
/* The violet mist (shared/view-once.js MIST): when a view-once bubble turns to "Already read", a violet haze swells out
   of it and vanishes, leaving no trace. Reduce motion: no animation. */
@keyframes vo-mist {
  0% { box-shadow: 0 0 0 0 rgba(155, 108, 255, 0); filter: none; }
  35% { box-shadow: 0 0 28px 10px rgba(155, 108, 255, .55); filter: blur(1.5px); }
  100% { box-shadow: 0 0 44px 20px rgba(155, 108, 255, 0); filter: none; }
}
.vibe-message.is-misting { animation: vo-mist .76s ease-out; }
@media (prefers-reduced-motion: reduce) { .vibe-message.is-misting { animation: none; } }
