/* Prévias idênticas ao Discord: mensagens, embeds, Components V2 e perfil do bot.
   As cores do tema Meia-noite foram medidas em capturas do Discord; Escuro e Claro seguem as cores do cliente oficial.
   Tudo aqui vale só dentro de .dc, para o painel nunca vazar estilo para a prévia. */
.dc{
 --dc-font:'gg sans','Noto Sans','Helvetica Neue',Helvetica,Arial,sans-serif;--dc-mono:Consolas,'Andale Mono WT','Andale Mono','Lucida Console',Monaco,'Courier New',monospace;
 --dc-chat:#000000;--dc-container:#0a0a0c;--dc-border:#26262a;--dc-separator:#2c2c2f;--dc-header:#f2f3f5;--dc-text:#d4d5d8;--dc-muted:#949ba4;
 --dc-code:#10111e;--dc-code-border:#30313d;--dc-mention:#1d2043;--dc-mention-text:#8ca0fd;--dc-pill:#26262a;--dc-link:#00a8fc;
 --dc-input:#0a0a0c;--dc-input-border:#26262a;--dc-secondary:#26262a;--dc-secondary-hover:#2e2e33;--dc-secondary-text:#f2f3f5;--dc-quote:#3a3a3f;--dc-spoiler:#26262a;
 --dc-popout:#0a0a0c;--dc-popout-card:#121214;--dc-topbar-border:#1c1c1f;
 font-family:var(--dc-font);color:var(--dc-text);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;letter-spacing:0;
}
.dc[data-dc-theme="dark"]{
 --dc-chat:#313338;--dc-container:#2b2d31;--dc-border:#1e1f22;--dc-separator:#3f4147;--dc-header:#f2f3f5;--dc-text:#dbdee1;--dc-muted:#949ba4;
 --dc-code:#2b2d31;--dc-code-border:#1e1f22;--dc-mention:rgba(88,101,242,.3);--dc-mention-text:#c9cdfb;--dc-pill:#3f4147;--dc-link:#00a8fc;
 --dc-input:#1e1f22;--dc-input-border:#1e1f22;--dc-secondary:#4e5058;--dc-secondary-hover:#6d6f78;--dc-secondary-text:#fff;--dc-quote:#4e5058;--dc-spoiler:#1e1f22;
 --dc-popout:#232428;--dc-popout-card:#111214;--dc-topbar-border:#26282c;
}
.dc[data-dc-theme="light"]{
 --dc-chat:#ffffff;--dc-container:#f2f3f5;--dc-border:#e3e5e8;--dc-separator:#e3e5e8;--dc-header:#060607;--dc-text:#313338;--dc-muted:#5c5e66;
 --dc-code:#ebedef;--dc-code-border:#e3e5e8;--dc-mention:rgba(88,101,242,.15);--dc-mention-text:#505cdc;--dc-pill:#e3e5e8;--dc-link:#006ce7;
 --dc-input:#ebedef;--dc-input-border:#e3e5e8;--dc-secondary:#6d6f78;--dc-secondary-hover:#4e5058;--dc-secondary-text:#fff;--dc-quote:#c4c9ce;--dc-spoiler:#e3e5e8;
 --dc-popout:#ffffff;--dc-popout-card:#f2f3f5;--dc-topbar-border:#e3e5e8;
}

