:root{
  /* Céu: cinzas neutros (estilo app de chat) com azul-céu como cor da marca. O Pip, o mascote, é jade. */
  --bg-base:#16171a;
  --bg-main:#212226;
  --bg-surface:#2a2b30;
  --bg-raised:#303137;
  --bg-input:#1b1c1f;
  --bg-hover:#27282d;
  --bg-active:#35363d;
  --bg-tab:#3c3d44;
  --line:#26272c;
  --line-strong:#34353b;
  --text:#f2f3f5;
  --text-2:#d4d6da;
  --text-muted:#9a9ca3;
  --text-faint:#686a71;
  --brand:#3f9cf5;
  --brand-hover:#5fb0fa;
  --on-brand:#fff;
  --brand-ink:#6cb8ff;
  --brand-soft:rgba(63,156,245,.16);
  --mention-ink:#a9d5ff;
  --sky:#63c9f5;
  --sun:#ffbe55;
  --coral:#ff806e;
  --jade:#55e0b2;
  --green:#23a55a;
  --green-hover:#1e8e4e;
  --red:#f2555a;
  --yellow:#ffbe55;
  --link:#6cb8ff;
  --status-online:#23a55a;
  --status-idle:#f0b232;
  --status-dnd:#f2555a;
  --status-off:#80848e;
  --font:"DM Sans","Segoe UI",system-ui,sans-serif;
  --font-head:"Outfit","DM Sans",system-ui,sans-serif;
  --slant:0px;
  --r-btn:12px;
  --r-card:16px;
  --r-field:10px;
  --rail:72px;
  --side:304px;
  --title:32px;
  --head:48px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;background:var(--bg-base);color:var(--text-2);font-family:var(--font);font-size:16px;overflow:hidden;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input,textarea{font:inherit;color:inherit;background:none;border:0;outline:0}
svg{display:block;flex:none}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:var(--bg-tab);border-radius:8px;border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-track{background:transparent}
.thin::-webkit-scrollbar{width:4px}
.thin::-webkit-scrollbar-thumb{background:transparent;border:0}
.thin:hover::-webkit-scrollbar-thumb{background:var(--bg-tab)}

.app{position:relative;height:100vh;display:grid;grid-template-columns:var(--rail) var(--side) minmax(0,1fr);grid-template-rows:var(--title) minmax(0,1fr)}

/* barra de título */
.titlebar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;background:var(--bg-base);padding:0 8px 0 12px;user-select:none}
.tb-nav,.tb-actions{display:flex;align-items:center;gap:4px;min-width:120px}
.tb-actions{justify-content:flex-end;gap:12px;padding-right:96px}
.tb-btn{width:24px;height:24px;display:grid;place-items:center;color:var(--text-muted);border-radius:4px}
.tb-btn:hover{color:var(--text-2)}
.tb-btn:disabled{color:var(--text-faint);cursor:default}
.tb-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--text)}
.tb-title svg{color:var(--text-2)}

