/* Identidade Hades Pay. Camada final: redefine os tokens e só os elementos que
   carregam personalidade. Tudo o mais herda e fica disciplinado. */

/* Tokens em core/tokens.css. */

/* Uma voz para títulos e números, outra para leitura. A distinção vem do peso,
   do corte estreito e do espacejamento fechado, não só da família. */
.dw-server strong,
.hm-page-head h1,
.community-page-head h2,
.cm-metrics b,
.hm-score,
.hm-bot-identity h3,
.hm-profile-preview h3,
.dw-module-heading h3{
 font-family:var(--display);
 font-weight:700;
 letter-spacing:-.025em;
 font-stretch:95%;
}
.hm-page-head h1,.community-page-head h2{font-weight:800}
.cm-metrics b,.hm-score{font-variant-numeric:tabular-nums}

/* O seletor de bot é a coisa mais importante da barra lateral: qual bot, em qual
   servidor, e se está no ar. Ganha a presença que tinha de ter. */
.dw-bot-picker{margin:0 2px 14px}
.dw-bot-picker>summary{
 gap:11px;
 min-height:58px;
 padding:11px 12px;
 border-radius:14px;
 border:1px solid #332B45;
 background:linear-gradient(152deg,#1F1A2B 0%,#15121D 62%);
 box-shadow:0 14px 34px -22px #000,inset 0 1px 0 #ffffff0a;
}
.dw-bot-picker>summary:hover{border-color:#43375C}
.dw-bot-avatar,.dw-bot-avatar>img{width:36px;height:36px}
.dw-bot-avatar>img,.dw-guild-fallback{border-radius:11px}
.dw-guild-fallback{
 display:grid;place-items:center;width:36px;height:36px;
 font-family:var(--display);font-weight:700;font-size:15px;
 color:#D3BBFF;
 border:1px solid #4A3A69;
 background:radial-gradient(120% 120% at 30% 10%,#3B2A5C,#1C1628);
}
.dw-bot-identity strong{
 font-family:var(--display);
 font-weight:700;font-size:13px;letter-spacing:-.02em;
 max-width:148px;color:#F4EFFC;
}
/* A segunda linha é informação, não etiqueta: tamanho legível e sem monoespaçado. */
.dw-bot-identity small{font-family:var(--font);font-size:11px;letter-spacing:0;color:#9A92A8}
.dw-bot-avatar>i{width:9px;height:9px;border-color:#191424}

/* Brasa acesa: o bot conectado é a única coisa da lateral que emite luz. */
.dw-bot-picker:has(i.online)>summary{border-color:#5B4583}
.dw-bot-picker:has(i.online) .dw-bot-avatar>img,
.dw-bot-picker:has(i.online) .dw-guild-fallback{
 border-color:#6B4FA0;
 box-shadow:0 0 18px -5px #9B6BF07a;
}
.dw-bot-avatar>i.online{background:#6FE3B4;box-shadow:0 0 9px #54d1a07a}

/* Elevação coerente nos módulos: cartão um degrau acima do fundo,
   controle um degrau acima do cartão. */
.hm-workspace{--hm-card:var(--panel);--hm-border:var(--line);--hm-purple:var(--ember)}
.hm-workspace input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]),
.hm-workspace select,
.hm-workspace textarea,
.hm-multi summary{background:var(--panel2);border-color:#332E3F}
.hm-section>header>span{background:#A578EE12;border-color:#A578EE26}

/* O botão principal é brasa, não lavanda chapada. */
.hm-workspace .btn.primary,.hm-modal .btn.primary{
 background:linear-gradient(180deg,#B88CF7,#8B5CE0);
 border-color:#9B6BF0;
 color:#140E1F;
 box-shadow:0 8px 22px -12px #9B6BF0a6;
}
.hm-workspace .btn.primary:hover,.hm-modal .btn.primary:hover{
 background:linear-gradient(180deg,#C8A3FA,#9870E8);
}

.motion-off{.dw-server,.dw-server-avatar{transition:none}}

/* Prévia da mensagem com a anatomia real do Discord: avatar numa coluna à
   esquerda, autor e horário acima, embed com a barra de cor à esquerda. */
.ms-discord{
 display:grid;
 grid-template-columns:40px minmax(0,1fr);
 column-gap:16px;
 align-items:start;
 background:#313338;
 border:0;border-radius:0;
 padding:16px 16px 20px;
 margin:0;
}
.ms-avatar{
 width:40px;height:40px;
 border-radius:50%;
 overflow:hidden;
 display:grid;place-items:center;
 background:#7441A5;color:#fff;
 font-size:16px;
}
.ms-avatar img{width:40px;height:40px;object-fit:cover;display:block}
.ms-stack{min-width:0}
.ms-bot-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:0 0 3px;min-width:0}
.ms-bot-head strong{font-size:15px;font-weight:500;color:#F2F3F5;letter-spacing:0;max-width:none}
.ms-bot-head>b{
 position:relative;top:-1px;
 font-size:11px;font-weight:500;line-height:1.35;
 padding:1px 4px;border-radius:3px;
 background:#5865F2;color:#fff;
}
.ms-bot-head small{margin-left:0;font-size:11px;color:#949BA4}
.ms-preview-message{
 background:#2B2D31;
 border-left:4px solid var(--ms-accent);
 border-radius:4px;
 max-width:516px;
}
.ms-preview-message.is-v2{border:1px solid #3F4147;border-left:4px solid var(--ms-accent);border-radius:8px}
.ms-preview-body{padding:8px 16px 16px}
.ms-preview-body h3{margin:8px 0 8px!important;font-size:16px!important;font-weight:600!important;line-height:1.375!important;color:#F2F3F5}
.ms-preview-description{font-size:14px;line-height:1.375;color:#DBDEE1}
.ms-preview-author{font-size:14px;color:#F2F3F5;margin-bottom:8px}
.ms-preview-footer{font-size:12px;color:#949BA4}

@media(max-width:520px){
 .ms-discord{grid-template-columns:32px minmax(0,1fr);column-gap:11px;padding:13px 11px 16px}
 .ms-avatar,.ms-avatar img{width:32px;height:32px}
 .ms-bot-head strong{font-size:14px}
}

/* No Discord o horário vem logo depois da etiqueta, não encostado na direita. */
.message-studio .ms-bot-head small,.ms-preview-shell .ms-bot-head small{margin-left:0}

/* Perfil do bot como o Discord mostra: banner, avatar sobreposto com anel de
   status, nome em destaque e a atividade embaixo de um divisor. */
.hm-profile-preview{background:#232428;border:1px solid #1E1F22;border-radius:10px;padding-bottom:18px}
.hm-profile-cover{height:112px;background:linear-gradient(120deg,#5A3C93,#2A1D40)}
.hm-profile-avatar{
 width:84px;height:84px;
 margin:-44px 18px 12px;
 border:6px solid #232428;
 background:#7441A5;
 font-size:30px;color:#fff;
}
.hm-profile-avatar:after{
 content:"";position:absolute;right:2px;bottom:2px;
 width:22px;height:22px;border-radius:50%;
 border:5px solid #232428;background:#949BA4;
}
.hm-profile-preview.is-online .hm-profile-avatar:after{background:#23A55A}
.hm-profile-preview h3{margin:0 20px 2px;font-size:20px;font-weight:700;color:#F2F3F5;letter-spacing:-.01em}
.hm-profile-preview>small{margin:0 20px;font-size:12px;color:#B5BAC1}
.hm-profile-preview hr{border-top-color:#2E3035;margin:14px 20px}
.hm-profile-preview>b{margin:0 20px;font-size:12px;font-weight:700;letter-spacing:.02em;color:#B5BAC1}
.hm-profile-preview>p{margin:6px 20px 0;font-size:14px;line-height:1.35;color:#DBDEE1}

/* Cores de status do Discord na prévia do perfil. */
.hm-profile-preview.presenca-online .hm-profile-avatar:after{background:#23A55A}
.hm-profile-preview.presenca-idle .hm-profile-avatar:after{background:#F0B232}
.hm-profile-preview.presenca-dnd .hm-profile-avatar:after{background:#F23F43}

/* Saques aguardando o ID da MisticPay (administração). */
.withdrawal-review .panel-head p{max-width:72ch}
.withdrawal-link{display:grid;grid-template-columns:minmax(0,1fr) 190px auto;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line)}
.withdrawal-link-info{min-width:0}
.withdrawal-link-info strong{display:block;font-size:14px}
.withdrawal-link-info small{display:block;margin-top:2px;font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.withdrawal-link input{min-height:40px;padding:0 12px;border:1px solid #332E3F;border-radius:8px;background:var(--panel2);color:var(--text);font:500 14px var(--font)}
.withdrawal-link-error{grid-column:1/-1;margin:0;font-size:13px;color:var(--red)}
.withdrawal-link-error:empty{display:none}
@media(max-width:720px){.withdrawal-link{grid-template-columns:1fr}}

/* ---------- Página inicial ----------
   O saldo é a primeira pergunta de quem vende: quanto posso sacar agora. Ele é
   a única peça grande da tela; a barra mostra do que esse total é feito.
   O movimento do período vira uma régua só, sem competir com o saldo. */
.vault{
 position:relative;
 padding:24px 28px 26px;
 border:1px solid #2E2939;
 border-radius:16px;
 background:
  radial-gradient(70% 140% at 0% 0%,#9B6BF014,transparent 60%),
  var(--panel);
 box-shadow:inset 0 1px 0 #ffffff08;
}
.vault-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.vault-head h1{margin:0;font:700 17px/1.3 var(--display);letter-spacing:-.015em;color:var(--text)}
.vault-head p{margin:3px 0 0;font-size:13.5px;color:var(--muted)}
.vault .summary-actions{display:flex;align-items:center;gap:8px}
.vault .balance-refresh,.vault .summary-eye{background:var(--panel2);border-color:#332E3F}
.vault .summary-eye{border:1px solid #332E3F;border-radius:50%}

.vault-main{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-top:30px}
.vault .metric{display:flex;flex-direction:column}
.vault .metric h3{margin:0;font-size:13.5px;font-weight:500;color:#B9B1C8}
.vault-free .metric-value{
 margin-top:6px;
 font:800 clamp(40px,4.6vw,60px)/1 var(--display);
 letter-spacing:-.04em;
 font-variant-numeric:tabular-nums;
 color:#F7F3FD;
}
.vault-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.vault-actions .btn{min-height:44px;padding:0 18px;border-radius:10px}
.vault-actions .btn:not(.primary){background:var(--panel2);border-color:#332E3F}
.vault-actions .btn.primary{
 background:linear-gradient(180deg,#B88CF7,#8B5CE0);
 border-color:#9B6BF0;color:#140E1F;
 box-shadow:0 10px 26px -14px #9B6BF0;
}
.vault-actions .btn.primary:hover{background:linear-gradient(180deg,#C8A3FA,#9870E8)}
.vault-actions .btn:disabled{opacity:.5;cursor:not-allowed}

/* Barra de composição: brasa é dinheiro livre, hachura é dinheiro preso. */
.vault-bar{display:flex;gap:3px;height:8px;margin-top:22px;border-radius:99px;background:#221E2B;overflow:hidden}
.vault-bar span{flex:var(--free) 1 0;min-width:0;border-radius:99px}
.vault-bar .is-free{background:linear-gradient(90deg,#7B4FD1,#C9A5FF);box-shadow:0 0 14px #9B6BF055}
.vault-bar .is-held{flex-grow:var(--held);background:repeating-linear-gradient(135deg,#5A5268 0 3px,#2C2736 3px 7px)}

.vault-legend{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-top:14px}
.vault-held h3{display:flex;align-items:center;gap:8px}
.vault-held h3 i{width:10px;height:10px;border-radius:3px;background:repeating-linear-gradient(135deg,#7A718A 0 2px,#3A3446 2px 4px)}
.vault-held .metric-value{margin-top:4px;font:700 17px var(--display);letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--text)}
.vault-legend p{margin:0;max-width:36ch;font-size:12.5px;line-height:1.45;color:var(--muted);text-align:right}

/* Régua do período: seis leituras lado a lado, separadas por fio, não por cartão. */
.ledger{margin-top:18px;padding:0;overflow:hidden}
.ledger-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 22px;border-bottom:1px solid var(--line)}
.ledger-head h2{margin:0;font-size:15px;font-weight:700}
.ledger-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}
.ledger .metric{padding:18px 22px 20px;border-left:1px solid var(--line);min-width:0}
.ledger .metric:first-child{border-left:0}
.ledger .metric h3{margin:0;font-size:12.5px;font-weight:500;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ledger .metric-value{display:block;margin-top:8px;font:700 21px/1.15 var(--display);letter-spacing:-.025em;font-variant-numeric:tabular-nums;white-space:nowrap}

.home-split{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(400px,1fr);gap:18px;margin-top:18px;align-items:stretch}
.home-split>.sales{display:flex;flex-direction:column}
.home-split .sales-body{flex:1;display:flex;flex-direction:column;justify-content:center}
.home-split>.panel{margin:0}
.recent .panel-head{margin-bottom:6px;flex-wrap:nowrap}
.recent .panel-head h2{white-space:nowrap}
.recent .activity-side small .badge,.recent .activity-side small [class*=badge]{font-size:11px}

@media(max-width:1380px){
 .ledger-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .ledger .metric:nth-child(3n+1){border-left:0}
 .ledger .metric:nth-child(n+4){border-top:1px solid var(--line)}
}
@media(min-width:1240px){.home-split .sales-svg .axis{font-size:15.5px}}
@media(max-width:1239px){.home-split{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){
 .vault{padding:20px 18px 22px}
 .vault-head{flex-direction:column}
 .vault-main,.vault-legend{flex-direction:column;align-items:stretch}
 .vault-main{margin-top:22px;gap:18px}
 .vault-actions{justify-content:stretch}
 .vault-actions .btn{flex:1}
 .vault-legend p{text-align:left}
 .ledger-head{padding:14px 18px}
 .ledger-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ledger .metric{padding:16px 18px}
 .ledger .metric:nth-child(n){border-left:1px solid var(--line);border-top:1px solid var(--line)}
 .ledger .metric:nth-child(odd){border-left:0}
 .ledger .metric:nth-child(-n+2){border-top:0}
 .ledger .metric-value{font-size:19px}
}

/* Ligar e desligar o bot, dentro do cartão do bot. */
.hm-power{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 20px 0}
.hm-power+.hm-guild-id{margin-top:14px}
.hm-power .btn{min-height:38px}
.hm-power small{flex-basis:100%;font-size:12px;color:var(--muted)}
.bot-lifecycle-moved{margin:0 24px 18px;font-size:13px;color:var(--muted)}
.bot-lifecycle-moved a{font-weight:600;color:var(--ember)}

/* ---------- Servidor conectado (Gerenciamento do bot) ----------
   Banner e ícone sobreposto como no Discord; ID copiável; três números ao vivo. */
.hm-card-body:has(>.hm-guild){padding:0}
.hm-guild{display:flex;flex-direction:column}
.hm-guild-banner{height:112px;overflow:hidden;background:linear-gradient(130deg,#4A3375,#211A2E 70%);border-bottom:1px solid var(--line)}
.hm-guild-banner img{width:100%;height:100%;object-fit:cover;display:block}
.hm-guild-head{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:0 20px;margin-top:-38px}
.hm-guild-icon{flex:none;display:grid;place-items:center;width:72px;height:72px;border-radius:22px;overflow:hidden;border:5px solid var(--panel);background:#2B2340;font:700 22px var(--display);color:#D3BBFF}
.hm-guild-icon img{width:100%;height:100%;object-fit:cover;display:block}
.hm-guild-head>div{min-width:0;max-width:100%}
.hm-guild-head h3{margin:0;font:700 17px/1.25 var(--display);letter-spacing:-.02em;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-guild-head p{display:flex;align-items:center;gap:7px;margin:3px 0 0;font-size:12.5px;color:var(--muted)}
.hm-guild-head p i{width:8px;height:8px;border-radius:50%;background:#80848E}
.hm-guild-head p i.on{background:#23A55A;box-shadow:0 0 8px #23A55A80}
.hm-guild-id{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 12px;margin:18px 20px 0;padding:11px 12px 11px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}
.hm-guild-id span{grid-column:1;font-size:11.5px;color:var(--muted)}
.hm-guild-id code{grid-column:1;min-width:0;padding:0;border:0;background:none;font:600 13px var(--font);font-variant-numeric:tabular-nums;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-guild-id button{grid-column:2;grid-row:1/3}
.hm-guild-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:16px 0 0;border-top:1px solid var(--line)}
.hm-guild-stats>div{min-width:0;padding:14px 10px 16px 16px;border-left:1px solid var(--line)}
.hm-guild-stats>div:first-child{border-left:0}
.hm-guild-stats dt{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);white-space:nowrap}
.hm-guild-stats dt i{flex:none;width:7px;height:7px;border-radius:50%}
.hm-guild-stats dt i.online{background:#23A55A}
.hm-guild-stats dt i.voice{background:var(--ember)}
.hm-guild-stats dd{margin:5px 0 0;font:700 20px/1.1 var(--display);letter-spacing:-.025em;font-variant-numeric:tabular-nums;color:var(--text)}
.hm-guild-empty p{margin:0;font-size:13.5px;line-height:1.5;color:var(--muted)}

/* Interruptores: só o interruptor é clicável, então só ele mostra a mão. */
label.cm-toggle,label.hm-toggle,label.switch{cursor:default}
label.switch>span,label.cm-toggle>input,label.hm-toggle>input{cursor:pointer}

/* ---------- Acesso ----------
   À esquerda, o que a Hades Pay faz, mostrado como acontece: uma mensagem do bot
   no canal, com as medidas e cores do Discord. À direita, um formulário quieto. */
.auth-shell{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);background:var(--bg)}
.auth-shell .auth-art{
 justify-content:flex-start;gap:0;padding:44px clamp(32px,5vw,72px) 48px;
 background:radial-gradient(90% 70% at 30% 100%,#7B4FD11f,transparent 70%),var(--side);
 border-right:1px solid var(--line);
}
.auth-shell .auth-art:before{content:none}
.auth-shell .auth-art>.brand .brand-logo{width:64px;height:64px;border-radius:14px}
.auth-pitch{margin-top:auto;padding-top:48px}
.auth-shell .auth-art h1{
 margin:0 0 18px;max-width:none;
 font:800 clamp(40px,4.4vw,64px)/1.02 var(--display);
 letter-spacing:-.045em;color:#F7F3FD;
}
.auth-shell .auth-art p{margin:0;max-width:44ch;font-size:15px;line-height:1.6;color:#B4ABC2}

/* Canal do Discord: cabeçalho e mensagem com os valores do tema escuro do Discord. */
.auth-demo{margin:40px 0 0;max-width:540px;border:1px solid #1E1F22;border-radius:12px;overflow:hidden;background:#313338;box-shadow:0 30px 60px -30px #000c}
.auth-demo-channel{display:flex;align-items:center;gap:6px;height:44px;padding:0 16px;border-bottom:1px solid #26272B;font:600 15px var(--font);color:#F2F3F5}
.auth-demo-channel span{font-size:22px;font-weight:400;color:#80848E}
.auth-demo-message{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:16px;padding:16px 16px 20px}
.auth-demo-message>img{width:40px;height:40px;border-radius:50%;object-fit:cover}
.auth-demo-author{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.auth-demo-author strong{font-size:15px;font-weight:500;color:#F2F3F5}
.auth-demo-author b{position:relative;top:-1px;padding:1px 4px;border-radius:3px;background:#5865F2;color:#fff;font-size:11px;font-weight:500;line-height:1.35}
.auth-demo-author small{font-size:11px;color:#949BA4}
.auth-demo-embed{max-width:432px;padding:10px 16px 14px;border-left:4px solid #23A55A;border-radius:4px;background:#2B2D31}
.auth-demo-embed>strong{display:block;margin:2px 0 6px;font-size:15px;font-weight:600;color:#F2F3F5}
.auth-demo-embed>p{margin:0;font-size:14px;line-height:1.375;color:#DBDEE1}
.auth-demo-embed dl{display:grid;grid-template-columns:auto auto;justify-content:start;gap:4px 40px;margin:10px 0 0}
.auth-demo-embed dt{font-size:13px;font-weight:600;color:#F2F3F5}
.auth-demo-embed dd{margin:2px 0 0;font-size:14px;color:#DBDEE1}
.auth-demo-embed dd span{padding:0 2px;border-radius:3px;background:#5865F24d;color:#C9CDFB;font-weight:500}
.auth-demo-embed>small{display:block;margin-top:10px;font-size:12px;color:#949BA4}

/* O único movimento da tela: a mensagem chega uma vez, como chegaria no canal. */
@media all{
 .auth-demo-message{animation:auth-message-in .5s cubic-bezier(.2,.7,.2,1) .35s both}
 @keyframes auth-message-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
}

/* Formulário. */
.auth-shell .auth-form-wrap{padding:48px clamp(24px,5vw,72px)}
.auth-shell .auth-form{max-width:380px}
.auth-shell .access-steps{display:flex;gap:18px;margin:0 0 30px;padding:0;list-style:none;font-size:12.5px;color:#7E768C}
.auth-shell .access-steps li{display:flex;align-items:center;gap:8px}
.auth-shell .access-steps b{display:grid;place-items:center;width:22px;height:22px;border:1px solid #3A3446;border-radius:50%;font-size:11px;font-weight:600}
.auth-shell .access-steps .current{color:var(--text)}
.auth-shell .access-steps .current b{border-color:var(--ember);background:#9B6BF01f;color:var(--ember)}
.auth-shell .access-steps .complete{color:#9BD9BE}
.auth-shell .access-steps .complete b{border-color:#3E7E64;background:#23A55A1f}
.auth-shell .auth-form h1{margin:0 0 10px;font:800 32px/1.1 var(--display);letter-spacing:-.035em;color:var(--text)}
.auth-shell .auth-form>p{margin:0 0 28px;font-size:14px;line-height:1.6;color:var(--muted)}
.auth-shell .auth-form>p strong{color:var(--text);font-weight:600}
.auth-shell .auth-form .field label{font-size:13px;font-weight:500;color:#C9C1D6}
.auth-shell .auth-form input{min-height:48px;font-size:15px;background:var(--panel2);border-color:#332E3F}
.auth-shell .auth-form input:focus{border-color:var(--ember);box-shadow:0 0 0 3px #9B6BF033;outline:none}
.auth-shell .auth-form input.otp{min-height:64px;font:700 28px var(--display);letter-spacing:.42em;text-indent:.42em;font-variant-numeric:tabular-nums}
.auth-shell .auth-form .btn.primary{
 min-height:48px;margin-top:14px;font-size:15px;border-radius:10px;
 background:linear-gradient(180deg,#B88CF7,#8B5CE0);border-color:#9B6BF0;color:#140E1F;
 box-shadow:0 10px 26px -14px #9B6BF0;
}
.auth-shell .auth-form .btn.primary:hover{background:linear-gradient(180deg,#C8A3FA,#9870E8)}
.auth-shell #otp-expiry{display:block;margin-top:8px;font-size:12.5px;color:var(--muted)}
.auth-shell .auth-bottom{margin-top:22px;font-size:13.5px;text-align:left}
.auth-shell .auth-bottom button,.auth-shell .auth-bottom a{font-size:13.5px;font-weight:600;color:var(--ember)}
.auth-shell .otp-resend{align-items:flex-start;font-size:13px}
.auth-shell .registration-note{font-size:12.5px;line-height:1.6;border-color:var(--line)}
.auth-shell .access-protection{display:flex;align-items:flex-start;gap:8px;margin:32px 0 0;padding-top:18px;border-top:1px solid var(--line);font-size:12.5px;line-height:1.5;color:#857D93}
.auth-shell .access-protection svg{flex:none;margin-top:2px}

@media(max-width:1100px){.auth-shell{grid-template-columns:1fr 1fr}.auth-demo{display:none}}
@media(max-width:700px){
 .auth-shell .auth-form-wrap{padding:32px 20px}
 .auth-shell .auth-mobile-brand .brand-logo{width:64px;height:64px;border-radius:14px}
 .auth-shell .auth-mobile-brand{margin:0 0 28px}
 .auth-shell .auth-mobile-brand .brand{justify-content:flex-start}
 .auth-shell .auth-form h1{font-size:28px}
}

/* Discord configuration workspace: focused navigation and consistent configuration cards. */
.shell.discord-workspace{--hm-bg:#111113;--hm-card:#1a191d;--hm-border:#ffffff12;background:#111113}.shell.discord-workspace .sidebar{width:288px;padding:0;background:#101012;border-right:1px solid #ffffff0b;box-shadow:none;display:flex;flex-direction:column}.shell.discord-workspace .sb-brand{height:74px;min-height:74px;margin:0;padding:18px 20px;border-bottom:1px solid #ffffff0a;gap:10px;background:none}.shell.discord-workspace .sb-brand .sb-logo{width:34px;height:34px;border-radius:10px;box-shadow:none}.shell.discord-workspace .sb-brand strong{font-size:18px}.shell.discord-workspace .sb-brand small{display:none}.shell.discord-workspace .sb-nav{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:0;margin:0;gap:0}.shell.discord-workspace .discord-nav-group{flex:1;min-height:0;display:flex;flex-direction:column;margin:0;padding:0;border:0;background:none}.shell.discord-workspace #discord-menu-toggle{display:none}.shell.discord-workspace .integrated-discord-menu{flex:1;min-height:0;margin:0;padding:0;display:flex;flex-direction:column;border:0;background:none}.shell.discord-workspace .integrated-discord-menu[hidden]{display:none}.shell.discord-workspace .dw-sidebar-top{position:relative;flex-shrink:0;padding:14px 15px 15px;border-bottom:1px solid #ffffff09;background:#101012;display:flex;flex-direction:column;gap:13px}.shell.discord-workspace .dw-bot-picker{width:100%;margin:0}.shell.discord-workspace .dw-bot-picker>summary{padding:9px 11px;min-height:57px;border:1px solid #ffffff14;border-radius:13px;background:#1a191c;box-shadow:none;gap:10px}.shell.discord-workspace .dw-bot-avatar{width:36px;height:36px;flex-basis:36px;border-radius:9px}.shell.discord-workspace .dw-bot-identity strong{font-size:13px;line-height:1.5;color:#eeebf1}.shell.discord-workspace .dw-bot-identity small{font-size:11px;color:#948b9c}.shell.discord-workspace .dw-config-search{height:42px;border:1px solid #ffffff15;border-radius:9px;background:#1b1a1e;padding:0 12px;box-shadow:none;gap:8px}.shell.discord-workspace .dw-config-search input{font-size:12px;background:none;border:0;min-height:0;padding:0;color:#d6cddf}.shell.discord-workspace .dw-nav-scroll{position:relative;flex:1;min-height:0;max-height:none;padding:12px 14px 18px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#a578ee transparent;scroll-padding-top:12px}.shell.discord-workspace .dw-category{margin:0 0 3px;border:0;border-radius:0;background:none}.shell.discord-workspace .dw-category>summary{display:flex;align-items:center;gap:12px;min-height:53px;padding:10px 12px;border-radius:11px;font-size:13px;line-height:1.4;font-weight:400;background:none;color:#a8a1ae;list-style:none}.shell.discord-workspace .dw-category>summary>span:first-child{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;background:#ffffff05;border:0;border-radius:9px;color:#88818e}.shell.discord-workspace .dw-category>summary>span:first-child svg{width:18px;height:18px}.shell.discord-workspace .dw-category[open]>summary{background:#a578ee10;color:#f1eaf7}.shell.discord-workspace .dw-category[open]>summary>span:first-child{background:#a578ee20;color:#bc8ff5}.shell.discord-workspace .hm-nav-children{padding:5px 0 7px 18px;margin:0 0 0 13px;border-left:1px solid #ffffff0a;display:grid;gap:3px}.shell.discord-workspace .hm-nav-children button{position:relative;text-align:left;min-height:34px;padding:8px 12px 8px 23px;border:0;border-radius:8px;background:none;font-size:12px;color:#8f869a;line-height:1.4}.shell.discord-workspace .hm-nav-children button:before{content:'';position:absolute;width:5px;height:5px;left:11px;top:calc(50% - 2px);border-radius:50%;background:#5b5264}.shell.discord-workspace .hm-nav-children button:hover{background:#ffffff04;color:#d4c9df}.shell.discord-workspace .hm-nav-children button[aria-current=page]{background:#a578ee17;color:#c89ffa}.shell.discord-workspace .hm-nav-children button[aria-current=page]:before{background:#bd8df4;box-shadow:0 0 7px #a578ee35}.shell.discord-workspace .dw-workspace-links{flex-shrink:0;border-top:1px solid #ffffff0a;padding:9px 15px;background:#101012}.shell.discord-workspace .dw-workspace-links .sb-item{min-height:36px;padding:8px 12px;font-size:12px;color:#968c9f;margin:0;background:none}.shell.discord-workspace .sb-profile{flex-shrink:0;position:static;min-height:66px;border:0;border-top:1px solid #ffffff0a;border-radius:0;margin:0;padding:13px 20px;background:#101012}.shell.discord-workspace .sb-profile strong{font-size:12px}.shell.discord-workspace .sb-profile small{font-size:11px}.shell.discord-workspace .main{margin-left:288px;width:calc(100% - 288px);background:#111113;min-height:100vh}.shell.discord-workspace .topbar{height:74px;min-height:74px;padding:0 32px;background:#111113;border-bottom:1px solid #ffffff09;box-shadow:none;backdrop-filter:none}.shell.discord-workspace .top-balance,.shell.discord-workspace .top-actions>[data-action=toggle-values]{display:none}.shell.discord-workspace .top-actions{margin-left:auto;gap:13px}.shell.discord-workspace .top-actions>.avatar{width:35px;height:35px;background:#a578ee;color:#160e20;box-shadow:none;font-size:11px}.shell.discord-workspace .dw-breadcrumb{gap:10px;font-size:11px;color:#77707f;line-height:1.5;min-width:0}.shell.discord-workspace .dw-breadcrumb>span{font-size:11px;color:#8a8292;white-space:nowrap}.shell.discord-workspace .dw-breadcrumb>strong{font-size:11px;font-weight:500;color:#ded6e7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shell.discord-workspace .content{padding:34px 38px 28px;max-width:none;overflow:visible}.shell.discord-workspace .footer{max-width:1080px;margin:35px auto 0;padding:18px 0;font-size:11px;opacity:.55;border-color:#ffffff08}.shell.discord-workspace .hm-workspace{width:100%;max-width:1080px;margin:0 auto;min-width:0}.shell.discord-workspace .nv-workspace{max-width:960px}.shell.discord-workspace .hm-page-head{margin:0 0 31px;padding:0;align-items:center;gap:20px}.shell.discord-workspace .ns-page-heading{display:flex;align-items:center;gap:15px;padding:0!important;position:static!important;min-width:0}.shell.discord-workspace .ns-page-heading:before{display:none!important}.shell.discord-workspace .ns-page-icon{width:46px;height:46px;border:1px solid #a578ee26;border-radius:13px;background:#a578ee10;color:#bf91fa;display:grid;place-items:center;flex:0 0 46px}.ns-page-icon svg{width:25px;height:25px}.shell.discord-workspace .hm-eyebrow{display:none}.shell.discord-workspace .hm-page-head h1{font-size:28px;font-weight:700;letter-spacing:-.5px;line-height:1.25;margin:0 0 5px;color:#f3eff7}.shell.discord-workspace .hm-page-head p{font-size:12px;line-height:1.7;color:#93899f;max-width:760px}.shell.discord-workspace .hm-page-actions{padding:0;flex-direction:row;gap:10px}.shell.discord-workspace .hm-online{display:none}.shell.discord-workspace .hm-page-actions>.btn{font-size:11px;border:1px solid #ffffff0d;border-radius:7px;background:#ffffff03;color:#8f859b;padding:7px 9px;min-height:30px}.shell.discord-workspace:where(:not(.is-account-page)) .btn.primary{background:#a578ee;border:1px solid #a578ee;color:#190e25;box-shadow:none;text-shadow:none;font-weight:600}.shell.discord-workspace:where(:not(.is-account-page)) .btn.primary:hover{background:#b68bf5;border-color:#b68bf5;box-shadow:none}.shell.discord-workspace:where(:not(.is-account-page)) .btn{border-radius:8px;min-height:35px;font-size:11px;background:#ffffff03;border-color:#ffffff12;color:#bbafc7;box-shadow:none;line-height:1.4}.shell.discord-workspace .hm-card{border:1px solid #ffffff12;border-radius:12px;background:#1a191d;box-shadow:none;margin-bottom:16px}.shell.discord-workspace .hm-card>header{padding:18px 20px;border-color:#ffffff07}.shell.discord-workspace .hm-card h2{font-size:15px;color:#dfd7e7}.shell.discord-workspace .hm-card header p{font-size:12px;color:#93889f;margin-top:4px}.shell.discord-workspace .hm-card-body{padding:20px}.shell.discord-workspace .ns-form-card{background:none;border:0;border-radius:0;box-shadow:none}.shell.discord-workspace .ns-form-card>header{display:none}.shell.discord-workspace .ns-form-card>.hm-card-body{padding:0}.shell.discord-workspace .ns-form-card .hm-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.shell.discord-workspace .ns-form-card .hm-section{margin:0 0 17px}.shell.discord-workspace .ns-form-card .hm-section>header{display:none}.shell.discord-workspace .ns-form-card .hm-editor-tabs{display:flex;gap:7px;padding:0 0 20px;margin:0 0 23px;border:0;border-bottom:1px solid #ffffff08;background:none;overflow-x:auto}.shell.discord-workspace .hm-editor-tabs>button{width:auto;flex:0 0 auto;display:block;font-size:12px;padding:9px 15px;border:1px solid #ffffff10;border-radius:20px;background:#19171d;color:#a195ad;min-height:36px}.shell.discord-workspace .hm-editor-tabs>button>b{display:none}.shell.discord-workspace .hm-editor-tabs>button[aria-selected=true]{border-color:#a578ee44;background:#a578ee18;color:#d1aff7}.shell.discord-workspace .ns-control-card{position:relative;min-width:0;border:1px solid #ffffff12;border-radius:12px;background:#1a191d;padding:19px 20px;box-sizing:border-box}.shell.discord-workspace .ns-control-card.ns-wide{grid-column:1/-1}.shell.discord-workspace .ns-control-card>header{display:flex;gap:11px;align-items:flex-start;margin:0 0 15px;padding:0;border:0}.shell.discord-workspace .ns-control-icon{width:35px;height:35px;display:grid;place-items:center;background:#a578ee0d;color:#b68ae9;border-radius:10px;flex:0 0 35px}.ns-control-icon svg{width:18px;height:18px}.shell.discord-workspace .ns-control-card>header>div{min-width:0}.shell.discord-workspace .ns-control-card>header h3{font-size:14px;line-height:1.5;color:#bfb2cc;font-weight:500;margin:1px 0 3px}.shell.discord-workspace .ns-control-card>header p{font-size:11px;line-height:1.65;color:#8d8299;margin:0}.shell.discord-workspace .ns-control-body>.hm-field>label,.shell.discord-workspace .ns-control-body>.hm-field>h3{display:none}.shell.discord-workspace .ns-control-body>.hm-field{gap:0}.shell.discord-workspace .ns-control-body>.hm-field>.hm-choices{margin-top:0}.shell.discord-workspace .ns-switch-card{display:flex;align-items:flex-start;gap:11px;min-height:101px}.shell.discord-workspace .ns-switch-card>.hm-toggle{position:static;border:0;border-radius:0;background:none;padding:1px 0;min-width:0;flex:1;gap:15px;align-self:center}.shell.discord-workspace .ns-switch-card .hm-toggle>span{min-width:0;gap:5px}.shell.discord-workspace .ns-switch-card .hm-toggle strong{font-size:14px;line-height:1.5;color:#bfb2cc;font-weight:500}.shell.discord-workspace .ns-switch-card .hm-toggle small{font-size:11px;line-height:1.65;color:#8d8299}.shell.discord-workspace .hm-savebar{position:static;display:flex;align-items:center;justify-content:space-between;border:0;border-top:1px solid #ffffff0a;background:none;box-shadow:none;border-radius:0;padding:19px 0 0;margin:25px 0 0;gap:14px;flex-direction:row}.shell.discord-workspace .hm-savebar>span{font-size:11px;color:#82748e;line-height:1.6}.shell.discord-workspace .hm-savebar>div{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.shell.discord-workspace .hm-savebar .btn{border-radius:20px;padding:9px 15px;font-size:11px;min-height:36px}.shell.discord-workspace .hm-savebar .btn.primary{order:-1}.shell.discord-workspace .hm-rule{padding:15px;background:#111014;border-color:#ffffff0b;border-radius:9px}.shell.discord-workspace .hm-library{gap:18px}.shell.discord-workspace .hm-library-list{background:#1a191d;border-color:#ffffff12;box-shadow:none;border-radius:12px}.shell.discord-workspace .hm-two-columns{gap:18px;grid-template-columns:minmax(0,1fr) 290px}.shell.discord-workspace .hm-field>label{font-size:12px}.shell.discord-workspace .nv-page{gap:15px}.shell.discord-workspace .nv-tabs{margin:0 0 6px;background:#1c1a20;border-color:#ffffff13;gap:3px}.shell.discord-workspace .nv-tabs button{font-size:12px;padding:9px 15px}.shell.discord-workspace .nv-tabs button[aria-pressed=true]{background:#a578ee;box-shadow:none}.shell.discord-workspace .nv-card{padding:19px 20px;border-color:#ffffff12;background:#1a191d;border-radius:12px}.shell.discord-workspace .nv-card>header{gap:11px;margin-bottom:14px}.shell.discord-workspace .nv-icon{width:34px;height:34px;flex-basis:34px;border-radius:10px;background:#a578ee0d;color:#b88aec}.nv-icon svg{width:18px;height:18px}.shell.discord-workspace .nv-card h2{font-size:14px;color:#c2b6cd;line-height:1.5}.shell.discord-workspace .nv-card header p{font-size:11px;color:#8e829a;line-height:1.6;margin-top:2px}.shell.discord-workspace .nv-card-toolbar{margin-top:-43px;margin-bottom:14px}.shell.discord-workspace .nv-card-toolbar .btn{font-size:11px;min-height:30px;padding:7px 12px;border-radius:18px}.shell.discord-workspace .nv-model strong{font-size:13px}.shell.discord-workspace .nv-model p{font-size:11px}.shell.discord-workspace .nv-model small{font-size:11px}.shell.discord-workspace .nv-empty{font-size:12px;padding:26px 15px;color:#8e829a}.shell.discord-workspace .nv-member strong{font-size:12px}.shell.discord-workspace .nv-member small,.shell.discord-workspace .nv-member div>span{font-size:11px}.shell.discord-workspace .nv-search input{font-size:12px;min-height:37px}.shell.discord-workspace .nv-helper{font-size:11px}.shell.discord-workspace .nv-advanced{background:#161419;border-color:#ffffff0a;padding:12px 16px}.shell.discord-workspace .nv-advanced summary{font-size:11px}.shell.discord-workspace .nv-danger-row strong{font-size:12px}.shell.discord-workspace .nv-danger-row p{font-size:11px}.shell.discord-workspace .nv-command code{font-size:12px}.shell.discord-workspace .nv-command p{font-size:12px}.shell.discord-workspace .nv-command small{font-size:11px}.shell.discord-workspace .nv-choice strong{font-size:12px}.shell.discord-workspace .nv-choice small{font-size:11px}.shell.discord-workspace .community-page-head,.shell.discord-workspace .auto-section-head{margin:0 0 28px;padding:0;border:0}.shell.discord-workspace .community-page-head h2,.shell.discord-workspace .auto-section-head h2{font-size:28px;line-height:1.25;letter-spacing:-.5px}.shell.discord-workspace .community-page-head p,.shell.discord-workspace .auto-section-head p{font-size:12px;color:#93899f;line-height:1.7}.shell.discord-workspace .community-back{display:none}.shell.discord-workspace .cm-config-block,.shell.discord-workspace .auto-card,.shell.discord-workspace .cm-preview,.shell.discord-workspace .auto-live-preview{background:#1a191d;border-color:#ffffff12;border-radius:12px;box-shadow:none}.shell.discord-workspace .cm-config-block>summary{padding:17px 19px}.shell.discord-workspace .cm-config-body{padding:19px}.shell.discord-workspace .cm-config-block>summary strong{font-size:14px;color:#c2b6cd}.shell.discord-workspace .cm-config-block>summary small{font-size:11px;color:#8e829a}.shell.discord-workspace .cm-config-block>summary>b{background:#a578ee10;color:#b58ae8;border-color:#a578ee18}.shell.discord-workspace .cm-save-bar{position:static;background:none;border:0;border-top:1px solid #ffffff0a;box-shadow:none;border-radius:0;padding:18px 0;margin-top:24px}.shell.discord-workspace .cm-save-bar .btn{border-radius:18px}.nv-dialog .hm-modal{background:#1a191d;border-color:#ffffff18}.nv-dialog .hm-actions .btn.primary{background:#a578ee;border-color:#a578ee;color:#190e25;box-shadow:none}.nv-dialog .hm-modal h2{font-size:21px}.nv-dialog .hm-modal>p{font-size:12px}.nv-dialog .hm-field label{font-size:12px}.nv-dialog .hm-actions .btn{font-size:12px}
@media(max-width:1100px){.shell.discord-workspace .content{padding:29px 27px}.shell.discord-workspace .hm-two-columns{grid-template-columns:1fr}.shell.discord-workspace .hm-two-columns>aside{display:grid;grid-template-columns:1fr 1fr;gap:16px}.shell.discord-workspace .hm-page-head h1{font-size:25px}.shell.discord-workspace .hm-page-actions{flex-direction:row}.shell.discord-workspace .hm-savebar{align-items:flex-start}.shell.discord-workspace .nv-card-toolbar{margin:0 0 12px;justify-content:flex-start}}
@media(max-width:900px){.shell.discord-workspace .main{width:100%;margin-left:0}.shell.discord-workspace .sidebar{width:288px}.shell.discord-workspace .topbar{padding:0 22px}.shell.discord-workspace .dw-breadcrumb{font-size:11px;gap:8px}.shell.discord-workspace .dw-breadcrumb>span,.shell.discord-workspace .dw-breadcrumb>strong{font-size:11px}.shell.discord-workspace .dw-crumb-category{display:none!important}.shell.discord-workspace .dw-crumb-category+b{display:none}.shell.discord-workspace .content{padding:28px 22px}.shell.discord-workspace .ns-form-card .hm-form-grid{gap:13px}.shell.discord-workspace .ns-control-card{padding:17px}}
@media(max-width:650px){.shell.discord-workspace .topbar{height:65px;min-height:65px;padding:0 17px;gap:10px}.shell.discord-workspace .top-actions{gap:7px}.shell.discord-workspace .top-actions>.avatar{width:31px;height:31px;font-size:11px}.shell.discord-workspace .top-actions>[data-action=notifications]{display:none}.shell.discord-workspace .content{padding:25px 16px}.shell.discord-workspace .ns-form-card .hm-form-grid,.shell.discord-workspace .nv-grid{grid-template-columns:1fr}.shell.discord-workspace .hm-page-head{margin-bottom:26px;gap:16px;align-items:flex-start;flex-direction:column}.shell.discord-workspace .hm-page-actions{padding-left:57px;justify-content:flex-start;width:auto}.shell.discord-workspace .ns-page-heading{gap:12px}.shell.discord-workspace .ns-page-icon{width:41px;height:41px;flex-basis:41px}.shell.discord-workspace .hm-page-head h1{font-size:24px}.shell.discord-workspace .hm-page-head p{font-size:11px}.shell.discord-workspace .hm-savebar{flex-direction:column;align-items:stretch;gap:12px}.shell.discord-workspace .hm-savebar>div{display:flex;justify-content:stretch;width:100%}.shell.discord-workspace .hm-savebar>div>.btn{flex:1}.shell.discord-workspace .hm-savebar>div>.btn.primary{flex-basis:100%;order:0}.shell.discord-workspace .nv-card{padding:17px}.shell.discord-workspace .nv-card-toolbar{margin:0 0 12px}.shell.discord-workspace .hm-two-columns>aside{display:block}.shell.discord-workspace .dw-breadcrumb>span:first-child{display:none}.shell.discord-workspace .dw-breadcrumb>b:first-of-type{display:none}.shell.discord-workspace .dw-breadcrumb>strong{font-size:11px}.shell.discord-workspace .ns-switch-card{min-height:95px}.shell.discord-workspace .ns-form-card .hm-editor-tabs{gap:5px}.shell.discord-workspace .hm-editor-tabs>button{padding:8px 13px;font-size:11px}.shell.discord-workspace .nv-tabs button{font-size:11px;padding:9px 10px}.nv-dialog .hm-modal{padding:22px 19px}.nv-dialog .hm-field label{font-size:11px}}

.shell.discord-workspace .dw-config-search>svg{position:static;inset:auto;width:15px;height:15px;flex:0 0 15px;color:#81758e;pointer-events:none}.shell.discord-workspace .dw-config-search input{flex:1;min-width:0;width:100%}.shell.discord-workspace .hm-page-head{display:flex;justify-content:space-between;width:100%}.shell.discord-workspace .ns-more-actions{position:relative;align-self:center}.shell.discord-workspace .ns-more-actions>summary{display:grid;place-items:center;height:35px;min-width:34px;border:1px solid #ffffff10;border-radius:18px;color:#9e8eac;background:#ffffff02;font-size:12px;cursor:pointer;list-style:none}.shell.discord-workspace .ns-more-actions>summary::-webkit-details-marker{display:none}.shell.discord-workspace .ns-more-actions>div{position:absolute;z-index:30;right:0;top:calc(100% + 7px);display:grid;gap:4px;width:220px;padding:7px;background:#1b191f;border:1px solid #ffffff14;border-radius:10px;box-shadow:0 12px 30px #0006}.shell.discord-workspace .ns-more-actions .btn{text-align:left;justify-content:flex-start;border:0;border-radius:6px;background:transparent;font-size:11px;padding:10px}.shell.discord-workspace .ns-more-actions .btn:hover{background:#a578ee12}.shell.discord-workspace .ns-more-actions>summary:focus-visible{outline:2px solid #b88fec;outline-offset:2px}

.shell.discord-workspace .dw-config-search{display:flex;align-items:center}.shell.discord-workspace .dw-config-search:focus-within{border-color:#ffffff2e}.shell.discord-workspace .dw-config-search input{height:38px;min-height:0;position:static;padding:0!important;line-height:20px}
.shell.discord-workspace .dw-config-search input:focus,.shell.discord-workspace .dw-config-search input:focus-visible{border:0;outline:none;box-shadow:none}

.shell.discord-workspace .ns-control-body>.hm-field>label{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0;padding:0}

.shell.discord-workspace .ns-control-card:has(#hm-botName){grid-column:1/-1}.shell.discord-workspace .hm-image{min-width:0}.shell.discord-workspace .hm-image>div{min-width:0}.shell.discord-workspace .hm-image input[type=file]{max-width:100%;padding:7px 9px;font-size:11px;background:#121015;border-color:#ffffff10;border-radius:8px;box-sizing:border-box}.shell.discord-workspace .hm-image input[type=file]::file-selector-button{font:inherit;color:#c4a4ed;background:#a578ee12;border:1px solid #a578ee2d;border-radius:6px;padding:7px 9px;margin-right:8px;cursor:pointer}

/* Menu único: a barra superior mostra saldo e o olho em todas as telas (não só nas financeiras). */
@media(min-width:451px){
 .shell.discord-workspace.is-integrated .top-actions>.top-balance{display:inline-flex}
 .shell.discord-workspace.is-integrated .top-actions>[data-action=toggle-values]{display:inline-flex}
}

/* ---------- Cartão do servidor no menu (popover do seletor de bot) ----------
   Como um popout do Discord: banner, situação do bot, números e o bot conectado. */
.integrated-discord-menu .dw-bot-popover{padding:0;overflow:hidden;border-radius:12px;background:var(--panel)}
.dw-pop-banner{height:54px;background:linear-gradient(130deg,#4A3375,#211A2E 70%)}
.dw-pop-banner img{width:100%;height:100%;object-fit:cover;display:block}
.dw-pop-banner img[hidden]{display:none}
.dw-pop-head{display:flex;flex-direction:column;gap:5px;padding:11px 14px 10px}
.integrated-discord-menu .dw-bot-popover .dw-pop-head strong{font:700 13.5px/1.3 var(--display);letter-spacing:-.015em;color:var(--text);overflow-wrap:anywhere}
.dw-pop-status{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}
.dw-pop-status i{flex:none;width:8px;height:8px;border-radius:50%;background:#80848E}
.dw-pop-status[data-state="online"] i{background:#23A55A;box-shadow:0 0 7px #23A55A80}
.dw-pop-status[data-state="connecting"] i{background:#F0B232}
.dw-pop-stats{display:grid;grid-template-columns:1fr 1fr;margin:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.dw-pop-stats:not(:has(>div:not([hidden]))){display:none}
.dw-pop-stats>div{min-width:0;padding:8px 14px 10px}
.dw-pop-stats>div[hidden]{display:none}
.dw-pop-stats>div+div:not([hidden]){border-left:1px solid var(--line)}
.dw-pop-stats dt{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}
.dw-pop-stats dt i{flex:none;width:6px;height:6px;border-radius:50%;background:#23A55A}
.dw-pop-stats dd{margin:3px 0 0;font:700 15px var(--display);letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--text)}
.dw-pop-body{display:flex;flex-direction:column;gap:8px;padding:12px}
.integrated-discord-menu .dw-pop-body .dw-selected-bot{flex-direction:row;align-items:center;gap:8px;min-width:0;padding-top:0;margin-top:0;border-top:0}
.integrated-discord-menu .dw-pop-body .dw-selected-bot b{font-size:12px;font-weight:600;color:var(--text)}
.integrated-discord-menu .dw-pop-body .dw-selected-bot small{font-size:11px;font-family:var(--font);color:var(--muted)}
.dw-pop-app{flex:none;padding:2px 5px;border-radius:4px;background:#5865F2;color:#fff;font-size:11px;font-weight:600;line-height:1.3}
.dw-pop-bot-name{display:flex;align-items:baseline;gap:7px;min-width:0}
.dw-pop-bot-name b{font-size:12px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dw-pop-bot-name small{flex:none;font-size:11px;color:var(--muted)}
.integrated-discord-menu .dw-pop-body>button{display:flex;align-items:center;gap:8px;width:100%;min-height:36px;padding:8px 10px;border:1px solid #332E3F;border-radius:8px;background:var(--panel2);color:#C9C1D6;font-size:11.5px;text-align:left}
.integrated-discord-menu .dw-pop-body>button:hover{border-color:#4A4258;background:#26222F;color:var(--text)}
.dw-pop-body .dw-account-picker{margin:2px 0}

/* ---------- Estúdio de mensagens e bibliotecas (painéis, modelos VIP, famílias) ----------
   A biblioteca é a estante: alta como a página, com o item aberto aceso em brasa.
   O editor ocupa o resto sem cartões boiando — a grade se adapta à quantidade de campos
   e a barra de salvar acompanha a rolagem, ancorada ao pé da tela. */
.hm-library{grid-template-columns:300px minmax(0,1fr);gap:20px}
.hm-library>div:last-child{max-width:980px;min-width:0}
.hm-library-list{display:flex;flex-direction:column;min-height:calc(100vh - 240px);padding:16px 12px;border-radius:14px;background:var(--panel);border-color:#2E2939}
.hm-library-list>header{align-items:center;border-bottom:1px solid var(--line);padding:0 6px 14px;margin-bottom:10px}
.hm-library-list h2{font:700 13.5px var(--display);letter-spacing:-.01em;color:var(--text)}
.hm-library-item{margin-top:4px;padding:12px 10px;border-radius:10px}
.hm-library-item:hover{background:#ffffff06;color:var(--text)}
.hm-library-item.selected{background:#9B6BF014;border-color:#9B6BF038;color:var(--text)}
.hm-library-item.selected>span{background:#9B6BF022;color:#C9A5FF}
.hm-library-item.selected strong{color:#F4EFFC}
.hm-library-item strong{font-size:12.5px;font-weight:600}
.hm-library-list .hm-empty{flex:1;display:grid;place-content:center;justify-items:center;text-align:center;gap:4px;padding:24px 8px}
.hm-library .hm-form-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.hm-library .hm-form-grid>.hm-full{grid-column:1/-1}
.hm-library .hm-form-grid>.hm-field:last-child:nth-child(odd){grid-column:1/-1}
.hm-library .hm-savebar{flex-direction:row;align-items:center;position:sticky;bottom:14px;z-index:5;background:var(--panel);border:1px solid #332E3F;border-radius:12px;padding:14px 18px;margin-top:22px;box-shadow:0 16px 34px -18px #000d}
@media(max-width:1100px){
 .hm-library{grid-template-columns:1fr}
 .hm-library-list{min-height:0;position:static}
 .hm-library .hm-savebar{position:static;box-shadow:none}
}

/* Rail de categorias: chips e estados (25/10) */
.shell.discord-workspace .dw-category-icon{width:29px;height:29px;border-radius:9px;background:#ffffff07;color:#9a8fa6;flex:0 0 29px!important;transition:background .15s ease,color .15s ease,box-shadow .15s ease}
.shell.discord-workspace .dw-category-icon svg{width:16px;height:16px}
.shell.discord-workspace .dw-category>summary{min-height:44px;gap:10px}
.shell.discord-workspace .dw-category>summary:hover .dw-category-icon{color:#ddd2ea;background:#ffffff0d}

.shell.discord-workspace .dw-category>summary:focus-visible{outline:2px solid #a578ee99;outline-offset:2px;border-radius:9px}
.motion-off{.shell.discord-workspace .dw-category-icon{transition:none}}


/* Categorias e subcategorias da referência Nix. */
.shell.discord-workspace .dw-nav-section{margin:2px 0;border:0;background:none;border-radius:0;min-width:0}
.shell.discord-workspace .dw-nav-section>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:38px;padding:7px 12px;list-style:none;color:#b5a8c3;font-size:12px;font-weight:500;cursor:pointer;border-radius:8px}
.shell.discord-workspace .dw-nav-section>summary::-webkit-details-marker{display:none}
.shell.discord-workspace .dw-nav-section>summary:hover{background:#ffffff06;color:#e7dcf1}
.shell.discord-workspace .dw-nav-section>summary:focus-visible{outline:2px solid #a578ee99;outline-offset:1px}
.shell.discord-workspace .dw-nav-section[open]>summary .dw-category-arrow{transform:rotate(90deg)}
.shell.discord-workspace .dw-nav-section:has([aria-current=page])>summary{color:#d4b6fa}
.shell.discord-workspace .dw-nav-section-items{display:grid;gap:2px;margin:2px 8px 7px 15px;padding:2px 0 2px 9px;border-left:1px solid #a578ee28}
.shell.discord-workspace .dw-nav-section-items>.sb-item{width:100%;min-width:0;margin:0;padding:9px 10px;min-height:36px;font-size:11px;border-radius:7px}
.shell.discord-workspace .dw-unavailable{display:flex;align-items:center;justify-content:space-between;gap:7px;cursor:default;opacity:.55;min-width:0}
.shell.discord-workspace .dw-unavailable>span{min-width:0;white-space:normal}
.shell.discord-workspace .dw-unavailable>small{font-size:9px;font-weight:400;color:#b5a8c3;border:1px solid #ffffff14;border-radius:4px;padding:2px 4px;flex:0 0 auto}
.shell.discord-workspace .dw-nav-scroll [hidden]{display:none!important}