/* Janela do canal: cabeçalho e área de mensagens. */
.ms-preview-canvas.dc{background:var(--dc-chat);border:1px solid var(--dc-topbar-border);border-radius:10px;overflow:hidden;transition:background .2s}
.ms-preview-canvas.dc .ms-preview-context{display:flex;align-items:center;gap:8px;min-height:48px;margin:0;padding:0 16px;border:0;border-bottom:1px solid var(--dc-topbar-border);background:var(--dc-chat);border-radius:0;box-shadow:none}
.ms-preview-canvas.dc .dc-hash{flex:none;width:24px;height:24px;display:grid;place-items:center;color:var(--dc-muted);font-size:22px;font-weight:400;line-height:1}
.ms-preview-canvas.dc .ms-preview-context strong.dc-channel{color:var(--dc-header);font-size:16px;font-weight:600;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-preview-canvas.dc .dc-divider{flex:none;width:1px;height:24px;margin:0 4px;background:var(--dc-separator)}
.ms-preview-canvas.dc .ms-preview-context small{color:var(--dc-muted);font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ms-preview-canvas.dc .ms-preview-context-label{margin-left:auto;flex:none;padding:2px 8px;border-radius:4px;background:var(--dc-pill);color:var(--dc-muted);font-size:12px;font-weight:600;line-height:16px}
.ms-preview-canvas.dc .ms-preview-guild{display:none}

/* Mensagem do bot: avatar de 40px, nome, selo APP e horário, nas medidas do Discord. */
.ms-preview-canvas.dc .ms-discord{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:16px;margin:0;padding:16px 16px 20px;background:transparent;border:0;border-radius:0;box-shadow:none}
.ms-preview-canvas.dc .ms-avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#5865f2;color:#fff;font-size:16px;font-weight:600;margin-top:2px;box-shadow:none;border:0}
.ms-preview-canvas.dc .ms-avatar img{width:40px;height:40px;object-fit:cover;border-radius:50%}
.ms-preview-canvas.dc .ms-stack{min-width:0}
.ms-preview-canvas.dc .ms-bot-head{display:flex;align-items:center;flex-wrap:wrap;gap:0;margin:0 0 2px;min-height:22px;line-height:22px}
.ms-preview-canvas.dc .ms-bot-head strong{color:var(--dc-header);font-size:16px;font-weight:500;line-height:22px;letter-spacing:0;font-family:var(--dc-font)}
.ms-preview-canvas.dc .ms-bot-head>b{display:inline-flex;align-items:center;height:15px;margin:0 0 0 4px;padding:0 4px;border-radius:3px;background:#5865f2;color:#fff;font-size:10px;font-weight:500;line-height:15px;letter-spacing:.02em;text-transform:uppercase;box-shadow:none}
.ms-preview-canvas.dc .ms-bot-head small{margin-left:8px;color:var(--dc-muted);font-size:12px;font-weight:500;line-height:22px;letter-spacing:0}

/* Embed normal: barra de 4px, cantos de 4px e largura máxima de 516px. */
.ms-preview-canvas.dc .ms-preview-message{position:relative;display:block;max-width:516px;margin:2px 0 0;background:var(--dc-container);border:0;border-left:4px solid var(--ms-accent);border-radius:4px;box-shadow:none;overflow:hidden;color:var(--dc-text)}
.ms-preview-canvas.dc .ms-preview-body{padding:8px 16px 16px 12px;display:grid;gap:0}
.ms-preview-canvas.dc .ms-preview-author{display:flex;align-items:center;gap:8px;margin-top:8px;color:var(--dc-header);font-size:14px;font-weight:600;line-height:22px}
.ms-preview-canvas.dc .ms-preview-author a{color:var(--dc-header)}
.ms-preview-canvas.dc .ms-tiny-icon{width:24px;height:24px;border-radius:50%;object-fit:cover}
.ms-preview-canvas.dc .ms-preview-body h3{margin:8px 0 0;color:var(--dc-header);font-family:var(--dc-font);font-size:16px;font-weight:600;line-height:22px;letter-spacing:0}
.ms-preview-canvas.dc .ms-preview-body h3 a{color:var(--dc-link)}
.ms-preview-canvas.dc .ms-preview-description{margin-top:8px;color:var(--dc-text);font-size:14px;line-height:18px;white-space:normal}
.ms-preview-canvas.dc .ms-preview-thumb{float:right;width:80px;height:80px;margin:8px 0 0 16px;border-radius:3px;object-fit:contain}
.ms-preview-canvas.dc .ms-preview-fields{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;margin-top:8px}
.ms-preview-canvas.dc .ms-preview-fields>div{grid-column:1/13;min-width:0}
.ms-preview-canvas.dc .ms-preview-fields>div.inline{grid-column:auto/span 4}
.ms-preview-canvas.dc .ms-preview-fields strong{display:block;margin-bottom:2px;color:var(--dc-header);font-size:14px;font-weight:600;line-height:18px}
.ms-preview-canvas.dc .ms-preview-fields p{margin:0;color:var(--dc-text);font-size:14px;line-height:18px}
.ms-preview-canvas.dc .ms-preview-banner{display:block;width:calc(100% - 28px);max-height:300px;margin:0 16px 16px 12px;border-radius:4px;object-fit:cover}
.ms-preview-canvas.dc .ms-preview-footer{display:flex;align-items:center;gap:8px;margin-top:8px;color:var(--dc-muted);font-size:12px;font-weight:500;line-height:16px}
.ms-preview-canvas.dc .ms-preview-footer .ms-tiny-icon{width:20px;height:20px}

/* Components V2: contêiner com borda, barra da cor e divisórias. */
.ms-preview-canvas.dc .ms-preview-message.is-v2{border:1px solid var(--dc-border);border-left:4px solid var(--ms-accent);border-radius:8px}
.ms-preview-canvas.dc .ms-preview-message.is-v2 .ms-preview-body{padding:16px}
.ms-preview-canvas.dc .ms-preview-message.is-v2 .ms-preview-description{font-size:16px;line-height:22px;margin-top:0}
.ms-preview-canvas.dc .ms-preview-message.is-v2 .ms-preview-body h3{margin:0 0 8px;font-size:20px;font-weight:700;line-height:24px}
.ms-preview-canvas.dc .ms-preview-message.is-v2>.ms-preview-banner{width:100%;margin:0;border-radius:0}
.ms-preview-canvas.dc .ms-preview-message.is-v2 .ms-banner-divider{margin:0 16px;border:0;border-top:1px solid var(--dc-separator)}
.ms-preview-canvas.dc .ms-preview-message.is-v2 .ms-preview-banner:not(:first-child){width:calc(100% - 32px);margin:16px;border-radius:8px}
.ms-preview-canvas.dc .ms-block-text{display:flex;gap:16px;align-items:flex-start;margin-top:8px;font-size:16px;line-height:22px;color:var(--dc-text)}
.ms-preview-canvas.dc .ms-block-text>div{flex:1;min-width:0}
.ms-preview-canvas.dc .ms-block-text .ms-preview-thumb{order:2;float:none;width:85px;height:85px;margin:0;border-radius:8px;object-fit:cover}
.ms-preview-canvas.dc .ms-block-sep{margin:8px 0;border:0;border-top:1px solid var(--dc-separator)}
.ms-preview-canvas.dc .ms-block-sep.large{margin:16px 0}
.ms-preview-canvas.dc .ms-block-sep.blank{border-top-color:transparent}
.ms-preview-canvas.dc .ms-block-gallery{display:grid;gap:4px;margin-top:8px;border-radius:8px;overflow:hidden}
.ms-preview-canvas.dc .ms-block-gallery.n2,.ms-preview-canvas.dc .ms-block-gallery.n4{grid-template-columns:1fr 1fr}
.ms-preview-canvas.dc .ms-block-gallery.n3{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr}
.ms-preview-canvas.dc .ms-block-gallery.n3>:first-child{grid-row:1/3}
.ms-preview-canvas.dc .ms-block-image{display:block;width:100%;height:100%;min-height:90px;max-height:300px;object-fit:cover;background:var(--dc-code)}

/* Botões e menu de seleção: 32px de altura, cantos de 8px e as cores do Discord. */
.ms-preview-canvas.dc .ms-preview-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 0;padding:0}
.ms-preview-message:not(.is-v2)+.ms-preview-actions{margin-top:8px}
.ms-preview-canvas.dc .ms-preview-actions>*{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:60px;height:32px;padding:2px 16px;border:0;border-radius:8px;background:var(--dc-secondary);color:var(--dc-secondary-text);font-family:var(--dc-font);font-size:14px;font-weight:500;line-height:16px;box-shadow:none;cursor:default;white-space:nowrap;text-decoration:none}
.ms-preview-canvas.dc .ms-preview-actions>.primary{background:#5865f2;color:#fff}
.ms-preview-canvas.dc .ms-preview-actions>.success{background:#248046;color:#fff}
.ms-preview-canvas.dc .ms-preview-actions>.danger{background:#da373c;color:#fff}
.ms-preview-canvas.dc .ms-preview-actions img{width:18px;height:18px}
.ms-preview-canvas.dc .ms-link-preview{display:inline-flex;align-items:center;gap:6px;height:32px;padding:2px 16px;border-radius:8px;background:var(--dc-secondary);color:var(--dc-secondary-text);font-size:14px;font-weight:500}
.ms-preview-canvas.dc .cm-fake-select{display:flex;align-items:center;justify-content:space-between;max-width:400px;height:40px;margin-top:8px;padding:0 12px;border:1px solid var(--dc-input-border);border-radius:8px;background:var(--dc-input);color:var(--dc-muted);font-size:16px;font-weight:500}
.ms-preview-canvas.dc .cm-fake-select span{color:var(--dc-header);font-size:14px}

/* Texto rico: menções, código, horário, citação, títulos e texto pequeno. */
.dc .ms-mention{display:inline;padding:0 2px;border-radius:3px;background:var(--dc-mention);color:var(--dc-mention-text);font-weight:500}
.dc code{padding:0 .2em;margin:-.2em 0;border:1px solid var(--dc-code-border);border-radius:4px;background:var(--dc-code);color:var(--dc-text);font-family:var(--dc-mono);font-size:85%;line-height:1.125rem;white-space:pre-wrap}
.dc pre.ms-codeblock{display:block;margin:6px 0 0;padding:7px;border:1px solid var(--dc-code-border);border-radius:4px;background:var(--dc-code);color:var(--dc-text);font-family:var(--dc-mono);font-size:14px;line-height:18px;white-space:pre-wrap;overflow-wrap:anywhere}
.dc .ms-timestamp{padding:0 2px;border-radius:3px;background:var(--dc-pill);color:var(--dc-text)}
.dc .ms-quote{display:block;margin:2px 0;padding:0 8px 0 12px;border-left:4px solid var(--dc-quote);border-radius:4px}
.dc .ms-heading{display:block;margin:8px 0 4px;color:var(--dc-header);font-weight:700;line-height:1.375}
.dc .ms-heading.h1{font-size:24px}.dc .ms-heading.h2{font-size:20px}.dc .ms-heading.h3{font-size:16px}
.dc .ms-subtext{display:block;color:var(--dc-muted);font-size:13px;line-height:1.1875}
.dc .ms-spoiler{border-radius:3px;background:var(--dc-spoiler);color:transparent}
.dc a{color:var(--dc-link);text-decoration:none}
.dc a:hover{text-decoration:underline}
.dc strong{font-weight:700}

/* Perfil do bot: o cartão que abre ao clicar no nome, com faixa, avatar, status e Sobre mim. */
.hm-profile-preview.dc-profile{position:relative;width:100%;max-width:340px;margin:0 auto;padding:0;border:1px solid var(--dc-topbar-border);border-radius:8px;background:var(--dc-popout);color:var(--dc-text);overflow:hidden;box-shadow:0 8px 16px rgba(0,0,0,.24)}
.dc-profile .dc-profile-banner{height:105px;background:var(--dc-banner,#5865f2) center/cover no-repeat}
.dc-profile .dc-profile-banner.is-color{height:60px}
.dc-profile .dc-profile-avatar{position:absolute;left:16px;top:61px;width:92px;height:92px;padding:6px;border-radius:50%;background:var(--dc-popout)}
.dc-profile .dc-profile-banner.is-color+.dc-profile-avatar{top:16px}
.dc-profile .dc-profile-avatar>span:first-child{display:grid;place-items:center;width:80px;height:80px;border-radius:50%;overflow:hidden;background:#5865f2;color:#fff;font-size:30px;font-weight:600}
.dc-profile .dc-profile-avatar img{width:80px;height:80px;object-fit:cover;border-radius:50%}
.dc-profile .dc-status{position:absolute;right:4px;bottom:4px;width:24px;height:24px;border-radius:50%;background:var(--dc-popout);display:grid;place-items:center}
.dc-profile .dc-status::after{content:'';width:16px;height:16px;border-radius:50%;background:#23a55a}
.dc-profile .dc-status.idle::after{background:radial-gradient(circle at 25% 25%,var(--dc-popout) 0 5px,#f0b232 5.5px)}
.dc-profile .dc-status.dnd::after{background:linear-gradient(var(--dc-popout),var(--dc-popout)) center/10px 3.5px no-repeat,#f23f43}
.dc-profile .dc-profile-body{padding:52px 16px 16px}
.dc-profile h3{margin:0;color:var(--dc-header);font-family:var(--dc-font);font-size:20px;font-weight:700;line-height:24px;letter-spacing:0}
.dc-profile .dc-profile-tag{display:flex;align-items:center;gap:4px;margin-top:2px;color:var(--dc-header);font-size:14px;line-height:18px}
.dc-profile .dc-profile-tag b{display:inline-flex;align-items:center;gap:2px;height:15px;padding:0 4px;border-radius:3px;background:#5865f2;color:#fff;font-size:10px;font-weight:500;line-height:15px;text-transform:uppercase}
.dc-profile .dc-profile-card{margin-top:12px;padding:12px;border-radius:8px;background:var(--dc-popout-card)}
.dc-profile .dc-profile-card+.dc-profile-card{margin-top:8px}
.dc-profile .dc-profile-card h4{margin:0 0 6px;color:var(--dc-header);font-family:var(--dc-font);font-size:12px;font-weight:700;line-height:16px;letter-spacing:.02em;text-transform:uppercase}
.dc-profile .hm-profile-about{margin:0;color:var(--dc-text);font-size:14px;line-height:18px;white-space:pre-line;overflow-wrap:anywhere}
.dc-profile .dc-activity{display:flex;align-items:center;gap:10px}
.dc-profile .dc-activity i{flex:none;width:40px;height:40px;border-radius:8px;display:grid;place-items:center;background:var(--dc-pill);color:var(--dc-header);font-style:normal;font-size:20px}
.dc-profile .dc-activity strong{display:block;color:var(--dc-header);font-size:14px;font-weight:600;line-height:18px}
.dc-profile .dc-activity small{display:block;color:var(--dc-muted);font-size:12px;line-height:16px}
.dc-profile .dc-member-since{color:var(--dc-text);font-size:14px;line-height:18px}

/* Escolha do tema da prévia, ao lado de Computador e Celular. */
.ms-theme-group{display:inline-flex;gap:2px;padding:3px;border-radius:9px;border:1px solid #ffffff12;background:#0c0a12}
.ms-theme-group button{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:0;border-radius:7px;background:transparent;color:#a99db6;font:600 12px var(--font,inherit);cursor:pointer}
.ms-theme-group button i{width:10px;height:10px;border-radius:50%;border:1px solid #ffffff40}
.ms-theme-group [data-ms-theme="midnight"] i{background:#000}
.ms-theme-group [data-ms-theme="dark"] i{background:#313338}
.ms-theme-group [data-ms-theme="light"] i{background:#fff}
.ms-theme-group button[aria-pressed="true"]{background:#a578ee26;color:#f3eaff}
.ms-theme-group button:focus-visible{outline:2px solid #a578ee;outline-offset:1px}
.hm-profile-themes{display:flex;justify-content:center;margin-bottom:12px}
@media(max-width:700px){.ms-theme-group button{padding:5px 8px}.ms-preview-canvas.dc .ms-preview-fields>div.inline{grid-column:1/13}}
.dc-profile .dc-profile-banner img{display:block;width:100%;height:100%;object-fit:cover}
.ms-theme-group button{white-space:nowrap}
.hm-profile-themes .ms-theme-group{display:flex;width:100%}
.hm-profile-themes .ms-theme-group button{flex:1;justify-content:center;padding:5px 6px;font-size:11px}
.dc .ms-list{display:block;position:relative;padding-left:20px}
.dc .ms-list::before{content:'';position:absolute;left:7px;top:.6em;width:5px;height:5px;border-radius:50%;background:currentColor}

/* Presença do bot no cabeçalho das telas: avatar com anel de status e o estado da conexão. */
.dc-presence{display:inline-flex;align-items:center;gap:10px;padding:5px 12px 5px 5px;border-radius:999px;border:1px solid #ffffff14;background:#0f0c16;font-family:'Noto Sans','DM Sans',sans-serif;white-space:nowrap;max-width:280px}
.dc-presence-avatar{position:relative;flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#5865f2;color:#fff;font-size:13px;font-weight:600}
.dc-presence-avatar img{width:30px;height:30px;border-radius:50%;object-fit:cover}
.dc-presence-avatar i{position:absolute;right:-2px;bottom:-2px;width:12px;height:12px;border-radius:50%;border:3px solid #0f0c16;background:#80848e}
.dc-presence.is-online .dc-presence-avatar i{background:#23a55a}
.dc-presence.is-idle .dc-presence-avatar i{background:#f0b232}
.dc-presence.is-dnd .dc-presence-avatar i{background:#f23f43}
.dc-presence-text{display:grid;min-width:0;line-height:1.2}
.dc-presence-text strong{color:#f2f3f5;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis}
.dc-presence-text small{color:#949ba4;font-size:11px;font-weight:500}
.dc-presence.is-online .dc-presence-text small{color:#7fd8a3}
.dc-presence.is-dnd .dc-presence-text small{color:#f6a3a5}
@media(max-width:700px){.dc-presence{padding-right:5px}.dc-presence-text{display:none}}