/* barra de servidores */
.rail{grid-row:2;background:var(--bg-base);overflow-y:auto;overflow-x:hidden;padding:0 0 88px;display:flex;flex-direction:column;align-items:center;gap:8px;scrollbar-width:none}
.rail::-webkit-scrollbar{display:none}
.rail-item{position:relative;width:var(--rail);display:flex;justify-content:center}
.rail-pill{position:absolute;left:0;top:50%;width:4px;height:8px;margin-top:-4px;background:var(--text);border-radius:0 4px 4px 0;transform:scaleY(0) translateX(-4px);transition:transform .15s,height .15s,margin .15s}
.rail-item.unread .rail-pill{transform:none}
.rail-item:hover .rail-pill{transform:none;height:20px;margin-top:-10px}
.rail-item.active .rail-pill{transform:none;height:40px;margin-top:-20px}
.rail-icon{position:relative;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--bg-surface);color:var(--text-2);font-size:14px;font-weight:600;letter-spacing:-.02em;transition:background .15s,color .15s}
.rail-icon img,.rail-icon .art{width:100%;height:100%;border-radius:inherit;object-fit:cover}
.rail-item:hover .rail-icon,.rail-item.active .rail-icon{background:var(--brand);color:var(--on-brand)}
.rail-item.has-art:hover .rail-icon,.rail-item.has-art.active .rail-icon{background:var(--bg-surface)}
.rail-item.green .rail-icon{color:var(--status-online)}
.rail-item.green:hover .rail-icon{background:var(--status-online);color:#fff}
.rail-sep{width:32px;height:1px;background:var(--line-strong);flex:none}
.badge{min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--red);color:#fff;font-size:12px;font-weight:700;line-height:16px;text-align:center;display:inline-block}
.rail-icon .badge{position:absolute;right:-4px;bottom:-4px;box-shadow:0 0 0 3px var(--bg-base);font-size:11px}
.rail-icon .badge.wide{right:-8px}
.rail-icon .badge.pill-novo{right:auto;left:-18px;bottom:6px;font-size:10px;padding:0 6px;height:18px;line-height:18px;border-radius:9px}

/* lateral */
.sidebar{grid-row:2;background:var(--bg-base);display:flex;flex-direction:column;min-height:0;border-top-left-radius:8px;border-top:1px solid var(--line);border-left:1px solid var(--line)}
.side-head{height:var(--head);flex:none;display:flex;align-items:center;padding:0 8px;border-bottom:1px solid var(--line)}
.find-btn{width:100%;height:32px;border-radius:8px;background:var(--bg-surface);border:1px solid var(--line-strong);color:var(--text-2);font-size:14px;font-weight:600;text-align:center}
.find-btn:hover{background:var(--bg-raised)}
.guild-head{height:var(--head);flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--line);font-size:16px;font-weight:600;color:var(--text);cursor:pointer}
.guild-head:hover{background:var(--bg-hover)}
.side-scroll{flex:1;overflow-y:auto;overflow-x:hidden;padding:11px 0 80px}
.nav-item{position:relative;height:36px;margin:0 8px 4px;padding:0 12px;border-radius:8px;display:flex;align-items:center;gap:8px;color:var(--text-muted);font-size:16px;font-weight:500;cursor:pointer;width:calc(100% - 16px);text-align:left}
.nav-item:hover{background:var(--bg-hover);color:var(--text-2)}
.nav-item.active{background:var(--bg-active);color:var(--text)}
.nav-item .grow{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-item svg{width:20px;height:20px}
.tag-novo{height:16px;padding:0 6px;border-radius:8px;background:var(--brand);color:var(--on-brand);font-size:10px;font-weight:800;line-height:16px;letter-spacing:.02em}
.side-divider{height:1px;margin:14px 8px 8px;background:var(--line-strong)}
.side-label{height:28px;margin:0 8px;padding:0 8px;display:flex;align-items:center;justify-content:space-between;color:var(--text-muted);font-size:13px;font-weight:500}
.side-label:hover{color:var(--text-2)}
.side-label button{width:16px;height:16px;color:var(--text-muted)}
.side-label button:hover{color:var(--text)}
.dm{position:relative;height:42px;margin:0 8px 2px;padding:0 8px;border-radius:8px;display:flex;align-items:center;gap:12px;cursor:pointer;color:var(--text-muted);width:calc(100% - 16px);text-align:left}
.dm:hover{background:var(--bg-hover);color:var(--text-2)}
.dm.active{background:var(--bg-active);color:var(--text)}
.dm.unread{color:var(--text)}
.dm.unread::before{content:"";position:absolute;left:-8px;top:50%;width:4px;height:8px;margin-top:-4px;border-radius:0 4px 4px 0;background:var(--text)}
.dm .who{flex:1;min-width:0;line-height:1.15}
.dm .name{display:flex;align-items:center;gap:4px;font-size:16px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm .sub{font-size:12px;font-weight:500;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm .x{display:none;color:var(--text-muted)}
.dm:hover .x{display:block}

/* avatar */
.av{position:relative;flex:none;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:600}
.av .ini{width:100%;height:100%;border-radius:50%;display:grid;place-items:center;overflow:hidden}
.av .st{position:absolute;right:-3px;bottom:-3px;width:16px;height:16px;border-radius:50%;background:var(--bg-base);display:grid;place-items:center}
.av .st i{display:block;width:10px;height:10px;border-radius:50%}
.st-online i{background:var(--status-online)}
.st-idle i{background:var(--status-idle);-webkit-mask:radial-gradient(circle at 25% 25%,transparent 3px,#000 3.5px);mask:radial-gradient(circle at 25% 25%,transparent 3px,#000 3.5px)}
.st-dnd i{background:var(--status-dnd);-webkit-mask:linear-gradient(#000,#000) ,linear-gradient(#000,#000);position:relative}
.st-dnd i::after{content:"";position:absolute;left:2px;right:2px;top:4px;height:2px;border-radius:1px;background:var(--bg-base)}
.st-off i{background:transparent;box-shadow:inset 0 0 0 3px var(--status-off)}

/* tags */
.tag{height:16px;padding:0 4px;border-radius:4px;background:var(--brand);color:var(--on-brand);font-size:10px;font-weight:700;line-height:16px;display:inline-flex;align-items:center;gap:2px;letter-spacing:.02em;flex:none}

/* conteúdo */
.content{grid-row:2;grid-column:3;background:var(--bg-main);display:flex;flex-direction:column;min-width:0;min-height:0;border-top:1px solid var(--line)}
.c-head{height:var(--head);flex:none;display:flex;align-items:center;gap:8px;padding:0 8px 0 16px;border-bottom:1px solid var(--line)}
.c-head .title{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:600;color:var(--text);white-space:nowrap}
.c-head .title svg{color:var(--text-muted)}
.c-head .dot{width:4px;height:4px;border-radius:50%;background:var(--text-faint);margin:0 8px 0 4px}
.c-head.home{padding-left:24px;gap:4px}
.c-head .topic{flex:1;min-width:0;font-size:14px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:8px;margin-left:4px;border-left:1px solid var(--line-strong)}
.c-head .spacer{flex:1}
.c-head .icons{display:flex;align-items:center;gap:16px;padding-right:8px;color:var(--text-muted)}
.c-head .icons button{width:24px;height:24px;display:grid;place-items:center;color:var(--text-muted)}
.c-head .icons button:hover,.c-head .icons button.on{color:var(--text)}
.tab{height:32px;padding:0 8px;border-radius:8px;font-size:16px;font-weight:500;color:var(--text-muted);display:inline-flex;align-items:center;gap:8px}
.tab:hover{background:var(--bg-hover);color:var(--text-2)}
.tab.active{background:var(--bg-tab);color:var(--text)}
.tab.primary{background:var(--brand);color:var(--on-brand);margin-left:4px}
.tab.primary:hover{background:var(--brand-hover)}
.tab.primary.active{background:transparent;color:var(--brand-ink)}
.head-search{width:244px;height:32px;border-radius:8px;background:var(--bg-input);border:1px solid var(--line-strong);display:flex;align-items:center;padding:0 8px;gap:6px;color:var(--text-muted);font-size:14px}
.head-search input{flex:1;min-width:0;font-size:14px}
.head-search input::placeholder{color:var(--text-muted)}

.c-body{flex:1;min-height:0;display:flex}
.c-main{flex:1;min-width:0;display:flex;flex-direction:column}

/* amigos */
.friends{flex:1;overflow-y:auto;padding:12px 16px 16px 24px}
.searchbox{height:40px;border-radius:8px;background:var(--bg-input);border:1px solid var(--line-strong);display:flex;align-items:center;gap:8px;padding:0 12px;color:var(--text-muted)}
.searchbox input{flex:1;font-size:16px;color:var(--text)}
.searchbox input::placeholder{color:var(--text-muted)}
.list-title{margin:24px 0 17px;font-size:14px;font-weight:600;color:var(--text-2)}
.friend{position:relative;height:62px;display:flex;align-items:center;gap:12px;padding:0 10px 0 8px;margin:0 10px 0 -8px;border-radius:8px;cursor:pointer}
.friend::before{content:"";position:absolute;left:13px;right:11px;top:0;height:1px;background:var(--line-strong)}
.friend:hover{background:var(--bg-hover)}
.friend:hover::before,.friend:hover+.friend::before{opacity:0}
.friend .round-btn+.round-btn{margin-left:-2px}
.friend .who{flex:1;min-width:0;line-height:1.25}
.friend .name{font-size:16px;font-weight:600;color:var(--text)}
.friend .tagline{display:none;font-size:14px;color:var(--text-muted);margin-left:4px;font-weight:500}
.friend:hover .tagline{display:inline}
.friend .sub{font-size:14px;color:var(--text-muted)}
.round-btn{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:var(--text-2)}
.friend:hover .round-btn{background:var(--bg-base)}
.round-btn:hover{color:var(--text)}
.empty{flex:1;display:grid;place-items:center;text-align:center;color:var(--text-muted);font-size:16px;padding:40px}
.empty .art{width:200px;height:140px;margin:0 auto 32px;opacity:.9}
.add-friend{padding:20px 30px;border-bottom:1px solid var(--line)}
.add-friend h2{font-size:20px;font-weight:600;color:var(--text);margin-bottom:8px}
.add-friend p{font-size:14px;color:var(--text-muted);margin-bottom:16px}
.add-row{height:52px;border-radius:8px;background:var(--bg-input);border:1px solid var(--line-strong);display:flex;align-items:center;padding:0 12px 0 16px;gap:12px}
.add-row:focus-within{border-color:var(--link)}
.add-row input{flex:1;font-size:16px;color:var(--text)}
.add-row input::placeholder{color:var(--text-faint)}
.btn{height:32px;padding:0 16px;border-radius:8px;background:var(--brand);color:var(--on-brand);font-size:14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.btn:hover{background:var(--brand-hover)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.green{background:var(--green);color:#fff}
.btn.green:hover{background:var(--green-hover)}
.btn.gray{background:var(--bg-tab);color:var(--text)}
.btn.gray:hover{background:var(--bg-active)}

/* ativo agora */
.now{width:360px;flex:none;border-left:1px solid var(--line);padding:12px 16px 16px;overflow-y:auto}
.now h2{font-size:20px;font-weight:700;color:var(--text);margin:0 0 8px}
.now-card{background:var(--bg-surface);border-radius:8px;padding:16px;text-align:center}
.now-card b{display:block;font-size:16px;font-weight:700;color:var(--text);margin-bottom:4px}
.now-card span{font-size:14px;color:var(--text-muted);line-height:1.35}
.act{background:var(--bg-surface);border-radius:8px;padding:16px;margin-bottom:8px;text-align:left;display:flex;gap:12px;align-items:center;cursor:pointer}
.act:hover{background:var(--bg-raised)}
.act .who{line-height:1.3;min-width:0}
.act .name{font-size:16px;font-weight:600;color:var(--text)}
.act .sub{font-size:13px;color:var(--text-muted)}

/* canais */
.cat{display:flex;align-items:center;gap:2px;height:24px;margin:16px 8px 2px 4px;padding:0 8px 0 4px;color:var(--text-muted);font-size:13px;font-weight:600;cursor:pointer;width:calc(100% - 12px);text-align:left}
.cat:hover{color:var(--text-2)}
.cat .grow{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cat svg.chev{width:12px;height:12px;transition:transform .15s}
.cat.closed svg.chev{transform:rotate(-90deg)}
.cat .plus{opacity:0}
.cat:hover .plus{opacity:1}
.chan{position:relative;height:34px;margin:0 8px 2px;padding:0 8px;border-radius:8px;display:flex;align-items:center;gap:6px;color:var(--text-muted);font-size:16px;font-weight:500;cursor:pointer;width:calc(100% - 16px);text-align:left}
.chan svg{width:20px;height:20px;color:var(--text-faint)}
.chan .grow{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chan:hover{background:var(--bg-hover);color:var(--text-2)}
.chan.active{background:var(--bg-active);color:var(--text)}
.chan.unread{color:var(--text)}
.chan.unread::before{content:"";position:absolute;left:-8px;top:50%;width:4px;height:8px;margin-top:-4px;border-radius:0 4px 4px 0;background:var(--text)}
.chan .acts{display:none;gap:6px;color:var(--text-muted)}
.chan:hover .acts,.chan.active .acts{display:flex}
.chan .acts svg{width:16px;height:16px}
.voice-users{margin:0 8px 4px 36px}
.vu{height:30px;display:flex;align-items:center;gap:8px;padding:0 8px;border-radius:6px;color:var(--text-muted);font-size:14px;font-weight:500}
.vu:hover{background:var(--bg-hover);color:var(--text-2)}
.vu .live{margin-left:auto;background:var(--red);color:#fff;font-size:10px;font-weight:700;border-radius:4px;padding:0 4px;line-height:15px}
.boost{margin:8px 8px 0;padding:10px 12px;border-radius:8px;background:var(--bg-surface);display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-muted)}
.boost b{color:var(--text-2);font-weight:600}

/* chat */
.messages{flex:1;overflow-y:auto;overflow-x:hidden;padding:0 0 28px;display:flex;flex-direction:column}
.messages .fill{flex:1}
.messages>*{flex-shrink:0}
.welcome{padding:16px 16px 8px}
.welcome .big{width:68px;height:68px;border-radius:50%;background:var(--bg-tab);display:grid;place-items:center;color:var(--text);margin-bottom:8px}
.welcome h1{font-size:32px;font-weight:700;color:var(--text);line-height:1.25;margin-bottom:8px}
.welcome p{font-size:16px;color:var(--text-muted)}
.newbar{position:sticky;top:0;z-index:2;margin:0 8px;height:32px;padding:0 12px 0 16px;border-radius:0 0 8px 8px;background:var(--brand);color:var(--on-brand);font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:space-between;cursor:pointer}
.day{display:flex;align-items:center;gap:8px;margin:24px 16px 8px;font-size:12px;font-weight:600;color:var(--text-muted)}
.day::before,.day::after{content:"";flex:1;height:1px;background:var(--line-strong)}
.day.new{color:var(--red)}
.day.new::before,.day.new::after{background:var(--red)}
.msg{position:relative;padding:2px 48px 2px 72px;min-height:22px}
.msg.head{margin-top:16px;min-height:44px}
.msg:hover{background:var(--bg-hover)}
.msg .av{position:absolute;left:16px;top:4px;cursor:pointer}
.msg .meta{display:flex;align-items:baseline;gap:8px;line-height:22px}
.msg .author{font-size:16px;font-weight:600;color:var(--text);cursor:pointer}
.msg .author:hover{text-decoration:underline}
.msg .time{font-size:12px;font-weight:500;color:var(--text-muted)}
.msg .stamp{position:absolute;left:0;width:72px;text-align:center;top:5px;font-size:11px;color:var(--text-muted);display:none}
.msg:not(.head):hover .stamp{display:block}
.msg .text{font-size:16px;line-height:22px;color:var(--text-2);white-space:pre-wrap;word-wrap:break-word}
.msg .text a{color:var(--link);text-decoration:none}
.msg .text a:hover{text-decoration:underline}
.msg .text .mention{background:var(--brand-soft);color:var(--mention-ink);border-radius:3px;padding:0 2px;font-weight:500}
.msg .text code{font-family:Consolas,monospace;font-size:14px;background:var(--bg-surface);border-radius:4px;padding:1px 4px}
.msg .tools{position:absolute;right:16px;top:-16px;display:none;background:var(--bg-surface);border:1px solid var(--line-strong);border-radius:8px;padding:2px;z-index:1}
.msg:hover .tools{display:flex}
.msg .tools button{width:32px;height:32px;display:grid;place-items:center;color:var(--text-muted);border-radius:6px}
.msg .tools button:hover{background:var(--bg-raised);color:var(--text)}
.reacts{display:flex;gap:4px;margin-top:4px;flex-wrap:wrap}
.react{height:24px;padding:0 6px;border-radius:8px;background:var(--bg-surface);border:1px solid transparent;display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--text-muted);font-weight:600}
.react.me{background:var(--brand-soft);border-color:var(--brand);color:var(--mention-ink)}
.react:hover{border-color:var(--text-faint)}
.embed{max-width:432px;margin-top:4px;background:var(--bg-surface);border:1px solid var(--line-strong);border-left:4px solid var(--brand);border-radius:4px;padding:12px 16px 16px 12px}
.embed .e-title{font-size:16px;font-weight:600;color:var(--text);margin-bottom:6px}
.embed .e-desc{font-size:14px;line-height:18px;color:var(--text-2);white-space:pre-wrap}
.invite{width:300px;margin-top:6px;background:var(--bg-surface);border:1px solid var(--line-strong);border-radius:12px;overflow:hidden}
.invite .banner{height:72px;background:repeating-linear-gradient(-62deg,var(--brand) 0 14px,var(--bg-base) 14px 30px)}
.invite .in{padding:0 16px 16px}
.invite .ic{width:64px;height:64px;border-radius:16px;margin-top:-32px;border:4px solid var(--bg-surface);display:grid;place-items:center;font-weight:700;color:#fff;font-size:22px;background:linear-gradient(-62deg,#e24a3a 50%,#2f8fbf 50%)}
.invite .nm{margin-top:8px;font-size:16px;font-weight:700;color:var(--text)}
.invite .stats{display:flex;gap:12px;font-size:14px;color:var(--text-muted);margin:4px 0 12px}
.invite .stats i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:4px;vertical-align:middle;background:var(--status-off)}
.invite .stats i.on{background:var(--status-online)}
.invite .btn{width:100%;height:40px}

.composer-wrap{position:relative;flex:none;padding:0 16px 9px 8px}
.typing{position:absolute;left:16px;top:-20px;height:20px;font-size:13px;color:var(--text-2);display:flex;align-items:center;gap:6px}
.typing .dots{display:flex;gap:3px}
.typing .dots i{width:5px;height:5px;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%,60%,100%{opacity:.3}30%{opacity:1}}
.composer{min-height:56px;border-radius:8px;background:var(--bg-surface);border:1px solid var(--line-strong);display:flex;align-items:center;padding:0 12px 0 8px;gap:4px}
.composer textarea{flex:1;resize:none;height:24px;max-height:300px;font-size:16px;line-height:22px;color:var(--text-2);padding:16px 8px;box-sizing:content-box}
.composer textarea::placeholder{color:var(--text-faint)}
.icon-btn{width:40px;height:40px;display:grid;place-items:center;color:var(--text-muted);border-radius:8px}
.icon-btn:hover{color:var(--text)}

/* perfil e membros */
.profile{width:304px;flex:none;margin:8px 8px 12px 0;border-radius:8px;background:var(--bg-surface);border:1px solid var(--line-strong);display:flex;flex-direction:column;overflow:hidden}
.profile .banner{height:105px;flex:none;position:relative}
.profile .more{position:absolute;right:12px;top:12px;width:28px;height:28px;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;display:grid;place-items:center}
.profile .p-av{margin:-52px 0 0 10px;width:92px;height:92px;border-radius:50%;border:6px solid var(--bg-surface);position:relative}
.profile .p-av .av{width:80px!important;height:80px!important;font-size:30px!important}
.profile .p-av .av .st{width:24px;height:24px;right:-2px;bottom:-2px;background:var(--bg-surface)}
.profile .p-av .av .st i{width:14px;height:14px}
.profile .p-av .av .st-dnd i::after{left:3px;right:3px;top:6px}
.profile .p-body{flex:1;overflow-y:auto;padding:8px 16px 16px}
.profile .p-name{display:flex;align-items:center;gap:6px;font-size:20px;font-weight:700;color:var(--text)}
.profile .p-user{font-size:14px;color:var(--text-2);margin-top:4px}
.profile .p-sec{margin-top:20px}
.profile .p-sec h3{font-size:12px;font-weight:700;color:var(--text-2);margin-bottom:6px}
.profile .p-sec p{font-size:14px;color:var(--text-2);line-height:1.4}
.profile .p-sec a{color:var(--link);font-size:14px;text-decoration:none}
.profile .p-foot{padding:16px;flex:none}
.profile .p-foot .btn{width:100%;height:40px;font-size:14px}

.members{width:264px;flex:none;background:var(--bg-base);overflow-y:auto;padding:8px 8px 20px;border-left:1px solid var(--line)}
.members h3{margin:16px 8px 4px;font-size:13px;font-weight:600;color:var(--text-muted)}
.member{height:44px;display:flex;align-items:center;gap:12px;padding:0 8px;border-radius:8px;cursor:pointer;color:var(--text-muted)}
.member:hover{background:var(--bg-hover);color:var(--text-2)}
.member.off{opacity:.35}
.member.off:hover{opacity:1}
.member .who{min-width:0;line-height:1.15}
.member .name{font-size:16px;font-weight:500;display:flex;align-items:center;gap:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.member .sub{font-size:12px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* painel do usuário */
.userpanel{position:absolute;left:8px;bottom:9px;width:360px;height:57px;border-radius:8px;background:var(--bg-surface);border:1px solid var(--line-strong);display:flex;align-items:center;padding:0 8px;gap:4px;z-index:5}
.in-voice .side-scroll{padding-bottom:184px}
.voice-bar{position:absolute;left:8px;bottom:68px;width:360px;border-radius:8px;background:var(--bg-surface);border:1px solid var(--line-strong);padding:10px 8px 8px 12px;z-index:5}
.voice-bar .row{display:flex;align-items:center;gap:8px}
.voice-bar .ok{color:var(--status-online);font-size:14px;font-weight:700;flex:1;display:flex;align-items:center;gap:6px}
.voice-bar .where{font-size:12px;color:var(--text-muted)}
.voice-bar .grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:8px}
.voice-bar .grid button{height:32px;border-radius:8px;background:var(--bg-raised);display:grid;place-items:center;color:var(--text-2)}
.voice-bar .grid button:hover{background:var(--bg-active)}
.voice-bar .grid button.on{color:var(--status-online)}
.me-box{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:40px;padding:0 4px 0 2px;border-radius:6px;cursor:pointer}
.me-box:hover{background:var(--bg-raised)}
.me-box .who{min-width:0;line-height:1.2}
.me-box .name{font-size:14px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.me-box .sub{font-size:12px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctrl{display:flex;align-items:center;height:32px;border-radius:8px}
.ctrl:hover{background:var(--bg-raised)}
.ctrl button{height:32px;display:grid;place-items:center;color:var(--text-2);border-radius:8px}
.ctrl button:first-child{width:32px}
.ctrl button.caret{width:20px;color:var(--text-muted)}
.ctrl.off button:first-child{color:var(--red)}
.gear{width:32px;height:32px;display:grid;place-items:center;color:var(--text-2);border-radius:8px}
.gear:hover{background:var(--bg-raised)}

/* menus e tooltip */
.tooltip{position:fixed;z-index:50;pointer-events:none;background:var(--bg-input);color:var(--text);font-size:14px;font-weight:600;padding:6px 10px;border-radius:6px;box-shadow:0 8px 16px rgba(0,0,0,.24);border:1px solid var(--line-strong);opacity:0;transform:scale(.96);transition:opacity .1s,transform .1s;white-space:nowrap}
.tooltip.show{opacity:1;transform:none}
.tooltip.right::before{content:"";position:absolute;left:-5px;top:50%;margin-top:-5px;width:8px;height:8px;background:var(--bg-input);border-left:1px solid var(--line-strong);border-bottom:1px solid var(--line-strong);transform:rotate(45deg)}
.menu{position:fixed;z-index:40;min-width:220px;background:var(--bg-input);border:1px solid var(--line-strong);border-radius:8px;padding:6px;box-shadow:0 8px 24px rgba(0,0,0,.4)}
.menu button{width:100%;height:32px;padding:0 8px;border-radius:4px;display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:500;color:var(--text-2);text-align:left}
.menu button:hover{background:var(--brand);color:var(--on-brand)}
.menu button.danger{color:var(--red)}
.menu button.danger:hover{background:var(--red);color:#fff}
.menu hr{border:0;height:1px;background:var(--line-strong);margin:4px}
.modal-bg{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.7);display:grid;place-items:center}
.modal{width:440px;max-width:calc(100vw - 32px);background:var(--bg-main);border:1px solid var(--line-strong);border-radius:8px;overflow:hidden}
.modal .m-body{padding:24px 16px 16px}
.modal h2{font-size:20px;font-weight:700;color:var(--text);margin-bottom:8px;text-align:center}
.modal p{font-size:14px;color:var(--text-muted);text-align:center;margin-bottom:16px}
.modal label{display:block;font-size:12px;font-weight:700;color:var(--text-2);margin:12px 0 8px}
.modal .field{height:40px;border-radius:8px;background:var(--bg-input);border:1px solid var(--line-strong);padding:0 10px;width:100%;font-size:16px;color:var(--text)}
.modal .m-foot{display:flex;justify-content:space-between;align-items:center;padding:16px;background:var(--bg-base)}
.modal .link-btn{font-size:14px;color:var(--text-2);font-weight:500}
.modal .link-btn:hover{text-decoration:underline}
.quick{width:570px}
.quick .m-body{padding:20px}
.quick input{width:100%;height:68px;border-radius:8px;background:var(--bg-base);padding:0 16px;font-size:20px;color:var(--text)}
.quick .res{margin-top:12px;max-height:320px;overflow-y:auto}
.quick .res button{width:100%;height:36px;display:flex;align-items:center;gap:10px;padding:0 8px;border-radius:6px;font-size:16px;color:var(--text-2)}
.quick .res button:hover,.quick .res button.sel{background:var(--bg-active);color:var(--text)}
.quick .res .kind{margin-left:auto;font-size:12px;color:var(--text-muted)}

@media (max-width:1180px){.now,.profile,.members{display:none}}
@media (max-width:760px){:root{--side:0px}.sidebar{display:none}.userpanel,.voice-bar{width:calc(100vw - 16px)}.tb-actions{padding-right:0}}
