/* Support chat (end-to-end encrypted UI) */
.support-chat-card { grid-column: 1 / -1; }
.chat-shell { display: grid; grid-template-columns: 280px 1fr; gap: 16px; min-height: 420px; }
.chat-conversations { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-darker); overflow: hidden; display: flex; flex-direction: column; }
.chat-conversations-header { padding: 12px 14px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text-light); display: flex; justify-content: space-between; align-items: center; }
.chat-conversation-list { overflow-y: auto; max-height: 420px; }
.chat-conversation-item { padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; transition: var(--transition); }
.chat-conversation-item:hover, .chat-conversation-item.active { background: rgba(0,212,255,0.08); }
.chat-conversation-item .name { font-weight: 600; color: var(--text-light); font-size: 0.95rem; }
.chat-conversation-item .meta { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; display: flex; justify-content: space-between; gap: 8px; }
.chat-unread-badge { background: var(--primary); color: #081018; border-radius: 999px; padding: 1px 8px; font-size: 0.75rem; font-weight: 700; }
.chat-main { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-darker); display: flex; flex-direction: column; min-height: 420px; }
.chat-main-header { padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chat-main-header .title { font-weight: 600; color: var(--text-light); }
.chat-main-header .subtitle { color: var(--text-muted); font-size: 0.8rem; }
.chat-e2ee-badge { color: var(--success); font-size: 0.8rem; white-space: nowrap; }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: rgba(0,0,0,0.15); }
.chat-message { max-width: 78%; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); }
.chat-message.outgoing { align-self: flex-end; background: rgba(0,212,255,0.12); border-color: rgba(0,212,255,0.25); }
.chat-message.incoming { align-self: flex-start; background: var(--bg-card); }
.chat-message .text { color: var(--text-light); white-space: pre-wrap; word-break: break-word; font-size: 0.95rem; }
.chat-message .time { color: var(--text-muted); font-size: 0.75rem; margin-top: 6px; text-align: right; }
.chat-system-note { color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 20px; }
.chat-compose { border-top: 1px solid var(--border); padding: 12px; display: flex; gap: 10px; align-items: flex-end; }
.chat-compose textarea { flex: 1; resize: vertical; min-height: 44px; max-height: 140px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); color: var(--text-light); font: inherit; }
.chat-compose textarea:focus { outline: none; border-color: var(--primary); }
.chat-empty { color: var(--text-muted); text-align: center; padding: 30px 10px; }
@media (max-width: 900px) {
  .chat-shell { grid-template-columns: 1fr; }
  .chat-conversation-list { max-height: 220px; }
  .chat-message { max-width: 92%; }
}