/* Styles du widget de chat — préfixe `chat-`, autonomes.
 * Couleurs via var(--x, fallback) : s'intègrent au thème hôte mais fonctionnent seul. */
.chat { display: flex; flex-direction: column; height: 340px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line, #2b3452); background: var(--panel, #171d31); color: var(--txt, #e7ecf5); }
.chat-head { padding: 10px 14px; font-weight: 700; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line, #2b3452); }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger, #ff5d6c); }
.chat-dot.on { background: var(--accent2, #1ed760); }
.chat-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.chat-empty { margin: auto; color: var(--muted, #93a0b8); font-size: 14px; text-align: center; }
/* Messages : tous alignés à gauche, une ligne « NOM - HH:MM : Message », sans bulle */
.chat-line { font-size: 14px; line-height: 1.4; word-break: break-word; }
.chat-line.mine { color: var(--accent2, #1ed760); }        /* couleur distincte pour mes messages */
.chat-user { font-weight: 700; }
.chat-time { opacity: .7; font-variant-numeric: tabular-nums; }
.chat-sep { opacity: .7; }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line, #2b3452); }
.chat-input input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; font: inherit;
  border: 1px solid var(--line, #2b3452); background: var(--panel2, #1f2740); color: var(--txt, #e7ecf5); }
.chat-input button { border: none; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer;
  background: var(--accent, #7c5cff); color: #fff; }
.chat-input button:disabled { opacity: .5; cursor: not-allowed; }
