/* Standard chat bubbles, with the stronger rim reserved for sent messages. */
:where(.chat-shell.real-chat, .groups-workspace) {
 --cx-standard-center: rgb(33 57 87 / 83%);
 --cx-standard-edge: rgb(16 30 51 / 70%);
 --cx-standard-rim: #7295bb;
 --cx-standard-ink: #f1f7ff;
 --cx-standard-sent-center: rgb(27 94 165 / 82%);
 --cx-standard-sent-edge: rgb(9 27 56 / 74%);
 --cx-standard-sent-rim: #329fff;
 --cx-standard-sent-glow: #168bff40;
}
html[data-theme=light] :where(.chat-shell.real-chat, .groups-workspace) {
 --cx-standard-center: rgb(248 252 255 / 94%);
 --cx-standard-edge: rgb(218 232 247 / 80%);
 --cx-standard-rim: #779abb;
 --cx-standard-ink: #123259;
 --cx-standard-sent-center: rgb(233 249 255 / 96%);
 --cx-standard-sent-edge: rgb(178 219 251 / 82%);
 --cx-standard-sent-rim: #1674d4;
 --cx-standard-sent-glow: #1674d42b;
}
@media (forced-colors: none) {
 html[data-theme] .chat-shell.real-chat[data-bubble-style=translucent] .messages:not([data-caps-color=true], [style*="--caps-radius:"]) .message-row > .bubble[data-soft-text=true]:not([style*="--cx-flat-surface:"], [data-author-bubble="slight"], [data-author-bubble="common"], [data-watch-invite=true], :has(> .view-once-message, > .view-once-inline-reading)),
 html[data-theme] .groups-workspace .groups-bubble:not([data-group-chat-core], [data-group-bubble]) {
  background: radial-gradient(ellipse at center,var(--cx-standard-center),var(--cx-standard-edge)) !important;
  border: 1px solid var(--cx-standard-rim) !important;
  border-radius: 16px;
  box-shadow: 0 0 9px var(--cx-standard-glow, transparent) !important;
  color: var(--cx-standard-ink);
 }
 html[data-theme] .chat-shell.real-chat[data-bubble-style=translucent] .messages:not([data-caps-color=true], [style*="--caps-radius:"]) .message-row > .bubble.mine[data-soft-text=true]:not([style*="--cx-flat-surface:"], [data-author-bubble="slight"], [data-author-bubble="common"], [data-watch-invite=true], :has(> .view-once-message, > .view-once-inline-reading)),
 html[data-theme] .groups-workspace .groups-bubble.mine:not([data-group-chat-core], [data-group-bubble]) {
  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] .chat-shell.real-chat[data-bubble-style=translucent] .messages:not([data-caps-color=true], [style*="--caps-radius:"]) .message-row > .bubble[data-soft-text=true]:not([style*="--cx-flat-surface:"], [data-author-bubble="slight"], [data-author-bubble="common"], [data-watch-invite=true], :has(> .view-once-message, > .view-once-inline-reading))::before {
  display: none !important;
 }
}

@media (min-width: 721px) and (forced-colors: none) {
 :where(.chat-shell.real-chat, .groups-workspace) {
  --cx-standard-center: rgb(28 83 148 / 84%);
  --cx-standard-edge: rgb(10 33 68 / 74%);
  --cx-standard-rim: #37aaff;
  --cx-standard-glow: #168bff60;
  --cx-standard-sent-rim: #51bcff;
  --cx-standard-sent-glow: #168bff75;
 }
 html[data-theme=light] :where(.chat-shell.real-chat, .groups-workspace) {
  --cx-standard-center: rgb(235 251 255 / 95%);
  --cx-standard-edge: rgb(190 227 251 / 83%);
  --cx-standard-rim: #218bd8;
  --cx-standard-glow: #168bff38;
  --cx-standard-sent-rim: #147bd7;
  --cx-standard-sent-glow: #168bff49;
 }
}
