/* « Lu » et « typing… » du client (03/11), consoles chatting et support (/ui/presence.css) */
:root { --seen: #1f8fd6; --typing: #1f8fd6; }
:root[data-theme="dark"] { --seen: #5cb8f2; --typing: #5cb8f2; }
.msg-ticks { font-size: 12px; position: relative; }
.msg-ticks[data-tip]:hover::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 6px); white-space: nowrap; padding: 4px 8px; border-radius: 6px; background: #1d2330; color: #fff; font-size: 11px; font-weight: 500; letter-spacing: 0; box-shadow: 0 2px 8px #0003; pointer-events: none; z-index: 30; }
.msg-ticks.sent { color: var(--text-muted); }
.msg-ticks.read { color: var(--seen); letter-spacing: -5px; padding-right: 5px; font-weight: 600; cursor: default; }
.typing-label { color: var(--typing); font-style: italic; font-weight: 500; }
.typing-label::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: middle; animation: typing-pulse 1.2s ease-in-out infinite; }
/* bulle « typing… » au bas du fil, comme un message du client en train de s'écrire (03/11) */
.typing-row { flex-shrink: 0; padding: 0 24px 8px; }
.typing-row:has(.typing-bubble:empty) { display: none; }
.typing-bubble { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 16px 16px 16px 4px; background: var(--bubble-in, var(--bg-card)); border: 1px solid var(--border); color: var(--typing); font-size: 12.5px; font-style: italic; box-shadow: 0 1px 2px #0000000d; }
.typing-bubble:empty { display: none; }
.typing-bubble::before { content: ""; width: 22px; height: 6px; background: radial-gradient(circle, currentColor 2.5px, transparent 3px) 0 0 / 8px 6px repeat-x; animation: typing-pulse 1.2s ease-in-out infinite; }
@keyframes typing-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing-label::before, .typing-bubble::before { animation: none; } }
/* statut du client à droite du pseudo dans le header (03/11) */
.peer-presence { color: var(--text-muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
.peer-presence:empty { display: none; }
.peer-presence.online { color: var(--online, #1a9e5a); font-weight: 500; }
.peer-presence.online::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: middle; }
