/* View-once bubbles always use the standard chat palette. */
@media (forced-colors: none) {
 html[data-theme] .chat-shell.real-chat .messages .message-row > .bubble.chat-bubble:has(> :is(.view-once-message, .view-once-inline-reading)) {
  --caps-ink: var(--cx-standard-ink);
  --cx-readable-ink: var(--cx-standard-ink);
  --cx-time-surface: rgb(8 24 44 / 45%);
  --cx-time-ink: #e4f0ff;
  --once-accent: #88d5ff;
  background: radial-gradient(ellipse at center, var(--cx-standard-center), var(--cx-standard-edge)) !important;
  color: var(--cx-standard-ink) !important;
  border: 1px solid var(--cx-standard-rim) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  padding: 8px 10px !important;
  font-family: system-ui, sans-serif !important;
 }
 html[data-theme] .chat-shell.real-chat .messages .message-row > .bubble.chat-bubble.mine:has(> :is(.view-once-message, .view-once-inline-reading)) {
  background: radial-gradient(ellipse at center, var(--cx-standard-sent-center), var(--cx-standard-sent-edge)) !important;
  border-color: var(--cx-standard-sent-rim) !important;
  box-shadow: 0 0 9px var(--cx-standard-sent-glow) !important;
 }
 html[data-theme="light"] .chat-shell.real-chat .messages .message-row > .bubble.chat-bubble:has(> :is(.view-once-message, .view-once-inline-reading)) {
  --cx-time-surface: rgb(237 246 255 / 88%);
  --cx-time-ink: #234564;
  --once-accent: #00549e;
 }
 html[data-theme] .chat-shell.real-chat .messages .message-row > .bubble.chat-bubble:has(> :is(.view-once-message, .view-once-inline-reading))::before,
 html[data-theme] .chat-shell.real-chat .messages .message-row > .bubble.chat-bubble:has(> :is(.view-once-message, .view-once-inline-reading))::after,
 html[data-theme] .chat-shell.real-chat .messages .message-row > .bubble.chat-bubble:has(> :is(.view-once-message, .view-once-inline-reading)) > .cloud-materialize {
  display: none !important;
 }
 html[data-theme] .chat-shell.real-chat .messages .message-row > .bubble.chat-bubble > :is(.view-once-message, .view-once-inline-reading),
 html[data-theme] .chat-shell.real-chat .messages .message-row > .bubble.chat-bubble > .view-once-message > [role="status"] {
  color: var(--cx-standard-ink) !important;
  font-family: system-ui, sans-serif;
 }
 html[data-theme] .chat-shell.real-chat .messages .message-row > .bubble.chat-bubble > .view-once-message :is(.view-once-sent-label, button) {
  color: var(--once-accent) !important;
  font-weight: 700;
 }
 html[data-theme] .chat-shell.real-chat .messages .message-row > .bubble.chat-bubble:has(> :is(.view-once-message, .view-once-inline-reading)) > .bubble-footer > time {
  background: var(--cx-time-surface) !important;
  color: var(--cx-time-ink) !important;
 }
 html[data-theme] .chat-shell.real-chat .messages .message-row > .bubble.chat-bubble:has(> :is(.view-once-message, .view-once-inline-reading)) .cx-time-label {
  color: var(--cx-time-ink) !important;
 }
}

/* Keep desktop message actions clear of the inline close button. */
.message-row:has(> .bubble > .view-once-inline-reading) > .desktop-message-controls {
 display: none;
}
