/* App completo: camadas, configurações, chamadas e temas. Complementa app.css. */
[hidden]{display:none!important}
:root{--brand-banner:#2f8fbf;--bg-tile:#2a2b30;--zoom:1;--danger:#d9234b;--danger-hover:#b81c3f;--overlay:rgba(8,9,12,.72)}
html{zoom:var(--zoom)}
html[data-theme="darker"]{--bg-base:#0d0e10;--bg-main:#141518;--bg-surface:#1b1c20;--bg-raised:#212226;--bg-input:#101113;--bg-hover:#18191c;--bg-active:#26272c;--bg-tab:#2e2f35;--line:#1a1b1f;--line-strong:#25262b;--bg-tile:#1b1c20}
/* Claro: cinzas claros, o mesmo azul-céu */
html[data-theme="light"]{--bg-base:#e3e5e8;--bg-main:#fff;--bg-surface:#f2f3f5;--bg-raised:#ebedef;--bg-input:#ebedef;--bg-hover:#eceef1;--bg-active:#dfe1e5;--bg-tab:#d4d7dc;--line:#e3e5e8;--line-strong:#d4d7dc;--text:#16171a;--text-2:#2e3035;--text-muted:#5c5e66;--text-faint:#8a8c93;--bg-tile:#dfe1e5;--brand-ink:#1d74d0;--brand-soft:rgba(63,156,245,.18);--mention-ink:#0b4f96;--link:#1d6fc4;--red:#da373c;--status-online:#23a55a;--status-off:#80848e;--overlay:rgba(22,23,26,.5)}
html[data-theme="light"] ::-webkit-scrollbar-thumb{background:#c4c9ce}
a{color:var(--link);cursor:pointer;text-decoration:none}a:hover{text-decoration:underline}
.muted{color:var(--text-muted)}
code{font-family:Consolas,"Courier New",monospace}
.tb-gi{width:18px;height:18px;border-radius:5px;overflow:hidden;display:inline-grid;place-items:center}
.tb-gi img,.tb-gi .art{width:100%;height:100%;object-fit:cover;display:grid;place-items:center;font-size:8px;color:#fff;font-weight:700}
#inboxBtn{position:relative}#inboxBtn.has::after{content:"";position:absolute;right:1px;bottom:2px;width:8px;height:8px;border-radius:50%;background:var(--red);box-shadow:0 0 0 2px var(--bg-base)}
.offline{position:fixed;top:0;left:50%;transform:translateX(-50%);z-index:90;background:var(--red);color:#fff;font-size:13px;font-weight:600;padding:4px 14px;border-radius:0 0 8px 8px}

/* barra de servidores */
.rail-icon .art{display:grid;place-items:center;color:#fff;font-size:14px;font-weight:700;width:100%;height:100%;border-radius:inherit}
.rail-item.has-art .rail-icon>img{width:100%;height:100%;border-radius:inherit;object-fit:cover}
.rail-item.home .rail-icon{background:var(--bg-surface)}
.rail-item.home.active .rail-icon,.rail-item.home:hover .rail-icon{background:var(--brand);color:var(--on-brand)}
.rail-item.drop .rail-icon{box-shadow:0 -4px 0 var(--brand)}
.rail-voice{position:absolute;right:-4px;bottom:-4px;width:18px;height:18px;border-radius:50%;background:var(--status-online);color:#fff;display:grid;place-items:center;box-shadow:0 0 0 3px var(--bg-base)}
.rail-icon .av{width:100%!important;height:100%!important}

/* lateral */
.side-empty{margin:8px 16px;font-size:13px;color:var(--text-muted);line-height:1.4}
.dm .badge{margin-left:auto}
.dm .dm-call{color:var(--status-online)}
.guild-head .gname{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cat.drop,.chan.drop{box-shadow:inset 0 2px 0 var(--brand)}
.chan .badge{margin-left:auto}
.chan .limit{font-size:11px;color:var(--text-muted);background:var(--bg-surface);border-radius:4px;padding:0 4px}
.chan.connected,.chan.connected svg{color:var(--status-online)}
.chan.thread{height:30px;padding-left:28px;font-size:15px}
.chan .spine{position:absolute;left:18px;top:-8px;width:10px;height:22px;border-left:2px solid var(--line-strong);border-bottom:2px solid var(--line-strong);border-bottom-left-radius:8px}
.vu{cursor:pointer}
.vu .grow{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vu svg{color:var(--text-muted)}
.vu .srv svg{color:var(--red)}
.av.speaking .ini{box-shadow:0 0 0 2px var(--status-online),0 0 0 4px var(--bg-base)}
.me-box .sub{position:relative;height:15px;overflow:hidden}
.me-box .sub span{display:block;transition:transform .2s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.me-box:hover .sub span{transform:translateY(-15px)}
.in-voice .side-scroll{padding-bottom:180px}
.voice-bar .ok{background:none;padding:0;text-align:left}
.voice-bar .ok.warn{color:var(--yellow)}
.voice-bar .where{cursor:pointer}.voice-bar .where:hover{text-decoration:underline}
.icon-btn.sm{width:32px;height:32px}

/* avatar */
.av .ini img{width:100%;height:100%;object-fit:cover}
.av .st{right:-2px;bottom:-2px;padding:3px}
.av .st i{width:100%;height:100%}
.st-offline i{background:transparent;box-shadow:inset 0 0 0 2.5px var(--status-off)}
.st-dnd i{position:relative;background:var(--status-dnd);-webkit-mask:none;mask:none}
.st-dnd i::after{content:"";position:absolute;left:20%;right:20%;top:40%;height:20%;border-radius:2px;background:var(--bg-base)}
.st-idle i{-webkit-mask:radial-gradient(circle at 20% 20%,transparent 30%,#000 32%);mask:radial-gradient(circle at 20% 20%,transparent 30%,#000 32%)}
.mini-g{width:24px;height:24px;border-radius:8px;overflow:hidden;display:inline-grid;place-items:center;flex:none}
.mini-g img,.mini-g .art{width:100%;height:100%;object-fit:cover;display:grid;place-items:center;font-size:10px;color:#fff;font-weight:700}
.mini-g.lg{width:40px;height:40px;border-radius:12px}.mini-g.lg .art{font-size:14px}

/* cabeçalho e botões */
.c-head .title[data-user-pop]{cursor:pointer}
.c-head .tname{overflow:hidden;text-overflow:ellipsis}
.c-head .topic{cursor:pointer}
.c-head .topic:hover{color:var(--text-2)}
.crumb{display:flex;align-items:center;gap:6px;font-size:16px;font-weight:600;color:var(--text-muted);white-space:nowrap}
.crumb:hover{color:var(--text)}
.crumb-sep{color:var(--text-faint)}
.btn.sm{height:28px;padding:0 12px;font-size:13px}
.btn.big{height:44px;font-size:16px}
.btn.wide{width:100%}
.btn.red{background:var(--danger)}.btn.red:hover{background:var(--danger-hover)}
.btn.outline{background:transparent;border:1px solid var(--danger);color:var(--danger)}.btn.outline:hover{background:var(--danger);color:#fff}
.link{color:var(--link);font-size:14px;display:inline-flex;align-items:center;gap:6px}.link:hover{text-decoration:underline}
.link-btn{font-size:14px;color:var(--text-2);font-weight:500;display:inline-flex;align-items:center;gap:6px}.link-btn:hover{text-decoration:underline}
.link-btn.danger{color:var(--red)}

/* amigos */
.add-msg{margin-top:8px;font-size:14px}.add-msg.ok{color:var(--status-online)}.add-msg.err{color:var(--red)}
.round-btn.ok:hover{color:var(--status-online)}.round-btn.no:hover{color:var(--red)}
.act .sub{display:flex;align-items:center;gap:4px}
.act .sub2{font-size:12px;color:var(--text-faint)}
.act .who{flex:1}
.friends .empty{min-height:340px}

/* mensagens */
.skeleton{padding:16px}
.sk{display:flex;gap:16px;margin:20px 0;opacity:.5}
.sk i{width:40px;height:40px;border-radius:50%;background:var(--bg-active);flex:none}
.sk b{display:block;width:120px;height:14px;border-radius:7px;background:var(--bg-active);margin:4px 0 10px}
.sk span{display:block;width:60%;min-width:200px;height:14px;border-radius:7px;background:var(--bg-surface)}
.older-hint{text-align:center;padding:16px}
.day span{white-space:nowrap}
.day.new span{background:var(--red);color:#fff;border-radius:4px;padding:0 4px;font-size:10px}
.welcome .av{margin-bottom:8px}
.welcome .w-user{font-size:20px;color:var(--text-2);margin-bottom:12px}
.welcome .w-row{display:flex;align-items:center;gap:8px;margin-top:16px;color:var(--text-muted);font-size:14px;flex-wrap:wrap}
.welcome .w-row .dot{width:4px;height:4px;border-radius:50%;background:var(--text-faint)}
.welcome .link{margin-top:12px}
.msg .mav{position:absolute;left:16px;top:4px;cursor:pointer}
.msg .mav .av{position:static}
.msg.mentioned{background:rgba(63,156,245,.08)}
.msg.mentioned::before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:var(--yellow)}
.msg.mentioned:hover{background:rgba(63,156,245,.12)}
.msg.pending .text{opacity:.5}
.msg.flash{animation:flash 2s}
@keyframes flash{0%,40%{background:var(--brand-soft)}100%{background:transparent}}
.msg .edited{font-size:10px;color:var(--text-muted);margin-left:4px}
.msg .text strong{font-weight:700;color:var(--text)}
.msg .text.jumbo{font-size:44px;line-height:52px}
.text.jumbo .cemoji{width:48px!important;height:48px!important}
.cemoji{vertical-align:-6px;object-fit:contain;display:inline-block}
.uemoji{line-height:1}
.msg .text blockquote{border-left:4px solid var(--line-strong);padding-left:12px;margin:2px 0}
.msg .text .mh1{font-size:24px;font-weight:700;margin:6px 0 2px;color:var(--text)}
.msg .text .mh2{font-size:20px;font-weight:700;margin:6px 0 2px;color:var(--text)}
.msg .text .mh3{font-size:16px;font-weight:700;margin:4px 0 0;color:var(--text)}
.msg .text .mli{padding-left:8px}
.codeblock{background:var(--bg-surface);border:1px solid var(--line-strong);border-radius:6px;padding:8px 10px;margin:4px 0;max-width:90%;overflow-x:auto;white-space:pre}
.codeblock code{font-size:14px;line-height:18px;background:none;padding:0}
.spoiler{background:var(--bg-tab);color:transparent;border-radius:3px;cursor:pointer;padding:0 2px}
.spoiler *{visibility:hidden}
.spoiler.shown{background:rgba(255,255,255,.08);color:inherit;cursor:text}.spoiler.shown *{visibility:visible}
.mention{cursor:pointer}.mention:hover{background:var(--brand);color:var(--on-brand)}
.reply-ref{display:flex;align-items:center;gap:6px;margin:0 0 4px -2px;font-size:13px;color:var(--text-muted);cursor:pointer;position:relative;min-width:0}
.reply-ref::before{content:"";position:absolute;left:-36px;top:9px;width:30px;height:12px;border-left:2px solid var(--line-strong);border-top:2px solid var(--line-strong);border-top-left-radius:6px}
.reply-ref span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reply-ref b{font-weight:600;color:var(--text-2);white-space:nowrap}
.reply-ref:hover span{color:var(--text)}
.reply-ref .ri{width:16px;height:16px;border-radius:50%;background:var(--bg-active);display:grid;place-items:center}
.msg.sys{display:flex;align-items:flex-start;padding:4px 48px 4px 72px;color:var(--text-muted);font-size:15px;min-height:0}
.msg.sys .sys-ic{position:absolute;left:28px;top:6px;color:var(--text-muted)}
.msg.sys .sys-ic .join{color:var(--status-online)}
.msg.sys .sys-ic .leave{color:var(--red)}
.msg.sys b{color:var(--text);font-weight:600;cursor:pointer}
.msg.sys b:hover{text-decoration:underline}
.msg.sys .time{font-size:12px;margin-left:6px}
.atts{display:flex;flex-direction:column;gap:4px;margin-top:4px;max-width:550px}
.att-img{max-width:400px;max-height:350px;border-radius:8px;overflow:hidden;cursor:pointer;position:relative;background:var(--bg-surface)}
.att-img img{display:block;max-width:100%;max-height:350px;width:100%;height:100%;object-fit:contain}
.att-vid{max-width:480px;border-radius:8px;overflow:hidden;position:relative;background:#000}
.att-vid video{display:block;max-width:100%;max-height:360px}
.spoilered{cursor:pointer}
.spoilered img,.spoilered video{filter:blur(44px)}
.spoilered::after{content:"SPOILER";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,.7);color:#fff;font-weight:700;font-size:14px;letter-spacing:.04em;padding:6px 12px;border-radius:16px}
.att-file{display:flex;align-items:center;gap:10px;max-width:432px;padding:12px;border-radius:8px;background:var(--bg-surface);border:1px solid var(--line-strong)}
.att-file .fic{color:var(--brand);flex:none}
.att-file .fi{flex:1;min-width:0;display:flex;flex-direction:column}
.att-file .fi a{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.att-file .fi span{font-size:12px;color:var(--text-muted)}
.att-file .fi audio{margin-top:8px;width:100%;height:32px}
.att-file .fdl{color:var(--text-muted)}.att-file .fdl:hover{color:var(--text)}
.embed.yt{max-width:432px;border-left-color:#e11}
.embed .e-prov{font-size:12px;color:var(--text-muted);margin-bottom:4px}
.embed .e-title{display:block;font-size:16px;font-weight:600;margin-bottom:8px}
.yt-frame{position:relative;aspect-ratio:16/9;border-radius:4px;overflow:hidden;background:#000;cursor:pointer}
.yt-frame img{width:100%;height:100%;object-fit:cover}
.yt-frame .play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
.yt-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.react.add{opacity:0}.msg:hover .react.add{opacity:1}
.react .uemoji{font-size:15px}
.thread-pill{display:inline-flex;align-items:center;gap:8px;margin-top:6px;padding:8px 12px;border-radius:8px;background:var(--bg-surface);border:1px solid var(--line-strong);font-size:14px;color:var(--text-muted);cursor:pointer;max-width:432px}
.thread-pill b{color:var(--text);font-weight:600}
.thread-pill:hover{background:var(--bg-raised)}
.msg .tools button{font-size:16px}
.msg.editing .tools,.msg.sys .tools{display:none!important}
.edit-box{margin:4px 0}
.edit-box textarea{width:100%;resize:none;min-height:44px;background:var(--bg-surface);border:1px solid var(--line-strong);border-radius:8px;padding:11px 14px;font-size:16px;line-height:22px;color:var(--text-2)}
.edit-hint{font-size:12px;color:var(--text-muted);margin-top:4px}
.c-main{position:relative}
.jump{position:absolute;left:24px;right:32px;bottom:76px;z-index:3;height:32px;border-radius:8px 8px 0 0;background:var(--brand);color:var(--on-brand);font-size:14px;display:flex;align-items:center;justify-content:space-between;padding:0 12px}
.jump b{display:flex;align-items:center;gap:4px;font-weight:600}

/* composer */
.composer.disabled{opacity:.6}
.composer.disabled textarea{cursor:not-allowed}
.composer.with-reply{border-top-left-radius:0;border-top-right-radius:0}
.reply-bar{display:flex;align-items:center;justify-content:space-between;height:36px;padding:0 12px 0 16px;background:var(--bg-raised);border:1px solid var(--line-strong);border-bottom:0;border-radius:8px 8px 0 0;font-size:14px;color:var(--text-muted)}
.reply-bar b{color:var(--text-2)}
.reply-bar button{color:var(--text-muted)}.reply-bar button:hover{color:var(--text)}
.uploads{display:flex;gap:16px;overflow-x:auto;padding:16px 12px 12px;background:var(--bg-surface);border:1px solid var(--line-strong);border-bottom:0;border-radius:8px 8px 0 0}
.uploads:not([hidden])+.composer{border-top-left-radius:0;border-top-right-radius:0}
.up{position:relative;width:176px;flex:none;background:var(--bg-raised);border-radius:6px;padding:8px}
.up-prev{height:136px;border-radius:4px;display:grid;place-items:center;overflow:hidden;color:var(--text-muted);background:var(--bg-base)}
.up-prev img{width:100%;height:100%;object-fit:cover}
.up.sp .up-prev img{filter:blur(16px)}
.up-name{font-size:13px;margin-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.up-bar{height:4px;border-radius:2px;background:var(--bg-base);margin-top:6px;overflow:hidden}.up-bar i{display:block;height:100%;background:var(--brand)}
.up-acts{position:absolute;top:-10px;right:-10px;display:flex;background:var(--bg-surface);border:1px solid var(--line-strong);border-radius:6px;overflow:hidden}
.up-acts button{width:30px;height:30px;display:grid;place-items:center;color:var(--text-muted)}
.up-acts button:hover{background:var(--bg-raised);color:var(--text)}.up-acts button.danger:hover{color:var(--red)}
.slow{position:absolute;right:16px;top:-20px;font-size:12px;color:var(--text-muted)}
.ac{position:absolute;left:8px;right:16px;bottom:calc(100% - 4px);background:var(--bg-surface);border:1px solid var(--line-strong);border-radius:8px;padding:8px;box-shadow:0 8px 24px rgba(0,0,0,.3);z-index:6;max-height:380px;overflow-y:auto}
.ac-title{font-size:12px;font-weight:700;color:var(--text-muted);padding:4px 8px 8px}
.ac button{width:100%;height:36px;display:flex;align-items:center;gap:10px;padding:0 8px;border-radius:4px;font-size:15px;color:var(--text-2);text-align:left}
.ac button.sel,.ac button:hover{background:var(--bg-active);color:var(--text)}
.ac .ac-sub{margin-left:auto;font-size:13px;color:var(--text-muted)}
.ac .cemoji{width:22px;height:22px}
.ac .uemoji{font-size:20px}
.dropzone{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.6);display:grid;place-items:center;pointer-events:none}
.dropzone>div{width:310px;padding:40px 24px;border-radius:12px;background:var(--brand);color:var(--on-brand);text-align:center;outline:2px dashed rgba(22,23,26,.5);outline-offset:-12px}
.dropzone b{display:block;font-size:20px;margin-bottom:6px}.dropzone span{font-size:14px;opacity:.9}

/* perfil lateral e membros */
.profile .p-av{cursor:pointer}
.profile .p-status{margin-top:8px;font-size:14px;color:var(--text-2)}
.p-mutual{display:flex;align-items:center;gap:8px;padding:6px;border-radius:6px;font-size:14px;cursor:pointer;color:var(--text-2)}
.p-mutual:hover{background:var(--bg-raised)}
.btn.wide.gray{background:var(--bg-tab);color:var(--text)}
.members .owner{color:var(--yellow);display:inline-flex}

/* menus */
.menu button .mi{display:flex;opacity:.85}
.menu button.brand{color:var(--brand-ink)}.menu button.brand:hover{color:var(--on-brand)}
.menu button[style*="--mc"]{box-shadow:inset 3px 0 0 var(--mc)}
.cb{width:18px;height:18px;border-radius:4px;border:2px solid var(--text-muted);display:grid;place-items:center;flex:none}
.cb.on{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.menu-vol{padding:6px 8px 10px;border-bottom:1px solid var(--line-strong);margin-bottom:4px}
.menu-vol label{display:block;font-size:12px;font-weight:600;color:var(--text-muted);margin-bottom:6px}
.menu-vol input{width:100%;accent-color:var(--brand)}

/* popouts */
.popout{position:fixed;z-index:45;background:var(--bg-base);border:1px solid var(--line-strong);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.4);overflow:hidden;max-height:calc(100vh - 16px);display:flex;flex-direction:column}
html[data-theme="light"] .popout{background:#fff}
.pop-title{display:flex;align-items:center;gap:8px;padding:14px 16px;font-size:16px;font-weight:700;color:var(--text);border-bottom:1px solid var(--line)}
.pop-title .btn{margin-left:auto}
.pop-empty{padding:32px 16px;text-align:center;color:var(--text-muted);font-size:14px}
.pop-empty svg{margin:0 auto 12px;opacity:.6}
.pop-loading{padding:24px;text-align:center;color:var(--text-muted)}
.pop-note{padding:8px 16px 14px;font-size:12px;color:var(--text-muted)}
.pp-wrap{width:340px}
.pp{position:relative;display:flex;flex-direction:column;max-height:calc(100vh - 16px)}
.pp .banner{flex:none}
.pp-av{position:relative;margin:-46px 0 0 10px;width:max-content;border:6px solid var(--bg-base);border-radius:50%;cursor:pointer}
.pp-av .av .st,.sp-av .av .st,.pc-av .av .st,.acc-top .av .st{background:var(--bg-base)}
.pp-bubble{position:absolute;left:112px;top:66px;max-width:200px;background:var(--bg-surface);border-radius:12px;padding:8px 12px;font-size:13px;color:var(--text-2)}
.pp-body{padding:4px 16px 12px;overflow-y:auto}
.pp-name{font-size:20px;font-weight:700;color:var(--text);display:flex;align-items:center;gap:6px;cursor:pointer}
.pp-name:hover{text-decoration:underline}
.pp-user{font-size:14px;color:var(--text-2);margin-top:2px}
.pp-sec{margin-top:14px}
.pp-sec h3{font-size:12px;font-weight:700;color:var(--text-2);margin-bottom:6px}
.pp-sec p{font-size:14px;color:var(--text-2);line-height:1.4}
.pp-roles{display:flex;flex-wrap:wrap;gap:4px}
.role-chip{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;border-radius:4px;background:var(--bg-surface);font-size:12px;font-weight:500;color:var(--text-2)}
.role-chip i{width:10px;height:10px;border-radius:50%}
.role-chip b{display:none;color:var(--text-muted);cursor:pointer}
.role-chip[data-rmrole]:not([data-rmrole=""]){cursor:pointer}
.role-chip[data-rmrole]:not([data-rmrole=""]):hover b{display:inline-flex}
.role-chip[data-rmrole]:not([data-rmrole=""]):hover i{display:none}
.role-add{width:22px;height:22px;border-radius:4px;background:var(--bg-surface);display:grid;place-items:center;color:var(--text-muted)}
.pp-note{width:100%;min-height:30px;resize:none;font-size:13px;color:var(--text-2);background:transparent;border-radius:4px;padding:4px}
.pp-note:focus{background:var(--bg-input)}
.pp-foot{padding:0 16px 16px}
.pp-msg{width:100%;height:40px;border-radius:8px;background:var(--bg-input);border:1px solid var(--line-strong);padding:0 12px;font-size:14px;color:var(--text)}
.status-wrap{width:300px}
.sp-head{position:relative;padding-bottom:12px}
.sp-av{margin:-40px 0 0 12px;border:5px solid var(--bg-base);border-radius:50%;width:max-content}
.sp-name{padding:0 16px;font-size:18px;font-weight:700;color:var(--text)}
.sp-user{padding:0 16px;font-size:13px;color:var(--text-muted)}
.sp-list{padding:8px;border-top:1px solid var(--line)}
.sp-list button{width:100%;display:flex;align-items:center;gap:10px;padding:8px;border-radius:4px;text-align:left;color:var(--text-2)}
.sp-list button:hover{background:var(--brand);color:var(--on-brand)}
.sp-list button:hover small{color:var(--on-brand)}
.sp-list button.cur{background:var(--bg-active)}
.sp-list .st{position:static;flex:none;background:transparent!important}
.sp-list span b{display:block;font-size:14px;font-weight:500}
.sp-list small{display:block;font-size:12px;color:var(--text-muted)}
.sp-list hr{border:0;height:1px;background:var(--line-strong);margin:6px 4px}
.pins-list,.th-list,.inbox-list{overflow-y:auto;max-height:70vh;padding:8px}
.pin-item{position:relative;border:1px solid var(--line);border-radius:8px;margin-bottom:8px;background:var(--bg-main);cursor:pointer;padding:4px 0 8px}
.pin-x{position:absolute;right:6px;top:6px;width:24px;height:24px;border-radius:50%;background:var(--bg-surface);display:none;place-items:center;color:var(--text-muted)}
.pin-item:hover .pin-x{display:grid}
.th-list h4{font-size:12px;color:var(--text-muted);margin:8px 8px 4px}
.th-row,.ib-row{display:flex;align-items:center;gap:10px;padding:10px 8px;border-radius:6px;cursor:pointer;color:var(--text-2)}
.th-row:hover,.ib-row:hover{background:var(--bg-hover)}
.th-row b,.ib-row b{display:block;font-size:15px;color:var(--text)}
.th-row small,.ib-row small{font-size:12px;color:var(--text-muted)}
.ib-row .badge{margin-left:auto}
.ib-row>div{flex:1;min-width:0}
.nd-pop{padding-bottom:12px}
.nd .pop-title{border:0;padding-bottom:4px}
.nd-sub{padding:0 16px;font-size:12px;color:var(--text-muted)}
.nd .field{margin:12px 16px;width:calc(100% - 32px)}
.nd-list{max-height:300px;overflow-y:auto;padding:0 8px}
.nd-row{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:6px;cursor:pointer}
.nd-row:hover{background:var(--bg-hover)}
.nd-row span{flex:1}.nd-row b{display:block;font-size:15px;color:var(--text);font-weight:500}.nd-row small{font-size:12px;color:var(--text-muted)}
.nd-row input{width:20px;height:20px;accent-color:var(--brand)}
.nd .btn{margin:12px 16px 0;width:calc(100% - 32px)}
.sound-pop{width:300px}
.sound-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px}
.sound-grid button{height:64px;border-radius:8px;background:var(--bg-surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:22px}
.sound-grid button span{font-size:12px;color:var(--text-2)}
.sound-grid button:hover{background:var(--bg-active)}

/* emoji */
.ep{display:flex;flex-direction:column;height:420px}
.ep-top{padding:12px;border-bottom:1px solid var(--line)}
.ep-search{width:100%;height:32px;border-radius:6px;background:var(--bg-input);padding:0 10px;font-size:14px;color:var(--text)}
.ep-main{flex:1;display:flex;min-height:0}
.ep-cats{width:48px;flex:none;background:var(--bg-surface);display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 0;overflow-y:auto}
.ep-cats button{width:32px;height:32px;border-radius:6px;font-size:18px}
.ep-cats button:hover{background:var(--bg-active)}
.ep-grid{flex:1;overflow-y:auto;padding:0 8px 8px;position:relative}
.ep-sec{position:sticky;top:0;background:var(--bg-base);font-size:12px;font-weight:700;color:var(--text-muted);padding:10px 4px 6px;text-transform:uppercase;z-index:1}
html[data-theme="light"] .ep-sec{background:#fff}
.ep-cells{display:grid;grid-template-columns:repeat(8,1fr);gap:2px}
.ep-cells button{height:40px;border-radius:6px;display:grid;place-items:center}
.ep-cells button:hover{background:var(--bg-active)}
.ep-foot{height:44px;flex:none;display:flex;align-items:center;gap:8px;padding:0 12px;background:var(--bg-surface);font-size:14px;color:var(--text-muted)}
.ep-foot b{color:var(--text)}

/* modais */
.modal{position:relative;background:var(--bg-main);box-shadow:0 12px 40px rgba(0,0,0,.5);animation:pop .15s ease-out}
@keyframes pop{from{transform:scale(.94);opacity:0}to{transform:none;opacity:1}}
.modal.wide{width:600px}
.modal .m-body.left h2,.modal .m-body.left p{text-align:left}
.modal .m-body{max-height:calc(100vh - 200px);overflow-y:auto}
.modal .m-foot.col{flex-direction:column;align-items:stretch;gap:8px;text-align:center}
.modal .m-foot.col h3{font-size:18px;color:var(--text);font-weight:600}
.modal .m-foot .btn{min-width:96px}
.field{display:block;width:100%;height:40px;border-radius:8px;background:var(--bg-input);border:1px solid var(--line-strong);padding:0 10px;font-size:16px;color:var(--text)}
.field:focus{border-color:var(--brand)}
.field.ta{height:auto;min-height:80px;padding:10px;resize:vertical;line-height:1.4}
select.field{appearance:auto}
.field-err{color:var(--red);font-size:14px;margin-top:8px}
.field-ic{position:relative}.field-ic>span{position:absolute;left:10px;top:11px;color:var(--text-muted)}.field-ic .field{padding-left:34px}
.req{color:var(--red)}
.fine{font-size:12px;color:var(--text-muted);margin-top:8px;line-height:1.5}
.modal label,.settings label{display:block;font-size:12px;font-weight:700;color:var(--text-2);margin:16px 0 8px;letter-spacing:.02em}
.switch-row{display:flex!important;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;cursor:pointer;margin:0!important;letter-spacing:0!important}
.switch-row b{display:flex;align-items:center;gap:6px;font-size:16px;font-weight:500;color:var(--text)}
.switch-row small{display:block;font-size:14px;font-weight:400;color:var(--text-muted);margin-top:4px}
.switch-row.big{padding:16px;border-radius:8px;background:var(--bg-surface)}
.sw{appearance:none;width:40px;height:24px;border-radius:12px;background:#72767d;position:relative;flex:none;cursor:pointer;transition:background .15s}
.sw::after{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .15s}
.sw:checked{background:var(--status-online)}.sw:checked::after{transform:translateX(16px)}
.sw:disabled{opacity:.4;cursor:not-allowed}
.tpl-list{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.tpl{display:flex;align-items:center;gap:12px;height:64px;padding:0 16px;border-radius:8px;border:1px solid var(--line-strong);text-align:left;font-size:16px;color:var(--text)}
.tpl:hover{background:var(--bg-hover)}
.tpl b{flex:1;font-weight:600}.tpl-e{font-size:28px}
.icon-up{width:80px;height:80px;margin:16px auto 0;border-radius:50%;border:2px dashed var(--text-muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--text-muted);font-size:11px;font-weight:700;overflow:hidden;position:relative}
.icon-up img,.icon-up .art{width:100%;height:100%;object-fit:cover;display:grid;place-items:center;color:#fff;font-size:28px;font-weight:700}
.icon-up.big{width:100px;height:100px;margin:0;border:0}
.icon-up .hover{position:absolute;inset:0;background:rgba(0,0,0,.55);color:#fff;display:none;align-items:center;justify-content:center;text-align:center}
.icon-up:hover .hover{display:flex}
.invite-land .m-body{text-align:center}
.il-icon{width:64px;height:64px;border-radius:16px;overflow:hidden;margin:0 auto 12px}
.il-icon img,.il-icon .art{width:100%;height:100%;object-fit:cover;display:grid;place-items:center;color:#fff;font-size:22px;font-weight:700}
.il-icon.sm{width:48px;height:48px;border-radius:14px}
.il-from{font-size:14px;color:var(--text-muted)}
.il-stats{display:flex;justify-content:center;gap:16px;font-size:14px;color:var(--text-muted);margin:8px 0}
.il-stats i,.auth-inv i{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--status-off);margin-right:4px}
.il-stats i.on,.auth-inv i.on{background:var(--status-online)}
.inv-friends{max-height:200px;overflow-y:auto;margin:12px 0}
.inv-f{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:6px}
.inv-f:hover{background:var(--bg-hover)}
.inv-f>span{flex:1;min-width:0;font-size:15px;color:var(--text)}
.inv-f>span small{display:block}
.add-row.sm{height:44px}
.add-row.sm input{font-size:14px}
.inv-set{display:flex;flex-direction:column;gap:4px}
.inv-set select{height:36px;border-radius:6px;background:var(--bg-input);border:1px solid var(--line-strong);padding:0 8px;color:var(--text)}
.inv-set .btn{margin-top:8px;align-self:flex-start}
.ctype{display:flex;flex-direction:column;gap:8px}
.ct{display:flex!important;align-items:center;gap:12px;padding:10px 12px!important;margin:0!important;border-radius:8px;background:var(--bg-surface);cursor:pointer;letter-spacing:0!important}
.ct.sel{background:var(--bg-active)}
.ct input{display:none}
.ct span{flex:1}.ct b{display:block;font-size:16px;font-weight:500;color:var(--text)}.ct small{font-size:13px;font-weight:400;color:var(--text-muted)}
.ct .radio{width:20px;height:20px;border-radius:50%;border:2px solid var(--text-muted);flex:none}
.ct.sel .radio{border:6px solid var(--text)}
.confirm-preview{margin-top:16px;border:1px solid var(--line-strong);border-radius:8px;padding:8px 0;background:var(--bg-surface);pointer-events:none}
.cs-row{display:flex;align-items:center;gap:8px}
.cs-emoji{width:40px;height:40px;border-radius:8px;background:var(--bg-input);font-size:22px;display:grid;place-items:center;color:var(--text-muted);flex:none}
.topic-full{font-size:16px;color:var(--text-2);line-height:1.5;white-space:pre-wrap}
.kb>div{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px;color:var(--text-2)}
kbd{font-family:inherit;font-size:12px;background:var(--bg-surface);border:1px solid var(--line-strong);border-bottom-width:3px;border-radius:4px;padding:2px 6px;color:var(--text)}
.mt{margin-top:20px;margin-bottom:8px;font-size:16px;color:var(--text)}
.lb-bg{background:rgba(0,0,0,.85)}
.lightbox{max-width:92vw;max-height:92vh;display:flex;flex-direction:column;align-items:flex-start}
.lightbox img{max-width:92vw;max-height:85vh;object-fit:contain;border-radius:4px}
.lb-bar{margin-top:8px;font-size:14px}
.fullprof{overflow:hidden}
.fp-top{display:flex;align-items:flex-end;justify-content:space-between;padding:0 16px;margin-top:-60px}
.fp-av{border:7px solid var(--bg-main);border-radius:50%}
.fp-av .av .st{background:var(--bg-main)}
.fp-btns{display:flex;gap:8px;padding-bottom:12px}
.fp-body{padding:12px 24px 24px}
.fp-name{font-size:24px;font-weight:700;color:var(--text);display:flex;align-items:center;gap:8px}
.fp-user{font-size:15px;color:var(--text-2)}
.tabs-line{display:flex;gap:24px;border-bottom:1px solid var(--line-strong);margin:16px 0 0}
.tl{padding:0 0 10px;font-size:15px;font-weight:500;color:var(--text-muted);border-bottom:2px solid transparent;margin-bottom:-1px}
.tl:hover{color:var(--text-2)}.tl.active{color:var(--text);border-bottom-color:var(--text)}
.fp-tab{min-height:180px;max-height:300px;overflow-y:auto;padding-top:12px}
.fp-tab h3{font-size:12px;font-weight:700;color:var(--text-2);margin:12px 0 6px}
.fp-tab p{font-size:14px;color:var(--text-2);line-height:1.4}
.fp-row{display:flex;align-items:center;gap:12px;padding:8px;border-radius:6px;cursor:pointer;color:var(--text)}
.fp-row:hover{background:var(--bg-hover)}

/* busca */
.search-panel{width:420px;flex:none;border-left:1px solid var(--line);background:var(--bg-base);overflow-y:auto}
.sp-top{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;height:48px;padding:0 8px 0 16px;background:var(--bg-base);border-bottom:1px solid var(--line);color:var(--text)}
.sp-tip{padding:10px 16px;font-size:12px;color:var(--text-muted)}
.sp-tip code{background:var(--bg-surface);border-radius:3px;padding:0 4px}
.sp-chan{display:flex;align-items:center;gap:4px;padding:12px 16px 4px;font-size:13px;font-weight:600;color:var(--text-2)}
.sp-hit{margin:4px 8px;border-radius:8px;background:var(--bg-main);border:1px solid var(--line);cursor:pointer;padding:2px 0 8px}
.sp-hit:hover{border-color:var(--line-strong)}

/* configurações */
.settings{position:fixed;inset:0;z-index:55;display:flex;background:var(--bg-main);animation:fadein .15s}
@keyframes fadein{from{opacity:0;transform:scale(1.02)}to{opacity:1;transform:none}}
.set-side{flex:1 0 218px;display:flex;justify-content:flex-end;background:var(--bg-base);overflow-y:auto}
.set-nav{width:218px;padding:60px 6px 60px 20px}
.set-head{font-size:12px;font-weight:700;color:var(--text-muted);padding:6px 10px;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.set-nav button{width:100%;height:32px;padding:0 10px;margin-bottom:2px;border-radius:4px;display:flex;align-items:center;justify-content:space-between;font-size:16px;font-weight:500;color:var(--text-muted);text-align:left}
.set-nav button:hover{background:var(--bg-hover);color:var(--text-2)}
.set-nav button.active{background:var(--bg-active);color:var(--text)}
.set-nav button.danger{color:var(--red)}
.set-nav hr{border:0;height:1px;background:var(--line-strong);margin:8px 10px}
.set-main{flex:1 1 800px;display:flex;position:relative;min-width:0}
.set-content{flex:1;max-width:740px;padding:60px 40px 120px;overflow-y:auto}
.set-content h1{font-size:20px;font-weight:700;color:var(--text);margin-bottom:20px}
.set-content h2{font-size:16px;font-weight:700;color:var(--text);margin:8px 0 12px}
.set-content hr{border:0;height:1px;background:var(--line-strong);margin:28px 0}
.set-content p{font-size:14px;line-height:1.45}
.set-close{flex:none;padding:60px 21px 0 0;display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--text-muted);font-size:13px;font-weight:600}
.set-close button{width:36px;height:36px;border-radius:50%;border:2px solid var(--text-muted);display:grid;place-items:center;color:var(--text-muted)}
.set-close button:hover{background:var(--bg-hover);color:var(--text);border-color:var(--text)}
.save-bar{position:absolute;left:40px;right:80px;bottom:20px;max-width:700px;display:flex;align-items:center;gap:16px;padding:10px 10px 10px 16px;border-radius:8px;background:#16171a;box-shadow:0 8px 24px rgba(0,0,0,.4);color:#fff;font-size:15px;font-weight:500;animation:pop .2s}
.save-bar span{flex:1}.save-bar .link-btn{color:#fff}
.acc-card{border-radius:8px;overflow:hidden;background:var(--bg-base)}
.acc-top{display:flex;align-items:flex-end;gap:16px;padding:0 16px;margin-top:-30px}
.acc-top>.av{border:6px solid var(--bg-base);box-sizing:content-box}
.acc-name{flex:1;font-size:20px;font-weight:700;color:var(--text);padding-bottom:12px}
.acc-top .btn{margin-bottom:16px}
.acc-fields{margin:8px 16px 16px;padding:16px;border-radius:8px;background:var(--bg-surface)}
.af{display:flex;align-items:center;justify-content:space-between;padding:10px 0}
.af h3{font-size:12px;font-weight:700;color:var(--text-muted)}
.af p{font-size:16px;color:var(--text)}
.prof-grid{display:grid;grid-template-columns:1fr 300px;gap:32px}
.prof-form hr{margin:20px 0}
.row-btns{display:flex;align-items:center;gap:16px}
.colors{display:flex;flex-wrap:wrap;gap:8px}
.swatch{width:36px;height:36px;border-radius:6px;border:2px solid transparent;position:relative}
.swatch.sel{border-color:var(--text)}
.swatch.none{border:1px dashed var(--text-muted)}
.swatch.custom{display:grid!important;place-items:center;margin:0!important;background:var(--bg-surface);color:var(--text-muted);cursor:pointer;overflow:hidden}
.swatch.custom input{position:absolute;inset:0;opacity:0;cursor:pointer}
.count{text-align:right;font-size:12px;color:var(--text-muted);margin-top:4px}
.prev-card{border-radius:8px;overflow:hidden;background:var(--bg-base);box-shadow:0 4px 16px rgba(0,0,0,.2)}
.pc-av{margin:-46px 0 0 12px;border:6px solid var(--bg-base);border-radius:50%;width:max-content}
.pc-body{padding:4px 16px 16px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.mic-test{display:flex;align-items:center;gap:16px}
.meter{flex:1;height:12px;border-radius:6px;background:var(--bg-input);position:relative;overflow:hidden}
.meter i{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--status-online);transition:width .06s}
.meter b{position:absolute;top:0;bottom:0;width:2px;background:var(--text)}
.range{width:100%;accent-color:var(--brand)}
.range-l{display:flex;justify-content:space-between;font-size:12px;color:var(--text-muted)}
.cam-prev{margin-top:12px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.cam-prev video{width:320px;max-width:100%;aspect-ratio:16/9;background:#000;border-radius:8px;object-fit:cover}
.mirror{transform:scaleX(-1)}
.themes{display:flex;gap:16px}
.theme{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:14px;color:var(--text-2)}
.theme span{width:64px;height:64px;border-radius:50%;background:var(--tc);border:2px solid var(--line-strong)}
.theme.sel span{outline:3px solid var(--brand);outline-offset:2px}
.ov{display:flex;gap:24px}
.ov-icon{display:flex;flex-direction:column;align-items:center;gap:8px;width:120px}
.ov-fields{flex:1}
.ov-fields label:first-child{margin-top:0}
.roles-top{display:flex;align-items:center;gap:12px;margin:16px 0}
.roles-top .field{flex:1;height:36px}
.role-list{display:flex;flex-direction:column}
.role-row{display:flex;align-items:center;gap:10px;height:48px;padding:0 12px;border-bottom:1px solid var(--line);cursor:pointer;color:var(--text-2)}
.role-row:hover{background:var(--bg-hover)}
.role-row b{flex:1;font-weight:500;color:var(--text)}
.role-row .rc{display:flex;align-items:center;gap:4px;font-size:13px;color:var(--text-muted)}
.role-row.locked{opacity:.6;cursor:not-allowed}
.role-row .drag{width:16px;color:var(--text-faint);cursor:grab}
.dotc{display:inline-block;width:12px;height:12px;border-radius:50%;flex:none}
.role-edit{display:grid;grid-template-columns:180px 1fr;gap:24px}
.re-side{display:flex;flex-direction:column;gap:2px;border-right:1px solid var(--line);padding-right:12px}
.re-side .link-btn{margin-bottom:12px}
.re-item{display:flex;align-items:center;gap:8px;height:32px;padding:0 8px;border-radius:4px;font-size:14px;color:var(--text-2);text-align:left}
.re-item:hover{background:var(--bg-hover)}.re-item.sel{background:var(--bg-active);color:var(--text)}
.re-main h1{margin-bottom:8px}
.perm-sec h3{font-size:12px;font-weight:700;color:var(--text-muted);margin:20px 0 4px;text-transform:uppercase}
.perm{border-bottom:1px solid var(--line)}
#permSearch{margin-top:16px}
.rm-list{display:flex;flex-direction:column}
.emoji-table .et-row{display:flex;align-items:center;gap:16px;padding:8px;border-bottom:1px solid var(--line)}
.et-row img{width:32px;height:32px;object-fit:contain}
.et-row span{flex:1}
.mem-row{display:flex;align-items:center;gap:12px;padding:10px 8px;border-bottom:1px solid var(--line);cursor:pointer}
.mem-row:hover{background:var(--bg-hover)}
.mr-who{flex:1;min-width:0}.mr-who b{display:block;color:var(--text);font-weight:600}.mr-who small{color:var(--text-muted)}
.mr-since{width:120px;font-size:13px;color:var(--text-2)}.mr-since small{display:block;font-size:11px;color:var(--text-muted)}
.mr-roles{width:220px;display:flex;flex-wrap:wrap;gap:4px}
.it-h,.it-row{display:grid;grid-template-columns:24px 1fr 110px 70px 140px 32px;align-items:center;gap:10px;padding:8px 4px;border-bottom:1px solid var(--line);font-size:14px}
.it-h{grid-template-columns:1fr 110px 70px 140px 32px;font-size:12px;font-weight:700;color:var(--text-muted)}
.it-h span:first-child{padding-left:34px}
.ow-grid{display:grid;grid-template-columns:200px 1fr;gap:24px}
.ow-side{display:flex;flex-direction:column;gap:2px}
.ow-h{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700;color:var(--text-muted);margin-bottom:6px}
.ow-t{display:flex;align-items:center;gap:8px;height:32px;padding:0 8px;border-radius:4px;font-size:14px;color:var(--text-2);text-align:left}
.ow-t:hover{background:var(--bg-hover)}.ow-t.sel{background:var(--bg-active);color:var(--text)}
.ow-main h3{font-size:12px;font-weight:700;color:var(--text-muted);margin:16px 0 4px;text-transform:uppercase}
.tri-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}
.tri-row b{display:block;font-size:15px;font-weight:500;color:var(--text)}
.tri-row small{font-size:13px;color:var(--text-muted)}
.tri{display:flex;border:1px solid var(--line-strong);border-radius:6px;overflow:hidden;flex:none}
.tri-b{width:32px;height:28px;display:grid;place-items:center;color:var(--text-muted);font-weight:700}
.tri-b+.tri-b{border-left:1px solid var(--line-strong)}
.tri-b.no.on{background:var(--danger);color:#fff}.tri-b.mid.on{background:var(--bg-tab);color:var(--text)}.tri-b.yes.on{background:var(--status-online);color:#fff}

/* chamada */
.call-stage{flex:1;min-height:0;display:flex;flex-direction:column;background:#0a0b0e;position:relative}
.call-area{flex:none;height:min(48vh,440px);display:flex;flex-direction:column;background:#0a0b0e;border-bottom:1px solid var(--line)}
.tiles{flex:1;min-height:0;display:grid;gap:8px;padding:16px;align-content:center;justify-content:center;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.tiles.n1{grid-template-columns:minmax(240px,960px)}
.tiles.n2{grid-template-columns:repeat(2,minmax(200px,620px))}
.focused .tiles{grid-template-columns:1fr;grid-template-rows:1fr}
.focused .tiles .tile:not(.big){display:none}
.tile{position:relative;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:var(--tile-bg,var(--bg-tile));display:grid;place-items:center;cursor:pointer;max-height:100%}
.tile.big{aspect-ratio:auto;height:100%}
.tile.speaking{box-shadow:inset 0 0 0 3px var(--status-online)}
.tile video{width:100%;height:100%;object-fit:contain;background:#000}
.tile.cam video{object-fit:cover}
.tile-name{position:absolute;left:8px;bottom:8px;display:flex;align-items:center;gap:6px;max-width:calc(100% - 16px);padding:4px 8px;border-radius:6px;background:rgba(0,0,0,.6);color:#fff;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile-name svg{color:var(--red);flex:none}
.tile-name .live{background:var(--red);font-size:10px;border-radius:4px;padding:0 4px}
.tile-wait{display:flex;flex-direction:column;align-items:center;gap:8px;color:#9a9ca3;font-size:14px}
.tile-full{position:absolute;right:8px;bottom:8px;width:32px;height:32px;border-radius:6px;background:rgba(0,0,0,.6);color:#fff;display:none;place-items:center}
.tile:hover .tile-full{display:grid}
.call-controls{flex:none;display:flex;justify-content:center;gap:16px;padding:12px 0 20px}
.cc{width:56px;height:56px;border-radius:50%;background:#2a2b30;color:#f2f3f5;display:grid;place-items:center}
.cc:hover{background:#343a46}
.cc.on{background:#f2f3f5;color:#16171a}
.cc.off{background:#f2f3f5;color:#d9234b}
.cc.hang{background:var(--danger)}.cc.hang:hover{background:var(--danger-hover)}
.cc.accept{background:var(--status-online)}
.call-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#9a9ca3;text-align:center}
.call-empty h2{font-size:24px;color:#f2f3f5}
.ce-icon{width:80px;height:80px;border-radius:50%;background:#2a2b30;display:grid;place-items:center;color:#3f9cf5;margin-bottom:8px}
.call-empty .btn{margin-top:12px;height:40px}
.call-incoming{position:fixed;left:50%;top:80px;transform:translateX(-50%);z-index:70;width:240px;padding:24px;border-radius:12px;background:var(--bg-base);box-shadow:0 12px 40px rgba(0,0,0,.6);display:flex;flex-direction:column;align-items:center;gap:8px}
.call-incoming .av{animation:pulse 1.4s infinite;border-radius:50%}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(63,156,245,.6)}50%{box-shadow:0 0 0 12px rgba(63,156,245,0)}}
.ci-name{font-size:18px;font-weight:700;color:var(--text)}
.ci-sub{font-size:13px;color:var(--text-muted)}
.ci-btns{display:flex;gap:24px;margin-top:12px}

/* avisos */
#toasts{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:100;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}
.toast{background:var(--bg-surface);color:var(--text);border:1px solid var(--line-strong);padding:10px 16px;border-radius:8px;font-size:14px;font-weight:500;box-shadow:0 8px 24px rgba(0,0,0,.35);animation:pop .15s;max-width:90vw}
.toast.error{background:var(--danger);color:#fff;border-color:transparent}
.toast.out{opacity:0;transform:translateY(8px);transition:.3s}

/* entrada */
#auth{position:fixed;inset:0;display:grid;place-items:center;padding:16px;overflow-y:auto}
.auth-bg{position:fixed;inset:0;background:radial-gradient(1200px 600px at 10% 10%,#3b2a8f 0,transparent 60%),radial-gradient(900px 600px at 90% 90%,#0f6b5a 0,transparent 55%),linear-gradient(135deg,#1b1840,#121214 60%,#0d2a2a)}
.auth-card{position:relative;width:480px;max-width:100%;padding:32px;border-radius:8px;background:var(--bg-main);box-shadow:0 12px 40px rgba(0,0,0,.5);animation:pop .2s}
.auth-logo{display:flex;align-items:center;justify-content:center;gap:10px;color:var(--text);font-size:24px;font-weight:800;margin-bottom:16px}
.auth-logo svg{color:var(--brand)}
.auth-card h1{font-size:24px;font-weight:700;color:var(--text);text-align:center}
.auth-sub{text-align:center;color:var(--text-muted);font-size:16px;margin:8px 0 12px}
.auth-card label{display:block;font-size:12px;font-weight:700;color:var(--text-2);margin:16px 0 8px}
.auth-card .btn{margin-top:20px}
.auth-switch{margin-top:10px;font-size:14px;color:var(--text-muted)}
.auth-inv{text-align:center;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line-strong)}
.auth-inv p{font-size:14px;color:var(--text-muted)}
.auth-inv h3{font-size:22px;color:var(--text);margin:4px 0}
.auth-inv small{font-size:13px;color:var(--text-muted)}

/* compacto e animações */
.compact .msg.head{margin-top:4px;min-height:22px}
.compact .msg .mav .av{width:20px!important;height:20px!important;font-size:9px!important}
.compact .msg .mav{top:3px;left:44px}
.reduce-motion *{animation:none!important;transition:none!important}

@media (max-width:1180px){.search-panel{position:absolute;right:0;top:48px;bottom:0;z-index:5}}
@media (max-width:760px){.prof-grid,.two,.ow-grid,.role-edit{grid-template-columns:1fr}.set-side{display:none}.set-content{padding:24px 16px 120px}.mr-roles,.mr-since{display:none}.call-controls{gap:10px}.cc{width:48px;height:48px}}
.quick{width:570px}
.quick .m-body{padding:20px}
.quick #qs{width:100%;height:60px;border-radius:8px;background:var(--bg-base);padding:0 16px;font-size:20px;color:var(--text)}
.qs-hint{font-size:12px;color:var(--text-muted);margin:8px 2px}
.quick .res{margin-top:8px;max-height:360px;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);text-align:left}
.quick .res button:hover,.quick .res button.sel{background:var(--bg-active);color:var(--text)}
.quick .res .qs-l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quick .res .kind{margin-left:auto;font-size:12px;color:var(--text-muted);white-space:nowrap}
.qs-tip{font-size:12px;color:var(--text-muted);margin-top:12px}.qs-tip b{color:var(--status-online)}
.mini-g.sm{width:20px;height:20px;border-radius:6px}

/* ===== Identidade "Faixa" =====
   Asfalto, tinta amarela de faixa e o corte inclinado das faixas de protesto.
   A inclinação é a marca: seleção ativa, botões e indicador da barra. O resto fica quieto. */
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.field:focus-visible,.composer textarea:focus-visible,input:focus-visible,textarea:focus-visible{outline:0}

/* títulos em Archivo condensada */
.guild-head,.c-head .title,.crumb,.welcome h1,.modal h2,.set-content h1,.auth-card h1,.now h2,.add-friend h2,.pop-title,.pp-name,.fp-name,.sp-name,.acc-name,.call-empty h2,.ci-name,.cat,.members h3,.side-label,.list-title,.tb-title,.set-content h2,.mt,.auth-inv h3,.rail-icon,.tile-name,.day,.voice-bar .ok,.auth-logo{font-stretch:72%}
.guild-head,.c-head .title,.welcome h1,.modal h2,.set-content h1,.auth-card h1,.now h2,.add-friend h2,.pp-name,.fp-name,.sp-name,.acc-name,.call-empty h2,.ci-name,.auth-inv h3{font-weight:800;letter-spacing:.005em}
.guild-head,.c-head .title{font-size:20px}
.c-head .title svg{color:var(--brand-ink)}
.tb-title{font-size:15px;font-weight:700}
.welcome h1{font-size:44px;line-height:1;margin:8px 0 10px;max-width:18ch}
.modal h2{font-size:28px;line-height:1.05}
.set-content h1{font-size:30px;line-height:1.05}
.now h2,.add-friend h2{font-size:24px}
.cat{font-size:15px;font-weight:800}
.side-label,.members h3,.list-title{font-size:15px;font-weight:700}
.rail-icon,.rail-icon .art{font-weight:800;font-size:16px}
.msg .author{font-weight:650}
.dm .name,.member .name,.nav-item,.chan{font-weight:550}

/* rótulos em caixa de frase, não em caixa alta */
.modal label,.settings label,.auth-card label,.perm-sec h3,.ow-main h3,.ep-sec,.pp-sec h3,.profile .p-sec h3,.fp-tab h3,.af h3,.ac-title,.ow-h,.th-list h4,.it-h{text-transform:lowercase;letter-spacing:0}
.modal label::first-letter,.settings label::first-letter,.auth-card label::first-letter,.perm-sec h3::first-letter,.ow-main h3::first-letter,.ep-sec::first-letter,.pp-sec h3::first-letter,.profile .p-sec h3::first-letter,.fp-tab h3::first-letter,.af h3::first-letter,.ac-title::first-letter,.th-list h4::first-letter{text-transform:uppercase}
.keep-case,.settings label.switch-row,.modal label.switch-row,.settings label.ct,.modal label.ct,.settings label.swatch{text-transform:none}
.modal label,.settings label,.auth-card label{font-size:14px;font-weight:600;color:var(--text-2)}
.set-head{font-size:13px;font-weight:700;text-transform:none}

/* a faixa: seleção ativa pintada e cortada na diagonal */
.nav-item.active,.chan.active,.dm.active,.set-nav button.active{background:var(--brand);color:var(--on-brand);clip-path:polygon(var(--slant) 0,100% 0,calc(100% - var(--slant)) 100%,0 100%);border-radius:0}
.chan.active svg,.chan.active .acts,.nav-item.active svg,.dm.active .sub,.dm.active .x,.chan.active .limit,.chan.active.connected,.chan.active.connected svg{color:var(--on-brand)}
.chan.active .limit{background:rgba(22,23,26,.15)}
.nav-item,.chan,.dm,.set-nav button{border-radius:4px;padding-left:14px}
.chan.thread{padding-left:30px}
.chan.unread::before,.dm.unread::before{left:-8px;width:5px;height:12px;margin-top:-6px;border-radius:0;background:var(--brand);transform:skewY(-24deg)}
.tab{border-radius:4px}
.tab.active{background:transparent;color:var(--text);border-radius:0;box-shadow:inset 0 -3px 0 var(--brand)}

/* barra de servidores: o indicador é uma faixa amarela inclinada */
.rail-pill{background:var(--brand);border-radius:0;width:5px;transform:skewY(-24deg) scaleY(0) translateX(-5px)}
.rail-item.unread .rail-pill,.rail-item:hover .rail-pill,.rail-item.active .rail-pill{transform:skewY(-24deg)}
.rail-icon{border-radius:10px}
.rail-item.has-art.active .rail-icon{box-shadow:0 0 0 2px var(--bg-base),0 0 0 4px var(--brand)}
.rail-item.green:hover .rail-icon{color:var(--on-brand)}
.rail-sep{width:28px;height:4px;background:repeating-linear-gradient(-62deg,var(--line-strong) 0 4px,transparent 4px 8px)}

/* botões: faixa cortada; o foco aparece por dentro, porque o corte esconde o contorno */
.btn:not(.outline),.tab.primary{clip-path:polygon(var(--slant) 0,100% 0,calc(100% - var(--slant)) 100%,0 100%);border-radius:0;padding:0 20px;font-weight:700}
.tab.primary{padding:0 14px}
.btn:not(.outline):focus-visible,.tab.primary:focus-visible,.nav-item.active:focus-visible,.chan.active:focus-visible,.dm.active:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--on-brand)}
.btn.gray:focus-visible,.btn.red:focus-visible,.btn.green:focus-visible{box-shadow:inset 0 0 0 2px var(--text)}
.btn.red{color:#fff}
.btn.outline{border-radius:4px}
.badge{background:var(--red);color:#16171a;font-weight:800}
.rail-icon .badge.pill-novo{background:var(--brand)}
.tag{border-radius:2px}
.day.new span{color:#16171a}
.offline{background:var(--brand);color:var(--on-brand);font-weight:700}

/* cabeçalho, mensagens e composer */
.c-head,.side-head,.guild-head{border-bottom-color:var(--line-strong)}
.msg.mentioned{background:var(--brand-soft)}
.msg.mentioned::before{width:3px;background:var(--brand)}
.msg.mentioned:hover{background:rgba(63,156,245,.22)}
.msg .text .mention{border-radius:2px;padding:0 3px}
.day{font-size:13px;font-weight:700}
.newbar{border-radius:0 0 4px 4px;font-weight:700}
.composer{border-radius:6px}
.composer:focus-within{border-color:var(--brand)}
.reply-bar,.uploads{border-radius:6px 6px 0 0}
.react{border-radius:4px}
.embed{border-left-color:var(--brand);border-radius:2px 6px 6px 2px}
.codeblock{border-radius:4px}
.msg .tools{border-radius:6px}
.welcome .big{background:var(--brand);color:var(--on-brand)}

/* painéis, menus e modais */
.menu,.popout,.ac,.toast,.tooltip{border-radius:6px}
.menu button{border-radius:3px}
.modal{border-radius:6px}
.modal::before,.auth-card::before{content:"";display:block;height:6px;background:repeating-linear-gradient(-62deg,var(--brand) 0 12px,transparent 12px 22px)}
.auth-card::before{position:absolute;left:0;right:0;top:0}
.lightbox::before{content:none}
.modal-bg{background:var(--overlay)}
.modal p>svg{display:inline-block;vertical-align:-3px}
.modal .m-foot{background:var(--bg-surface)}
.userpanel,.voice-bar{border-radius:6px}
.voice-bar .ok{font-size:15px;font-weight:800}
.now-card,.act{border-radius:6px}
.searchbox,.add-row,.head-search,.field,.pp-msg{border-radius:4px}
.add-row:focus-within,.field:focus{border-color:var(--brand)}
.sw{background:var(--text-faint)}
.sw:checked{background:var(--brand)}
.sw:checked::after{background:var(--on-brand)}
.ct.sel .radio{border-color:var(--brand)}
.tl.active{border-bottom-color:var(--brand)}
.theme span{border-radius:6px;width:72px;height:56px}
.save-bar{border-radius:6px;border:1px solid #33343a}
.call-incoming{border-radius:6px}

/* entrada: a palavra pintada no asfalto */
#auth{background:var(--bg-base);grid-template-columns:minmax(0,1fr)}
.auth-bg{background:repeating-linear-gradient(-62deg,rgba(242,243,245,.035) 0 46px,transparent 46px 92px),var(--bg-base);overflow:hidden}
.auth-word{position:absolute;left:-1.5vw;bottom:-3vw;margin:0;font-stretch:62%;font-weight:900;font-size:clamp(140px,24vw,420px);line-height:.8;letter-spacing:-.01em;color:var(--brand);transform:rotate(-8deg);transform-origin:left bottom;white-space:nowrap;user-select:none;pointer-events:none}
.auth-line{position:absolute;left:4vw;top:7vh;max-width:30ch;font-size:18px;line-height:1.4;color:var(--text-2)}
.auth-line b{display:block;font-stretch:72%;font-size:22px;font-weight:800;color:var(--text)}
.auth-card{width:min(440px,100%);padding:36px 32px 28px;border-radius:6px;overflow:hidden;border:1px solid var(--line-strong)}
.auth-logo{justify-content:flex-start;font-size:26px;letter-spacing:.01em}
.auth-logo svg{color:var(--brand-ink)}
.auth-card h1{font-size:36px;line-height:1;text-align:left;margin-top:4px}
.auth-sub{text-align:left;font-size:15px}
.auth-inv{text-align:left}
.auth-inv .il-icon{margin:0 0 12px}
@media (min-width:900px){#auth{place-items:center end;padding:24px 8vw}}
@media (max-width:899px){.auth-word{font-size:34vw;bottom:auto;top:12vw;left:-2vw}.auth-line{display:none}#auth{align-items:end;padding:36vw 16px 16px}}
html[data-theme="light"] .auth-bg{background:repeating-linear-gradient(-62deg,rgba(22,23,26,.05) 0 46px,transparent 46px 92px),var(--bg-base)}
html[data-theme="light"] .auth-word{color:#16171a}

/* silenciados */
.chan.muted:not(.active),.dm.muted:not(.active){opacity:.45}
.rail-item.muted .rail-icon{filter:saturate(.35) brightness(.8)}
.guild-head .g-muted{display:grid;color:var(--text-muted);margin-left:6px}
.guild-head .gname{flex:1;min-width:0}

/* enquete: cada resposta é uma faixa que enche na diagonal */
.poll{max-width:480px;margin-top:6px;padding:14px 14px 10px;border-radius:6px;background:var(--bg-surface);border:1px solid var(--line-strong)}
.poll-q{font-stretch:72%;font-size:20px;font-weight:800;line-height:1.15;color:var(--text)}
.poll-hint{font-size:13px;color:var(--text-muted);margin:4px 0 10px}
.poll-list{display:flex;flex-direction:column;gap:6px}
.poll-a{position:relative;isolation:isolate;display:flex;align-items:center;gap:10px;min-height:42px;padding:8px 12px;border-radius:4px;background:var(--bg-input);border:1px solid var(--line-strong);text-align:left;color:var(--text-2);overflow:hidden}
.poll-a:not(:disabled):hover{border-color:var(--brand)}
.poll-a:disabled{cursor:default}
.pa-fill{position:absolute;inset:0;z-index:-1;width:calc(var(--pct) + 14px);margin-left:-14px;background:var(--brand-soft);clip-path:polygon(0 0,100% 0,calc(100% - 14px) 100%,0 100%);transition:width .4s ease}
.poll-a.me .pa-fill,.poll-a.win .pa-fill{background:rgba(63,156,245,.38)}
.poll-a.me{border-color:var(--brand);color:var(--text)}
.pa-check{width:18px;height:18px;flex:none;border-radius:3px;border:2px solid var(--text-faint);display:grid;place-items:center;color:var(--on-brand)}
.poll-a.me .pa-check{background:var(--brand);border-color:var(--brand)}
.pa-t{flex:1;min-width:0;font-weight:550}
.pa-n{display:flex;flex-direction:column;align-items:flex-end;font-stretch:72%;font-weight:800;font-size:16px;color:var(--text);line-height:1.05}
.pa-n small{font-stretch:100%;font-size:11px;font-weight:500;color:var(--text-muted)}
.poll-a.win .pa-t{color:var(--text);font-weight:700}
.poll-foot{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:10px;font-size:13px;color:var(--text-muted)}
.poll-foot span{flex:1}
.poll-foot .link-btn{font-size:13px}
.pa-list{display:flex;flex-direction:column;gap:6px}
.pa-row{display:flex;align-items:center;gap:8px}
.pa-num{width:22px;flex:none;font-stretch:72%;font-weight:800;color:var(--brand-ink);text-align:center}
.poll-modal [data-padd]{margin-top:8px}

/* encaminhada */
.fwd{margin-top:4px;max-width:520px;padding:2px 0 2px 12px;border-left:3px solid var(--line-strong)}
.fwd-h{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--text-muted);margin-bottom:2px}
.fwd-poll{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--text-2);margin-top:2px}
.fwd-src{font-size:12px;color:var(--text-muted);margin-top:4px}
.fwd-src a{color:var(--text-muted);text-decoration:underline}
.fw-list{max-height:280px;overflow-y:auto;margin:10px -8px;padding:0 8px}
.fw-prev{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;margin:4px 0 10px;border-radius:4px;background:var(--bg-surface);font-size:14px;color:var(--text-2)}
.fw-prev svg{color:var(--brand-ink);margin-top:2px}
.fw-prev span{min-width:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.nd-row .mini-g{width:32px;height:32px;border-radius:8px}
.nd-row>.av,.nd-row>.mini-g{flex:none}
.modal label.nd-row{display:flex;margin:0;text-transform:none;font-size:inherit;font-weight:inherit;color:inherit;letter-spacing:0}
.modal label.nd-row::first-letter{text-transform:none}

/* mensagem de voz */
.vmsg{display:flex;align-items:center;gap:10px;width:min(340px,100%);padding:8px 12px 8px 8px;border-radius:24px;background:var(--bg-surface);border:1px solid var(--line-strong)}
.vm-play{width:36px;height:36px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:var(--on-brand)}
.vm-play:hover{background:var(--brand-hover)}
.vm-wave{flex:1;height:28px;display:flex;align-items:center;gap:2px;min-width:0}
.vm-wave i{flex:1;min-width:2px;border-radius:2px;background:var(--text-faint)}
.vm-wave i.on{background:var(--brand)}
.vm-time{font-size:12px;font-variant-numeric:tabular-nums;color:var(--text-muted);min-width:32px;text-align:right}
.composer.recording>:not(.recbar){display:none}
.recbar{flex:1;display:flex;align-items:center;gap:10px;min-height:54px}
.rec-dot{width:10px;height:10px;border-radius:50%;background:var(--red);animation:blink 1s infinite}
.rec-time{font-variant-numeric:tabular-nums;font-weight:600;color:var(--text);min-width:40px}
.rec-wave{flex:1;height:28px;display:flex;align-items:center;justify-content:flex-end;gap:2px;overflow:hidden}
.rec-wave i{width:3px;flex:none;border-radius:2px;background:var(--brand)}
.recbar .rec-send{background:var(--brand);color:var(--on-brand);clip-path:polygon(var(--slant) 0,100% 0,calc(100% - var(--slant)) 100%,0 100%);border-radius:0;width:48px}

/* eventos */
.ev-row{color:var(--text-muted)}
.ev-row.live{color:var(--text)}
.ev-row.live svg{color:var(--brand-ink)}
.live-dot{width:8px;height:8px;border-radius:50%;background:var(--red);box-shadow:0 0 0 3px rgba(255,59,107,.25);animation:blink 1.4s infinite}
.events-modal .m-body{max-height:calc(100vh - 120px)}
.ev-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.ev-head h2{margin:0!important}
.ev-card{display:flex;gap:16px;padding:16px 0;border-top:1px solid var(--line-strong)}
.ev-date{width:64px;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;height:72px;background:var(--brand);color:var(--on-brand);clip-path:polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%)}
.ev-date b{font-stretch:62%;font-weight:900;font-size:34px;line-height:.9}
.ev-date span{font-stretch:72%;font-weight:800;font-size:14px;text-transform:lowercase}
.ev-card:not(.live) .ev-date{background:var(--bg-tab);color:var(--text)}
.ev-info{flex:1;min-width:0}
.ev-when{font-size:13px;font-weight:600;color:var(--brand-ink)}
.ev-live{display:inline-flex;align-items:center;gap:6px;color:var(--red);font-weight:700}
.ev-live::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--red)}
.ev-info h3{font-stretch:72%;font-size:22px;font-weight:800;color:var(--text);margin:2px 0 4px;line-height:1.1}
.ev-where{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--text-2)}
.ev-desc{font-size:14px;color:var(--text-2);margin-top:6px;line-height:1.45;text-align:left!important}
.ev-meta{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-muted);margin-top:8px}
.ev-acts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}

/* palanque */
.stage-room{overflow:hidden}
.stage-scroll{flex:1;min-height:0;overflow-y:auto;padding:28px 24px 12px}
.stage-top{max-width:760px;margin:0 auto 22px}
.stage-live{display:inline-block;padding:3px 12px;font-stretch:72%;font-weight:800;font-size:13px;background:var(--bg-tab);color:#9a9ca3;clip-path:polygon(6px 0,100% 0,calc(100% - 6px) 100%,0 100%)}
.stage-live.on{background:#ff6d73;color:#16171a}
.stage-top h2{font-stretch:72%;font-weight:900;font-size:clamp(28px,4vw,44px);line-height:1;color:#f2f3f5;margin:10px 0 6px;max-width:22ch}
.stage-top p{font-size:14px;color:#9a9ca3}
.stage-top p b{color:#3f9cf5}
.stage-speakers{display:flex;flex-wrap:wrap;gap:18px;max-width:760px;margin:0 auto 26px;padding:22px 18px;border-radius:6px;background:repeating-linear-gradient(-62deg,rgba(63,156,245,.06) 0 18px,transparent 18px 36px),#16171a;border:1px solid #33343a}
.spk{width:120px;display:flex;flex-direction:column;align-items:center;gap:8px;color:#f2f3f5;text-align:center}
.spk .av{transition:box-shadow .15s}
.spk.speaking .av .ini{box-shadow:0 0 0 3px #3f9cf5,0 0 0 6px #16171a}
.spk b{font-weight:650;font-size:14px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.spk small{display:flex;align-items:center;gap:4px;font-size:11px;color:#9a9ca3}
.stage-empty{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px;color:#9a9ca3;padding:8px 0}
.stage-aud-h{max-width:760px;margin:0 auto 10px;font-stretch:72%;font-weight:800;font-size:16px;color:#d4d6da}
.stage-aud{display:flex;flex-wrap:wrap;gap:6px;max-width:760px;margin:0 auto}
.stage-aud .muted{color:#9a9ca3}
.aud-p{position:relative;width:84px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 4px;border-radius:6px;color:#d4d6da;font-size:12px}
.aud-p:hover{background:#20242c}
.aud-p span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aud-hand{position:absolute;top:4px;right:12px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#3f9cf5;color:#16171a}
.aud-p.hand{background:rgba(63,156,245,.08)}
.stage-room .tiles{max-width:960px;margin:0 auto 20px;padding:0}
.stage-room .call-controls{align-items:center;flex-wrap:wrap;padding:12px 16px 18px;border-top:1px solid #33343a}
.stage-tip{font-size:13px;color:#9a9ca3;max-width:240px}

/* auditoria */
.au-list{display:flex;flex-direction:column}
.au-row{display:flex;align-items:center;gap:12px;padding:10px 6px;border-bottom:1px solid var(--line)}
.au-ic{width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:4px;background:var(--bg-surface);color:var(--brand-ink)}
.au-t{flex:1;min-width:0;font-size:14px;color:var(--text-2);line-height:1.4}
.au-t b{color:var(--text);font-weight:650}
.au-t small{display:block;font-size:12px;color:var(--text-muted)}
.au-row time{font-size:12px;color:var(--text-muted);white-space:nowrap}
.roles-top select.field{flex:1;height:36px}

/* ===== Lote 2 ===== */
/* fórum */
.forum{flex:1;min-height:0;overflow-y:auto;padding:16px 24px 32px}
.forum-top{display:flex;gap:12px;align-items:center;max-width:860px;margin:0 auto 12px}
.forum-top .searchbox{flex:1}
.forum-top .btn.big{height:40px;white-space:nowrap}
.ftags-bar{display:flex;flex-wrap:wrap;gap:6px;max-width:860px;margin:0 auto 14px}
.post-modal .ftags-bar{margin:0}
.ftag{display:inline-flex;align-items:center;height:26px;padding:0 12px;font-size:13px;font-weight:600;color:var(--text-2);background:var(--bg-surface);border:1px solid var(--line-strong);border-radius:3px}
button.ftag:hover{border-color:var(--brand)}
.ftag.sel{background:var(--brand);border-color:var(--brand);color:var(--on-brand);clip-path:polygon(5px 0,100% 0,calc(100% - 5px) 100%,0 100%)}
.posts{display:flex;flex-direction:column;gap:8px;max-width:860px;margin:0 auto}
.post{display:flex;gap:14px;align-items:stretch;padding:14px 16px;border-radius:6px;background:var(--bg-surface);border:1px solid var(--line-strong);text-align:left;color:var(--text-2)}
.post:hover{border-color:var(--brand)}
.post.unread{border-left:4px solid var(--brand)}
.post-main{flex:1;min-width:0}
.post-tags{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:6px}
.post-tags .ftag{height:20px;padding:0 8px;font-size:11px}
.welcome .post-tags{margin:8px 0}
.post h3{font-stretch:72%;font-size:20px;font-weight:800;line-height:1.15;color:var(--text)}
.post-prev{margin-top:4px;font-size:14px;color:var(--text-muted);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin-top:10px;font-size:12px;color:var(--text-muted)}
.post-meta b{color:var(--text-2);font-weight:600;margin-left:-6px}
.post-meta span{display:inline-flex;align-items:center;gap:4px}
.post-img{width:96px;height:96px;flex:none;border-radius:4px;object-fit:cover}
.forum .empty{padding:60px 20px}
.forum .empty svg{margin:0 auto 12px;color:var(--text-faint)}
.tag-edit{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.tag-row{display:flex;align-items:center;gap:8px}
.tag-row .field{flex:1;height:36px}

/* pastas de servidores */
.rail-folder{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%}
.rail-folder.open{background:color-mix(in srgb,var(--fc) 14%,transparent);border-radius:12px;width:52px;margin:0 auto;padding-bottom:8px}
.rail-folder.open .rail-item{width:52px}
.rail-folder.open .rail-pill{left:-10px}
.folder-head .rail-icon{background:color-mix(in srgb,var(--fc) 22%,var(--bg-surface));color:var(--fc)}
.rail-item.folder-head:hover .rail-icon{background:color-mix(in srgb,var(--fc) 32%,var(--bg-surface));color:var(--fc)}
.fold-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px;width:30px;height:30px}
.fold-grid .mini-g{width:14px;height:14px;border-radius:4px}
.fold-grid .mini-g .art{font-size:6px}

/* prévia de links */
.lp-card{display:flex;gap:14px;max-width:460px;margin-top:6px;padding:12px 14px;border-radius:2px 6px 6px 2px;background:var(--bg-surface);border:1px solid var(--line-strong);border-left:4px solid var(--lpc,var(--brand))}
.lp-card.big{flex-direction:column}
.lp-t{flex:1;min-width:0}
.lp-site{font-size:12px;color:var(--text-muted);margin-bottom:4px}
.lp-title{display:block;font-size:15px;font-weight:700;color:var(--link);line-height:1.3}
.lp-desc{margin-top:6px;font-size:13px;line-height:1.45;color:var(--text-2);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.lp-img{width:80px;height:80px;flex:none;border-radius:4px;object-fit:cover}
.lp-card.big .lp-img{width:100%;height:auto;max-height:240px}

/* aperte para falar */
.ptt-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:6px;height:40px;margin-top:8px;font-weight:700;font-size:14px;color:var(--on-brand);background:var(--brand);clip-path:polygon(var(--slant) 0,100% 0,calc(100% - var(--slant)) 100%,0 100%);user-select:none;touch-action:none}
.ptt-btn small{font-weight:500;opacity:.75}
.ptt-btn.on{background:var(--status-online)}
.in-voice.ptt-bar .side-scroll{padding-bottom:228px}
[data-pttkey].listening{outline:2px solid var(--brand)}

/* celular: lateral vira gaveta e o composer fica acima do painel do usuário */
#sideBtn{display:none}
@media (max-width:760px){
  #sideBtn{display:grid}
  .app.side-open .sidebar{display:flex;position:fixed;z-index:20;top:var(--title);bottom:0;left:var(--rail);width:min(304px,calc(100vw - var(--rail)));border-radius:0;box-shadow:12px 0 32px rgba(0,0,0,.45)}
  .app.side-open #sideBtn{color:var(--brand-ink)}
  .app.side-open .userpanel,.app.side-open .voice-bar{z-index:21}
  .content{padding-bottom:70px}
  .in-voice .content{padding-bottom:164px}
  .in-voice.ptt-bar .content{padding-bottom:212px}
  .forum{padding:12px}
  .post-img{width:64px;height:64px}
  .c-head{padding-left:12px;overflow-x:auto;scrollbar-width:none}
  .c-head .head-search,.c-head .topic,.c-head .dot{display:none}
  .c-head .icons{gap:10px;padding-right:0}
  .msg{padding:2px 12px 2px 60px}
  .msg .av,.msg .mav{left:10px}
  .msg .stamp{width:60px}
  .msg.sys{padding:4px 12px 4px 60px}
  .msg.sys .sys-ic{left:22px}
  .welcome h1{font-size:34px}
  .composer-wrap{padding:0 8px 8px}
  .friends{padding:12px}
}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---------- Rojão: assinatura, selos e níveis do servidor ---------- */
html[data-theme="brasa"]{--bg-base:#120d0b;--bg-main:#1c1411;--bg-surface:#261b17;--bg-raised:#2f221d;--bg-input:#0f0b09;--bg-hover:#241a16;--bg-active:#33251f;--bg-tab:#3d2c25;--line:#271c18;--line-strong:#352720;--bg-tile:#261b17;--brand:#ff8a2a;--brand-hover:#ffa152;--brand-ink:#ff9a45;--brand-soft:rgba(255,138,42,.16);--mention-ink:#ffc08a}
html[data-theme="gramado"]{--bg-base:#0a110d;--bg-main:#0f1813;--bg-surface:#16211b;--bg-raised:#1c2a22;--bg-input:#080e0b;--bg-hover:#142019;--bg-active:#203027;--bg-tab:#28392f;--line:#16211b;--line-strong:#213128;--bg-tile:#16211b;--brand:#39d17a;--brand-hover:#5ee396;--brand-ink:#4ad987;--brand-soft:rgba(57,209,122,.16);--mention-ink:#a6f0c4}
html[data-theme="arquibancada"]{--bg-base:#090e19;--bg-main:#0d1322;--bg-surface:#141c2e;--bg-raised:#1a2438;--bg-input:#070b14;--bg-hover:#121a2b;--bg-active:#1e2a40;--bg-tab:#26334c;--line:#141c2e;--line-strong:#1f2a40;--bg-tile:#141c2e;--brand:#4aa3ff;--brand-hover:#73b8ff;--brand-ink:#6cb4ff;--brand-soft:rgba(74,163,255,.16);--mention-ink:#b3d8ff}
.theme.locked span{display:grid;place-items:center;color:#f2f3f5;filter:saturate(.55)}
.theme.locked span svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.6))}
.rj-h{display:flex;align-items:center;gap:10px;margin-top:24px}
.rj-chip{display:inline-flex;align-items:center;gap:4px;padding:2px 9px;font-size:11px;font-weight:800;letter-spacing:.04em;color:#16171a;background:#3f9cf5;clip-path:polygon(5px 0,100% 0,calc(100% - 5px) 100%,0 100%);vertical-align:middle}

/* selos */
.rj-badges{display:flex;gap:6px;margin:6px 0 2px}
.rj-badge{display:inline-flex;align-items:center;justify-content:center;gap:1px;min-width:26px;height:22px;padding:0 6px;color:#16171a;background:#3f9cf5;clip-path:polygon(5px 0,100% 0,calc(100% - 5px) 100%,0 100%);cursor:default}
.rj-badge[data-rojaoopen]{cursor:pointer}
.rj-badge b{font-size:12px;font-weight:900;line-height:1}
.rj-badge.t0{background:#d4d6da}.rj-badge.t1{background:#3f9cf5}.rj-badge.t2{background:#ffa043}.rj-badge.t3{background:#ff6b3d}.rj-badge.t4{background:linear-gradient(90deg,#ff6d73,#3f9cf5)}.rj-badge.t5{background:linear-gradient(90deg,#4aa3ff,#ff6d73,#3f9cf5)}
.rj-badge.boost{background:var(--bg-tab);color:#3f9cf5}
.rj-boost{display:inline-grid;place-items:center;margin-left:6px;color:#3f9cf5}
.sys-ic .rj-ic{color:#3f9cf5}

/* perfil com tema */
.pp.themed,.prev-card.themed,.modal.fullprof.themed{background:linear-gradient(165deg,var(--pt1) 0%,var(--pt2) 100%);box-shadow:inset 0 0 0 2px var(--pt2)}
.pp.themed .pp-body,.prev-card.themed .pc-body,.fullprof.themed .fp-body{background:rgba(10,11,14,.55);color:#f2f3f5;margin:0 6px 6px;border-radius:6px}
.pt-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:6px}
.pt-pick{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text-2);text-transform:none;margin:0;cursor:pointer}
.pt-pick input{width:40px;height:32px;border:0;padding:0;background:none;cursor:pointer}
.pt-row.off .pt-pick{opacity:.45;cursor:not-allowed}
.rj-btn{background:#3f9cf5;color:#16171a}

/* página da assinatura */
.rj-hero{position:relative;overflow:hidden;margin:-8px 0 28px;padding:28px 28px 22px;background:#212226;color:#f2f3f5;border-radius:6px}
.rj-stripes{position:absolute;inset:0;background:repeating-linear-gradient(-62deg,transparent 0 34px,rgba(63,156,245,.95) 34px 58px);clip-path:polygon(74% 0,100% 0,100% 100%,60% 100%)}
.rj-hero.on .rj-stripes{background:repeating-linear-gradient(-62deg,transparent 0 34px,rgba(63,156,245,.95) 34px 58px,transparent 58px 92px,rgba(242,243,245,.9) 92px 116px)}
.rj-hero-in{position:relative;max-width:58%}
.rj-kicker{font-stretch:72%;font-weight:800;font-size:13px;letter-spacing:.18em;color:#3f9cf5}
.rj-word{font-stretch:62%;font-weight:900;font-size:clamp(64px,10vw,104px);line-height:.82;letter-spacing:-.01em;color:#f2f3f5;margin:4px 0 12px}
.rj-lead{font-size:16px;line-height:1.4;color:#d4d6da;margin:0 0 16px}
.rj-lead b{color:#f2f3f5}
.rj-buy{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.rj-cta{height:40px;font-size:15px;background:#3f9cf5;color:#16171a}
.rj-cta:hover{background:#5fb0fa}
.rj-soon{font-stretch:72%;font-weight:800;font-size:18px;color:#3f9cf5}
.rj-fine{font-size:12px;color:#9a9ca3;margin:12px 0 0}
.rj-table{border:1px solid var(--line-strong);border-radius:6px;overflow:hidden;margin-bottom:28px}
.rj-tr{display:grid;grid-template-columns:1fr 110px 120px;align-items:center;gap:8px;padding:10px 14px;font-size:14px;color:var(--text-2);border-top:1px solid var(--line)}
.rj-tr:first-child{border-top:0}
.rj-tr.head{font-stretch:72%;font-weight:800;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);background:var(--bg-surface)}
.rj-tr.head span:last-child{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--brand-ink)}
.rj-tr span:nth-child(2),.rj-tr span:nth-child(3){text-align:center}
.rj-tr .no{color:var(--text-faint)}
.rj-tr .yes{font-weight:700;color:var(--brand-ink);display:flex;justify-content:center}
.rj-rockets{display:flex;flex-direction:column;gap:8px;margin-bottom:28px}
.rj-rocket{display:flex;align-items:center;gap:12px;padding:10px 14px;background:var(--bg-surface);border-radius:6px;color:var(--text-muted)}
.rj-rocket.on{color:var(--brand-ink)}
.rj-rocket b{display:block;color:var(--text);font-size:15px}
.rj-rocket small{font-size:12px;color:var(--text-muted)}
.rj-selos{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:28px}
.rj-selo{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 4px;background:var(--bg-surface);border-radius:6px;text-align:center;opacity:.5}
.rj-selo.got{opacity:1}
.rj-selo b{font-stretch:72%;font-weight:800;font-size:14px;color:var(--text)}
.rj-selo small{font-size:11px;color:var(--text-muted)}
.rj-admin{display:grid;grid-template-columns:1fr 90px 90px auto auto;gap:8px;align-items:center}
.rj-code{font-family:ui-monospace,Consolas,monospace;font-size:12px;word-break:break-all}
.rj-wait{display:flex;align-items:center;gap:8px;color:var(--brand-ink);font-weight:600}
.rj-glist{display:flex;flex-direction:column;gap:2px;max-height:50vh;overflow-y:auto}
.rj-glist .fp-row{width:100%;text-align:left}
.rj-glist small{color:var(--text-muted);font-size:12px}

/* aviso de benefício */
.rj-up-top{position:relative;display:flex;align-items:center;justify-content:space-between;padding:22px 24px;background:#212226;color:#3f9cf5;overflow:hidden}
.rj-up-top::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(-62deg,transparent 0 26px,rgba(63,156,245,.9) 26px 44px);clip-path:polygon(70% 0,100% 0,100% 100%,58% 100%)}
.rj-up-top .rj-word{position:relative;font-size:64px;margin:0}
.rj-up-top svg{position:relative;box-sizing:content-box;padding:10px;color:#3f9cf5;background:#212226;border-radius:50%}

/* lateral do servidor */
.guild-head.has-banner{height:120px;align-items:flex-start;padding-top:12px;background:linear-gradient(180deg,rgba(0,0,0,.55),transparent 60%),var(--gbanner) center/cover;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.7)}
.rj-side{display:flex;align-items:center;gap:10px;width:100%;padding:6px 16px 8px;border-bottom:1px solid var(--line);color:var(--text-muted);font-size:12px}
.rj-side:hover{background:var(--bg-hover)}
.rj-side-l{display:flex;align-items:center;gap:5px;white-space:nowrap;font-weight:700;color:var(--brand-ink)}
.rj-side-l small{font-weight:500;color:var(--text-muted);margin-left:4px}
.rj-track{position:relative;flex:1;height:6px;background:var(--bg-tab);clip-path:polygon(3px 0,100% 0,calc(100% - 3px) 100%,0 100%)}
.rj-track i{position:absolute;inset:0 auto 0 0;background:repeating-linear-gradient(-62deg,#3f9cf5 0 8px,#5fb0fa 8px 12px)}
.rj-track.big{position:absolute;left:0;right:0;top:9px;height:10px}

/* tela de rojões do servidor */
.modal.rj-gmodal{width:680px}
.rj-g-top{position:relative;overflow:hidden;background:#212226;color:#f2f3f5}
.rj-g-top .rj-stripes{clip-path:polygon(74% 0,100% 0,100% 100%,62% 100%)}
.rj-g-in{position:relative;display:flex;align-items:center;gap:16px;padding:22px 24px}
.rj-g-in .mini-g.lg{width:64px;height:64px;border-radius:16px}
.rj-g-in h2{margin:2px 0;text-align:left;color:#f2f3f5;font-size:28px}
.rj-g-in p{margin:0;color:#d4d6da;text-align:left}
.rj-x{position:absolute!important;top:10px;right:10px;width:32px!important;height:32px!important;background:#212226;color:#f2f3f5!important;border-radius:50%!important}
.rj-x:hover{background:#000}
.rj-trail{position:relative;height:58px;margin:8px 14px 18px}
.rj-mark{position:absolute;top:0;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;padding-top:26px;font-size:12px;color:var(--text-muted);white-space:nowrap}
.rj-mark::before{content:"";position:absolute;top:4px;width:18px;height:18px;background:var(--bg-tab);transform:skewX(-20deg);box-shadow:0 0 0 3px var(--bg-main)}
.rj-mark.on::before{background:#3f9cf5}
.rj-mark b{font-stretch:72%;font-weight:800;font-size:13px;color:var(--text)}
.rj-mark:nth-child(2){transform:none;align-items:flex-start}
.rj-mark:last-child{transform:translateX(-100%);align-items:flex-end}
.rj-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}
.rj-lvl{padding:12px 14px;background:var(--bg-surface);border-radius:6px;border-top:3px solid var(--bg-tab)}
.rj-lvl.on{border-top-color:#3f9cf5}
.rj-lvl h3{display:flex;align-items:center;gap:6px;margin:0 0 6px;font-stretch:72%;font-weight:800;font-size:17px;color:var(--text)}
.rj-lvl.on h3{color:var(--brand-ink)}
.rj-lvl ul{margin:0;padding-left:16px;font-size:13px;line-height:1.55;color:var(--text-2)}
.rj-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.rj-sub{font-stretch:72%;font-weight:800;font-size:16px;color:var(--text);margin:18px 0 8px}
.rj-boosters{display:flex;flex-wrap:wrap;gap:8px}
.rj-bst{display:flex;align-items:center;gap:8px;padding:6px 10px 6px 6px;background:var(--bg-surface);border-radius:6px;cursor:pointer;font-size:14px;color:var(--text)}
.rj-bst small{color:var(--text-muted);font-size:12px}
.rj-perks{display:flex;flex-direction:column;gap:8px}
.rj-perk{display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--bg-surface);border-radius:6px}
.rj-perk>div{flex:1;min-width:0}
.rj-perk b{display:block;color:var(--text);font-size:14px}
.rj-perk small{font-size:12px;color:var(--text-muted)}
.rj-perk small b{display:inline}
.rj-perk img{width:72px;height:36px;object-fit:cover;border-radius:4px}
.rj-perk .field{width:150px;height:32px}
.rj-perk.off{opacity:.55}

.ep-cells button.locked{position:relative}
.ep-cells button.locked img{filter:grayscale(1);opacity:.45}
.ep-cells button.locked::after{content:"";position:absolute;right:3px;bottom:3px;width:11px;height:11px;background:#3f9cf5;clip-path:polygon(3px 0,100% 0,calc(100% - 3px) 100%,0 100%)}

/* fogos ao ativar */
.rj-fogos{position:fixed;left:50%;top:50%;z-index:200;pointer-events:none}
.rj-fly{position:absolute;left:-20px;top:-20px;color:#3f9cf5;animation:rjfly .7s cubic-bezier(.2,.7,.3,1) both}
.rj-fogos i{position:absolute;left:-4px;top:-4px;width:8px;height:8px;background:#3f9cf5;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);opacity:0;animation:rjspark .9s .6s ease-out both}
.rj-fogos i:nth-child(3n){background:#f2f3f5}.rj-fogos i:nth-child(3n+1){background:#ff8a2a}
@keyframes rjfly{from{transform:translate(-30vw,40vh) rotate(0)}to{transform:translate(0,0) rotate(-10deg);opacity:0}}
@keyframes rjspark{0%{opacity:1;transform:rotate(var(--a)) translateY(0)}100%{opacity:0;transform:rotate(var(--a)) translateY(calc(var(--d)*-1))}}

@media (max-width:760px){
  .rj-hero{padding:22px 18px}.rj-hero-in{max-width:none}.rj-stripes{opacity:.25}
  .rj-tr{grid-template-columns:1fr 70px 80px;font-size:13px;padding:10px}
  .rj-selos{grid-template-columns:repeat(3,1fr)}
  .rj-admin{grid-template-columns:1fr 1fr}
  .rj-levels{grid-template-columns:1fr}
  .rj-perk{flex-wrap:wrap}
}

/* ===== Polimento: composer, foco e animações ===== */
/* composer mais baixo, sem contorno amarelo: o foco é um fio claro */
.composer{min-height:46px;border-color:transparent;transition:box-shadow .15s,background .15s}
.composer:focus-within{border-color:transparent;box-shadow:0 0 0 1px color-mix(in srgb,var(--text) 16%,transparent)}
/* border-box: a altura que o fitInput mede (scrollHeight) já inclui o padding */
.composer textarea{padding:12px 6px;box-sizing:border-box}
.composer textarea:placeholder-shown{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.composer .icon-btn{width:34px;height:34px;border-radius:6px;transition:background .12s,color .12s}
.composer .icon-btn:hover{background:var(--bg-hover);color:var(--text)}
.recbar{min-height:46px}
.reply-bar,.uploads{border-color:transparent;background:var(--bg-raised)}
.add-row:focus-within,.field:focus{border-color:color-mix(in srgb,var(--brand) 55%,var(--line-strong))}
:focus-visible{outline-color:color-mix(in srgb,var(--brand) 80%,transparent)}

/* animações curtas, no estilo de app: entram, não enfeitam */
@keyframes mz-fade{from{opacity:0}to{opacity:1}}
@keyframes mz-in{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
@keyframes mz-drop{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:none}}
@keyframes mz-msg{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes mz-set{from{opacity:0;transform:scale(1.025)}to{opacity:1;transform:none}}
.modal-bg{animation:mz-fade .16s ease-out}
.modal{animation:mz-in .22s cubic-bezier(.2,.9,.3,1.15)}
.menu{animation:mz-drop .12s ease-out}
.popout{animation:mz-drop .15s ease-out}
.toast{animation:mz-in .2s ease-out}
.settings{animation:mz-set .2s ease-out}
.msg.fresh{animation:mz-msg .24s ease-out}
.msg .tools{animation:mz-drop .1s ease-out}
.btn{transition:background .15s,filter .15s,transform .08s}
.btn:active:not(:disabled){transform:translateY(1px)}
.rail-icon{transition:background .15s,color .15s,transform .1s}
.rail-item:active .rail-icon{transform:scale(.94)}
.chan,.dm,.nav-item,.member,.friend,.post{transition:background .1s,color .1s,border-color .12s}
.react{transition:transform .1s,background .15s,border-color .15s}
.react:active{transform:scale(.9)}
.poll-a,.ev-card,.lp-card{transition:border-color .12s}

/* ===== Rojão: página da assinatura ===== */
.rj2{--rj:#3f9cf5;--rj-ink:#16171a;max-width:820px}
.rj2 .rj2-h{font-stretch:72%;font-weight:800;font-size:22px;color:var(--text);margin:32px 0 6px}
.rj2-p{margin:0 0 12px}
.rj2-hero{position:relative;overflow:hidden;display:flex;align-items:center;gap:20px;min-height:230px;padding:30px 32px;border-radius:10px;color:#f2f3f5;background:radial-gradient(120% 140% at 85% 110%,#1d2a3b 0,transparent 55%),linear-gradient(160deg,#26272c 0%,#16171a 70%)}
.rj2-hero::after{content:"";position:absolute;right:-40px;top:0;bottom:0;width:46%;background:repeating-linear-gradient(-62deg,transparent 0 28px,rgba(63,156,245,.14) 28px 46px);clip-path:polygon(30% 0,100% 0,100% 100%,0 100%);pointer-events:none}
.rj2-hero-in{position:relative;z-index:1;flex:1;min-width:0}
.rj2-brand{display:inline-flex;align-items:center;gap:6px;font-stretch:72%;font-weight:800;font-size:14px;color:var(--rj)}
.rj2 .rj2-word,.rj2-up-top .rj2-word{font-stretch:62%;font-weight:900;font-size:clamp(72px,11vw,120px);line-height:.8;letter-spacing:-.01em;margin:6px 0 14px;color:#f2f3f5;text-shadow:0 2px 0 rgba(0,0,0,.25)}
.rj2-up-top .rj2-word.sm{font-size:64px;margin:4px 0 0}
.modal.rj-up::before{content:none}
.rj2-lead{max-width:44ch;font-size:16px;line-height:1.45;color:#d4d6da}
.rj2-rocket{position:relative;z-index:1;flex:none;color:var(--rj);transform:rotate(-18deg);filter:drop-shadow(0 10px 24px rgba(63,156,245,.35));animation:rj2-float 3.6s ease-in-out infinite}
@keyframes rj2-float{0%,100%{transform:rotate(-18deg) translateY(0)}50%{transform:rotate(-14deg) translateY(-8px)}}
.rj2-sky{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.rj2-sky i{position:absolute;left:var(--x);bottom:-6px;width:3px;height:3px;border-radius:50%;background:var(--rj);box-shadow:0 0 6px 1px rgba(63,156,245,.7);opacity:0;animation:rj2-spark var(--t) linear var(--w) infinite}
@keyframes rj2-spark{0%{opacity:0;transform:translateY(0)}15%{opacity:.9}100%{opacity:0;transform:translateY(-240px)}}
.rj2-status{max-width:380px;margin-top:16px;padding:12px 14px;border-radius:8px;background:rgba(0,0,0,.28);border:1px solid rgba(242,243,245,.08)}
.rj2-st-row{display:flex;justify-content:space-between;align-items:baseline;font-size:13px;color:#d4d6da}
.rj2-st-row b{font-stretch:72%;font-weight:900;font-size:26px;color:var(--rj);margin-right:4px}
.rj2-meter{display:block;height:6px;margin:8px 0 10px;border-radius:3px;background:rgba(242,243,245,.12);overflow:hidden}
.rj2-meter i{display:block;height:100%;background:linear-gradient(90deg,#ff9f1c,var(--rj));border-radius:inherit}
.rj2-st-selo{display:flex;align-items:center;gap:8px;font-size:13px;color:#d4d6da}
.rj2-st-selo b{color:#f2f3f5}
/* planos */
.rj2-plans{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
.rj2-plan{position:relative;display:flex;flex-direction:column;gap:2px;padding:20px 20px 18px;border-radius:10px;background:var(--bg-surface);border:1px solid var(--line-strong);transition:transform .15s,border-color .15s,box-shadow .15s}
.rj2-plan:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--rj) 45%,var(--line-strong));box-shadow:0 10px 24px rgba(0,0,0,.18)}
.rj2-plan.best{border-color:color-mix(in srgb,var(--rj) 60%,transparent);background:linear-gradient(180deg,color-mix(in srgb,var(--rj) 9%,var(--bg-surface)),var(--bg-surface) 60%)}
.rj2-ribbon{position:absolute;top:-11px;right:16px;padding:3px 12px;font-size:12px;font-weight:800;color:var(--rj-ink);background:var(--rj);clip-path:polygon(6px 0,100% 0,calc(100% - 6px) 100%,0 100%)}
.rj2-plan-name{font-size:13px;font-weight:600;color:var(--text-muted)}
.rj2-price{font-stretch:72%;font-weight:900;font-size:40px;line-height:1.05;color:var(--text)}
.rj2-plan small{font-size:13px;color:var(--text-muted);margin-bottom:14px}
.rj2-cta{position:relative;overflow:hidden;height:42px;margin-top:auto;font-size:15px;background:var(--rj);color:var(--rj-ink)}
.rj2-cta::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-20deg);transition:left .45s ease}
.rj2-cta:hover::after{left:120%}
.rj2-cta.ghost{background:var(--bg-tab);color:var(--text)}
.rj2-cta.ghost:hover{background:var(--bg-active)}
.rj2-fine{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-muted);margin:10px 2px 0}
.rj2-soon{margin-top:16px;padding:16px;border-radius:8px;background:var(--bg-surface);font-stretch:72%;font-weight:800;font-size:18px;color:var(--brand-ink)}
/* benefícios: entram em sequência na primeira vez */
.rj2-perks{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}
.rj2-perk{display:flex;flex-direction:column;gap:4px;padding:16px 14px;border-radius:10px;background:var(--bg-surface);border:1px solid var(--line);animation:mz-in .35s ease-out both;animation-delay:calc(var(--n)*40ms);transition:border-color .15s,transform .15s}
.rj2-perk:hover{border-color:color-mix(in srgb,var(--rj) 40%,var(--line));transform:translateY(-2px)}
.rj2-pi{width:40px;height:40px;display:grid;place-items:center;margin-bottom:6px;border-radius:10px;color:var(--rj-ink);background:var(--rj)}
.rj2-perk b{font-size:15px;font-weight:700;color:var(--text)}
.rj2-perk small{font-size:13px;line-height:1.4;color:var(--text-muted)}
.rj2-compare{margin-top:14px}
.rj2-compare summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:14px;font-weight:600;color:var(--text-2);list-style:none;padding:6px 0}
.rj2-compare summary::-webkit-details-marker{display:none}
.rj2-compare summary svg{transform:rotate(-90deg);transition:transform .15s}
.rj2-compare[open] summary svg{transform:none}
.rj2-compare .rj-table{margin:8px 0 0;animation:mz-drop .15s ease-out}
/* rojões */
.rj2-rockets{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rj2-rk{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:10px;background:var(--bg-surface);border:1px solid var(--line);text-align:left;color:var(--text-muted)}
.rj2-rk-ic{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--bg-tab);color:var(--text-muted)}
.rj2-rk.on .rj2-rk-ic{background:var(--rj);color:var(--rj-ink)}
.rj2-rk b{display:block;font-size:14px;color:var(--text)}
.rj2-rk small{font-size:12px;color:var(--text-muted)}
.rj2-rk.add{border-style:dashed;cursor:pointer;transition:border-color .15s,background .15s}
.rj2-rk.add:hover{border-color:var(--rj);background:var(--bg-hover)}
.rj2-rk.add .rj2-rk-ic{background:transparent;border:2px dashed var(--line-strong)}
.rj2-rk-price{font-stretch:72%;font-weight:800;font-size:18px;color:var(--text)}
/* selos em trilha */
.rj2-selos{position:relative;display:grid;grid-template-columns:repeat(6,1fr);gap:6px;padding-top:6px}
.rj2-selos::before{content:"";position:absolute;left:8%;right:8%;top:22px;height:3px;background:var(--bg-tab)}
.rj2-selo{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;opacity:.55}
.rj2-selo .rj-badge{height:30px;min-width:40px;box-shadow:0 0 0 4px var(--bg-main)}
.rj2-selo.got{opacity:1}
.rj2-selo.cur .rj-badge{transform:scale(1.15);box-shadow:0 0 0 4px var(--bg-main),0 0 18px rgba(63,156,245,.5)}
.rj2-selo b{margin-top:4px;font-stretch:72%;font-weight:800;font-size:14px;color:var(--text)}
.rj2-selo small{font-size:11px;color:var(--text-muted)}

/* aviso de benefício */
.rj2-up-top{position:relative;overflow:hidden;padding:22px 24px 18px;color:#f2f3f5;background:radial-gradient(120% 140% at 90% 120%,#1d2a3b 0,transparent 60%),linear-gradient(160deg,#26272c,#16171a)}
.rj2-up-rk{position:absolute;right:18px;top:50%;margin-top:-36px;color:var(--rj,#3f9cf5);transform:rotate(-18deg);filter:drop-shadow(0 8px 18px rgba(63,156,245,.35));animation:rj2-float 3.6s ease-in-out infinite}
.rj-up .rj2-up-top .rj2-brand{color:#3f9cf5}

/* pagamento por Pix */
.modal.rj2-pay{width:460px;overflow:hidden}
.modal.rj2-pay::before{content:none}
.rj2-pay-top{position:relative;display:flex;align-items:center;gap:12px;padding:18px 20px;color:#f2f3f5;background:linear-gradient(160deg,#26272c,#16171a)}
.rj2-pay-top b{display:block;font-stretch:72%;font-weight:800;font-size:20px}
.rj2-pay-top span{font-size:13px;color:#d4d6da}
.rj2-pay-ic{width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:12px;color:#16171a;background:#3f9cf5}
.rj2-pay-top .rj-x{position:static!important}
.rj2-steps{display:flex;gap:4px;padding:10px 16px;background:var(--bg-surface);border-bottom:1px solid var(--line)}
.rj2-steps span{flex:1;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--text-faint)}
.rj2-steps i{width:20px;height:20px;flex:none;display:grid;place-items:center;border-radius:50%;font-style:normal;font-size:11px;font-weight:800;background:var(--bg-tab);color:var(--text-muted)}
.rj2-steps .on{color:var(--text)}
.rj2-steps .on i{background:#3f9cf5;color:#16171a}
.rj2-steps .done{color:var(--text-muted)}
.rj2-steps .done i{background:var(--status-online);color:#fff}
.rj2-step{animation:mz-in .2s ease-out}
.rj2-code{max-height:84px;overflow:hidden;padding:12px;margin:12px 0;border-radius:8px;background:var(--bg-input);border:1px solid var(--line-strong);-webkit-mask:linear-gradient(#000 60%,transparent)}
.rj2-code code{font-size:12px;line-height:1.5;word-break:break-all;color:var(--text-2)}
.rj2-copy{width:100%;height:42px}
.rj2-copy.done{background:var(--status-online);color:#fff}
.rj2-wait{display:flex;align-items:center;gap:10px;margin-top:14px;padding:10px 12px;border-radius:8px;background:var(--bg-surface);font-size:14px;color:var(--text-2)}
.rj2-wait.off{color:var(--red)}
.rj2-pulse{width:10px;height:10px;flex:none;border-radius:50%;background:#3f9cf5;animation:rj2-pulse 1.4s ease-out infinite}
@keyframes rj2-pulse{0%{box-shadow:0 0 0 0 rgba(63,156,245,.6)}100%{box-shadow:0 0 0 10px rgba(63,156,245,0)}}
.rj2-timer{margin-left:auto;font-variant-numeric:tabular-nums;font-weight:700;color:var(--text)}
.rj2-done{display:flex;flex-direction:column;align-items:center;text-align:center;padding:28px 20px 8px}
.rj2-done-ic{width:76px;height:76px;display:grid;place-items:center;border-radius:50%;color:#16171a;background:#3f9cf5;animation:rj2-pop .45s cubic-bezier(.2,.9,.3,1.4)}
@keyframes rj2-pop{0%{transform:scale(.3);opacity:0}100%{transform:none;opacity:1}}
.rj2-done h2{margin:14px 0 4px!important}

@media (max-width:760px){
  .rj2-hero{padding:22px 18px;min-height:0}
  .rj2-rocket{display:none}
  .rj2-plans,.rj2-rockets{grid-template-columns:1fr}
  .rj2-perks{grid-template-columns:1fr 1fr}
  .rj2-selos{grid-template-columns:repeat(3,1fr);row-gap:14px}
  .rj2-selos::before{display:none}
}
