/* Chat page, round two: a channel sidebar with a voice channel, purple to
   match the windows, and nicer messages. Loaded only by /chat/. */

/* ---------- room ---------- */
/* Height leaves room for the dock and status bar under it. */
.dc-shell{width:min(1320px,96vw) !important;height:min(calc(100dvh - 215px),820px) !important;min-height:420px;margin-top:-1.5rem !important;border-radius:20px !important;
  border:1px solid rgba(206,170,255,.3) !important;
  background:radial-gradient(90% 70% at 0% 0%,rgba(168,85,247,.2),transparent 60%),radial-gradient(70% 60% at 100% 100%,rgba(236,72,153,.13),transparent 60%),rgba(14,6,30,.82) !important;
  box-shadow:0 30px 80px rgba(0,0,0,.55),0 0 60px rgba(168,85,247,.18) !important;position:relative}
.dc-head{background:rgba(20,8,40,.55) !important;border-bottom-color:rgba(206,170,255,.16) !important;min-height:52px}
.dc-tabs{display:none !important}
.cp-title{display:flex;align-items:center;gap:.55rem;min-width:0}
.cp-title b{font-size:.98rem;color:#fff;font-weight:700;letter-spacing:.01em}
.cp-title .hash{color:rgba(216,180,254,.6);font-size:1.25rem;line-height:1}
.cp-title .topic{font-size:.72rem;color:rgba(233,213,255,.5);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  padding-left:.7rem;border-left:1px solid rgba(206,170,255,.2)}
.dc-form,.dc-ai-bar{background:rgba(20,8,40,.55) !important;border-color:rgba(206,170,255,.16) !important}
.dc-input{background:rgba(24,8,48,.75) !important;border-color:rgba(206,170,255,.22) !important;border-radius:12px !important}
.dc-input:focus{border-color:rgba(232,121,249,.65) !important;box-shadow:0 0 0 3px rgba(192,132,252,.18)}
.dc-send{background:linear-gradient(135deg,#c084fc,#8b5cf6 55%,#ec4899) !important;color:#fff !important;border-radius:12px !important;
  box-shadow:0 6px 20px rgba(168,85,247,.35)}
.dc-row:hover{background:rgba(192,132,252,.06) !important}
.dc-tag{background:linear-gradient(135deg,#a855f7,#ec4899) !important;color:#fff !important}
.dc-side{background:rgba(18,6,36,.5) !important;border-left-color:rgba(206,170,255,.14) !important}
.dc-log::-webkit-scrollbar-thumb,.dc-ailog::-webkit-scrollbar-thumb{background:rgba(192,132,252,.3) !important}

/* ---------- channel sidebar ---------- */
.cp-nav{flex:0 0 236px;display:flex;flex-direction:column;min-height:0;background:rgba(10,3,24,.6);border-right:1px solid rgba(206,170,255,.14)}
.cp-server{display:flex;align-items:center;gap:.65rem;padding:.8rem .9rem;border-bottom:1px solid rgba(206,170,255,.14);
  background:linear-gradient(90deg,rgba(124,58,237,.35),rgba(236,72,153,.18))}
.cp-logo{width:34px;height:34px;flex:0 0 34px;border-radius:11px;display:grid;place-items:center;font-weight:800;color:#fff;
  background:linear-gradient(135deg,#c084fc,#7c3aed 55%,#ec4899);box-shadow:0 0 16px rgba(192,132,252,.5)}
.cp-server b{display:block;color:#fff;font-size:.9rem;line-height:1.1}
.cp-server small{display:block;color:rgba(233,213,255,.55);font-size:.62rem;letter-spacing:.1em;text-transform:uppercase}
.cp-chans{flex:1 1 auto;overflow-y:auto;padding:.6rem .5rem}
.cp-cat{margin:.8rem .5rem .3rem;font-size:.6rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(233,213,255,.42);font-weight:700}
.cp-cat:first-child{margin-top:.2rem}
.cp-ch{display:flex;align-items:center;gap:.5rem;width:100%;padding:.45rem .6rem;margin:1px 0;border:0;border-radius:9px;background:none;
  color:rgba(233,213,255,.62);font:inherit;font-size:.85rem;font-weight:600;text-align:left;cursor:pointer;transition:background .12s,color .12s}
.cp-ch:hover{background:rgba(192,132,252,.1);color:#f3e8ff}
.cp-ch.on{background:rgba(192,132,252,.2);color:#fff}
.cp-ch .ic{width:18px;text-align:center;color:rgba(216,180,254,.7);font-size:.95rem}
.cp-ch .n{margin-left:auto;font-size:.62rem;color:rgba(233,213,255,.5);font-weight:600}
.cp-ch .badge{margin-left:auto;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#ec4899;color:#fff;font-size:.62rem;display:none;align-items:center;justify-content:center}
.cp-ch .badge.on{display:inline-flex}
.cp-vc.live{color:#fff}
.cp-vc.live .ic{color:#4ade80}

/* who is in voice, under the channel */
.cp-vlist{padding:.1rem 0 .3rem 1.6rem}
.cp-vm{display:flex;align-items:center;gap:.5rem;padding:.25rem .45rem;border-radius:8px;cursor:default;position:relative}
.cp-vm:hover{background:rgba(192,132,252,.08)}
.cp-vm.other{cursor:pointer}
.cp-vm .xn-av{transition:box-shadow .12s}
.cp-vm.speaking .xn-av{box-shadow:0 0 0 2px #4ade80,0 0 12px rgba(74,222,128,.7);border-radius:50%}
.cp-vm .nm{font-size:.76rem;color:rgba(243,232,255,.82);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto;min-width:0}
.cp-vm .st{font-size:.7rem;color:#f87171;flex:0 0 auto}
.cp-vm .st.cn{color:#fbbf24}

/* voice connected bar + me panel */
.cp-voicebar{margin:0 .5rem .5rem;padding:.55rem .65rem;border-radius:12px;background:rgba(74,222,128,.08);border:1px solid rgba(74,222,128,.22);display:flex;align-items:center;gap:.5rem}
.cp-voicebar[hidden]{display:none !important}
.cp-voicebar .t{flex:1 1 auto;min-width:0}
.cp-voicebar b{display:block;color:#4ade80;font-size:.74rem}
.cp-voicebar small{display:block;color:rgba(233,213,255,.55);font-size:.64rem}
.cp-me{display:flex;align-items:center;gap:.55rem;padding:.6rem .65rem;border-top:1px solid rgba(206,170,255,.14);background:rgba(8,2,20,.55)}
.cp-me .who{flex:1 1 auto;min-width:0}
.cp-me .who b{display:block;font-size:.8rem;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cp-me .who small{display:block;font-size:.62rem;color:rgba(233,213,255,.5)}
.cp-ib{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border:0;border-radius:9px;background:none;color:rgba(243,232,255,.75);cursor:pointer;transition:background .12s,color .12s}
.cp-ib:hover{background:rgba(192,132,252,.18);color:#fff}
.cp-ib.off{color:#f87171}
.cp-ib.hang{background:rgba(248,113,113,.14);color:#fca5a5}
.cp-ib.hang:hover{background:#ef4444;color:#fff}
.cp-ib svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* per-person volume */
.cp-vol{position:absolute;left:100%;top:0;z-index:30;margin-left:8px;width:200px;padding:.7rem .8rem;border-radius:12px;background:rgba(24,8,48,.97);
  border:1px solid rgba(206,170,255,.35);box-shadow:0 14px 34px rgba(0,0,0,.5);font-size:.72rem;color:#f3e8ff}
.cp-vol input{width:100%;accent-color:#c084fc}
.cp-vol button{margin-top:.4rem;width:100%;padding:.35rem;border-radius:8px;border:1px solid rgba(206,170,255,.3);background:none;color:#f3e8ff;font:inherit;cursor:pointer}

/* ---------- messages ---------- */
.dc-text a{color:#d8b4fe;text-decoration:underline;text-decoration-color:rgba(216,180,254,.4)}
.dc-text a:hover{color:#f0abfc}
.cp-at{padding:0 .2rem;border-radius:4px;background:rgba(192,132,252,.22);color:#f3e8ff;font-weight:600}
.dc-row.cp-mention{background:rgba(251,191,36,.08) !important;box-shadow:inset 3px 0 0 #fbbf24}
.cp-jump{position:absolute;left:50%;transform:translateX(-50%);bottom:86px;z-index:5;padding:.45rem 1rem;border:0;border-radius:999px;cursor:pointer;
  background:linear-gradient(135deg,#a855f7,#ec4899);color:#fff;font:700 .72rem system-ui,sans-serif;box-shadow:0 8px 24px rgba(168,85,247,.45);animation:cpup .2s ease-out}
.cp-jump[hidden]{display:none}
@keyframes cpup{from{opacity:0;transform:translate(-50%,8px)}}
.dc-main{position:relative}
.cp-emo-btn{flex:0 0 auto;width:44px;border-radius:12px;border:1px solid rgba(206,170,255,.22);background:rgba(24,8,48,.75);font-size:1.1rem;cursor:pointer}
.cp-emo-btn:hover{border-color:rgba(232,121,249,.6)}
.cp-emo{position:absolute;right:1.1rem;bottom:70px;z-index:6;display:grid;grid-template-columns:repeat(8,1fr);gap:2px;padding:.5rem;border-radius:14px;
  background:rgba(24,8,48,.97);border:1px solid rgba(206,170,255,.35);box-shadow:0 14px 34px rgba(0,0,0,.5)}
.cp-emo[hidden]{display:none}
.cp-emo button{width:34px;height:34px;border:0;border-radius:8px;background:none;font-size:1.15rem;cursor:pointer}
.cp-emo button:hover{background:rgba(192,132,252,.2)}

/* pinned line from the admin panel */
.cp-pin{display:flex;align-items:center;gap:.55rem;padding:.5rem 1.1rem;background:rgba(192,132,252,.1);border-bottom:1px solid rgba(206,170,255,.18);font-size:.8rem;color:#f3e8ff}
.cp-pin[hidden]{display:none}
.cp-pin .t{overflow-wrap:anywhere}
.dc-input:disabled{opacity:.55;cursor:not-allowed}

/* member list with frames */
.cp-pwrap{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.cp-game{font-size:.62rem;color:#86efac;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dc-person .xn-av{flex:0 0 auto}
.cp-sec{margin:.9rem .6rem .4rem;font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;color:rgba(233,213,255,.4)}

@media (max-width:980px){.cp-nav{flex-basis:200px}}
@media (max-width:760px){
  .cp-nav{position:absolute;left:0;top:0;bottom:0;z-index:4;transform:translateX(-100%);transition:transform .18s ease;background:rgba(14,4,30,.98)}
  .cp-nav.open{transform:none}
  .cp-navbtn{display:block !important}
}
.cp-navbtn{display:none;background:none;border:0;color:rgba(233,213,255,.7);font-size:1.15rem;cursor:pointer;padding:0 .3rem}

/* framed avatars on messages (chat-plus.js frameRow) */
.dc-row > .cp-msg-av{flex:0 0 38px;margin-top:.15rem}
/* ---- 2026-11-05: screen share tiles + share button state ---- */
.cp-ib.on{background:rgba(59,165,93,.35);color:#fff}
.cp-screens{position:fixed;right:16px;bottom:86px;z-index:9400;display:flex;flex-direction:column;gap:10px;max-height:calc(100vh - 140px);overflow:auto}
.cp-screens:empty{display:none}
.cp-screen{position:relative;width:min(420px,46vw);aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#000;border:1px solid rgba(150,185,255,.3);box-shadow:0 16px 40px rgba(0,0,0,.55)}
.cp-screen video{width:100%;height:100%;object-fit:contain;display:block;background:#000}
.cp-screen .cap{position:absolute;left:8px;bottom:8px;padding:2px 8px;border-radius:8px;background:rgba(0,0,0,.65);color:#fff;font:600 11px system-ui,sans-serif}
.cp-sbtn{position:absolute;right:8px;top:8px;width:28px;height:28px;border:0;border-radius:8px;background:rgba(0,0,0,.6);color:#fff;cursor:pointer}
html.xn-popout .cp-screen{width:calc(100vw - 32px)}

/* 2026-11-14: the calmer redesign was reverted on request - the purple look
   above stays. These colours only feed the newer parts (server rail,
   server members, menus, video window) so they match it. */
.dc-shell{--c-bg:rgba(14,6,30,.82);--c-side:rgba(10,3,24,.6);--c-rail:rgba(8,2,20,.75);--c-panel:rgba(24,8,48,.75);--c-line:rgba(206,170,255,.16);
  --c-text:#f3e8ff;--c-dim:rgba(233,213,255,.62);--c-faint:rgba(233,213,255,.42);--c-acc:#a855f7;--c-hover:rgba(192,132,252,.1);--c-sel:rgba(192,132,252,.2);
  display:flex !important;overflow:hidden}
/* the voice bar has more buttons now (camera): let them wrap under the label */
.cp-voicebar{flex-wrap:wrap;row-gap:.35rem}
.cp-voicebar .t{flex:1 1 100%}
.cp-voicebar small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cp-voicebar .hang{margin-left:auto}
.cp-ib.on{background:rgba(192,132,252,.3);color:#fff}

/* server rail */
.cp-rail{flex:0 0 68px;display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 0;background:var(--c-rail);border-right:1px solid var(--c-line);overflow-y:auto;scrollbar-width:none}
.cp-rlist{display:flex;flex-direction:column;align-items:center;gap:8px}
.cp-rsep{width:28px;height:2px;border-radius:2px;background:var(--c-line);flex:none}
.cp-rb{position:relative;width:46px;height:46px;flex:none;padding:0;border:0;background:none;cursor:pointer;display:grid;place-items:center;color:#4ade80;font:600 1.5rem/1 system-ui,sans-serif}
.cp-rb::before{content:"";position:absolute;left:-11px;top:50%;width:4px;height:0;border-radius:0 4px 4px 0;background:#fff;transform:translateY(-50%);transition:height .15s}
.cp-rb:hover::before{height:18px}
.cp-rb.on::before{height:36px}
.cp-sav{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:#fff;font:700 .95rem/1 system-ui,sans-serif;background:var(--c-panel);transition:border-radius .15s,background .15s;overflow:hidden;user-select:none}
.cp-home .cp-sav{background:var(--c-panel);color:#c7cbff;font-weight:800}
.cp-rb:hover .cp-sav,.cp-rb.on .cp-sav{border-radius:15px}
.cp-home.on .cp-sav,.cp-home:hover .cp-sav{background:linear-gradient(135deg,#c084fc,#7c3aed 55%,#ec4899);color:#fff}
.cp-radd{border-radius:50%;background:var(--c-panel);transition:border-radius .15s,background .15s,color .15s}
.cp-radd:hover{border-radius:15px;background:#22c55e;color:#fff}
.cp-radd svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cp-rdot{position:absolute;left:-11px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:0 4px 4px 0;background:#fff}
.cp-sav.big{width:64px;height:64px;border-radius:18px;font-size:1.3rem;border:4px solid var(--c-panel)}

/* server header + channels */
.cp-shead{width:100%;border:0;cursor:pointer;text-align:left;font:inherit;color:inherit}
.cp-shead[hidden],.cp-server[hidden],.cp-chans[hidden]{display:none !important}
.cp-shead:hover{background:var(--c-hover) !important}
.cp-shead .cp-sav{width:34px;height:34px;border-radius:10px;font-size:.8rem;flex:none}
.cp-shead > div{flex:1;min-width:0}
.cp-shead b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cp-chev{color:var(--c-dim);font-size:1.1rem}
.cp-catadd{margin-left:auto;border:0;background:none;color:var(--c-faint);font-size:1rem;line-height:1;cursor:pointer;padding:0 .3rem}
.cp-catadd:hover{color:var(--c-text)}
.dc-schan{position:relative}
.dc-schan .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dc-schan.unread{color:#fff;font-weight:700}
.dc-schan.unread::before{content:"";position:absolute;left:-.5rem;width:4px;height:8px;border-radius:0 4px 4px 0;background:#fff}
.dc-schan.live .ic{color:#4ade80}
.cp-cgear{display:none;border:0;background:none;padding:0;color:var(--c-faint);cursor:pointer;width:18px;height:18px}
.cp-cgear svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dc-schan:hover .cp-cgear,.dc-schan.on .cp-cgear{display:block}
.cp-cgear:hover{color:var(--c-text)}
.cp-vp{display:flex;align-items:center;gap:.45rem;padding:.2rem .4rem;font-size:.76rem;color:var(--c-dim)}

/* server members */
.cp-smem{flex:0 0 232px;overflow-y:auto;padding:.4rem .5rem 1rem;background:var(--c-side);border-left:1px solid var(--c-line)}
.cp-smem[hidden]{display:none}
.dc-shell.cp-in-srv .dc-side{display:none !important}
.cp-mem{display:flex;align-items:center;gap:.6rem;width:100%;padding:.35rem .5rem;border:0;border-radius:8px;background:none;color:var(--c-text);font:inherit;font-size:.84rem;text-align:left;cursor:pointer}
.cp-mem:hover{background:var(--c-hover)}
.cp-mem.off{opacity:.45}
.cp-mav{position:relative;flex:none;display:grid}
.cp-on{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border-radius:50%;background:#22c55e;border:2.5px solid var(--c-side,#0b0d12)}
.cp-mn{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.cp-rk{flex:none;padding:1px 5px;border-radius:4px;font-size:.58rem;font-weight:800;letter-spacing:.04em}
.cp-rk-owner{background:rgba(250,204,21,.16);color:#fde047}
.cp-rk-admin{background:rgba(239,68,68,.16);color:#fca5a5}
.cp-rk-mod{background:rgba(59,130,246,.18);color:#93c5fd}
.cp-to{font-size:.75rem}

/* modals */
.cp-mbg{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:16px;background:rgba(3,4,8,.7);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);animation:cpfade .12s ease-out;max-width:none !important;margin:0 !important}
@keyframes cpfade{from{opacity:0}}
.cp-modal{width:min(480px,100%);max-height:calc(100vh - 32px);overflow:auto;border-radius:14px;background:#151821;border:1px solid rgba(255,255,255,.08);box-shadow:0 30px 80px rgba(0,0,0,.6);color:#e7e9f0;font-family:inherit;animation:cppop .15s ease-out}
@keyframes cppop{from{transform:scale(.96);opacity:0}}
.cp-mhead{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.2rem .4rem}
.cp-mhead b{font-size:1.08rem}
.cp-mx{border:0;background:none;color:#9aa1b2;font-size:1.5rem;line-height:1;cursor:pointer;padding:0 .2rem}
.cp-mx:hover{color:#fff}
.cp-mbody{padding:.4rem 1.2rem 1.2rem;display:flex;flex-direction:column;gap:.7rem}
.cp-msub{margin:.4rem 0 0;font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#9aa1b2}
.cp-field{display:flex;flex-direction:column;gap:.35rem;font-size:.74rem;color:#9aa1b2}
.cp-field input{padding:.65rem .8rem;border-radius:9px;border:1px solid rgba(255,255,255,.1);background:#0b0d12;color:#e7e9f0;font:inherit;font-size:.9rem;outline:none}
.cp-field input:focus{border-color:#7c83ff}
.cp-colour input{width:60px;height:36px;padding:2px;cursor:pointer}
.cp-check{display:flex;align-items:center;gap:.6rem;font-size:.84rem;color:#c9cdd8;cursor:pointer}
.cp-check input{width:18px;height:18px;accent-color:#7c83ff}
.cp-acts{display:flex;flex-wrap:wrap;gap:.45rem}
.cp-acts.end{justify-content:flex-end}
.cp-btn{padding:.55rem .95rem;border-radius:9px;border:1px solid rgba(255,255,255,.1);background:#1d212c;color:#e7e9f0;font:inherit;font-size:.82rem;font-weight:600;cursor:pointer;transition:background .12s,filter .12s}
.cp-btn:hover{background:#262b38}
.cp-btn:disabled{opacity:.5;cursor:wait}
.cp-btn.pri{background:#7c83ff;border-color:#7c83ff;color:#fff}
.cp-btn.pri:hover{filter:brightness(1.1)}
.cp-btn.warn{color:#fcd34d}
.cp-btn.bad{color:#fca5a5;border-color:rgba(239,68,68,.35)}
.cp-btn.bad:hover{background:#dc2626;color:#fff}
.cp-or{display:flex;align-items:center;gap:.7rem;color:#6b7184;font-size:.72rem;text-transform:uppercase;letter-spacing:.1em}
.cp-or::before,.cp-or::after{content:"";flex:1;height:1px;background:rgba(255,255,255,.08)}
.cp-mprof{display:flex;align-items:center;gap:.9rem}
.cp-mprof b{display:block;font-size:1.05rem}
.cp-mprof small{color:#9aa1b2}
.cp-invite{display:flex;flex-direction:column;gap:.45rem;padding:.8rem;border-radius:10px;background:#0b0d12}
.cp-invite small{color:#9aa1b2;font-size:.74rem}
.cp-invrow{display:flex;gap:.45rem}
.cp-invrow input{flex:1;min-width:0;padding:.55rem .7rem;border-radius:8px;border:1px solid rgba(255,255,255,.1);background:#151821;color:#e7e9f0;font:inherit;font-size:.8rem}
.cp-banrow{display:flex;align-items:center;justify-content:space-between;padding:.35rem .6rem;border-radius:8px;background:#0b0d12;font-size:.84rem}
.cp-danger{display:flex;align-items:center;gap:.8rem;margin-top:.6rem;padding:.8rem;border-radius:10px;border:1px solid rgba(239,68,68,.3);font-size:.78rem;color:#fca5a5}
.cp-disc{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:.7rem}
.cp-modal:has(.cp-disc){width:min(760px,100%)}
.cp-dcard{position:relative;display:flex;flex-direction:column;gap:.35rem;padding:0 .9rem .9rem;border-radius:12px;background:#0b0d12;border:1px solid rgba(255,255,255,.06);overflow:hidden}
.cp-dcard.solo{align-items:center;text-align:center;padding-top:1rem}
.cp-dban{height:56px;margin:0 -.9rem -32px;opacity:.85}
.cp-dcard > .cp-sav{position:relative}
.cp-dcard b{font-size:.95rem}
.cp-dcard p{margin:0;font-size:.78rem;color:#9aa1b2;line-height:1.4;flex:1}
.cp-dcard small{position:relative;display:flex;align-items:center;gap:.4rem;font-size:.72rem;color:#9aa1b2}
.cp-dcard small .cp-on{position:static;border:0;width:8px;height:8px}
.cp-dcard .cp-btn{margin-top:.3rem}
.cp-empty{grid-column:1/-1;color:#9aa1b2;font-size:.85rem;text-align:center;padding:1rem}
.cp-toast{position:fixed;left:50%;bottom:28px;z-index:10060;transform:translate(-50%,20px);opacity:0;pointer-events:none;padding:.65rem 1.1rem;border-radius:10px;background:#1d212c;border:1px solid rgba(255,255,255,.1);color:#e7e9f0;font:600 .82rem system-ui,sans-serif;box-shadow:0 12px 30px rgba(0,0,0,.5);transition:all .18s;max-width:none !important;margin:0 !important}
.cp-toast.on{opacity:1;transform:translate(-50%,0)}
.cp-toast.bad{border-color:rgba(239,68,68,.5);color:#fecaca}

/* FaceTime-style video stage */
.cp-cam{position:fixed;right:20px;bottom:90px;z-index:9500;width:min(560px,calc(100vw - 40px));display:flex;flex-direction:column;border-radius:20px;background:rgba(10,11,16,.92);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.1);box-shadow:0 30px 80px rgba(0,0,0,.6);overflow:hidden;max-width:none !important;margin:0 !important}
.cp-cam[hidden]{display:none}
.cp-cam.big{inset:0 !important;width:100vw;height:100vh;border-radius:0;z-index:10040}
.cp-cam.mini{width:240px}
.cp-cam.mini .cp-cam-bar,.cp-cam.mini .cp-face.self{display:none}
.cp-cam-top{display:flex;align-items:center;gap:.3rem;padding:.4rem .5rem .4rem .9rem;cursor:grab;touch-action:none}
.cp-cam-t{flex:1;font:600 .78rem system-ui,sans-serif;color:#c9cdd8}
.cp-cam-grid{position:relative;flex:1;display:grid;gap:6px;padding:0 6px;min-height:200px;aspect-ratio:4/3}
.cp-cam.big .cp-cam-grid{aspect-ratio:auto}
.cp-cam-grid[data-n="2"]{grid-template-columns:1fr 1fr}
.cp-cam-grid[data-n="3"],.cp-cam-grid[data-n="4"]{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.cp-cam-grid[data-n="5"],.cp-cam-grid[data-n="6"],.cp-cam-grid[data-n="7"],.cp-cam-grid[data-n="8"],.cp-cam-grid[data-n="9"]{grid-template-columns:repeat(3,1fr)}
.cp-face{position:relative;border-radius:14px;overflow:hidden;background:#1d212c;min-height:0}
.cp-face video{width:100%;height:100%;object-fit:cover;display:block}
.cp-face.paused video{opacity:.25}
.cp-face-n{position:absolute;left:10px;bottom:10px;padding:3px 9px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font:600 .72rem system-ui,sans-serif}
/* your own picture: small, mirrored, in the corner */
.cp-face.self{position:absolute;right:14px;bottom:14px;width:28%;aspect-ratio:3/4;z-index:2;border:2px solid rgba(255,255,255,.25);box-shadow:0 8px 24px rgba(0,0,0,.5)}
.cp-face.self video{transform:scaleX(-1)}
.cp-face.self .cp-face-n{display:none}
.cp-cam.solo .cp-face.self{position:relative;inset:auto;width:100%;aspect-ratio:auto;border:0;box-shadow:none}
.cp-cam-bar{display:flex;justify-content:center;gap:.7rem;padding:.8rem}
.cp-cam-bar .cp-ib{width:46px;height:46px;flex-basis:46px;border-radius:50%;background:rgba(255,255,255,.1);color:#fff}
.cp-cam-bar .cp-ib:hover{background:rgba(255,255,255,.2)}
.cp-cam-bar .cp-ib.off{background:#fff;color:#111}
.cp-cam-bar .cp-ib.hang{background:#ef4444}
.cp-cam-bar .cp-ib svg{width:20px;height:20px}

@media (max-width:1100px){.cp-smem{display:none !important}}
@media (max-width:760px){
  .cp-rail{position:absolute;left:0;top:0;bottom:0;z-index:5;transform:translateX(-100%);transition:transform .18s ease}
  .dc-shell:has(.cp-nav.open) .cp-rail{transform:none}
  .cp-nav.open{left:68px}
  .dc-shell{height:calc(100dvh - 120px) !important;width:100vw !important;border-radius:0 !important}
}

/* 2026-11-14: search is a visible box in the header; emoji suggestions show pictures */
.dc-hb.dc-hsearch{width:auto !important;min-width:170px;display:inline-flex !important;align-items:center;gap:.45rem;padding:0 .7rem !important;border-radius:9px !important;background:rgba(24,8,48,.75) !important;border:1px solid rgba(206,170,255,.22) !important;color:rgba(233,213,255,.6) !important;justify-content:flex-start}
.dc-hb.dc-hsearch:hover{border-color:rgba(232,121,249,.55) !important;color:#f3e8ff !important}
.dc-hsearch svg{width:15px;height:15px;flex:none}
.dc-hsearch-t{font-size:.78rem;font-weight:500;flex:1;text-align:left}
.dc-hsearch-k{font:600 .6rem system-ui,sans-serif;padding:1px 5px;border-radius:4px;background:rgba(192,132,252,.18);color:rgba(233,213,255,.7)}
.dc-ac-img{width:22px;height:22px;object-fit:contain;flex:none}
@media (max-width:900px){.dc-hb.dc-hsearch{min-width:0}.dc-hsearch-t,.dc-hsearch-k{display:none}}

/* Donor badge (2026-11-14) */
.dc-tag.dc-don{background:linear-gradient(135deg,#a855f7,#ec4899) !important;color:#fff !important;border:0 !important;font-weight:800;letter-spacing:.02em;box-shadow:0 0 12px rgba(236,72,153,.35);animation:dcdon 3s ease-in-out infinite}
@keyframes dcdon{50%{box-shadow:0 0 18px rgba(236,72,153,.6)}}

/* =====================================================================
   Videos, audio and voice messages (2026-11-14). Cards borrow Orbit's look:
   near-black panels, hairline grey borders, soft 14px corners and a single
   white accent (the round play button), so media reads clean on the purple.
   ===================================================================== */
.dc-medias{display:flex;flex-direction:column;gap:8px;margin-top:6px;max-width:440px}
.dc-media{position:relative;border-radius:14px;background:#121214;border:1px solid #26262b;box-shadow:0 10px 30px rgba(0,0,0,.35);overflow:hidden;color:#f2f2f4}
.dc-media.broken{opacity:.6}
.dc-vid video{display:block;width:100%;max-height:340px;background:#000}
.dc-mfoot{display:flex;align-items:center;gap:8px;padding:8px 10px 8px 12px;font-size:.78rem}
.dc-mic{font-size:.9rem}
.dc-mname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:#f2f2f4}
.dc-mdl{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:8px;color:#b6b6bd !important;transition:background .15s,color .15s}
.dc-mdl:hover{background:#1e1e22;color:#fff !important}
.dc-mdl svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dc-mspoil{position:absolute;inset:0;border:0;background:rgba(10,10,11,.92);backdrop-filter:blur(18px);color:#b6b6bd;font:700 .72rem system-ui,sans-serif;letter-spacing:.12em;cursor:pointer}
.dc-aud{display:flex;align-items:center;gap:12px;padding:10px 10px 10px 10px;min-width:280px}
.dc-aplay{width:42px !important;height:42px !important;flex:none;border-radius:50% !important;background:#f2f2f4 !important;color:#111 !important;border:0 !important;display:grid !important;place-items:center;cursor:pointer;transition:transform .12s,background .15s;padding:0 !important}
.dc-aplay:hover{background:#fff !important;transform:scale(1.06)}
.dc-aplay:active{transform:scale(.94)}
.dc-aplay svg{width:18px;height:18px;fill:#111;stroke:none}
.dc-amid{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.dc-atop{display:flex;align-items:baseline;gap:8px}
.dc-atime{font-size:.7rem;color:#7a7a84;font-variant-numeric:tabular-nums;flex:none}
.dc-atrack{position:relative;height:26px;cursor:pointer}
.dc-abars{position:absolute;inset:0;display:flex;align-items:center;gap:2px}
.dc-abars i{flex:1;min-width:2px;border-radius:2px;background:#34343b}
.dc-afill{position:absolute;inset:0;clip-path:inset(0 100% 0 0);transition:clip-path .12s linear}
.dc-afill .dc-abars i{background:#f2f2f4}
.dc-aud.vm .dc-afill .dc-abars i{background:linear-gradient(#e9d5ff,#c084fc)}
.dc-aspeed{flex:none;min-width:38px;height:26px;padding:0 6px !important;border-radius:7px !important;background:#1e1e22 !important;border:1px solid #34343b !important;color:#b6b6bd !important;font:700 .68rem system-ui,sans-serif !important;cursor:pointer}
.dc-aspeed:hover{color:#fff !important}
.dc-aud.spoiler .dc-amid{filter:blur(6px)}
.dc-aud.playing{border-color:#45454f}
/* tray chips for media */
.dc-chip video{width:100%;height:100%;object-fit:cover;display:block}
.dc-chip.aud{background:#121214;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.dc-chip-ai{font-size:1.5rem}
.dc-chip-k{position:absolute;left:4px;right:4px;bottom:4px;padding:1px 5px;border-radius:5px;background:rgba(10,10,11,.8);color:#f2f2f4;font:600 .6rem system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
/* voice message recorder */
.dc-recbar{display:flex;align-items:center;gap:10px;margin-bottom:8px;padding:8px 8px 8px 14px;border-radius:14px;background:#121214;border:1px solid #26262b;color:#f2f2f4;font-size:.82rem}
.dc-recbar[hidden]{display:none}
.dc-recdot{width:10px;height:10px;border-radius:50%;background:#ff5a5a;box-shadow:0 0 0 4px rgba(255,90,90,.18);animation:dcrec 1.2s ease-in-out infinite}
@keyframes dcrec{50%{opacity:.35}}
.dc-recl{font-weight:600}
.dc-rect{color:#b6b6bd;font-variant-numeric:tabular-nums}
.dc-reclvl{flex:1;height:4px;border-radius:2px;background:#26262b;overflow:hidden}
.dc-reclvl i{display:block;height:100%;width:0;background:#f2f2f4;transition:width .08s}
.dc-recx,.dc-recsend{width:36px !important;height:36px !important;border-radius:10px !important;display:grid !important;place-items:center;padding:0 !important;cursor:pointer}
.dc-recx{background:transparent !important;border:1px solid #34343b !important;color:#b6b6bd !important}
.dc-recsend{background:#f2f2f4 !important;border:0 !important;color:#111 !important}
.dc-recx svg,.dc-recsend svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* =====================================================================
   Servers page (2026-11-14): the compass on the rail. Black page, dark
   banner cards with a square icon over the banner, a blue pill button,
   underline tabs, and a pop-up per server.
   ===================================================================== */
.cp-groups{flex:1 1 auto;min-width:0;overflow-y:auto;background:#000;color:#f2f2f4;padding:42px 48px 60px;font-family:'Inter','Segoe UI',system-ui,sans-serif}
.cp-groups[hidden]{display:none}
.dc-shell.cp-show-groups .cp-nav,.dc-shell.cp-show-groups .dc-main,.dc-shell.cp-show-groups .cp-smem,.dc-shell.cp-show-groups .dc-side{display:none !important}
.cp-rb.cp-radd.on{border-radius:15px;background:#0b6cff;color:#fff}
.cp-ghead{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}
.cp-ghead h1{margin:0;font-size:2.3rem;font-weight:800;letter-spacing:-.02em;color:#fff}
.cp-ghead p{margin:.35rem 0 0;color:#a3a3ab;font-size:.95rem}
.cp-gadd{border:0;border-radius:999px;padding:.7rem 1.25rem;background:#0b6cff;color:#04122b;font:inherit;font-weight:700;font-size:.9rem;cursor:pointer;transition:filter .15s,transform .1s}
.cp-gadd:hover{filter:brightness(1.12)}
.cp-gadd:active{transform:scale(.97)}
.cp-gbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:26px 0 22px}
.cp-gtabs{display:flex;gap:6px;border-bottom:1px solid #26262b}
.cp-gtabs button{border:0;background:none;color:#a3a3ab;font:inherit;font-size:.92rem;font-weight:500;padding:.6rem .85rem;margin-bottom:-1px;border-bottom:2px solid transparent;cursor:pointer;transition:color .15s}
.cp-gtabs button:hover{color:#fff}
.cp-gtabs button.on{color:#fff;border-bottom-color:#fff}
.cp-gsearch{width:min(320px,100%);padding:.75rem 1rem;border-radius:10px;border:1px solid #2a2a30;background:#141416;color:#fff;font:inherit;font-size:.9rem;outline:none}
.cp-gsearch:focus{border-color:#4a4a55}
.cp-gsearch::placeholder{color:#6f6f78}
.cp-ggrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,270px));gap:18px}
.cp-gcard{position:relative;display:flex;flex-direction:column;padding:0;text-align:left;border-radius:16px;background:#141414;border:1px solid #26262b;color:inherit;font:inherit;cursor:pointer;overflow:hidden;transition:transform .2s cubic-bezier(.3,1.4,.5,1),border-color .15s,box-shadow .2s}
.cp-gcard:hover{transform:translateY(-3px);border-color:#3a3a42;box-shadow:0 18px 40px rgba(0,0,0,.6)}
.cp-gban{height:130px;background-size:cover;background-position:center;flex:none}
.cp-gico{position:absolute;left:16px;top:88px;width:64px;height:64px;border-radius:16px;background:#1c1c20;border:3px solid #141414;display:grid;place-items:center;overflow:hidden;color:#fff;font-weight:800;font-size:1.3rem}
.cp-gico img,.cp-gmico img{width:100%;height:100%;object-fit:cover;display:block}
.cp-gbody{display:flex;flex-direction:column;gap:6px;padding:44px 16px 16px;flex:1}
.cp-gbody h3{margin:0;font-size:1.02rem;font-weight:800;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cp-gbody p{margin:0;color:#b4b4bc;font-size:.84rem;line-height:1.45;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.4em}
.cp-gfoot{display:flex;align-items:center;gap:7px;margin-top:10px;color:#85858f;font-size:.76rem}
.cp-gdot{width:7px;height:7px;border-radius:50%;background:#22c55e;flex:none}
.cp-gempty{grid-column:1/-1;padding:60px 20px;text-align:center;color:#85858f}
.cp-gempty b{display:block;color:#fff;font-size:1rem;margin-bottom:4px}
/* pop-up */
.cp-gmbg{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.72);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);animation:cpfade .14s ease-out;max-width:none !important;margin:0 !important}
.cp-gmodal{width:min(760px,100%);max-height:calc(100vh - 32px);overflow:auto;border-radius:24px;background:#141414;border:1px solid #2a2a30;box-shadow:0 30px 90px rgba(0,0,0,.7);color:#f2f2f4;padding:16px 0 0;font-family:'Inter','Segoe UI',system-ui,sans-serif;animation:cppop .16s ease-out}
.cp-gmban{position:relative;height:170px;margin:0 16px;border-radius:16px;background-size:cover;background-position:center}
.cp-gmx{position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:50%;border:0;background:rgba(10,10,14,.75);color:#fff;font-size:1.3rem;line-height:1;cursor:pointer}
.cp-gmx:hover{background:#000}
.cp-gmtop{display:flex;align-items:flex-end;gap:14px;margin:-34px 0 0 34px;position:relative}
.cp-gmico{width:72px;height:72px;border-radius:18px;background:#1c1c20;border:4px solid #141414;display:grid;place-items:center;overflow:hidden;color:#fff;font-weight:800;font-size:1.5rem;flex:none}
.cp-gmtop h2{margin:0;font-size:1.25rem;font-weight:800;color:#fff}
.cp-gmtop small{color:#85858f;font-size:.8rem}
.cp-gmdesc{margin:14px 20px 4px;color:#c9c9d0;font-size:.95rem;line-height:1.5}
.cp-gmby{margin:0 20px 18px;color:#6f6f78;font-size:.8rem}
.cp-gmacts{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:14px 18px;border-top:1px solid #26262b}
.cp-gmb{border:1px solid #2e2e35;border-radius:999px;padding:.6rem 1.1rem;background:#1f1f23;color:#fff;font:inherit;font-weight:600;font-size:.88rem;cursor:pointer;transition:background .15s,filter .15s}
.cp-gmb:hover{background:#2a2a30}
.cp-gmb.pri{background:#0b6cff;border-color:#0b6cff;color:#fff}
.cp-gmb.pri:hover{filter:brightness(1.12)}
.cp-gmb.bad{color:#ff6b6b}
.cp-gmb:disabled{opacity:.6;cursor:wait}
/* banner / icon picture rows in Add / Edit */
.cp-picrow{display:flex;align-items:center;gap:8px}
.cp-piclbl{flex:0 0 92px;font-size:.74rem;color:#9aa1b2}
.cp-picpv{background:#0b0d12 center/cover no-repeat;border:1px solid rgba(255,255,255,.1);flex:none}
.cp-picpv.ban{width:120px;height:44px;border-radius:8px}
.cp-picpv.ico{width:44px;height:44px;border-radius:12px}
.cp-picpv.empty{background-image:repeating-linear-gradient(45deg,#15161c 0 6px,#1b1c24 6px 12px)}
@media (max-width:760px){.cp-groups{padding:24px 16px 40px}.cp-ggrid{grid-template-columns:1fr}.cp-gmtop{margin-left:20px}}
.cp-gmtop > div:not(.cp-gmico){padding-top:40px}
