/* Tairyon: interface B/W; cores semânticas e configuráveis permanecem visíveis nas prévias do Discord. */

/* Texto sobre superfícies escuras das prévias: branco puro, sem cinzas de baixa intensidade. */
#root :is(.preview-shell, .discord, .discord-embed, .ticket-preview, .embed-preview) {
  color: #ffffff;
}
#root :is(.preview-shell, .discord, .discord-embed, .ticket-preview, .embed-preview) :is(
  .botline, .bot-badge, .timestamp, .plain-message, .embed-author, .embed-title,
  .embed-desc, .embed-field, .embed-field strong, .embed-field div, .embed-footer,
  .preview-note, .message, .msg-content, .preview-top strong, .preview-top span,
  .panel-preview-embed strong, .panel-preview-embed p, .ticket-welcome-preview-head,
  .ticket-welcome-preview-body
) {
  color: #ffffff !important;
}

/* Botões demonstrativos imitam a paleta nativa do Discord; os rótulos mantêm contraste branco. */
#root :is(.preview-shell, .discord, .discord-embed, .ticket-preview, .embed-preview) .d-btn {
  background: #5865f2 !important;
  border-color: transparent !important;
  color: #ffffff !important;
}
#root :is(.preview-shell, .discord, .discord-embed, .ticket-preview, .embed-preview) .d-btn.secondary,
#root :is(.preview-shell, .discord, .discord-embed, .ticket-preview, .embed-preview) .d-btn.link {
  background: #4e5058 !important;
  color: #ffffff !important;
}
#root :is(.preview-shell, .discord, .discord-embed, .ticket-preview, .embed-preview) .d-btn.success {
  background: #248046 !important;
  color: #ffffff !important;
}
#root :is(.preview-shell, .discord, .discord-embed, .ticket-preview, .embed-preview) .d-btn.danger {
  background: #da373c !important;
  color: #ffffff !important;
}

/* Botões primários do painel seguem o padrão B/W profissional com contraste exato. */
#root :is(.btn-main, .btn-create, .btn.primary, .btn-primary, .primary-btn, .cc-btn.primary) {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}
#root :is(.btn-main, .btn-create, .btn.primary, .btn-primary, .primary-btn, .cc-btn.primary):is(:hover, :focus-visible) {
  background: #e8e8e8 !important;
  border-color: #e8e8e8 !important;
  color: #000000 !important;
}

/* Campos do painel são escuros; digitado e placeholder mantêm branco puro e legibilidade. */
#root :is(.app-shell, [data-spike-react-page]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), textarea, select) {
  color: #ffffff !important;
}
#root :is(.app-shell, [data-spike-react-page]) :is(input, textarea, select)::placeholder {
  color: #ffffff !important;
  opacity: 1;
}

/* Elementos de edição de cor e seus valores voltam a refletir as cores escolhidas. */
#root input[type="color"] {
  filter: none !important;
  color-scheme: dark;
  accent-color: initial;
}
