/* NV equipo 5.4 (+ v5.5) · Equipo en vivo + Dispositivos
   Todo sale de los tokens del tema (--bg*, --text*, --border, --accent,
   --nv-accent-rgb, --green2, --amber2, --red2, fuentes --nv-font-*). */

:root {
  --nveq-ease: cubic-bezier(.34, 1.4, .64, 1);
  --nveq-ease2: cubic-bezier(.22, 1, .36, 1);
  --nveq-on: var(--green2, #34d399);
  --nveq-bg-st: var(--amber2, #fbbf24);
  --nveq-off: var(--text3, #8a8fa8);
  --nveq-acc-rgb: var(--nv-accent-rgb, 99, 102, 241);
}

/* ── Avatar con anillo de presencia ───────────────────────────── */
.nveq-ava {
  --c: var(--nveq-off);
  position: relative; display: inline-grid; place-items: center; flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg3, #1c1c2c); color: var(--text, #fff);
  font: 800 10px/1 var(--nv-font-ui, inherit); letter-spacing: .2px;
  box-shadow: 0 0 0 2px var(--bg2, #111), 0 0 0 3.5px var(--c);
  transition: box-shadow .3s var(--nveq-ease2);
}
.nveq-ava.is-big { width: 40px; height: 40px; font-size: 13.5px; }
.nveq-ava-in { position: relative; z-index: 1; }
.nveq-ava[data-st="activo"] { --c: var(--nveq-on); }
.nveq-ava[data-st="segundo_plano"], .nveq-ava[data-st="inactivo"] { --c: var(--nveq-bg-st); }
.nveq-ava::after {
  content: ""; position: absolute; inset: -3.5px; border-radius: 50%;
  border: 2px solid var(--c); opacity: 0; pointer-events: none;
}
.nveq-ava[data-st="activo"]::after { animation: nveqBreathe 2.4s ease-in-out infinite; }
.nveq-ava[data-st="segundo_plano"]::after { animation: nveqBreathe 3.6s ease-in-out infinite; }
@keyframes nveqBreathe {
  0% { opacity: .75; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.45); }
  100% { opacity: 0; transform: scale(1.45); }
}

/* Anillo sobre el avatar existente de las tarjetas de Gestión de Usuarios */
.admin-user-card .nveq-ring { position: relative; transition: box-shadow .3s var(--nveq-ease2); }
.admin-user-card .nveq-ring[data-st="activo"] { box-shadow: 0 0 0 2px var(--bg2, #111), 0 0 0 3.5px var(--nveq-on); }
.admin-user-card .nveq-ring[data-st="segundo_plano"],
.admin-user-card .nveq-ring[data-st="inactivo"] { box-shadow: 0 0 0 2px var(--bg2, #111), 0 0 0 3.5px var(--nveq-bg-st); }
.admin-user-card .nveq-ring[data-st="desconectado"] { box-shadow: 0 0 0 2px var(--bg2, #111), 0 0 0 3.5px color-mix(in srgb, var(--nveq-off) 55%, transparent); }
.admin-user-card .nveq-ring[data-st="activo"]::after {
  content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--nveq-on);
  animation: nveqBreathe 2.4s ease-in-out infinite; pointer-events: none;
}
.nveq-card-line {
  display: flex; align-items: center; gap: 6px; margin: -2px 0 8px; min-width: 0;
  font: 600 10.5px/1.35 var(--nv-font-ui, inherit); color: var(--text2, #bbb);
}
.nveq-card-line > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nveq-card-line.is-new { animation: nveqIn .34s var(--nveq-ease) both; }
.nveq-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--nveq-off); transition: background .3s; }
.nveq-dot[data-st="activo"] { background: var(--nveq-on); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nveq-on) 22%, transparent); }
.nveq-dot[data-st="segundo_plano"], .nveq-dot[data-st="inactivo"] { background: var(--nveq-bg-st); }
@keyframes nveqIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── Estado en texto ──────────────────────────────────────────── */
.nveq-st {
  display: inline-flex; align-items: center; gap: 6px; font: 650 11.5px/1.3 var(--nv-font-ui, inherit);
  color: var(--nveq-off); transition: color .3s;
}
.nveq-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.nveq-st[data-st="activo"] { color: var(--nveq-on); }
.nveq-st[data-st="segundo_plano"], .nveq-st[data-st="inactivo"] { color: var(--nveq-bg-st); }
.nveq-st[data-st="activo"]::before { animation: nveqDot 1.8s ease-in-out infinite; }
@keyframes nveqDot { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 60% { box-shadow: 0 0 0 5px transparent; } }

/* ── Fila de moderador (panel y tablero) ──────────────────────── */
.nveq-mod { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg3, #1a1a28); border: 1px solid var(--border, #2a2a40); min-width: 0; }
.nveq-mod-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nveq-mod-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.nveq-mod-top b { font: 700 13.5px/1.25 var(--nv-font-display, var(--nv-font-ui, inherit)); color: var(--text, #fff); letter-spacing: -.1px; }
.nveq-accion {
  display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 10px;
  background: rgba(var(--nveq-acc-rgb), .1); border: 1px solid rgba(var(--nveq-acc-rgb), .22);
  font: 500 12px/1.4 var(--nv-font-ui, inherit); color: var(--text, #fff);
}
.nveq-accion b { font-weight: 700; }
.nveq-accion time { color: var(--text3, #888); font-variant-numeric: tabular-nums; }
.nveq-accion.is-new { animation: nveqIn .36s var(--nveq-ease) both; }
.nveq-accion.is-quiet { background: transparent; border-color: transparent; padding: 0; color: var(--text3, #888); align-items: center; }
.nveq-accion.is-quiet svg { width: 13px; height: 13px; flex-shrink: 0; }
.nveq-accion-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent, #6366f1); margin-top: 5px; flex-shrink: 0; animation: nveqDotAcc 1.4s ease-in-out infinite; }
@keyframes nveqDotAcc { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.75); } }
.nveq-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.nveq-chip {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 8px 3px 6px; border-radius: 99px;
  background: var(--bg2, #111); border: 1px solid var(--border, #2a2a40); color: var(--text2, #bbb);
  font: 600 10.5px/1.3 var(--nv-font-ui, inherit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nveq-chip i { display: inline-flex; color: var(--nveq-off); }
.nveq-chip[data-st="activo"] i { color: var(--nveq-on); }
.nveq-chip[data-st="segundo_plano"] i, .nveq-chip[data-st="inactivo"] i { color: var(--nveq-bg-st); }
.nveq-chip svg { width: 12px; height: 12px; }
.nveq-tl { list-style: none; margin: 2px 0 0; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 0; }
.nveq-tl li {
  position: relative; display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: start;
  padding: 3px 0 3px; font: 500 11.5px/1.35 var(--nv-font-ui, inherit); color: var(--text2, #bbb);
}
.nveq-tl li::before { content: ""; position: absolute; left: 7.5px; top: 19px; bottom: -4px; width: 1px; background: var(--border, #2a2a40); }
.nveq-tl li:last-child::before { display: none; }
.nveq-tl li i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2, #111); border: 1px solid var(--border, #2a2a40); color: var(--nveq-off); }
.nveq-tl li[data-r="ok"] i { color: var(--nveq-on); border-color: color-mix(in srgb, var(--nveq-on) 45%, transparent); }
.nveq-tl li svg { width: 9px; height: 9px; }
.nveq-tl li span { min-width: 0; overflow-wrap: anywhere; }
.nveq-tl li time { color: var(--text3, #888); font-size: 10.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nveq-tl-empty { font: 500 11.5px/1.4 var(--nv-font-ui, inherit); color: var(--text3, #888); padding: 2px 0; }
.nveq-mod svg, .nveq-panel svg, .nveq-dp svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.nveq-btn:focus-visible, .nveq-seg button:focus-visible, .nveq-panel button:focus-visible { outline: 2px solid var(--accent, #6366f1); outline-offset: 2px; }
/* v6.0: el botón "Equipo en vivo" de la barra superior se quitó (pedido del dueño) */
@keyframes nveqAvaIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes nveqAvaOut { to { opacity: 0; transform: scale(.4); } }
.nveq-num { display: inline-block; font-variant-numeric: tabular-nums; font-family: var(--nv-font-num, inherit); }
.nveq-roll { position: relative; display: inline-grid; overflow: hidden; vertical-align: bottom; line-height: inherit; }
.nveq-roll i { grid-area: 1 / 1; font-style: normal; }
.nveq-roll.is-up i:first-child { animation: nveqRollOutUp .38s var(--nveq-ease2) both; }
.nveq-roll.is-up i:last-child { animation: nveqRollInUp .38s var(--nveq-ease) both; }
.nveq-roll.is-down i:first-child { animation: nveqRollOutDown .38s var(--nveq-ease2) both; }
.nveq-roll.is-down i:last-child { animation: nveqRollInDown .38s var(--nveq-ease) both; }
@keyframes nveqRollOutUp { to { transform: translateY(-100%); opacity: 0; } }
@keyframes nveqRollInUp { from { transform: translateY(100%); opacity: 0; } }
@keyframes nveqRollOutDown { to { transform: translateY(100%); opacity: 0; } }
@keyframes nveqRollInDown { from { transform: translateY(-100%); opacity: 0; } }

/* ── Panel flotante (popover compacto) ────────────────────────── */
.nveq-panel {
  position: fixed; z-index: 9600; max-height: min(620px, calc(100vh - 84px)); display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--bg2, #12121c) 94%, transparent); border: 1px solid var(--border, #2a2a40); border-radius: 20px;
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .42), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  font-family: var(--nv-font-ui, inherit); color: var(--text, #fff); overflow: hidden;
  opacity: 0; transform: translateY(-8px) scale(.96); transform-origin: top right;
  transition: opacity .2s var(--nveq-ease2), transform .34s var(--nveq-ease);
}
.nveq-panel.is-open { opacity: 1; transform: none; }
.nveq-panel.is-closing { opacity: 0; transform: translateY(-4px) scale(.98); transition-duration: .16s; }
.nveq-panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 10px 16px; }
.nveq-ph-t { flex: 1; min-width: 0; }
.nveq-ph-t b { display: block; font: var(--nv54-w-display, 700) 15.5px/1.2 var(--nv-font-display, var(--nv-font-ui, inherit)); letter-spacing: var(--nv54-ls-display, -.2px); }
.nveq-ph-t small { display: block; font-size: 11.5px; color: var(--text3, #888); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nveq-x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--bg3, #1a1a28); color: var(--text2, #bbb); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: transform .2s var(--nveq-ease), background .15s; }
.nveq-x:hover { background: var(--bg4, #222236); }
.nveq-x:active { transform: scale(.9); }
.nveq-x svg { width: 14px; height: 14px; }
.nveq-panel .nveq-live-pill { padding: 3px 9px; font-size: 9.5px; }

.nveq-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0 12px; padding: 3px; border-radius: 12px; background: var(--bg3, #1a1a28); }
.nveq-tabs-ind { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 9px; background: var(--bg2, #12121c); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .34s var(--nveq-ease); }
.nveq-tabs button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; border: 0; background: transparent; color: var(--text3, #888); font: 650 12px/1 var(--nv-font-ui, inherit); cursor: pointer; border-radius: 9px; transition: color .2s; }
.nveq-tabs button[aria-selected="true"] { color: var(--text, #fff); }
.nveq-tabs svg { width: 14px; height: 14px; }
.nveq-fil { display: flex; gap: 5px; padding: 10px 12px 8px; overflow-x: auto; scrollbar-width: none; }
.nveq-fil::-webkit-scrollbar { display: none; }
.nveq-fil button {
  flex-shrink: 0; height: 27px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--border, #2a2a40); background: transparent;
  color: var(--text2, #bbb); font: 600 11px/1 var(--nv-font-ui, inherit); cursor: pointer;
  transition: background .2s var(--nveq-ease2), color .2s, border-color .2s, transform .2s var(--nveq-ease);
}
.nveq-fil button:active { transform: scale(.94); }
.nveq-fil button[aria-pressed="true"] { background: var(--accent, #6366f1); border-color: transparent; color: var(--nv54-on-accent, #fff); }
.nveq-panel-list, .nveq-panel-feed { overflow-y: auto; overscroll-behavior: contain; padding: 2px 12px 12px; min-height: 0; flex: 1 1 auto; }
.nveq-panel-list { display: flex; flex-direction: column; gap: 8px; }
.nveq-panel-list[hidden], .nveq-panel-feed[hidden] { display: none; }
.nveq-panel-list.is-in, .nveq-panel-feed.is-in { animation: nveqIn .28s var(--nveq-ease2) both; }

/* tarjeta de moderador */
.nveq-mc { display: flex; flex-direction: column; gap: 9px; padding: 12px; border-radius: 16px; background: var(--bg3, #1a1a28); border: 1px solid var(--border, #2a2a40); min-width: 0; transition: border-color .3s, background .3s; }
.nveq-mc[data-st="activo"] { border-color: color-mix(in srgb, var(--nveq-on) 30%, var(--border, #2a2a40)); }
.nveq-mc.is-new { animation: nveqCard .38s var(--nveq-ease) both; }
.nveq-mc.is-gone { animation: nveqAvaOut .24s both; }
.nveq-mc-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.nveq-mc-n { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nveq-mc-n b { font: 700 13.5px/1.25 var(--nv-font-display, var(--nv-font-ui, inherit)); letter-spacing: -.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nveq-mc-n .nveq-st { font-size: 11px; }
.nveq-exp { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--text3, #888); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: background .15s, color .15s; }
.nveq-exp:hover { background: var(--bg4, #222236); color: var(--text, #fff); }
.nveq-exp svg { width: 16px; height: 16px; transition: transform .3s var(--nveq-ease); }
.nveq-mc.is-open .nveq-exp svg { transform: rotate(180deg); }
.nveq-mc-acc { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border-radius: 11px; font: 500 12px/1.35 var(--nv-font-ui, inherit); }
.nveq-mc-acc[hidden] { display: none; }
.nveq-mc-acc.is-live { background: rgba(var(--nveq-acc-rgb), .12); border: 1px solid rgba(var(--nveq-acc-rgb), .24); color: var(--text, #fff); }
.nveq-mc-acc.is-quiet { padding: 0 2px; color: var(--text3, #888); }
.nveq-mc-acc.is-quiet svg { width: 13px; height: 13px; flex-shrink: 0; }
.nveq-mc-acc.is-new { animation: nveqIn .34s var(--nveq-ease) both; }
.nveq-mc-acc .nveq-accion-dot { margin-top: 0; }
.nveq-acc-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nveq-acc-t em, .nveq-tl-x em, .nveq-fi-x em { font-style: normal; color: var(--text3, #888); }
.nveq-timer { flex-shrink: 0; padding: 2px 7px; border-radius: 99px; background: var(--bg2, #12121c); color: var(--accent2, var(--accent, #818cf8)); font: 700 11px/1.3 var(--nv-font-num, var(--nv-font-ui, inherit)); font-variant-numeric: tabular-nums; }
.nveq-fi .nveq-timer { padding: 0; background: none; }
.nveq-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.nveq-kpi { padding: 7px 8px; border-radius: 11px; background: var(--bg2, #12121c); min-width: 0; }
.nveq-kpi b { display: block; font: 750 17px/1.15 var(--nv54-font-kpi, var(--nv-font-num, var(--nv-font-ui, inherit))); color: var(--text, #fff); }
.nveq-kpi span { display: block; font-size: 10px; color: var(--text3, #888); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nveq-hoy { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11.5px; color: var(--text2, #bbb); min-width: 0; }
.nveq-hoy svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--text3, #888); }
.nveq-hoy b { color: var(--text, #fff); font-variant-numeric: tabular-nums; }
.nveq-hoy-r { margin-left: auto; color: var(--text3, #888); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nveq-mc .nveq-tl:empty { display: none; }
.nveq-tl li.is-new, .nveq-fi.is-new { animation: nveqRowIn .42s var(--nveq-ease) both; }
.nveq-tl li.is-gone, .nveq-fi.is-gone { animation: nveqRowOut .24s var(--nveq-ease2) both; }
@keyframes nveqRowIn { from { opacity: 0; transform: translateY(-8px); max-height: 0; } to { opacity: 1; transform: none; max-height: 80px; } }
@keyframes nveqRowOut { to { opacity: 0; transform: translateX(8px); max-height: 0; padding-top: 0; padding-bottom: 0; } }
.nveq-tl li i svg { width: 9px; height: 9px; }
.nveq-tl li[data-r="x"] span { color: var(--text3, #888); }
.nveq-tl-x { overflow: hidden; }
.nveq-tl-empty[hidden] { display: none; }
.nveq-tl-empty.is-big { padding: 26px 8px; text-align: center; }

/* feed "Seguir en vivo" */
.nveq-feed-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 8px; }
.nveq-nuevas { height: 26px; padding: 0 11px; border: 0; border-radius: 99px; background: var(--accent, #6366f1); color: var(--nv54-on-accent, #fff); font: 650 11.5px/1 var(--nv-font-ui, inherit); cursor: pointer; animation: nveqAvaIn .34s var(--nveq-ease) both; }
.nveq-nuevas[hidden] { display: none; }
.nveq-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nveq-fi { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; min-width: 0; overflow: hidden; transition: background .15s; }
.nveq-fi:hover { background: var(--bg3, #1a1a28); }
.nveq-fi.is-live { background: rgba(var(--nveq-acc-rgb), .1); }
.nveq-fi-who { border: 0; padding: 0; background: none; cursor: pointer; display: inline-flex; border-radius: 50%; }
.nveq-fi-b { flex: 1; min-width: 0; }
.nveq-fi-x { display: block; font-size: 12.5px; line-height: 1.35; color: var(--text, #fff); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nveq-fi-b small { display: block; font-size: 11px; color: var(--text3, #888); font-variant-numeric: tabular-nums; }
.nveq-fi-i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; background: var(--bg3, #1a1a28); color: var(--text3, #888); }
.nveq-fi[data-r="ok"] .nveq-fi-i { color: var(--nveq-on); background: color-mix(in srgb, var(--nveq-on) 12%, transparent); }
.nveq-fi-i svg { width: 12px; height: 12px; }
.nveq-fi-i .nveq-accion-dot { margin: 0; }
.nveq-feed-empty { padding: 26px 8px; text-align: center; font-size: 12px; color: var(--text3, #888); }
.nveq-feed-empty[hidden] { display: none; }

/* interruptor */
.nveq-sw { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1.2 var(--nv-font-ui, inherit); color: var(--text2, #bbb); cursor: pointer; user-select: none; }
.nveq-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nveq-sw span { position: relative; width: 32px; height: 19px; border-radius: 99px; background: var(--bg4, #2a2a40); transition: background .25s var(--nveq-ease2); flex-shrink: 0; }
.nveq-sw span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .3s var(--nveq-ease); }
.nveq-sw input:checked + span { background: var(--nveq-on); }
.nveq-sw input:checked + span::after { transform: translateX(13px); }
.nveq-sw input:focus-visible + span { outline: 2px solid var(--accent, #6366f1); outline-offset: 2px; }

.nveq-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--border, #2a2a40); }
.nveq-panel-foot button {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border, #2a2a40); background: var(--bg3, #1a1a28);
  color: var(--text2, #bbb); font: 600 12px/1.2 var(--nv-font-ui, inherit); cursor: pointer; transition: background .15s, color .15s, transform .2s var(--nveq-ease);
}
.nveq-panel-foot button svg { width: 14px; height: 14px; }
.nveq-panel-foot button:hover { color: var(--text, #fff); background: var(--bg4, #222236); }
.nveq-panel-foot button:active { transform: scale(.96); }

/* ── Toasts de acción en vivo ─────────────────────────────────── */
.nveq-toasts { position: fixed; z-index: 9550; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; width: min(420px, calc(100vw - 24px)); }
.nveq-toast {
  pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: 11px; max-width: 100%; padding: 9px 16px 9px 9px;
  border-radius: 99px; background: color-mix(in srgb, var(--bg2, #12121c) 92%, transparent);
  border: 1px solid var(--border, #2a2a40); box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-family: var(--nv-font-ui, inherit); color: var(--text, #fff);
  opacity: 0; transform: translateY(14px) scale(.94);
  transition: opacity .22s var(--nveq-ease2), transform .38s var(--nveq-ease);
}
.nveq-toast.is-in { opacity: 1; transform: none; }
.nveq-toast.is-out { opacity: 0; transform: translateY(8px) scale(.97); transition-duration: .2s; }
.nveq-toast > div { min-width: 0; }
.nveq-toast b { display: block; font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nveq-toast small { display: block; font-size: 11px; color: var(--text3, #888); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nveq-toast.is-accion { border-color: rgba(var(--nveq-acc-rgb), .35); }
.nveq-toast.is-on { border-color: color-mix(in srgb, var(--nveq-on) 40%, var(--border, #333)); }

/* ── Tablero en Gestión de Usuarios ───────────────────────────── */
.nveq-gu {
  margin: 0 0 14px; padding: 14px; border-radius: 16px; background: var(--bg2, #12121c); border: 1px solid var(--border, #2a2a40);
  font-family: var(--nv-font-ui, inherit); animation: nveqIn .34s var(--nveq-ease2) both;
}
.nveq-gu-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.nveq-gu-head b { display: block; font: 700 14px/1.2 var(--nv-font-display, var(--nv-font-ui, inherit)); color: var(--text, #fff); }
.nveq-gu-head small { font-size: 11.5px; color: var(--text3, #888); }
.nveq-live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--nveq-on) 12%, transparent); color: var(--nveq-on); font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; flex-shrink: 0; }
.nveq-live-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: nveqDotAcc 1.4s ease-in-out infinite; }
.nveq-gu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }

/* ── Página Dispositivos ──────────────────────────────────────── */
#page-dispositivos.nveq-disp-on .info-box,
#page-dispositivos.nveq-disp-on .accounts-section > .section-header { display: none !important; }
#page-dispositivos.nveq-disp-on .accounts-section { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; overflow: visible !important; }
#page-dispositivos.nveq-disp-on #disp-list { padding: 0 !important; }
#page-dispositivos.nveq-disp-on > div { max-width: 1080px !important; }
.nveq-dp { font-family: var(--nv-font-ui, inherit); color: var(--text, #fff); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.nveq-dp-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.nveq-dp-title { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 320px; }
.nveq-dp-ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; color: var(--accent2, var(--accent, #818cf8));
  background: rgba(var(--nveq-acc-rgb), .12); border: 1px solid rgba(var(--nveq-acc-rgb), .25);
}
.nveq-dp-ico svg { width: 24px; height: 24px; }
.nveq-dp-title h2 { margin: 0; font: 750 21px/1.15 var(--nv-font-display, var(--nv-font-ui, inherit)); letter-spacing: -.4px; color: var(--text, #fff); }
.nveq-dp-title p { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--text3, #888); }
.nveq-dp-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.nveq-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--border, #2a2a40); background: var(--bg3, #1a1a28); color: var(--text, #fff);
  font: 650 12.5px/1 var(--nv-font-ui, inherit); white-space: nowrap;
  transition: transform .22s var(--nveq-ease), background .15s, border-color .15s;
}
.nveq-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.nveq-btn:hover { background: var(--bg4, #222236); }
.nveq-btn:active { transform: scale(.96); }
.nveq-btn.is-danger { color: var(--red2, #f87171); background: color-mix(in srgb, var(--red2, #f87171) 9%, transparent); border-color: color-mix(in srgb, var(--red2, #f87171) 26%, transparent); }
.nveq-btn.is-danger:hover { background: color-mix(in srgb, var(--red2, #f87171) 16%, transparent); }
.nveq-btn.is-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 10px; }
.nveq-btn.is-busy { opacity: .6; pointer-events: none; }
.nveq-dp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.nveq-stat { position: relative; overflow: hidden; padding: 13px 14px; border-radius: 14px; background: var(--bg2, #12121c); border: 1px solid var(--border, #2a2a40); min-width: 0; }
.nveq-stat b { display: block; font: 750 24px/1.1 var(--nv-font-num, var(--nv-font-ui, inherit)); font-variant-numeric: tabular-nums; color: var(--text, #fff); }
.nveq-stat span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--text3, #888); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nveq-stat::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent, #6366f1); }
.nveq-stat[data-st="activo"]::before { background: var(--nveq-on); }
.nveq-stat[data-st="segundo_plano"]::before { background: var(--nveq-bg-st); }
.nveq-stat[data-st="desconectado"]::before { background: var(--nveq-off); }
.nveq-dp-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nveq-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg2, #12121c); border: 1px solid var(--border, #2a2a40); max-width: 100%; }
.nveq-seg button {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--text2, #bbb); font: 650 12.5px/1 var(--nv-font-ui, inherit);
  transition: background .2s var(--nveq-ease2), color .2s;
}
.nveq-seg button i { font-style: normal; font-size: 11px; padding: 2px 6px; border-radius: 99px; background: var(--bg3, #1a1a28); color: var(--text3, #888); font-variant-numeric: tabular-nums; }
.nveq-seg button[aria-selected="true"] { background: var(--bg4, #222236); color: var(--text, #fff); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.nveq-seg button[aria-selected="true"] i { background: rgba(var(--nveq-acc-rgb), .18); color: var(--accent2, var(--accent, #818cf8)); }
.nveq-dp-geo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text3, #888); }
.nveq-dp-geo svg { width: 14px; height: 14px; flex-shrink: 0; }
.nveq-dp-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px 14px; align-items: start; min-width: 0; }
.nveq-dp-body > .nveq-grp.is-multi, .nveq-dp-body > .nveq-empty, .nveq-dp-body > .nveq-dp-load { grid-column: 1 / -1; }
.nveq-dp-load { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 50px 20px; color: var(--text3, #888); font-size: 13.5px; }
.nveq-dp-load span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border, #333); border-top-color: var(--accent, #6366f1); animation: nveqSpin .7s linear infinite; }
@keyframes nveqSpin { to { transform: rotate(360deg); } }
.nveq-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 46px 20px; text-align: center; border-radius: 16px; border: 1px dashed var(--border, #2a2a40); color: var(--text3, #888); }
.nveq-empty span { color: var(--text3, #888); }
.nveq-empty svg { width: 30px; height: 30px; }
.nveq-empty b { color: var(--text2, #bbb); font-size: 14.5px; }
.nveq-empty small { font-size: 12.5px; }
.nveq-grp { min-width: 0; }
.nveq-grp-head { display: flex; align-items: center; gap: 12px; margin: 0 0 10px 2px; min-width: 0; }
.nveq-grp-head > div { min-width: 0; }
.nveq-grp-head b { display: block; font: 700 14.5px/1.2 var(--nv-font-display, var(--nv-font-ui, inherit)); color: var(--text, #fff); }
.nveq-grp-head small { display: block; font-size: 12px; color: var(--text3, #888); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nveq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.nveq-grp.is-multi .nveq-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.nveq-dev {
  position: relative; display: flex; flex-direction: column; gap: 11px; padding: 15px; border-radius: 18px; min-width: 0;
  background: var(--bg2, #12121c); border: 1px solid var(--border, #2a2a40);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--nveq-ease);
}
.nveq-dev:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
.nveq-dev.is-this { border-color: rgba(var(--nveq-acc-rgb), .45); background: linear-gradient(160deg, rgba(var(--nveq-acc-rgb), .1), transparent 60%), var(--bg2, #12121c); }
.nveq-dev[data-st="desconectado"]:not(.is-this) { opacity: .86; }
.nveq-dev.is-enter { animation: nveqCard .38s var(--nveq-ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.nveq-dev.is-flip { animation: nveqFlip .42s var(--nveq-ease) both; }
@keyframes nveqCard { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes nveqFlip { 0% { transform: scale(1); } 40% { transform: scale(1.018); box-shadow: 0 0 0 3px rgba(var(--nveq-acc-rgb), .25); } 100% { transform: scale(1); } }
.nveq-dev-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nveq-dev-ico {
  position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--bg3, #1a1a28); color: var(--text2, #bbb); border: 1px solid var(--border, #2a2a40);
}
.nveq-dev.is-this .nveq-dev-ico { color: var(--accent2, var(--accent, #818cf8)); background: rgba(var(--nveq-acc-rgb), .12); }
.nveq-dev-ico svg { width: 24px; height: 24px; }
.nveq-dev-ico i { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--nveq-off); border: 2.5px solid var(--bg2, #12121c); transition: background .3s; }
.nveq-dev-ico[data-st="activo"] i { background: var(--nveq-on); }
.nveq-dev-ico[data-st="activo"] i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--nveq-on); animation: nveqBreathe 2.4s ease-in-out infinite; }
.nveq-dev-ico[data-st="segundo_plano"] i, .nveq-dev-ico[data-st="inactivo"] i { background: var(--nveq-bg-st); }
.nveq-dev-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.nveq-dev-name b { font: 700 14.5px/1.25 var(--nv-font-display, var(--nv-font-ui, inherit)); letter-spacing: -.15px; color: var(--text, #fff); overflow-wrap: anywhere; }
.nveq-this { align-self: flex-start; padding: 2px 8px; border-radius: 99px; background: var(--accent, #6366f1); color: var(--nv54-on-accent, #fff); font-size: 10px; font-weight: 700; letter-spacing: .2px; }
.nveq-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nveq-tag { padding: 4px 9px; border-radius: 8px; background: var(--bg3, #1a1a28); border: 1px solid var(--border, #2a2a40); color: var(--text2, #bbb); font: 650 11.5px/1.2 var(--nv-font-ui, inherit); white-space: nowrap; }
.nveq-tag.is-soft { color: var(--text3, #888); font-variant-numeric: tabular-nums; }
.nveq-dev-act { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(var(--nveq-acc-rgb), .1); border: 1px solid rgba(var(--nveq-acc-rgb), .2); font-size: 12px; line-height: 1.4; animation: nveqIn .32s var(--nveq-ease) both; }
.nveq-dev-act.is-quiet { background: transparent; border: 0; padding: 0; color: var(--text3, #888); align-items: center; animation: none; }
.nveq-dev-act.is-quiet svg { width: 13px; height: 13px; flex-shrink: 0; }
.nveq-dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding-top: 11px; border-top: 1px solid var(--border, #2a2a40); }
.nveq-dl > div { min-width: 0; }
.nveq-dl .is-wide { grid-column: 1 / -1; }
.nveq-dl dt { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--text3, #888); margin-bottom: 3px; }
.nveq-dl dt svg { width: 12px; height: 12px; }
.nveq-dl dd { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--text, #fff); overflow-wrap: anywhere; }
.nveq-dl dd small { display: block; font-size: 11px; color: var(--text3, #888); font-variant-numeric: tabular-nums; }
.nveq-dl .is-muted { color: var(--text3, #888); font-style: italic; }
.nveq-flag { margin-right: 5px; }
.nveq-dev-foot { display: flex; justify-content: flex-end; }

/* ── Teléfono ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nveq-toasts { right: 50%; transform: translateX(50%); bottom: 86px; align-items: center; }
  .nveq-dp-body { grid-template-columns: minmax(0, 1fr); }
  .nveq-grp.is-multi .nveq-grid { grid-template-columns: minmax(0, 1fr); }
  .nveq-dp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nveq-stat b { font-size: 21px; }
  .nveq-dp-title h2 { font-size: 19px; }
  .nveq-dp-acts { width: 100%; }
  .nveq-dp-acts .nveq-btn { flex: 1 1 auto; justify-content: center; }
  .nveq-seg { width: 100%; }
  .nveq-seg button { flex: 1; justify-content: center; padding: 0 6px; }
  .nveq-gu-grid { grid-template-columns: minmax(0, 1fr); }
  .nveq-dev:hover { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nveq-ava::after, .nveq-st::before, .admin-user-card .nveq-ring::after, .nveq-dev-ico i::after,
  .nveq-accion-dot, .nveq-live-pill i { animation: none !important; }
  .nveq-dev.is-enter, .nveq-dev.is-flip, .nveq-accion.is-new, .nveq-card-line.is-new, .nveq-gu, .nveq-dev-act { animation: none !important; }
  .nveq-panel, .nveq-toast, .nveq-btn, .nveq-dev { transition: opacity .01s !important; transform: none !important; }
  .nveq-roll i, .nveq-mc, .nveq-mc-acc, .nveq-tl li, .nveq-fi, .nveq-nuevas,
  .nveq-panel-list, .nveq-panel-feed { animation: none !important; }
  .nveq-tabs-ind, .nveq-sw span::after, .nveq-exp svg { transition: none !important; }
}
