:root {
  --bg-0: #0a0b10;
  --bg-1: #0f1117;
  --bg-2: #14161e;
  --bg-3: #1b1e28;
  --bg-4: #232734;
  --line: rgba(255, 255, 255, .06);
  --line-2: rgba(255, 255, 255, .1);
  --text: #e8eaf0;
  --text-2: #b6bac8;
  --muted: #7d8294;
  --accent: #7c5cff;
  --accent-2: #3fb4ff;
  --accent-soft: rgba(124, 92, 255, .16);
  --ok: #2bd9a1;
  --warn: #ffb547;
  --danger: #ff5c6c;
  --speak: #2bd9a1;
  --radius: 14px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg-0); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .slash { stroke: var(--danger); }
::selection { background: rgba(124, 92, 255, .45); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .09); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .16); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Boutons & champs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; font-weight: 600; transition: transform .12s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, #8b6cff, #5f7cff 60%, #3fb4ff); color: #fff; box-shadow: 0 8px 24px -10px rgba(124, 92, 255, .8); }
.btn.primary:hover { box-shadow: 0 10px 30px -8px rgba(124, 92, 255, .95); }
.btn.ghost { background: var(--bg-4); color: var(--text); }
.btn.ghost:hover { background: #2b3040; }
.btn.big { height: 46px; font-size: 16px; width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--text-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.icon-btn.on { color: var(--danger); }
.icon-btn.on:hover { background: rgba(255, 92, 108, .12); }
.field { display: grid; gap: 7px; margin: 0 0 16px; }
.field > span { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.field input, .field select { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-0); outline: none; transition: border .15s, box-shadow .15s; }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; align-items: center; gap: 10px; margin: 10px 0; cursor: pointer; color: var(--text-2); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hint { color: var(--muted); font-size: 13px; }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25); transition: transform .12s; }
.swatch:hover { transform: scale(1.1); }
.swatch.sel { box-shadow: 0 0 0 3px var(--bg-1), 0 0 0 5px var(--c); }
.grow { flex: 1; }

/* ---------- Avatars ---------- */
.avatar { --c: var(--accent); position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 92%, #fff 8%), color-mix(in srgb, var(--c) 70%, #000 30%)); color: #fff; font-weight: 700; font-size: 16px; flex: none; text-transform: uppercase; user-select: none; transition: box-shadow .12s; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.xs { width: 24px; height: 24px; font-size: 11px; }
.avatar.xl { width: 96px; height: 96px; font-size: 38px; }
.avatar .dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 3px solid var(--bg-1); }
.speaking .avatar, .avatar.speaking { box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 4px var(--speak); }

