/* Messages from Spossity: your messages, the automatic acknowledgement and the team's replies, in glass cards. */
.support-unread { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-right: 8px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #fff; background: linear-gradient(140deg, #9b6bff, #7b4dff 45%, #4d7bff); }
.support-unread[hidden] { display: none; }
.support-thread { display: grid; gap: 14px; margin: 6px 0 16px; }
.support-empty { margin: 0; padding: 22px 18px; border-radius: 20px; text-align: center; font-size: 14px; line-height: 1.5; color: #52698f; background: rgba(255, 255, 255, .62); border: 1px solid rgba(123, 77, 255, .14); }
.support-card { display: grid; gap: 10px; padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(123, 77, 255, .14); animation: sp-support-in .36s var(--sp-ease-glide) both; }
.support-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.support-card header strong { font-size: 15px; color: #0b285b; }
.support-status { padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #52698f; background: rgba(82, 105, 143, .1); }
.support-status-replied { color: #fff; background: linear-gradient(140deg, #9b6bff, #7b4dff 45%, #4d7bff); }
.support-bubble { max-width: 88%; padding: 11px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; }
.support-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-bubble span { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 700; color: #52698f; }
.support-bubble time { display: block; margin-top: 5px; font-size: 11.5px; color: #52698f; }
.support-mine { justify-self: end; color: #fff; background: linear-gradient(140deg, #9b6bff, #7b4dff 45%, #4d7bff); border-bottom-right-radius: 6px; }
.support-mine time { color: #fff; opacity: .78; }
.support-theirs { justify-self: start; color: #0b285b; background: rgba(123, 77, 255, .08); border: 1px solid rgba(123, 77, 255, .16); border-bottom-left-radius: 6px; }
.support-auto { opacity: .9; }
.support-new { border-color: rgba(123, 77, 255, .5); }
@keyframes sp-support-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .support-card { animation: none; } }

html[data-theme="dark"] .support-empty { color: #9fb4d2; background: rgba(15, 28, 58, .62); border-color: rgba(123, 77, 255, .26); }
html[data-theme="dark"] .support-card { background: rgba(15, 28, 58, .62); border-color: rgba(123, 77, 255, .26); }
html[data-theme="dark"] .support-card header strong, html[data-theme="dark"] .support-theirs { color: #f5f8ff; }
html[data-theme="dark"] .support-status { color: #9fb4d2; background: rgba(159, 180, 210, .12); }
html[data-theme="dark"] .support-status-replied { color: #fff; }
html[data-theme="dark"] .support-bubble span, html[data-theme="dark"] .support-theirs time { color: #9fb4d2; }
html[data-theme="dark"] .support-theirs { background: rgba(123, 77, 255, .14); border-color: rgba(123, 77, 255, .3); }
/* Profile panels recolour paragraphs in dark mode; bubbles keep their own ink. */
html .support-thread .support-bubble.support-theirs p { color: inherit !important; }
html .support-thread .support-bubble.support-mine p, html .support-thread .support-bubble.support-mine time { color: #fff !important; }
html[data-theme="dark"] .support-thread p.support-empty { color: #9fb4d2 !important; }
