/* Icônes de serveur carrées (coins arrondis façon Discord), images jamais déformées */
.rail-btn.srv { width: 48px; height: 48px; min-height: 48px; border-radius: 14px; overflow: hidden; padding: 0; display: grid; place-items: center; flex: 0 0 48px; transition: border-radius .18s ease, background-color .18s ease; position: relative; }
.rail-btn.srv, .rail-btn.srv:hover, .rail-btn.srv.active { border-radius: 0; aspect-ratio: 1; }
.rail-btn.srv > img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.rail-btn.srv .voice-dot { position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; border-radius: 4px; background: #0a0a0a; display: grid; place-items: center; }
.rail-btn.srv .voice-dot .ic { width: 10px; height: 10px; }
.rail-btn .lbl, .icon-btn .lbl, .ctrl .lbl { display: none; }
.icon-upload img, .server-icon img, .srv-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.icon-upload { border-radius: 0; overflow: hidden; }
.avatar { overflow: hidden; }
.avatar > img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.side-banner { width: 100%; height: 100%; object-fit: cover; }
.msg img, .attachment img { max-width: min(420px, 100%); max-height: 340px; object-fit: contain; border-radius: 8px; }

/* Liste des membres type Discord : sections de rôle et bannière en fond */
.members .role-head { margin-top: 14px; }
.members .role-head span { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #8c8c8c; }
.member { position: relative; overflow: hidden; border-radius: 6px; }
.member.has-banner { background-image: linear-gradient(90deg, #141414 38%, rgba(20,20,20,.55) 70%, rgba(20,20,20,.2)), var(--mb); background-size: cover; background-position: center right; }
.member.has-banner:hover { background-image: linear-gradient(90deg, #1d1d1d 38%, rgba(29,29,29,.45)), var(--mb); }
.member .nm strong, .member .nm small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.member .nm { min-width: 0; }

.changelog { margin-top: 16px; font-size: 13px; color: #8c8c8c; }
.changelog summary { cursor: pointer; color: #e9e9e9; font-weight: 600; }
.changelog summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.changelog figure { margin: 10px 0 0; }
.changelog img { width: 100%; height: auto; border-radius: 8px; border: 1px solid #2c2c2c; filter: grayscale(1); }
.changelog figcaption { font-size: 12px; margin-top: 4px; }
.legal-note { font-size: 12px; color: #8c8c8c; margin-top: 12px; line-height: 1.5; }
.legal-note a { color: #e9e9e9; }
.install-app-btn { position: fixed; right: 16px; top: 14px; z-index: 80; background: #202020; color: white; border: 1px solid #555; border-radius: 9px; padding: 8px 12px; font: 600 12px system-ui; cursor: pointer; }
.install-app-btn[hidden] { display: none; }
html[data-in-call="true"] .install-app-btn { display: none; }
#liveMicMeter { display: block; width: 100%; max-width: 135px; height: 8px; accent-color: #60dc9b; }
.disc-ic, .server-icon, .srv-icon { border-radius: 0; overflow: hidden; aspect-ratio: 1; }
.disc-ic img { border-radius: 0; }
.msg[data-id^="pending_"] .msg-actions { display:none; }
.delivery { font-size:11px; color:var(--mut); margin-top:4px; }
.delivery.failed { color:#f48b8b; }
.delivery .mini-btn { display:inline; width:auto; padding:2px 5px; text-decoration:underline; }
/* Le statut reste indiqué en texte ; aucune bulle ne recouvre la photo. */
.avatar::after { display: none !important; }
.startup-loading { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: #0a0a0a; color: #f5f5f5; font: 16px system-ui; }
.startup-loading p { color: #aaa; font-size: 13px; }
