/* NodoPin Web: retirada visual de Red + contorno continuo de Conversaciones.
   Solo presentación: no cambia BLE, Wi-Fi Direct, chats, NLDR1 ni API. */

/* La sección Red no se ofrece en la PWA; se conservan los módulos anteriores. */
#workspace #npredOpen,
#workspace #redTab,
#workspace #npConnectivityPanel {
  display: none !important;
}

/* Contorno del PANEL COMPLETO de Conversaciones (NO el botón Chats). */
#chatsTab > .chatsLayout {
  --np-shell-radius: 21px;
  --np-shell-outline: rgba(68, 174, 205, .56);
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  border-radius: var(--np-shell-radius) !important;
  border: 1px solid var(--np-shell-outline) !important;
  background-clip: padding-box;
}

/* Trazo interior continuo, superpuesto a las dos columnas y esquinas derechas.
   pointer-events:none para conservar menú ⋯, chat, scroll y adjuntos. */
#chatsTab > .chatsLayout::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 9;
  box-sizing: border-box;
  pointer-events: none;
  border: 1px solid var(--np-shell-outline);
  border-radius: inherit;
}

/* Esquinas de AMBAS columnas, sin recortar los menús flotantes. */
#chatsTab > .chatsLayout > .people {
  border-radius: var(--np-shell-radius) 0 0 var(--np-shell-radius);
  background-clip: padding-box;
}
#chatsTab > .chatsLayout > .conversation {
  min-width: 0;
  border-radius: 0 var(--np-shell-radius) var(--np-shell-radius) 0;
  background-clip: padding-box;
}
#chatsTab > .chatsLayout .chatHead {
  border-top-right-radius: var(--np-shell-radius);
}
#chatsTab > .chatsLayout :is(.chatHint, .composer) {
  border-bottom-right-radius: var(--np-shell-radius);
}

/* Consistencia en claro, oscuro y sistema. */
html[data-np-theme="light"] #chatsTab > .chatsLayout {
  --np-shell-outline: rgba(44, 137, 178, .52);
}
html[data-np-theme="dark"] #chatsTab > .chatsLayout {
  --np-shell-outline: rgba(91, 207, 225, .46);
}

/* En móvil, respetar el diseño de conversación a pantalla completa. */
@media (max-width: 720px) {
  #chatsTab > .chatsLayout { --np-shell-radius: 17px; }
  #chatsTab > .chatsLayout > .people { border-radius: 17px 0 0 17px; }
  #chatsTab > .chatsLayout > .conversation { border-radius: 0 17px 17px 0; }
}
