/* Explicit v18.6.40 — correções pontuais com a paleta grafite/azul existente.
   Carregada depois da paleta: não modifica estrutura, permissões ou estados de presença. */

/* Compositor: não destacar a faixa de mensagens com um cartão claro. */
body:not(.explicit-light-theme) #form.composer {
  background:#0c0e12!important;
  background-image:none!important;
  border-color:#2a2d33!important;
  box-shadow:none!important;
}
body:not(.explicit-light-theme) #form :is(#message,#attachImage,#explicitEmojiButton) {
  background:#101216!important;
  color:#b8c4d1!important;
  border:1px solid #2a2d33!important;
  box-shadow:none!important;
}
body:not(.explicit-light-theme) #form :is(#attachImage,#explicitEmojiButton):hover {
  background:#1b222b!important;
  border-color:#3b5369!important;
  color:#d9e9f8!important;
}
body:not(.explicit-light-theme) #form>button:last-child {
  background:#172d42!important;
  color:#eaf4ff!important;
  border:1px solid #284765!important;
  box-shadow:none!important;
}
body:not(.explicit-light-theme) #form>button:last-child:hover{background:#244565!important}
/* Mesmo tom e mesma altura para emojis e figurinhas, sem mudar suas abas. */
body:not(.explicit-light-theme) #explicitEmojiPicker,
body:not(.explicit-light-theme) #explicitEmojiPicker.explicit-sticker-mode {
  height:395px!important;
  box-sizing:border-box!important;
  background:#0c0e12!important;
  background-image:none!important;
  border:1px solid #2a2d33!important;
  box-shadow:0 14px 35px rgba(0,0,0,.38)!important;
}
body:not(.explicit-light-theme) #explicitEmojiPicker :is(.explicit-emoji-tabs,.explicit-sticker-switch,.explicit-sticker-pane,.explicit-emoji-grid){
  background:#0c0e12!important;
  background-image:none!important;
}
body:not(.explicit-light-theme) #explicitEmojiPicker :is(.explicit-emoji-tabs button,.explicit-sticker-switch button){
  background:#12161c!important;color:#a5b0bf!important;border-color:#2a2d33!important;
}
body:not(.explicit-light-theme) #explicitEmojiPicker :is(.explicit-emoji-tabs button.selected,.explicit-sticker-switch button.is-active){
  background:#21374d!important;color:#e6f1ff!important;
}
body:not(.explicit-light-theme) #explicitEmojiPicker :is(.explicit-emoji-search,.explicit-sticker-search){
  background:#101216!important;border-color:#2a2d33!important;box-shadow:none!important;
}

/* Home: remover as antigas faixas pretas herdadas de cabeçalhos e contêineres.
   O painel e seu conteúdo compartilham o mesmo fundo; preserva seleção/ícones. */