/* ---------- Écran d'arrivée ---------- */
.login { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; overflow: auto; background: radial-gradient(1200px 600px at 10% -10%, rgba(124, 92, 255, .28), transparent 60%), radial-gradient(900px 600px at 110% 110%, rgba(63, 180, 255, .22), transparent 60%), var(--bg-0); }
.login-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(124, 92, 255, .25), rgba(63, 180, 255, .2), rgba(43, 217, 161, .15), rgba(124, 92, 255, .25)); filter: blur(90px); animation: spin 18s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-card { position: relative; width: min(420px, 100%); padding: 34px 30px 28px; border-radius: 22px; background: rgba(20, 22, 30, .78); border: 1px solid var(--line-2); backdrop-filter: blur(18px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.login-logo { width: 58px; height: 58px; display: block; margin: 0 auto 14px; stroke: none; filter: drop-shadow(0 10px 24px rgba(124, 92, 255, .55)); }
.login h1 { margin: 0; text-align: center; font-size: 28px; letter-spacing: -.02em; }
.login-sub { margin: 6px 0 24px; text-align: center; color: var(--text-2); }
.login-error { min-height: 20px; margin: 0 0 10px; color: var(--danger); font-size: 14px; }

/* ---------- Mise en page ---------- */
.app { display: grid; grid-template-columns: 270px minmax(0, 1fr) 250px; height: 100vh; height: 100dvh; }
.app.no-members { grid-template-columns: 270px minmax(0, 1fr) 0; }
.app.no-members .members { display: none; }
.sidebar { display: flex; flex-direction: column; min-height: 0; background: var(--bg-1); border-right: 1px solid var(--line); }
.server-head { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.server-logo { width: 38px; height: 38px; stroke: none; filter: drop-shadow(0 6px 16px rgba(124, 92, 255, .45)); }
.server-title { display: grid; line-height: 1.2; }
.server-title strong { font-size: 16px; }
.server-title small { color: var(--muted); font-size: 12px; }
.channels { flex: 1; overflow-y: auto; padding: 10px 8px 16px; }
.cat { display: flex; align-items: center; gap: 4px; margin: 14px 8px 4px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cat .grow { flex: 1; }
.cat .icon-btn { width: 24px; height: 24px; }
.cat .icon-btn svg { width: 16px; height: 16px; }
.chan { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 8px; border-radius: 9px; color: var(--muted); text-align: left; transition: background .12s, color .12s; }
.chan svg { width: 18px; height: 18px; opacity: .8; }
.chan .name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.chan:hover { background: rgba(255, 255, 255, .045); color: var(--text-2); }
.chan.active { background: rgba(124, 92, 255, .14); color: var(--text); }
.chan.unread { color: var(--text); }
.chan.unread .name { font-weight: 700; }
.chan.unread::before { content: ""; position: absolute; left: -8px; width: 4px; height: 8px; border-radius: 0 4px 4px 0; background: var(--text); }
.chan .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.chan .tools { display: none; gap: 2px; }
.chan:hover .tools { display: flex; }
.chan .tools .icon-btn { width: 24px; height: 24px; }
.chan .tools svg { width: 14px; height: 14px; }
.chan .count { font-size: 11px; color: var(--muted); }
.vusers { margin: 2px 0 6px 30px; display: grid; gap: 2px; }
.vuser { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 8px; color: var(--text-2); font-size: 14px; cursor: default; }
.vuser:hover { background: rgba(255, 255, 255, .04); }
.vuser .n { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vuser svg { width: 15px; height: 15px; color: var(--muted); }
.live { padding: 1px 6px; border-radius: 5px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; }

.voice-panel { margin: 0 8px 8px; padding: 10px 10px 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.vp-row { display: flex; align-items: center; gap: 6px; }
.vp-status { flex: 1; display: grid; min-width: 0; }
.vp-state { display: flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; font-size: 14px; }
.vp-state.wait { color: var(--warn); }
.vp-state svg { width: 16px; height: 16px; }
.vp-chan { color: var(--muted); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vp-actions { display: flex; gap: 6px; margin-top: 8px; }
.pill { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border-radius: 8px; background: var(--bg-4); color: var(--text-2); font-size: 13px; font-weight: 600; }
.pill:hover { background: #2b3040; color: var(--text); }
.pill.on { background: rgba(43, 217, 161, .16); color: var(--ok); }
.pill svg { width: 16px; height: 16px; }
.me-bar { display: flex; align-items: center; gap: 2px; padding: 8px; background: #0c0e13; border-top: 1px solid var(--line); }
.me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 9px; text-align: left; }
.me:hover { background: rgba(255, 255, 255, .05); }
.me-text { display: grid; min-width: 0; line-height: 1.15; }
.me-text strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.me-text small { color: var(--muted); font-size: 12px; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg-2); }
.main-head { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--line); flex: none; }
.main-head h2 { margin: 0; font-size: 16px; white-space: nowrap; }
.head-icon { color: var(--muted); }
.head-sub { color: var(--muted); font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-left: 12px; border-left: 1px solid var(--line-2); }
.mobile-only { display: none; }

/* ---------- Chat ---------- */
.chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.messages { flex: 1; overflow-y: auto; padding: 18px 0 8px; }
.welcome { padding: 18px 22px 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.welcome .wicon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bg-4); margin-bottom: 12px; }
.welcome .wicon svg { width: 34px; height: 34px; }
.welcome h3 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.02em; }
.welcome p { margin: 0; color: var(--muted); }
.day { display: flex; align-items: center; gap: 12px; margin: 16px 22px 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.day::before, .day::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.msg { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 4px 22px 3px; margin-top: 12px; }
.msg.cont { margin-top: 0; padding-top: 1px; }
.msg:hover { background: rgba(255, 255, 255, .025); }
.msg.mention { background: rgba(255, 181, 71, .07); box-shadow: inset 3px 0 0 var(--warn); }
.msg .side { display: flex; justify-content: center; }
.msg .side time { visibility: hidden; color: var(--muted); font-size: 11px; line-height: 22px; }
.msg.cont:hover .side time { visibility: visible; }
.msg .meta { display: flex; align-items: baseline; gap: 8px; }
.msg .author { font-weight: 700; }
.msg .meta time { color: var(--muted); font-size: 12px; }
.msg .text { color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .text.big { font-size: 40px; line-height: 1.2; }
.msg .text a { color: var(--accent-2); text-decoration: none; }
.msg .text a:hover { text-decoration: underline; }
.msg .text code { padding: 1px 5px; border-radius: 5px; background: var(--bg-0); font: 13px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; }
.msg .text pre { margin: 6px 0; padding: 10px 12px; border-radius: 9px; background: var(--bg-0); border: 1px solid var(--line); overflow-x: auto; white-space: pre; }
.msg .text pre code { padding: 0; background: none; }
.msg .text .ment { padding: 0 3px; border-radius: 4px; background: var(--accent-soft); color: #c9bcff; font-weight: 600; }
.msg .attach { display: block; max-width: min(420px, 100%); max-height: 340px; margin-top: 6px; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; object-fit: cover; background: var(--bg-3); }
.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.reaction { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 8px; background: var(--bg-3); border: 1px solid transparent; font-size: 14px; }
.reaction b { font-size: 12px; color: var(--text-2); }
.reaction.mine { background: var(--accent-soft); border-color: rgba(124, 92, 255, .55); }
.reaction:hover { border-color: var(--line-2); }
.msg-tools { position: absolute; right: 18px; top: -14px; display: none; gap: 2px; padding: 3px; border-radius: 9px; background: var(--bg-3); border: 1px solid var(--line-2); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.msg:hover .msg-tools { display: flex; }
.msg-tools .icon-btn { width: 30px; height: 30px; }
.msg-tools svg { width: 17px; height: 17px; }
.typing { height: 22px; padding: 0 22px; color: var(--muted); font-size: 13px; }
.typing b { color: var(--text-2); }
.typing .dots i { display: inline-block; width: 5px; height: 5px; margin-right: 3px; border-radius: 50%; background: var(--text-2); animation: blink 1.2s infinite; }
.typing .dots i:nth-child(2) { animation-delay: .2s; }
.typing .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.composer { display: flex; align-items: flex-end; gap: 4px; margin: 0 18px 18px; padding: 6px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); transition: border .15s, box-shadow .15s; }
.composer:focus-within { border-color: rgba(124, 92, 255, .5); box-shadow: 0 0 0 3px rgba(124, 92, 255, .1); }
.composer.drag { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(63, 180, 255, .2); }
.composer textarea { flex: 1; min-height: 34px; max-height: 40vh; padding: 7px 4px; border: 0; outline: 0; resize: none; background: none; line-height: 1.4; }
.composer .send { color: var(--accent); }

/* ---------- Scène vocale ---------- */
.stage-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; background: radial-gradient(900px 500px at 50% 0%, rgba(124, 92, 255, .08), transparent 70%), #0d0f15; }
.stage { flex: 1; min-height: 0; display: grid; gap: 12px; padding: 18px; overflow: auto; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-auto-rows: minmax(180px, 1fr); align-content: center; }
.stage.has-screen { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-rows: 150px; align-content: start; }
.tile { position: relative; display: grid; place-items: center; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .12s; }
.tile.speaking { box-shadow: inset 0 0 0 3px var(--speak); }
.tile .avatar.xl { box-shadow: 0 12px 40px -10px var(--c); }
.tile.speaking .avatar { box-shadow: 0 0 0 4px var(--bg-3), 0 0 0 7px var(--speak); }
.tile .label { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); padding: 4px 10px; border-radius: 8px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; }
.tile .label svg { width: 15px; height: 15px; }
.tile .label .slash { stroke: var(--danger); }
.tile .conn { position: absolute; right: 10px; top: 10px; padding: 3px 8px; border-radius: 7px; background: rgba(255, 181, 71, .15); color: var(--warn); font-size: 12px; font-weight: 600; }
.tile.screen { grid-column: 1 / -1; grid-row: span 3; background: #000; cursor: zoom-in; }
.tile.screen video { width: 100%; height: 100%; object-fit: contain; }
.tile.screen .full { position: absolute; right: 10px; top: 10px; background: rgba(0, 0, 0, .5); color: #fff; }
.stage-bar { flex: none; display: grid; place-items: center; padding: 14px 18px 22px; }
.join-card { text-align: center; max-width: 360px; }
.join-card h3 { margin: 0 0 4px; font-size: 22px; }
.join-card p { margin: 0 0 16px; color: var(--muted); }
.controls { display: flex; gap: 12px; padding: 10px 14px; border-radius: 20px; background: rgba(20, 22, 30, .85); border: 1px solid var(--line-2); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .9); }
.round { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-4); color: var(--text); transition: background .15s, transform .1s; }
.round:hover { background: #303547; }
.round:active { transform: scale(.96); }
.round.on { background: #fff; color: #11131a; }
.round.on .slash { stroke: var(--danger); }
.round.live { background: var(--ok); color: #06281d; }
.round.danger { background: var(--danger); color: #fff; }
.round.danger:hover { background: #ff7380; }
.round svg { width: 22px; height: 22px; }

/* ---------- Membres ---------- */
.members { min-height: 0; overflow-y: auto; padding: 14px 8px; background: var(--bg-1); border-left: 1px solid var(--line); }
.members h4 { margin: 6px 10px 8px; color: var(--muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.member { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 10px; border-radius: 9px; text-align: left; }
.member:hover { background: rgba(255, 255, 255, .045); }
.member .t { display: grid; min-width: 0; line-height: 1.2; }
.member .t strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; font-weight: 600; }
.member .t small { color: var(--muted); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.member .t small svg { width: 12px; height: 12px; }

/* ---------- Modales, popovers ---------- */
.modal { padding: 0; border: 0; background: none; color: var(--text); max-width: calc(100vw - 32px); }
.modal::backdrop { background: rgba(4, 5, 8, .7); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-card { width: 440px; max-width: 100%; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -30px #000; }
.modal-card.wide { width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 6px 22px; }
.modal-head h3 { margin: 0; font-size: 19px; }
.modal-body { padding: 10px 22px; max-height: 70vh; overflow: auto; }
.modal-body h4 { margin: 6px 0 14px; font-size: 14px; color: var(--text-2); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 20px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 26px; }
.meter { height: 10px; border-radius: 6px; background: var(--bg-0); overflow: hidden; border: 1px solid var(--line); }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), #a2f06b 70%, var(--warn)); transition: width .08s linear; }
.kind-pick { display: grid; gap: 8px; margin-bottom: 16px; }
.kind-pick label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); cursor: pointer; }
.kind-pick label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.kind-pick input { accent-color: var(--accent); }
.kind-pick span { display: grid; }
.kind-pick small { color: var(--muted); }
.popover { position: fixed; z-index: 50; padding: 8px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line-2); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .8); animation: pop .12s ease-out; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 36px); gap: 2px; max-height: 260px; overflow-y: auto; }
.emoji-grid button { width: 36px; height: 36px; border-radius: 8px; font-size: 21px; }
.emoji-grid button:hover { background: rgba(255, 255, 255, .08); }
.react-row { display: flex; gap: 2px; }
.react-row button { width: 36px; height: 36px; border-radius: 8px; font-size: 20px; }
.react-row button:hover { background: rgba(255, 255, 255, .08); }
.user-card { width: 250px; display: grid; gap: 10px; padding: 6px; }
.user-card .top { display: flex; align-items: center; gap: 12px; }
.user-card strong { font-size: 16px; }
.user-card small { color: var(--muted); }
.user-card label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.user-card input[type=range] { width: 100%; accent-color: var(--accent); }
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 32px; background: rgba(0, 0, 0, .86); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px #000; }
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 70; display: grid; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 12px; background: #262a38; border: 1px solid var(--line-2); box-shadow: 0 14px 40px -10px #000; font-size: 14px; animation: pop .16s ease-out; }
.toast.err { border-color: rgba(255, 92, 108, .5); }
.banner { position: fixed; top: 10px; left: 50%; z-index: 80; transform: translateX(-50%); padding: 8px 16px; border-radius: 10px; background: var(--warn); color: #2a1a00; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px -10px #000; }
.scrim { display: none; }

/* ---------- Écrans étroits ---------- */
@media (max-width: 1100px) {
  .app { grid-template-columns: 250px minmax(0, 1fr) 0; }
  .members { display: none; }
  .app.show-members { grid-template-columns: 250px minmax(0, 1fr) 230px; }
  .app.show-members .members { display: block; }
}
@media (max-width: 720px) {
  .app, .app.show-members { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 40; transform: translateX(-102%); transition: transform .2s ease; }
  .app.drawer .sidebar { transform: none; }
  .app.drawer .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .55); }
  .app.show-members .members { position: fixed; inset: 0 0 0 auto; width: min(280px, 86vw); z-index: 40; }
  .mobile-only { display: inline-grid; }
  .head-sub { display: none; }
  .msg { padding: 4px 14px 3px; gap: 10px; }
  .composer { margin: 0 10px 12px; }
  .stage { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); grid-auto-rows: minmax(140px, 1fr); padding: 12px; }
  .avatar.xl { width: 72px; height: 72px; font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
