/* NodoPin — ajuste EXCLUSIVAMENTE visual 2026-11-08.
   Grupos: el fondo del historial en OSCURO coincide con el de chats privados
   observado en la referencia del usuario (#0B1C2B).
   Copia integral: contraste oscuro de la guía «Tus dos claves».
   No modifica colores de burbujas, composición, claro ni datos. */

/* Tema oscuro establecido explícitamente por NodoPin. */
html[data-np-theme="dark"] #groupsTab .npg-messages,
html[data-theme="dark"] #groupsTab .npg-messages,
html.dark #groupsTab .npg-messages,
body[data-theme="dark"] #groupsTab .npg-messages,
body.theme-dark #groupsTab .npg-messages {
  background: #0b1c2b !important;
}

/* La clase se asigna SOLO al recuadro con los textos de las dos claves. */
html[data-np-theme="dark"] #npIntegralBackup .np-theme-two-keys,
html[data-theme="dark"] #npIntegralBackup .np-theme-two-keys,
html.dark #npIntegralBackup .np-theme-two-keys,
body[data-theme="dark"] #npIntegralBackup .np-theme-two-keys,
body.theme-dark #npIntegralBackup .np-theme-two-keys {
  background: #1b3547 !important;
  background-image: none !important;
  color: #eef8ff !important;
  border: 1px solid #3b5d70 !important;
}
html[data-np-theme="dark"] #npIntegralBackup .np-theme-two-keys :is(p,span,small,li,div),
html[data-theme="dark"] #npIntegralBackup .np-theme-two-keys :is(p,span,small,li,div),
html.dark #npIntegralBackup .np-theme-two-keys :is(p,span,small,li,div),
body[data-theme="dark"] #npIntegralBackup .np-theme-two-keys :is(p,span,small,li,div),
body.theme-dark #npIntegralBackup .np-theme-two-keys :is(p,span,small,li,div) {
  color: #bed5e6 !important;
}
html[data-np-theme="dark"] #npIntegralBackup .np-theme-two-keys :is(h1,h2,h3,h4,h5,h6,strong,b),
html[data-theme="dark"] #npIntegralBackup .np-theme-two-keys :is(h1,h2,h3,h4,h5,h6,strong,b),
html.dark #npIntegralBackup .np-theme-two-keys :is(h1,h2,h3,h4,h5,h6,strong,b),
body[data-theme="dark"] #npIntegralBackup .np-theme-two-keys :is(h1,h2,h3,h4,h5,h6,strong,b),
body.theme-dark #npIntegralBackup .np-theme-two-keys :is(h1,h2,h3,h4,h5,h6,strong,b) {
  color: #f1f9ff !important;
}

/* Modo automático: respetar la elección CLARO cuando exista. */
@media (prefers-color-scheme: dark) {
  html:not([data-np-theme="light"]):not([data-theme="light"]):not(.light)
  body:not([data-theme="light"]):not(.theme-light) #groupsTab .npg-messages {
    background: #0b1c2b !important;
  }
  html:not([data-np-theme="light"]):not([data-theme="light"]):not(.light)
  body:not([data-theme="light"]):not(.theme-light) #npIntegralBackup .np-theme-two-keys {
    background: #1b3547 !important;
    background-image: none !important;
    color: #eef8ff !important;
    border: 1px solid #3b5d70 !important;
  }
  html:not([data-np-theme="light"]):not([data-theme="light"]):not(.light)
  body:not([data-theme="light"]):not(.theme-light) #npIntegralBackup .np-theme-two-keys :is(p,span,small,li,div) {
    color: #bed5e6 !important;
  }
  html:not([data-np-theme="light"]):not([data-theme="light"]):not(.light)
  body:not([data-theme="light"]):not(.theme-light) #npIntegralBackup .np-theme-two-keys :is(h1,h2,h3,h4,h5,h6,strong,b) {
    color: #f1f9ff !important;
  }
}