body.explicit-home:not(.explicit-direct-mode):not(.explicit-light-theme) :is(
  .explicit-spotlight,.explicit-friends-section,.explicit-communities-section,.explicit-support-card
){background:#11141a!important;background-image:none!important}
body.explicit-home:not(.explicit-direct-mode):not(.explicit-light-theme) :is(
  .explicit-home-head,.explicit-home-heading,.explicit-home-head h2,
  #spotlightContent,#homeFriends,#homeSpaces,.explicit-home-grid,
  .explicit-home-summary,.explicit-home-section-rule
){background-color:transparent!important;background-image:none!important;box-shadow:none!important}
body.explicit-home:not(.explicit-direct-mode):not(.explicit-light-theme) .explicit-home-section-rule {
  background-color:#2a2d33!important;height:1px!important;opacity:1!important;
}
/* Apoio: espaço efetivo para cópia, QR code, título e subtítulo. */
@media(min-width:931px) and (min-height:740px) {
  body.explicit-home.explicit-home-v179.explicit-home-refresh.explicit-home-v18632:not(.explicit-direct-mode) #nexoOverlay>div {
    grid-template-rows:minmax(0,1fr) 176px 168px!important;
  }
}
@media(min-width:931px) and (max-height:739px) {
  body.explicit-home.explicit-home-v179.explicit-home-refresh.explicit-home-v18632:not(.explicit-direct-mode) #nexoOverlay {
    overflow-y:auto!important;
  }
  body.explicit-home.explicit-home-v179.explicit-home-refresh.explicit-home-v18632:not(.explicit-direct-mode) #nexoOverlay>div {
    min-height:680px!important;height:auto!important;
    grid-template-rows:minmax(320px,1fr) 176px 168px!important;
  }
}
body.explicit-home.explicit-home-v179.explicit-home-refresh.explicit-home-v18632:not(.explicit-direct-mode) .explicit-support-card {
  min-height:148px!important;height:100%!important;max-height:none!important;
  box-sizing:border-box!important;overflow:visible!important;
  padding:14px 22px!important;
}
body.explicit-home.explicit-home-v179.explicit-home-refresh:not(.explicit-direct-mode) .explicit-support-copy {
  min-height:0!important;max-height:none!important;overflow:visible!important;
}
body.explicit-home.explicit-home-v179.explicit-home-refresh:not(.explicit-direct-mode) .explicit-support-qr-area {
  min-height:0!important;overflow:visible!important;
}
body.explicit-home.explicit-home-v179.explicit-home-refresh:not(.explicit-direct-mode) .explicit-support-copy p {
  display:block!important;max-height:none!important;overflow:visible!important;
}
@media(max-width:930px){
  body.explicit-home.explicit-home-v179.explicit-home-refresh.explicit-home-v18632:not(.explicit-direct-mode) .explicit-support-card {
    height:auto!important;min-height:160px!important;
  }
}

/* Nome de exibição: clicar no próprio texto, com confirmação e cancelamento inline. */
.explicit-display-name-value{
  cursor:text!important;border-bottom:1px dashed #62778b!important;
  padding:5px 2px!important;min-width:72px!important;
}
.explicit-display-name-value:hover{color:#a5c9eb!important;border-color:#568fc3!important}
.explicit-display-name-editor{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%}
.explicit-display-name-editor input{
  width:clamp(115px,18vw,260px);min-width:0;height:33px!important;
  padding:5px 8px!important;font-size:13px!important;
}
.explicit-display-name-editor button{
  display:grid;place-items:center;flex:none;width:30px;height:30px;
  border:1px solid #2c3c4f;border-radius:7px;
  background:#182533;color:#d6e8f9;font-size:18px;font-weight:700;
}
.explicit-display-name-editor .explicit-display-name-save{color:#78d9aa!important}
.explicit-display-name-editor .explicit-display-name-cancel{color:#e3a9b0!important}
.explicit-display-name-editor button:hover{background:#263b51!important}

/* Setas do microfone/headset: sem fundo/card no hover nem em foco; mantém clique. */
body:not(.explicit-light-theme) .voice-control-row .explicit-audio-arrow,
body:not(.explicit-light-theme) .voice-control-row .explicit-audio-arrow:hover,
body:not(.explicit-light-theme) .voice-control-row .explicit-audio-arrow:active,
body:not(.explicit-light-theme) .voice-control-row .explicit-audio-arrow:focus-visible {
  background:transparent!important;background-image:none!important;
  border:0!important;box-shadow:none!important;filter:none!important;
}
body:not(.explicit-light-theme) .voice-control-row .explicit-audio-arrow:hover{color:#d4e7fa!important}

/* Menu existente de contexto, com dois controles de reprodução por transmissão. */
body:not(.explicit-light-theme) .nexo-context.explicit-screen-context{
  min-width:240px;max-width:min(290px,calc(100vw - 16px));
  padding:12px!important;display:flex;flex-direction:column;gap:12px;
  background:#11141a!important;border:1px solid #2a2d33!important;
  box-shadow:0 16px 40px rgba(0,0,0,.45)!important;
}
.explicit-screen-context>strong{font-size:12px;font-weight:750}
.explicit-screen-context-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:12px;color:#c8d3df}
.explicit-screen-context-row input[type=range]{flex:1 1 140px;min-width:0;accent-color:#568fc3}
.explicit-screen-context-row output{min-width:40px;text-align:right;font-variant-numeric:tabular-nums}
.explicit-screen-context-row select{width:100%;padding:8px;border-radius:7px}
.explicit-screen-context>small{font-size:11px;line-height:1.45;color:#9da7b3}
